Home
last modified time | relevance | path

Searched refs:adoptShellPermissionIdentity (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/tests/PlatformCompatGating/src/com/android/tests/gating/
DPlatformCompatPermissionsTest.java89 mUiAutomation.adoptShellPermissionIdentity(LOG_COMPAT_CHANGE); in reportChange_logCompatChangePermission_noThrow()
107 mUiAutomation.adoptShellPermissionIdentity(LOG_COMPAT_CHANGE); in reportChangeByPackageName_logCompatChangePermission_noThrow()
124 mUiAutomation.adoptShellPermissionIdentity(LOG_COMPAT_CHANGE); in reportChangeByUid_logCompatChangePermission_noThrow()
142 mUiAutomation.adoptShellPermissionIdentity(READ_COMPAT_CHANGE_CONFIG); in isChangeEnabled_noLogCompatChangeConfigPermission_throwsSecurityException()
151 mUiAutomation.adoptShellPermissionIdentity(READ_COMPAT_CHANGE_CONFIG, LOG_COMPAT_CHANGE); in isChangeEnabled_readAndLogCompatChangeConfigPermission_noThrow()
170 mUiAutomation.adoptShellPermissionIdentity(READ_COMPAT_CHANGE_CONFIG); in isChangeEnabledByPackageName_noLogompatConfigPermission_throwsSecurityException()
179 mUiAutomation.adoptShellPermissionIdentity(READ_COMPAT_CHANGE_CONFIG, LOG_COMPAT_CHANGE); in isChangeEnabledByPackageName_readAndLogCompatChangeConfigPermission_noThrow()
197 mUiAutomation.adoptShellPermissionIdentity(READ_COMPAT_CHANGE_CONFIG); in isChangeEnabledByUid_noLogCompatChangePermission_throwsSecurityException()
205 mUiAutomation.adoptShellPermissionIdentity(READ_COMPAT_CHANGE_CONFIG, LOG_COMPAT_CHANGE); in isChangeEnabledByUid_readAndLogCompatChangeConfigPermission_noThrow()
225 mUiAutomation.adoptShellPermissionIdentity(OVERRIDE_COMPAT_CHANGE_CONFIG); in setOverrides_overridesPermission_noThrow()
[all …]
/frameworks/base/tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/
DRollbackTest.java95 InstallUtils.adoptShellPermissionIdentity( in testBasic()
181 InstallUtils.adoptShellPermissionIdentity( in testAvailableRollbackPersistence()
238 InstallUtils.adoptShellPermissionIdentity( in testAvailableMultiPackageRollbackPersistence()
317 InstallUtils.adoptShellPermissionIdentity( in testRecentlyCommittedRollbackPersistence()
373 InstallUtils.adoptShellPermissionIdentity( in testRollbackExpiresAfterLifetime()
437 InstallUtils.adoptShellPermissionIdentity( in testTimeChangeDoesNotAffectLifetime()
517 InstallUtils.adoptShellPermissionIdentity( in testRollbackExpiration()
550 InstallUtils.adoptShellPermissionIdentity( in testUserDataRollback()
575 InstallUtils.adoptShellPermissionIdentity( in testRollbackWithSplits()
626 InstallUtils.adoptShellPermissionIdentity( in testMultipleRollbackAvailable()
[all …]
DMultiUserRollbackTest.java46 InstallUtils.adoptShellPermissionIdentity( in adoptShellPermissions()
DStagedRollbackTest.java75 InstallUtils.adoptShellPermissionIdentity( in adoptShellPermissions()
/frameworks/base/core/java/android/app/
DIUiAutomationConnection.aidl51 void adoptShellPermissionIdentity(int uid, in String[] permissions); in adoptShellPermissionIdentity() method
DUiAutomation.java371 public void adoptShellPermissionIdentity() { in adoptShellPermissionIdentity() method in UiAutomation
377 mUiAutomationConnection.adoptShellPermissionIdentity(Process.myUid(), null); in adoptShellPermissionIdentity()
399 public void adoptShellPermissionIdentity(@Nullable String... permissions) { in adoptShellPermissionIdentity() method in UiAutomation
405 mUiAutomationConnection.adoptShellPermissionIdentity(Process.myUid(), permissions); in adoptShellPermissionIdentity()
DUiAutomationConnection.java304 public void adoptShellPermissionIdentity(int uid, @Nullable String[] permissions) in adoptShellPermissionIdentity() method in UiAutomationConnection
/frameworks/base/tests/PlatformCompatGating/test-rules/src/android/compat/testing/
DPlatformCompatChangeRule.java97 uiAutomation.adoptShellPermissionIdentity( in evaluate()
/frameworks/base/tests/net/common/java/android/net/
DNetworkProviderTest.kt54 instrumentation.getUiAutomation().adoptShellPermissionIdentity() in <lambda>()
/frameworks/base/core/tests/bugreports/src/android/server/bugreports/
DBugreportManagerTest.java290 .adoptShellPermissionIdentity(Manifest.permission.DUMP); in getPermissions()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DBandwidthTest.java80 uiAutomation.adoptShellPermissionIdentity(); in setUp()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringServiceTest.java143 if (permissions.length > 0) mUiAutomation.adoptShellPermissionIdentity(permissions); in runTetheringCall()
/frameworks/base/packages/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java111 mUiAutomation.adoptShellPermissionIdentity( in setUp()
/frameworks/base/tests/PackageWatchdog/src/com/android/server/
DPackageWatchdogTest.java800 .adoptShellPermissionIdentity(permissions); in adoptShellPermissions()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java328 InstrumentationRegistry.getInstrumentation().getUiAutomation().adoptShellPermissionIdentity( in setUp()
/frameworks/base/non-updatable-api/
Dcurrent.txt6291 method public void adoptShellPermissionIdentity();
6292 method public void adoptShellPermissionIdentity(@Nullable java.lang.String...);
/frameworks/base/api/
Dcurrent.txt6291 method public void adoptShellPermissionIdentity();
6292 method public void adoptShellPermissionIdentity(@Nullable java.lang.String...);