Commit Graph

20938 Commits

Author SHA1 Message Date
Ben Lin
5a1149e1b2 Merge "PiP: API - explain isStashed in more detail." into sc-dev am: 394f4792e6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14284623

Change-Id: Ie3d68ed75d66e67e6b6b5152117c388193e7b2b7
2021-05-06 21:38:00 +00:00
Ben Lin
394f4792e6 Merge "PiP: API - explain isStashed in more detail." into sc-dev 2021-05-06 21:29:58 +00:00
TreeHugger Robot
c23cd2285a Merge "Rename OnProjectionStateChangeListener -> OnProjectionStateChangedListener" into sc-dev am: 8c62b2ba7c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14429650

Change-Id: Ia661cc856047a819a6f6dfac65cd8add3524100c
2021-05-06 18:43:19 +00:00
TreeHugger Robot
8c62b2ba7c Merge "Rename OnProjectionStateChangeListener -> OnProjectionStateChangedListener" into sc-dev 2021-05-06 18:36:32 +00:00
TreeHugger Robot
55b6b984af Merge "Fix issues with getHistoricalOps() results overflowing Binder connection." into sc-dev am: 38e2d409ea
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14440241

Change-Id: I24ea1108dbf52b077b0d7143b726a6fa8dc05617
2021-05-06 13:10:28 +00:00
TreeHugger Robot
38e2d409ea Merge "Fix issues with getHistoricalOps() results overflowing Binder connection." into sc-dev 2021-05-06 12:53:24 +00:00
Ben Lin
5059bd6b37 PiP: API - explain isStashed in more detail.
Bug: 185972980
Test: None. Documentation update.
Change-Id: I7653a394a9ecdc0c89e65604a466f8448439f8fe
2021-05-05 18:44:24 -07:00
Svetoslav Ganov
8fb897acef Merge "Prepare AttributionSource to expose to native" into sc-dev am: 720add59c7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14381260

Change-Id: I14f40269541872bf807f669283da9a6f3d722f97
2021-05-05 23:44:49 +00:00
Svetoslav Ganov
720add59c7 Merge "Prepare AttributionSource to expose to native" into sc-dev 2021-05-05 23:23:54 +00:00
Kurt Dresner
81f2994f35 Rename OnProjectionStateChangeListener -> OnProjectionStateChangedListener
Bug: 175130323
Test: Presubmits
Change-Id: Ica48cd073e256055d5cac0f12e9ce814227eb0d6
2021-05-05 15:27:31 -07:00
Chavi Weingarten
c5be7a03e5 Merge "Capture layer and children when calling takeSurfaceControlScreenshot" into sc-dev am: 9a0bcd29df
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14430168

Change-Id: I2a8e936eb50e33b38c2caf27b3b0e023d500c65d
2021-05-05 19:56:31 +00:00
Chavi Weingarten
9a0bcd29df Merge "Capture layer and children when calling takeSurfaceControlScreenshot" into sc-dev 2021-05-05 19:43:52 +00:00
TreeHugger Robot
7d33178a94 Merge "Add javadoc for trampoline restrictions" into sc-dev am: 969a1a8643
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14440247

Change-Id: I2c84ef76b406e0d36b040cfeea8777116ef85fc7
2021-05-05 18:47:22 +00:00
TreeHugger Robot
969a1a8643 Merge "Add javadoc for trampoline restrictions" into sc-dev 2021-05-05 18:41:38 +00:00
Tom Natan
25bf625342 Merge "Add an API method for clearing compat overrides on release builds" am: b9680bac79 am: 9e9e1c4af5 am: 65654644bc am: 43bf4624ec
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1688626

Change-Id: If0f4b50388f57b79ce42043678f283eb140923ec
2021-05-05 16:46:27 +00:00
Tom Natan
43bf4624ec Merge "Add an API method for clearing compat overrides on release builds" am: b9680bac79 am: 9e9e1c4af5 am: 65654644bc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1688626

Change-Id: Id1b221629fee21648ee2a4683ab9a34b2efef1d6
2021-05-05 16:41:16 +00:00
Tom Natan
65654644bc Merge "Add an API method for clearing compat overrides on release builds" am: b9680bac79 am: 9e9e1c4af5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1688626

Change-Id: Ic1b9bb5b3f6cfba5192838020fc1b9770715f80a
2021-05-05 16:13:03 +00:00
Bernardo Rufino
0875925d06 Add javadoc for trampoline restrictions
Added to notification APIs and browser exemption in ROLE_BROWSER in
topic CL.

