/platform_testing/libraries/flicker/test/src/android/tools/flicker/legacy/ |
D | LegacyFlickerTestTest.kt | 62 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/ |
D | MonitorUtils.kt | 49 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()
|
D | TraceMonitor.kt | 89 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/ |
D | TraceProcessorSession.kt | 35 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/ |
D | NamedAssertion.kt | 28 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/ |
D | TaskFragment.kt | 41 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>()
|
D | Task.kt | 82 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>()
|
D | Utils.kt | 37 predicate: (T) -> Boolean = { true } in <lambda>() 41 return traverseList.filterIsInstance<T>().filter { predicate(it) } in <lambda>()
|
D | Activity.kt | 55 private fun getWindows(predicate: (WindowState) -> Boolean) = in <lambda>() 56 collectDescendants<WindowState> { predicate(it) } in <lambda>()
|
/platform_testing/libraries/flicker/utils/src/android/tools/ |
D | Extensions.kt | 24 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/ |
D | KotlinMockito.kt | 29 inline fun <reified T : Any> argThat(noinline predicate: T.() -> Boolean): T { in <lambda>() 30 return ArgumentMatchers.argThat { arg: T? -> arg?.predicate() ?: false } in <lambda>()
|
D | Utils.kt | 87 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/ |
D | CommonTestUtils.java | 30 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/ |
D | InputMethodManagerServiceTraceSubject.kt | 73 predicate: (InputMethodManagerServiceEntry) -> Boolean in imeClientEntriesThat() 74 ): List<InputMethodManagerServiceEntrySubject> = subjects.filter { predicate(it.entry) } in imeClientEntriesThat()
|
D | ImeClientTraceSubject.kt | 67 fun imeClientEntriesThat(predicate: (ImeClientEntry) -> Boolean): List<ImeClientEntrySubject> = in imeClientEntriesThat() 68 subjects.filter { predicate(it.entry) } in imeClientEntriesThat()
|
D | InputMethodServiceTraceSubject.kt | 68 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/ |
D | FileArtifact.kt | 141 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()
|
D | ResultReaderWithLru.kt | 77 predicate: () -> TraceType? in logAndReadTrace() 85 predicate() in logAndReadTrace()
|
/platform_testing/libraries/flicker/test/src/android/tools/integration/ |
D | NoErrorTest.kt | 209 private fun assertPredicatePasses(predicate: () -> Unit) { in <lambda>() 210 predicate.invoke() in <lambda>()
|
/platform_testing/tests/bettertogether/quickstart/performance_test/ |
D | nearby_connection_wrapper.py | 381 predicate=on_receive, 387 predicate=lambda event: event.data['update']['isSuccess'], 392 predicate=lambda event: event.data['update']['isSuccess'],
|
/platform_testing/tests/bettertogether/betocq/ |
D | nearby_connection_wrapper.py | 399 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/ |
D | LayersTraceSubject.kt | 102 fun layers(predicate: (Layer) -> Boolean): List<LayerSubject> = in <lambda>() 103 subjects.mapNotNull { it.layer { layer -> predicate(layer) } } in <lambda>()
|
D | LayerTraceEntrySubject.kt | 331 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/ |
D | WindowManagerTraceSubject.kt | 109 fun windowStates(predicate: (WindowState) -> Boolean): List<WindowStateSubject> { in <lambda>() 110 return subjects.mapNotNull { it.windowState { window -> predicate(window) } } in <lambda>()
|
D | WindowManagerStateSubject.kt | 708 fun windowState(predicate: (WindowState) -> Boolean): WindowStateSubject? = in <lambda>() 709 subjects.firstOrNull { predicate(it.windowState) } in <lambda>()
|