Home
last modified time | relevance | path

Searched refs:runWithShellPermissionIdentity (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/services/tests/selinux/src/com/android/server/selinux/
DSelinuxAuditLogsBuilderTest.java18 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity;
48 runWithShellPermissionIdentity( in setUp()
63 runWithShellPermissionIdentity(() -> DeviceConfig.clearAllLocalOverrides()); in tearDown()
112 runWithShellPermissionIdentity( in testMatcher_scontextDefaultConfig()
224 runWithShellPermissionIdentity( in testSelinuxAuditLogsBuilder_wrongConfig()
DSelinuxAuditLogsCollectorTest.java18 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity;
70 runWithShellPermissionIdentity( in setUp()
88 runWithShellPermissionIdentity(() -> DeviceConfig.clearAllLocalOverrides()); in tearDown()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DWindowPerfRunPreconditionBase.java24 import static android.perftests.utils.WindowPerfTestBase.runWithShellPermissionIdentity;
116 runWithShellPermissionIdentity(() -> { in testRunStarted() method
125 runWithShellPermissionIdentity(this::killBackgroundProcesses); in testRunStarted()
DWindowPerfTestBase.java133 public static void runWithShellPermissionIdentity(Runnable runnable) { in runWithShellPermissionIdentity() method in WindowPerfTestBase
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DCommonUtils.java45 public static void runWithShellPermissionIdentity(Runnable runnable) { in runWithShellPermissionIdentity() method in CommonUtils
75 runWithShellPermissionIdentity(() -> { in setIgnoreOrientationRequest() method
/frameworks/base/services/tests/PackageManagerServiceTests/host/test-apps/DeviceSide/src/com/android/server/pm/
DPackageInstallerSessionTest.kt82 SystemUtil.runWithShellPermissionIdentity { in <lambda>()
84 getSessionStageDir(sessionId) ?: return@runWithShellPermissionIdentity in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsNotedWatcherTest.java25 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity;
125 runWithShellPermissionIdentity(() -> { in testWatchNotedOpsForExternalDevice() method
DAppOpsStartedWatcherTest.java19 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity;
130 runWithShellPermissionIdentity(() -> { in testWatchStartedOpsForExternalDevice() method
/frameworks/base/services/tests/BackgroundInstallControlServiceTests/host/test-app/BackgroundInstallControlServiceTestApp/src/com/android/server/pm/test/app/
DBackgroundInstallControlServiceTest.java214 runWithShellPermissionIdentity( in installPackage() method
237 private static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable command) in runWithShellPermissionIdentity() method in BackgroundInstallControlServiceTest
/frameworks/base/tests/UpdatableSystemFontTest/src/com/android/updatablesystemfont/
DUpdatableSystemFontTest.java379 return SystemUtil.runWithShellPermissionIdentity(() -> { in updateFontFile()
409 return SystemUtil.runWithShellPermissionIdentity(() -> { in updateNotoSerifAs()
424 SystemUtil.runWithShellPermissionIdentity(mFontManager::getFontConfig);
444 SystemUtil.runWithShellPermissionIdentity(mFontManager::getFontConfig);
/frameworks/base/apct-tests/perftests/surfaceflinger/src/android/surfaceflinger/
DSurfaceFlingerPerfTest.java96 SystemUtil.runWithShellPermissionIdentity(() -> { in suiteSetup()
119 SystemUtil.runWithShellPermissionIdentity(() -> { in suiteTeardown()
/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/
DConnectivitySetupRule.java90 SystemUtil.runWithShellPermissionIdentity(mWifiManager::reconnect,
/frameworks/base/tests/Input/src/com/android/server/input/
DInputManagerServiceTests.kt42 import com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity
145 runWithShellPermissionIdentity { in testInputSettingsUpdatedOnSystemRunning()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskStackChangedListenerTest.java26 import static com.android.server.wm.utils.CommonUtils.runWithShellPermissionIdentity;
404 runWithShellPermissionIdentity(() -> context.startActivity( in startTestActivity()