Commit Graph

12180 Commits

Author SHA1 Message Date
Rubin Xu
bb88320874 Introduce LockscreenCredential to LockSettingsService
Use LockscreenCredential as the representation format for credentials
throughout the LSS system service, until when the raw credential bits
are needed. Most of the changes are just mechanical, except in places
when null was used to represent empty credential, but now it has its
own concrete object.

Test: atest com.android.server.locksettings
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
Test: atest MixedManagedProfileOwnerTest#testResetPasswordWithToken
Test: atest com.android.cts.devicepolicy.PasswordComplexityTest
Test: atest com.android.cts.devicepolicy.ManagedProfilePasswordTest
Bug:65239740
Change-Id: I3997c3c2b6651d11a0e447448ac3a8523a18fa36
2019-10-21 13:27:55 +01:00
Tiger Huang
fb8eddcf85 Merge "Window Manager Flag Migration (4/n)" 2019-10-21 11:37:53 +00:00
Pavel Grafov
06716bec38 Merge "Fix testResetPasswordWithToken." 2019-10-21 10:39:35 +00:00
Jorim Jaggi
956ca413e3 Window Manager Flag Migration (4/n)
Wire up the appearance and the transient state of system bars between
WMS and System UI. The derived classes of CommandQueue.Callbacks no
longer listen to setSystemUiVisibility, but listen to showTransient,
abortTransient, and onSystemBarAppearanceChanged instead.

Bug: 118118435
Test: atest InsetsSourceProviderTest InsetsStateControllerTest
            InsetsPolicyTest WindowStateTests CommandQueueTest
            RegisterStatusBarResultTest InsetsFlagsTest
            LightBarControllerTest
Test: build on specific target
Change-Id: Ie35f4b4468bce7ef8c76f091e306610c069fba85
2019-10-19 16:59:06 +08:00
Pavel Grafov
ca7825ba4b Fix testResetPasswordWithToken.
Two issues fixed:
1. Resetting to empty password was rejected. Fixed credential type
   for this case.
2. Credential type was passed instead of quality.

Bug: 138375712
Test: atest MixedManagedProfileOwnerTest#testResetPasswordWithToken
Change-Id: I58e9e28e9ee0942f67ea8eedb5fd63e8e56a5f75
2019-10-18 17:33:24 +01:00
Philip P. Moltmann
c9bb90c0e0 Merge "Add feature context" 2019-10-18 02:26:08 +00:00
Zhen Zhang
f52d443744 Merge "Refactor and override creation of the async sorting task" 2019-10-17 23:17:40 +00:00
Zhen Zhang
d45e024e7d Merge "Create a method for top K targets by using min heap algorithm" 2019-10-17 23:17:40 +00:00
Philip P. Moltmann
59076d8957 Add feature context
Currently only used by app-ops, but can be used by other modules too.

AppOps will collect app-ops based on feature. Only the most basic
parts of app-ops are supporting features yet. The rest will be added
later.

Test: atest CtsAppOpsTestCases
      atest RunSettingsLibRoboTests
      atest com.android.server.wm.ActivityStarterTests
      m -j doc-comment-check-docs
Bug: 136595429
Change-Id: Ia664f4ff1c1c2ceea721d76dc491ec50c237e9ce
2019-10-17 14:15:07 -07:00
Chen Xu
3321171cc7 Merge "non-mainline telephony related AIDL refactor/decoupling" 2019-10-17 18:27:13 +00:00
Ioannis Ilkos
5a5678d244 Merge "Revert "Window Manager Flag Migration (4/n)"" 2019-10-17 09:49:58 +00:00
Ioannis Ilkos
8cca14103c Revert "Window Manager Flag Migration (4/n)"
This reverts commit cb1b848084.

Reason for revert: Droidcop-triggered revert due to b/142849532

