Home
last modified time | relevance | path

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

/frameworks/base/tests/FlickerTests/lib/src/com/android/server/wm/flicker/
DAssertionsChecker.java41 void add(Assertions.TraceAssertion<T> assertion, String name) { in add() argument
42 mAssertions.add(new NamedAssertion<>(assertion, name)); in add()
121 TraceAssertion<T> currentAssertion = mAssertions.get(assertionIndex).assertion; in assertChanges()
146 .map(assertion -> assertion.name).collect(Collectors.joining(",")); in assertChanges()
148 .map(assertion -> assertion.name).collect(Collectors.joining(",")); in assertChanges()
160 for (NamedAssertion<T> assertion : mAssertions) { in assertEntry()
161 Result result = assertion.assertion.apply(entry); in assertEntry()
171 assertion -> entries.stream() in assertAll()
172 .map(assertion.assertion) in assertAll()
DAssertions.java58 final TraceAssertion<T> assertion; field in Assertions.NamedAssertion
61 NamedAssertion(TraceAssertion<T> assertion, String name) { in NamedAssertion() argument
62 this.assertion = assertion; in NamedAssertion()
/frameworks/base/tests/FlickerTests/
DREADME.md49 …ested assertions, keeping assertions simple) with providing support for common assertion use cases.
51 …race entries, with an associated timestamp. Each trace entry has common assertion checks. The trac…
78 …nd any hints which might help the user determine the root cause. Failed assertion message will als…
121 To add a new assertion, add a function to one of the trace entry classes, `LayersTrace.Entry` or `W…
124 // Example adds an assertion to the check if layer is hidden by parent.
126 // Result should contain a details if assertion fails for any reason
132 …ct` which will add the assertion for testing. When the assertion is evaluated, the trace will firs…
142 To use the new assertion:
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/
DFlickerTestBase.java107 void checkResults(Consumer<TransitionResult> assertion) { in checkResults() argument
111 assertion.accept(result); in checkResults()
/frameworks/native/vulkan/vkjson/
Dvkjson_unittest.cc38 void ReportFailure(const char* file, int line, const char* assertion) { in ReportFailure() argument
39 std::cout << file << ":" << line << ": \"" << assertion << "\" failed." in ReportFailure()
/frameworks/layoutlib/create/tests/com/android/tools/layoutlib/create/
DStubMethodAdapterTest.java57 private void testBoolean(BiPredicate<String, Type> methodPredicate, Consumer<Boolean> assertion, in testBoolean() argument
70 assertion.accept((Boolean) method.invoke(o)); in testBoolean()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DDragHandleUtils.java20 import static androidx.test.espresso.assertion.ViewAssertions.matches;
DSuggestionsPopupwindowUtils.java20 import static androidx.test.espresso.assertion.ViewAssertions.matches;
DContextMenuUtils.java21 import static androidx.test.espresso.assertion.ViewAssertions.matches;
DFloatingToolbarEspressoUtils.java21 import static androidx.test.espresso.assertion.ViewAssertions.matches;
/frameworks/minikin/libs/minikin/
DAndroid.bp66 // Enable assertion on eng and userdebug build.
/frameworks/base/services/backup/java/com/android/server/backup/transport/
DTransportClient.java579 private void checkState(boolean assertion, String message) { in checkState() argument
580 if (!assertion) { in checkState()
/frameworks/base/core/tests/coretests/src/android/widget/
DSuggestionsPopupWindowTest.java36 import static androidx.test.espresso.assertion.ViewAssertions.matches;
DTextViewActivityMouseTest.java40 import static androidx.test.espresso.assertion.ViewAssertions.matches;
DTextViewActivityTest.java43 import static androidx.test.espresso.assertion.ViewAssertions.matches;
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DResolverActivityTest.java21 import static androidx.test.espresso.assertion.ViewAssertions.matches;
DChooserActivityTest.java21 import static androidx.test.espresso.assertion.ViewAssertions.doesNotExist;
22 import static androidx.test.espresso.assertion.ViewAssertions.matches;