/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() 87 boolean removed = callWithShellPermissionIdentity( in testProfileOwnerIsSetOnNewUser()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | SystemConfigTest.java | 49 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/ |
D | LocaleConfigAppUpdateTest.java | 21 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/ |
D | SensorPrivacyCameraTest.kt | 32 import com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity 67 return callWithShellPermissionIdentity { in isAutomotive() 73 return callWithShellPermissionIdentity { in getCameraPrivacyAllowlist() 91 return callWithShellPermissionIdentity { in getSensorState()
|
D | SensorPrivacyBaseTest.kt | 46 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/ |
D | PermissionUtils.java | 25 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity; 140 return callWithShellPermissionIdentity( in getAppOp() 213 return callWithShellPermissionIdentity(() -> getTargetContext() in getRoleHolders()
|
D | AppStandbyUtils.java | 75 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/tests/security/src/android/security/cts/ |
D | RolePermissionOverrideTest.kt | 24 import com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity 107 callWithShellPermissionIdentity { roleManager.getRoleHolders(roleName) } in getRoleHolders()
|
D | PermissionBackupCertificateCheckTest.kt | 31 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/ |
D | Utils.java | 37 return SystemUtil.callWithShellPermissionIdentity( in isChangeEnabled()
|
D | AlarmManagerDeviceConfigHelper.java | 46 initialProperties = SystemUtil.callWithShellPermissionIdentity( in AlarmManagerDeviceConfigHelper()
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/ |
D | VoiceInteractionRoleTest.java | 19 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity; 139 return callWithShellPermissionIdentity( in getAssistRoleHolders()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | IdleConstraintTest.java | 225 assertTrue(SystemUtil.callWithShellPermissionIdentity( in setAutomotiveProjection() 229 SystemUtil.callWithShellPermissionIdentity( in setAutomotiveProjection()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | BatteryStatsManagerTest.java | 43 SystemUtil.callWithShellPermissionIdentity(bsm::getCellularBatteryStats, in testGetCellularBatteryStats()
|
/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 | 259 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/ |
D | PermissionTest.java | 35 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/ |
D | LocaleManagerOverrideLocaleConfigTest.java | 26 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity; 274 return callWithShellPermissionIdentity(() -> in getApplicationLocales()
|
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/ |
D | TestActivity.java | 352 return SystemUtil.callWithShellPermissionIdentity(launcher); in startSync() 396 return SystemUtil.callWithShellPermissionIdentity(launcher); in startSync()
|
/cts/tests/tests/appop/appopsTestUtilLib/src/android/app/appops/cts/ |
D | AppOpsUtils.kt | 174 return SystemUtil.callWithShellPermissionIdentity { in getOpEntry()
|
/cts/tests/app/src/android/app/cts/ |
D | UiModeManagerTest.java | 29 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()
|
D | ActivityManagerApi29Test.java | 34 import static com.android.compatibility.common.util.SystemUtil.callWithShellPermissionIdentity; 354 return callWithShellPermissionIdentity( in noteOp()
|
/cts/tests/tests/voiceRecognition/src/android/voicerecognition/cts/ |
D | RecognitionServiceMicIndicatorTest.java | 20 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/ |
D | PackageManagerHelperTest.java | 247 SystemUtil.callWithShellPermissionIdentity(() -> am.getRunningAppProcesses()); in testForceStopPackageAsUser() 252 runningApps = SystemUtil.callWithShellPermissionIdentity(() -> { in testForceStopPackageAsUser()
|