OSDN Git Service

android-x86/frameworks-base.git
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 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 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 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 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 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 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 agoCalculate pattern bounds correctly
Lucas Dupin [Wed, 15 May 2019 21:32:50 +0000 (14:32 -0700)]
Calculate pattern bounds correctly

Use stable position on screen to calculate if pattern should be
dragged or not. Before we were only comparing bounds to events,
that would be on different coordinates (on a parent for example.)

Test: draw pattern starting at top left
Test: draw pattern starting at bottom right
Fixes: 132687980
Change-Id: Ibe2d7fc113bf8bc3a9ab4910b3ab21062b59e7f3

5 years agoKeyguard for Auto should only show up in case of a user switcher screen. Else, its...
Priyank Singh [Wed, 15 May 2019 21:12:10 +0000 (14:12 -0700)]
Keyguard for Auto should only show up in case of a user switcher screen. Else, its safe to dismiss it otherwise.

Bug: 131176319
Test: Manual
Change-Id: I96b9b36779f2d2cc846bbf9e309111d1836d51b1

5 years agoMerge "Revert "hwui: ro.hwui.render_ahead=0 queue on high FPS"" into qt-dev
Miguel de Dios [Wed, 15 May 2019 21:06:07 +0000 (21:06 +0000)]
Merge "Revert "hwui: ro.hwui.render_ahead=0 queue on high FPS"" into qt-dev

5 years agoUpdate API docs for TelecomManager#endCall.
Tyler Gunn [Wed, 15 May 2019 20:48:50 +0000 (13:48 -0700)]
Update API docs for TelecomManager#endCall.
am: 3acf511895

Change-Id: I4a895eafeb98339bf617b396f779708bb6e6ee13

5 years agoMerge "Persist active metric status across system server" into qt-dev
TreeHugger Robot [Wed, 15 May 2019 20:45:31 +0000 (20:45 +0000)]
Merge "Persist active metric status across system server" into qt-dev

5 years agoSet parent for WindowProcessController
Andrii Kulian [Wed, 8 May 2019 21:24:43 +0000 (14:24 -0700)]
Set parent for WindowProcessController

If WindowProcessController was registered to display configuration
changes, then an override from display level can erase some of the
configuration fields. This can result in incomplete configuration.
Since process configuration is used as a "global" config in some
places, it should always be complete and contain all fields.

This CL uses ActivityRootContainer as parent for a
WindowProcessController, so any overrides should be applied on top
of global configuration and the resulting full config will always be
complete.

Bug: 131915789
Test: WindowProcessControllerTests#testConfigurationForSecondaryScreen
Change-Id: Id4d30ec9fc64dbdf3f31347240f6bb3cbd655fb2

5 years agoMerge "Disable auto dimming when color sampling is enabled" into qt-dev
Winson Chung [Wed, 15 May 2019 20:27:04 +0000 (20:27 +0000)]
Merge "Disable auto dimming when color sampling is enabled" into qt-dev

5 years agoMake dimens in StatusBarIconView resources
Fabian Kozynski [Wed, 15 May 2019 14:04:39 +0000 (10:04 -0400)]
Make dimens in StatusBarIconView resources

Now the expected size and desired size of System Icons can be overlaid.
Resources as part of core, so they can be overlaid by Car.

Also, makes sure that maybeUpdateIconScaleDimens is the one called to
sort out what updateIconScaleXXXX should be called.

Test: visual, using icons that are not 17dp
Fixes: 132354163
Change-Id: I902050d4b3c44587a023614f738ebad1d857b8bf

5 years agoInitialize biometric settings for user
Kevin Chyn [Wed, 15 May 2019 19:17:38 +0000 (12:17 -0700)]
Initialize biometric settings for user

The settings cache was being set only when user changes or the settings
changed. The cache needs to be initialized if trying to read before
they are set.

Fixes: 132692298

Test: manual
Change-Id: I8a2b0c21e5cd569e87858d401f40dc6f84962111

5 years agoMerge "Do not verify version in ConversationActions/LangIdInstallReceiver." into...
TreeHugger Robot [Wed, 15 May 2019 18:58:29 +0000 (18:58 +0000)]
Merge "Do not verify version in ConversationActions/LangIdInstallReceiver." into qt-dev

