OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Make sure to read the opportunistic carrier display property" into qt-dev
TreeHugger Robot [Sat, 4 May 2019 00:27:22 +0000 (00:27 +0000)]
Merge "Make sure to read the opportunistic carrier display property" into qt-dev

5 years agoMerge "Fix dialer bubbles not bubbling / remove alertAgain logic" into qt-dev
TreeHugger Robot [Sat, 4 May 2019 00:19:32 +0000 (00:19 +0000)]
Merge "Fix dialer bubbles not bubbling / remove alertAgain logic" into qt-dev

5 years agoMerge "only set PhoneStateListener subId for sdk target >=Q" into qt-dev
Chen Xu [Sat, 4 May 2019 00:00:27 +0000 (00:00 +0000)]
Merge "only set PhoneStateListener subId for sdk target >=Q" into qt-dev

5 years agoMerge "Change first time warning update order" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 23:56:23 +0000 (23:56 +0000)]
Merge "Change first time warning update order" into qt-dev

5 years agoMerge "Add new permission flags to @Flags int-def" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 23:55:33 +0000 (23:55 +0000)]
Merge "Add new permission flags to @Flags int-def" into qt-dev

5 years agoMerge "Restrict rotation when global actions panel is enabled" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 23:53:42 +0000 (23:53 +0000)]
Merge "Restrict rotation when global actions panel is enabled" into qt-dev

5 years agoMerge "Remove temporary deprecated methods ContentSuggestionsService." into qt-dev
TreeHugger Robot [Fri, 3 May 2019 23:44:51 +0000 (23:44 +0000)]
Merge "Remove temporary deprecated methods ContentSuggestionsService." into qt-dev

5 years agoMerge "Allow gestural nav to trigger the transient bars when swiping on side edges...
TreeHugger Robot [Fri, 3 May 2019 23:18:44 +0000 (23:18 +0000)]
Merge "Allow gestural nav to trigger the transient bars when swiping on side edges" into qt-dev

5 years agoMerge "Remove bubble permission view" into qt-dev
Mady Mellor [Fri, 3 May 2019 23:18:10 +0000 (23:18 +0000)]
Merge "Remove bubble permission view" into qt-dev

5 years agoMerge "Change color of background for popup window" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 22:51:30 +0000 (22:51 +0000)]
Merge "Change color of background for popup window" into qt-dev

5 years agoAdd exclude-annotation LargeTest to CtsAppTestCases
Dan Shi [Wed, 1 May 2019 17:36:20 +0000 (10:36 -0700)]
Add exclude-annotation LargeTest to CtsAppTestCases

This is needed so merging with cts/tests/app/TEST_MAPPING can be
properly handled to exclude LargeTest. Once b/117880789 is fixed,
we won't need this any more.

Bug: 117880789130828971
Test: none
Exempt-From-Owner-Approval: only change test mapping file to fix broken
test suite.

Change-Id: I0369f47e6de6aeca06a9f1e03c6ec00f7c2ee767

5 years agoFix dialer bubbles not bubbling / remove alertAgain logic
Mady Mellor [Fri, 3 May 2019 22:34:41 +0000 (15:34 -0700)]
Fix dialer bubbles not bubbling / remove alertAgain logic

I had carried this in from notification alert logic but looking at it
more closely it seems not appropriate here (maybe appropriate / something
to incorporate for the flyout?)

Dialer has a notification when the phone call comes in and then when you
leave the phone activity they update that notification to bubble, the
alertAgain logic was filtering this update out.

Test: manual with dialer APK - get a phone call, leave the phone call
      activity, note that a bubble is displayed on screen
Bug: 131252815

Change-Id: I05bff55863b5dd40037741c133eea30397c11b58

5 years agoMerge "Change FalsingManager to an interface for easier swapping." into qt-dev
TreeHugger Robot [Fri, 3 May 2019 22:09:37 +0000 (22:09 +0000)]
Merge "Change FalsingManager to an interface for easier swapping." into qt-dev

5 years agoMerge "Defaults for NIM for Q" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 22:08:45 +0000 (22:08 +0000)]
Merge "Defaults for NIM for Q" into qt-dev

5 years agoMerge "Update BiometricPrompt icons" into qt-dev
Kevin Chyn [Fri, 3 May 2019 22:03:18 +0000 (22:03 +0000)]
Merge "Update BiometricPrompt icons" into qt-dev

