Commit Graph

446418 Commits

Author SHA1 Message Date
Bill Yi
1376bbfb2b Import translations. DO NOT MERGE
Change-Id: I4c0d92b4824bbb0d957f8ced67c950c6452967a0
Auto-generated-cl: translation import
2019-10-05 16:58:02 -07:00
Shuo Qian
c7eb6aa0bf Merge "Change the Listener API names" am: fe6978a73f am: 05430c9d1f am: bc79a1c468
am: b162d468fd

Change-Id: I2a124eee09111e3418e663faef0ff95266a3866f
2019-10-04 20:03:05 -07:00
Shuo Qian
b162d468fd Merge "Change the Listener API names" am: fe6978a73f am: 05430c9d1f
am: bc79a1c468

Change-Id: Ie1672f6e103dd59ee97b54681836d0e1fda7c2ae
2019-10-04 19:56:27 -07:00
Shuo Qian
bc79a1c468 Merge "Change the Listener API names" am: fe6978a73f
am: 05430c9d1f

Change-Id: If02631e54c5d410bf5c889ecb3a9f217318e5692
2019-10-04 19:49:22 -07:00
Shuo Qian
05430c9d1f Merge "Change the Listener API names"
am: fe6978a73f

Change-Id: Icf860de451298632635ad15ba0d1c7701b83073e
2019-10-04 19:41:12 -07:00
Kevin Chyn
f8ff281ae0 Merge changes from topic "biometric-ui-credentials"
* changes:
  Animate panel to transparent if profile is managed
  17/n: Show credential UI if setDeviceCredentialAllowed(true) and no biometrics
  16/n: Add PIN/Password
  15/n: Allow Auth UI to start in credential UI
  14/n: Animate to device credential UI when lockout occurs
  13/n: persist device credential across configuration changes
  12/n: Add LockPatternView for setDeviceCredentialAllowed(true)
  11/n: Animate panel to full-screen when "Use Password" is pressed
  Removing old confirm device credential logic
2019-10-05 02:37:26 +00:00
TreeHugger Robot
e10e901b7f Merge "Add helpful links to codegen --help" 2019-10-05 02:11:56 +00:00
Treehugger Robot
fe6978a73f Merge "Change the Listener API names" 2019-10-05 01:56:54 +00:00
Lucas Dupin
338823320c Merge "Abort earlier when icons are hidden" 2019-10-05 00:10:26 +00:00
Soonil Nagarkar
3b7a0b5adf Merge "Reuse transports if possible in LocationManager" 2019-10-05 00:10:15 +00:00
Android Build Merger (Role)
a32b7893c9 Merge "[automerger skipped] Merge "Revert "Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps"" into qt-qpr1-dev am: 9c1464d7ca am: bd2c67b336 -s ours am skip reason: change_id I078d28ed81a84e32aaece839a51590364a974481 with SHA1 44e80de8be is in history" 2019-10-05 00:10:04 +00:00
Mingguang Xu
427c7cd05d [automerger skipped] Merge "Revert "Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps"" into qt-qpr1-dev am: 9c1464d7ca
am: bd2c67b336 -s ours
am skip reason: change_id I078d28ed81a84e32aaece839a51590364a974481 with SHA1 44e80de8be is in history

Change-Id: I33107ede5da364324a3e009ba5002fdb51a8fb5e
2019-10-04 17:08:57 -07:00
Jacky Kao
61178c5f13 Merge "Implementing new API : getWindowsOnAllDisplays()" 2019-10-05 00:07:04 +00:00
TreeHugger Robot
bbb419b103 Merge "Added UserInfo.preCreated on fixture used by unit tests." 2019-10-05 00:00:03 +00:00
Mingguang Xu
bd2c67b336 Merge "Revert "Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps"" into qt-qpr1-dev
am: 9c1464d7ca

