OSDN Git Service

android-x86/frameworks-base.git
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 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 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 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 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 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 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 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

5 years agoMerge "Clarify UsageStatsManager#queryUsageStats behavior" into qt-dev
Michael Wachenschwanz [Thu, 16 May 2019 06:18:48 +0000 (06:18 +0000)]
Merge "Clarify UsageStatsManager#queryUsageStats behavior" into qt-dev

5 years agoMerge "Add KEY_ENABLE_WHEN_COMPLETED for testing" into qt-dev
Po-Chien Hsueh [Thu, 16 May 2019 05:58:23 +0000 (05:58 +0000)]
Merge "Add KEY_ENABLE_WHEN_COMPLETED for testing" into qt-dev

5 years agoMerge "Show open padlock when keyguard is hidden" into qt-dev
TreeHugger Robot [Thu, 16 May 2019 04:20:25 +0000 (04:20 +0000)]
Merge "Show open padlock when keyguard is hidden" into qt-dev

5 years agoMerge "Cache resolved details about remote callers." into qt-dev
Jeff Sharkey [Thu, 16 May 2019 03:29:16 +0000 (03:29 +0000)]
Merge "Cache resolved details about remote callers." into qt-dev

5 years agoFixed an NPE in the RegionSamplingHelper
Selim Cinek [Thu, 16 May 2019 02:21:23 +0000 (19:21 -0700)]
Fixed an NPE in the RegionSamplingHelper

Apparently the viewRootImpl can be null as well, handling
that too now.

Fixes: 132436973
Test: manual, try back affordance
Change-Id: I3a1a2dbef62fc1928d0efac437a77d5654975689

5 years agoMerge "Mark testCreateRemoveStartingWindow as flaky" into qt-dev
Jeff Chang [Thu, 16 May 2019 02:18:19 +0000 (02:18 +0000)]
Merge "Mark testCreateRemoveStartingWindow as flaky" into qt-dev

5 years agoMerge "Fix NullPointerException when mLockPatternUtils is not set." into qt-dev
TreeHugger Robot [Thu, 16 May 2019 02:03:48 +0000 (02:03 +0000)]
Merge "Fix NullPointerException when mLockPatternUtils is not set." into qt-dev

5 years agoOverride process config for cold start on secondary screens
Andrii Kulian [Thu, 2 May 2019 01:58:28 +0000 (18:58 -0700)]
Override process config for cold start on secondary screens

Some apps use Application context to get display configuration and
metrics for their activities. This leads to incorrect configuration
used for activities on secondary screens. This is an issue on the
application side, but the framework can provide some compatibility -
override process-level config to match the display where the first
activity was launched.

Once an activity in the process is launched on the default display,
stop watching other displays config to preserve compatibility.

Bug: 131179060
Test: atest WmTests:ActivityRecordTests#testSetProcessOverridesConfig
Test: Launch GMail on secondary screen
Change-Id: If76f4a83c708f47fd914da68dd4b7366ffd8b88c

5 years agoMerge "Calculate pattern bounds correctly" into qt-dev
Lucas Dupin [Thu, 16 May 2019 01:44:52 +0000 (01:44 +0000)]
Merge "Calculate pattern bounds correctly" into qt-dev

5 years agoMerge "Revoke prior uri grants when MediaProvider db gets recreated." into qt-dev
Sudheer Shanka [Thu, 16 May 2019 01:27:38 +0000 (01:27 +0000)]
Merge "Revoke prior uri grants when MediaProvider db gets recreated." into qt-dev

5 years agoMerge "Update timeout string" into qt-dev
Kevin Chyn [Thu, 16 May 2019 01:24:00 +0000 (01:24 +0000)]
Merge "Update timeout string" into qt-dev

5 years agoCache resolved details about remote callers.
Jeff Sharkey [Thu, 16 May 2019 01:19:59 +0000 (19:19 -0600)]
Cache resolved details about remote callers.

The logic in MediaProvider is technically correct, but it's sometimes
inefficient in calling into the OS multiple times with the same
questions, such as validating getCallingPackage().

To mitigate this overhead, and start paving the way for more dynamic
delegation of permission checks, collect these details into a
LocalCallingIdentity object.  We carefully perform all permissions
checking against this new object, and avoid using any other
thread-local values from ContentProvider or Binder.

Local tests show this CL improves performance of a test app that
takes 100 rapid shots by 37%.

This change is a no-op refactoring.

Bug: 130758409115619667
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: If250a7675f2246cd10881acf615619d6d6061f3d

5 years agoMerge "Update fontchain_linter.py to support more flags." into qt-dev
Qingqing Deng [Thu, 16 May 2019 01:16:35 +0000 (01:16 +0000)]
Merge "Update fontchain_linter.py to support more flags." into qt-dev

5 years agoUpdate timeout string
Kevin Chyn [Thu, 16 May 2019 01:15:17 +0000 (18:15 -0700)]
Update timeout string

Fixes: 132656781

Test: Builds
Change-Id: Ia2bc75bec380d650ec71f50675aa64a67e49d12a

5 years agoShow open padlock when keyguard is hidden
Lucas Dupin [Wed, 15 May 2019 20:47:05 +0000 (13:47 -0700)]
Show open padlock when keyguard is hidden

The device will be unlocked when the keyguard is not showing yet
because of a screen timeout or when the user disabled "power button
locks immediately." We need to present the correct state on AOD,
saying that the phone is unlocked.

Test: lock/unlock after screen off delay
Test: pulse after screen off delay (look at padlock)
Test: pulse after pressing power (look at padlock)
Test: lock/unlock after power button press
Fixes: 129316806
Change-Id: I2f0e401b61bb1df4a46ff2f9f78e27ea38f01fc0

