/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/collectors/ |
D | DeviceCollectorsTest.java | 26 import com.android.tradefed.result.CollectingTestListener; 27 import com.android.tradefed.result.TestDescription; 28 import com.android.tradefed.result.TestResult; 29 import com.android.tradefed.result.TestRunResult; 90 TestRunResult result = results.iterator().next(); in testBaseListenerRuns() local 91 assertFalse(result.isRunFailure()); in testBaseListenerRuns() 92 assertFalse(result.hasFailedTests()); in testBaseListenerRuns() 94 assertTrue(result.getRunMetrics().containsKey("run_start")); in testBaseListenerRuns() 95 assertTrue(result.getRunMetrics().containsKey("run_end")); in testBaseListenerRuns() 97 for (TestResult res : result.getTestResults().values()) { in testBaseListenerRuns() [all …]
|
D | BatterystatsCollectorHostTest.java | 33 import com.android.tradefed.result.CollectingTestListener; 34 import com.android.tradefed.result.TestRunResult; 124 TestRunResult result = results.iterator().next(); in testBatteryStatsListener_perRun() local 125 assertFalse(result.isRunFailure()); in testBatteryStatsListener_perRun() 126 assertFalse(result.hasFailedTests()); in testBatteryStatsListener_perRun() 128 assertEquals(1, result.getRunMetrics().size()); in testBatteryStatsListener_perRun() 129 String metricFileKey = result.getRunMetrics().keySet().iterator().next(); in testBatteryStatsListener_perRun()
|
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/ |
D | WindowManagerTraceTest.java | 65 Result result = entry.isAboveAppWindowVisible("NavigationBar"); in canDetectAboveAppWindowVisibility() local 66 assertThat(result.passed()).isTrue(); in canDetectAboveAppWindowVisibility() 72 Result result = entry.isBelowAppWindowVisible("wallpaper"); in canDetectBelowAppWindowVisibility() local 73 assertThat(result.passed()).isTrue(); in canDetectBelowAppWindowVisibility() 79 Result result = entry.isAppWindowVisible("com.google.android.apps.nexuslauncher"); in canDetectAppWindowVisibility() local 80 assertThat(result.passed()).isTrue(); in canDetectAppWindowVisibility() 86 Result result = entry.isAboveAppWindowVisible("ImaginaryWindow"); in canFailWithReasonForVisibilityChecks_windowNotFound() local 87 assertThat(result.failed()).isTrue(); in canFailWithReasonForVisibilityChecks_windowNotFound() 88 assertThat(result.reason).contains("ImaginaryWindow cannot be found"); in canFailWithReasonForVisibilityChecks_windowNotFound() 94 Result result = entry.isAboveAppWindowVisible("AssistPreviewPanel"); in canFailWithReasonForVisibilityChecks_windowNotVisible() local [all …]
|
D | LayersTraceTest.java | 141 Assertions.Result result = entry.coversRegion(getDisplayBounds()); in canDetectUncoveredRegion() local 143 assertThat(result.failed()).isTrue(); in canDetectUncoveredRegion() 144 assertThat(result.reason).contains("Region to test: Rect(0, 0 - 1440, 2880)"); in canDetectUncoveredRegion() 145 assertThat(result.reason).contains("first empty point: 0, 99"); in canDetectUncoveredRegion() 146 assertThat(result.reason).contains("visible regions:"); in canDetectUncoveredRegion() 148 .that(result.reason) in canDetectUncoveredRegion() 159 Assertions.Result result = entry.hasVisibleRegion("ImaginaryLayer", expectedVisibleRegion); in canTestLayerVisibleRegion_layerDoesNotExist() local 161 assertThat(result.failed()).isTrue(); in canTestLayerVisibleRegion_layerDoesNotExist() 162 assertThat(result.reason).contains("Could not find ImaginaryLayer"); in canTestLayerVisibleRegion_layerDoesNotExist() 171 Assertions.Result result = in canTestLayerVisibleRegion_layerDoesNotHaveExpectedVisibleRegion() local [all …]
|
D | AssertionsTest.java | 48 Result result = new Result(true, 0, "TestAssert", reason); in resultCanBeNegated() local 49 Result negatedResult = result.negate(); in resultCanBeNegated()
|
/platform_testing/utils/esimutility/src/com/android/test/util/esimutility/ |
D | ESimUtilityInstrumentation.java | 59 Bundle result = new Bundle(); in updateWithException() local 60 result.putString("sim_utility_exception", e.getMessage()); in updateWithException() 67 result.putString("sim_utility_exception_stack_trace", builder.toString()); in updateWithException() 68 finish(Activity.RESULT_CANCELED, result); in updateWithException() 72 Bundle result = new Bundle(); in updateStart() local 73 result.putString("setting_state_to", getRawState()); in updateStart() 74 sendStatus(Activity.RESULT_OK, result); in updateStart()
|
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/ |
D | WmTraceSubject.java | 63 public static WmTraceSubject assertThat(@Nullable TransitionResult result) { in assertThat() argument 66 result.getWindowManagerTrace(), in assertThat() 67 result.getWindowManagerTracePath(), in assertThat() 68 result.getWindowManagerTraceChecksum()); in assertThat() 69 return assertWithMessage(result.toString()).about(FACTORY).that(entries); in assertThat() 190 Result result = entry.isAppWindowVisible(partialWindowTitle); in showsAppWindowOnTop() 191 if (result.passed()) { in showsAppWindowOnTop() 192 result = entry.isVisibleAppWindowOnTop(partialWindowTitle); in showsAppWindowOnTop() 194 return result; in showsAppWindowOnTop() 203 Result result = entry.isAppWindowVisible(partialWindowTitle).negate(); in hidesAppWindowOnTop() [all …]
|
D | AssertionsChecker.java | 144 Result result = currentAssertion.apply(entries.get(entryIndex)); in assertChanges() local 147 if (result.passed()) { in assertChanges() 159 failures.add(result); in assertChanges() 165 failures.add(result); in assertChanges() 195 Result result = in assertChanges() local 201 failures.add(result); in assertChanges() 210 Result result = assertion.apply(entry); in assertEntry() local 211 if (result.failed()) { in assertEntry() 212 failures.add(result); in assertEntry()
|
D | WindowManagerTrace.java | 173 Result result = isWindowVisible(windowTitle, windowTokenProtos); in isAboveAppWindowVisible() local 174 return new Result(result.success, getTimestamp(), "showsAboveAppWindow", result.reason); in isAboveAppWindowVisible() 184 Result result = isWindowVisible(windowTitle, windowTokenProtos); in isBelowAppWindowVisible() local 186 result.success, getTimestamp(), "isBelowAppWindowVisible", result.reason); in isBelowAppWindowVisible() 196 Result result = isWindowVisible(windowTitle, windowTokenProtos); in isImeWindowVisible() local 197 return new Result(result.success, getTimestamp(), "isImeWindowVisible", result.reason); in isImeWindowVisible()
|
D | LayersTraceSubject.java | 68 public static LayersTraceSubject assertThat(@Nullable TransitionResult result) { in assertThat() argument 76 return assertThat(result, orphanLayerCallback); in assertThat() 80 public static LayersTraceSubject assertThat(@Nullable TransitionResult result, in assertThat() argument 84 result.getLayersTrace(), in assertThat() 85 result.getLayersTracePath(), in assertThat() 86 result.getLayersTraceChecksum(), in assertThat() 88 return assertWithMessage(result.toString()).about(FACTORY).that(entries); in assertThat()
|
/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/ |
D | BinderCollectionHelperTest.java | 101 Map<String, Integer> result = new HashMap<>(); in testParser_zeroCount() local 102 mHelper.parseMetrics(getBufferedReader(), result); in testParser_zeroCount() local 103 assertTrue(result.get("binder_count_" + process) == 0); in testParser_zeroCount() 110 Map<String, Integer> result = new HashMap<>(); in testParser_multiCount() local 111 mHelper.parseMetrics(getBufferedReader(), result); in testParser_multiCount() local 112 assertTrue(result.get("binder_count_" + process) == 20); in testParser_multiCount()
|
/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/loggers/ |
D | DeviceFileLoggerHostTest.java | 27 import com.android.tradefed.result.CollectingTestListener; 28 import com.android.tradefed.result.TestResult; 29 import com.android.tradefed.result.TestRunResult; 79 TestRunResult result = results.iterator().next(); in testFileIsLogged() local 80 assertFalse(result.isRunFailure()); in testFileIsLogged() 81 assertFalse(result.hasFailedTests()); in testFileIsLogged() 83 for (TestResult res : result.getTestResults().values()) { in testFileIsLogged()
|
/platform_testing/utils/wifistrengthscanner/src/com/android/test/util/wifistrengthscanner/ |
D | WifiStrengthScannerInstrumentation.java | 90 ScanResult result = getScanResult(wifiManager, bssid); in onStart() local 91 if (result != null) { in onStart() 92 bundle.putInt("scan_result_wifi_level", wifiManager.calculateSignalLevel(result in onStart() 94 bundle.putInt("scan_result_rssi", result.level); in onStart() 95 bundle.putInt("scan_result_frequency", result.frequency); in onStart() 127 Bundle result = new Bundle(); in sendFailureStatus() local 128 result.putString("wifi_strength_scanner_failure", update); in sendFailureStatus() 129 sendStatus(Activity.RESULT_CANCELED, result); in sendFailureStatus() 170 StringBuilder result = new StringBuilder(); in executeCommand() local 177 result.append(new String(buf, 0, bytesRead)); in executeCommand() [all …]
|
/platform_testing/libraries/health/runners/microbenchmark/tests/src/android/platform/test/microbenchmark/ |
D | MicrobenchmarkTest.java | 68 Result result = new JUnitCore().run(loggingRunner); in testFeatureExecutionOrder() local 69 assertThat(result.wasSuccessful()).isTrue(); in testFeatureExecutionOrder() 96 Result result = new JUnitCore().run(loggingRunner); in testMultipleIterationsWithRename() local 97 assertThat(result.wasSuccessful()).isTrue(); in testMultipleIterationsWithRename() 133 Result result = new JUnitCore().run(loggingRunner); in testMultipleIterationsWithDifferentSuffix() local 134 assertThat(result.wasSuccessful()).isTrue(); in testMultipleIterationsWithDifferentSuffix() 168 Result result = new JUnitCore().run(loggingRunner); in testMultipleIterationsWithoutRename() local 169 assertThat(result.wasSuccessful()).isTrue(); in testMultipleIterationsWithoutRename() 198 Result result = new JUnitCore().run(loggingRunner); in testMultipleMethodIterations() local 199 assertThat(result.wasSuccessful()).isTrue(); in testMultipleMethodIterations()
|
/platform_testing/utils/dpad/src/android/platform/test/utils/ |
D | DPadUtil.java | 68 boolean result = false; in pressDPad() 72 result = mDevice.pressDPadLeft(); in pressDPad() 75 result = mDevice.pressDPadRight(); in pressDPad() 78 result = mDevice.pressDPadUp(); in pressDPad() 81 result = mDevice.pressDPadDown(); in pressDPad() 86 return result; in pressDPad()
|
/platform_testing/libraries/timeresult-helper/src/android/support/test/timeresulthelper/ |
D | TimeResultLogger.java | 51 public static void writeResultToFile(String testCase, File destFile, Bundle result) in writeResultToFile() argument 55 for (String key : result.keySet()) { in writeResultToFile() 57 result.get(key))); in writeResultToFile()
|
/platform_testing/tests/functional/calculator/src/com/android/calculator/functional/ |
D | CalculatorHelper.java | 89 public String getResultText(String result) { in getResultText() argument 91 Until.findObject(By.res(PACKAGE_NAME, result)), in getResultText() 97 public void clearResults(String result) { in clearResults() argument 99 Until.findObject(By.res(PACKAGE_NAME, result)), in clearResults() 105 public void scrollResults(String result) { in scrollResults() argument 107 Until.findObject(By.res(PACKAGE_NAME, result)), in scrollResults()
|
/platform_testing/libraries/system-helpers/device-helper/src/android/system/helpers/ |
D | DeviceHelper.java | 76 String result = Build.MODEL; in isNexusExperienceDevice() local 77 if (result.trim().equalsIgnoreCase(PIXEL) || result.trim().equalsIgnoreCase(PIXEL_XL)) { in isNexusExperienceDevice()
|
/platform_testing/tests/perf/PowerPerfTest/src/com/android/powerperf/tests/ |
D | PowerPerfTest.java | 49 String result = getUiDevice().executeShellCommand(mScriptFilePath); in testPowerPerf() local 50 Log.i(TAG, result); in testPowerPerf()
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | ScheduledRunMetricListener.java | 72 public final void onTestRunEnd(DataRecord runData, Result result) { in onTestRunEnd() argument 77 onEnd(runData, result); in onTestRunEnd() 97 void onEnd(DataRecord runData, Result result) { in onEnd() argument
|
D | IncidentReportListener.java | 58 File result = createAndEmptyDirectory(DIRECTORY_NAME); in onTestRunStart() local 59 if (result == null) { in onTestRunStart() 71 public void onTestRunEnd(DataRecord runData, Result result) { in onTestRunEnd() argument
|
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/ |
D | BinderCollectionHelper.java | 84 Map<String, Integer> result = new HashMap<>(); in getMetrics() local 102 parseMetrics(reader, result); in getMetrics() 110 return result; in getMetrics() 157 void parseMetrics(BufferedReader reader, Map<String, Integer> result) throws IOException { in parseMetrics() argument 172 result.put("binder_count_" + currentProcess, totalCount); in parseMetrics()
|
D | JankCollectionHelper.java | 203 Map<String, Double> result = new HashMap<>(); in getMetrics() local 205 result.putAll(getGfxInfoMetrics()); in getMetrics() 211 result.putAll(getGfxInfoMetrics(pkg)); in getMetrics() 229 return result; in getMetrics() 288 Map<String, Double> result = new HashMap<>(); in getGfxInfoMetrics() local 291 result.putAll(parseGfxInfoMetrics(pkgMetricSections[i])); in getGfxInfoMetrics() 293 return result; in getGfxInfoMetrics()
|
/platform_testing/utils/permissions/src/com/android/permissionutils/ |
D | GrantPermissionUtil.java | 69 List<String> result = new ArrayList<>(); in getMissingPermissions() local 87 result.add(permission); in getMissingPermissions() 90 return result; in getMissingPermissions()
|
/platform_testing/libraries/collectors-helper/system/src/com/android/helpers/ |
D | ProcLoadHelper.java | 78 Map<String, Double> result = new HashMap<>(); in getMetrics() local 81 result.put(LAST_MINUTE_LOAD_METRIC_KEY, mRecentLoad); in getMetrics() 82 return result; in getMetrics()
|