5 years agoAlign qt-dev and master
Susi Kharraz-Post [Wed, 15 May 2019 18:42:06 +0000 (14:42 -0400)]
Align qt-dev and master

This CL only adds a new line to re-align qt-dev and master for
metrics_constants to make it possible to rebase the enums.

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

5 years agoDisable auto dimming when color sampling is enabled
Winson Chung [Tue, 14 May 2019 23:22:57 +0000 (16:22 -0700)]
Disable auto dimming when color sampling is enabled

Bug: 132371142
Test: Manual, launch app/rotate and ensure that the handle does not dim
Change-Id: I2616dd81b8453e7d8fb196273499db373a10fa93

5 years agoTalkback for focus on collapsed bubble stack
Lyn Han [Wed, 8 May 2019 21:06:33 +0000 (14:06 -0700)]
Talkback for focus on collapsed bubble stack

Bug: 131610000
Test: manual
Change-Id: I6aa79dfea751c47c86e93f56f7916dd56dbc003f

5 years agoMerge "Restore new SurfaceView background implementation." into qt-dev
Rob Carr [Wed, 15 May 2019 17:41:01 +0000 (17:41 +0000)]
Merge "Restore new SurfaceView background implementation." into qt-dev

5 years agoCenter GlobalActionsDialog when it does not take up the full screen.
Aran Ink [Wed, 15 May 2019 17:32:37 +0000 (13:32 -0400)]
Center GlobalActionsDialog when it does not take up the full screen.

Fixes: 132770089
Test: Manual -- power menu appears centered along edge in all orientations.
Change-Id: If42345e255f4f463a8137ff56ac2b5d6a9601da4

5 years agoMerge "Adjusts the USAP pool refill mechanism." into qt-dev
Christian Wailes [Wed, 15 May 2019 17:24:52 +0000 (17:24 +0000)]
Merge "Adjusts the USAP pool refill mechanism." into qt-dev

5 years agoDo not compare ID when deduplicating SecurityEvent
Rubin Xu [Wed, 15 May 2019 16:39:46 +0000 (17:39 +0100)]
Do not compare ID when deduplicating SecurityEvent

Two SecurityEvents should be considered identical as long as
their event content equals, disregarding the id field.

Test: manual
Change-Id: I811f9a104ed3a0d9e02991aeb9e3653c5c02efc3
Fix: 132367517

5 years agoMerge "Revert "Revert "Remove deprecated System APIs added in Q.""" into qt-dev
Ian Pedowitz [Wed, 15 May 2019 16:28:54 +0000 (16:28 +0000)]
Merge "Revert "Revert "Remove deprecated System APIs added in Q.""" into qt-dev

5 years agoMerge "Revert "Revert "Finalizing Q resources""" into qt-dev
Ian Pedowitz [Wed, 15 May 2019 16:28:54 +0000 (16:28 +0000)]
Merge "Revert "Revert "Finalizing Q resources""" into qt-dev

5 years agoMerge "Revert "Revert "Removing deprecated APIs added to Q""" into qt-dev
Ian Pedowitz [Wed, 15 May 2019 16:28:54 +0000 (16:28 +0000)]
Merge "Revert "Revert "Removing deprecated APIs added to Q""" into qt-dev

5 years agoMerge "Revert "Revert "Android Q is API 29""" into qt-dev
Ian Pedowitz [Wed, 15 May 2019 16:28:54 +0000 (16:28 +0000)]
Merge "Revert "Revert "Android Q is API 29""" into qt-dev

5 years agoMerge "Fix shadow and animation clipping for Global Actions Dialog." into qt-dev
Aran Ink [Wed, 15 May 2019 16:20:58 +0000 (16:20 +0000)]
Merge "Fix shadow and animation clipping for Global Actions Dialog." into qt-dev

5 years agoMerge "Clean up the arguments annotation and verify items on IpMemoryStoreTest."...
TreeHugger Robot [Wed, 15 May 2019 15:56:26 +0000 (15:56 +0000)]
Merge "Clean up the arguments annotation and verify items on IpMemoryStoreTest." into qt-dev