5 years agoRemove bubble permission view
Lyn Han [Tue, 30 Apr 2019 19:03:12 +0000 (12:03 -0700)]
Remove bubble permission view

Bug: 131630936
Test: manual
Change-Id: I4023b3a32770fe42d67dd907d6c7a570d41583ee

5 years agoMerge "Update Passpoint R1 AccessPoint with R2 config" into qt-dev
Quang Luong [Fri, 3 May 2019 21:31:30 +0000 (21:31 +0000)]
Merge "Update Passpoint R1 AccessPoint with R2 config" into qt-dev

5 years agoAllow gestural nav to trigger the transient bars when swiping on side edges
Winson Chung [Fri, 19 Apr 2019 22:21:38 +0000 (15:21 -0700)]
Allow gestural nav to trigger the transient bars when swiping on side edges

Bug: 130907345
Test: Enable gestural nav, enter immersive mode, swipe from edges
Change-Id: If7c29b92f027b9995a8a535756d8fdb5b81d7543

5 years agoMake sure to read the opportunistic carrier display property
Sooraj Sasindran [Thu, 2 May 2019 20:47:21 +0000 (13:47 -0700)]
Make sure to read the opportunistic carrier display property

Make sure to read the opportunistic carrier display property
Bug: 131849855
Test: verified that carrier text is displayed correctly

Change-Id: I93f9da8d0a9a8dae276370a0cca2df889229d4c3

5 years agoonly set PhoneStateListener subId for sdk target >=Q
chen xu [Fri, 3 May 2019 17:45:41 +0000 (10:45 -0700)]
only set PhoneStateListener subId for sdk target >=Q

subId from PhoneStateListener is deprecated from Q. And we should
only set subId for informational purpose for Q+ only.
Do not change the legacy behaviour for apps target on preQ SDK level

Bug: 131863032
Test: atest CtsTelephonyTestCases:PhoneStateListenerTest#testOnUnRegisterFollowedByRegister
Change-Id: Iff1758f9645e74690094207d92b5989553b27b25

5 years agoMerge "Mark the bubble as show in shade when selected" into qt-dev
Mady Mellor [Fri, 3 May 2019 21:14:33 +0000 (21:14 +0000)]
Merge "Mark the bubble as show in shade when selected" into qt-dev

5 years agoMerge "Statsd: support atom counts of new atoms." into qt-dev
TreeHugger Robot [Fri, 3 May 2019 21:10:04 +0000 (21:10 +0000)]
Merge "Statsd: support atom counts of new atoms." into qt-dev

5 years agoRestrict rotation when global actions panel is enabled
Steve Elliott [Fri, 3 May 2019 19:03:38 +0000 (15:03 -0400)]
Restrict rotation when global actions panel is enabled

Once the orientation changes to portrait, the panel will be displayed,
and the orientation will be locked to portrait.

If, when global actions is launched and a panel is available, the user
has their orientation locked to non-portrait, then their orientation
is unlocked, so that they may rotate to portrait in order to see the
panel.

In all cases, the user's orientation setting is restored once global
actions is dismissed.

Bug: 129343749

Test: unlock orientation, launch global actions in portrait, notice
      that orientation is locked, dismiss global actions, notice that
      orientation is unlocked

Test: unlock orientation, launch global actions in non-portrait,
      rotate to portrait, notice that orientation is now locked,
      dismiss global actions, notice that orientation is unlocked

Test: lock phone orientation to non-portrait, launch global actions,
      rotate to portrait, notice that orientation is locked, dismiss
      global actions, notice that orientation has reset and is locked

Change-Id: I3972929aede075de69ea5333dcaf445e6ace59b8

5 years agoMerge "Bold time in "At a Glance" of custom clocks" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 20:49:46 +0000 (20:49 +0000)]
Merge "Bold time in "At a Glance" of custom clocks" into qt-dev

5 years agoRemove temporary deprecated methods ContentSuggestionsService.
Zak Cohen [Thu, 25 Apr 2019 22:46:12 +0000 (15:46 -0700)]
Remove temporary deprecated methods ContentSuggestionsService.

Bug: 127532182
Test: CTS test
Change-Id: Icc0bc012a5e1a2c85d108a7fa7df481e570cd43a

5 years agoMerge "Whitelist 30075 for Switzerland" into qt-dev
Hall Liu [Fri, 3 May 2019 20:41:06 +0000 (20:41 +0000)]
Merge "Whitelist 30075 for Switzerland" into qt-dev

