/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/ |
D | WindowManagerTraceEntryBuilder.kt | 35 fun setPolicy(value: WindowManagerPolicy?): WindowManagerTraceEntryBuilder = apply { in <lambda>() 39 fun setFocusedApp(value: String): WindowManagerTraceEntryBuilder = apply { focusedApp = value } in setFocusedApp() 41 fun setFocusedDisplayId(value: Int): WindowManagerTraceEntryBuilder = apply { in <lambda>() 45 fun setFocusedWindow(value: String): WindowManagerTraceEntryBuilder = apply { in <lambda>() 49 fun setInputMethodWindowAppToken(value: String): WindowManagerTraceEntryBuilder = apply { in <lambda>() 53 fun setIsHomeRecentsComponent(value: Boolean): WindowManagerTraceEntryBuilder = apply { in <lambda>() 57 fun setIsDisplayFrozen(value: Boolean): WindowManagerTraceEntryBuilder = apply { in <lambda>() 61 fun setPendingActivities(value: Collection<String>): WindowManagerTraceEntryBuilder = apply { in <lambda>() 65 fun setRoot(value: RootWindowContainer?): WindowManagerTraceEntryBuilder = apply { in <lambda>() 71 ): WindowManagerTraceEntryBuilder = apply { keyguardControllerState = value } in setKeyguardControllerState() [all …]
|
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/region/ |
D | RegionTraceSubject.kt | 50 override fun isHigherOrEqual(other: Region): RegionTraceSubject = apply { in isHigherOrEqual() 58 override fun isLowerOrEqual(other: Region): RegionTraceSubject = apply { in isLowerOrEqual() 63 override fun isToTheRight(other: Region): RegionTraceSubject = apply { in <lambda>() 71 override fun isHigher(other: Region): RegionTraceSubject = apply { in isHigher() 79 override fun isLower(other: Region): RegionTraceSubject = apply { in isLower() 84 override fun coversAtMost(other: Region): RegionTraceSubject = apply { in <lambda>() 92 override fun notBiggerThan(other: Region): RegionTraceSubject = apply { in coversAtMost() 97 override fun isToTheRightBottom(other: Region, threshold: Int): RegionTraceSubject = apply { in <lambda>() 104 override fun regionsCenterPointInside(other: Rect): RegionTraceSubject = apply { in <lambda>() 111 override fun coversAtLeast(other: Region): RegionTraceSubject = apply { in <lambda>() [all …]
|
D | RegionSubject.kt | 83 fun isEmpty(): RegionSubject = apply { in <lambda>() 100 fun isNotEmpty(): RegionSubject = apply { in <lambda>() 133 override fun isHigherOrEqual(other: Region): RegionSubject = apply { in <lambda>() 156 override fun isLowerOrEqual(other: Region): RegionSubject = apply { in <lambda>() 173 override fun isToTheRight(other: Region): RegionSubject = apply { in <lambda>() 196 override fun isHigher(other: Region): RegionSubject = apply { in <lambda>() 225 override fun isLower(other: Region): RegionSubject = apply { in <lambda>() 242 override fun coversAtMost(other: Region): RegionSubject = apply { in <lambda>() 259 override fun notBiggerThan(other: Region): RegionSubject = apply { in <lambda>() 277 override fun isToTheRightBottom(other: Region, threshold: Int): RegionSubject = apply { in <lambda>() [all …]
|
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/wm/ |
D | WindowManagerTraceSubject.kt | 66 override fun then(): WindowManagerTraceSubject = apply { super.then() } in <lambda>() 69 override fun skipUntilFirstAssertion(): WindowManagerTraceSubject = apply { in <lambda>() 74 override fun isEmpty(): WindowManagerTraceSubject = apply { in <lambda>() 79 override fun isNotEmpty(): WindowManagerTraceSubject = apply { in <lambda>() 121 ): WindowManagerTraceSubject = apply { in <lambda>() 136 ): WindowManagerTraceSubject = apply { in <lambda>() 154 ): WindowManagerTraceSubject = apply { in <lambda>() 172 ): WindowManagerTraceSubject = apply { in <lambda>() 190 ): WindowManagerTraceSubject = apply { in <lambda>() 208 ): WindowManagerTraceSubject = apply { in <lambda>() [all …]
|
D | WindowManagerStateSubject.kt | 88 apply { in <lambda>() 93 override fun isEmpty(): WindowManagerStateSubject = apply { in <lambda>() 98 override fun isNotEmpty(): WindowManagerStateSubject = apply { in <lambda>() 131 ): WindowManagerStateSubject = apply { in <lambda>() 143 ): WindowManagerStateSubject = apply { in <lambda>() 156 ): WindowManagerStateSubject = apply { in <lambda>() 199 ): WindowManagerStateSubject = apply { in <lambda>() 210 apply { in <lambda>() 244 ): WindowManagerStateSubject = apply { in <lambda>() 265 ): WindowManagerStateSubject = apply { in <lambda>() [all …]
|
/platform_testing/libraries/flicker/utils/src/android/tools/ |
D | ScenarioBuilder.kt | 28 fun forClass(cls: String) = apply { testClass = cls } in <lambda>() 30 fun withStartRotation(rotation: Rotation) = apply { startRotation = rotation } in <lambda>() 32 fun withEndRotation(rotation: Rotation) = apply { endRotation = rotation } in <lambda>() 34 fun withNavBarMode(mode: NavBar) = apply { navBarMode = mode } in <lambda>() 36 fun withExtraConfig(key: String, value: Any?) = apply { extraConfig[key] = value } in <lambda>() 38 fun withExtraConfigs(cfg: Map<String, Any?>) = apply { extraConfig.putAll(cfg) } in <lambda>() 40 fun withDescriptionOverride(description: String) = apply { this.description = description } in <lambda>()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/extractors/ |
D | TaggedScenarioExtractorBuilder.kt | 33 fun setTargetTag(value: CujType): TaggedScenarioExtractorBuilder = apply { targetTag = value } in adjustCuj() 35 fun setTransitionMatcher(value: TransitionMatcher): TaggedScenarioExtractorBuilder = apply { in <lambda>() 39 fun setAdjustCuj(value: CujAdjust): TaggedScenarioExtractorBuilder = apply { adjustCuj = value } in <lambda>() 41 fun setAdditionalCujFilter(filter: (Cuj) -> Boolean) = apply { additionalCujFilter = filter } in <lambda>() 43 fun setIgnoreIfNoMatchingTransition(value: Boolean) = apply { in <lambda>()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/config/ |
D | FlickerConfigImpl.kt | 27 override fun use(flickerConfigEntries: Collection<FlickerConfigEntry>): FlickerConfig = apply { in <lambda>() 40 ) = apply { in <lambda>() 48 override fun unregisterScenario(scenario: ScenarioId) = apply { in <lambda>() 57 ) = apply { in <lambda>() 71 entry.assertions.toMutableMap().apply { this[assertion] = stabilityGroup }, in <lambda>() 85 ) = apply { in <lambda>() 99 entry.assertions.toMutableMap().apply { this[targetAssertion] = stabilityGroup }, in <lambda>() 104 override fun unregisterAssertion(scenario: ScenarioId, assertionId: AssertionId) = apply { in <lambda>() 118 entry.assertions.toMutableMap().apply { this.remove(targetAssertion) }, in <lambda>()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/io/ |
D | ResultWriter.kt | 44 fun forScenario(_scenario: Scenario) = apply { scenario = _scenario } in <lambda>() 47 fun setTransitionStartTime(time: Timestamp) = apply { transitionStartTime = time } in <lambda>() 50 fun setTransitionEndTime(time: Timestamp) = apply { transitionEndTime = time } in <lambda>() 53 fun setRunComplete() = apply { runStatus = RunStatus.RUN_EXECUTED } in <lambda>() 56 fun withOutputDir(dir: File) = apply { outputDir = dir } in <lambda>() 63 fun setRunFailed(error: Throwable) = apply { in <lambda>() 74 fun addTraceResult(traceType: TraceType, artifact: File, tag: String = Tag.ALL) = apply { in <lambda>()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/ |
D | LayerTraceEntryBuilder.kt | 39 fun setVSyncId(vSyncId: Long): LayerTraceEntryBuilder = apply { this.vSyncId = vSyncId } in <lambda>() 41 fun setHwcBlob(hwcBlob: String): LayerTraceEntryBuilder = apply { this.hwcBlob = hwcBlob } in <lambda>() 43 fun setWhere(where: String): LayerTraceEntryBuilder = apply { this.where = where } in <lambda>() 45 fun setDisplays(displays: Collection<Display>): LayerTraceEntryBuilder = apply { in <lambda>() 49 fun setElapsedTimestamp(timestamp: Long): LayerTraceEntryBuilder = apply { in <lambda>() 54 apply { in <lambda>() 63 fun setLayers(layers: Collection<Layer>): LayerTraceEntryBuilder = apply { in <lambda>() 76 fun setOrphanLayerCallback(value: ((Layer) -> Boolean)?): LayerTraceEntryBuilder = apply { in <lambda>() 80 fun setDuplicateLayerCallback(value: ((Layer) -> Boolean)): LayerTraceEntryBuilder = apply { in <lambda>() 192 fun ignoreVirtualDisplay(ignore: Boolean): LayerTraceEntryBuilder = apply { in <lambda>() [all …]
|
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/layers/ |
D | LayersTraceSubject.kt | 67 override fun then(): LayersTraceSubject = apply { super.then() } in <lambda>() 70 override fun isEmpty(): LayersTraceSubject = apply { in <lambda>() 75 override fun isNotEmpty(): LayersTraceSubject = apply { in <lambda>() 108 ): LayersTraceSubject = apply { in <lambda>() 125 apply { in <lambda>() 137 apply { in <lambda>() 149 apply { in <lambda>() 161 apply { in <lambda>() 173 override fun hasColor(componentMatcher: IComponentMatcher): LayersTraceSubject = apply { in <lambda>() 180 override fun hasNoColor(componentMatcher: IComponentMatcher): LayersTraceSubject = apply { in <lambda>() [all …]
|
D | LayerSubject.kt | 74 operator fun invoke(assertion: (Layer) -> Unit): LayerSubject = apply { assertion(this.layer) } in <lambda>() 81 fun hasBufferSize(expected: Size): LayerSubject = apply { in <lambda>() 91 fun hasLayerSize(expected: Size): LayerSubject = apply { in <lambda>() 98 fun hasScalingMode(expected: Int): LayerSubject = apply { in <lambda>() 105 fun hasBufferOrientation(expected: Int): LayerSubject = apply { in <lambda>()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/ |
D | WaitCondition.kt | 133 fun withCondition(condition: Condition<T>) = apply { conditions.add(condition) } in <lambda>() 135 fun withCondition(message: String, condition: (T) -> Boolean) = apply { in <lambda>() 152 fun onFailure(onFailure: (T) -> Any): Builder<T> = apply { this.onFailure = onFailure } in <lambda>() 154 fun onLog(onLog: (String, Boolean) -> Unit): Builder<T> = apply { this.onLog = onLog } in <lambda>() 156 fun onRetry(onRetry: ((T) -> Any)? = null): Builder<T> = apply { this.onRetry = onRetry } in <lambda>() 158 fun onStart(onStart: ((String) -> Any)? = null): Builder<T> = apply { in <lambda>() 162 fun onEnd(onEnd: (() -> Any)? = null): Builder<T> = apply { this.onEnd = onEnd } in <lambda>() 164 fun onSuccess(onRetry: ((T) -> Any)? = null): Builder<T> = apply { in <lambda>()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/inputmethod/ |
D | InputMethodManagerServiceTraceSubject.kt | 49 override fun then(): InputMethodManagerServiceTraceSubject = apply { super.then() } in <lambda>() 52 override fun isEmpty(): InputMethodManagerServiceTraceSubject = apply { in <lambda>() 57 override fun isNotEmpty(): InputMethodManagerServiceTraceSubject = apply { in <lambda>() 66 ): InputMethodManagerServiceTraceSubject = apply { addAssertion(name, isOptional, assertion) } in invoke()
|
D | ImeClientTraceSubject.kt | 44 override fun then(): ImeClientTraceSubject = apply { super.then() } in <lambda>() 47 override fun isEmpty(): ImeClientTraceSubject = apply { in <lambda>() 52 override fun isNotEmpty(): ImeClientTraceSubject = apply { in <lambda>() 61 ): ImeClientTraceSubject = apply { addAssertion(name, isOptional, assertion) } in invoke()
|
D | InputMethodServiceTraceSubject.kt | 44 override fun then(): InputMethodServiceTraceSubject = apply { super.then() } in <lambda>() 47 override fun isEmpty(): InputMethodServiceTraceSubject = apply { in <lambda>() 52 override fun isNotEmpty(): InputMethodServiceTraceSubject = apply { in <lambda>() 61 ): InputMethodServiceTraceSubject = apply { addAssertion(name, isOptional, assertion) } in invoke()
|
D | InputMethodServiceEntrySubject.kt | 46 ): InputMethodServiceEntrySubject = apply { assertion(this.entry) } in invoke() 49 override fun isEmpty(): InputMethodServiceEntrySubject = apply { in <lambda>() 54 override fun isNotEmpty(): InputMethodServiceEntrySubject = apply { in <lambda>()
|
D | ImeClientEntrySubject.kt | 44 operator fun invoke(assertion: (ImeClientEntry) -> Unit): ImeClientEntrySubject = apply { in <lambda>() 49 override fun isEmpty(): ImeClientEntrySubject = apply { in <lambda>() 54 override fun isNotEmpty(): ImeClientEntrySubject = apply { in <lambda>()
|
D | InputMethodManagerServiceEntrySubject.kt | 46 ): InputMethodManagerServiceEntrySubject = apply { assertion(this.entry) } in invoke() 49 override fun isEmpty(): InputMethodManagerServiceEntrySubject = apply { in <lambda>() 54 override fun isNotEmpty(): InputMethodManagerServiceEntrySubject = apply { in <lambda>()
|
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/ |
D | DynamicRuleChainTest.java | 74 Statement applied = chain.apply(PASSING_STATEMENT, DESCRIPTION); in testAppliesRuleBySimpleClassNameForRulesInKnownPackage() 82 Statement applied = chain.apply(FAILING_STATEMENT, DESCRIPTION); in testRuleCallbacks() 94 Statement applied = chain.apply(PASSING_STATEMENT, DESCRIPTION); in testAppliesRuleByFullyQualifiedClassName() 106 chain.apply(PASSING_STATEMENT, DESCRIPTION); in testThrowsOnNonexistentSimpleClassName() 116 chain.apply(PASSING_STATEMENT, DESCRIPTION); in testThrowsOnNonexistentFullyQualifiedClassName() 125 Statement applied = chain.apply(PASSING_STATEMENT, DESCRIPTION); in testMultipleRulesAreAppliedInCorrectOrder() 146 chain.apply(PASSING_STATEMENT, DESCRIPTION); in testInvalidRuleNameInMultipleRulesAlsoThrows() 156 Statement applied = chain.apply(PASSING_STATEMENT, DESCRIPTION); in testSupportsDuplicateSimpleRuleNames() 177 Statement applied = chain.apply(PASSING_STATEMENT, DESCRIPTION); in testSupportsDuplicateFullyQualifiedRuleNames() 198 Statement applied = chain.apply(PASSING_STATEMENT, DESCRIPTION); in testRulesOptionNameOverride()
|
D | TracePointRuleTest.java | 38 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testNoNameGiven() 47 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testEmptyStringGiven() 56 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testTagGiven() 65 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testTraceCallOrder() 75 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testSectionNameMaxLength_withTag() 84 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testSectionNameMaxLength_withTestName()
|
/platform_testing/libraries/motion/tests/src/platform/test/motion/filmstrip/ |
D | FilmstripTest.kt | 55 .apply { orientation = FilmstripOrientation.HORIZONTAL } in horizontalSingleFrame() 63 .apply { orientation = FilmstripOrientation.VERTICAL } in verticalSingleFrame() 80 Filmstrip(screenshots).apply { orientation = FilmstripOrientation.HORIZONTAL } in horizontalFilmstrip() 102 Filmstrip(screenshots).apply { orientation = FilmstripOrientation.HORIZONTAL } in horizontalFilmstrip_labelsWiderThanScreenshot() 116 Filmstrip(screenshots).apply { orientation = FilmstripOrientation.HORIZONTAL } in horizontalFilmstrip_variableSize_tileMatchesLargestDimensions() 133 Filmstrip(screenshots).apply { orientation = FilmstripOrientation.VERTICAL } in verticalFilmstrip() 149 Filmstrip(screenshots).apply { orientation = FilmstripOrientation.VERTICAL } in verticalFilmstrip_labelsTallerThanScreenshot() 163 Filmstrip(screenshots).apply { orientation = FilmstripOrientation.VERTICAL } in verticalFilmstrip_variableSize_tileMatchesLargestDimensions() 181 .apply { orientation = FilmstripOrientation.AUTOMATIC } in automaticOrientation_tallScreenshots_filmstripIsHorizontal() 202 .apply { orientation = FilmstripOrientation.AUTOMATIC } in automaticOrientation_wideScreenshots_filmstripIsVertical() [all …]
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/utils/ |
D | MockLayerBuilder.kt | 45 fun addChild(layer: MockLayerBuilder): MockLayerBuilder = apply { this.children.add(layer) } in <lambda>() 47 fun setContainerLayer(): MockLayerBuilder = apply { in <lambda>() 53 fun setVisible(): MockLayerBuilder = apply { this.isVisible = true } in <lambda>() 55 fun setInvisible(): MockLayerBuilder = apply { this.isVisible = false } in <lambda>() 57 fun addChildren(rootLayers: Collection<MockLayerBuilder>): MockLayerBuilder = apply { in <lambda>() 61 fun setAbsoluteBounds(bounds: Rect): MockLayerBuilder = apply { this.absoluteBounds = bounds } in <lambda>()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/exceptions/ |
D | ExceptionMessageBuilder.kt | 33 fun forSubject(value: FlickerSubject) = apply { in <lambda>() 54 fun setTimestamp(value: Timestamp) = apply { timestamp = value } in forInvalidElement() 56 fun setMessage(value: String) = apply { headerDescription = value } in <lambda>() 58 fun setExpected(value: Any?) = apply { expected = value?.toString() ?: "null" } in <lambda>() 60 fun setActual(value: Collection<String>) = apply { actual.addAll(value) } in <lambda>() 70 fun addExtraDescription(value: Collection<Fact>) = apply { extraDescription.addAll(value) } in setActual()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/legacy/ |
D | FlickerBuilder.kt | 50 fun withScreenRecorder(screenRecorder: () -> ScreenRecorder?): FlickerBuilder = apply { in <lambda>() 55 fun withoutScreenRecorder(): FlickerBuilder = apply { in <lambda>() 60 fun setup(commands: FlickerTestData.() -> Unit): FlickerBuilder = apply { in <lambda>() 65 fun teardown(commands: FlickerTestData.() -> Unit): FlickerBuilder = apply { in <lambda>() 70 fun transitions(command: FlickerTestData.() -> Unit): FlickerBuilder = apply { in <lambda>() 86 fun usingExistingTraces(_traceFiles: () -> TraceFiles): FlickerBuilder = apply { in <lambda>() 136 .apply(block) in copy()
|