Change-Id: If81eba4e979e21202e78839bb1afbc66691098d2
2019-10-17 09:38:00 +00:00
TreeHugger Robot
0be9fec5c1 Merge "Window Manager Flag Migration (4/n)" 2019-10-17 05:46:19 +00:00
Chen Xu
1f6cfa5399 non-mainline telephony related AIDL refactor/decoupling
1. decouple IOnSubscriptionChangedListener AIDL from telephonyMainline
2. other refactor. moving APIs which will not be included in
telephony mainline to frameworks/base/core/java/android/telephony.
Moving internal classes like AIDL which will not be included in
telephony mainline to
framework/base/core/java/com/android/internal/telephony

Bug: 140908357
Test: Build & unit test
Change-Id: I9413ef758cceadd251d03f3b5ea1054cc48ef044
2019-10-16 15:30:24 -07:00
Zhen Zhang
f8fa586669 Refactor and override creation of the async sorting task
Refactor the creation of the async sorting task in ResolverActivity and
override it in ChooserActivity to use greatestOf method to find ranked
targets.

Bug: 142558305
Test: Passed all unit tests in ResolverActivityTest, ChooserActivityTest
and ResolverListControllerTest
Change-Id: I28fcc8a912d9ba5d42d4ad6ea58e13c97d55c6a2
2019-10-16 14:00:38 -07:00
Zhen Zhang
4bd260ae68 Create a method for top K targets by using min heap algorithm
This is a in-place sorting method. After sorting, top K targets will be at the first K indexes. Order for other elements will remain same. The method is meant for getting top K ranked targets for Share-sheet.

Bug: 142558305
Test: Passed all unit tests in ResolverActivityTest, ChooserActivityTest
and ResolverListControllerTest
Change-Id: I1b096bb0d7f7bbc102c2fb588c55ace6a20bfc5d
2019-10-16 20:42:36 +00:00
TreeHugger Robot
a8f5a64cd3 Merge "Preload sfplugin_ccodec.so to speed app startup" 2019-10-16 20:39:19 +00:00
Pavel Grafov
76621cf279 Merge "Password constraints cleanup." 2019-10-16 17:49:12 +00:00
Jorim Jaggi
cb1b848084 Window Manager Flag Migration (4/n)
Wire up the appearance and the transient state of system bars between
WMS and System UI. The derived classes of CommandQueue.Callbacks no
longer listen to setSystemUiVisibility, but listen to showTransient,
abortTransient, and onSystemBarAppearanceChanged instead.

Bug: 118118435
Test: atest InsetsSourceProviderTest InsetsStateControllerTest
            InsetsPolicyTest WindowStateTests CommandQueueTest
            RegisterStatusBarResultTest InsetsFlagsTest
            LightBarControllerTest
Change-Id: I1dcaff47ae57ccee91146fdc042cde5e26fc0b3f
2019-10-17 01:41:34 +08:00
Ray Essick
2fb0fc6fd4 Preload sfplugin_ccodec.so to speed app startup
Bug: 133186424
Test: boot, volume control, monitor for known logcat patterns
Test: CtsMediaTestCases
Change-Id: I05e5b34224163de8fd6046d299a9381424c2c4e1
2019-10-16 10:09:40 -07:00
Pavel Grafov
6f334843a8 Password constraints cleanup.
1. PasswordMetrics now doesn't have 'quality', it is only used inside DPMS.
   This allows easier and unambiguous comparisons.
2. Password complexity code reworked.

Future work: factor validation code into a android.app.PasswordPolicy class
to make PasswordMetrics just represent metrics. It is still used in two ways:
specifying an actual metrics and specifying a minimum metrics for comparison,
this will be addressed later.

