Home
last modified time | relevance | path

Searched refs:apply (Results 1 – 25 of 92) sorted by relevance

1234

/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/traces/windowmanager/
DWindowManagerTraceSubject.kt69 override fun then(): WindowManagerTraceSubject = apply { super.then() } in <lambda>()
73 apply { super.skipUntilFirstAssertion() } in <lambda>()
75 fun isEmpty(): WindowManagerTraceSubject = apply { in <lambda>()
79 fun isNotEmpty(): WindowManagerTraceSubject = apply { in <lambda>()
107 ): WindowManagerTraceSubject = apply { in <lambda>()
124 ): WindowManagerTraceSubject = apply { in <lambda>()
142 ): WindowManagerTraceSubject = apply { in <lambda>()
160 ): WindowManagerTraceSubject = apply { in <lambda>()
178 ): WindowManagerTraceSubject = apply { in <lambda>()
196 ): WindowManagerTraceSubject = apply { in <lambda>()
[all …]
DWindowManagerStateSubject.kt94 apply { assertion(this.wmState) } in <lambda>()
99 fun isEmpty(): WindowManagerStateSubject = apply { in <lambda>()
106 fun isNotEmpty(): WindowManagerStateSubject = apply { in <lambda>()
158 fun containsAboveAppWindow(component: FlickerComponentName): WindowManagerStateSubject = apply { in <lambda>()
168 fun containsBelowAppWindow(component: FlickerComponentName): WindowManagerStateSubject = apply { in <lambda>()
185 ): WindowManagerStateSubject = apply { in <lambda>()
208 fun containsNonAppWindow(component: FlickerComponentName): WindowManagerStateSubject = apply { in <lambda>()
217 fun isAppWindowOnTop(component: FlickerComponentName): WindowManagerStateSubject = apply { in <lambda>()
241 fun isAppWindowNotOnTop(component: FlickerComponentName): WindowManagerStateSubject = apply { in <lambda>()
259 ): WindowManagerStateSubject = apply { in <lambda>()
[all …]
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/traces/region/
DRegionSubject.kt99 fun isHigherOrEqual(subject: RegionSubject): RegionSubject = apply { in <lambda>()
109 fun isHigherOrEqual(other: Rect): RegionSubject = apply { in <lambda>()
119 fun isHigherOrEqual(other: Region): RegionSubject = apply { in <lambda>()
131 fun isLowerOrEqual(subject: RegionSubject): RegionSubject = apply { in <lambda>()
141 fun isLowerOrEqual(other: Rect): RegionSubject = apply { in <lambda>()
151 fun isLowerOrEqual(other: Region): RegionSubject = apply { in <lambda>()
163 fun isHigher(subject: RegionSubject): RegionSubject = apply { in <lambda>()
172 fun isHigher(other: Rect): RegionSubject = apply { in <lambda>()
181 fun isHigher(other: Region): RegionSubject = apply { in <lambda>()
193 fun isLower(subject: RegionSubject): RegionSubject = apply { in <lambda>()
[all …]
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/dsl/
DFlickerBuilder.kt121 fun withTestName(testName: () -> String): FlickerBuilder = apply { in <lambda>()
132 fun withoutWindowManagerTracing(): FlickerBuilder = apply { in <lambda>()
146 ): FlickerBuilder = apply { in withWindowManagerTracing()
158 fun withoutLayerTracing(): FlickerBuilder = apply { in <lambda>()
172 ): FlickerBuilder = apply { in withLayerTracing()
188 ): FlickerBuilder = apply { in withScreenRecorder()
200 fun repeat(predicate: () -> Int): FlickerBuilder = apply { in <lambda>()
210 fun setup(commands: TestCommandsBuilder.() -> Unit): FlickerBuilder = apply { in <lambda>()
211 setupCommands.apply { commands() } in <lambda>()
218 fun teardown(commands: TestCommandsBuilder.() -> Unit): FlickerBuilder = apply { in <lambda>()
[all …]
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DLimitDevicesRuleTest.kt44 assertEquals(rule.apply(statement, description), statement) in allowOnPhone_withPhone_succeeds()
53 rule.apply(statement, description).evaluate() in allowOnPhone_withTablet_fails()
62 assertEquals(rule.apply(statement, description), statement) in denyOnPhone_withTablet_succeeds()
71 rule.apply(statement, description).evaluate() in denyOnPhone_withPhone_fails()
81 assertEquals(ruleOnPhone.apply(statement, description), statement) in allowedOnBothPhonesAndTablets_withTabletAndPhone_succeeds()
82 assertEquals(ruleOnTablet.apply(statement, description), statement) in allowedOnBothPhonesAndTablets_withTabletAndPhone_succeeds()
DDynamicRuleChainTest.java65 Statement applied = chain.apply(mStatement, DESCRIPTION); in testAppliesRuleBySimpleClassNameForRulesInKnownPackage()
74 Statement applied = chain.apply(mStatement, DESCRIPTION); in testAppliesRuleByFullyQualifiedClassName()
86 chain.apply(mStatement, DESCRIPTION); in testThrowsOnNonexistentSimpleClassName()
96 chain.apply(mStatement, DESCRIPTION); in testThrowsOnNonexistentFullyQualifiedClassName()
105 Statement applied = chain.apply(mStatement, DESCRIPTION); in testMultipleRulesAreAppliedInCorrectOrder()
126 chain.apply(mStatement, DESCRIPTION); in testInvalidRuleNameInMultipleRulesAlsoThrows()
136 Statement applied = chain.apply(mStatement, DESCRIPTION); in testSupportsDuplicateSimpleRuleNames()
157 Statement applied = chain.apply(mStatement, DESCRIPTION); in testSupportsDuplicateFullyQualifiedRuleNames()
178 Statement applied = chain.apply(mStatement, DESCRIPTION); in testRulesOptionNameOverride()
DTracePointRuleTest.java38 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()
DTestWatcherTest.java40 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testAllCallsSuccessful()
53 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testCallsFail_starting()
69 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testCallsFail_statement()
85 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testCallsFail_succeeded()
101 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testStatementIsSkipped()
117 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testCallFails_skipped()
134 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testCallsFail_failed()
150 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testCallsFail_finished()
DCompilationFilterRuleTest.java62 rule.apply(rule.getTestStatement(), TEST_DESC).evaluate(); in testAppToCompile_badFilterThrows()
82 rule.apply(rule.getTestStatement(), TEST_DESC).evaluate(); in testAppToCompile_failCompilationThrows()
101 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd1")) in testOneAppToCompile()
122 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz$1", "mthd1")) in testOneAppToCompileMultipleIterations()
124 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz$2", "mthd1")) in testOneAppToCompileMultipleIterations()
145 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz$1", "mthd1")) in testOneAppMultipleCompileMultipleTests()
147 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz$2", "mthd2")) in testOneAppMultipleCompileMultipleTests()
168 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd1")) in testOneAppToCompileDuplicateTests()
170 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd1")) in testOneAppToCompileDuplicateTests()
191 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd2")) in testMultipleAppsToCompile()
[all …]
DGarbageCollectRuleTest.java51 rule.apply(testStatement, in testNoGcBeforeTest()
72 rule.apply(testStatement, in testCallsGcBeforeTest()
92 rule.apply(testStatement, in testCallsGcBeforeAndAfterTest()
113 rule.apply(testStatement, in testCallsGcOnlyBeforeTest()
DStopwatchRuleTest.java41 rule.apply( in testMeasurementIsCorrect()
63 rule.apply( in testMetricSendToInstr()
78 rule.apply( in testMetricKeyWithoutAppend()
99 rule.apply( in testMetricKeyWithAppend()
DDex2oatPressureRuleTest.java103 rule.apply(createTestStatement(10L), TEST_DESCRIPTION).evaluate(); in testInvokesCompilation()
115 rule.apply(createTestStatement(150L), TEST_DESCRIPTION).evaluate(); in testInvokesCompilationCyclically()
148 rule.apply(createTestStatement(800L), TEST_DESCRIPTION).evaluate(); in testSchedulesCompilationUntilTestEnds()
176 rule.apply(createTestStatement(600L), TEST_DESCRIPTION).evaluate(); in testNoAdditionalCompilationIsTriggeredAfterTestFinishes()
192 rule.apply(createTestStatement(50L), TEST_DESCRIPTION).evaluate(); in testFailedCompilationDoesNotBlockOtherCompilations()
215 rule.apply(testStatement, TEST_DESCRIPTION).evaluate(); in testWaitsUntilDex2oatIsRunningBeforeTest()
228 rule.apply(createTestStatement(10L), TEST_DESCRIPTION).evaluate(); in testCancelsAndThrowsIfDex2oatIsNotRunningAfterTimeout()
246 rule.apply(createTestStatement(10L), TEST_DESCRIPTION).evaluate(); in testValidCompilationFilters()
265 rule.apply(createTestStatement(10L), TEST_DESCRIPTION).evaluate(); in testInvalidCompilationFilterThrows()
277 rule.apply(createTestStatement(10L), TEST_DESCRIPTION).evaluate(); in testInvalidPackageThrows()
[all …]
DKillAppsRuleTest.java57 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testOneAppToKill()
73 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testMultipleAppsToKill()
93 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testDisableKillsAppsRuleOption()
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/common/
DWaitCondition.kt98 apply { conditions.add(condition) } in withCondition()
101 apply { withCondition(Condition(message, condition)) } in withCondition()
117 apply { this.onFailure = onFailure } in onFailure()
120 apply { this.onLog = onLog } in onLog()
123 apply { this.onRetry = onRetry } in onRetry()
126 apply { this.onSuccess = onRetry } in onSuccess()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/assertions/
DFlickerSubject.kt52 open fun fail(reason: List<Fact>): FlickerSubject = apply { in <lambda>()
58 fun fail(reason: Fact, vararg rest: Fact): FlickerSubject = apply { in <lambda>()
69 fun fail(reason: Fact): FlickerSubject = apply { in <lambda>()
78 fun fail(reason: String): FlickerSubject = apply { in <lambda>()
88 fun fail(reason: String, value: Any): FlickerSubject = apply { in <lambda>()
DFlickerAssertionErrorBuilder.kt31 fun fromError(error: Throwable): FlickerAssertionErrorBuilder = apply { in <lambda>()
35 fun withTrace(traceFile: TraceFile?): FlickerAssertionErrorBuilder = apply { in <lambda>()
39 fun atTag(tag: String): FlickerAssertionErrorBuilder = apply { in <lambda>()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/traces/layers/
DLayersTraceSubject.kt70 operator fun invoke(assertion: Assertion<LayersTrace>): LayersTraceSubject = apply { in <lambda>()
75 override fun then(): LayersTraceSubject = apply { super.then() } in <lambda>()
77 fun isEmpty(): LayersTraceSubject = apply { in <lambda>()
81 fun isNotEmpty() = apply { in <lambda>()
122 ): LayersTraceSubject = apply { in <lambda>()
143 apply { in <lambda>()
161 apply { addAssertion("contains(${component.toLayerName()})", isOptional) { in <lambda>()
176 apply { addAssertion("isVisible(${component.toLayerName()})", isOptional) { in <lambda>()
191 apply { in <lambda>()
207 ): LayersTraceSubject = apply { in <lambda>()
[all …]
DLayerSubject.kt85 operator fun invoke(assertion: Assertion<Layer>): LayerSubject = apply { in <lambda>()
93 fun doesNotExist(): LayerSubject = apply { in <lambda>()
100 fun exists(): LayerSubject = apply { in <lambda>()
105 fun hasBufferSize(size: Point): LayerSubject = apply { in <lambda>()
116 fun hasBufferSize(size: Size): LayerSubject = apply { in <lambda>()
128 fun hasLayerSize(size: Point): LayerSubject = apply { in <lambda>()
138 fun hasScalingMode(expectedScalingMode: Int): LayerSubject = apply { in <lambda>()
148 fun hasBufferOrientation(expectedOrientation: Int): LayerSubject = apply { in <lambda>()
DLayerTraceEntrySubject.kt74 apply { in <lambda>()
81 fun isEmpty(): LayerTraceEntrySubject = apply { in <lambda>()
90 fun isNotEmpty(): LayerTraceEntrySubject = apply { in <lambda>()
145 fun contains(component: FlickerComponentName): LayerTraceEntrySubject = apply { in <lambda>()
159 fun notContains(component: FlickerComponentName): LayerTraceEntrySubject = apply { in <lambda>()
171 fun isVisible(component: FlickerComponentName): LayerTraceEntrySubject = apply { in <lambda>()
209 fun isInvisible(component: FlickerComponentName): LayerTraceEntrySubject = apply { in <lambda>()
216 return@apply in <lambda>()
231 fun isSplashScreenVisibleFor(component: FlickerComponentName): LayerTraceEntrySubject = apply { in <lambda>()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DMaterialYouColorsRule.kt37 override fun apply(base: Statement, description: Description): Statement { in <lambda>() method in platform.test.screenshot.MaterialYouColorsRule
40 colors.apply(InstrumentationRegistry.getInstrumentation().targetContext) in <lambda>()
61 fun apply(context: Context) { in apply() method
62 RemoteViews.ColorResources.create(context, colors).apply(context) in apply()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/
DTransitionRunnerTest.kt63 .apply { in canRunTransition()
80 .apply { in storesTransitionExecutionErrors()
97 .apply { in keepsSuccessfulTransitionExecutions()
119 .apply { in storesSuccessExecutionStatusInRunResult()
132 .apply { in storesFailedExecutionStatusInRunResult()
147 .apply { in savesTraceOnTransitionExecutionErrors()
162 .apply { in savesTraceOnRunCleanupErrors()
180 .apply { in savesTraceOnTestCleanupErrors()
/platform_testing/libraries/health/options/tests/src/android/platform/test/options/
DTestOptionTest.java81 Statement withOption = option.apply(testStatement, Description.EMPTY); in testSuppliedValue_valid()
99 Statement withOption = option.apply(testStatement, Description.EMPTY); in testSuppliedValue_invalid()
116 Statement withOption = option.apply(testStatement, Description.EMPTY); in testRequiredValueAbsent_explicit()
133 Statement withOption = option.apply(testStatement, Description.EMPTY); in testRequiredValueAbsent_implicit()
149 Statement withOption = option.apply(testStatement, Description.EMPTY); in testRequiredValueAbsent_withDefault()
164 Statement withOption = option.apply(testStatement, Description.EMPTY); in testNonRequiredValueAbsent()
182 Statement withOption = option.apply(testStatement, Description.EMPTY); in testOptionErrorSkipsTest_invalidValue()
205 Statement withOption = option.apply(testStatement, Description.EMPTY); in testOptionErrorSkipsTest_requiredMissing()
/platform_testing/libraries/health/composers/host/src/android/host/test/composer/
DCompose.java29 return (args, list) -> next.apply(args, this.apply(args, list)); in andThen()
/platform_testing/libraries/health/composers/host/tests/src/android/host/test/composer/
DIterateTestBase.java57 List<Integer> output = getIterate().apply( in testIterationsRespected()
76 List<Integer> output = getIterate().apply( in testCyclicOrderRespected()
93 List<Integer> output = getIterate().apply( in testSequentialOrderRespected()
116 iterator.apply( in testOverrideOptionName()
147 List<Integer> output = getIterate().apply( in testInvalidOrderThrows()
/platform_testing/tests/automotive/health/rules/src/android/platform/scenario/
DAppStartupRunRule.java67 public Statement apply(final Statement base, final Description description) { in apply() method in AppStartupRunRule
68 return mRuleChain.apply(base, description); in apply()

1234