Bug: 167676448
Test: Builds
Change-Id: Ibb4bee91fc2b8fcd8bbe194812cc8c3fa22c41ec
2021-05-05 16:41:42 +01:00
Tom Natan
b9680bac79 Merge "Add an API method for clearing compat overrides on release builds" 2021-05-05 14:58:41 +00:00
Stanislav Zholnin
ecb45f7e33 Fix issues with getHistoricalOps() results overflowing Binder connection.
Test: manually tested.
Bug: 186193371
Change-Id: I391cb36a86308c89056965a47596707257a2a0af
2021-05-05 14:07:02 +01:00
tomnatan
2697018f70 Add an API method for clearing compat overrides on release builds
This will be useful when we want to clear overrides for apps that are no longer needed regardless of the version that is installed on device, e.g., when an app is being uninstalled, when we want to rollback an override, or when we deprecate a change-id.

In addition, rename CompatChanges#setPackageOverride to
addPackageOverrides.

Bug: 183183372
Test: atest FrameworksServicesTests:CompatConfigTest
Test: atest FrameworksServicesTests:PlatformCompatTest
Change-Id: Iff416c8b4c88b5eddc9e21c73219198d23266fa1
2021-05-05 07:10:41 +00:00
Louis Chang
3e41f18978 Merge "Remove WINDOWING_MODE_FULLSCREEN_OR_SPLIT_SCREEN_SECONDARY" into sc-dev am: ba6bf9dad3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14242368

Change-Id: Ib7739d7ef39c3412a6b9bb3c47a28441d5ce0747
2021-05-05 00:00:39 +00:00
Louis Chang
ba6bf9dad3 Merge "Remove WINDOWING_MODE_FULLSCREEN_OR_SPLIT_SCREEN_SECONDARY" into sc-dev 2021-05-04 23:42:51 +00:00
chaviw
80bb00b977 Capture layer and children when calling takeSurfaceControlScreenshot
When calling UiAutomationConnection.takeSurfaceControlScreenshot, it
should capture the requested SurfaceControl and its children. The
current code only captures the children. Therefore, call setChildrenOnly
with false to ensure it captures the parent, as well.

Test: ASurfaceControlTest
Bug: 185390632
Change-Id: I62707f808934177c8db05485ac28559982b8c607
2021-05-04 14:32:48 -05:00
Alex Buynytskyy
3e43b9f2ff Merge "Customer API feedback." into sc-dev am: 915f8bdaba
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14377096

Change-Id: I923a79acf57ef760bdd2172c8d2ebdb2326dc7b3
2021-05-04 18:38:43 +00:00
Anna Zappone
39fd45c872 Merge "Handle work profile, DND state, app pauses" into sc-dev am: 8315904e81
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14353364

Change-Id: I5ec7a9baca6dc0d94e7ad11029708b66a0748806
2021-05-04 15:34:13 +00:00
Alex Buynytskyy
1e5cf8f1ff Customer API feedback.
Use two separate interfaces for flags and single value. This produces
correct API documentation.

Bug: 160605420
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I9a7eaf86af558d8dcfd1636a4baf6a28e2ee79b1
2021-05-04 15:24:02 +00:00
Anna Zappone
8315904e81 Merge "Handle work profile, DND state, app pauses" into sc-dev 2021-05-04 15:16:52 +00:00
Stanislav Zholnin
25f17ab28f Merge "Add more explanation on difference between aggregate and discrete information." into sc-dev am: 3476ed1d68
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14411200

Change-Id: Ifd3b96a37f293db8a4cfd3c88c6230d3e88fac0a
2021-05-04 11:47:07 +00:00
Stanislav Zholnin
3476ed1d68 Merge "Add more explanation on difference between aggregate and discrete information." into sc-dev 2021-05-04 11:23:40 +00:00
Alex Johnston
1d96784886 Merge "DPM Check for unaffiliated secondary users" into sc-dev am: 345ff0cc74
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14325409

Change-Id: I353244117715ec21e9ac6cdbac4101656b6853b6
2021-05-04 10:28:20 +00:00
Alex Johnston
345ff0cc74 Merge "DPM Check for unaffiliated secondary users" into sc-dev 2021-05-04 10:23:39 +00:00
Svet Ganov
4bf102ae26 Prepare AttributionSource to expose to native
Separate the internal state of AttributionSource from the
class to make it a simple AIDL we can translate automatically
to native - keeping Java and native parts in sync. This
would allow writing a thin native lib for checking attribution
source permissions which would be used to teach camera and
audio about attributions.

Deinfe an AIDL interface for passing around an attribution
source and opr performing permission checker oprations allowing
native and Java permission checks on attribution chains to be
handled. The Java side permission checker functions are in a dedicated
permisison checker service on top of which sits the PermissionChecker.
We expose similar PermissionChecker native APIs sitting on top
of the same remote interface. The nice thing is that we have
native and Java permisison checkers in sync sharing remoting
code and being close in shape.

For now the PermissionChecker in Java is divorced from the
PermissionManager but in T we will consider how to unify them,
either by an extension object on the PermmissionManager or
APIs on the PermissionManager, or another approach, and then
migrate clients off the PermissionChecker APIs.

