Commit Graph

22894 Commits

Author SHA1 Message Date
Makoto Onuki
eebb589d99 Merge "Update duplicate-app WTF" into tm-dev 2022-02-24 21:57:08 +00:00
Makoto Onuki
e214eee46f Update duplicate-app WTF
Simplify the logic, and instead only enable it for gms-core

Test: Manual test with a test app
Bug: 185177290
Bug: 221248960
Change-Id: If75cc3ef8e56469b384d9431f53bcacce638f23c
2022-02-24 18:10:17 +00:00
Kholoud Mohamed
7e76fddc52 Merge "Change Callable to Supplier in the dpm resource apis" into tm-dev 2022-02-24 17:28:18 +00:00
Kholoud Mohamed
8084c8c036 Merge "rename callingPackageResourceId to resourceIdInCallingPackage" into tm-dev 2022-02-24 16:18:09 +00:00
Pat Manning
80c4b33ddf Merge "Removing 'override' from nav bar mode APIs." into tm-dev 2022-02-24 15:44:35 +00:00
Kholoud Mohamed
c099351d94 Merge "Change DEVICE_POLICY_RESOURCE_UPDATED broadcast extras" into tm-dev 2022-02-24 13:11:00 +00:00
Sudheer Shanka
d6904c7f41 Merge "Update javadoc for recordResponseEventWhileInBackground()." into tm-dev 2022-02-24 03:15:03 +00:00
Cecilia Hong
77f82a27cf Merge "[DO NOT MERGE] Address the Smartspace UI templates APIs review comments." into tm-dev 2022-02-24 01:36:55 +00:00
TreeHugger Robot
199d49a834 Merge "Add documentation about permission in Nearby streaming policies" into tm-dev 2022-02-24 00:41:03 +00:00
Sudheer Shanka
4ac2838899 Update javadoc for recordResponseEventWhileInBackground().
Update it to make it clear that it is valid for only
explicit intents.

Bug: 206518114
Test: treehugger
Change-Id: I94ee73bb8050f4d4d6171b7d1c7f8053b43310f1
2022-02-23 20:32:48 +00:00
Cecilia
36376d66a3 [DO NOT MERGE] Address the Smartspace UI templates APIs review comments.
- Add JavaDocs for all methods in SubItemLoggingInfo;
- Add packageName field to SubItemLoggingInfo;
- Add BaseTemplateCard.SubItemInfo to warp a subitem's related info;
- Override Object.toString for Smartspace Text.

Fixes: 220129097
Test: atest CtsSmartspaceServiceTestCases
Change-Id: I459c9a229d05d328833de1b9264b4cf64b2b5813
2022-02-23 20:09:03 +00:00
Makoto Onuki
ad558f99b8 Revert "Disable per-process app class to investigate"
Revert "Disable per-process app class to investigate (disabling CTS)"

Revert submission 16804724-disable-per-proc-app