5 years agoDefaults for NIM for Q
Julia Reynolds [Fri, 3 May 2019 19:01:24 +0000 (15:01 -0400)]
Defaults for NIM for Q

- Show status icons for gentle notifications
- NAS is enabled for priorizing, contextual actions, and quick replies

Note: existing preferences will be reset to test onboarding

Test: atest
Fixes: 131913566
Change-Id: I3db20e27b0502897afa449945c4dc45418aab86e

5 years agoMerge "Properly handle activity start tokens for unordered broadcasts" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 20:06:24 +0000 (20:06 +0000)]
Merge "Properly handle activity start tokens for unordered broadcasts" into qt-dev

5 years agoMerge "Remove temporarily pre-grant permission" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 19:57:09 +0000 (19:57 +0000)]
Merge "Remove temporarily pre-grant permission" into qt-dev

5 years agoMerge "Consider lock icon when determining minimum top padding." into qt-dev
TreeHugger Robot [Fri, 3 May 2019 19:52:47 +0000 (19:52 +0000)]
Merge "Consider lock icon when determining minimum top padding." into qt-dev

5 years agoMerge "Fix null pointer exceptions" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 19:13:46 +0000 (19:13 +0000)]
Merge "Fix null pointer exceptions" into qt-dev

5 years agoMerge "Cache TextClassificationManager instead of TextClassifier" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 18:40:33 +0000 (18:40 +0000)]
Merge "Cache TextClassificationManager instead of TextClassifier" into qt-dev

5 years agoUpdate BiometricPrompt icons
Kevin Chyn [Wed, 1 May 2019 18:49:05 +0000 (11:49 -0700)]
Update BiometricPrompt icons

Adds pulsing animation for face dialog. Pulsing starts when the dialog
is done animating in.

Bug: 130191600

Test: manual
Test: no change to fingerprint

Change-Id: Icb3a78e32f8f78b0def063a4b48d6266c653375e

5 years agoMerge "Prevent dark mode backup from applying in before setup" into qt-dev
Salvador Martinez [Fri, 3 May 2019 18:31:08 +0000 (18:31 +0000)]
Merge "Prevent dark mode backup from applying in before setup" into qt-dev

5 years agoMerge "MediaCodec: save MediaCrypto ref until reset/release" into qt-dev
Robert Shih [Fri, 3 May 2019 18:20:16 +0000 (18:20 +0000)]
Merge "MediaCodec: save MediaCrypto ref until reset/release" into qt-dev

5 years agoMerge "Enabled removeUidDeviceAffinities" into qt-dev
Oscar Azucena [Fri, 3 May 2019 17:47:56 +0000 (17:47 +0000)]
Merge "Enabled removeUidDeviceAffinities" into qt-dev

5 years agoWhitelist 30075 for Switzerland
Hall Liu [Tue, 30 Apr 2019 17:05:48 +0000 (10:05 -0700)]
Whitelist 30075 for Switzerland

This number is a visual voicemail SMS number for Swisscom.

Bug: 120403639
Test: N/A
Change-Id: I8d8d6413b7f9869c13605e5175e4a20d48b3a23d

5 years agoMerge "Do not execute app transition too early" into qt-dev
Jorim Jaggi [Fri, 3 May 2019 17:15:28 +0000 (17:15 +0000)]
Merge "Do not execute app transition too early" into qt-dev

5 years agoMerge "Reenable CursorAnchorInfo API with ActivityView" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 17:07:35 +0000 (17:07 +0000)]
Merge "Reenable CursorAnchorInfo API with ActivityView" into qt-dev

5 years agoMerge "Ensure the notification is removed when bubble is removed & fix cancel all...
Mady Mellor [Fri, 3 May 2019 17:06:39 +0000 (17:06 +0000)]
Merge "Ensure the notification is removed when bubble is removed & fix cancel all" into qt-dev

5 years agoMerge "Metrics constants for new screen" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 17:03:49 +0000 (17:03 +0000)]
Merge "Metrics constants for new screen" into qt-dev

5 years agoMerge "Dump randomized MAC in bugreport" into qt-dev
Oscar Shu [Fri, 3 May 2019 17:00:40 +0000 (17:00 +0000)]
Merge "Dump randomized MAC in bugreport" into qt-dev