Change-Id: If7613b0b002a3462de5475e000a23b711d2ab5b1
2019-10-04 16:46:49 -07:00
Mady Mellor
1cc77c6ebe Merge "Stop tracking the secure setting because we're in master" 2019-10-04 23:32:51 +00:00
Mingguang Xu
9c1464d7ca Merge "Revert "Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps"" into qt-qpr1-dev 2019-10-04 23:27:38 +00:00
Kevin Chyn
484466e2b8 Animate panel to transparent if profile is managed
For managed profiles, we need to show the managed device background with
the device admin color theme during credential UI. Since it's shown on
the "background" view behind the panel, we can animate/fade the biometric
view down, and slide in the credential UI on the "background" layer.

Bug: 140127687

Test: manual test with device admin
Test: atest com.android.systemui.biometrics
Change-Id: I2d0a1b4367912e4bf6ddf701ad68fc387501f048
2019-10-04 15:17:14 -07:00
TreeHugger Robot
f25b446cae Merge "Add Resources Perf Tests" 2019-10-04 21:54:30 +00:00
Felipe Leme
9cbee8aa9b Added UserInfo.preCreated on fixture used by unit tests.
Bug: 140750212
Bug: 142093568

Test: atest UserManagerServiceUserInfoTest

Change-Id: I5ccaca67e2a0a9b93be9a9ac270970d7cc9926a8
2019-10-04 14:48:18 -07:00
TreeHugger Robot
8024cf3ef3 Merge "Move the people filtering to DeviceConfig flag" 2019-10-04 21:45:10 +00:00
Sudheer Shanka
da8a56d399 Merge "Add tests under FrameworksMockingServicesTests to presubmit." 2019-10-04 21:44:03 +00:00
TreeHugger Robot
3328bd6872 Merge "Make is less likely to ignore PIN tap events" 2019-10-04 21:22:17 +00:00
Mingguang Xu
038345da61 Revert "Wifi usability: Change the unit of the threshold for tx/rx throughput from Mbps to Kbps"
This reverts commit 078fe45552.

Reason for revert: This change introduced a bug and it completely changed the functionality of WiFi data stall detection, e.g., high Tx link speed can easily trigger data stall.  We would like to roll back them to restore the normal functionality of Wifi data stall detection.

Bug: 141995185

Change-Id: I024808b580955545b084112c4b14921f038b595f
Merged-In: I078d28ed81a84e32aaece839a51590364a974481
2019-10-04 21:19:53 +00:00
TreeHugger Robot
6d0eaacf2e Merge "Move CtsDevicePolicyManagerTestCases to its own group" 2019-10-04 20:56:55 +00:00
Amy Zhang
1f9d07fdb4 Merge "Cache OTP callback if the device is still under address allocation" 2019-10-04 20:36:53 +00:00
Shuo Qian
d96637660f Change the Listener API names
Test: cts
Bug: 135204580
Change-Id: I1f64d6eb6b113ca85f43a3f6a578c68dbb8bd5ed
2019-10-04 13:24:23 -07:00
Kevin Chyn
c70d6b83e8 17/n: Show credential UI if setDeviceCredentialAllowed(true) and no biometrics
Also, get credential type after userId is set. Otherwise the UI is
incorrect.

Bug: 140127687

Test: atest BiometricServiceTest
Test: manual test with managed profile, one-lock disabled, with/without
      fingerprint, and with different types of credentials between
      owner and managed profile

Change-Id: Ibaf537acf6190458d093a404d9b20d279937a6cc
2019-10-04 13:13:12 -07:00
Kevin Chyn
8110ebb57c 16/n: Add PIN/Password
Bug: 140127687

Make AuthCredentialView abstract, and have the following subclasses
 1) AuthCredentialPatternView
 2) AuthCredentialPasswordView

Back button cancels password authentication

Test: manual test with pattern, pin, password
Test: atest com.android.systemui.biometrics

Change-Id: I95e42144616a59827da25d10d063990452714f76
2019-10-04 13:13:12 -07:00
Kevin Chyn
86f1b8e335 15/n: Allow Auth UI to start in credential UI
If the user is locked out of biometrics, and
BiometricPrompt#setDeviceCredentialAllowed(true), the user should be
shown the credential UI.

