/tools/tradefederation/core/prod-tests/src/com/android/graphics/tests/ |
D | FlatlandTestFuncTest.java | 51 String t = ft.mResultMap.get("16:10 Single Static Window 1280 x 800"); in testPraseResults() local 52 Assert.assertTrue(t.equals("0")); in testPraseResults() 54 t = ft.mResultMap.get("16:10 Single Static Window 1920 x 1200"); in testPraseResults() 55 Assert.assertTrue(t.equals("3.136")); in testPraseResults() 57 t = ft.mResultMap.get("16:10 App -> Home Transition 1280 x 800"); in testPraseResults() 58 Assert.assertTrue(t.equals("-1")); in testPraseResults() 60 t = ft.mResultMap.get("16:10 SurfaceView -> Home Transition 1280 x 800"); in testPraseResults() 61 Assert.assertTrue(t.equals("1000")); in testPraseResults()
|
/tools/tradefederation/core/src/com/android/tradefed/log/ |
D | LogUtil.java | 155 public static void w(Throwable t) { in w() argument 157 Log.w(getClassName(2), getStackTraceString(t)); in w() 199 public static void e(Throwable t) { in e() argument 201 Log.e(getClassName(2), t); in e() 243 public static void wtf(Throwable t) { in wtf() argument 244 wtf(t.getMessage(), t); in wtf() local 266 public static void wtf(String message, Throwable t) { in wtf() argument 274 String stackTrace = getStackTraceString(t); in wtf() 281 wtfHandler.onTerribleFailure(message, t); in wtf() 314 private static String getStackTraceString(Throwable t) { in getStackTraceString() argument [all …]
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | CameraStressTest.java | 135 TestInfo t = new TestInfo(); in testInfoSetup() local 139 t.mTestName = "testBackImageCapture"; in testInfoSetup() 140 t.mClassName = "com.android.camera.stress.ImageCapture"; in testInfoSetup() 141 t.mTestMetricsName = "GCamApplicationStress"; in testInfoSetup() 142 t.mInstrumentationArgs.put("image_iterations", Integer.toString(100)); in testInfoSetup() 143 t.mPatternMap = patMap; in testInfoSetup() 144 mTestCases.add(t); in testInfoSetup() 148 t.mTestName = "imagecap"; in testInfoSetup() 149 t.mClassName = "com.android.camera.stress.ImageCapture"; in testInfoSetup() 150 t.mTestMetricsName = "CameraApplicationStress"; in testInfoSetup() [all …]
|
D | CameraLatencyTest.java | 105 TestInfo t = new TestInfo(); in testInfoSetup() local 108 t.mTestName = "testLaunchCamera"; in testInfoSetup() 109 t.mClassName = "com.android.camera.stress.CameraStartUp"; in testInfoSetup() 110 t.mTestMetricsName = "GCameraStartup"; in testInfoSetup() 111 RegexTrie<String> map = t.mPatternMap; in testInfoSetup() 112 map = t.mPatternMap; in testInfoSetup() 115 mTestCases.add(t); in testInfoSetup() 117 t.mTestName = "startup"; in testInfoSetup() 118 t.mClassName = "com.android.camera.stress.CameraStartUp"; in testInfoSetup() 119 t.mTestMetricsName = "CameraVideoRecorderStartup"; in testInfoSetup() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | FakeTestTest.java | 66 final Map<String, String> t = new HashMap<String, String>(); in testDecodeRle() local 67 t.put("PFE", "PFE"); in testDecodeRle() 68 t.put("P1F1E1", "PFE"); in testDecodeRle() 69 t.put("P2F2E2", "PPFFEE"); in testDecodeRle() 70 t.put("P3F2E1", "PPPFFE"); in testDecodeRle() 71 t.put("", ""); in testDecodeRle() 72 for (Map.Entry<String, String> testcase : t.entrySet()) { in testDecodeRle() 92 final Map<String, String> t = new HashMap<String, String>(); in testDecode() local 94 t.put("PFE", "PFE"); in testDecode() 95 t.put("P1F1E1", "PFE"); in testDecode() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | DeviceRuntimeException.java | 41 public DeviceRuntimeException(Throwable t) { in DeviceRuntimeException() argument 42 super(t); in DeviceRuntimeException() 51 public DeviceRuntimeException(String msg, Throwable t) { in DeviceRuntimeException() argument 52 super(msg, t); in DeviceRuntimeException()
|
/tools/tradefederation/core/prod-tests/src/com/android/wireless/tests/ |
D | WifiStressTest.java | 146 TestInfo t = new TestInfo(); in setupTests() local 147 t.mTestName = "WifiScanning"; in setupTests() 148 t.mTestClass = "com.android.connectivitymanagertest.stress.WifiStressTest"; in setupTests() 149 t.mTestMethod = "testWifiScanning"; in setupTests() 150 t.mTestMetricsName = "wifi_scan_performance"; in setupTests() 151 t.mTestTimer = SCAN_TEST_TIMER; in setupTests() 152 t.mPatternMap = new RegexTrie<>(); in setupTests() 153 t.mPatternMap.put("avg_scan_time", "^average scanning time is (\\d+)"); in setupTests() 154 t.mPatternMap.put("scan_quality","ssid appear (\\d+) out of (\\d+) scan iterations"); in setupTests() 156 mTestList.add(t); in setupTests() [all …]
|
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/ |
D | RemoteException.java | 23 public RemoteException(Throwable t) { in RemoteException() argument 24 this(t.getMessage(), t); in RemoteException()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | DeviceConcurrentUtil.java | 63 Throwable t = e.getCause(); in joinFuture() 64 if (t instanceof DeviceNotAvailableException) { in joinFuture() 66 throw (DeviceNotAvailableException)t; in joinFuture() 68 CLog.e("%s while executing %s", t.getClass().getSimpleName(), taskDesc); in joinFuture() 69 CLog.e(t); in joinFuture()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/log/ |
D | LogUtilFuncTest.java | 140 Throwable t = new Throwable(); in testCLog_findCallerClassName_callerDeeperInStackTrace() local 144 Arrays.asList(t.getStackTrace())); in testCLog_findCallerClassName_callerDeeperInStackTrace() 149 t.setStackTrace(list.toArray(new StackTraceElement[list.size()])); in testCLog_findCallerClassName_callerDeeperInStackTrace() 151 String klass = CLog.findCallerClassName(t); in testCLog_findCallerClassName_callerDeeperInStackTrace() 159 Throwable t = new Throwable(); in testCLog_findCallerClassName_emptyStackTrace() local 162 t.setStackTrace(emptyStackTrace); in testCLog_findCallerClassName_emptyStackTrace() 164 String klass = CLog.findCallerClassName(t); in testCLog_findCallerClassName_emptyStackTrace()
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | BaseDeviceMetricCollector.java | 149 } catch (Throwable t) { in testRunStarted() 151 CLog.e(t); in testRunStarted() 171 } catch (Throwable t) { in testRunEnded() 173 CLog.e(t); in testRunEnded() 191 } catch (Throwable t) { in testStarted() 193 CLog.e(t); in testStarted() 216 } catch (Throwable t) { in testEnded() 218 CLog.e(t); in testEnded()
|
/tools/acloud/ |
D | run_tests.sh | 10 for t in $tests; do 11 PYTHONPATH=$ANDROID_BUILD_TOP/tools python $t;
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | InvocationStatus.java | 27 public void setThrowable(Throwable t) { in setThrowable() argument 28 mThrowable = t; in setThrowable()
|
D | JUnitToInvocationResultForwarder.java | 58 public void addError(Test test, Throwable t) { in addError() argument 60 listener.testFailed(getTestId(test), getStackTrace(t)); in addError() 68 public void addFailure(Test test, AssertionFailedError t) { in addFailure() argument 70 listener.testFailed(getTestId(test), getStackTrace(t)); in addFailure()
|
D | JUnit4ResultForwarder.java | 128 Throwable t = mTestCaseFailures.get(0); in handleFailures() local 129 if (t instanceof AssumptionViolatedException) { in handleFailures() 130 mListener.testAssumptionFailure(testid, StreamUtil.getStackTrace(t)); in handleFailures() 132 mListener.testFailed(testid, StreamUtil.getStackTrace(t)); in handleFailures()
|
/tools/tradefederation/core/src/com/android/tradefed/result/suite/ |
D | SuiteResultReporter.java | 108 for (TestRunResult t : results) { in extractModuleCheckers() 109 if (t.getName().startsWith(ITestSuite.MODULE_CHECKER_POST) in extractModuleCheckers() 110 || t.getName().startsWith(ITestSuite.MODULE_CHECKER_PRE)) { in extractModuleCheckers() 111 moduleCheckers.add(t); in extractModuleCheckers() 231 for (TestRunResult t : results) { in printTopSlowModules() 232 if (t.getElapsedTime() < 5000) { in printTopSlowModules() 233 moduleTime.remove(t); in printTopSlowModules() 295 for (TestRunResult t : moduleCheckerResults) { in printModuleCheckersMetric() 299 t.getName(), TimeUtil.formatElapsedTime(t.getElapsedTime()))); in printModuleCheckersMetric() 300 totalTime += t.getElapsedTime(); in printModuleCheckersMetric()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | InstalledInstrumentationsTest.java | 283 InstrumentationTest t = createInstrumentationTest(); in buildTests() local 287 OptionCopier.copyOptions(InstalledInstrumentationsTest.this, t); in buildTests() 292 t.setPackageName(target.packageName); in buildTests() 293 t.setRunnerName(target.runnerName); in buildTests() 294 t.setCoverageTarget(target.targetName); in buildTests() 296 t.addInstrumentationArg("shardIndex", Integer.toString(mShardIndex)); in buildTests() 297 t.addInstrumentationArg("numShards", Integer.toString(mTotalShards)); in buildTests() 299 mTests.add(t); in buildTests()
|
/tools/test/connectivity/acts/framework/acts/test_utils/bt/ |
D | PowerBaseTest.py | 300 for ind, t in enumerate(self.timestamps): 301 if t == t0: 303 self.timestamps[ind] = t + dt * index 305 t0 = t 352 for t, d in zip(self.timestamps, self.data_points): 353 relative_timepoint = t - base_time 437 for t, d in zip(self.timestamps, self.data_points): 439 round((t - start_time), 1), round(d, self.ACCURACY))) 527 for t, d in zip(self.timestamps, self.data_points): 530 if t < self.start_times[0]: [all …]
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/utils/ |
D | CachedSupplier.java | 105 public synchronized void precomputed(T t) { in precomputed() argument 106 cached = t; in precomputed()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | ProguardWriter.kt | 129 private fun getCleanTypeName(t: TypeItem?): String { in getCleanTypeName() 130 t ?: return "" in getCleanTypeName() 131 val cls = t.asClass() ?: return t.toSimpleType() in getCleanTypeName()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | RunUtilFuncTest.java | 203 for (Thread t : list) { in testRunTimedCmd_timeout() 205 String.format("We found a thread: %s", t.getName()), in testRunTimedCmd_timeout() 206 t.getName().contains(RunUtil.RUNNABLE_NOTIFIER_NAME)); in testRunTimedCmd_timeout() 208 String.format("We found a thread: %s", t.getName()), in testRunTimedCmd_timeout() 209 t.getName().contains(RunUtil.INHERITIO_PREFIX)); in testRunTimedCmd_timeout()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/sl4a/ |
D | Sl4aEventDispatcherTest.java | 161 public boolean test(EventSl4aObject t) { in testWaitForEvent() 162 return t.getData().contains("OFF"); in testWaitForEvent() 186 public boolean test(EventSl4aObject t) { in testWaitForEvent_notMatching() 187 return t.getData().contains("ON"); in testWaitForEvent_notMatching()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zfile/ |
D | ApkZFileCreator.java | 142 } catch (Throwable t) { in writeZip() 143 throw closer.rethrow(t); in writeZip() 161 } catch (Throwable t) { in writeFile() 162 throw closer.rethrow(t); in writeFile()
|
/tools/test/connectivity/acts/tests/google/bt/ |
D | BtMetricsTest.py | 101 t = pair_event.event_time_millis 102 asserts.assert_true(start_time <= t <= end_time, 104 (t, start_time, end_time))
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/ |
D | VerifyTest.java | 54 } catch (Throwable t) { in extractTestCmdFile() 57 throw t; in extractTestCmdFile()
|