OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Fix dropped rotation events when unlocking orientation" into qt-dev
TreeHugger Robot [Sun, 19 May 2019 14:23:32 +0000 (14:23 +0000)]
Merge "Fix dropped rotation events when unlocking orientation" into qt-dev

5 years agoFix dropped rotation events when unlocking orientation
Steve Elliott [Fri, 17 May 2019 18:39:53 +0000 (14:39 -0400)]
Fix dropped rotation events when unlocking orientation

When unlocking orientation on the same frame as a rotation takes place
(example: orientation is locked to landscape, but phone is physically
oriented to portrait), onConfigurationChange is not invoked, and so
Global Actions is positioned as if it were in the locked orientation,
even though it has been rotated.

We work around this by post()ing the rotation unlock, so that it
happens on the next frame, at which point onConfigurationChange is
correctly invoked and the layout is re-oriented properly.

Fixes: 132581161
Test: manual
Change-Id: I1c11844e24bea115f9f44560fef8db863d19d7af

5 years agoMerge "Fix issue with wrong user task being resolved" into qt-dev
Winson Chung [Sun, 19 May 2019 03:54:23 +0000 (03:54 +0000)]
Merge "Fix issue with wrong user task being resolved" into qt-dev

5 years agoMerge "Revert "Align bubble behavior with DND settings."" into qt-dev
Josh Tsuji [Sun, 19 May 2019 03:11:35 +0000 (03:11 +0000)]
Merge "Revert "Align bubble behavior with DND settings."" into qt-dev

5 years agoMerge "Adds a PhoneStateMonitor to the AssistManager" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 18:26:13 +0000 (18:26 +0000)]
Merge "Adds a PhoneStateMonitor to the AssistManager" into qt-dev

5 years ago[automerger skipped] Import translations. DO NOT MERGE
Bill Yi [Sat, 18 May 2019 14:57:23 +0000 (07:57 -0700)]
[automerger skipped] Import translations. DO NOT MERGE
am: d1ab5aced6 -s ours
am skip reason: subject contains skip directive

Change-Id: I0c65f5c6aaf40e69e29bba12f8aa470169e12302

5 years agoMerge "Add throttling by job run session." into qt-dev
Kweku Adams [Sat, 18 May 2019 14:38:56 +0000 (14:38 +0000)]
Merge "Add throttling by job run session." into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 14:27:54 +0000 (14:27 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoFix issue with wrong user task being resolved
Winson Chung [Fri, 17 May 2019 00:36:05 +0000 (17:36 -0700)]
Fix issue with wrong user task being resolved

- Setup wizard used to finish itself and start home automatically, but now
  we have the Tips app show afterwards which requires the user to swipe
  up to go home as a part of learning the gesture. Previously that would
  have created the home task for the secondary user and subsequent swipes
  would work, but in the new flow, the creation of the secondary user
  home task would never happen because the recents animation logic tries
  to find the primary user's home task. This is only an issue on the first
  launch for the secondary user, subsequent launches after completing SUW
  will start home as a part of switching users.

  This change ensures that we account for the user when trying to resolve
  an existing target activity.

Bug: 132410734
Test: atest RecentsAnimationTest
Change-Id: If14ad535948c5aadd83af528592b320dba62c40e

5 years agoMerge "Ensure that we use the current user context when adding nav mode listeners...
Winson Chung [Sat, 18 May 2019 14:24:16 +0000 (14:24 +0000)]
Merge "Ensure that we use the current user context when adding nav mode listeners" into qt-dev

5 years agoMerge "Allow updates to importance of default apps" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 09:25:23 +0000 (09:25 +0000)]
Merge "Allow updates to importance of default apps" into qt-dev

5 years agoMerge "Remove assist status stuff from StatusBar." into qt-dev
Matt Casey [Sat, 18 May 2019 09:21:58 +0000 (09:21 +0000)]
Merge "Remove assist status stuff from StatusBar." into qt-dev

5 years agoMerge "Add workaround for b/124210145" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 06:16:21 +0000 (06:16 +0000)]
Merge "Add workaround for b/124210145" into qt-dev

5 years agoMerge "Add DeviceConfig flags to Privacy Indicators" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 06:14:40 +0000 (06:14 +0000)]
Merge "Add DeviceConfig flags to Privacy Indicators" into qt-dev

5 years agoMerge "Aggresive performance optimizations." into qt-dev
Jeff Sharkey [Sat, 18 May 2019 05:48:35 +0000 (05:48 +0000)]
Merge "Aggresive performance optimizations." into qt-dev

