/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | HeadlessSystemUserTest.java | 18 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity; 67 user = callWithShellPermissionIdentity(() -> mUserManager in testProfileOwnerIsSetOnNewUser() 85 boolean removed = callWithShellPermissionIdentity( in testProfileOwnerIsSetOnNewUser()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | PermissionManagerTest.java | 19 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity; 46 final int version = callWithShellPermissionIdentity(() -> in testRuntimePermissionsVersion()
|
D | NearbyDevicesRenouncePermissionTest.java | 243 return SystemUtil.callWithShellPermissionIdentity(() -> in createContext() 253 return SystemUtil.callWithShellPermissionIdentity(() -> in createContext() 264 return SystemUtil.callWithShellPermissionIdentity(() -> in createContext()
|
D | PermissionControllerTest.java | 37 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity; 148 callWithShellPermissionIdentity(() -> revokePermissions( in revokePermissions() 292 Map<String, List<String>> result = callWithShellPermissionIdentity( in revokePermissionsPolicyViolationFromWrongPackage()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | SystemConfigTest.java | 47 Set<String> carrierApps = SystemUtil.callWithShellPermissionIdentity( in testGetDisabledUntilUsedPreinstalledCarrierApps() 63 Map<String, List<String>> helperApps = SystemUtil.callWithShellPermissionIdentity( in testGetDisabledUntilUsedPreinstalledCarrierAssociatedApps()
|
D | AutoRevokeTest.kt | 45 import com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity in <lambda>() 369 return callWithShellPermissionIdentity { in <lambda>()
|
/cts/tests/tests/role/src/android/app/role/cts/ |
D | RoleShellCommandTest.kt | 25 import com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity 133 callWithShellPermissionIdentity { roleManager.getRoleHolders(ROLE_NAME) } in getRoleHolders()
|
D | RoleManagerTest.java | 19 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity; 946 callWithShellPermissionIdentity(() -> sPackageManager.setDefaultBrowserPackageNameAsUser( in packageManagerSetDefaultBrowserBackedByRole() 976 assertThat(callWithShellPermissionIdentity(() -> in bypassRoleQualificationThenCanAddUnqualifiedRoleHolder() 988 assertThat(callWithShellPermissionIdentity(() -> in bypassRoleQualificationThenCanAddUnqualifiedRoleHolder() 994 return callWithShellPermissionIdentity(() -> sRoleManager.getRoleHolders(roleName)); in getRoleHolders()
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/ |
D | VoiceInteractionRoleTest.java | 19 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity; 128 return callWithShellPermissionIdentity( in getAssistRoleHolders()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | AppStandbyUtils.java | 72 return SystemUtil.callWithShellPermissionIdentity( in getAppStandbyBucket()
|
D | SystemUtil.java | 297 public static <T> T callWithShellPermissionIdentity(@NonNull Callable<T> callable) in callWithShellPermissionIdentity() method in SystemUtil 314 public static <T> T callWithShellPermissionIdentity(@NonNull Callable<T> callable, in callWithShellPermissionIdentity() method in SystemUtil
|
/cts/tests/app/src/android/app/cts/ |
D | UiModeManagerTest.java | 20 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity; 389 return callWithShellPermissionIdentity( in requestAutomotiveProjection() 395 return callWithShellPermissionIdentity( in releaseAutomotiveProjection() 401 return callWithShellPermissionIdentity(mUiModeManager::getActiveProjectionTypes, in getActiveProjectionTypes() 406 return callWithShellPermissionIdentity( in getProjectingPackages()
|
D | ActivityManagerApi29Test.java | 32 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity; 353 return callWithShellPermissionIdentity( in noteOp()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | IdleConstraintTest.java | 220 assertTrue(SystemUtil.callWithShellPermissionIdentity( in setAutomotiveProjection() 224 SystemUtil.callWithShellPermissionIdentity( in setAutomotiveProjection()
|
/cts/tests/backup/src/android/backup/cts/ |
D | PermissionTest.java | 35 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity; 414 return (callWithShellPermissionIdentity( in isFlagSet() 435 return callWithShellPermissionIdentity( in getAppOp()
|
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/ |
D | SuspendTestUtils.java | 81 final String[] failed = SystemUtil.callWithShellPermissionIdentity( in suspendAndAssertResult() 93 final String[] unchangedPackages = SystemUtil.callWithShellPermissionIdentity(() -> in unsuspendAll()
|
D | SuspendPackagesTest.java | 241 final String[] unsuspendablePkgs = SystemUtil.callWithShellPermissionIdentity(() -> in testTestAppsSuspendable() 251 final String[] unsuspendablePkgs = SystemUtil.callWithShellPermissionIdentity(() -> in testDeviceAdminUnsuspendable() 259 final int mode = SystemUtil.callWithShellPermissionIdentity( in assertOpDisallowed()
|
D | DistractingPackageTest.java | 90 final String[] failed = SystemUtil.callWithShellPermissionIdentity( in setDistractionFlagsAndAssertResult()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | BatteryStatsManagerTest.java | 43 SystemUtil.callWithShellPermissionIdentity(bsm::getCellularBatteryStats, in testGetCellularBatteryStats()
|
/cts/tests/tests/sensorprivacy/src/android/sensorprivacy/cts/ |
D | SensorPrivacyBaseTest.kt | 34 import com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity in <lambda>() 344 return callWithShellPermissionIdentity { in <lambda>() 358 return callWithShellPermissionIdentity { in <lambda>()
|
/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/ |
D | PermissionUtils.java | 36 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity; 266 return callWithShellPermissionIdentity( in getPermissionFlags()
|
/cts/tests/AlarmManager/util/src/android/alarmmanager/util/ |
D | AlarmManagerDeviceConfigHelper.java | 44 initialProperties = SystemUtil.callWithShellPermissionIdentity( in AlarmManagerDeviceConfigHelper()
|
/cts/tests/tests/appop/src/android/app/appops/cts/ |
D | ForegroundModeTest.kt | 42 import com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity in <lambda>() 68 return callWithShellPermissionIdentity { in <lambda>()
|
/cts/tests/tests/appop/appopsTestUtilLib/src/android/app/appops/cts/ |
D | AppOpsUtils.kt | 174 return SystemUtil.callWithShellPermissionIdentity { in getOpEntry()
|
/cts/tests/tests/permission4/src/android/permission4/cts/ |
D | CameraMicIndicatorsPermissionTest.kt | 93 assumeFalse("feature not present on this device", callWithShellPermissionIdentity { in setUp()
|