Commit Graph

20846 Commits

Author SHA1 Message Date
Stanislav Zholnin
6145fb551d Merge "Bug fixes and testing support for DiscreteRegistry" into sc-dev am: bd45b82617
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14327550

Change-Id: I4d4a985e003f868fb5396924f387d9ef4dd38e99
2021-04-28 09:17:51 +00:00
Stanislav Zholnin
bd45b82617 Merge "Bug fixes and testing support for DiscreteRegistry" into sc-dev 2021-04-28 09:09:35 +00:00
Rhed Jao
23cb6351d8 Merge "Add a synchronized lock into the SplitDependencyLoaderImpl" into sc-dev am: f4baaf8a8e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14278089

Change-Id: If4298c4b30c6ea2d47bc5774973a30461d393c9e
2021-04-28 04:04:56 +00:00
Rhed Jao
f4baaf8a8e Merge "Add a synchronized lock into the SplitDependencyLoaderImpl" into sc-dev 2021-04-28 03:42:05 +00:00
Stanislav Zholnin
c5f09f687b Bug fixes and testing support for DiscreteRegistry
Fixed following bugs:
- in certain cases deduplication could fail
- while requesting discrete ops, beginTimeMillis parameter was
  ignored
- device_config parameters above guardrails were
  still applied after reboot

Added support tests (coming in next CL):
- ability to offsetHistory for test
- ability to change quantization parameter to any value for tests

Test: coming in next CL
Bug: 183238944
Bug: 183239281
Bug: 176965672
Change-Id: I838a7897058b38aa0957a3666d4b37a5378e36be
2021-04-27 18:31:30 +01:00
Chavi Weingarten
ec2340ee01 Merge "Added takeScreenshot of a Window to UiAutomation" into sc-dev am: 7131ac5913
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14188369

Change-Id: Ia244203de921a54fedeec0fafb2d2d46d3805895
2021-04-27 17:10:17 +00:00
Chavi Weingarten
7131ac5913 Merge "Added takeScreenshot of a Window to UiAutomation" into sc-dev 2021-04-27 17:06:14 +00:00
Rhed Jao
83e849ce64 Merge "Fix a crash when starting a service in the isolated split" into sc-dev am: bf53e16efd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14260709

Change-Id: Id424e33da4973f85348374a8c3c31d87beada40c
2021-04-27 06:15:21 +00:00
Rhed Jao
bf53e16efd Merge "Fix a crash when starting a service in the isolated split" into sc-dev 2021-04-27 06:06:16 +00:00
Louis Chang
ab731a19e4 Merge "Revert "Do not relaunch bg activities when application info changes"" into sc-dev am: 9caa70a8d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14305132

Change-Id: Ib00734a051598906c0cf201220cccd85921f41ee
2021-04-27 02:25:35 +00:00
Louis Chang
9caa70a8d3 Merge "Revert "Do not relaunch bg activities when application info changes"" into sc-dev 2021-04-27 02:23:11 +00:00
Louis Chang
24af61a988 Revert "Do not relaunch bg activities when application info changes"
This reverts commit 8b5afd93b6.

Reason for revert: b/186367826

Bug: 185301309
Change-Id: I7a68f1a32aff194d68af1c3ef55dc60ffbde5df9
2021-04-27 02:21:55 +00:00
chaviw
0cad605aa1 Added takeScreenshot of a Window to UiAutomation
Added a way to capture just a window instead of the entire screen
to make tests easier.

Test: Builds
Bug: 185390632

Change-Id: I5138777bc87cdabcd2d8f574b1758509fc887c56
2021-04-26 17:54:54 -05:00
Flavio Fiszman
538793b5c8 Merge "Handling group chat sender" into sc-dev am: bf0507b001
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14296205

Change-Id: I33178c116c51995fad695dcb847cc814cced3684
2021-04-26 17:03:26 +00:00
Flavio Fiszman
bf0507b001 Merge "Handling group chat sender" into sc-dev 2021-04-26 17:01:12 +00:00
Alex Johnston
ad6f9bde51 Merge "Remove PasswordMetrics.validatePasswordMetrics isPin param" into sc-dev am: 3f716ff7a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14211746

Change-Id: Ia639e09d734bd8f50deeaa2dde30b7169159e2ba
2021-04-26 15:31:11 +00:00
Alex Johnston
3f716ff7a2 Merge "Remove PasswordMetrics.validatePasswordMetrics isPin param" into sc-dev 2021-04-26 15:24:16 +00:00
Flavio Fiszman
47b06875bd Handling group chat sender
Change-Id: I4e4ff94e3452f3eb74bf8d7af2969e0ce2d3ac91
Test: manual and people/
Bug: 183084944
2021-04-26 14:43:35 +01:00
Rhed Jao
129aa44896 Add a synchronized lock into the SplitDependencyLoaderImpl
- There's a potential race condition going on when components
  from the isolated split are creating the split class loader.
  Add a synchronized lock for the array of cached class loaders
  and resource paths to prevent the race.

