Commit Graph

8019 Commits

Author SHA1 Message Date
TreeHugger Robot
62fc9fa4a4 Merge "Reconfigure Scoped Storage experiment: force ScSt on list of apps" into rvc-dev am: 5a1dc47c34 am: 2bd5168c35 am: a0424d6071 am: 6c91ae3ec5
Change-Id: I3cc2bb7f7cabfe7cf36013708e407b97a0155798
2020-05-20 16:50:39 +00:00
TreeHugger Robot
6c91ae3ec5 Merge "Reconfigure Scoped Storage experiment: force ScSt on list of apps" into rvc-dev am: 5a1dc47c34 am: 2bd5168c35 am: a0424d6071
Change-Id: Ib509fc89c183556cef2bae2749cc3ab37b94adf5
2020-05-20 16:35:26 +00:00
TreeHugger Robot
5804ce6725 Merge "Change implementation of VibrationEffect scaling" 2020-05-20 14:50:38 +00:00
shafik
3acc77cc7b Reconfigure Scoped Storage experiment: force ScSt on list of apps
Add a DeviceConfig feature that denotes a list of apps we want to force
into scoped storage. This would allow us to test these apps behaviours
under scoped storage at scale.

Also add the feature to StorageManagerService#dump.

Test: manual:
$ adb shell device_config put storage_native_boot forced_scoped_storage_whitelist <pkg>
$ adb reboot
$ adb shell dumpsys appops --package <pkg> # observe LEGACY_STORAGE
mode=ignored
Test: adb shell dumpsys mount
Bug: 151735608

Change-Id: I6a43e987ebf8d14fb64103a74bafde28f5863ae2
2020-05-20 12:37:24 +01:00
Mathew Inwood
532292f66a Merge "Remove garbage spaces" am: b29fb46920 am: fcce9c56d4 am: 045833a959 am: baa4f33e46 am: d29baf7a09
Change-Id: I7098716f70e0f18b75cd45ce3dab5d749ae34c6d
2020-05-20 10:39:46 +00:00
Mathew Inwood
045833a959 Merge "Remove garbage spaces" am: b29fb46920 am: fcce9c56d4
Change-Id: Ifb22ae812e5473c54d2a963eb60e9ef04af3ae9f
2020-05-20 09:41:54 +00:00
Mathew Inwood
fcce9c56d4 Merge "Remove garbage spaces" am: b29fb46920
Change-Id: I1fb3e6a7f598be9ea8d993a39e3f3ee6ac554f4d
2020-05-20 09:17:59 +00:00
Mathew Inwood
b29fb46920 Merge "Remove garbage spaces" 2020-05-20 09:01:15 +00:00
Treehugger Robot
bf2c4c945c Merge "Add isStable in Parcelable interface" am: 9bb27b0311 am: a5ace2e7be am: 27bfb77024 am: 6c310a5a1e am: e7264a69be
Change-Id: I69f795ed38d0f7b78caccc0c2b426bb5eb8bd37e
2020-05-18 23:03:21 +00:00
Treehugger Robot
27bfb77024 Merge "Add isStable in Parcelable interface" am: 9bb27b0311 am: a5ace2e7be
Change-Id: Ie4e99da3fb2f98222709960a7e6d1148ef18b643
2020-05-18 22:19:24 +00:00
Treehugger Robot
a5ace2e7be Merge "Add isStable in Parcelable interface" am: 9bb27b0311
Change-Id: Ia3ac39e9b47e2fdcebca868823dd6536d88f9860
2020-05-18 22:16:05 +00:00
TreeHugger Robot
2adaca4206 Merge "Update documentation for ACTION_CLEAR_APP_CACHE" into rvc-dev am: 669b6a5987 am: 7b1bcf049b am: e7077fb944 am: 554f9178ef
Change-Id: Ib46eed57e418f9f9c4ba564f2fe0ed26acc351ea
2020-05-18 11:16:53 +00:00
TreeHugger Robot
7b1bcf049b Merge "Update documentation for ACTION_CLEAR_APP_CACHE" into rvc-dev am: 669b6a5987
Change-Id: Ie1aa08f25b14e2b112fe15a47dcab98e2a79fdab
2020-05-18 10:39:09 +00:00
TreeHugger Robot
669b6a5987 Merge "Update documentation for ACTION_CLEAR_APP_CACHE" into rvc-dev 2020-05-18 10:27:53 +00:00
shafik
75bb8caa55 Update documentation for ACTION_CLEAR_APP_CACHE
The actual cache clearing is not async anymore, so we can report the
status to the calling app. Here, we just change the documentation to
make the caller aware of the 3rd possible activity result: EIO.

