/cts/tests/devicestate/src/android/hardware/devicestate/cts/ |
D | DeviceStateUtils.java | 27 import com.android.compatibility.common.util.ThrowingRunnable; 37 public static void runWithControlDeviceStatePermission(@NonNull ThrowingRunnable runnable) in runWithControlDeviceStatePermission()
|
D | DeviceStateManagerTestBase.java | 38 import com.android.compatibility.common.util.ThrowingRunnable;
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | SystemUtil.java | 251 public static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable runnable) { in runWithShellPermissionIdentity() 259 public static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable runnable, in runWithShellPermissionIdentity() 270 @NonNull UiAutomation automan, @NonNull ThrowingRunnable runnable) { in runWithShellPermissionIdentity() 283 @NonNull ThrowingRunnable runnable, String... permissions) { in runWithShellPermissionIdentity() 331 public static void eventually(@NonNull ThrowingRunnable r) { in eventually() 342 public static void eventually(@NonNull ThrowingRunnable r, long timeoutMillis) { in eventually()
|
D | ThrowingRunnable.java | 21 public interface ThrowingRunnable { interface
|
D | SafeCleanerRule.java | 43 private final List<ThrowingRunnable> mCleaners = new ArrayList<>(); 51 public SafeCleanerRule run(@NonNull ThrowingRunnable cleaner) { in run() 99 for (ThrowingRunnable runner : mCleaners) { in apply()
|
D | ExceptionUtils.java | 96 Function<Throwable, Throwable> exceptionTransformer, ThrowingRunnable action) { in wrappingExceptions()
|
D | MatcherUtils.java | 117 Matcher<? super Throwable> exceptionCond, ThrowingRunnable action) {
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | ThrowingRunnable.java | 21 public interface ThrowingRunnable { interface
|
D | MatcherUtils.java | 99 Matcher<? super Throwable> exceptionCond, ThrowingRunnable action) {
|
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/ |
D | BaseHostTestCase.java | 55 protected static void eventually(ThrowingRunnable r, long timeoutMillis) { in eventually() 102 protected interface ThrowingRunnable { interface in BaseHostTestCase
|
/cts/tests/tests/permission5/src/android/permission5/cts/ |
D | RenouncedPermissionsTest.kt | 37 import org.junit.function.ThrowingRunnable 58 assertThrows(SecurityException::class.java, ThrowingRunnable{ in testRenouncePermissionsChain() 62 assertThrows(SecurityException::class.java, ThrowingRunnable{ in testRenouncePermissionsChain()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/util/ |
D | CarrierPrivilegeUtils.java | 20 import static com.android.internal.util.FunctionalUtils.ThrowingRunnable; 173 public static void withCarrierPrivileges(Context c, int subId, ThrowingRunnable action) in withCarrierPrivileges() 184 public static void withCarrierPrivilegesForShell(Context c, int subId, ThrowingRunnable action) in withCarrierPrivilegesForShell()
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/testcore/ |
D | VoiceInteractionSessionControl.java | 30 import com.android.compatibility.common.util.ThrowingRunnable; 76 @Nullable Bundle arguments, @Nullable ThrowingRunnable postActionCommand) in executeCommand()
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/ |
D | DirectActionsTest.java | 37 import com.android.compatibility.common.util.ThrowingRunnable; 178 boolean detectDirectActionsInvalidated(@NonNull ThrowingRunnable postActionCommand) in detectDirectActionsInvalidated() 227 private boolean detectInteractorDestroyed(ThrowingRunnable destroyTrigger) in detectInteractorDestroyed() 248 @Nullable ThrowingRunnable postActionCommand) throws Exception { in executeRemoteCommand()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | UserActionCallback.java | 150 public void runAndUnregisterSelf(ThrowingRunnable runnable) throws Exception { in runAndUnregisterSelf() 169 interface ThrowingRunnable { interface in UserActionCallback
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | PermissionGroupChange.java | 79 private void eventually(ThrowingRunnable runnable, long timeoutSec) throws Throwable { in eventually() 200 private interface ThrowingRunnable { interface in PermissionGroupChange
|
D | LocationAccessCheckTest.java | 200 private interface ThrowingRunnable { interface in LocationAccessCheckTest 211 public static void eventually(@NonNull ThrowingRunnable r, long timeout) throws Throwable { in eventually()
|
/cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/ |
D | EncryptionAppTest.java | 465 public interface ThrowingRunnable { interface in EncryptionAppTest 470 Class<? extends Violation> expected, ThrowingRunnable r) throws Exception { in assertViolation() 475 private static void assertNoViolation(StrictMode.VmPolicy policy, ThrowingRunnable r) in assertNoViolation() 481 private static void inspectViolation(StrictMode.VmPolicy policy, ThrowingRunnable violating, in inspectViolation()
|
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/ |
D | SafeCleanerRuleTest.java | 61 @Mock private ThrowingRunnable mGoodGuyRunner1; 62 @Mock private ThrowingRunnable mGoodGuyRunner2;
|
/cts/hostsidetests/appbinding/hostside/src/com/android/cts/appbinding/ |
D | AppBindingHostTest.java | 69 private interface ThrowingRunnable { interface in AppBindingHostTest 192 private void runWithRetries(int timeoutSeconds, ThrowingRunnable r) throws Throwable { in runWithRetries()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | LightBarTests.java | 48 import com.android.compatibility.common.util.ThrowingRunnable; 246 private void runInNotificationSession(ThrowingRunnable task) throws Exception { in runInNotificationSession()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | RestrictedStoragePermissionTest.java | 42 import com.android.compatibility.common.util.ThrowingRunnable; 665 private static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable command) in runWithShellPermissionIdentity()
|
D | RestrictedPermissionsTest.java | 55 import com.android.compatibility.common.util.ThrowingRunnable; 697 private static void runWithShellPermissionIdentity(@NonNull ThrowingRunnable command) in runWithShellPermissionIdentity()
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | WifiBackupRestoreTest.java | 51 import com.android.compatibility.common.util.ThrowingRunnable; 449 List<WifiConfiguration> expectedConfigurations, ThrowingRunnable restoreMethod)
|
/cts/tests/tests/os/src/android/os/cts/ |
D | StrictModeTest.java | 140 public interface ThrowingRunnable { interface in StrictModeTest 1351 private static void assertViolation(String expected, ThrowingRunnable r) throws Exception { in assertViolation() 1355 private static void assertNoViolation(ThrowingRunnable r) throws Exception { in assertNoViolation() 1361 ThrowingRunnable violating, Consumer<ViolationInfo> consume) throws Exception { in inspectViolation()
|