5 years agoAggresive performance optimizations.
Jeff Sharkey [Sat, 18 May 2019 00:48:11 +0000 (18:48 -0600)]
Aggresive performance optimizations.

Now that we have LocalCallingIdentity, we can start caching it in
very narrow cases.  We must be careful to not cache too long, since
any changes to granted permissions for the UID mean we need to
re-evaluate any cached answers.

The best middle-ground for this in the Q release is to use an active
camera session as a proxy for when we should create a cache object
and then later invalidate it.  (It's very unlikely that a user
changes permissions while actively using the camera, and this is
a strong signal that the caller is sensitive to performance.)

Many other sprinkled optimizations to avoid extra binder calls into
the OS, such as aggressively caching VolumeInfo related details.

Track IDs that are owned by each LocalCallingIdentity, to speed up
all future security checks.

Dispatch all change notifications asynchronously, and delay them by
several seconds while the camera is being actively used, to give
more important foreground work a fighting chance.  Invalidate
thumbnails asynchronously.

Optimizations to ModernMediaScanner where it's safe to skip the
"reconcile" and "clean" steps when we're focused on a single file
that we successfully scanned.

Local tests show this CL improves performance of a test app that
takes 100 rapid shots by 45%.  (All the collective optimizations
done so far this week add up to a 70% improvement.)

Bug: 130758409
Test: atest --test-mapping packages/providers/MediaProvider
Exempt-From-Owner-Approval: trivial manifest change
Change-Id: I38cc826af47d41219ef44eae6fbd293caa0c01d5

5 years agoMerge "Add watchdog triggered staged rollback test" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 05:44:20 +0000 (05:44 +0000)]
Merge "Add watchdog triggered staged rollback test" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 18 May 2019 05:07:53 +0000 (22:07 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ie71c6b1ae7229c5b77a93235ce1e596ce7185f57

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 18 May 2019 04:44:54 +0000 (21:44 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I474bf516ef1703354dfc47007c50c934b5825cf4

5 years agoMerge "StatsCompanionService: register thermal event on all types" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 04:20:00 +0000 (04:20 +0000)]
Merge "StatsCompanionService: register thermal event on all types" into qt-dev

5 years agoMerge "Fixing the metrics_constants jump" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 04:15:20 +0000 (04:15 +0000)]
Merge "Fixing the metrics_constants jump" into qt-dev

5 years agoMerge "Revert "Reset system fixed to clean storage perm model 2"" into qt-dev
Philip P. Moltmann [Sat, 18 May 2019 02:33:23 +0000 (02:33 +0000)]
Merge "Revert "Reset system fixed to clean storage perm model 2"" into qt-dev

5 years agoMerge "Add timestamp and read status extra constants to MAP Client" into qt-dev
Sal Savage [Sat, 18 May 2019 02:22:38 +0000 (02:22 +0000)]
Merge "Add timestamp and read status extra constants to MAP Client" into qt-dev

5 years agoMerge "Make package whitelist the last check in activity starter." into qt-dev
TreeHugger Robot [Sat, 18 May 2019 02:18:29 +0000 (02:18 +0000)]
Merge "Make package whitelist the last check in activity starter." into qt-dev

5 years agoRevert "Align bubble behavior with DND settings."
Josh Tsuji [Sat, 18 May 2019 01:55:47 +0000 (01:55 +0000)]
Revert "Align bubble behavior with DND settings."

This reverts commit 7aa18112b52b3e369b0c03cc95848866cda0319b.

Reason for revert: b/132891091

Bug: 132891091
Change-Id: I7775bfe2d0c65908f0f6ec14e52beaf58528e19a

5 years agoMerge "Wait for scrim animation before showing lock icon" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 01:20:39 +0000 (01:20 +0000)]
Merge "Wait for scrim animation before showing lock icon" into qt-dev

5 years agoMerge "Correct pointer position" into qt-dev
TreeHugger Robot [Sat, 18 May 2019 00:24:50 +0000 (00:24 +0000)]
Merge "Correct pointer position" into qt-dev

5 years agoMerge "Making wifi icon point to the new status_bar_system_icon_size" into qt-dev
John Choi [Sat, 18 May 2019 00:19:20 +0000 (00:19 +0000)]
Merge "Making wifi icon point to the new status_bar_system_icon_size" into qt-dev

5 years agoAdd throttling by job run session.
Kweku Adams [Tue, 14 May 2019 20:44:32 +0000 (13:44 -0700)]
Add throttling by job run session.