This value is returned if an error happens while MediaProvider is
clearing the cache. In this case, we don't know how much of the cache
was deleted, if at all.

Test: build
Bug: 155290762
Change-Id: I3a04a9b5b6b07c6ec61e97a4cb0d3bc8b10b0370
2020-05-18 10:26:37 +00:00
Taesu Lee
c3ca1c2945 Remove garbage spaces
Test: build

Change-Id: Ia15e39bbcc410e9ffcf0f267e5a385d66a3bf420
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-05-18 08:57:31 +00:00
Jeongik Cha
7782abe5d2 Add isStable in Parcelable interface
Bug: 156242606
Test: m
Change-Id: I353958ebe24911ac9fb684878931aecad7e09b97
2020-05-18 04:29:26 +00:00
TreeHugger Robot
4c28890da6 Merge "Fix for goat detection code" into rvc-dev am: 7588f0d7a0 am: 4606688141 am: e43bd566f7 am: ab88e366e6
Change-Id: I628fcc4305b6e5d2ca94154295cc47f206a13f82
2020-05-16 02:33:33 +00:00
TreeHugger Robot
4606688141 Merge "Fix for goat detection code" into rvc-dev am: 7588f0d7a0
Change-Id: I4d8370e8755b9e917477cd4434b1acc27345a62d
2020-05-16 01:58:01 +00:00
TreeHugger Robot
7588f0d7a0 Merge "Fix for goat detection code" into rvc-dev 2020-05-16 01:41:30 +00:00
Amith Yamasani
1f6e0b89b2 Fix for goat detection code
Since as of R, apps can no longer query other apps by default,
deprecate the isUserAGoat API's undocumented behavior and
always return false.

Fixes: 156543788
Test: atest CtsMultiUserTestCases
Change-Id: I9743d87b762aabb01dc010ba6d5a6c01643a1f92
2020-05-15 14:45:01 -07:00
Wenjie Zhou
4adce607d6 Merge "mCallback defined in BringYourOwnSection should be an object instead of a reference." into rvc-dev am: ad24e49e2f am: 9d83125d4d am: fe222a2bbc am: 99cc6ebbf0
Change-Id: I78b2c7b28516ceadac0c29ca7b772c1abfec8964
2020-05-15 16:18:16 +00:00
Wenjie Zhou
99cc6ebbf0 Merge "mCallback defined in BringYourOwnSection should be an object instead of a reference." into rvc-dev am: ad24e49e2f am: 9d83125d4d am: fe222a2bbc
Change-Id: I3bf65b71ab59c3a4e4864d2156975571fe9cdfba
2020-05-15 16:05:38 +00:00
Wenjie Zhou
bbd12bc783 Merge "mCallback defined in BringYourOwnSection should be an object instead of a reference." into rvc-dev am: ad24e49e2f
Change-Id: Ia39b5ca803f3962ab2e864a16e7ceedb47788a9e
2020-05-15 16:04:32 +00:00
Lais Andrade
fcd87daee0 Change implementation of VibrationEffect scaling
Use a scale factor and fixed Stevens' coefficient value for gamma
correction. Scale factors within [0,1) will scale down the effect
intensity/amplitude, and values larger than 1 will scale it up.
The scale up function also makes sure it never scales amplitude
above MAX_AMPLITUDE, or relative intensity value above 1.

New implementation can be visualized here:
https://colab.corp.google.com/drive/1rGCBWXyUe7NePaSLnO-qkeFw8h0DkWJA?usp=sharing

This cl also moves the #resolve and #scale methods to superclass
VibrationEffect (using @hide annotation). This will force every new
effect to also define both behaviors (or explicitly ignore them),
and thus avoid cases where the VibratorService skips scaling new
effects by accident.

