Commit Graph

22821 Commits

Author SHA1 Message Date
Felipe Leme
bb1bb44c00 Merge "Deprecated "legacy" options for Activity.dump()" 2022-02-14 23:59:34 +00:00
Evan Rosky
33cfda6944 Merge "Add ability for sysui/featureflags to restart android" 2022-02-14 20:49:12 +00:00
Felipe Leme
865dc828f5 Merge "Final (?!?!?!) improvements on Activity.dump()" 2022-02-14 19:28:29 +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
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
Antony Sargent
0b677034e7 Merge "KeyguardManager#isDeviceSecure()" 2022-02-11 23:47:34 +00:00
Evan Rosky
bd36a8115c Add ability for sysui/featureflags to restart android
When setting flags/sysprops, full reboot is overkill.
This adds a way to just restart system_server.

Bug: 219067621
Test: Call API and verify that it restarts
Change-Id: I67aecbc6ec0570fbaf36165034648ab39da57940
2022-02-11 15:42:16 -08:00
Caitlin Cassidy
ba6b756d0e [Nearby Media Devices] Add a SystemApi to get information about nearby
media devices from external clients.

Bug: 216313420
Test: CTS included in same topic
Test: atest NearbyMediaDevicesManagerTest
Change-Id: Ic5f26d3048a3475dbd232c913bb00bee46339b0a
2022-02-11 20:59:43 +00:00
Rubin Xu
6a8ccfa6c1 Remove SecurityLog.writeEvent(String)
Not used by anyone at the moment and could cause confusion with
the vararg overload, so removing.

Bug: 194988881
Test: atest MixedDeviceOwnerTest#testSecurityLoggingWithSingleUser
Change-Id: I73e64396bbbac69314ac26242f6e00ad1c9453ba
2022-02-11 20:47:53 +00:00
Rubin Xu
b86ec0a5a4 Merge "Security log: additional events for WiFi and BLE connections" 2022-02-11 20:46:50 +00:00
Galia Peycheva
eb54e50617 Add API for expanded picture-in-picture
Bug: 208797488
Test: atest PinnedStackTests#testEnterExpandedPipAspectRatio
Test: atest PinnedStackTests#testEnterExpandedPipAspectRatioMaxWidth
Test: atest PinnedStackTests#testEnterExpandedPipAspectRatioMaxHeight

Change-Id: I7d91ce1db197cf7dac1af8bdf4ee2579b8a70869
2022-02-11 21:39:11 +01:00
TreeHugger Robot
86d89c09f0 Merge "Recycle obtained Parcel" 2022-02-11 19:10:18 +00:00
TreeHugger Robot
ca8c3c269f Merge "Security Logging: log password change events" 2022-02-11 18:28:44 +00:00
Bernardo Rufino
1521f59b3b Merge "Safer @hide Bundle.getParcelable() with explicit type" 2022-02-11 18:23:18 +00:00
Hui Wu
b6f82945c2 Merge "CloudSearch API: add the field of source to SearchRequest" 2022-02-11 17:53:17 +00:00
Rubin Xu
b3655d8ada Security log: additional events for WiFi and BLE connections
Bug: 194988881
CTS-Coverage-Bug: 218677588
Test: atest MixedDeviceOwnerTest#testSecurityLoggingWithSingleUser
Test: atest OrgOwnedProfileOwnerTest#testSecurityLogging

Change-Id: I98d1c8fcd4fae334f1f770751b047dc8ab07c7c5
2022-02-11 17:50:58 +00:00
Pat Manning
dd0811a649 Merge "Revert "Revert "Change invalid input exception to IllegalArgumentException.""" 2022-02-11 17:22:47 +00:00
Lee Campbell
99589ebc0f Add getPackageName to VoiceInteractor
Adds a new API to VoiceInteractor to allow apps to query
the package name of the Voice Interactor associated with
this the current voice interaction

BUG: 192061561
CTS-Coverage-Bug: 218687104
Test: Manual validation from personal and work profiles

Change-Id: If381c38498535bf94d13c0b5ad5f6c4fa5495117
2022-02-11 16:42:38 +00:00
TreeHugger Robot
6ca24eea7c Merge "Makes acknowledgeNewUserDisclaimer() a @TestApi" 2022-02-11 16:19:40 +00:00
Pavel Grafov
c18c3b0525 Merge "Make distinction between null and empty IM list." 2022-02-11 12:13:27 +00:00
Pat Manning
8d606ab2e5 Revert "Revert "Change invalid input exception to IllegalArgumentException.""
This reverts commit d119788b19.

Reason for revert: Fixing CTS test and resubmitting

Change-Id: I66c9e78a9801deee41088a8c842604a213b4f8bd
2022-02-11 11:28:07 +00:00
TreeHugger Robot
c450b4ab93 Merge "Recycle obtained Parcel" 2022-02-11 11:14:22 +00:00
Hui Wu
1fa501674c CloudSearch API: add the field of source to SearchRequest
The System Server populates this new field.

CTS-Coverage-Bug: 210528288
Bug: 210528288
Test: RBE Built redfin-eng and tested on a physical device
Change-Id: I34e1631190b1baa2de9b2c97650865ac1ae1f38e
2022-02-11 00:39:59 -08:00
Kun Niu
1fbbe99469 Merge "Revert "Change invalid input exception to IllegalArgumentException."" 2022-02-11 03:39:10 +00:00
Xu Cao
f04d752fec KeyguardManager#isDeviceSecure()
KeyguardManager#isDeviceSecure() shall return false when called on a virtual display