5 years agoMerge "Fix pressing back on bouncer" into qt-dev
Fabian Kozynski [Fri, 3 May 2019 17:00:25 +0000 (17:00 +0000)]
Merge "Fix pressing back on bouncer" into qt-dev

5 years agoMerge "Sharesheet - Fix expansion area min size" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 17:00:22 +0000 (17:00 +0000)]
Merge "Sharesheet - Fix expansion area min size" into qt-dev

5 years agoMerge "Sharesheet - Remove extra paddingbottom" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 17:00:19 +0000 (17:00 +0000)]
Merge "Sharesheet - Remove extra paddingbottom" into qt-dev

5 years agoCache TextClassificationManager instead of TextClassifier
Tony Mak [Fri, 3 May 2019 16:35:22 +0000 (17:35 +0100)]
Cache TextClassificationManager instead of TextClassifier

Calling getTextClassifier() make sure we use the latest set of flags.
This is important as NAS has a very long lifetime.

Test: atest SmartActionsHelperTest

BUG: 131904289
Change-Id: I48e843c074db2e48ffa8187a395ee6d953940654

5 years agoMerge "Include bypass whitelist in dump" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 16:35:22 +0000 (16:35 +0000)]
Merge "Include bypass whitelist in dump" into qt-dev

5 years agoMerge "Increase the timeout for Hearing Aids Pairing" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 16:21:03 +0000 (16:21 +0000)]
Merge "Increase the timeout for Hearing Aids Pairing" into qt-dev

5 years agoMerge changes from topic "check display id update" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 16:11:01 +0000 (16:11 +0000)]
Merge changes from topic "check display id update" into qt-dev

* changes:
  Unify context in ViewRoot
  Add test API getDisplayId for cts test

5 years agoMerge "Make DocumentCursor opt-out of having a self-observer" into qt-dev
Anton Hansson [Fri, 3 May 2019 15:57:38 +0000 (15:57 +0000)]
Merge "Make DocumentCursor opt-out of having a self-observer" into qt-dev

5 years agoMerge "Add an @hide way to adjust CursorAnchorInfo for another Matrix" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 15:56:32 +0000 (15:56 +0000)]
Merge "Add an @hide way to adjust CursorAnchorInfo for another Matrix" into qt-dev

5 years agoMerge "Only create resources for the non-system user" into qt-dev
Winson Chung [Fri, 3 May 2019 15:47:30 +0000 (15:47 +0000)]
Merge "Only create resources for the non-system user" into qt-dev

5 years agoMerge "Prevent deadlock in RollbackManager#getAvailabeRollbacks" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 15:39:46 +0000 (15:39 +0000)]
Merge "Prevent deadlock in RollbackManager#getAvailabeRollbacks" into qt-dev

5 years agoAdd new permission flags to @Flags int-def
Philip P. Moltmann [Fri, 26 Apr 2019 23:56:09 +0000 (16:56 -0700)]
Add new permission flags to @Flags int-def

also expose all flags for being tested.

Test: built
Bug: 131188279
Change-Id: I2874298d87a76ee2bc95f18346d8ae597a3152ad

5 years agoMerge changes from topic "screenshot-fd-optional-qt-dev" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 15:12:16 +0000 (15:12 +0000)]
Merge changes from topic "screenshot-fd-optional-qt-dev" into qt-dev

* changes:
  Use dev/null instead of tmp file
  Notify the caller about I/O error
  Pass valid file descriptor to binder

5 years agoBold time in "At a Glance" of custom clocks
Robert Snoeberger [Fri, 3 May 2019 14:46:15 +0000 (10:46 -0400)]
Bold time in "At a Glance" of custom clocks

Bug: 129348218
Test: manual - checked that time is bold
Change-Id: I8c3cdc68735746669dcc516e42607aceac818740

5 years agoChange FalsingManager to an interface for easier swapping.
Dave Mankoff [Thu, 2 May 2019 21:36:11 +0000 (17:36 -0400)]
Change FalsingManager to an interface for easier swapping.

This is a refactor. It touches a lot of files, but zero functionality.
The primary change is changing FalsingManager.getInstance() into
FalsingManagerFactory.getInstance(); chaning FalsingManager into an
interface, and then turning the existing FalsingManager into
FalsingManagerImpl, an implementation of that interface. Other changes
are merely references to those classes.

Bug: 130256776
Test: atest SystemUITests
Change-Id: I5d64a7673e4efc554105dd841b27807361ed3828