Fix: 154712843
Test: atest FrameworksCoreTests:VibrationEffectTest
Change-Id: Ib46e609663aec60a49a8827c90df144caaf7c926
2020-05-15 13:37:45 +01:00
Wenjie Zhou
751c7c947a mCallback defined in BringYourOwnSection should be an object instead of a reference.
The referenced object could be destroyed and result in native crash when
mCallback is used.

Bug: 156536687
Test: manual test with registering a section from an app
Change-Id: Ie36c0e6e64be1246539f12999f037c24377686dd
2020-05-14 15:24:39 -07:00
TreeHugger Robot
218a05d405 Merge "Remove powerHint from IPowerManager.aidl" 2020-05-14 22:07:49 +00:00
Lais Andrade
71d90a6856 Remove powerHint from IPowerManager.aidl
Also removes sendPowerHint, setInteractive and setFeature from
PowerManagerService, replacing calls to these methods to existing
setPowerBoost and setPowerMode native methods.

Fix: 150878220
Test: atest FrameworksServicesTests:PowerManagerServiceTest
      atest WmTests:SurfaceAnimationRunnerTest
Change-Id: I6c14504650879da6c4d7de4412dc9421fb332f53
2020-05-14 13:12:34 +01:00
TreeHugger Robot
47ba7375bd Merge "Don't try to recreate IncrementalFileStorages on re-commit." into rvc-dev am: eb191392e6 am: 37cdfd8bd7 am: 5e6c13681d am: 1242213eef
Change-Id: I528f923ba66fb50219b1562664f986402e697f25
2020-05-13 17:17:56 +00:00
TreeHugger Robot
5e6c13681d Merge "Don't try to recreate IncrementalFileStorages on re-commit." into rvc-dev am: eb191392e6 am: 37cdfd8bd7
Change-Id: I8576d43bafbed0f81e8a404c8b671950b57c1753
2020-05-13 16:29:17 +00:00
TreeHugger Robot
880974ebd0 Merge "Don't try to recreate IncrementalFileStorages on re-commit." into rvc-dev am: eb191392e6
Change-Id: I8ac2224ccd7d4a7d1e69da137e598800187bdf92
2020-05-13 16:14:40 +00:00
TreeHugger Robot
eb191392e6 Merge "Don't try to recreate IncrementalFileStorages on re-commit." into rvc-dev 2020-05-13 16:01:39 +00:00
TreeHugger Robot
51822d01df Merge "Add OWNERS for display, haptics, input and power" into rvc-dev am: f30c225fcb am: 1e3fe956cf am: 689486059f am: 4623e80530
Change-Id: I80f338fc23ef80f544bc33d169f262346ab17786
2020-05-12 22:31:13 +00:00
Alex Buynytskyy
4dbc0607ee Don't try to recreate IncrementalFileStorages on re-commit.
Bug: 156287164
Fixes 156287164
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest

Change-Id: I75e392a1fa84df8b6ac0b855233f9a2662998e96
2020-05-12 13:49:29 -07:00
TreeHugger Robot
689486059f Merge "Add OWNERS for display, haptics, input and power" into rvc-dev am: f30c225fcb am: 1e3fe956cf
Change-Id: I36ce5198582b6aa3fe6fc1c89e9438454df09f3f
2020-05-12 20:44:35 +00:00
TreeHugger Robot
4dca85b87f Merge "Add OWNERS for display, haptics, input and power" into rvc-dev am: f30c225fcb
Change-Id: Id6ab3fe424d9914f1ec54c0f9a4684578ed89c0b
2020-05-12 20:28:17 +00:00
Michael Wright
2e7e81c950 Add OWNERS for display, haptics, input and power
Bug: 156349083
Test: N/A
Change-Id: Ia8afccfc2e470095ae3d52c827c0ac78b7c120ae
2020-05-12 19:11:13 +01:00
Adam Bookatz
86639b1a52 Merge "Clarify UM.createUser javadoc" into rvc-dev am: 33ecd88317 am: e3b6e3dc62 am: 64074e2d30 am: e4ea61c931
Change-Id: Iaf06bff81231c885c45ccfae945da6a50460a92e
2020-05-12 04:34:50 +00:00
Adam Bookatz
e3b6e3dc62 Merge "Clarify UM.createUser javadoc" into rvc-dev am: 33ecd88317
Change-Id: Iae5957ef30deba9fc0fc242c3ec02d31c7ce16e0
2020-05-12 03:45:41 +00:00
Adam Bookatz
a88d4c09e4 Clarify UM.createUser javadoc
When creating admin users, default
UserRestrictions do indeed apply, so updating
the javadoc.