A session is considered a period of time when jobs for an app ran.
Overlapping jobs are counted as part of the same session. This adds a
way to limit the number of job sessions an app can run. This includes a
mechanism to coalesce sessions -- if a second session started soon after
one just ended, they will only be counted as one session.

Bug: 132227621
Test: atest com.android.server.job.controllers.QuotaControllerTest
Test: atest CtsJobSchedulerTestCases
Change-Id: Id2ac4037731f57547d00985e8d549b9e990a5f3e

5 years agoMerge "Bind print svcs as "in foreground" for location" into qt-dev
TreeHugger Robot [Fri, 17 May 2019 23:10:30 +0000 (23:10 +0000)]
Merge "Bind print svcs as "in foreground" for location" into qt-dev

5 years agoMerge "Camera: Always return 'null' for unsupported formats" into qt-dev
TreeHugger Robot [Fri, 17 May 2019 21:35:23 +0000 (21:35 +0000)]
Merge "Camera: Always return 'null' for unsupported formats" into qt-dev

5 years agoRemove assist status stuff from StatusBar.
Matt Casey [Wed, 15 May 2019 22:49:37 +0000 (18:49 -0400)]
Remove assist status stuff from StatusBar.

Assist views no longer live in StatusBar.

Bug: 132065047
Test: Manual test, no expected behavior change.
Change-Id: I427eedf8c989b7af4f957a6e946919d57b83e827

5 years agoChange idleness according to screen status
Eric Jeong [Thu, 16 May 2019 19:21:16 +0000 (12:21 -0700)]
Change idleness according to screen status

- Unlike DeviceIdlenessTracker, CarIdlenessTracker didn't listen to
screen status change.
- android.jobscheduler.cts.DeviceStatesTest#testDeviceChangeIdleActiveState
fails due to the above reason.
- It is natural to exit idle when screen is turned on, unless forced idle
is set or car is in garage mode.

Bug: 130662327
Test: Run CtsJobSchedulerTestCases
Change-Id: I8c04c619b34b9e72027914e080aa0f4ef7519422

5 years agoMerge "Camera: Handle out-of-order frameNumber for ZSL requests" into qt-dev
TreeHugger Robot [Fri, 17 May 2019 21:20:44 +0000 (21:20 +0000)]
Merge "Camera: Handle out-of-order frameNumber for ZSL requests" into qt-dev

5 years agoMerge "Whitelist all perms on installExistingPackage" into qt-dev
Philip P. Moltmann [Fri, 17 May 2019 19:56:19 +0000 (19:56 +0000)]
Merge "Whitelist all perms on installExistingPackage" into qt-dev

5 years agoMaking wifi icon point to the new status_bar_system_icon_size
John Choi [Fri, 17 May 2019 19:52:59 +0000 (12:52 -0700)]
Making wifi icon point to the new status_bar_system_icon_size

This matches what core SystemUI does.

Bug: 132354163
Test: manual
Change-Id: I39b1d80077581472d884b1a159b775522516226f

5 years agoMerge "Remove old logic from tinting prototype" into qt-dev
Winson Chung [Fri, 17 May 2019 19:33:34 +0000 (19:33 +0000)]
Merge "Remove old logic from tinting prototype" into qt-dev

5 years agoCorrect pointer position
Lyn Han [Thu, 16 May 2019 21:17:30 +0000 (14:17 -0700)]
Correct pointer position

Pointer pointed to the right of bubble center. This happened because:
- Bubbles live in expanded view container (x includes expanded view padding)
- Pointer lives in expanded view, which has padding (x does not include padding)

This change removes expanded view padding when deriving pointer location from bubbles.

Bug: 132907741
Test: manual

Change-Id: Ic301d578fee4e6a36be9642ba30ac0cc74cdd3cb

5 years agoPowerManagerService: notify SurfaceFlinger on power hint
Ady Abraham [Wed, 8 May 2019 21:56:38 +0000 (14:56 -0700)]
PowerManagerService: notify SurfaceFlinger on power hint

To reduce jank on the first buffer, SurfaceFlinger needs to know when there is a touch
event so it can move to performance refresh rate before the first buffer

Test: switch between apps using gesture navigation
Bug: 131906818
Change-Id: I077e6d367d05ed9847d84e7e73ca776a9277b87a

5 years agoMerge "Fix @Suppress annotation to be the kotlin style" into qt-dev
Evan Laird [Fri, 17 May 2019 17:02:52 +0000 (17:02 +0000)]
Merge "Fix @Suppress annotation to be the kotlin style" into qt-dev