Test: atest com.android.cts.devicepolicy.PasswordComplexityTest
Test: atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testResetPasswordWithToken
Test: atest FrameworksCoreTests:PasswordMetricsTest
Test: atest FrameworksCoreTests:PasswordPolicyTest
Test: atest com.android.cts.devicepolicy.ManagedProfilePasswordTest
Bug: 138375712
Change-Id: I8ad55f373712ac1dc8343f8cbae23ebb1efe78b9
2019-10-16 16:10:36 +01:00
Aran Ink
ac6e1a3616 Merge "Allow insertion of images from IMEs into notification quick replies." 2019-10-15 16:55:42 +00:00
Aran Ink
fd2bfd34bf Allow insertion of images from IMEs into notification quick replies.
Test: Unit tests pass. Creating a Notification with the Notify app allows access to rich media insertion via gboard, and inserted images show up in the Notify app upon sending.

Bug: 137398133
Change-Id: I65218dfaa083f7c24512430e647d8ca79058dff9
2019-10-14 16:40:30 -04:00
Dianne Hackborn
a063a5ff4e Merge "Add new association time totals to procstats proto." 2019-10-14 19:57:50 +00:00
Roshan Pius
20bce169a5 Merge "Window: Mark SHOW_FOR_ALL_USERS flag as @SystemApi" 2019-10-14 18:03:23 +00:00
TreeHugger Robot
d6fd6f27f5 Merge changes from topic "b/142461756"
* changes:
  Ime target window should control when to hide IME (2/2)
  Ime target window should control when to hide IME (1/2)
2019-10-14 17:04:57 +00:00
Ryan Mitchell
3261dacd65 Merge "Add component-override to sysconfig" 2019-10-14 16:14:28 +00:00
Rubin Xu
289100bb97 Merge "Unify lockscreen changing logic in LockPatternUtils" 2019-10-14 13:47:42 +00:00
Rubin Xu
9af061c608 Merge "Introduce LockscreenCredential" 2019-10-14 13:45:14 +00:00
Ivan Chiang
176b8d09e1 Merge "Allow providers block folders in ACTION_OPEN_DOCUMENT_TREE" 2019-10-14 13:15:30 +00:00
Roshan Pius
a3f89c6882 Window: Mark SHOW_FOR_ALL_USERS flag as @SystemApi
Bug: 142090228
Test: Compiles
Change-Id: I850c7759dc909727f73e40fb6331871a9de25f20
2019-10-12 08:32:44 -07:00
Dianne Hackborn
2c0f822add Add new association time totals to procstats proto.
Bug: 142283699
Test: manual
Change-Id: Id3b88c29ea71753b52138f5c34b56d5b63327030
2019-10-11 16:39:09 -07:00
TreeHugger Robot
dacdce4041 Merge "Resolver: Modernize layout" 2019-10-11 20:01:26 +00:00
Matt Pietal
d50712077b Resolver: Modernize layout
Visually align with the work done for sharesheet

Test: visual inspection
Bug: 139485420
Change-Id: Ie2609eefcd12552bba6c4d749ca1669c8232633c
2019-10-11 14:05:58 -04:00
Andrei-Valentin Onea
e8123dc635 Merge "Add extra compat change overriding methods." am: b389ffe2d9 am: 799a6aa021 am: 283ba38e4d
am: fa9179a361

Change-Id: Ic8b5c8e40b0fda124ba5c4790a1edb169a0035a7
2019-10-11 06:51:36 -07:00
Andrei-Valentin Onea
fa9179a361 Merge "Add extra compat change overriding methods." am: b389ffe2d9 am: 799a6aa021
am: 283ba38e4d

Change-Id: I98c2335df98493a6f13c2b2eec68221aaab86785
2019-10-11 06:39:35 -07:00
Andrei-Valentin Onea
283ba38e4d Merge "Add extra compat change overriding methods." am: b389ffe2d9
am: 799a6aa021

Change-Id: I69ad99a90501707d8c2f7f223ecb2bd76ca0e530
2019-10-11 06:29:22 -07:00
Andrei-Valentin Onea
799a6aa021 Merge "Add extra compat change overriding methods."
am: b389ffe2d9