- Remove the synchronized class reference of LoadedApk. Using an
  explicit mLock object to synchronize the
  #createOrUpdateClassLoaderLocked() and cached split class loader
  instead.

Bug: 172602571
Test: atest IsolatedSplitsTests
Test: atest ClassloaderSplitsTest
Test: atest SplitTests
Change-Id: Ifb77d067ddf06b5192d7ce9d4e78958b56faac7c
2021-04-26 12:49:20 +08:00
Louis Chang
efcbd39e5c Merge "Do not relaunch bg activities when application info changes" into sc-dev am: d41d71e4f8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14161099

Change-Id: If61633504dd11a39bc411f2d06ddaeefa35ed8a9
2021-04-26 01:29:52 +00:00
Louis Chang
d41d71e4f8 Merge "Do not relaunch bg activities when application info changes" into sc-dev 2021-04-26 01:19:44 +00:00
TreeHugger Robot
aa3fe6e1f1 Merge "Add missing javadocs" into sc-dev am: d1a2e3f3bc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14293209

Change-Id: I3527dc72e7bae608d04280ca2fd5ecc6aede932a
2021-04-23 19:25:01 +00:00
TreeHugger Robot
d1a2e3f3bc Merge "Add missing javadocs" into sc-dev 2021-04-23 19:07:41 +00:00
Flavio Fiszman
cac1294919 Merge "Check if username is null" into sc-dev am: 7852984973
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14269155

Change-Id: I0604859deb0bfd5a241f5eb5899a64d0fcc022c0
2021-04-23 16:04:32 +00:00
Flavio Fiszman
7852984973 Merge "Check if username is null" into sc-dev 2021-04-23 15:59:09 +00:00
Julia Reynolds
ccbfb05dd9 Add missing javadocs
Test: build
Fixes: 186211207
Change-Id: Ie7da3a9de4afd6eb8f7aeed7c588091be87409f5
2021-04-23 14:48:09 +00:00
Caitlin Cassidy
cf790bdf56 Merge "[Ongoing Call Chip] Don't show the chip on lockscreen." into sc-dev am: efaeb0c564
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14189052

Change-Id: I1cc6fb3270e06f8eeaf36c1f68197fb887838d0e
2021-04-23 14:22:26 +00:00
Caitlin Cassidy
efaeb0c564 Merge "[Ongoing Call Chip] Don't show the chip on lockscreen." into sc-dev 2021-04-23 14:01:58 +00:00
Alex Johnston
ad5cac3115 Remove PasswordMetrics.validatePasswordMetrics isPin param
* Remove isPin parameter and use actualMetrics.credType,
  which now includes CREDENTIAL_TYPE_PIN

Bug: 184103377
Test: manual testing
      atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.cts.devicepolicy.ProfileOwnerTest
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest
Change-Id: Ib79856b14981ef715c941e3cd56bd29ca196f3bb
2021-04-23 13:11:24 +01:00
Flavio Fiszman
249cef5cf5 Check if username is null
Change-Id: If5409e98f9e5a9bca4fea111af3a463bdf86324b
Test: manual
Bug: 185916268
2021-04-23 10:32:51 +01:00
Louis Chang
8b5afd93b6 Do not relaunch bg activities when application info changes
Update the configurations via ActivityTaskManager to prevent the
activities being relaunched while in background. Instead, the
activities will be relaunched after brought to front and being visible.

This also prevents all activities in the system being relaunched
at the same time.

Bug: 185301309
Test: update app info via shell command while activity in background
Change-Id: Ibf93b9e3f203578c25e0b6b50494065938790f24
2021-04-23 14:34:38 +08:00
Hui Yu
8e3df06bcb Merge "Temp allowlist bluetooth broadcast to start FGS for 10 seconds." into sc-dev am: 9757955874
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14179249

Change-Id: I7490210d3bae1cda43051963a372f53a6f5417bb
2021-04-23 00:00:28 +00:00
Hui Yu
9757955874 Merge "Temp allowlist bluetooth broadcast to start FGS for 10 seconds." into sc-dev 2021-04-22 23:41:30 +00:00
Jeff Sharkey
a2cd559d96 Merge "Refinement of AttributionSource handling." into sc-dev am: 054fd43e2c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14274118

Change-Id: I7c97b1d0415dfc88328c8c5a637ea4997f036358
2021-04-22 21:00:40 +00:00
Jeff Sharkey
054fd43e2c Merge "Refinement of AttributionSource handling." into sc-dev 2021-04-22 20:43:14 +00:00
Garfield Tan
7b2f2510ee Merge "Add a method to obtain task info with intent extra" into sc-dev am: 0ce27fdffe
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14256489