Bug: 210153811
Test: atest CtsVirtualDevicesTestCases:DefaultDisplayIsDeviceSecureTest CtsVirtualDevicesTestCases:StreamedAppBehaviorTest#isDeviceSecure_shouldReturnFalseOnVirtualDisplay

Change-Id: I5149b08fde8d3a09e484ea965035bd5e7d2bff7b
2022-02-10 18:15:34 -08:00
Wenhao Wang
9bc171544a Merge changes from topic "revert_with_fix"
* changes:
  Temporarily disable user consent check
  Revert "Revert "Revert "Revert "User consent for Logcat data access""""
2022-02-11 01:31:59 +00:00
Beth Thibodeau
4f2645ae1b Merge "Add SystemAPI to override default media output switcher" 2022-02-11 00:22:07 +00:00
Felipe Leme
247a059662 Makes acknowledgeNewUserDisclaimer() a @TestApi
It's already a @SystemApi, but it's used by CTS so it needs to be
allowlisted as @TestApi, otherwise the test fails with a
NoSuchMethodException.

Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_newUserDisclaimer
Test: m update-api

Bug: 217753260

Change-Id: Ied5d86a5c067d57a4ae9bbc4d753481879d2e89e
2022-02-10 15:52:03 -08:00
Caitlin Cassidy
dc5dff8698 Merge "[Media TTT] Add app icon and name to the receiver SystemApi." 2022-02-10 21:35:27 +00:00
Cecilia
663abefa00 Modify the documentations for the UI template APIs
- Rename the classes to be less verbose;
- Add the template layout descriptions to its corresponding data
  classes;
- Documents for all getter/setter methods.

Fixes: 217554855
Test: atest CtsSmartspaceServiceTestCases
Change-Id: Id5abcea0210b19b40c96cc8183e439c8af95bf85
2022-02-10 20:24:57 +00:00
Neil Fuller
115132dbaa Switch "UTC time" to "Unix epoch time"
This is more correct.

Bug: 218802673
Test: Compile only
Change-Id: Ic477c021529a94b4a3665426b7daaf6567fa311a
2022-02-10 19:14:37 +00:00
Kun Niu
d119788b19 Revert "Change invalid input exception to IllegalArgumentException."
This reverts commit b03e357980.

Reason for revert: breaking master cf_x86_64_phone-userdebug build

Change-Id: Id4b017b95783daaa7f399271f8dfb748f14cbb42
2022-02-10 18:44:05 +00:00
Alan Viverette
7d1188244c Merge "Migrate frameworks/base javadocs references to androidx" 2022-02-10 18:02:28 +00:00
Pavel Grafov
6125331ef2 Make distinction between null and empty IM list.
* null means no policy is enfrced, any IM is allowed.
* empty means no IMs is allowed except system IMs.

+ also use the correct user in InputMethodPreferences when checking for
  enforcing admin

Bug: 211063191
Test: manual, CtsVerifier/BYOD managed provisioning/Policy transparency
Change-Id: Ie8bf6de2d53c80b0f2f91e7e96479764834d55ef
2022-02-10 17:35:02 +00:00
Sally Yuen
6bb459d3de Merge "Expose prefetching strategies to services" 2022-02-10 17:09:37 +00:00
Beth Thibodeau
ded4a734d1 Add SystemAPI to override default media output switcher
To support RCN use case, allow system apps with the
MEDIA_CONTENT_CONTROL permission to declare that their MediaStyle notification
is for remote playback, and pass in their own device name, icon, and intent to
use in place of the default output switcher that appears on the media controls

Bug: 204910409
Test: atest
Test: manual with test app
Change-Id: Icbfa288c48da9c2ab2fdfdd6b0bfe2b545afaac0
2022-02-10 11:00:00 -05:00
Shan Huang
27d450afa5 Merge "Avoid leaking Activity from OnBackInvokedCallback." 2022-02-10 14:58:38 +00:00
Nikolas Havrikov
bfbc97b16b Recycle obtained Parcel
Bug: 218835043
Test: make
Change-Id: I8a4564e2d4ad20cbbf41a12a5bec62528d19eb89
2022-02-10 15:02:39 +01:00
Nikolas Havrikov
3ba2d18ceb Recycle obtained Parcel
Bug: 218835043
Test: make
Change-Id: I23477ee562b36ed2be3470dec90849cd91a10bdf
2022-02-10 15:01:47 +01:00
Charles Chen
c69e76f3e9 Merge "Enable to add ComponentCallbacks to Activity" 2022-02-10 13:14:15 +00:00
Pat Manning
7412dc8ce7 Merge "Change invalid input exception to IllegalArgumentException." 2022-02-10 12:56:44 +00:00
Wei Sheng Shih
761e58ee17 Merge "Make getSplashScreenStyle public." 2022-02-10 07:18:22 +00:00
Charles Chen
ba29cdb63e Enable to add ComponentCallbacks to Activity
This CL is mainly from the requirements to receive WindowMetrics
updates in Jetpack Library. It also benefits the developers if
they want to listen to Activity's configuration changes outside
Activity

Test: atest RegisterComponentCallbacksTest
Bug: 199442549
Change-Id: Iff5c0a4d9c61d30b84ff9aee465f1b6b06f1a48d
2022-02-10 14:55:33 +08:00