5 years agoDo not execute app transition too early
Jorim Jaggi [Fri, 26 Apr 2019 17:43:11 +0000 (19:43 +0200)]
Do not execute app transition too early

We execute an app transition if something was moved to the front,
but that activity was already resumed because when moving a task
to the front, we rely on the activityResumed callback to update
visibility and execute the transition usually, which doesn't
happen in that case.

However, we should only do that for the top task/stack as
otherwise we may execute an app transition too early in case an
activity behind the top one is still visible and resumed, like it
can happen when Launcher finishes the recents animation and
quickly launches the next one.

Test: Quick switch 100 times, no flashing
Bug: 129729087
Change-Id: Id76643e01c8e1c4b3ffd0d5a2fa38a35336e1d9e

5 years agoMerge "Enable tracepoint for hot activity starts" into qt-dev
Ioannis Ilkos [Fri, 3 May 2019 14:04:25 +0000 (14:04 +0000)]
Merge "Enable tracepoint for hot activity starts" into qt-dev

5 years agoMerge "Revert part of ag/6685504" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 14:02:32 +0000 (14:02 +0000)]
Merge "Revert part of ag/6685504" into qt-dev

5 years agoMerge "Trace opening/closing apps" into qt-dev
Jorim Jaggi [Fri, 3 May 2019 14:01:15 +0000 (14:01 +0000)]
Merge "Trace opening/closing apps" into qt-dev

5 years agoUse dev/null instead of tmp file
Abhijeet Kaur [Tue, 16 Apr 2019 17:28:20 +0000 (18:28 +0100)]
Use dev/null instead of tmp file

Use dev/null fd (instead of using fd from temporary file) when
screenshot fd is passed as null, as file deletion does not need
to be handled for dev/null.

Test: Take interactive bugreport (which does not need screenshot)
manually using shell (which calls bugreport API)
Bug: 128981582
Merged-In: I1719899e6cf3bffe1a96849691c051ff4f3a05ec
Change-Id: I1719899e6cf3bffe1a96849691c051ff4f3a05ec

5 years agoNotify the caller about I/O error
Abhijeet Kaur [Mon, 15 Apr 2019 09:16:42 +0000 (10:16 +0100)]
Notify the caller about I/O error

Call onError for caller of BugreportManager.start() if any io error
occurs during runtime.

Bug: 128981582
Test: Tested manually by throwing IO exception in the code when
bugreport is being generated, onError of the callback successfully
called.
Merged-In: I9033d85d392b926041fc26a86806a370752d062d
Change-Id: I9033d85d392b926041fc26a86806a370752d062d

5 years agoChange color of background for popup window
Mill Chen [Thu, 2 May 2019 14:30:58 +0000 (22:30 +0800)]
Change color of background for popup window

Add an attribute colorPopupBackground and set it in both Material and
DeviceDefault themes. This attribute in the Material theme will be set
to colorBackground and it will be colorBackgroundFloating in the
DeviceDefault theme.

Bug: 129993543
Test: visual
Change-Id: Id0572e38dd550930873d59161d84d0ab79283ee2

5 years agoMetrics constants for new screen
Julia Reynolds [Fri, 3 May 2019 13:39:19 +0000 (09:39 -0400)]
Metrics constants for new screen

Test: make
Bug: 128445911
Change-Id: I8577ed12b6c60e7a8996ec313d22b2adcba12b6a

5 years agoPass valid file descriptor to binder
Abhijeet Kaur [Fri, 29 Mar 2019 17:04:48 +0000 (17:04 +0000)]
Pass valid file descriptor to binder

screenshotFd needs to be optional in Bugreport API. For some bugreports
such as wifi,telephony, interactive etc taking a screenshot is not
required.

Initially, the API was sending invalid file descriptor to the Binder, but
that binder transaction could not be completed as Binder validates the
file descriptor to be valid and not-null.

Adding a tmp.png screenshot file to pass to bugreport API call. In a
separate CL in frameworks/native, added check that the bugreports that
don't require screenshots would not use this file descriptor value.

Bug: 128981582
Test: Tested by taking bugreports using Bugreport API in shell
Merged-In: I3233f5753506ae159c9fa591742e6b99e361039b
Change-Id: I3233f5753506ae159c9fa591742e6b99e361039b

