Commit Graph

22875 Commits

Author SHA1 Message Date
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
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
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
Galia Peycheva
f998202963 Add API to add title and subtitle to the PIP.
On TV information about the PIP is to be shown in the dashboard and via
a card in the launcher. The app should be able to provide information
for this in the form of a title and subtitle if they want to.

Bug: 204173025
Test: atest PinnedStackTests#testTitleIsSet
Test: atest PinnedStackTests#testSubtitleIsSet
Change-Id: I805e010bad177215627f2a4876cd7bd7e0bd2314
2022-02-15 12:29:07 +01:00
Richard Gaywood
aaf134e040 Puller for PendingIntentController
Populate a new stats atom with information about PendingIntents; per-uid: (1) the total number of intents and (2) the total size of any extras bundled with the intents.

Change-Id: I04e6b368a76623c80ead6f846baf85b1a6c5ce70
Test: statsd_testdrive 10151
Bug: 217162457
2022-02-15 08:41:36 +00:00
Felipe Leme
bb1bb44c00 Merge "Deprecated "legacy" options for Activity.dump()" 2022-02-14 23:59:34 +00:00
Vadim Caen
625f5e286f Add enableOnBackInvokedCallaback manifest attribute
Add a manifest flag for applications to opt-out of the new back
navigation system.

Test: atest
CtsWindowManagerDeviceTestCases: android.server.wm.BackNavigationLegacyTest
Bug: 217709328
Change-Id: I43d09a37b126e59bdb8f20bb83cf6d99e53a1e91
2022-02-14 22:27:10 +01:00
Evan Rosky
33cfda6944 Merge "Add ability for sysui/featureflags to restart android" 2022-02-14 20:49:12 +00:00
Xin Li
2b87be68b8 Merge SP2A.220305.012
Bug: 219523960
Merged-In: I748fdd49626acaa0e986a9d8038039cada6faa60
Change-Id: I67693156d705f2488fe18149d2dd02d529f009ff
2022-02-14 20:06:38 +00:00
Felipe Leme
865dc828f5 Merge "Final (?!?!?!) improvements on Activity.dump()" 2022-02-14 19:28:29 +00:00
Steven Ng
f9da7872ae Throw IllegalArgumentException when calling setNightModeCustomType with an unsupported type
Also
1. update documentation about the IllegalArgumentException thrown in
   setNightModeCustomType
2. modify NightModeCustomType to not include MODE_NIGHT_CUSTOM_TYPE_UNKNOWN
3. add @IntDef, NightModeCustomReturnType, for the getNightModeCustomType
4. Fix lint warning

Test: atest FrameworksUiServicesTests:UiModeManagerServiceTest
Bug: 218860231
Change-Id: Id8b1f1d7a3ee60f62a0ff6cdee0b5e416a130d63
2022-02-14 18:48:41 +00:00
TreeHugger Robot
4b665b9872 Merge "Modify the documentations for the UI template APIs" 2022-02-14 18:27:35 +00:00
Felipe Leme
cfd8bb1da6 Deprecated "legacy" options for Activity.dump()
These 3 options (--autofill, --contentcapture, and --tranlation)
are now available as '--dump-dumpable DUMPABLE' (where DUMPABLE is
AutofillManager, ContentCaptureManager, and UiTranslationController
respectively).

Test: adb shell am start com.android.settings && adb shell dumpsys activity com.android.settings --autofill
Test: m -j update-api

Bug: 149254050

Change-Id: Iaf9040a4afcd87d32c60e32d19aaca8e1d2c817a
2022-02-14 09:52:52 -08:00
Felipe Leme
bca61d7f66 Final (?!?!?!) improvements on Activity.dump()
- Fix handle of special args (they were not called unless the app
  targeted T).
- Lazy-adds some dumpables to Activity (so the list of dumpables
  is not created until dump() is called).

Test: adb shell am start com.android.settings && adb shell dumpsys activity com.android.settings --list-dumpables
Test: atest CtsAppTestCases:android.app.cts.ActivityDumpTest

Bug: 149254050

Change-Id: Id25d115d4aef8ab16ceb3d035c134c637e16dadd
2022-02-14 09:20:51 -08:00
Caitlin Cassidy
89e1907bba Merge "[Nearby Media Devices] Add a SystemApi to get information about nearby media devices from external clients." 2022-02-14 12:59:24 +00:00
Neil Fuller
55c81c4933 Merge "Switch "UTC time" to "Unix epoch time"" 2022-02-14 09:43:22 +00:00
Joanne Chung
b00f0d6c95 Update team OWNERS file.
Bug: 177641730
Test: n/a
Change-Id: If4ecc7326dc229d8807e1497c5e3e2ef0637680f
2022-02-14 14:51:12 +08:00
Bryce Lee
ff8308d067 Add TestAPI access to settings through DreamManager.
This changelist provides access to whether dreams are supported and
enabled through the DreamManager. These methods are hidden and part of
the Test API.

Bug: 215744456
Test: atest DreamServiceTest DreamManagerServiceTests
Change-Id: Ie2245429c580ad0f7a3d510b26d4001c26a8ad9c
2022-02-12 13:53:29 -08:00
Galia Peycheva
178b755646 Merge "Add API for expanded picture-in-picture" 2022-02-12 08:25:58 +00:00
TreeHugger Robot
16a227c1a4 Merge "Add getPackageName to VoiceInteractor" 2022-02-12 02:29:50 +00:00
Jing Ji
42a61716be Merge "Don't prompt on bg abuse if the app has a FGS with notification" 2022-02-12 02:17:58 +00:00
Rubin Xu
0d53729785 Merge "Remove SecurityLog.writeEvent(String)" 2022-02-12 00:02:33 +00:00