5 years agoWait for scrim animation before showing lock icon
Lucas Dupin [Fri, 17 May 2019 02:48:30 +0000 (19:48 -0700)]
Wait for scrim animation before showing lock icon

Fixes: 132198859
Test: unlock with fingerprint
Change-Id: I9cb01bee696991102cbb65cc1f6f443f42f70e70

5 years agoMerge "DecorView: Adjust light scrim" into qt-dev
Adrian Roos [Fri, 17 May 2019 16:28:22 +0000 (16:28 +0000)]
Merge "DecorView: Adjust light scrim" into qt-dev

5 years agoAdd DeviceConfig flags to Privacy Indicators
Fabian Kozynski [Mon, 6 May 2019 14:18:41 +0000 (10:18 -0400)]
Add DeviceConfig flags to Privacy Indicators

Restricts Privacy Indicators behind the same flags as Permissions Hub.

When flag is set to false:
* PrivacyItemController is set to not listening (listens to changes in
flag)
* Location icon is reverted back to P behavior
* Location icon is shown in QS Header icons (listens to changes in
flags)
* No privacy chip shown.

We need to listen to changes because most of our views/controllers
persist forever.

Test: manual, change the flag and observe things appear/disappear
Fixes: 131826452
Fixes: 132644949

Change-Id: I329596760f3c06feb2161b077af008da782a50be

5 years agoAllow updates to importance of default apps
Beverly [Thu, 16 May 2019 19:46:11 +0000 (15:46 -0400)]
Allow updates to importance of default apps

As long as it's not IMPORTANCE_NONE

Test: manual
    1. Messages app > Settings > Notifications
    2. Change behavior from Prioritized to Gentle
    3. Back
    4. Click on Notifications again
    5. Observe: setting was changed to Gentle
Test: atest PreferencesHelperTest
Fixes: 131893709
Change-Id: I1710435e9dfa741b14a8de3da07bff1d17e884b8

5 years agoMerge "Change the icon for the LOGGED_IN notification." into qt-dev
Lorenzo Colitti [Fri, 17 May 2019 13:58:09 +0000 (13:58 +0000)]
Merge "Change the icon for the LOGGED_IN notification." into qt-dev

5 years agoMerge "Fix Invalid SIM is not displayed for card error condition and add test case...
Andy Chou [Fri, 17 May 2019 13:38:53 +0000 (13:38 +0000)]
Merge "Fix Invalid SIM is not displayed for card error condition and add test case testTelephonyCapable_SimState_CardIOError()" into qt-dev

5 years agoAdd watchdog triggered staged rollback test
Richard Uhler [Wed, 6 Mar 2019 10:39:46 +0000 (10:39 +0000)]
Add watchdog triggered staged rollback test

Test: atest StagedRollbackTest
Bug: 132758573
Bug: 132866890
Change-Id: I80e4ebf3659702992f32504690ea5ec4bab88534

5 years agoMerge "Workaround for USAP support in jitzygote." into qt-dev
Nicolas Geoffray [Fri, 17 May 2019 12:31:12 +0000 (12:31 +0000)]
Merge "Workaround for USAP support in jitzygote." into qt-dev

5 years agoMerge "Add support for returning installed apex modules in getInstalledModules" into...
TreeHugger Robot [Fri, 17 May 2019 12:13:32 +0000 (12:13 +0000)]
Merge "Add support for returning installed apex modules in getInstalledModules" into qt-dev

5 years agoFixing the metrics_constants jump
Susi Kharraz-Post [Tue, 14 May 2019 21:23:43 +0000 (17:23 -0400)]
Fixing the metrics_constants jump

There were merge problems because master was modified independent of
qt-dev. This should be fixed by now so moving the number back to next
available.

Bug: 132719892
Change-Id: I19b28734b08877cb54574d5a059da5e7befe54ba
Test: N/A

5 years agoDecorView: Adjust light scrim
Adrian Roos [Wed, 15 May 2019 17:38:49 +0000 (19:38 +0200)]
DecorView: Adjust light scrim

Fixes: 132939499
Test: Verify edge-to-edge-ified share sheet has an appropriate scrim
Change-Id: Ic0274ba2f9f3c36ec436fe5dab172efd13158e16

5 years agoWorkaround for USAP support in jitzygote.
Nicolas Geoffray [Thu, 16 May 2019 13:36:06 +0000 (14:36 +0100)]
Workaround for USAP support in jitzygote.

