/platform_testing/tests/automotive/snippets/phone/src/com/google/android/mobly/snippet/bundled/ |
D | DialerSnippet.java | 38 @Rpc(description = "Open Phone Application.") 44 @Rpc(description = "Open Dial Pad.") 49 @Rpc(description = "Open Dial Pad and dial in a number using keypad.") 54 @Rpc(description = "Make a call.") 59 @Rpc(description = "End the call.") 64 @Rpc(description = "Press the hardkey for ending the call.") 69 @Rpc(description = "Open Call History.") 75 @Rpc(description = "Open Dialer Settings from the Dialer app.") 80 @Rpc(description = "Call Contact From Contact List.") 85 @Rpc(description = "Return whether the \"Connected Phone\" field holds the given name.") [all …]
|
D | MediaPlayerSnippet.java | 30 @Rpc(description = "Play Media") 35 @Rpc(description = "Pause Media") 40 @Rpc(description = "Click on next track") 45 @Rpc(description = "Click on previous track") 50 @Rpc(description = "Get Media song name") 55 @Rpc(description = "Minimize now playing") 60 @Rpc(description = "Maximize now playing") 65 @Rpc(description = "Is song playing") 70 @Rpc(description = "Open Media app menu items") 75 @Rpc(description = "Open Media app") [all …]
|
D | StatusBarSnippet.java | 34 @Rpc(description = "Is Bluetooth Button Enabled") 39 @Rpc(description = "Is Bluetooth Palette Phone Button Enabled") 44 @Rpc(description = "Is Bluetooth Palette PMedia Button Enabled") 50 @Rpc(description = "Click on Bluetooth Palette Media Button") 55 @Rpc(description = "is Mobile Connected") 60 @Rpc(description = "is Mobile Disconnected") 65 @Rpc(description = "Open Bluetooth Palette") 70 @Rpc(description = "Click Bluetooth Button on the status bar") 75 @Rpc(description = "is Bluetooth Connected") 80 @Rpc(description = "Press the Home icon on the status bar") [all …]
|
D | SettingsSnippet.java | 43 @Rpc(description = "Return whether the bluetooth preference button is checked") 48 @Rpc(description = "Return whether the media preference button is checked") 53 @Rpc(description = "Return whether the media preference button is enabled") 58 @Rpc(description = "Return whether the phone preference button is checked.") 63 @Rpc(description = "Return whether the phone preference button is enabled") 69 description = 76 @Rpc(description = "Open system settings.") 81 @Rpc(description = "Open the bluetooth settings (from home screen)") 87 @Rpc(description = "Press the phone toggle on a entry under 'Paired Devices'") 92 @Rpc(description = "Press the bluetooth toggle on a entry under 'Paired Devices'") [all …]
|
D | CarSmsMessengerSnippet.java | 35 @Rpc(description = "Open SMS Application.") 40 @Rpc(description = "Bluetooth SMS Error") 45 @Rpc(description = "Checks Unread Sms Badge") 51 @Rpc(description = "Checks Sms Preview Text") 56 @Rpc(description = "Checks Sms Preview TimeStamp") 61 @Rpc(description = "Checks Sms No Messages") 67 @Rpc(description = "Clicks on tap to read aloud text to tead out the message") 73 @Rpc(description = "Checks if assistant sms plate is displayed")
|
/platform_testing/libraries/flicker/src/android/tools/flicker/rules/ |
D | FlickerServiceRule.kt | 82 public override fun starting(description: Description) { in starting() 83 if (shouldRun(description)) { in starting() 84 handleStarting(description) in starting() 89 public override fun succeeded(description: Description) { in succeeded() 90 if (shouldRun(description)) { in succeeded() 91 handleSucceeded(description) in succeeded() 96 public override fun failed(e: Throwable?, description: Description) { in failed() 97 if (shouldRun(description)) { in failed() 98 handleFailed(e, description) in failed() 103 public override fun skipped(e: AssumptionViolatedException, description: Description) { in skipped() [all …]
|
D | ArtifactSaverRule.kt | 28 override fun failed(e: Throwable, description: Description?) { in failed() 35 val fileName = getClassAndMethodName(description) + "lastWmTraceData.winscope" in failed() 41 val fileName = getClassAndMethodName(description) + "lastLayersTraceData.perfetto" in failed() 49 ArtifactSaver.onError(description, e) in failed() 54 private fun getClassAndMethodName(description: Description?): String { in getClassAndMethodName() 55 var suffix = description?.methodName in getClassAndMethodName() 60 val testClass = description?.testClass in getClassAndMethodName()
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | HeapDumpListener.java | 113 public void testStart(Function<String, Boolean> filter, Description description) { in testStart() argument 114 updateIterationCount(description); in testStart() 116 mHeapHelper.startCollecting(getHeapDumpFileId(description)); in testStart() 118 .contains(mTestIterationCount.get(getTestFileName(description)))) { in testStart() 119 mHeapHelper.startCollecting(getHeapDumpFileId(description)); in testStart() 124 public final void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument 127 super.onTestEnd(testData, description); in onTestEnd() 129 .contains(mTestIterationCount.get(getTestFileName(description)))) { in onTestEnd() 130 super.onTestEnd(testData, description); in onTestEnd() 138 private void updateIterationCount(Description description) { in updateIterationCount() argument [all …]
|
D | PerfettoListener.java | 60 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument 61 mTracingStrategy.testRunStart(runData, description); in onTestRunStart() 65 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument 66 mTracingStrategy.testStart(testData, description); in onTestStart() 70 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument 71 mTracingStrategy.testFail(testData, description, failure); in onTestFail() 75 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument 76 mTracingStrategy.testEnd(testData, description); in onTestEnd() 107 String getTestFileName(Description description) { in getTestFileName() argument 108 return PerfettoTracingStrategy.getTestFileName(description); in getTestFileName()
|
D | BaseCollectionListener.java | 65 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument 68 Function<String, Boolean> filter = getFilter(description); in onTestRunStart() 69 testStart(filter, description); in onTestRunStart() 82 protected Function<String, Boolean> getFilter(Description description) { in getFilter() argument 87 public final void onTestStart(DataRecord testData, Description description) { in onTestStart() argument 90 Function<String, Boolean> filter = getFilter(description); in onTestStart() 91 testStart(filter, description); in onTestStart() 96 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument 101 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument 130 public void testStart(Function<String, Boolean> filter, Description description) { in testStart() argument
|
D | PerfettoTracingPerTestStrategy.java | 86 void testStart(DataRecord testData, Description description) { in testStart() argument 87 super.testStart(testData, description); in testStart() 91 getTestFileName(description), in testStart() 101 void testEnd(DataRecord testData, Description description) { in testEnd() argument 120 Path path = getOutputPathModeTest(description); in testEnd() 128 private Path getOutputPathModeTest(Description description) { in getOutputPathModeTest() argument 131 getTestFileName(description), in getOutputPathModeTest() 136 getTestFileName(description), in getOutputPathModeTest() 137 mTestIdInvocationCount.get(getTestFileName(description)))); in getOutputPathModeTest()
|
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ |
D | StubTestMetricListener.java | 28 public void onTestRunStart(DataRecord runData, Description description) { in onTestRunStart() argument 29 runData.addStringMetric("run_start", "run_Start" + description.getClassName()); in onTestRunStart() 38 public void onTestStart(DataRecord testData, Description description) { in onTestStart() argument 39 testData.addStringMetric("test_start", "test_start" + description.getMethodName()); in onTestStart() 43 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument 44 testData.addStringMetric("test_fail", "test_fail" + description.getMethodName()); in onTestFail() 48 public void onTestEnd(DataRecord testData, Description description) { in onTestEnd() argument 49 testData.addStringMetric("test_end", "test_end" + description.getMethodName()); in onTestEnd()
|
/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | ArtifactSaver.java | 55 public static File artifactFile(Description description, String prefix, String ext) { in artifactFile() argument 57 "TestScreenshot-" + prefix + "-" + getClassAndMethodName(description) + "." + ext); in artifactFile() 60 private static String getClassAndMethodName(Description description) { in getClassAndMethodName() argument 61 String suffix = description.getMethodName(); in getClassAndMethodName() 66 Class<?> testClass = description.getTestClass(); in getClassAndMethodName() 73 public static void onError(Description description, Throwable e) { in onError() argument 76 final File hierarchy = artifactFile(description, "Hierarchy", "zip"); in onError() 78 final File screenshot = takeDebugScreenshot(description, device, "OnFailure"); in onError() 82 device.dumpWindowHierarchy(artifactFile(description, "AccessibilityHierarchy", "uix")); in onError() 103 + description.getMethodName() in onError() [all …]
|
D | TestWatcher.java | 46 public Statement apply(final Statement base, final Description description) { in apply() argument 52 starting(description); in apply() 56 succeeded(description); in apply() 60 skipped(e, description); in apply() 65 failed(e, description); in apply() 70 finished(description); in apply() 78 protected void starting(Description description) {} 81 protected void succeeded(Description description) {} 84 protected void skipped(AssumptionViolatedException e, Description description) {} 87 protected void failed(Throwable e, Description description) {} [all …]
|
D | DeviceTypeRule.kt | 63 override fun apply(base: Statement, description: Description): Statement { in apply() 64 val smallScreenAnnotation = description.getAnnotationClearly<SmallScreenOnly>() in apply() 67 description, in apply() 74 if (description.getAnnotationClearly<LargeScreenOnly>() != null && !isLargeScreen) { in apply() 76 description, in apply() 81 if (description.getAnnotationClearly<FoldableOnly>() != null && !isFoldable) { in apply() 83 description, in apply() 88 if (description.getAnnotationClearly<TabletOnly>() != null && !isTablet) { in apply() 90 description, in apply() 117 private fun wrongDeviceTypeStatement(description: Description, message: String): Statement { in wrongDeviceTypeStatement() [all …]
|
D | StopwatchRule.java | 59 private void reportMetric(long nanos, Description description) { in reportMetric() argument 60 mResult.putLong(getMetricKey(description), NANOSECONDS.toMillis(nanos)); in reportMetric() 66 protected void succeeded(long nanos, Description description) { in succeeded() argument 67 reportMetric(nanos, description); in succeeded() 75 private String getMetricKey(Description description) { in getMetricKey() argument 78 METRIC_FORMAT, description.getClassName(), description.getMethodName()); in getMetricKey()
|
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/ |
D | DescriptionProvider.java | 24 private volatile Description description; field in DescriptionProvider 27 protected void starting(Description description) { in starting() argument 28 this.description = description; in starting() 32 return description; in getDescription()
|
/platform_testing/libraries/sts-common-util/util/src/com/android/sts/common/util/ |
D | DescriptionProvider.java | 24 private volatile Description description; field in DescriptionProvider 27 protected void starting(Description description) { in starting() argument 28 this.description = description; in starting() 32 return description; in getDescription()
|
/platform_testing/libraries/flicker/utils/src/android/tools/ |
D | ScenarioBuilder.kt | 26 private var description = "" variable in android.tools.ScenarioBuilder 40 fun withDescriptionOverride(description: String) = apply { this.description = description } in <lambda>() 44 val description = in build() constant 45 description.ifEmpty { in build() 47 append(startRotation.description) in build() 60 description in build() 71 description = in createEmptyScenario() 84 append(startOrientation.description) in createEmptyScenario()
|
/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/ |
D | WaitUtils.kt | 63 description: String? = null, in ensureThat() 72 ?: { "Error ensuring that \"$description\" within ${timeout.toMillis()}ms" } in ensureThat() 73 waitToBecomeTrue(description, timeout, condition).run { in ensureThat() 104 description: String? = null, in waitToBecomeTrue() 109 if (description != null) { in waitToBecomeTrue() 110 "Ensuring $description" in waitToBecomeTrue() 150 description: String? = null, in waitForValueToSettle() 154 defaultWaitForSettleError(minimumSettleTime, description, timeout), in waitForValueToSettle() 158 description, in waitForValueToSettle() 190 description: String? = null, in waitForNullableValueToSettle() [all …]
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/loggers/ |
D | TestCaseLogger.java | 31 public void testStarted(Description description) throws Exception { in testStarted() argument 35 description.getClassName(), description.getMethodName()); in testStarted() 40 public void testFinished(Description description) throws Exception { in testFinished() argument 44 description.getClassName(), description.getMethodName()); in testFinished()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/ |
D | IFlickerServiceResultsCollector.kt | 26 fun testStarted(description: Description) 28 fun testSkipped(description: Description) 29 fun testFinished(description: Description) 30 fun resultsForTest(description: Description): Collection<AssertionResult> 31 fun detectedScenariosForTest(description: Description): Collection<ScenarioId>
|
/platform_testing/libraries/junitxml/src/com/android/junitxml/ |
D | XmlRunListener.java | 174 Description description = failure.getDescription(); in testFailure() local 175 testFinished(description); in testFailure() 179 mFailedTests.add(description); in testFailure() 182 mErrorTests.add(description); in testFailure() 211 public void testFinished(Description description) throws Exception { in testFinished() argument 212 if (!mTestStarts.containsKey(description)) { in testFinished() 213 testStarted(description); in testFinished() 217 if (!mFailedTests.contains(description) && !mErrorTests.contains(description) in testFinished() 218 && !mSkippedTests.contains(description) && !mIgnoredTests in testFinished() 219 .contains(description)) { in testFinished() [all …]
|
/platform_testing/libraries/flicker/src/android/tools/flicker/legacy/runner/ |
D | TraceMonitorRule.kt | 48 override fun apply(base: Statement?, description: Description?): Statement { in apply() 52 doStartMonitors(description) in apply() 59 runCatching { doStopMonitors(description) } in apply() 66 doStopMonitors(description) in apply() 72 private fun doStartMonitors(description: Description?) { in doStartMonitors() 74 Utils.notifyRunnerProgress(scenario, "Starting traces for $description") in doStartMonitors() 86 private fun doStopMonitors(description: Description?) { in doStopMonitors() 88 Utils.notifyRunnerProgress(scenario, "Stopping traces for $description") in doStopMonitors()
|
D | SetupTeardownRule.kt | 50 override fun apply(base: Statement?, description: Description?): Statement { in apply() 54 doRunTransitionSetup(description) in apply() 57 doRunTransitionTeardown(description) in apply() 63 private fun doRunTransitionSetup(description: Description?) { in doRunTransitionSetup() 65 Utils.notifyRunnerProgress(scenario, "Running transition setup for $description") in doRunTransitionSetup() 71 private fun doRunTransitionTeardown(description: Description?) { in doRunTransitionTeardown() 73 Utils.notifyRunnerProgress(scenario, "Running transition teardown for $description") in doRunTransitionTeardown()
|