5 years agoMerge "apf: Remove IPv6 NAT-T keepalive related codes and ApfTest improvement" into...
Aaron Huang [Wed, 15 May 2019 15:27:14 +0000 (15:27 +0000)]
Merge "apf: Remove IPv6 NAT-T keepalive related codes and ApfTest improvement" into qt-dev

5 years agoMerge "Dropping NAT-T keepalive packet from APF" into qt-dev
Aaron Huang [Wed, 15 May 2019 15:26:56 +0000 (15:26 +0000)]
Merge "Dropping NAT-T keepalive packet from APF" into qt-dev

5 years agoMerge "Grant device ID access to app with carrier privlege on any sub ID" into qt-dev
Michael Groover [Wed, 15 May 2019 15:26:13 +0000 (15:26 +0000)]
Merge "Grant device ID access to app with carrier privlege on any sub ID" into qt-dev

5 years agoClean up the arguments annotation and verify items on IpMemoryStoreTest.
Xiao Ma [Sat, 11 May 2019 01:56:55 +0000 (18:56 -0700)]
Clean up the arguments annotation and verify items on IpMemoryStoreTest.

Bug: 131133347
Test: atest FrameworksNetTests

Merged-In: I8ce3bed435fbbb814d71fe48ffd305ff3f947f3f
Merged-In: I1db13a48b59d743482436ecf8a20d7f12edd6e1c
(cherry picked from commit 7567c4ac50508c2bcd38b37fc48b299912a34cf5)

Change-Id: I78024c0e25d812639d1236faa59d383742ae2141

5 years agoMerge "Fix AES encryption for SP" into qt-dev
Rubin Xu [Wed, 15 May 2019 14:21:38 +0000 (14:21 +0000)]
Merge "Fix AES encryption for SP" into qt-dev

5 years agoMerge "Fix LockSettingsService unit test flakiness" into qt-dev
Rubin Xu [Wed, 15 May 2019 14:21:18 +0000 (14:21 +0000)]
Merge "Fix LockSettingsService unit test flakiness" into qt-dev

5 years agoMerge "Removing emulator check for starting BluetoothService" into qt-dev
Hayden Gomes [Wed, 15 May 2019 14:17:24 +0000 (14:17 +0000)]
Merge "Removing emulator check for starting BluetoothService" into qt-dev

5 years agoMerge "Compute size range before setting DisplayInfoOverride" into qt-dev
Tiger Huang [Wed, 15 May 2019 12:34:31 +0000 (12:34 +0000)]
Merge "Compute size range before setting DisplayInfoOverride" into qt-dev

5 years agoMerge "Atom and puller for historical AppOps." into qt-dev
Martijn Coenen [Wed, 15 May 2019 12:19:10 +0000 (12:19 +0000)]
Merge "Atom and puller for historical AppOps." into qt-dev

5 years agoMerge "Fix a bug where private DNS to v4-only servers don't validate." into qt-dev
Chiachang Wang [Wed, 15 May 2019 11:56:10 +0000 (11:56 +0000)]
Merge "Fix a bug where private DNS to v4-only servers don't validate." into qt-dev

5 years agoMerge "Add build targets for non-mainline NetworkStack" into qt-dev
Remi NGUYEN VAN [Wed, 15 May 2019 10:55:49 +0000 (10:55 +0000)]
Merge "Add build targets for non-mainline NetworkStack" into qt-dev

5 years agoFix a bug where private DNS to v4-only servers don't validate.
Chiachang Wang [Wed, 15 May 2019 07:33:46 +0000 (15:33 +0800)]
Fix a bug where private DNS to v4-only servers don't validate.

Bug: 132670008
Test: Manual
Test: atest NetworkStackTests
Change-Id: I8ae6fa6f3800f5f6c9ee88ffe3b8ada34b96dee6
Merged-In: I362d43ee6af318694a4038a257e1ebb3f577863c

5 years agoMerge "Fix copying of insets" into qt-dev
Jorim Jaggi [Wed, 15 May 2019 10:26:02 +0000 (10:26 +0000)]
Merge "Fix copying of insets" into qt-dev

5 years agoChange CellSignalStrengthGsm.mTimingAdvance to greylist-max-p
David Brazdil [Wed, 15 May 2019 09:49:22 +0000 (10:49 +0100)]
Change CellSignalStrengthGsm.mTimingAdvance to greylist-max-p