USAP improve app startup by ~5ms, so enable it for the
jitzygote experiment.

Bug: 119800099
Test: boots and usap processes live
Change-Id: I918d81f56cc7e9fcc8a053feadd7878108e6d590

5 years agoMerge "Ignore NetworkTest when running CtsNetTestCases in instant app mode" into...
Paul Hu [Fri, 17 May 2019 06:46:36 +0000 (06:46 +0000)]
Merge "Ignore NetworkTest when running CtsNetTestCases in instant app mode" into qt-dev

5 years agoChange the icon for the LOGGED_IN notification.
Lorenzo Colitti [Fri, 17 May 2019 06:16:56 +0000 (23:16 -0700)]
Change the icon for the LOGGED_IN notification.

This notification is shown when the user has already logged in to
the network, so it should not have a question mark on it.

Fix: 130526201
Test: atest FrameworksNetTests
Test: manually signed in to portal
Change-Id: I8250236bc4ba251492a6cb9bf23e67666ef860d3
Merged-In: I8250236bc4ba251492a6cb9bf23e67666ef860d3
(cherry picked from commit fce363555029b92b1532058555797d6ef1afb09c)

5 years agoMerge changes I38958555,Ie6879de8 into qt-dev
Josh Tsuji [Fri, 17 May 2019 03:20:44 +0000 (03:20 +0000)]
Merge changes I38958555,Ie6879de8 into qt-dev

* changes:
  Align bubble behavior with DND settings.
  Don't animate new bubbles in until the stack pos is set.

5 years agoAlign bubble behavior with DND settings.
Joshua Tsuji [Mon, 13 May 2019 17:57:38 +0000 (13:57 -0400)]
Align bubble behavior with DND settings.

As described at https://docs.google.com/presentation/d/1mPxqu8QBWpz-ieWkJGyLzBLcfAJNVUn8sxS1m58ogn8/edit#slide=id.g51f96ac1fd_25_230.

Due to b/132699005, the 'new' dot won't appear if 'Don't pop notifications on screen' is selected in DND restrictions.

Test: atest SystemUITests
Bug: 123540994
Fixes: 123540994
Change-Id: I38958555721fa3d9dd44c451c32c28d9a73415f5

5 years agoMerge "Do not mark in-process NetworkStack as persistent" into qt-dev
Remi NGUYEN VAN [Fri, 17 May 2019 02:29:16 +0000 (02:29 +0000)]
Merge "Do not mark in-process NetworkStack as persistent" into qt-dev

5 years agoAdds a PhoneStateMonitor to the AssistManager
Govinda Wasserman [Wed, 8 May 2019 12:02:47 +0000 (08:02 -0400)]
Adds a PhoneStateMonitor to the AssistManager

This allows the AssistManager to determine the state of the phone when
the Assistant is invoked. This will be used for logging and allowing the
Assistant to alter its behavior based on the invokation state.

Note that SysUI is currently unable to differentiate between Launcher
states, so all Launcher states will be reported as PHONE_STATE_HOME.

Test: Tested locally
BUG:128982146
Change-Id: Iee40e42830f5a07845240c98bec5b87bd7c08eb7

5 years agoStatsCompanionService: register thermal event on all types
Wei Wang [Thu, 16 May 2019 23:59:53 +0000 (16:59 -0700)]
StatsCompanionService: register thermal event on all types

Previous stats only looks at SKIN type event, but with new version of
ATOM pushed we should record all event.

Test: Build
Bug: 119688911
Change-Id: I4b2da35f2c2a13ed7de2a9f3a9f6ec1644a2d675

5 years agoMerge "Tracks app window animation endpoint" into qt-dev
Ian Chang [Thu, 16 May 2019 23:59:25 +0000 (23:59 +0000)]
Merge "Tracks app window animation endpoint" into qt-dev

5 years agoMerge "Fixed concurrent access network registration info" into qt-dev
Jack Yu [Thu, 16 May 2019 23:32:25 +0000 (23:32 +0000)]
Merge "Fixed concurrent access network registration info" into qt-dev

5 years agoDon't animate new bubbles in until the stack pos is set.
Joshua Tsuji [Tue, 14 May 2019 20:45:39 +0000 (16:45 -0400)]
Don't animate new bubbles in until the stack pos is set.

Test: atest SystemUITests
Bug: 132782486
Change-Id: Ie6879de845dc1acb4fc5ee467e2384407394d345