5 years agoConsider lock icon when determining minimum top padding.
Robert Snoeberger [Thu, 2 May 2019 20:44:11 +0000 (16:44 -0400)]
Consider lock icon when determining minimum top padding.

Otherwise, the clock will be able to overlap with the lock icon in some
situations. A side effect of this change is that only 2 notifications
will be displayed when the now playing indication is present.

Fixes: 131311937
Test: manual - need three visible notifs + now playing indication
Change-Id: Ieffa97bc20a45fb82fb258deca7c1f289b0ce003

5 years agoColors updates for guts
Julia Reynolds [Thu, 2 May 2019 21:20:25 +0000 (17:20 -0400)]
Colors updates for guts

For a11y and night mode and night mode a11y

Fixes: 129507563
Test: manual
Change-Id: I0b472db88feddb6f92aa265524e84afbe30c824b

5 years agoMerge "Restrict background activity start by task" into qt-dev
Ricky Wai [Fri, 3 May 2019 13:24:58 +0000 (13:24 +0000)]
Merge "Restrict background activity start by task" into qt-dev

5 years agoFix pressing back on bouncer
Fabian Kozynski [Fri, 26 Apr 2019 19:40:43 +0000 (15:40 -0400)]
Fix pressing back on bouncer

If the user goes back when on Bouncer, do not animate the panel up. In
particular, DO NOT just animate the header out.

Additionally, only reset the bouncer if it's scrimmed and not
needFullScreen.

Test: manual, use flow of b/130525889
Test: swipe up in Keyguard and press back goes back to keyguard
Test: Expand shade and press Reply on notification, going back on
bouncer shows expanded shade
Test: Open camera, open gallery, going back on bouncer goes back to
camera
Test: SIM card bouncer, going back does not break
Fixes: 130525889
Change-Id: I122cf0858acbfdaa514efb32190369d95df6e001

5 years agoMerge "Don't allow enabling system decorations for untrusted virtual displays (1...
TreeHugger Robot [Fri, 3 May 2019 13:02:54 +0000 (13:02 +0000)]
Merge "Don't allow enabling system decorations for untrusted virtual displays (1/2)" into qt-dev

5 years agoMerge "Compute background color." into qt-dev
Robert Snoeberger [Fri, 3 May 2019 12:55:57 +0000 (12:55 +0000)]
Merge "Compute background color." into qt-dev

5 years agoMake DocumentCursor opt-out of having a self-observer
Anton Hansson [Tue, 30 Apr 2019 15:57:10 +0000 (16:57 +0100)]
Make DocumentCursor opt-out of having a self-observer

A content observer is registered by default when setting a notification
uri for a Cursor, in order to make the Cursor correctly notify listeners
of all changes to its URI, not just the ones made locally.

This is not required for DocumentCursor, because it already has a
separate mechanism for watching for all changes made to the data backed
by the cursor.

This avoids DocumentProviders having to call into system_server to
answer queries about directory trees, which can otherwise add up to
significant amounts of time for large directory trees. In my tests,
this improves the performance of iterating through a directory by
roughly 20%. This number is likely to be higher on non-test devices,
that probably see more binder contention, and will also depend on the
structure of the file tree.

Bug: 130276310
Test: SAF test app
Change-Id: I386363b0608c420e9847caf6fbf6686641c955e2

5 years agoSharesheet - Fix expansion area min size
Matt Pietal [Fri, 3 May 2019 11:36:21 +0000 (07:36 -0400)]
Sharesheet - Fix expansion area min size

Need to make sure we reserve enough height for the 4->8 direct share
expansion to work. Fix the calculation for offseting the sharesheet.

Bug: 129980100
Test: Visual inspection
Change-Id: Iaef245b9b8e2ed1dbacf01107dbafb6bf5016483

5 years agoMerge "Fix handling of multi-package enable rollback failures." into qt-dev
TreeHugger Robot [Fri, 3 May 2019 11:31:34 +0000 (11:31 +0000)]
Merge "Fix handling of multi-package enable rollback failures." into qt-dev

5 years agoMerge "Mark smart replies as sent on notification update/removal." into qt-dev
Gustav Sennton [Fri, 3 May 2019 10:44:00 +0000 (10:44 +0000)]
Merge "Mark smart replies as sent on notification update/removal." into qt-dev

5 years agoDon't allow enabling system decorations for untrusted virtual displays (1/2)
Chilun [Thu, 11 Apr 2019 11:49:42 +0000 (19:49 +0800)]
Don't allow enabling system decorations for untrusted virtual displays (1/2)

