Home
last modified time | relevance | path

Searched refs:method (Results 1 – 25 of 34) sorted by relevance

12

/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DBusinessLogicExecutor.java54 public boolean executeCondition(String method, String... args) { in executeCondition() argument
55 logDebug("Executing condition: %s", formatExecutionString(method, args)); in executeCondition()
57 return (Boolean) invokeMethod(method, args); in executeCondition()
61 "BusinessLogic: Failed to invoke condition method %s with args: %s", method, in executeCondition()
73 public void executeAction(String method, String... args) { in executeAction() argument
74 logDebug("Executing action: %s", formatExecutionString(method, args)); in executeAction()
76 invokeMethod(method, args); in executeAction()
80 "BusinessLogic: Failed to invoke action method %s with args: %s", method, in executeAction()
101 protected abstract String formatExecutionString(String method, String... args); in formatExecutionString() argument
133 protected Object invokeMethod(String method, String... args) in invokeMethod() argument
[all …]
DCrashUtils.java337 private final String method; field in CrashUtils.BacktraceFrameInfo
339 public BacktraceFrameInfo(String filename, String method) { in BacktraceFrameInfo() argument
341 this.method = method; in BacktraceFrameInfo()
349 return this.method; in getMethod()
567 String method = frame.optString(METHOD); in match() local
574 || (method != null && methodPattern.matcher(method).find())); in match()
/platform_testing/libraries/flicker/src/android/tools/flicker/junit/
DLegacyFlickerDecorator.kt35 override fun getChildDescription(method: FrameworkMethod): Description { in getChildDescription()
36 return inner?.getChildDescription(method) in getChildDescription()
44 override fun getMethodInvoker(method: FrameworkMethod, test: Any): Statement { in getMethodInvoker()
48 val description = getChildDescription(method) in getMethodInvoker()
52 inner?.getMethodInvoker(method, test)?.evaluate() in getMethodInvoker()
84 val method = methods.first() in doValidateInstanceMethods() constant
86 if (Modifier.isStatic(method.method.modifiers)) { in doValidateInstanceMethods()
89 if (!Modifier.isPublic(method.method.modifiers)) { in doValidateInstanceMethods()
92 if (method.returnType != FlickerBuilder::class.java) { in doValidateInstanceMethods()
100 if (method.method.parameterTypes.isNotEmpty()) { in doValidateInstanceMethods()
DFlickerServiceDecorator.kt60 override fun getChildDescription(method: FrameworkMethod): Description { in <lambda>()
61 return if (isMethodHandledByDecorator(method)) { in <lambda>()
62 Description.createTestDescription(testClass.javaClass, method.name, *method.annotations) in <lambda>()
64 inner?.getChildDescription(method) ?: error("No child descriptor found") in <lambda>()
79 for (method in innerMethods) { in <lambda>() constant
80 if (!innerMethodsResults.containsKey(method)) { in <lambda>()
100 method.invokeExplosively(test) in <lambda>()
113 innerMethodsResults[method] = methodResult in <lambda>()
123 flickerServiceMethodsFor[method] = in <lambda>()
124 computeFlickerServiceTests(reader, testClassName, method) in <lambda>()
[all …]
DFlickerServiceJUnit4ClassRunner.kt135 private fun isInjectedFaasTest(method: FrameworkMethod): Boolean { in <lambda>()
136 return method is FlickerServiceCachedTestCase in <lambda>()
160 override fun describeChild(method: FrameworkMethod): Description { in <lambda>()
161 return flickerDecorator.getChildDescription(method) in <lambda>()
174 override fun methodInvoker(method: FrameworkMethod, test: Any): Statement { in <lambda>()
175 return flickerDecorator.getMethodInvoker(method, test) in <lambda>()
181 override fun getChildDescription(method: FrameworkMethod): Description { in <lambda>()
182 return super.describeChild(method) in <lambda>()
197 override fun getMethodInvoker(method: FrameworkMethod, test: Any): Statement { in <lambda>()
198 return super.methodInvoker(method, test) in <lambda>()
[all …]
DIFlickerJUnitDecorator.kt24 fun getChildDescription(method: FrameworkMethod): Description
34 fun getMethodInvoker(method: FrameworkMethod, test: Any): Statement
36 fun shouldRunBeforeOn(method: FrameworkMethod): Boolean
37 fun shouldRunAfterOn(method: FrameworkMethod): Boolean
DLegacyFlickerServiceDecorator.kt64 override fun getChildDescription(method: FrameworkMethod): Description { in getChildDescription()
66 return if (isMethodHandledByDecorator(method)) { in getChildDescription()
70 *method.annotations in getChildDescription()
73 inner?.getChildDescription(method) ?: error("Descriptor not found") in getChildDescription()
91 override fun getMethodInvoker(method: FrameworkMethod, test: Any): Statement { in getMethodInvoker()
95 if (isMethodHandledByDecorator(method)) { in getMethodInvoker()
96 val description = getChildDescription(method) in getMethodInvoker()
97 (method as InjectedTestCase).execute(description) in getMethodInvoker()
99 inner?.getMethodInvoker(method, test)?.evaluate() in getMethodInvoker()
105 private fun isMethodHandledByDecorator(method: FrameworkMethod): Boolean { in isMethodHandledByDecorator()
[all …]
DAbstractFlickerRunnerDecorator.kt41 override fun shouldRunBeforeOn(method: FrameworkMethod): Boolean { in shouldRunBeforeOn()
42 return inner?.shouldRunBeforeOn(method) ?: true in shouldRunBeforeOn()
45 override fun shouldRunAfterOn(method: FrameworkMethod): Boolean { in shouldRunAfterOn()
46 return inner?.shouldRunAfterOn(method) ?: true in shouldRunAfterOn()
DAnonymousInjectedTestCase.kt23 method: Method,
27 ) : InjectedTestCase(method, name, injectedBy) {
DLegacyFlickerJUnit4ClassRunner.kt190 private fun isInjectedFaasTest(method: FrameworkMethod): Boolean { in <lambda>()
191 return method is FlickerServiceCachedTestCase in <lambda>()
213 override fun describeChild(method: FrameworkMethod): Description { in <lambda>()
215 flickerDecorator.getChildDescription(method) in <lambda>()
217 getChildDescription(method) in <lambda>()
231 override fun methodInvoker(method: FrameworkMethod, test: Any): Statement { in <lambda>()
232 return flickerDecorator.getMethodInvoker(method, test) in <lambda>()
258 override fun getChildDescription(method: FrameworkMethod): Description { in <lambda>()
259 return super.describeChild(method) in <lambda>()
262 override fun getMethodInvoker(method: FrameworkMethod, test: Any): Statement { in <lambda>()
[all …]
DInjectedTestCase.kt24 method: Method,
27 ) : FrameworkMethod(method) {
DFlickerServiceCachedTestCase.kt33 method: Method,
39 ) : InjectedTestCase(method, "FaaS_$assertion$paramString", injectedBy) {
/platform_testing/libraries/health/runners/microbenchmark/src/android/platform/test/microbenchmark/
DFunctional.java80 method -> { in artifactSaver()
81 if (mMethodsWithSavedArtifacts.contains(method)) return; in artifactSaver()
82 mMethodsWithSavedArtifacts.add(method); in artifactSaver()
83 ArtifactSaver.onError(describeChild(method), e); in artifactSaver()
121 protected Statement withBefores(FrameworkMethod method, Object target, Statement s) {
122 s = super.withBefores(method, target, s);
130 return withTrace("Befores", artifactSaver(statement, Stream.of(method)));
134 protected Statement withAfters(FrameworkMethod method, Object target, Statement s) {
140 final Statement statement = super.withAfters(method, target, s);
143 return withTrace("Afters", artifactSaver(statement, Stream.of(method)));
[all …]
DMicrobenchmark.java196 protected Statement methodInvoker(FrameworkMethod method, Object test) { in methodInvoker() argument
203 Arrays.asList(new Statement[] {super.methodInvoker(method, test)})); in methodInvoker()
208 for (Statement method : testMethodStatement) { in methodInvoker()
209 method.evaluate(); in methodInvoker()
214 start = getTracePointRule().apply(start, describeChild(method)); in methodInvoker()
219 start = tightMethodRule.apply(start, describeChild(method)); in methodInvoker()
293 protected Description describeChild(FrameworkMethod method) { in describeChild() argument
294 Description original = super.describeChild(method); in describeChild()
308 private Statement withRules(FrameworkMethod method, Object target, Statement statement) { in withRules() argument
318 result = each.apply(result, method, target); in withRules()
[all …]
/platform_testing/libraries/flicker/test/src/android/tools/flicker/junit/
DFlickerServiceDecoratorTest.kt53 val method = Mockito.mock(FrameworkMethod::class.java) in sendsInstrumentationUpdatesOWhenComputingTestMethods() constant
59 .thenReturn(listOf(method)) in sendsInstrumentationUpdatesOWhenComputingTestMethods()
64 Mockito.`when`(method.annotations).thenReturn(emptyArray()) in sendsInstrumentationUpdatesOWhenComputingTestMethods()
66 .thenReturn(listOf(method)) in sendsInstrumentationUpdatesOWhenComputingTestMethods()
116 val method = Mockito.mock(FrameworkMethod::class.java) in failsTestAndNotModuleOnFlickerServiceMethodComputeError() constant
123 .thenReturn(listOf(method)) in failsTestAndNotModuleOnFlickerServiceMethodComputeError()
128 Mockito.`when`(method.annotations).thenReturn(emptyArray()) in failsTestAndNotModuleOnFlickerServiceMethodComputeError()
130 .thenReturn(listOf(method)) in failsTestAndNotModuleOnFlickerServiceMethodComputeError()
154 val methodInvoker = decorator.getMethodInvoker(method, test) in failsTestAndNotModuleOnFlickerServiceMethodComputeError()
166 val method = Mockito.mock(FrameworkMethod::class.java) in handleDuplicateFlickerMethods() constant
[all …]
DLegacyFlickerDecoratorTest.kt79 val method = in <lambda>() constant
87 val description = decorator.getChildDescription(method) in <lambda>()
92 method, in <lambda>()
115 val method = in <lambda>() constant
119 .thenReturn(listOf(method)) in <lambda>()
126 method, in <lambda>()
/platform_testing/libraries/junit-rules/src/
DConditionalIgnoreRule.java29 public Statement apply(Statement base, FrameworkMethod method, Object target) { in apply() argument
30 if (method.getAnnotation(ConditionalIgnore.class) != null) { in apply()
31 ConditionalIgnore annotation = method.getAnnotation(ConditionalIgnore.class); in apply()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
DPerformanceRunner.java53 protected Statement methodInvoker(FrameworkMethod method, Object test) { in methodInvoker() argument
57 Configuration methodConfig = method.getAnnotation(Configuration.class); in methodInvoker()
64 return new TimedStatement(super.methodInvoker(method, test), warmUpIterations, runs, in methodInvoker()
/platform_testing/libraries/runner/src/main/java/platform/test/runner/parameterized/
DAndroidParameterizedRunner.java43 protected String testName(final FrameworkMethod method) { in testName() argument
44 return method.getName() + getName(); in testName()
DRobolectricParameterizedRunner.java52 protected String testName(final FrameworkMethod method) { in testName() argument
53 return method.getName() + getName(); in testName()
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/
DLongevityClassRunner.java154 protected Statement withBefores(FrameworkMethod method, Object target, Statement statement) { in withBefores() argument
173 protected Statement withAfters(FrameworkMethod method, Object target, Statement statement) { in withAfters() argument
303 for (FrameworkMethod method : methods) { in invokeAndCollectErrors()
305 method.invokeExplosively(target); in invokeAndCollectErrors()
324 protected Description describeChild(FrameworkMethod method) { in describeChild() argument
325 return addIterationIfEnabled(super.describeChild(method)); in describeChild()
DScheduledScenarioRunner.java110 protected Statement withAfters(FrameworkMethod method, Object target, Statement statement) { in withAfters() argument
141 return super.withAfters(method, target, withIdle); in withAfters()
145 protected void runChild(final FrameworkMethod method, RunNotifier notifier) { in runChild() argument
147 super.runChild(method, notifier); in runChild()
/platform_testing/libraries/junitxml/src/com/android/junitxml/
DJUnitXmlRunner.java112 for (Method method : declaredMethods) { in calcTestCount()
113 if (method.isAnnotationPresent(Test.class)) { in calcTestCount()
/platform_testing/libraries/flag-helpers/junit/src/android/platform/test/flag/junit/
DDeviceFlagsValueProvider.java92 Method method = flagsClass.getMethod(methodName); in getBoolean() local
93 Object result = method.invoke(null); in getBoolean()
/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/
DUiBenchLeanbackJankTests.java99 Method method = getClass().getMethod(getName()); in beforeTest() local
100 Option option = method.getAnnotation(Option.class); in beforeTest()

12