5 years agoMerge "Ensure that SysUI & listeners get the newly updated bubble state" into qt-dev
Mady Mellor [Thu, 16 May 2019 22:36:59 +0000 (22:36 +0000)]
Merge "Ensure that SysUI & listeners get the newly updated bubble state" into qt-dev

5 years agoMerge "Hide media on AOD when not playing" into qt-dev
Lucas Dupin [Thu, 16 May 2019 22:33:45 +0000 (22:33 +0000)]
Merge "Hide media on AOD when not playing" into qt-dev

5 years agoMerge "Compare ringtones using IDs." into qt-dev
Jeff Sharkey [Thu, 16 May 2019 21:52:01 +0000 (21:52 +0000)]
Merge "Compare ringtones using IDs." into qt-dev

5 years agoFixed concurrent access network registration info
Jack Yu [Thu, 16 May 2019 21:27:29 +0000 (14:27 -0700)]
Fixed concurrent access network registration info

Fixed by adding synchronization block for every place
accessing network registration info in service state.

Bug: 131883293
Test: Manual
Change-Id: Ic10931b7fab998bfebe09d316a2d87886222dae3

5 years agoMerge "Add new IncidentManager.requestAuthorization method that takes an executor...
Joe Onorato [Thu, 16 May 2019 21:23:54 +0000 (21:23 +0000)]
Merge "Add new IncidentManager.requestAuthorization method that takes an executor." into qt-dev

5 years agoMerge "Fix movement of RTC alarms with time changes" into qt-dev
TreeHugger Robot [Thu, 16 May 2019 21:16:41 +0000 (21:16 +0000)]
Merge "Fix movement of RTC alarms with time changes" into qt-dev

5 years agoMerge "Add alert description to IncidentDetails in statsd_config" into qt-dev
Yao Chen [Thu, 16 May 2019 21:09:55 +0000 (21:09 +0000)]
Merge "Add alert description to IncidentDetails in statsd_config" into qt-dev

5 years agoMerge "Clean up ProcessRecord when reuse a pid." into qt-dev
Hui Yu [Thu, 16 May 2019 20:50:45 +0000 (20:50 +0000)]
Merge "Clean up ProcessRecord when reuse a pid." into qt-dev

5 years agoMerge "Fix BatterySaverStateMachineTest." into qt-dev
TreeHugger Robot [Thu, 16 May 2019 20:22:52 +0000 (20:22 +0000)]
Merge "Fix BatterySaverStateMachineTest." into qt-dev

5 years agoMerge "Allow "cmd overlay list" to list all overlays" into qt-dev
Ryan Mitchell [Thu, 16 May 2019 20:11:09 +0000 (20:11 +0000)]
Merge "Allow "cmd overlay list" to list all overlays" into qt-dev

5 years agoMerge "Metrics for content capture." into qt-dev
Adam He [Thu, 16 May 2019 19:53:04 +0000 (19:53 +0000)]
Merge "Metrics for content capture." into qt-dev

5 years agoMerge "Fixed an NPE in the RegionSamplingHelper" into qt-dev
Selim Cinek [Thu, 16 May 2019 19:46:59 +0000 (19:46 +0000)]
Merge "Fixed an NPE in the RegionSamplingHelper" into qt-dev

5 years agoMerge "Tuned the back gesture further" into qt-dev
Selim Cinek [Thu, 16 May 2019 19:45:47 +0000 (19:45 +0000)]
Merge "Tuned the back gesture further" into qt-dev

5 years agoCompare ringtones using IDs.
Jeff Sharkey [Thu, 16 May 2019 19:39:27 +0000 (13:39 -0600)]
Compare ringtones using IDs.

Comparing by constructing full Uris doesn't work when one of the
values has been canonicalized.

Bug: 132816653
Test: atest android.media.cts.RingtoneManagerTest#testAccessMethods
Change-Id: Id4b26820e76ec3d1d56ba6cf3c76375dafcf92c0

5 years agoEnsure that we use the current user context when adding nav mode listeners
Winson Chung [Wed, 15 May 2019 23:09:22 +0000 (16:09 -0700)]
Ensure that we use the current user context when adding nav mode listeners

- Cache the current user context so we don't recreate it each time
- Also ensure that we always update the enabled state regardless of which
  user SysUI was started in (ie. restarting sysui while running as a
  non-primary user)

Bug: 132644959
Test: Kill sysui for secondary user, ensure it does not pick up primary
      user's nav mode

Change-Id: Iedbf56c18bf0901bf96ccccfe4d7b8c46161280b

