/frameworks/base/services/tests/selinux/src/com/android/server/selinux/ |
D | SelinuxAuditLogsBuilderTest.java | 18 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()
|
D | SelinuxAuditLogsCollectorTest.java | 18 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/ |
D | WindowPerfRunPreconditionBase.java | 24 import static android.perftests.utils.WindowPerfTestBase.runWithShellPermissionIdentity; 116 runWithShellPermissionIdentity(() -> { in testRunStarted() method 125 runWithShellPermissionIdentity(this::killBackgroundProcesses); in testRunStarted()
|
D | WindowPerfTestBase.java | 133 public static void runWithShellPermissionIdentity(Runnable runnable) { in runWithShellPermissionIdentity() method in WindowPerfTestBase
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | CommonUtils.java | 45 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/ |
D | PackageInstallerSessionTest.kt | 82 SystemUtil.runWithShellPermissionIdentity { in <lambda>() 84 getSessionStageDir(sessionId) ?: return@runWithShellPermissionIdentity in <lambda>()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/ |
D | AppOpsNotedWatcherTest.java | 25 import static com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity; 125 runWithShellPermissionIdentity(() -> { in testWatchNotedOpsForExternalDevice() method
|
D | AppOpsStartedWatcherTest.java | 19 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/ |
D | BackgroundInstallControlServiceTest.java | 214 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/ |
D | UpdatableSystemFontTest.java | 379 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/ |
D | SurfaceFlingerPerfTest.java | 96 SystemUtil.runWithShellPermissionIdentity(() -> { in suiteSetup() 119 SystemUtil.runWithShellPermissionIdentity(() -> { in suiteTeardown()
|
/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/ |
D | ConnectivitySetupRule.java | 90 SystemUtil.runWithShellPermissionIdentity(mWifiManager::reconnect,
|
/frameworks/base/tests/Input/src/com/android/server/input/ |
D | InputManagerServiceTests.kt | 42 import com.android.compatibility.common.util.SystemUtil.runWithShellPermissionIdentity 145 runWithShellPermissionIdentity { in testInputSettingsUpdatedOnSystemRunning()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskStackChangedListenerTest.java | 26 import static com.android.server.wm.utils.CommonUtils.runWithShellPermissionIdentity; 404 runWithShellPermissionIdentity(() -> context.startActivity( in startTestActivity()
|