Change-Id: I21d69275162a4e57e4ed76a70ce2362eae1171c3
2021-04-22 20:25:50 +00:00
Garfield Tan
0ce27fdffe Merge "Add a method to obtain task info with intent extra" into sc-dev 2021-04-22 20:22:50 +00:00
Jeff Sharkey
67d4e1e079 Refinement of AttributionSource handling.
Previous CLs had started passing AttributionSource values across
Binder calls inside BluetoothDevice instances, but this can cause
confuse the permission check logic in the future; we should instead
always aim to use the AttributionSource closest to the app making
the call, instead of parceling it.

This change also improves logging to highlight when we're quietly
treating a permission as denied, and when a UID is mismatched.

Bug: 186106084
Test: atest BluetoothInstrumentationTests
Change-Id: I5d3fdb3c573cb9e77474952d8680caa4c4c464eb
2021-04-22 12:46:06 -06:00
Caitlin Cassidy
eb457d50b7 [Ongoing Call Chip] Don't show the chip on lockscreen.
Also moves the #initNotificationIconArea call to be within
CollapsedStatusBarFragment, rather than requiring StatusBar to call it.
This makes our unit tests better because now we don't need to call it
manually.

Also fix a bug in #onDozingChanged that was passing disabled1 in for
disabled2.

Test: atest and manual
Bug: 183229367
Fixes: 185897059
Change-Id: I0a65f9e90e66680f0b602b89f89ec0a4900e9df8
2021-04-22 15:18:12 +00:00
Alex Johnston
fa54c98886 Merge "setKeyGrantForApp DELEGATION_CERT_SELECTION" into sc-dev am: f2766e9043
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14265327

Change-Id: Ief54fff943bc525fade22924d9bc36d173c2a8d0
2021-04-22 13:21:02 +00:00
Alex Johnston
f2766e9043 Merge "setKeyGrantForApp DELEGATION_CERT_SELECTION" into sc-dev 2021-04-22 13:03:48 +00:00
Ruslan Tkhakokhov
42c47eb7cd Merge "Add @IntDef for backup transport flags" into sc-dev am: 2a4f590001
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14253106

Change-Id: I9ae7930873ace673c671f83c3cb3fa40a151d583
2021-04-22 12:47:56 +00:00
Ruslan Tkhakokhov
2a4f590001 Merge "Add @IntDef for backup transport flags" into sc-dev 2021-04-22 12:22:42 +00:00
Chloris Kuo
657c5dc9cd Merge "NAS Setting Migration" into sc-dev am: c08e1a4eda
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14258317

Change-Id: Iaee0e61e8667d7bffacd5dc1444013192c45e65d
2021-04-22 00:41:22 +00:00
Chloris Kuo
c08e1a4eda Merge "NAS Setting Migration" into sc-dev 2021-04-22 00:23:25 +00:00
Hui Yu
8c23d658c7 Temp allowlist bluetooth broadcast to start FGS for 10 seconds.
Add an overloaded version of Context.sendBroadcastMultiplePermissions() that can
specify BroadcastOptions, it is called by com.android.bluetooth package.

Bug: 182816627
Test: atest AdapterServiceTest
Test: atest AvrcpControllerStateMachineTest
Test: atest BondStateMachineTest
Test: atest MapClientStateMachineTest
Test: atest RemoteDevicesTest

Change-Id: I8bb2d2ed98ece70ebbe9d3a1b549b966d690de4f
2021-04-21 16:48:04 -07:00
TreeHugger Robot
e4718114de Merge "Synthesize app PendingIntents rather than wrap them" into sc-dev am: 6c0a479e62
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14190107

Change-Id: If286f50c9cb18e20f64cf1ca0f7b5d2a26a0cb57
2021-04-21 22:48:24 +00:00
TreeHugger Robot
6c0a479e62 Merge "Synthesize app PendingIntents rather than wrap them" into sc-dev 2021-04-21 22:41:22 +00:00
Alex Johnston
4c9f804133 setKeyGrantForApp DELEGATION_CERT_SELECTION
* setKeyGrantForApp and setKeyGrantToWifiAuth
  should be guarded with the
  DELEGATION_CERT_SELECTION instead of
  DELEGATION_CERT_INSTALL
* Update DPM docs

Bug: 178598508
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegation
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegationCertSelection
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegatedCertInstallerDirectly

Change-Id: Ia47c1e1b360d8e60d6a2e56a7b449f3113d40352
2021-04-21 17:04:12 +01:00
TreeHugger Robot
5a824393f3 Merge "Pipe start op throught app ops policy and delegate" into sc-dev am: 16472322f9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14259081

Change-Id: I22db432c0f07a8ddb5b1795f86921c380c570316
2021-04-21 15:07:42 +00:00