5 years agoHide media on AOD when not playing
Lucas Dupin [Thu, 16 May 2019 02:47:11 +0000 (19:47 -0700)]
Hide media on AOD when not playing

Media seems stuck on AOD if paused or stopped and still visible.

Test: play pause with bluetooth headphones
Test: play pause on lock screen
Test: skip songs on lock screen, go to aod
Fixes: 131314881
Change-Id: I3574bbf628b708d2f9d4c4363a912de5ded951ac

5 years agoMerge "Camera: Fix some documentation typos" into qt-dev
TreeHugger Robot [Thu, 16 May 2019 18:59:55 +0000 (18:59 +0000)]
Merge "Camera: Fix some documentation typos" into qt-dev

5 years agoMerge "Fix EncodedBuffer_test to run after making EncodedBuffer inherit from RefBase...
TreeHugger Robot [Thu, 16 May 2019 18:54:50 +0000 (18:54 +0000)]
Merge "Fix EncodedBuffer_test to run after making EncodedBuffer inherit from RefBase" into qt-dev

5 years agoAdd new IncidentManager.requestAuthorization method that takes an executor.
Joe Onorato [Thu, 16 May 2019 18:47:45 +0000 (11:47 -0700)]
Add new IncidentManager.requestAuthorization method that takes an executor.

This is @hide for Q now that we're past API freeze, and will be
@SystemApi in master.

Bug: 126700920
Bug: 126701153
Bug: 130351719
Test: bit GtsIncidentConfirmationTestCases
Test: bit GtsIncidentManagerTestCases
Change-Id: Iac6a058017a86c1927502c529e5a7f3881eb56a7

5 years agoEnsure that SysUI & listeners get the newly updated bubble state
Mady Mellor [Wed, 15 May 2019 20:38:11 +0000 (13:38 -0700)]
Ensure that SysUI & listeners get the newly updated bubble state

This CL fixes two issues:

1) When bubbles are posted we should note that the notification has
   interrupted
2) When the bubble flag state changes it gets propagated to any listeners

Fixes: 131187135
Test: atest NotificationManagerServiceTest
Change-Id: I003a36b9938a4d1f4a69efea463a39fd0df1abda

5 years agoMake package whitelist the last check in activity starter.
Edward Cunningham [Thu, 16 May 2019 18:19:15 +0000 (19:19 +0100)]
Make package whitelist the last check in activity starter.

We should check all other conditions when deciding whether a background
activity start is permitted before checking the temporary package whitelist.
This will avoid confusion when examining bugreports where today an activity
start may appear to be permitted solely on the basis of the whitelist, when
in fact this is not the case.

Bug: 132871420
Test: manual
Change-Id: Ia5b6516076c72ae82d9a9c1c80613c4ef63b62cb

5 years agoMerge "Add short version bluetooth device summary" into qt-dev
Lei Yu [Thu, 16 May 2019 18:18:45 +0000 (18:18 +0000)]
Merge "Add short version bluetooth device summary" into qt-dev

5 years agoTuned the back gesture further
Selim Cinek [Wed, 15 May 2019 02:10:04 +0000 (19:10 -0700)]
Tuned the back gesture further

Previously the back gesture was slightly
too bouncy, so we toned it down a bit.
We're also tuning the vibration to require
a longer duration for it to lift.
Overall the back animation wasn't working
great because of smearing, so we also
simplified that aspect.

Fixes: 130682266
Test: atest SystemUITests
Change-Id: Iff714ccc28fcba25c9b21155c687e2852c8599b7

5 years agoAdd alert description to IncidentDetails in statsd_config
Yao Chen [Thu, 16 May 2019 17:34:18 +0000 (10:34 -0700)]
Add alert description to IncidentDetails in statsd_config

Bug: 132890267
Test: statsd_test
Change-Id: I68ad2cec07d17f3e4db40c780713d5d0228831a7

5 years agoMerge "Make the USAP Pool refill delay configurable." into qt-dev
Christian Wailes [Thu, 16 May 2019 17:23:03 +0000 (17:23 +0000)]
Merge "Make the USAP Pool refill delay configurable." into qt-dev

5 years agoMerge "Don't clear source bounds when set to null during an animation." into qt-dev
Chavi Weingarten [Thu, 16 May 2019 16:51:07 +0000 (16:51 +0000)]
Merge "Don't clear source bounds when set to null during an animation." into qt-dev