Sync app ops were not tracked across multiple binder calls which
prevents moving the permission checks in the system server as
this adds one more hop. Now sync ops are propagated backed the
call stack and only the ops for the package are dispatched to
it and the rest are propagated back to the caller, recursively.

bug: 158792096

Test: atest CtsPermission5TestCases
      atest CtsAppOps2TestCases
      atest CtsPermissionTestCases
      atest CtsPermission2TestCases
      atest CtsPermission3TestCases
      atest CtsPermission4TestCases
      atest CtsPermission5TestCases

Change-Id: Ia5cbd2eb20a2da172a5960afdddd7e467f4bcb0d
2021-05-04 07:42:45 +00:00
Louis Chang
4ac4779560 Merge "Do not relaunch bg activities when application info changes" into sc-dev am: 3100c1e4f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14319871

Change-Id: I035a571180e481fdddd25ac64e69ac5b54644d64
2021-05-04 04:21:37 +00:00
Louis Chang
3100c1e4f4 Merge "Do not relaunch bg activities when application info changes" into sc-dev 2021-05-04 04:06:48 +00:00
Svetoslav Ganov
416a90494a Merge "Use the correct switch for AR bypass" into sc-dev am: 70e272de83
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14236526

Change-Id: I31e46afc0b69dac253ba088774ffe69287895fca
2021-05-03 19:32:10 +00:00
Svetoslav Ganov
70e272de83 Merge "Use the correct switch for AR bypass" into sc-dev 2021-05-03 19:13:09 +00:00
Stanislav Zholnin
dd60f56455 Add more explanation on difference between aggregate and discrete
information.

Bug: 185226805
Test: Change limited to docs, no tests.
Change-Id: If041bad776d60dcfe018ef4d095f3e68e33a9e8d
2021-05-03 19:08:32 +01:00
Anna Zappone
1b12d3d473 Handle work profile, DND state, app pauses
Listen and respond to changes in state on background thread. Store in-memory to avoid
requerying frequently

Test: PeopleSpaceWidgetManagerTest, PeopleTileViewHelperTest,
PeopleSpaceUtilsTest
Bug: 182891880
Change-Id: Id0142b02bb549275c77d8940cda4eb1f0bf4e947

Change-Id: I65712a7a43d8956499533689fe77afbeeac5bd6e
2021-05-03 17:23:28 +01:00
Eran Messeri
9fbb74e0d5 Merge "Document access to device identifiers on managed devices" into sc-dev am: 84b3b6fb99
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14251404

Change-Id: If7656df1f2dcecb055c6ab5f68297f434e765ae2
2021-05-03 07:40:18 +00:00
Eran Messeri
84b3b6fb99 Merge "Document access to device identifiers on managed devices" into sc-dev 2021-05-03 07:27:22 +00:00
Ruslan Tkhakokhov
c6f12d3587 Merge "Make changes guarding the new opt-out scheme overridable" into sc-dev am: bdd1f279c5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14353381

Change-Id: I751d2ac6f3bde00f1361363f67cb60156cf36295
2021-05-01 13:41:55 +00:00
Ruslan Tkhakokhov
bdd1f279c5 Merge "Make changes guarding the new opt-out scheme overridable" into sc-dev 2021-05-01 13:22:21 +00:00
Svet Ganov
05d15ce5ad Use the correct switch for AR bypass
bug: 182204957

Test: atest CtsPermissionTestCases

Change-Id: Ic43106ced06bcca2a9abded299671ce92aacf938
2021-05-01 01:25:51 +00:00
Florian Mayer
0f7d78bfe7 Merge changes from topic "playprofileable" into sc-dev am: 748c3a8040
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14328127

Change-Id: I26cbadace6a71fe9195eb0271224514ae5f73332
2021-04-30 20:50:12 +00:00
Florian Mayer
748c3a8040 Merge changes from topic "playprofileable" into sc-dev
* changes:
  Add packageInstaller to packages.list.
  Add profileable opt-out to packages.list.
2021-04-30 20:42:16 +00:00
Kurt Dresner
a7e28fd8a8 Merge "Make PROJECTION_TYPE_ALL=-1 so that all bits are on." into sc-dev am: 3a4ecbf88f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14310287

Change-Id: I4621487aabb8e19a8fe76d925f4ce935a07105e4
2021-04-30 18:37:06 +00:00
Kurt Dresner
3a4ecbf88f Merge "Make PROJECTION_TYPE_ALL=-1 so that all bits are on." into sc-dev 2021-04-30 18:23:24 +00:00
TreeHugger Robot
a862fde66e Merge "Change streaming policy implementations" into sc-dev am: 78a91deb5e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14121961

Change-Id: I4e400a995c3be21aecebf24f8a67068fa428465e
2021-04-30 13:53:35 +00:00
TreeHugger Robot
78a91deb5e Merge "Change streaming policy implementations" into sc-dev 2021-04-30 13:34:01 +00:00