Home
last modified time | relevance | path

Searched refs:callWithShellPermissionIdentity (Results 1 – 25 of 36) sorted by relevance

12

/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DHeadlessSystemUserTest.java18 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/
DPermissionManagerTest.java19 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity;
46 final int version = callWithShellPermissionIdentity(() -> in testRuntimePermissionsVersion()
DNearbyDevicesRenouncePermissionTest.java243 return SystemUtil.callWithShellPermissionIdentity(() -> in createContext()
253 return SystemUtil.callWithShellPermissionIdentity(() -> in createContext()
264 return SystemUtil.callWithShellPermissionIdentity(() -> in createContext()
DPermissionControllerTest.java37 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/
DSystemConfigTest.java47 Set<String> carrierApps = SystemUtil.callWithShellPermissionIdentity( in testGetDisabledUntilUsedPreinstalledCarrierApps()
63 Map<String, List<String>> helperApps = SystemUtil.callWithShellPermissionIdentity( in testGetDisabledUntilUsedPreinstalledCarrierAssociatedApps()
DAutoRevokeTest.kt45 import com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity in <lambda>()
369 return callWithShellPermissionIdentity { in <lambda>()
/cts/tests/tests/role/src/android/app/role/cts/
DRoleShellCommandTest.kt25 import com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity
133 callWithShellPermissionIdentity { roleManager.getRoleHolders(ROLE_NAME) } in getRoleHolders()
DRoleManagerTest.java19 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/
DVoiceInteractionRoleTest.java19 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/
DAppStandbyUtils.java72 return SystemUtil.callWithShellPermissionIdentity( in getAppStandbyBucket()
DSystemUtil.java297 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/
DUiModeManagerTest.java20 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()
DActivityManagerApi29Test.java32 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity;
353 return callWithShellPermissionIdentity( in noteOp()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DIdleConstraintTest.java220 assertTrue(SystemUtil.callWithShellPermissionIdentity( in setAutomotiveProjection()
224 SystemUtil.callWithShellPermissionIdentity( in setAutomotiveProjection()
/cts/tests/backup/src/android/backup/cts/
DPermissionTest.java35 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/
DSuspendTestUtils.java81 final String[] failed = SystemUtil.callWithShellPermissionIdentity( in suspendAndAssertResult()
93 final String[] unchangedPackages = SystemUtil.callWithShellPermissionIdentity(() -> in unsuspendAll()
DSuspendPackagesTest.java241 final String[] unsuspendablePkgs = SystemUtil.callWithShellPermissionIdentity(() -> in testTestAppsSuspendable()
251 final String[] unsuspendablePkgs = SystemUtil.callWithShellPermissionIdentity(() -> in testDeviceAdminUnsuspendable()
259 final int mode = SystemUtil.callWithShellPermissionIdentity( in assertOpDisallowed()
DDistractingPackageTest.java90 final String[] failed = SystemUtil.callWithShellPermissionIdentity( in setDistractionFlagsAndAssertResult()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DBatteryStatsManagerTest.java43 SystemUtil.callWithShellPermissionIdentity(bsm::getCellularBatteryStats, in testGetCellularBatteryStats()
/cts/tests/tests/sensorprivacy/src/android/sensorprivacy/cts/
DSensorPrivacyBaseTest.kt34 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/
DPermissionUtils.java36 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity;
266 return callWithShellPermissionIdentity( in getPermissionFlags()
/cts/tests/AlarmManager/util/src/android/alarmmanager/util/
DAlarmManagerDeviceConfigHelper.java44 initialProperties = SystemUtil.callWithShellPermissionIdentity( in AlarmManagerDeviceConfigHelper()
/cts/tests/tests/appop/src/android/app/appops/cts/
DForegroundModeTest.kt42 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/
DAppOpsUtils.kt174 return SystemUtil.callWithShellPermissionIdentity { in getOpEntry()
/cts/tests/tests/permission4/src/android/permission4/cts/
DCameraMicIndicatorsPermissionTest.kt93 assumeFalse("feature not present on this device", callWithShellPermissionIdentity { in setUp()

12