This change gives BiometricService the ability to request SystemUI
to show AuthCredentialView without first showing AuthBiometricView.

Bug: 140127687

Test: atest BiometricServiceTest
Test: atest com.android.systemui.biometrics

Change-Id: Ic26986ba044b7992641676c3d3b99fc1395a45b7
2019-10-04 13:13:12 -07:00
Ameer Armaly
f9f98bc4dc Merge "TouchExplorer: remove dependency on AccessibilityGestureDetector#firstTapDetected." 2019-10-04 20:04:28 +00:00
TreeHugger Robot
681a16796e Merge "Fixed wrong traceEnd() call" 2019-10-04 19:52:58 +00:00
TreeHugger Robot
610ffa85d5 Merge "Enforce argument check on setThreadGroup and friends" 2019-10-04 19:45:32 +00:00
Philip P. Moltmann
a73efb0cb3 [automerger skipped] Merge "Update PermissionChecker usages to avoid unnecessary attribution." into qt-dev am: 0a71df1f7e am: 43f6144e21 am: 273a67d261 -s ours
am: 7dc5cc80fe -s ours
am skip reason: change_id I65c71569d0dd8a40bc6fecabb22c5373dd6e806e with SHA1 7fe065eb66 is in history

Change-Id: I88f0f3c777367139ba70bbc716dfa01210e0a7cf
2019-10-04 12:42:45 -07:00
Lucas Dupin
f8e04bc1a9 Abort earlier when icons are hidden
This will avoid pinging the DevicePolicyManager twice.

Fixes: 140060745
Test: logcat, not StrictMode logs
Change-Id: Ib7a411a2ffa21eca62281a922b51dffdf6619352
2019-10-04 12:36:10 -07:00
Philip P. Moltmann
ab5184cfda [automerger skipped] Merge "Update PermissionChecker usages to avoid unnecessary attribution." into qt-dev am: 0a71df1f7e am: 43f6144e21 am: 7cd4256dde
am: 36329e5725 -s ours
am skip reason: change_id I65c71569d0dd8a40bc6fecabb22c5373dd6e806e with SHA1 249810df2e is in history

Change-Id: I59ee897d7778ff603c5bb96f8968d56f09661d97
2019-10-04 12:34:49 -07:00
Philip P. Moltmann
7dc5cc80fe [automerger skipped] Merge "Update PermissionChecker usages to avoid unnecessary attribution." into qt-dev am: 0a71df1f7e am: 43f6144e21
am: 273a67d261 -s ours
am skip reason: change_id I65c71569d0dd8a40bc6fecabb22c5373dd6e806e with SHA1 7fe065eb66 is in history

Change-Id: I3db7c28eb045cdc2564d5803b3f41babf810de3d
2019-10-04 12:27:10 -07:00
Philip P. Moltmann
e653663037 Merge "Update PermissionChecker usages to avoid unnecessary attribution." 2019-10-04 19:26:54 +00:00
Svet Ganov
249810df2e Update PermissionChecker usages to avoid unnecessary attribution.
We had accidental usages of the PermissionChecker for cases where no
private data was provided to the app but the checkPermission API on
the latter also did blame data access on the app. The PermissionChecker
was designed to handle IPC calls and not for generic API checks.

To avoid future accidental incorrect PermissionChecker usages this
change renames the existing APIs of the latter to clearly indicate
that they should be used for data delivery and also adds sibling
methods for doing the same permission checks for preflight purposes.
Also the documentation is improved to furhter assist developers.

In addition, this change fixes accidental permission checker usages
that blame when they should not by using the new preflight flavor
of the permission check APIs.

Test:
    atest com.android.settingslib.location.RecentLocationAppsTest
    atest CtsPermissionTestCases
    added: LocationAccessCheckTest#notificationOnlyForAccessesSinceFeatureWasEnabled
    added: LocationAccessCheckTest#noNotificationIfFeatureDisabled
    added: LocationAccessCheckTest#noNotificationIfBlamerNotSystemOrLocationProvider
    added: LocationAccessCheckTest#testOpeningLocationSettingsDoesNotTriggerAccess