5 years agoMerge "Move hardcoded values from autofill_save layout file to dimensions." into...
TreeHugger Robot [Thu, 16 May 2019 16:25:58 +0000 (16:25 +0000)]
Merge "Move hardcoded values from autofill_save layout file to dimensions." into qt-dev

5 years agoMerge "Change CellSignalStrengthGsm.mTimingAdvance to greylist-max-p" into qt-dev
David Brazdil [Thu, 16 May 2019 16:24:26 +0000 (16:24 +0000)]
Merge "Change CellSignalStrengthGsm.mTimingAdvance to greylist-max-p" into qt-dev

5 years agoMerge "Set parent for WindowProcessController" into qt-dev
Andrii Kulian [Thu, 16 May 2019 16:24:06 +0000 (16:24 +0000)]
Merge "Set parent for WindowProcessController" into qt-dev

5 years agoMerge "Override process config for cold start on secondary screens" into qt-dev
Andrii Kulian [Thu, 16 May 2019 16:24:06 +0000 (16:24 +0000)]
Merge "Override process config for cold start on secondary screens" into qt-dev

5 years agoFix Invalid SIM is not displayed for card error condition and add test
andychou [Thu, 16 May 2019 15:14:00 +0000 (23:14 +0800)]
Fix Invalid SIM is not displayed for card error condition and add test
case testTelephonyCapable_SimState_CardIOError()

There is existing bug that KeyguardUpdateMonitor doesn't notify
CarrierTextController in State.CARD_IO_ERROR condition, so invalid text
doesn't display.
Notify CarrierTextController in State.CARD_IO_ERROR condition to allow
correct text to display

Bug: 132376981
Test: fake SIM state with State.CARD_IO_ERROR and make sure invalid text
is displayed. Also atest testTelephonyCapable_SimState_CardIOError pass

Change-Id: Iecb404689f57776c21591a049bc660fec17127d4

5 years agoMerge "Center GlobalActionsDialog when it does not take up the full screen." into...
Aran Ink [Thu, 16 May 2019 14:25:50 +0000 (14:25 +0000)]
Merge "Center GlobalActionsDialog when it does not take up the full screen." into qt-dev

5 years agoMerge "Make dimens in StatusBarIconView resources" into qt-dev
Fabian Kozynski [Thu, 16 May 2019 12:44:29 +0000 (12:44 +0000)]
Merge "Make dimens in StatusBarIconView resources" into qt-dev

5 years agoMerge "Stop putting credential confirmation activity to the home task." into qt-dev
Pavel Grafov [Thu, 16 May 2019 12:05:14 +0000 (12:05 +0000)]
Merge "Stop putting credential confirmation activity to the home task." into qt-dev

5 years agoStop putting credential confirmation activity to the home task.
Pavel Grafov [Mon, 13 May 2019 17:19:33 +0000 (18:19 +0100)]
Stop putting credential confirmation activity to the home task.

Previously when the user tapped "back" on the credential confirmation
screen, the phone would show home screen automatically. Now this is
handled explicitly in WorkLockActivity to prevent from showing credential
confirmation screens in a loop.

Test: manual, making home and back gesture on work challenge screen
Test: manual, starting work challenge in split-screen mode
Test: manual, invoking work challenge via notification/recents/launcher
Bug: 129045018
Change-Id: Iffd14396e3888416b11d2e7dd2408cab683d4506

5 years agoMerge "Do not compare ID when deduplicating SecurityEvent" into qt-dev
Rubin Xu [Thu, 16 May 2019 11:17:48 +0000 (11:17 +0000)]
Merge "Do not compare ID when deduplicating SecurityEvent" into qt-dev

5 years agoMerge "Align qt-dev and master" into qt-dev
Susi Kharraz-Post [Thu, 16 May 2019 10:54:04 +0000 (10:54 +0000)]
Merge "Align qt-dev and master" into qt-dev

5 years agoDo not mark in-process NetworkStack as persistent
Remi NGUYEN VAN [Thu, 16 May 2019 09:02:11 +0000 (18:02 +0900)]
Do not mark in-process NetworkStack as persistent

The in-process NetworkStack runs in the system process, so it does not
need to be marked persistent.
Doing so causes a spurious com.android.networkstack.inprocess process to
be running, wasting memory.

Bug: 131046856
Test: Flashed sailfish, networking works, no extra process started
Test: Flashed walleye, networking still works
Test: aapt dump xmltree NetworkStack.apk AndroidManifest.xml unchanged
Change-Id: I0eb896c825ffe2581950c0bdd2b31ebd7eae0982