We should only allow enabling system decorations for callers with the
right permission.

Bug: 130284250
Test: atest MultiDisplaySystemDecorationTests
Test: atest MultiDisplayPolicyTests
Test: atest ActivityManagerGetConfigTests#testDeviceConfigWithSecondaryDisplay
Test: atest MultiDisplayActivityLaunchTests#testLaunchExternalDisplayActivityWhilePrimaryOff
Change-Id: I008d44bdf1378a675a3197e1467521dcf7b275c5

5 years agoEnable tracepoint for hot activity starts
Ioannis Ilkos [Fri, 3 May 2019 09:47:30 +0000 (10:47 +0100)]
Enable tracepoint for hot activity starts

Bug: 131855693
Test: atest ActivityMetricsLoggerTests
Change-Id: I2adb00f4fc05ab4f67f27dc5565de3e00bc601a3

5 years agoFix handling of multi-package enable rollback failures.
Richard Uhler [Thu, 2 May 2019 11:36:39 +0000 (12:36 +0100)]
Fix handling of multi-package enable rollback failures.

Failure to enable rollback for one of the packages in a multi-package
install should fail to enable rollback for all packages in the
multi-package install. That was not the case prior to this CL, which
could lead to partial rollbacks.

Keep track of how many child sessions we expect to enable rollback for
and double check that we succeeded before making the rollback available.
This involves some cleanup of how we track parent vs child sessions when
enabling rollback.

Bug: 128656191
Test: atest RollbackTest, with new test added.

Change-Id: I737896cdc1915396748c5c1959b5397af793258a

5 years agoMerge "Ensure race between rollback and roll forward is properly handled" into qt-dev
Richard Uhler [Fri, 3 May 2019 08:09:17 +0000 (08:09 +0000)]
Merge "Ensure race between rollback and roll forward is properly handled" into qt-dev

5 years agoMerge "Disable rounded corners when in multi window" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 08:06:24 +0000 (08:06 +0000)]
Merge "Disable rounded corners when in multi window" into qt-dev

5 years agoMerge "Acquire DockManager via dagger" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 07:33:37 +0000 (07:33 +0000)]
Merge "Acquire DockManager via dagger" into qt-dev

5 years agoDisable rounded corners when in multi window
Lucas Dupin [Tue, 30 Apr 2019 00:55:38 +0000 (17:55 -0700)]
Disable rounded corners when in multi window

We should not draw rounded corners when animating windows into split
view. The divider is a single horizontal line, and we don't support
multiple radii per window.

Fixes: 129540518
Test: visual
Change-Id: Ic31395c77f376053a136a9c55382b74b4157ee34
Merged-In: Ic31395c77f376053a136a9c55382b74b4157ee34

5 years agoMerge "Fixing wrong panel state being sent to launcher" into qt-dev
Sunny Goyal [Fri, 3 May 2019 06:55:55 +0000 (06:55 +0000)]
Merge "Fixing wrong panel state being sent to launcher" into qt-dev

5 years agoMerge "Revert "Use /data/vendor_ce/0/facedata for FaceHAL's secure storage"" into...
TreeHugger Robot [Fri, 3 May 2019 05:49:53 +0000 (05:49 +0000)]
Merge "Revert "Use /data/vendor_ce/0/facedata for FaceHAL's secure storage"" into qt-dev

5 years agoMerge "Allow specifying full component names in sysui plugin whitelist" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 04:45:33 +0000 (04:45 +0000)]
Merge "Allow specifying full component names in sysui plugin whitelist" into qt-dev

5 years agoOnly create resources for the non-system user
Winson Chung [Thu, 2 May 2019 22:42:22 +0000 (15:42 -0700)]
Only create resources for the non-system user

- It is expensive to create resources, so skip recreating
  them for the system user (they already exist for the
  system ui context). We only recreate resources when
  switching to a non-system user.

Bug: 131856992
Test: Manual
Change-Id: I5353fd336134f98e1d48bbf705ea30310447bccd

5 years agoMerge "Fix binder leakage when turning off Bluetooth" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 04:04:34 +0000 (04:04 +0000)]
Merge "Fix binder leakage when turning off Bluetooth" into qt-dev

5 years agoMerge "Update strings with UX mocks" into qt-dev
Kevin Chyn [Fri, 3 May 2019 03:20:58 +0000 (03:20 +0000)]
Merge "Update strings with UX mocks" into qt-dev