Test: N/A
Bug: 143491938
Change-Id: Id495599abd4ddee100ca2c761d3b420fff315482
2020-05-11 22:22:32 +00:00
Beverly Tai
1284caefec Merge "Add badge colors for dark theme" into rvc-dev am: 78a66d6c36 am: 3e2a0d2682 am: 1c1c47c972 am: c7914e7a94
Change-Id: I344d57b6ace676f599b0919890b9c0c035b062fd
2020-05-10 19:06:14 +00:00
Beverly Tai
3e2a0d2682 Merge "Add badge colors for dark theme" into rvc-dev am: 78a66d6c36
Change-Id: I7ad6f0991a78cfba9bcd77383309acb70a6fe89a
2020-05-10 18:19:47 +00:00
Beverly Tai
78a66d6c36 Merge "Add badge colors for dark theme" into rvc-dev 2020-05-10 18:10:15 +00:00
Jing Ji
793ee0ff16 Merge "Check the isInUse with the lock held in MessageQueue" into rvc-dev am: 04dc962d1d
Change-Id: Ie229f36fd62b3c971d268955c299e72200dc5d76
2020-05-10 05:21:01 +00:00
Jing Ji
baf2d6448e Check the isInUse with the lock held in MessageQueue
Fix a potential race condtion when the same message object
is being enqueued by two threads.

Bug: 150263007
Bug: 154867444
Test: atest android.os.cts.MessageQueueTest
Change-Id: Id79448ba8719479cbdb054f2cdd172fdcbe86d47
(cherry picked from commit 96a6fec4d6)
2020-05-08 21:14:23 +00:00
Alex Johnston
5d3555b906 Merge "Restrict creation of secondary users" into rvc-dev am: 80542add04 am: 315330edb0 am: 3e76e54db7 am: 3078b2c567
Change-Id: I34c8f3b5037f06a7171e9a39f60fc05a03cf9b33
2020-05-07 15:49:10 +00:00
Alex Johnston
3078b2c567 Merge "Restrict creation of secondary users" into rvc-dev am: 80542add04 am: 315330edb0 am: 3e76e54db7
Change-Id: I0b181c5e6628e28a7fe2d170e548b2fc709b3f06
2020-05-07 15:42:59 +00:00
Alex Johnston
4223a3f0ef Merge "Restrict creation of secondary users" into rvc-dev am: 80542add04
Change-Id: Iad605a26fa4f7f4719e8c9cb9dbb04e2ed7d3d20
2020-05-07 15:32:42 +00:00
Beverly
2b4306a8ec Add badge colors for dark theme
Test: manual
Test: atest UserManagerTest#testProfileTypeInformation
Fixes: 149669756
Change-Id: Ib3fd377a4902bbe936d574dc52bac4eae6e25dd4
2020-05-07 09:20:19 -04:00
Alex Johnston
9ace11127c Restrict creation of secondary users
Background
* Secondary users should be disabled
  when the device is an organization-owned
  managed profile device.
* This is because supporting secondary
  users would complicate the semantics of
  user restrictions.

Changes
* Add DISALLOW_ADD_USER as a base restriction
  when the device is an organization-owned
  managed profile device.
* Handle removal case when the device is no
  longer in this mode.
* Remove the ability of other admins to apply
  DISALLOW_ADD_USER.

Manual Testing Steps
* Provision an organization-owned managed
  profile device.
* Check Settings > System > Multiple users
  and verify that a user cannot be added.
* Check WP TestDPC 'Set user restrictions
  on parent' and verify 'Disallow add user'
  is not present.

Bug: 155281701
Test: Manual testing
      atest com.android.server.devicepolicy.DevicePolicyManagerTest
Change-Id: I83348fc8b854cef20383803124000540b5b130cb
2020-05-07 13:58:31 +01:00