5 years agoFix EncodedBuffer_test to run after making EncodedBuffer inherit from RefBase
Joe Onorato [Fri, 10 May 2019 23:33:49 +0000 (16:33 -0700)]
Fix EncodedBuffer_test to run after making EncodedBuffer inherit from RefBase

Test: bit libprotoutil_test:*
Bug: 129717537
Change-Id: I44cf2e631a5ac1bb8b4ee2c269cfc50438fb1782

5 years agoMerge "Dismiss BiometricPrompt when screen turns off" into qt-dev
Kevin Chyn [Thu, 16 May 2019 00:32:49 +0000 (00:32 +0000)]
Merge "Dismiss BiometricPrompt when screen turns off" into qt-dev

5 years agoClean up ProcessRecord when reuse a pid.
Hui Yu [Tue, 7 May 2019 21:02:57 +0000 (14:02 -0700)]
Clean up ProcessRecord when reuse a pid.

When Zygote starts a process with a pid, system_server may have this
pid associate with a old process which is killed by the OS but
system_server has not finished cleanup. In this case, clean up the old
ProcessRecord so the new process can use the pid.

This problem is exposed because the asynchronous process start change.
attachApplicationLocked() may happen before handleProcessStartedLocked() and
the mPidsSelfLocked may still have the old ProcessRecord associate with
the new process's pid.

Pid alone can not uniquely identify the process in mPidsSelfLocked.
In addition to pid, use the startSeq to uniquely identify the ProcessRecord. Refactor
PidMap.put() and PidMap.remove() to take a ProcessRecord as parameter.
In PidMap.remove(), check startSeq before removing ProcessRecord from
the map.

Bug: 131105245
Test: Using the POC test steps in b/131105245. Without the fix, the issue
can be reproduced in few attempts. With the fix, the issue can not be reproduced
any more.

Change-Id: I5d421f6c68f6b3437d51c94f4aef77e08a7bf002

5 years agoDismiss BiometricPrompt when screen turns off
Kevin Chyn [Thu, 16 May 2019 00:28:16 +0000 (17:28 -0700)]
Dismiss BiometricPrompt when screen turns off

Fixes: 131761855

Test: Follow instructions in bug
Change-Id: If3ee6cd9dd515a4e42177b079019b3622570d66f

5 years agoUpdate fontchain_linter.py to support more flags.
Qingqing Deng [Fri, 10 May 2019 22:23:09 +0000 (15:23 -0700)]
Update fontchain_linter.py to support more flags.

Android Q will support all region flags in UNSUPPORTED_FLAGS list.
BL - Saint Barthélemy
BQ - Caribbean Netherlands
MQ - Martinique
RE - Réunion
TF - French Southern Territories

Bug: 127811703
Test: Verified on device.
Test: m fontchain_lint
Test: minikin_tests --gtest_filter=EmojiTest.cpp
Test: atest cts/tests/tests/text/src/android/text/cts/EmojiTest.java
Test: atest frameworks/base/core/tests/coretests/src/android/text/EmojiTest.java
Change-Id: Ice1fb10af35dc4e180735d9712167b71635920da

5 years agoRevoke prior uri grants when MediaProvider db gets recreated.
Sudheer Shanka [Wed, 8 May 2019 18:48:56 +0000 (11:48 -0700)]
Revoke prior uri grants when MediaProvider db gets recreated.

Bug: 132084545
Test: manual
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Ibf2f2357d712a212f25b3bd005572ac74fe524fd

5 years agoMove hardcoded values from autofill_save layout file to dimensions.
Aarthi Balachander [Wed, 15 May 2019 00:25:20 +0000 (17:25 -0700)]
Move hardcoded values from autofill_save layout file to dimensions.

Bug: 131176731
Test: Ran tests
Change-Id: Ibfafd26a9fddc6f50ac04e3630fbd40210154eff

5 years agoMake the USAP Pool refill delay configurable.
Chris Wailes [Wed, 15 May 2019 21:00:22 +0000 (14:00 -0700)]
Make the USAP Pool refill delay configurable.

This patch fetches the USAP pool refill delay value from device_config
instead of hardcoding it.

Bug: 131362095
Test: Build and launch 10+ apps successfully
Change-Id: I244d83a38bde32620bd4bf50e9031c25c6267091
Merged-In: I244d83a38bde32620bd4bf50e9031c25c6267091
(cherry picked from commit 365e50bfa4371f56c5b9d83e07acbf704f675536)

5 years agoMerge "Talkback for focus on collapsed bubble stack" into qt-dev
TreeHugger Robot [Wed, 15 May 2019 23:09:47 +0000 (23:09 +0000)]
Merge "Talkback for focus on collapsed bubble stack" into qt-dev

5 years agoMerge "Keyguard for Auto should only show up in case of a user switcher screen. Else...
TreeHugger Robot [Wed, 15 May 2019 22:50:03 +0000 (22:50 +0000)]
Merge "Keyguard for Auto should only show up in case of a user switcher screen. Else, its safe to dismiss it otherwise." into qt-dev

5 years agoMerge "Initialize biometric settings for user" into qt-dev
Kevin Chyn [Wed, 15 May 2019 22:33:54 +0000 (22:33 +0000)]
Merge "Initialize biometric settings for user" into qt-dev

5 years agoRemove old logic from tinting prototype
Winson Chung [Wed, 15 May 2019 22:07:02 +0000 (15:07 -0700)]
Remove old logic from tinting prototype

- We support tinting in all orientations now

Bug: 132699171
Test: Rotate to landscape, ensure that the nav bar continues to update
Change-Id: I0fa71a693ed61092c1ac4137691334fd28b250e0