bug:141028068
Exempt-From-Owner-Approval: merge
Change-Id: I65c71569d0dd8a40bc6fecabb22c5373dd6e806e
2019-10-04 19:25:54 +00:00
Philip P. Moltmann
36329e5725 Merge "Update PermissionChecker usages to avoid unnecessary attribution." into qt-dev am: 0a71df1f7e am: 43f6144e21
am: 7cd4256dde

Change-Id: I2cdc90ac3af6e1a89bd79d13f5baa637864e7ccb
2019-10-04 12:20:06 -07:00
Evan Laird
367b6142a6 Move the people filtering to DeviceConfig flag
This way it can be turned on/off without a recompile, and checking the
flag doesn't require a context

Test: adb shell device_config put systemui notifications_use_people_filtering false && adb shell kill $(pid com.android.systemui)
Bug: 140232781
Change-Id: I8ba5e7809dc58e9493397db8447456601a398540
2019-10-04 15:10:10 -04:00
Philip P. Moltmann
7cd4256dde Merge "Update PermissionChecker usages to avoid unnecessary attribution." into qt-dev am: 0a71df1f7e
am: 43f6144e21

Change-Id: Ib8548cbfc7531a5f5e9100ae26cf9b6c8f97760f
2019-10-04 12:05:17 -07:00
Lucas Dupin
93c5ed8167 Make is less likely to ignore PIN tap events
The PIN area can be dragged vertically to retry face auth,
the touch slope was already scaled up to avoid accidental
drags but some users still reported that taps were being
ignored. This CL increases the touch slope size.

Fixes: 140030986
Bug: 141873371
Test: manual
Change-Id: I8db78942797f2c44caf9c9bdc0ec693e6c6a65f9
2019-10-04 12:01:49 -07:00
Philip P. Moltmann
273a67d261 Merge "Update PermissionChecker usages to avoid unnecessary attribution." into qt-dev am: 0a71df1f7e
am: 43f6144e21

Change-Id: Ie6ef9dd529218711a88f19e921c260e2feb59c28
2019-10-04 11:57:17 -07:00
Philip P. Moltmann
43f6144e21 Merge "Update PermissionChecker usages to avoid unnecessary attribution." into qt-dev
am: 0a71df1f7e

Change-Id: I658626de14fa325e08db3aead53707d8d3e00d3b
2019-10-04 11:43:06 -07:00
Bryan Ferris
84e6de26eb Merge "Only allow INSTALL_ALLOW_TEST from shell or root" into qt-dev am: 06684aed55 am: b2450ab526 am: 004ad5dae9
am: c029de90ee

Change-Id: Icf0309a276dc2a0563dca36f380c735f446c8e2a
2019-10-04 11:37:59 -07:00
Bryan Ferris
c6f44ba145 Merge "Only allow INSTALL_ALLOW_TEST from shell or root" into qt-dev am: 06684aed55 am: b2450ab526 am: e0c730671a
am: c3c323cac6

Change-Id: Ib914523ab83adab54fa65153d3e5753af68d15e6
2019-10-04 11:34:57 -07:00
Bryan Ferris
c029de90ee Merge "Only allow INSTALL_ALLOW_TEST from shell or root" into qt-dev am: 06684aed55 am: b2450ab526
am: 004ad5dae9

Change-Id: I48be980b4f274441f5683debe6e32f2db0d95320
2019-10-04 11:26:52 -07:00
Philip P. Moltmann
0a71df1f7e Merge "Update PermissionChecker usages to avoid unnecessary attribution." into qt-dev 2019-10-04 18:23:30 +00:00
Bryan Ferris
c3c323cac6 Merge "Only allow INSTALL_ALLOW_TEST from shell or root" into qt-dev am: 06684aed55 am: b2450ab526
am: e0c730671a

Change-Id: I07d1971fbaa2e31dab2cca6715f4308706a518b2
2019-10-04 11:23:26 -07:00