Reason for revert: The revert has reached weekly. Now I'll revert it to see what change it made.
Reverted Changes:
I87f16857b:Disable per-process app class to investigate
I87f16857b:Disable per-process app class to investigate (disa...

Change-Id: Ib84035c7819acc347e0bbba8bfada66300778c63
Test: treehugger
Bug: 185177290
2022-02-23 18:17:45 +00:00
kholoud mohamed
fb3103edad Change Callable to Supplier in the dpm resource apis
Bug: 217388602
Test: atest EnterpriseResourcesTests
Change-Id: I7ac5634b965041107f612882cbba8598a3af6520
2022-02-23 17:02:57 +00:00
Pavel Grafov
11c572a248 Merge "Remove mDeviceOwnerName - it's never read" into tm-dev 2022-02-23 16:54:06 +00:00
kholoud mohamed
ad443f8083 rename callingPackageResourceId to resourceIdInCallingPackage
Bug: 218875965
Test: manual
Test: atest EnterpriseResourcesTests
Change-Id: I489d2dfd49010599028fb43ba6d2a265e564f2e3
2022-02-23 14:10:27 +00:00
kholoud mohamed
1b6b9dfeb8 Change DEVICE_POLICY_RESOURCE_UPDATED broadcast extras
Changed the resource type extra to be an int value to indicate the
resource type instead of having individual boolean extras for each
resource type.

Bug: 218875965
Test: N/A
Change-Id: Ic734c4d0e0a769dd981ef214e1be41f62d74705c
2022-02-23 14:10:09 +00:00
Pat Manning
5342b3d416 Removing 'override' from nav bar mode APIs.
Bug: 217668440
Test: StatusBarManagerTest.java, StatusBarManagerServiceTest.java
Change-Id: I1c5fa5f5d564a78e3abaf1457a105d5e8c6402b9
2022-02-23 10:46:25 +00:00
TreeHugger Robot
f8806f1342 Merge changes from topic "game_loading_statsd_to_tm-dev" into tm-dev
* changes:
  Increase API coverage for android.app.GameState
  Add statsd logging and address API review feedback
2022-02-23 10:32:55 +00:00
Xiaowen Lei
8d50e04afc Merge "Add role guarded APIs for subscribing to keyguard locked state in KeyguardManager." into tm-dev 2022-02-23 06:43:49 +00:00
Maurice Lam
ea90abb5cb Add documentation about permission in Nearby streaming policies
Fixes: 215301014
Test: Existing tests pass
Change-Id: Iee6c961a622d81d76779e5e6b5c5543f132a0de1
2022-02-22 20:35:54 +00:00
jimblackler
f44ddcc068 Add statsd logging and address API review feedback
Bug: 207662418
Bug: 216294586
Test: atest CtsStatsdAtomHostTestCases:GameManagerStatsTests
Change-Id: Icaa9d49f020f25d982a515b03aa9c91c34d2a778
Merged-In: Icaa9d49f020f25d982a515b03aa9c91c34d2a778
2022-02-22 17:07:35 +00:00
TreeHugger Robot
75ac29b6ac Merge "make DevicePolicyResources constructor private" into tm-dev 2022-02-21 17:35:21 +00:00
kholoud mohamed
eb861305ef make DevicePolicyResources constructor private
Fixes: 219945609
Test: N/A
Change-Id: Ibe8e6f61ff2760938a7b909ed2b72323c3fe8244
2022-02-21 13:10:27 +00:00
Pavel Grafov
0707849bf3 Remove mDeviceOwnerName - it's never read
And remove all the code whose only effect is modifying this unused
variable.

Bug: 219944571
Test: compiles
Change-Id: Ie484c4dcd3691e427365382b447e6d5a86f95cf4
Merged-In: Ie484c4dcd3691e427365382b447e6d5a86f95cf4
(cherry picked from commit 8a168e8a40)
2022-02-21 11:44:51 +00:00
kholoud mohamed
7cc7b89ff3 Minor renamings in DevicePolicyManager
Fixes: 213174671
Test: atest android.devicepolicy.cts.DevicePolicyManagerTest
Change-Id: If7ac997586d7d088ab9e3fb2fe47723479a197ef
2022-02-21 11:10:29 +00:00
Xiaowen Lei
a650c2c4b7 Add role guarded APIs for subscribing to keyguard locked state in KeyguardManager.
Bug: 216630470
CTS-Coverage-Bug: 220371902
Test: manual
Test: atest CtsAppTestCases:KeyguardLockedStateApiTest
Ignore-AOSP-First: (for packages/Shell/AndroidManifest.xml) Permission
not yet publicly announced.

Change-Id: I1f44ec6799b0f74791613389ce28aadf84c9fe5c
2022-02-19 03:48:40 +00:00
Nikita Ioffe
262b57bac7 Merge "Add a flag to always do the cert signature check" 2022-02-17 19:13:19 +00:00
TreeHugger Robot
b92cf05c77 Merge "Update the Smartspace UI templates APIs." 2022-02-17 06:39:44 +00:00
Cecilia
e6a676af11 Update the Smartspace UI templates APIs.
- Add the 3rd-line data in BaseTemplateData to support new Android T
  use case;
- Remove the optional constructor from Text for API review comments in
  b/218860086;
- Add SubItemLoggingInfo to support the sub-card logging on the base
  card.

Fixes: 218860086
Test: atest CtsSmartspaceServiceTestCases
Change-Id: I39d7014f4f5b36719f54e191ed5af1fa45429a53
2022-02-17 04:08:39 +00:00
TreeHugger Robot
d1ee3c029e Merge "Fix default mode for system alert window on low-RAM device." 2022-02-16 23:25:44 +00:00
Hongwei Wang
6b9435a3a6 Merge "Add Content PiP support with launch-into-pip API" 2022-02-16 19:31:34 +00:00
Nikita Ioffe
0b977ecd05 Add a flag to always do the cert signature check
Right now signature check is unconditionally bypassed on debuggable
builds, which makes things a little bit confusing - instrumentation will
succeed on debuggable build, but fail on the user build.

Bug: 209061624
Test: adb shell am --always-check-signature com.android.tests.supplemental.process/androidx.test.runner.AndroidJUnitRunner
Change-Id: I66d6331156d4503e147141872cbe73a9330ea701
2022-02-16 17:32:36 +00:00
Sudheer Shanka
a44a2100e1 Merge "Add an API to bulk query broadcast response stats for all pkgs." 2022-02-16 17:05:35 +00:00
Rajeev Kumar
8152335ad4 Fix default mode for system alert window on low-RAM device.
Bug: 219771773
Fixes: 219771773
Test: atest com.google.android.memory.gts.RestrictedFeatureTest#testSystemAlertWindowRestriction
Change-Id: I688dc11154383966f83cfdfcd1163a713bb03e61
2022-02-16 08:23:57 -08:00
Hongwei Wang
544007604f Add Content PiP support with launch-into-pip API
Terms
- Host activity, the activity that the content-pip is originated from.
  There should be some UI affordance on Host activity user can tap to
  enter content-pip
- Container activity, the activity that carries the content from Host
  Activity and transits to PiP mode

Workflow in brief

- Container activity is defined in the same application as Host activity
- A new ActivityOptions#makeLaunchIntoPip API is added, Host activity
  uses this API to construct ActivityOptions to launch the Container
  activity directly into pip mode.
- ActivityStarter sets a reference on Container activity pointing to
  Host activity upon creation and moves the activity to pinned task
- WMShell transits Container activity to pinned mode
- When user taps on `Expand` button in PiP menu, WMShell calls
  WCT#startTask with the task id to bring the Host task to front

Content hand-off

- Since Host activity is the one starts Container activity, it can
  replace its content with some placeholder right after startActivity
- This CL also makes the assumption that Host activity can establish a
  communication channel with the Container activity, such as using the
  ResultReceiver parcelable. Therefore it's out of scope to provide
  extra callback to Host activity on lifecycle events of Container activity.

See also the design doc go/content-pip-v2 and the end-to-end demo in
ApiDemos `App > Activity > Picture in Picture`

Bug: 165793661
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/e9Mp5rvxYBrNOdGSUoSXHO
Test: manual, see Video
Test: atest WmTests:ActivityOptionsTest \
            WmTests:ActivityRecordTests \
            WmTests:ActivityStarterTests \
            PinnedStackTests
Change-Id: I2bebfea8d1930b0b7e495d91cfd5ddc7c347da68
2022-02-15 23:44:42 -08:00
Jacqueline Bronger
ecdf9e8bf9 Merge "Add API to add custom close action for PiP." 2022-02-16 06:53:27 +00:00
Galia Peycheva
bee3ff1513 Merge "Add API to prefer docking big overlays" 2022-02-16 05:41:04 +00:00
Joanne Chung
5c1e5f7193 Merge "Update team OWNERS file." am: e96070ac89 am: 114d0c7773 am: 1bb2f28548
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1982066

Change-Id: Ic8c77290b4d8e2d6cf8353a793b75cf71990a7a1
2022-02-16 05:24:07 +00:00
Joanne Chung
1bb2f28548 Merge "Update team OWNERS file." am: e96070ac89 am: 114d0c7773
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1982066

Change-Id: I973028e9095644d0aa71d3b0664297d81ecffb55
2022-02-16 05:14:21 +00:00
Joanne Chung
114d0c7773 Merge "Update team OWNERS file." am: e96070ac89
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1982066

Change-Id: I50a93d3e190ba2a4988e0777be2c5e571f2a2760
2022-02-16 04:42:57 +00:00
Bryce Lee
df2016cbac Merge "Add TestAPI access to settings through DreamManager." 2022-02-16 00:39:50 +00:00
Hui Wu
e105452014 Merge "CloudSearch API: Adds the prefix of "android.app.cloudsearch." to avoid clashes." 2022-02-16 00:20:38 +00:00
Sudheer Shanka
d807ffe41f Add an API to bulk query broadcast response stats for all pkgs.
Bug: 217567456
Test: atest tests/tests/app.usage/src/android/app/usage/cts/UsageStatsTest.java
Change-Id: I12853fdfb8a7b70eac935cf6aab23a388d2b7005
2022-02-15 15:45:17 -08:00
Galia Peycheva
8e2b31d6f6 Add API to add custom close action for PiP.
Adds option to set a custom remote action to the PiP params to be used
instead of the system provided close action.

Although PipParamsBuilder gets a new setter, we do *not* add any new
getters to PipParams since the convention for this class has been to
not have any getters at all. The only existing public APIs are from
Parcelable: describeContents, writeToParcel, and CREATOR.

Bug: 218487423
Test: atest PinnedStackTests#testCloseActionIsSet

Change-Id: I04f1cc6177744e43236876cebbfc80cced1637ff
2022-02-15 23:37:05 +00:00
TreeHugger Robot
4803b4c958 Merge "Add API to add title and subtitle to the PIP." 2022-02-15 22:56:04 +00:00
Vadim Caen
a70bdd8739 Merge "Add enableOnBackInvokedCallaback manifest attribute" 2022-02-15 19:07:27 +00:00
Hui Wu
0f95d4e69c CloudSearch API: Adds the prefix of "android.app.cloudsearch." to avoid clashes.
Bug: 218398710
Test: Tested on the physical device
Change-Id: I223640cf7ce22b4e38a350ac5f25f702419aa8a7
2022-02-15 08:43:19 -08:00
Felipe Leme
334a4e4d51 Merge "Rename resetNewUserDisclaimer() to acknowledgeNewUserDisclaimer()" into sc-v2-dev am: d7a45338bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16830692

Change-Id: I1bcbc2c6b4de0471a6a5fd17e00a3210392bf7bf
2022-02-15 15:54:52 +00:00
Galia Peycheva
d6ee3e2d24 Add API to prefer docking big overlays
Bug: 216749913
Bug: 203647003
Test: atest PinnedStackTests#testPreferDockBigOverlaysWithExpandedPip
Change-Id: I6add690d54b8fb1061a1b5c9e5fe2f856f8019d0
2022-02-15 15:19:30 +01:00
TreeHugger Robot
7940151941 Merge "Throw IllegalArgumentException when calling setNightModeCustomType with an unsupported type" 2022-02-15 14:00:26 +00:00