Change-Id: I77f36a1d9be2d486ca126472f26b5a35739a88cb
2019-10-11 06:22:21 -07:00
Andrei-Valentin Onea
b389ffe2d9 Merge "Add extra compat change overriding methods." 2019-10-11 13:04:08 +00:00
Taran Singh
f1e0887eb8 Ime target window should control when to hide IME (1/2)
Input method frameworks uses focused window and some tricks
to best guestimate IME target. Though it doesn't always know the
actual IME target. e.g. when window has both NOT_FOCUSABLE,
ALT_FOCUSABLE_IM; IMF thinks focued window is IME target but it isn't
the case.

The right thing to do is to call both show(IME), hide(IME) on IME
target.

Bug: 142461756
Bug: 111084606
Test: Manually tested using steps below:
  1. Make sure new insets flag is enabled
  2. Launch any activity which has child window with NOT_FOCUSABLE,
     ALT_FOCUSABLE_IM (e.g. Instagram login screen)
  3. Verify IME can be shown and hidden by this window.

Change-Id: I13f3e04f6f9e1574db9cbb56bdb7817152499d03
2019-10-11 10:09:06 +02:00
Dianne Hackborn
b6174ab931 Merge "Fix/improve procstats association data & printing" 2019-10-10 22:46:43 +00:00
Anna Trostanetski
9969d260ca Merge "ADD owners to compat framework code." am: 2bbb78b5c0 am: 9f074ee036 am: fc581db1d6
am: ca6ea8ffdd

Change-Id: Ia7dd0e8767f9f652b01aaaf319c36e06c41db512
2019-10-10 12:17:44 -07:00
Anna Trostanetski
ca6ea8ffdd Merge "ADD owners to compat framework code." am: 2bbb78b5c0 am: 9f074ee036
am: fc581db1d6

Change-Id: I5f4dd5ff7fdfc4c3c54c6dffd0aff4d7bddeafda
2019-10-10 12:11:11 -07:00
Anna Trostanetski
fc581db1d6 Merge "ADD owners to compat framework code." am: 2bbb78b5c0
am: 9f074ee036

Change-Id: I60d021055eb5df79c71f74c546994670c8cb9b5b
2019-10-10 12:04:06 -07:00
Anna Trostanetski
9f074ee036 Merge "ADD owners to compat framework code."
am: 2bbb78b5c0

Change-Id: I5f89a8141ec57c153fb798cf368f02ecbe2dbbdf
2019-10-10 11:57:04 -07:00
Anna Trostanetski
2bbb78b5c0 Merge "ADD owners to compat framework code." 2019-10-10 18:42:25 +00:00
Anna Trostanetski
3503054191 Merge "Reset app reporting on app launch." am: ccaea274c0 am: 3be71b9df6
am: 7cf4b95c22

Change-Id: I44853dba5d86e799a7b40fdf14d70f8f8b96aaaf
2019-10-10 09:55:27 -07:00
Anna Trostanetski
7cf4b95c22 Merge "Reset app reporting on app launch." am: ccaea274c0
am: 3be71b9df6

Change-Id: I6b7126c8bbbfc010f5b0834b8bc3bd4adb8419d8
2019-10-10 09:49:08 -07:00
Anna Trostanetski
3be71b9df6 Merge "Reset app reporting on app launch."
am: ccaea274c0

Change-Id: I2696f954666aecf22ea8ea77bf5d5ddfaac1461a
2019-10-10 09:42:26 -07:00
Andrei Onea
ea997f222c Add extra compat change overriding methods.
This CL adds two new methods to the IPlatformCompat binder interface for
toggling multiple compat changes at once, and for clearing all the
overrides for a given package name.

Bug: 140367850
Test: http://aosp/1113771
Change-Id: I02d08d76e42da308856408dadc2c8c73c7ff20d1
2019-10-10 17:09:02 +01:00