Hidden APIs whose access has been restricted in Q should be assigned
maxTargetSdk=P. Fix a field in CellSignalStrengthGsm which was assigned
maxTargetSdk=O.

Bug: 124354830
Test: check out/soong/hiddenapi/hiddenapi-flags.csv
Change-Id: I025887bf7fbc513da155bfe12919cfea9bd9c5fa

5 years agoCompute size range before setting DisplayInfoOverride
Tiger Huang [Thu, 9 May 2019 12:04:17 +0000 (20:04 +0800)]
Compute size range before setting DisplayInfoOverride

The original logic didn't adjust the size range within the DisplayInfo
before setting it to DisplayManager, which caused apps would get the
previous size ranges which might be incorrect.

Bug: 132678244
Test: atest DisplaySizeTest
Change-Id: Iaf08ae8a16d4d95516d9c8ae316b6efcd7240751

5 years agoapf: Remove IPv6 NAT-T keepalive related codes and ApfTest improvement
Aaron Huang [Wed, 15 May 2019 07:17:35 +0000 (00:17 -0700)]
apf: Remove IPv6 NAT-T keepalive related codes and ApfTest improvement

Remove IPv6 related codes since we don't support IPv6 NAT-T keepalive
as the kernel doesn't support IPv6 UDP encapsulation.

Renaming keepaliveAck to keepaliveResponce since NAT-T keeaplive
response is not an ack. Also, add generateV4NattKeepaliveFilters()
if multicast filter is disabled.

Verify incoming packet contains 1 byte payload but it is not 0xff will
pass NAT-T keepalive filter.

Bug: 33530442
Test: atest FrameworksNetTests
      atest NetworkStackTests

Change-Id: I6d3eb9e6271a0f51dec4a55d68a69b4280175d86
Merged-In: I6d3eb9e6271a0f51dec4a55d68a69b4280175d86
Merged-In: If01bc6a71cf26e13edc049d969d23088fa8242e4
(cherry picked from commit 4ee521b022afd3a62875d1c2bc69c346641c8c82)

5 years agoAdd build targets for non-mainline NetworkStack
Remi NGUYEN VAN [Wed, 15 May 2019 07:14:51 +0000 (16:14 +0900)]
Add build targets for non-mainline NetworkStack

Add PlatformCaptivePortalLogin and PlatformNetworkPermissionConfig build
targets to override CaptivePortalLogin and NetworkPermissionConfig with
platform-key-signed packages easily. The added packages are unused by
default but can simplify setup for OEMs that use InProcessNetworkStack.

Bug: 132635211
Test: Added the new packages to sailfish build, built image: device has
      the proper packages signed with the right keys, networking and
      captive portal working fine.

Change-Id: I09656deb6ba928f56b478adebb60268fa6f484b0

5 years agoMerge "Clean up the permission control code in framework" into qt-dev
Lorenzo Colitti [Wed, 15 May 2019 06:26:52 +0000 (06:26 +0000)]
Merge "Clean up the permission control code in framework" into qt-dev

5 years agoMerge "Add NAME_SOURCE_CARRIER for subscription display name." into qt-dev
Amit Mahajan [Wed, 15 May 2019 06:03:07 +0000 (06:03 +0000)]
Merge "Add NAME_SOURCE_CARRIER for subscription display name." into qt-dev

5 years agoMerge "Block face auth when lock icon is pressed" into qt-dev
TreeHugger Robot [Wed, 15 May 2019 05:04:32 +0000 (05:04 +0000)]
Merge "Block face auth when lock icon is pressed" into qt-dev

5 years agoMerge "Fix captive portal app can be launched w/o MAINLINE_NETWORK_STACK permission...
TreeHugger Robot [Wed, 15 May 2019 04:38:57 +0000 (04:38 +0000)]
Merge "Fix captive portal app can be launched w/o MAINLINE_NETWORK_STACK permission" into qt-dev

5 years agoMerge "Adds the keyguard indication area overlays" into qt-dev
TreeHugger Robot [Wed, 15 May 2019 04:02:51 +0000 (04:02 +0000)]
Merge "Adds the keyguard indication area overlays" into qt-dev

