Home
last modified time | relevance | path

Searched refs:predicate (Results 1 – 25 of 26) sorted by relevance

12

/platform_testing/libraries/flicker/test/src/android/tools/flicker/legacy/
DLegacyFlickerTestTest.kt62 val predicate: (FlickerTest) -> Unit = { it.assertLayers { executionCount++ } } in executesLayers() constant
65 predicate, in executesLayers()
73 val predicate: (FlickerTest) -> Unit = { it.assertLayersStart { executionCount++ } } in executesLayerStart() constant
76 predicate, in executesLayerStart()
84 val predicate: (FlickerTest) -> Unit = { it.assertLayersEnd { executionCount++ } } in executesLayerEnd() constant
87 predicate, in executesLayerEnd()
95 val predicate: (FlickerTest) -> Unit = { it.assertLayers { executionCount++ } } in doesNotExecuteLayersWithoutTrace() constant
96 doExecuteAssertionWithoutTraceAndVerifyNotExecuted(TraceType.SF, predicate) in doesNotExecuteLayersWithoutTrace()
101 val predicate: (FlickerTest) -> Unit = { it.assertLayersStart { executionCount++ } } in doesNotExecuteLayersStartWithoutTrace() constant
102 doExecuteAssertionWithoutTraceAndVerifyNotExecuted(TraceType.SF, predicate) in doesNotExecuteLayersStartWithoutTrace()
[all …]
/platform_testing/libraries/flicker/utils/src/android/tools/traces/monitors/
DMonitorUtils.kt49 fun withWMTracing(predicate: () -> Unit): WindowManagerTrace { in <lambda>()
51 .parse(WindowManagerTraceMonitor().withTracing(Tag.ALL, predicate)) in <lambda>()
65 predicate: () -> Unit in withSFTracing()
71 .withTracing(Tag.ALL, predicate) in withSFTracing()
85 fun withTransactionsTracing(predicate: () -> Unit): TransactionsTrace { in withTransactionsTracing()
90 .withTracing(Tag.ALL, predicate) in withTransactionsTracing()
109 predicate: () -> Unit in withTracing()
119 predicate() in withTracing()
134 fun recordTraces(predicate: () -> Unit): Pair<ByteArray, ByteArray> { in recordTraces()
138 wmTraceData = WindowManagerTraceMonitor().withTracing(Tag.ALL, predicate) in recordTraces()
DTraceMonitor.kt89 fun withTracing(writer: ResultWriter, predicate: () -> Unit) { in <lambda>()
93 predicate() in <lambda>()
106 fun withTracing(tag: String = Tag.ALL, predicate: () -> Unit): ByteArray { in <lambda>()
108 withTracing(writer, predicate) in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/perfetto/
DTraceProcessorSession.kt35 fun <T> query(sql: String, predicate: (List<Row>) -> T): T { in query()
38 predicate(rows.toList()) in query()
43 fun <T> loadPerfettoTrace(trace: ByteArray, predicate: (TraceProcessorSession) -> T): T { in loadPerfettoTrace()
50 predicate(TraceProcessorSession(this)) in loadPerfettoTrace()
/platform_testing/libraries/flicker/src/android/tools/flicker/assertions/
DNamedAssertion.kt28 val predicate: (T) -> Unit, constant in android.tools.flicker.assertions.NamedAssertion
32 override operator fun invoke(target: T) = predicate(target) in invoke()
54 var result = predicate.hashCode() in hashCode()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/
DTaskFragment.kt41 fun getActivity(predicate: (Activity) -> Boolean): Activity? { in <lambda>()
42 var activity: Activity? = activities.firstOrNull { predicate(it) } in <lambda>()
47 activity = task.getActivity(predicate) in <lambda>()
53 activity = taskFragment.getActivity(predicate) in <lambda>()
DTask.kt82 fun getTask(predicate: (Task) -> Boolean) = in <lambda>()
83 tasks.firstOrNull { predicate(it) } ?: if (predicate(this)) this else null in <lambda>()
86 internal fun getActivity(predicate: (Activity) -> Boolean): Activity? { in <lambda>()
87 var activity: Activity? = activities.firstOrNull { predicate(it) } in <lambda>()
92 activity = task.getActivity(predicate) in <lambda>()
98 activity = taskFragment.getActivity(predicate) in <lambda>()
DUtils.kt37 predicate: (T) -> Boolean = { true } in <lambda>()
41 return traverseList.filterIsInstance<T>().filter { predicate(it) } in <lambda>()
DActivity.kt55 private fun getWindows(predicate: (WindowState) -> Boolean) = in <lambda>()
56 collectDescendants<WindowState> { predicate(it) } in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/
DExtensions.kt24 inline fun <T> withTracing(name: String, predicate: () -> T): T = in withCache()
27 predicate() in withCache()
/platform_testing/libraries/flicker/utils/test/src/android/tools/utils/
DKotlinMockito.kt29 inline fun <reified T : Any> argThat(noinline predicate: T.() -> Boolean): T { in <lambda>()
30 return ArgumentMatchers.argThat { arg: T? -> arg?.predicate() ?: false } in <lambda>()
DUtils.kt87 fun assertFail(expectedMessage: String, predicate: () -> Any) { in assertFail()
88 val error = assertThrows<AssertionError> { predicate() } in assertFail()
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DCommonTestUtils.java30 String message, long timeoutSeconds, BooleanSupplierWithThrow<E> predicate) in waitUntil() argument
35 if (predicate.getAsBoolean()) { in waitUntil()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/inputmethod/
DInputMethodManagerServiceTraceSubject.kt73 predicate: (InputMethodManagerServiceEntry) -> Boolean in imeClientEntriesThat()
74 ): List<InputMethodManagerServiceEntrySubject> = subjects.filter { predicate(it.entry) } in imeClientEntriesThat()
DImeClientTraceSubject.kt67 fun imeClientEntriesThat(predicate: (ImeClientEntry) -> Boolean): List<ImeClientEntrySubject> = in imeClientEntriesThat()
68 subjects.filter { predicate(it.entry) } in imeClientEntriesThat()
DInputMethodServiceTraceSubject.kt68 predicate: (InputMethodServiceEntry) -> Boolean in imeClientEntriesThat()
69 ): List<InputMethodServiceEntrySubject> = subjects.filter { predicate(it.entry) } in imeClientEntriesThat()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/io/
DFileArtifact.kt141 private fun withZipFile(predicate: (ZipInputStream) -> Unit) { in withZipFile()
164 predicate(zipInputStream) in withZipFile()
171 private fun forEachFileInZip(predicate: (ZipEntry) -> Unit) { in forEachFileInZip()
175 predicate(zipEntry) in forEachFileInZip()
DResultReaderWithLru.kt77 predicate: () -> TraceType? in logAndReadTrace()
85 predicate() in logAndReadTrace()
/platform_testing/libraries/flicker/test/src/android/tools/integration/
DNoErrorTest.kt209 private fun assertPredicatePasses(predicate: () -> Unit) { in <lambda>()
210 predicate.invoke() in <lambda>()
/platform_testing/tests/bettertogether/quickstart/performance_test/
Dnearby_connection_wrapper.py381 predicate=on_receive,
387 predicate=lambda event: event.data['update']['isSuccess'],
392 predicate=lambda event: event.data['update']['isSuccess'],
/platform_testing/tests/bettertogether/betocq/
Dnearby_connection_wrapper.py399 predicate=on_receive,
405 predicate=lambda event: event.data['update']['isSuccess'],
410 predicate=lambda event: event.data['update']['isSuccess'],
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/layers/
DLayersTraceSubject.kt102 fun layers(predicate: (Layer) -> Boolean): List<LayerSubject> = in <lambda>()
103 subjects.mapNotNull { it.layer { layer -> predicate(layer) } } in <lambda>()
DLayerTraceEntrySubject.kt331 fun layer(predicate: (Layer) -> Boolean): LayerSubject? = in <lambda>()
332 subjects.firstOrNull { predicate(it.layer) } in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/wm/
DWindowManagerTraceSubject.kt109 fun windowStates(predicate: (WindowState) -> Boolean): List<WindowStateSubject> { in <lambda>()
110 return subjects.mapNotNull { it.windowState { window -> predicate(window) } } in <lambda>()
DWindowManagerStateSubject.kt708 fun windowState(predicate: (WindowState) -> Boolean): WindowStateSubject? = in <lambda>()
709 subjects.firstOrNull { predicate(it.windowState) } in <lambda>()

12