Home
last modified time | relevance | path

Searched refs:checker (Results 1 – 17 of 17) sorted by relevance

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCallbackAsserter.java72 public static CallbackAsserter forBroadcast(IntentFilter filter, Predicate<Intent> checker) { in forBroadcast() argument
73 return new BroadcastAsserter(filter, checker); in forBroadcast()
86 public static CallbackAsserter forContentUri(Uri watchUri, Predicate<Uri> checker) { in forContentUri() argument
87 return new ContentObserverAsserter(watchUri, checker); in forContentUri()
93 BroadcastAsserter(IntentFilter filter, Predicate<Intent> checker) { in BroadcastAsserter() argument
97 if (checker != null && !checker.test(intent)) { in BroadcastAsserter()
117 ContentObserverAsserter(Uri watchUri, Predicate<Uri> checker) { in ContentObserverAsserter() argument
121 if (checker != null && !checker.test(uri)) { in ContentObserverAsserter()
DBlockingBroadcastReceiver.java83 Function<Intent, Boolean> checker) { in create() argument
84 return create(context, new IntentFilter(expectedAction), checker); in create()
88 Function<Intent, Boolean> checker) { in create() argument
89 return create(context, Set.of(intentFilter), checker); in create()
98 Function<Intent, Boolean> checker) { in create() argument
100 new BlockingBroadcastReceiver(context, intentFilters, checker); in create()
118 Function<Intent, Boolean> checker) { in BlockingBroadcastReceiver() argument
119 this(context, Set.of(intentFilter), checker); in BlockingBroadcastReceiver()
123 Function<Intent, Boolean> checker) { in BlockingBroadcastReceiver() argument
124 this(context, new IntentFilter(expectedAction), checker); in BlockingBroadcastReceiver()
[all …]
DCarrierPrivilegeUtils.java304 try (NestedCallChecker checker = new NestedCallChecker()) { in withCarrierPrivileges() argument
330 try (NestedCallChecker checker = new NestedCallChecker()) { in withCarrierPrivilegesForShell() argument
351 try (NestedCallChecker checker = new NestedCallChecker()) { in withCarrierPrivileges() argument
377 try (NestedCallChecker checker = new NestedCallChecker()) { in asCarrierService() argument
406 try (NestedCallChecker checker = new NestedCallChecker()) { in asCarrierServiceForShell() argument
432 try (NestedCallChecker checker = new NestedCallChecker()) { in asCarrierService() argument
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DBlockingBroadcastReceiver.java88 Function<Intent, Boolean> checker) { in create() argument
89 return create(context, new IntentFilter(expectedAction), checker); in create()
93 Function<Intent, Boolean> checker) { in create() argument
94 return create(context, Set.of(intentFilter), checker); in create()
103 Function<Intent, Boolean> checker) { in create() argument
105 new BlockingBroadcastReceiver(context, intentFilters, checker); in create()
123 Function<Intent, Boolean> checker) { in BlockingBroadcastReceiver() argument
124 this(context, Set.of(intentFilter), checker); in BlockingBroadcastReceiver()
128 Function<Intent, Boolean> checker) { in BlockingBroadcastReceiver() argument
129 this(context, new IntentFilter(expectedAction), checker); in BlockingBroadcastReceiver()
[all …]
DPoll.java146 public Poll<E> toMeet(ValueChecker<E> checker) { in toMeet() argument
147 mChecker = checker; in toMeet()
/cts/tests/signature/tests/src/android/signature/cts/tests/
DFailureHandlingTest.java77 runWithApiChecker(observer, checker -> { in testNoFailures_DetectsFailures()
79 checker.checkSignatureCompliance(description); in testNoFailures_DetectsFailures()
91 runWithApiChecker(observer, checker -> { in testExpectFailure_DetectsNoFailures()
105 runWithApiChecker(observer, checker -> { in testExpectFailure_DetectsTooManyFailures()
107 checker.checkSignatureCompliance(description); in testExpectFailure_DetectsTooManyFailures()
109 checker.checkSignatureCompliance(description); in testExpectFailure_DetectsTooManyFailures()
DApiPresenceCheckerTest.java100 checker -> checker.checkSignatureCompliance(classDescription), in checkSignatureCompliance()
107 T checker = createChecker(resultObserver, provider); in runWithApiChecker() local
108 consumer.accept(checker); in runWithApiChecker()
DAnnotationCheckerTest.java50 checker -> { in runWithApiChecker()
51 consumer.accept(checker); in runWithApiChecker()
52 checker.checkDeferred(); in runWithApiChecker()
DApiComplianceCheckerTest.java57 checker -> { in runWithApiChecker()
58 consumer.accept(checker); in runWithApiChecker()
59 checker.checkDeferred(); in runWithApiChecker()
789 runWithApiChecker(observer, checker -> { in testExtendedNormalInterface()
793 checker.addBaseClass(iface); in testExtendedNormalInterface()
800 checker.checkSignatureCompliance(clz); in testExtendedNormalInterface()
808 runWithApiChecker(observer, checker -> { in testAddingRuntimeMethodToInterface()
812 checker.checkSignatureCompliance(iface); in testAddingRuntimeMethodToInterface()
820 runWithApiChecker(observer, checker -> { in testAddingRuntimeMethodToInterface_PreviousApi()
825 checker.checkSignatureCompliance(iface); in testAddingRuntimeMethodToInterface_PreviousApi()
/cts/common/device-side/interactive/src/main/java/com/android/interactive/steps/
DActAndWaitStep.java34 protected ActAndWaitStep(String instruction, Supplier<Boolean> checker) { in ActAndWaitStep() argument
36 mChecker = checker; in ActAndWaitStep()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/utils/
DPollTest.java364 ValueTester<Boolean> checker = new ValueTester<>(EXCEPTION, true, 5); in await_checkerThrowsExceptionSometimes_stillWorks() local
367 .toMeet(c -> checker.get()) in await_checkerThrowsExceptionSometimes_stillWorks()
374 ValueTester<Boolean> checker = new ValueTester<>(EXCEPTION); in await_checkerThrowsExceptionAlways_returnsNonMatchingValue() local
377 .toMeet(c -> checker.get()) in await_checkerThrowsExceptionAlways_returnsNonMatchingValue()
385 ValueTester<Boolean> checker = new ValueTester<>(EXCEPTION); in await_checkerThrowsExceptionAlways_errorOnFail_throwsExceptionWithSameCause() local
390 .toMeet(c -> checker.get()) in await_checkerThrowsExceptionAlways_errorOnFail_throwsExceptionWithSameCause()
/cts/tests/signature/dex-checker/
DAndroid.bp22 srcs: ["dex-checker.cpp"],
/cts/tests/app/shared/src/android/app/cts/
DNotificationTemplateTestBase.kt60 checker: NotificationHostActivity.() -> Unit in <lambda>()
76 activity.checker() in <lambda>()
/cts/tests/sample/
DREADME14 directory into the ayeaye checker (as shown in
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DDeviceState.java1591 String action, Function<Intent, Boolean> checker) {
1593 new BlockingBroadcastReceiver(mContext, action, checker);
1605 IntentFilter intentfilter, Function<Intent, Boolean> checker) {
1607 new BlockingBroadcastReceiver(mContext, intentfilter, checker);
1637 UserReference user, String action, Function<Intent, Boolean> checker) {
1642 TestApis.context().androidContextAsUser(user), action, checker);
1655 UserReference user, IntentFilter intentFilter, Function<Intent, Boolean> checker) {
1660 TestApis.context().androidContextAsUser(user), intentFilter, checker);
1690 String action, Function<Intent, Boolean> checker) {
1694 new BlockingBroadcastReceiver(mContext, action, checker);
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerShellCommandIncrementalTest.java1117 final Function<String, Boolean> checker) in checkSysTrace() argument
1129 if (checker.apply(stdout)) { in checkSysTrace()
/cts/tests/app/src/android/app/cts/
DActivityManagerTest.java2429 private Bundle initWaitingForTrimLevel(final Consumer<Integer> checker) {
2437 checker.accept(level);