5 years agoMerge "Fix a bug about the z-order of layers caused by merging transactions" into...
Tiger Huang [Wed, 15 May 2019 03:52:34 +0000 (03:52 +0000)]
Merge "Fix a bug about the z-order of layers caused by merging transactions" into qt-dev

5 years agoMerge "Generate challenge and reset lockout only if user has enrolled biometrics...
Kevin Chyn [Wed, 15 May 2019 03:45:51 +0000 (03:45 +0000)]
Merge "Generate challenge and reset lockout only if user has enrolled biometrics" into qt-dev

5 years agoAdd KEY_ENABLE_WHEN_COMPLETED for testing
Po-Chien Hsueh [Tue, 7 May 2019 09:23:44 +0000 (17:23 +0800)]
Add KEY_ENABLE_WHEN_COMPLETED for testing

Per design, we ask user's confirmation before enabling DSU when
install completed. To simplify the process of testing, this CL adds
a paramenter (intent key) "KEY_ENABLE_WHEN_COMPLETED". If the key is
set, the installation service will not ask user before enabling DSU.

Bug: 131866826
Test: adb shell am start-activity -n com.android.dynsystem/com.android.dynsystem.VerificationActivity
      -a android.os.image.action.START_INSTALL
      -d file:///storage/emulated/0/Download/system.raw.gz
      --el KEY_SYSTEM_SIZE 893841408
      --el KEY_USERDATA_SIZE 8589934592
      --ez KEY_ENABLE_WHEN_COMPLETED true

Change-Id: Id38c4c0525199594f6bd6704b5a575d4a42b7b61

5 years agoFix captive portal app can be launched w/o MAINLINE_NETWORK_STACK permission
Paul Hu [Tue, 14 May 2019 11:28:35 +0000 (04:28 -0700)]
Fix captive portal app can be launched w/o MAINLINE_NETWORK_STACK permission

Caller should get SecurityException if called
ConnectivityManager#startCaptivePortalApp() w/o
MAINLINE_NETWORK_STACK permission. But now it will not get any
exception and can launch captive portal app successfully.

Bug: 132662433
Test: atest android.net.cts.ConnectivityManagerTest#testStartCaptivePortalApp
      w and w/o MAINLINE_NETWORK_STACK permission
Test: atest FrameworksNetTests NetworkStackTests

Change-Id: Ib70fe6fad107f3e9dce9ce673188c5ce5dc1ad7b
Merged-In: I1025da29beb53259f57bd9ca5648b32f2847ed4a
Merged-In: Ib70fe6fad107f3e9dce9ce673188c5ce5dc1ad7b
(cherry picked from commit 72b3ab18ca302a3117f424a0f0ef6c08897c310e)

5 years agoRemoving emulator check for starting BluetoothService
Hayden Gomes [Tue, 14 May 2019 16:30:39 +0000 (09:30 -0700)]
Removing emulator check for starting BluetoothService

This check was intended to be removed once we had the ability to add the
Bluetooth systemFeature check. Removing it now so emulator can enable
bluetooth

Bug: 132627197
Test: Built and ran emulator locally to confirm BTService running
Change-Id: I3e0606e0e4154299e65e5f62d8a1720922d796ad

5 years agoMerge "Fix legacy recents crash on Go devices" into qt-dev
TreeHugger Robot [Wed, 15 May 2019 01:42:04 +0000 (01:42 +0000)]
Merge "Fix legacy recents crash on Go devices" into qt-dev

5 years agoMerge "Explicitly request clearing of external storage." into qt-dev
Jeff Sharkey [Wed, 15 May 2019 01:29:08 +0000 (01:29 +0000)]
Merge "Explicitly request clearing of external storage." into qt-dev

5 years agoMerge "Updates java doc in AppPredictionService" into qt-dev
Mehdi Alizadeh [Wed, 15 May 2019 01:14:05 +0000 (01:14 +0000)]
Merge "Updates java doc in AppPredictionService" into qt-dev

5 years agoMerge "Remember last time we mounted a volume." into qt-dev
Jeff Sharkey [Wed, 15 May 2019 01:07:03 +0000 (01:07 +0000)]
Merge "Remember last time we mounted a volume." into qt-dev

