OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:ThrowingRunnable
(Results
1 - 23
of
23
) sorted by null
/cts/common/device-side/util/src/com/android/compatibility/common/util/
ThrowingRunnable.java
21
public interface
ThrowingRunnable
{
SystemUtil.java
148
* Runs a {@link
ThrowingRunnable
} adopting Shell's permissions.
150
public static void runWithShellPermissionIdentity(@NonNull
ThrowingRunnable
runnable) {
156
* Runs a {@link
ThrowingRunnable
} adopting a subset of Shell's permissions.
158
public static void runWithShellPermissionIdentity(@NonNull
ThrowingRunnable
runnable,
165
* Runs a {@link
ThrowingRunnable
} adopting Shell's permissions, where you can specify the
169
@NonNull UiAutomation automan, @NonNull
ThrowingRunnable
runnable) {
174
* Runs a {@link
ThrowingRunnable
} adopting Shell's permissions, where you can specify the
182
@NonNull
ThrowingRunnable
runnable, String... permissions) {
SafeCleanerRule.java
43
private final List<
ThrowingRunnable
> mCleaners = new ArrayList<>();
51
public SafeCleanerRule run(@NonNull
ThrowingRunnable
cleaner) {
99
for (
ThrowingRunnable
runner : mCleaners) {
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
ThrowingRunnable.java
21
public interface
ThrowingRunnable
{
SystemUtil.java
162
* Runs a {@link
ThrowingRunnable
} adopting Shell's permissions.
164
public static void runWithShellPermissionIdentity(@NonNull
ThrowingRunnable
runnable) {
170
* Runs a {@link
ThrowingRunnable
} adopting a subset of Shell's permissions.
172
public static void runWithShellPermissionIdentity(@NonNull
ThrowingRunnable
runnable,
179
* Runs a {@link
ThrowingRunnable
} adopting Shell's permissions, where you can specify the
183
@NonNull UiAutomation automan, @NonNull
ThrowingRunnable
runnable) {
188
* Runs a {@link
ThrowingRunnable
} adopting Shell's permissions, where you can specify the
196
@NonNull
ThrowingRunnable
runnable, String... permissions) {
SafeCleanerRule.java
43
private final List<
ThrowingRunnable
> mCleaners = new ArrayList<>();
51
public SafeCleanerRule run(@NonNull
ThrowingRunnable
cleaner) {
99
for (
ThrowingRunnable
runner : mCleaners) {
/external/testng/src/test/java/test/asserttests/
AssertTest.java
4
import org.testng.Assert.
ThrowingRunnable
;
96
Throwable throwable = expectThrows(Throwable.class,
throwingRunnable
(npe));
105
expectThrows(IOException.class,
throwingRunnable
(npe));
113
expectThrows(IOException.class,
throwingRunnable
(npe));
127
expectThrows(IOException.class,
throwingRunnable
(npe));
137
private static
ThrowingRunnable
nonThrowingRunnable() {
138
return new
ThrowingRunnable
() {
144
private static
ThrowingRunnable
throwingRunnable
(final Throwable t) {
145
return new
ThrowingRunnable
() {
[
all
...]
/cts/tests/tests/appop/src/android/app/appops/cts/
AppOpsUtils.kt
26
import com.android.compatibility.common.util.
ThrowingRunnable
102
* Runs a [
ThrowingRunnable
] adopting Shell's permissions.
104
fun runWithShellPermissionIdentity(runnable:
ThrowingRunnable
) {
/cts/tests/tests/permission/src/android/permission/cts/
PermissionGroupChange.java
74
private void eventually(
ThrowingRunnable
runnable, long timeoutSec) throws Throwable {
177
private interface
ThrowingRunnable
{
LocationAccessCheckTest.java
156
private interface
ThrowingRunnable
{
161
* Make sure that a {@link
ThrowingRunnable
} eventually finishes without throwing a {@link
164
* @param r The {@link
ThrowingRunnable
} to run.
167
public static void eventually(@NonNull
ThrowingRunnable
r, long timeout) throws Throwable {
/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/
PerfStatsCollector.java
67
public <E extends Exception> void measure(String eventName,
ThrowingRunnable
<E> runnable)
85
public interface
ThrowingRunnable
<F extends Exception> {
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DirectActionsTest.java
31
import com.android.compatibility.common.util.
ThrowingRunnable
;
192
boolean detectDirectActionsInvalidated(@NonNull
ThrowingRunnable
postActionCommand)
201
@Nullable Bundle arguments, @Nullable
ThrowingRunnable
postActionCommand)
272
private boolean detectInteractorDestroyed(
ThrowingRunnable
destroyTrigger)
293
@Nullable
ThrowingRunnable
postActionCommand) throws Exception {
/cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/
EncryptionAppTest.java
395
public interface
ThrowingRunnable
{
400
Class<? extends Violation> expected,
ThrowingRunnable
r) throws Exception {
405
private static void assertNoViolation(StrictMode.VmPolicy policy,
ThrowingRunnable
r)
411
private static void inspectViolation(StrictMode.VmPolicy policy,
ThrowingRunnable
violating,
/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/
PermissionUtils.java
312
public interface
ThrowingRunnable
extends Runnable {
331
public static void eventually(@NonNull
ThrowingRunnable
r) {
/cts/common/device-side/util/tests/src/com/android/compatibility/common/util/
SafeCleanerRuleTest.java
61
@Mock private
ThrowingRunnable
mGoodGuyRunner1;
62
@Mock private
ThrowingRunnable
mGoodGuyRunner2;
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
SafeCleanerRuleTest.java
61
@Mock private
ThrowingRunnable
mGoodGuyRunner1;
62
@Mock private
ThrowingRunnable
mGoodGuyRunner2;
/external/guava/guava-tests/test/com/google/common/util/concurrent/
MoreExecutorsTest.java
328
service.schedule(new
ThrowingRunnable
(0, ex), 1, TimeUnit.MILLISECONDS);
340
ThrowingRunnable
runnable = new
ThrowingRunnable
(5, ex);
346
runnable = new
ThrowingRunnable
(5, ex);
387
private static final class
ThrowingRunnable
implements Runnable {
392
ThrowingRunnable
(int throwAfterCount, RuntimeException thrown) {
/cts/hostsidetests/appbinding/hostside/src/com/android/cts/appbinding/
AppBindingHostTest.java
55
private interface
ThrowingRunnable
{
179
private void runWithRetries(int timeoutSeconds,
ThrowingRunnable
r) throws Throwable {
/cts/tests/tests/os/src/android/os/cts/
StrictModeTest.java
107
public interface
ThrowingRunnable
{
642
private static void assertViolation(String expected,
ThrowingRunnable
r) throws Exception {
646
private static void assertNoViolation(
ThrowingRunnable
r) throws Exception {
652
ThrowingRunnable
violating, Consumer<ViolationInfo> consume) throws Exception {
/external/testng/src/main/java/org/testng/
Assert.java
938
public interface
ThrowingRunnable
{
949
public static void assertThrows(
ThrowingRunnable
runnable) {
965
public static <T extends Throwable> void assertThrows(Class<T> throwableClass,
ThrowingRunnable
runnable) {
981
public static <T extends Throwable> T expectThrows(Class<T> throwableClass,
ThrowingRunnable
runnable) {
[
all
...]
/cts/tests/tests/role/src/android/app/role/cts/
RoleManagerTest.java
53
import com.android.compatibility.common.util.
ThrowingRunnable
;
460
private void assertOnRoleHoldersChangedListenerIsNotified(@NonNull
ThrowingRunnable
runnable)
/cts/tests/tests/assist/src/android/assist/cts/
AssistTestBase.java
50
import com.android.compatibility.common.util.
ThrowingRunnable
;
603
protected void eventuallyWithSessionClose(@NonNull
ThrowingRunnable
runnable) throws Throwable {
/cts/tests/tests/permission2/src/android/permission2/cts/
RestrictedPermissionsTest.java
45
import android.permission.cts.PermissionUtils.
ThrowingRunnable
;
[
all
...]
Completed in 550 milliseconds