5 years agoEnsure the notification is removed when bubble is removed & fix cancel all
Mady Mellor [Thu, 28 Mar 2019 21:18:06 +0000 (14:18 -0700)]
Ensure the notification is removed when bubble is removed & fix cancel all

Bubbles has some particular notification behaviour needs:

1) Whenever there is a bubble, the notif is kept around but may be hidden
   from the shade
2) When the bubble is dismissed, if the notif is no longer in the
   shade => really remove the notification
3) When the bubble is dismissed, if there is still a notification in the
   shade => notif stays around and is normal
4) Clear all should only hide the bubble notification, not remove the
   bubble
5) Apps canceling a notification that has a bubble will cancel the bubble

This CL does this by:

* Including the removal reason removeNotification path
* Adding a NotificationRemoveInterceptor that gets the option of overriding
  the removal
* BubbleController has this new interceptor and uses the removal reason
  to determine what should happen to the bubble & if the notification
  should be allowed to be removed
* When the bubble is dismissed, if the notif is no longer in the shade,
  then actually remove that notification

Test: atest BubbleControllerTest NotificationEntryManagerTest
Bug: 130347307
Bug: 130687293
Change-Id: I4459864a2ee5522076117f84ae37022bdfe4ee5d

5 years agoMerge "Add event log for addToStopping" into qt-dev
Wei Sheng Shih [Fri, 3 May 2019 02:25:03 +0000 (02:25 +0000)]
Merge "Add event log for addToStopping" into qt-dev

5 years agoMerge "Animate padlock when waking up" into qt-dev
Lucas Dupin [Fri, 3 May 2019 02:22:33 +0000 (02:22 +0000)]
Merge "Animate padlock when waking up" into qt-dev

5 years agoMerge "Inject session id on all AutofillIds kept in the service." into qt-dev
TreeHugger Robot [Fri, 3 May 2019 02:17:37 +0000 (02:17 +0000)]
Merge "Inject session id on all AutofillIds kept in the service." into qt-dev

5 years agoMerge "Revert "Revert "Make the network stack a persistent process.""" into qt-dev
Dario Freni [Fri, 3 May 2019 02:12:05 +0000 (02:12 +0000)]
Merge "Revert "Revert "Make the network stack a persistent process.""" into qt-dev

5 years agoMerge "Be quiet" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 01:48:29 +0000 (01:48 +0000)]
Merge "Be quiet" into qt-dev

5 years agoMerge "ContentCaptureManager is notified when FLAG_SECURE is set dynamically on windo...
TreeHugger Robot [Fri, 3 May 2019 01:33:38 +0000 (01:33 +0000)]
Merge "ContentCaptureManager is notified when FLAG_SECURE is set dynamically on windows." into qt-dev

5 years agoMerge "Fix issue where navbar wouldn't be on lock screen" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 01:26:41 +0000 (01:26 +0000)]
Merge "Fix issue where navbar wouldn't be on lock screen" into qt-dev

5 years agoPrevent dark mode backup from applying in before setup
Salvador Martinez [Thu, 2 May 2019 21:32:12 +0000 (14:32 -0700)]
Prevent dark mode backup from applying in before setup

This CL makes it so that UIModeManager will not allow dark mode
to be changed prior to initial setup wizard being completed.
Additionally, it makes it so that when UIModeManager starts it
will try to start in light mode prior to setup wizard completing
regardless of what the backed up value is. We also register for
an observer if when we start UIModeManager we notice that setup
wizard has not run and defer updating dark mode to the true value
until we see that setup wizard completes.

Test: Manual
Bug: 119666724
Change-Id: Ie9cf36c8483d9cdd9e7aadd3aae4cc0ef15e8d45

5 years agoAllow specifying full component names in sysui plugin whitelist
Steve Elliott [Wed, 1 May 2019 20:55:33 +0000 (16:55 -0400)]
Allow specifying full component names in sysui plugin whitelist

This allows for a more granular whitelist, where a single package
could have multiple plugins available but only a subset are enabled.

Bug: 123881720
Test: manual
Change-Id: Ie9b2c31f08d9dac8a892501345e8ff85143f40f9

5 years agoMerge "Revert change to force_dark property" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 00:21:38 +0000 (00:21 +0000)]
Merge "Revert change to force_dark property" into qt-dev