5 years agoMerge "Offload role manager work to background thread" into qt-dev
TreeHugger Robot [Wed, 15 May 2019 00:46:17 +0000 (00:46 +0000)]
Merge "Offload role manager work to background thread" into qt-dev

5 years agoMerge "Use merged NetworkTemplate to query data usage" into qt-dev
Lei Yu [Wed, 15 May 2019 00:27:23 +0000 (00:27 +0000)]
Merge "Use merged NetworkTemplate to query data usage" into qt-dev

5 years agoGrant device ID access to app with carrier privlege on any sub ID
Michael Groover [Sat, 11 May 2019 02:31:13 +0000 (19:31 -0700)]
Grant device ID access to app with carrier privlege on any sub ID

Fixes: 132173603
Test: atest TelephonyPermissionsTest
Test: cts-tradefed run cts-dev -m CtsTelephony3TestCases
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t \
com.android.cts.devicepolicy.DeviceOwnerTest#testDeviceOwnerCanGetDeviceIdentifiers
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t \
com.android.cts.devicepolicy.ManagedProfileTest#testProfileOwnerCanGetDeviceIdentifiers
Test: cts-tradefed run cts-dev -m CtsTelephonyTestCases -t android.telephony.cts.TelephonyManagerTest

Change-Id: I6a92790389db8ce08118e7f7f45d9309296d2551

5 years agoRevert "hwui: ro.hwui.render_ahead=0 queue on high FPS"
Miguel de Dios [Tue, 14 May 2019 23:55:36 +0000 (23:55 +0000)]
Revert "hwui: ro.hwui.render_ahead=0 queue on high FPS"

This reverts commit f802abe47f5bafd617ab64c2330a3d1827a4f95c.

Reason for revert: We're seeing jank increase after this patch.

Change-Id: Ic8d77df3fbbeeedeed4b8f31737454d9c056f8b0
Bug: 132733305

5 years agoDon't clear source bounds when set to null during an animation.
chaviw [Tue, 14 May 2019 17:08:12 +0000 (10:08 -0700)]
Don't clear source bounds when set to null during an animation.

There are several places where sysui will re-adjust the pip bounds.
When doing so, it accidentally clears the source bounds the app set when
entering pip. This causes the enter animation to look incorrect.

This change will not clear the source bounds if set to null during an
animation. They will get set the next time the pinned stack is resized.

Test: Youtube entering PIP crops correctly instead of scaling
Fixes: 132729493
Change-Id: Ifa247c2e2fff1b608a977762939570bfdf3f9f1b

5 years agoMerge "Update content descriptions when text/icons are updated" into qt-dev
Kevin Chyn [Tue, 14 May 2019 23:29:50 +0000 (23:29 +0000)]
Merge "Update content descriptions when text/icons are updated" into qt-dev

5 years agoMerge "Update acquire string" into qt-dev
Kevin Chyn [Tue, 14 May 2019 23:28:45 +0000 (23:28 +0000)]
Merge "Update acquire string" into qt-dev

5 years agoBlock face auth when lock icon is pressed
Lucas Dupin [Tue, 14 May 2019 23:11:08 +0000 (16:11 -0700)]
Block face auth when lock icon is pressed

It's necessary to lock the current user, until the next screen power
cycle, to avoid unlocking the device accidentally.

Fixes: 132129109
Test: atest KeyguardIndicationControllerTest
Test: Unlock with biometrics, long press lock icon, swipe up
Test: Unlock with biometrics, swipe up
Change-Id: I23258a79531c21d0e63bd0a91db59d8950526197

5 years agoOffload role manager work to background thread
Winson Chung [Tue, 14 May 2019 23:23:50 +0000 (16:23 -0700)]
Offload role manager work to background thread

Bug: 130305914
Test: Manual
Change-Id: Ifbe25980aa5c91698556b6f0070b5fee06014f31

5 years agoMerge "Fix several accessibility issues with BiometricPrompt" into qt-dev
Kevin Chyn [Tue, 14 May 2019 23:21:08 +0000 (23:21 +0000)]
Merge "Fix several accessibility issues with BiometricPrompt" into qt-dev