Home
last modified time | relevance | path

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

123

/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()
87 boolean removed = callWithShellPermissionIdentity( in testProfileOwnerIsSetOnNewUser()
/cts/tests/tests/os/src/android/os/cts/
DSystemConfigTest.java49 Set<String> carrierApps = SystemUtil.callWithShellPermissionIdentity( in testGetDisabledUntilUsedPreinstalledCarrierApps()
65 Map<String, List<String>> helperApps = SystemUtil.callWithShellPermissionIdentity( in testGetDisabledUntilUsedPreinstalledCarrierAssociatedApps()
/cts/tests/framework/base/localeconfig/src/com/android/cts/localeconfig/
DLocaleConfigAppUpdateTest.java21 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity;
99 LocaleList getAppLocales_afterUpgraded = callWithShellPermissionIdentity(() -> in testUpgradedApk_KeepLocaleConfig_keepAppLocales()
133 LocaleList upgradedAppLocales = callWithShellPermissionIdentity(() -> in testUpgradedApk_setFromApp_KeepAppLocales()
230 LocaleList getAppLocales = callWithShellPermissionIdentity( in verifyLocalesCorrectlySetForAnotherApp()
/cts/tests/tests/sensorprivacy/src/android/sensorprivacy/cts/
DSensorPrivacyCameraTest.kt32 import com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity
67 return callWithShellPermissionIdentity { in isAutomotive()
73 return callWithShellPermissionIdentity { in getCameraPrivacyAllowlist()
91 return callWithShellPermissionIdentity { in getSensorState()
DSensorPrivacyBaseTest.kt46 import com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity in <lambda>()
606 return callWithShellPermissionIdentity { in <lambda>()
612 return callWithShellPermissionIdentity { in <lambda>()
618 return callWithShellPermissionIdentity { in <lambda>()
649 return callWithShellPermissionIdentity { in <lambda>()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPermissionUtils.java25 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity;
140 return callWithShellPermissionIdentity( in getAppOp()
213 return callWithShellPermissionIdentity(() -> getTargetContext() in getRoleHolders()
DAppStandbyUtils.java75 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/tests/security/src/android/security/cts/
DRolePermissionOverrideTest.kt24 import com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity
107 callWithShellPermissionIdentity { roleManager.getRoleHolders(roleName) } in getRoleHolders()
DPermissionBackupCertificateCheckTest.kt31 import com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity
740 callWithShellPermissionIdentity<Int> { in isFlagSet()
754 callWithShellPermissionIdentity { in getAppOp()
/cts/tests/AlarmManager/util/src/android/alarmmanager/util/
DUtils.java37 return SystemUtil.callWithShellPermissionIdentity( in isChangeEnabled()
DAlarmManagerDeviceConfigHelper.java46 initialProperties = SystemUtil.callWithShellPermissionIdentity( in AlarmManagerDeviceConfigHelper()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionRoleTest.java19 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity;
139 return callWithShellPermissionIdentity( in getAssistRoleHolders()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DIdleConstraintTest.java225 assertTrue(SystemUtil.callWithShellPermissionIdentity( in setAutomotiveProjection()
229 SystemUtil.callWithShellPermissionIdentity( in setAutomotiveProjection()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DBatteryStatsManagerTest.java43 SystemUtil.callWithShellPermissionIdentity(bsm::getCellularBatteryStats, in testGetCellularBatteryStats()
/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.java259 final String[] unsuspendablePkgs = SystemUtil.callWithShellPermissionIdentity(() -> in testTestAppsSuspendable()
269 final String[] unsuspendablePkgs = SystemUtil.callWithShellPermissionIdentity(() -> in testDeviceAdminUnsuspendable()
277 final int mode = SystemUtil.callWithShellPermissionIdentity( in assertOpDisallowed()
/cts/tests/backup/src/android/backup/cts/
DPermissionTest.java35 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity;
417 return (callWithShellPermissionIdentity( in isFlagSet()
438 return callWithShellPermissionIdentity( in getAppOp()
/cts/tests/framework/base/locale/src/android/localemanager/cts/
DLocaleManagerOverrideLocaleConfigTest.java26 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity;
274 return callWithShellPermissionIdentity(() -> in getApplicationLocales()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DTestActivity.java352 return SystemUtil.callWithShellPermissionIdentity(launcher); in startSync()
396 return SystemUtil.callWithShellPermissionIdentity(launcher); in startSync()
/cts/tests/tests/appop/appopsTestUtilLib/src/android/app/appops/cts/
DAppOpsUtils.kt174 return SystemUtil.callWithShellPermissionIdentity { in getOpEntry()
/cts/tests/app/src/android/app/cts/
DUiModeManagerTest.java29 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity;
637 return callWithShellPermissionIdentity( in requestAutomotiveProjection()
644 return callWithShellPermissionIdentity( in releaseAutomotiveProjection()
651 return callWithShellPermissionIdentity(mUiModeManager::getActiveProjectionTypes, in getActiveProjectionTypes()
656 return callWithShellPermissionIdentity( in getProjectingPackages()
DActivityManagerApi29Test.java34 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity;
354 return callWithShellPermissionIdentity( in noteOp()
/cts/tests/tests/voiceRecognition/src/android/voicerecognition/cts/
DRecognitionServiceMicIndicatorTest.java20 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity;
131 mSafetyCenterEnabled = callWithShellPermissionIdentity( in setup()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/content/pm/
DPackageManagerHelperTest.java247 SystemUtil.callWithShellPermissionIdentity(() -> am.getRunningAppProcesses()); in testForceStopPackageAsUser()
252 runningApps = SystemUtil.callWithShellPermissionIdentity(() -> { in testForceStopPackageAsUser()

123