Home
last modified time | relevance | path

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

12

/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/
DAssertionsTest.java38 assertThat(assertNumEquals42.apply(1).success).isFalse(); in traceEntryAssertionCanNegateResult()
39 assertThat(assertNumEquals42.negate().apply(1).success).isTrue(); in traceEntryAssertionCanNegateResult()
41 assertThat(assertNumEquals42.apply(42).success).isTrue(); in traceEntryAssertionCanNegateResult()
42 assertThat(assertNumEquals42.negate().apply(42).success).isFalse(); in traceEntryAssertionCanNegateResult()
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DIorapCompilationRuleTest.java59 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testDoingNothingWhenParamsUnset()
75 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testDisablingIorapdWhenParamsAreSet()
95 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testEnablingIorapdWhenParamsAreSet()
116 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testCompilingIorapdWhenParamsAreSet()
131 rule2.apply(rule2.getTestStatement(), Description.createTestDescription("clzz", "mthd2")) in testCompilingIorapdWhenParamsAreSet()
140 rule3.apply(rule3.getTestStatement(), Description.createTestDescription("clzz", "mthd3")) in testCompilingIorapdWhenParamsAreSet()
151 rule4.apply(rule4.getTestStatement(), Description.createTestDescription("clzz", "mthd4")) in testCompilingIorapdWhenParamsAreSet()
DTracePointRuleTest.java40 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testNoNameGiven()
51 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testEmptyStringGiven()
62 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testTagGiven()
73 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testTraceCallOrder()
DCompilationFilterRuleTest.java55 rule.apply(rule.getTestStatement(), TEST_DESC).evaluate(); in testAppToCompile_badFilterThrows()
75 rule.apply(rule.getTestStatement(), TEST_DESC).evaluate(); in testAppToCompile_failCompilationThrows()
94 rule.apply(rule.getTestStatement(), TEST_DESC).evaluate(); in testOneAppToCompile()
114 rule.apply(rule.getTestStatement(), TEST_DESC).evaluate(); in testMultipleAppsToCompile()
DUnlockScreenRuleTest.java50 rule.apply(testStatement, Description.createTestDescription("clzz", "mthd")).evaluate(); in testScreenOff()
66 rule.apply(testStatement, Description.createTestDescription("clzz", "mthd")).evaluate(); in testScreenLocked()
82 rule.apply(testStatement, Description.createTestDescription("clzz", "mthd")).evaluate(); in testScreenOn()
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()
DStopwatchRuleTest.java41 rule.apply( in testMeasurementIsCorrect()
64 rule.apply( in testMetricSendToInstr()
DQuickstepPressureRuleTest.java49 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testOneAppToOpen()
62 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testMultipleAppsToOpen()
DDropCachesRuleTest.java42 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testDropCachesCommand()
58 rule.apply(rule.getTestStatement(), Description.createTestDescription("clzz", "mthd")) in testNoDropCacheFlag()
DNotificationPressureRuleTest.java54 rule.apply(testStatement, Description.createTestDescription("clzz", "mthd")) in testPostNotifications_withoutPackage()
79 rule.apply(testStatement, Description.createTestDescription("clzz", "mthd")).evaluate(); in testPostNotifications_withPackage()
DPressHomeRuleTest.java56 rule.apply(testStatement, Description.createTestDescription("clzz", "mthd")).evaluate(); in testPressHomeEnabled()
78 rule.apply(testStatement, Description.createTestDescription("clzz", "mthd")).evaluate(); in testPressHomeDisabled()
DGarbageCollectRuleTest.java66 rule.apply(testStatement, in testCallsGcBeforeTest()
/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()
DShuffleBase.java41 public List<U> apply(T args, List<U> input) { in apply() method in ShuffleBase
/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()
DBooleanOptionTest.java60 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_true()
76 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_false()
DIntegerOptionTest.java66 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_valid()
84 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_invalid()
DDoubleOptionTest.java66 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_valid()
84 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_invalid()
DLongOptionTest.java66 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_valid()
84 Statement withOption = option.apply(testStatement, Description.EMPTY); in testParsing_invalid()
DStringOptionTest.java61 Statement withOption = option.apply(testStatement, Description.EMPTY); in testRetrieval()
/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()
DShuffleTestBase.java43 List<Integer> output = getShuffle().apply(getArguments(true, seedValue), input); in testShuffleSeedRespected()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/
DAssertions.java45 return (T t) -> apply(t).negate(); in negate()
71 public Result apply(T t) { in apply() method in Assertions.NamedAssertion
72 return this.assertion.apply(t); in apply()
100 public Result apply(T t) { in apply() method in Assertions.CompoundAssertion
102 this.assertions.stream().map(p -> p.apply(t)).collect(Collectors.toList()); in apply()
/platform_testing/libraries/device-collectors/src/main/java/android/device/loggers/
DTestLogData.java56 public Statement apply(Statement base, Description description) { in apply() method in TestLogData
58 return super.apply(base, description); in apply()
/platform_testing/libraries/health/runners/microbenchmark/src/android/platform/test/microbenchmark/
DMicrobenchmark.java94 methodIterator.apply( in methodInvoker()
107 start = getTracePointRule().apply(start, describeChild(method)); in methodInvoker()
112 start = tightMethodRule.apply(start, describeChild(method)); in methodInvoker()
127 return new Iterate<FrameworkMethod>().apply(mArguments, super.getChildren()); in getChildren()

12