Home
last modified time | relevance | path

Searched refs:filter (Results 1 – 25 of 101) sorted by relevance

12345

/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/
DMSSIMMatcherTest.kt35 val filter = BooleanArray(first.width * first.height) { true } in performDiff_sameBitmaps() constant
44 filter in performDiff_sameBitmaps()
55 val filter = BooleanArray(first.width * first.height) { false } in performDiff_noPixelsCompared() constant
64 filter in performDiff_noPixelsCompared()
74 val filter = BooleanArray(first.width * first.height) { false } in performDiff_sameRegion() constant
81 filter[j + i * first.width] = true in performDiff_sameRegion()
92 filter in performDiff_sameRegion()
103 val filter = BooleanArray(first.width * first.height) { true } in performDiff_checkedAgainstUnchecked() constant
112 filter in performDiff_checkedAgainstUnchecked()
122 val filter = BooleanArray(first.width * first.height) { true } in performDiff_differentBorders() constant
[all …]
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/matchers/
DMSSIMMatcher.kt51 val filter = getFilter(width, height, regions) in compareBitmaps() constant
52 val calSSIMResult = calculateSSIM(expected, given, width, height, filter) in compareBitmaps()
80 filter: BooleanArray in calculateSSIM()
82 return calculateSSIM(ideal, given, 0, width, width, height, filter) in calculateSSIM()
92 filter: BooleanArray in calculateSSIM()
106 shouldIgnoreWindow(ideal, start, stride, windowWidth, windowHeight, filter) && in calculateSSIM()
107 shouldIgnoreWindow(given, start, stride, windowWidth, windowHeight, filter) in calculateSSIM()
113 val means = getMeans(ideal, given, filter, start, stride, windowWidth, windowHeight) in calculateSSIM()
120 filter, in calculateSSIM()
133 numPixelsToCompareInWindow(start, stride, windowWidth, windowHeight, filter) in calculateSSIM()
[all …]
DPixelPerfectMatcher.kt37 val filter = getFilter(width, height, regions) in <lambda>() constant
46 !filter[index] -> ignored++ in <lambda>()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DBaseCollectionListener.java68 Function<String, Boolean> filter = getFilter(description); in onTestRunStart() local
69 testStart(filter, description); in onTestRunStart()
90 Function<String, Boolean> filter = getFilter(description); in onTestStart() local
91 testStart(filter, description); in onTestStart()
130 public void testStart(Function<String, Boolean> filter, Description description) { in testStart() argument
131 if (filter == null) { in testStart()
134 mHelper.startCollecting(filter); in testStart()
/platform_testing/libraries/flicker/src/android/tools/flicker/config/
DTransitionFilters.kt34 ts.filter { t -> in <lambda>()
45 val launcherLayers = layers.filter { ComponentNameMatcher.LAUNCHER.layerMatchesAnyOf(it) } in <lambda>()
47 ts.filter { t -> in <lambda>()
60 val mergedTransitions = ts.filter { it.mergeTarget != null } in <lambda>()
63 ts.filter { it.mergeTarget == null }.forEach { this@apply[it.id] = it } in <lambda>()
76 artificiallyMergedTransitions.filter { transition -> in <lambda>()
78 transition.changes.filter { in <lambda>()
85 transition.changes.filter { in <lambda>()
102 artificiallyMergedTransitions.filter { transition -> in <lambda>()
104 transition.changes.filter { in <lambda>()
[all …]
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DCompilationFilterRule.java73 String filter = getArguments().getString(COMPILE_FILTER_OPTION); in finished() local
78 if (filter == null) { in finished()
82 } else if (!COMPILE_FILTER_LIST.contains(filter)) { in finished()
86 "Unknown compiler filter: %s, not part of %s", filter, filterOptions)); in finished()
97 if (filter.equalsIgnoreCase(SPEED_PROFILE_FILTER)) { in finished()
109 String response = executeShellCommand(String.format(COMPILE_CMD_FORMAT, filter, app)); in finished()
DDex2oatPressureRule.java94 .filter(pkg -> !installedPackages.contains(pkg)) in starting()
169 protected void runCompileCommand(String pkg, String filter) { in runCompileCommand() argument
171 executeShellCommand(String.format(COMPILE_COMMAND_TEMPLATE, filter, pkg)).trim(); in runCompileCommand()
178 pkg, filter, response)); in runCompileCommand()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/
DLayerTraceEntry.kt53 get() = flattenedLayers.filter { it.isVisible } in <lambda>()
56 get() = flattenedLayers.filter { it.isRootLayer } in <lambda>()
91 visibleLayers.filter { in <lambda>()
96 prevState?.visibleLayers?.filter { currIds.contains(it.id) } ?: emptyList() in <lambda>()
175 opaqueLayers.filter { in <lambda>()
182 opaqueLayers.filter { in <lambda>()
189 transparentLayers.filter { in <lambda>()
DLayerTraceEntryBuilder.kt153 val remainingRoots = orphans.filter { it.parentId == firstRoot.parentId } in <lambda>()
166 return roots.filter { physicalDisplays.contains(it.stackId) } in <lambda>()
174 val offDisplays = displays.filter { it.isOff }.map { it.layerStackId } in <lambda>()
183 return roots.filter { displayStacks.contains(it.stackId) } in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/events/
DCujTrace.kt38 val startEvents = sortedCujEvents.filter { it.type == CujEvent.Companion.Type.START } in from()
39 val endEvents = sortedCujEvents.filter { it.type == CujEvent.Companion.Type.END } in from()
41 sortedCujEvents.filter { it.type == CujEvent.Companion.Type.CANCEL } in from()
/platform_testing/libraries/flicker/src/android/tools/flicker/extractors/
DTaggedCujTransitionMatcher.kt49 val completeTransitions = transitionsTrace.entries.filter { !it.isIncomplete } in <lambda>()
108 transitions.filter { transition -> in cujEntry()
130 return@filter transitionCreatedWithinCujTags || in cujEntry()
137 transitions.filter { !isPermissionDialogOpenTransition(it, reader) } in reader()
190 .filter { in isTrampolinedOpenTransition()
214 .filter { it.transitMode == TransitionType.CLOSE } in isTrampolinedOpenTransition()
218 .filter { in isTrampolinedOpenTransition()
DTaggedScenarioExtractorBuilder.kt41 fun setAdditionalCujFilter(filter: (Cuj) -> Boolean) = apply { additionalCujFilter = filter } in <lambda>()
DTaggedScenarioExtractor.kt45 .filter { it.cuj === targetTag } in <lambda>()
46 .filter { !it.canceled } in <lambda>()
47 .filter { additionalCujFilter?.invoke(it) ?: true } in <lambda>()
/platform_testing/libraries/health/runners/microbenchmark/src/android/platform/test/microbenchmark/
DFunctional.java106 public void filter(Filter filter) throws NoTestsRemainException {
108 super.filter(filter);
112 .filter(c -> filter.shouldRun(describeChild(c)))
/platform_testing/libraries/sts-common-util/sts-sdk/package/test-app/src/main/java/android/security/sts/sts_test_app_package/
DDeviceTest.java80 IntentFilter filter = new IntentFilter(); // see if there's a shorthand in testDeviceSideMethod() local
81 filter.addAction(ACTION_BROADCAST); // what does this return? in testDeviceSideMethod()
82 mContext.registerReceiver(broadcastReceiver, filter); in testDeviceSideMethod()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/extractor/
DShellTransitionScenarioExtractorTest.kt33 (reader.readTransitionsTrace() ?: error("Missing transitions trace")).entries.filter { in <lambda>()
68 return transitions.filter { it.type == TransitionType.OPEN } in <lambda>()
104 return transitions.filter { it.type == TransitionType.TO_BACK } in <lambda>()
/platform_testing/libraries/flag-helpers/
DTEST_MAPPING7 "include-filter": "android.cts.flags.tests.FlagAnnotationTest"
/platform_testing/libraries/flicker/utils/src/android/tools/traces/component/
DIComponentMatcher.kt109 layers.filter { layerMatchesAnyOf(it) } in windowMatchesAnyOf()
112 windows.filter { windowMatchesAnyOf(it) } in filterWindows()
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/wm/
DWindowManagerTraceTest.kt61 .filter { Modifier.isPublic(it.modifiers) } in <lambda>()
63 .filter { it.isFailure } in <lambda>()
73 .filter { in <lambda>()
79 .filter { it.isFailure } in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/wm/
DWindowManagerStateSubject.kt69 get() = subjects.filter { wmState.appWindows.contains(it.windowState) } in <lambda>()
72 get() = subjects.filter { wmState.nonAppWindows.contains(it.windowState) } in <lambda>()
75 get() = subjects.filter { wmState.aboveAppWindows.contains(it.windowState) } in <lambda>()
78 get() = subjects.filter { wmState.belowAppWindows.contains(it.windowState) } in <lambda>()
81 get() = subjects.filter { wmState.visibleWindows.contains(it.windowState) } in <lambda>()
84 get() = subjects.filter { wmState.visibleAppWindows.contains(it.windowState) } in <lambda>()
109 subjects.filter { componentMatcher.windowMatchesAnyOf(it.windowState) } in <lambda>()
123 val visibleWindows = selectedWindows.filter { it.isVisible } in <lambda>()
485 subjectList.filter { componentMatcher.windowMatchesAnyOf(it.windowState) } in <lambda>()
488 wmState.visibleWindows.filter { visibleWindow -> in <lambda>()
[all …]
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/layers/
DLayerTraceEntrySubject.kt108 subjects.filter { componentMatcher.layerMatchesAnyOf(it.layer) } in <lambda>()
125 val visibleLayers = selectedLayers.filter { it.isVisible } in <lambda>()
172 val visibleLayers = matchedLayers.filter { it.isVisible } in <lambda>()
208 .filter { it.isVisible } in <lambda>()
226 val matchingSubjects = subjects.filter { splashScreenMatcher.layerMatchesAnyOf(it.layer) } in <lambda>()
244 .filter { it.isInvisible } in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/junit/
DFlickerServiceJUnit4ClassRunner.kt105 override fun filter(filter: Filter) { in <lambda>() method
116 if (shouldRun(filter, each)) { in <lambda>()
118 filter.apply(each) in <lambda>()
167 super.getChildren().filter { in <lambda>()
235 private fun shouldRun(filter: Filter, each: FrameworkMethod): Boolean { in <lambda>()
236 return filter.shouldRun(describeChild(each)) in <lambda>()
DLegacyFlickerJUnit4ClassRunner.kt159 override fun filter(filter: Filter) { in <lambda>() method
170 if (shouldRun(filter, each)) { in <lambda>()
172 filter.apply(each) in <lambda>()
224 super.getChildren().filter { in <lambda>()
300 private fun shouldRun(filter: Filter, each: FrameworkMethod): Boolean { in <lambda>()
301 return filter.shouldRun(describeChild(each)) in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/
DUtils.kt41 return traverseList.filterIsInstance<T>().filter { predicate(it) } in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/assertions/
DEntireScreenCoveredAtEnd.kt32 val onDisplays = entry.displays.filter { it.isOn } in <lambda>()

12345