/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/contrib/src/com/android/performance/tests/ |
D | FioBenchmarkTest.java | 610 TestInfo t = new TestInfo(); in addSimpleTest() local 612 t.mTestName = String.format("SimpleBenchmark-int-%s-%s", ioengine, rw); in addSimpleTest() 613 t.mKey = "fio_simple_int_benchmark"; in addSimpleTest() 617 t.mTestName = String.format("SimpleBenchmark-ext-%s-%s", ioengine, rw); in addSimpleTest() 618 t.mKey = "fio_simple_ext_benchmark"; in addSimpleTest() 626 t.mTestFiles.add(f); in addSimpleTest() 636 t.mJobs.add(j); in addSimpleTest() 651 t.mPerfMetrics.add(m); in addSimpleTest() 653 mTestCases.add(t); in addSimpleTest() 676 TestInfo t = new TestInfo(); in addStorageTest() local [all …]
|
/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/wireless/tests/ |
D | WifiStressTest.java | 152 TestInfo t = new TestInfo(); in setupTests() local 153 t.mTestName = "WifiScanning"; in setupTests() 154 t.mTestClass = "com.android.connectivitymanagertest.stress.WifiStressTest"; in setupTests() 155 t.mTestMethod = "testWifiScanning"; in setupTests() 156 t.mTestMetricsName = "wifi_scan_performance"; in setupTests() 157 t.mTestTimer = SCAN_TEST_TIMER; in setupTests() 158 t.mPatternMap = new RegexTrie<>(); in setupTests() 159 t.mPatternMap.put("avg_scan_time", "^average scanning time is (\\d+)"); in setupTests() 160 t.mPatternMap.put("scan_quality", "ssid appear (\\d+) out of (\\d+) scan iterations"); in setupTests() 162 mTestList.add(t); in setupTests() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | FakeTestTest.java | 72 final Map<String, String> t = new HashMap<String, String>(); in testDecodeRle() local 73 t.put("PFAI", "PFAI"); in testDecodeRle() 74 t.put("P1F1A1", "PFA"); in testDecodeRle() 75 t.put("P2F2A2", "PPFFAA"); in testDecodeRle() 76 t.put("P3F2A1", "PPPFFA"); in testDecodeRle() 77 t.put("", ""); in testDecodeRle() 78 for (Map.Entry<String, String> testcase : t.entrySet()) { in testDecodeRle() 98 final Map<String, String> t = new HashMap<String, String>(); in testDecode() local 100 t.put("PFA", "PFA"); in testDecode() 101 t.put("P1F1A1", "PFA"); in testDecode() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/result/suite/ |
D | SuiteResultReporter.java | 106 for (TestRunResult t : results) { in extractModuleCheckers() 107 if (t.getName().startsWith(ITestSuite.MODULE_CHECKER_POST) in extractModuleCheckers() 108 || t.getName().startsWith(ITestSuite.MODULE_CHECKER_PRE)) { in extractModuleCheckers() 109 moduleCheckers.add(t); in extractModuleCheckers() 251 for (TestRunResult t : results) { in printTopSlowModules() 252 if (t.getElapsedTime() < 5000) { in printTopSlowModules() 253 moduleTime.remove(t); in printTopSlowModules() 315 for (TestRunResult t : moduleCheckerResults) { in printModuleCheckersMetric() 319 t.getName(), TimeUtil.formatElapsedTime(t.getElapsedTime()))); in printModuleCheckersMetric() 320 totalTime += t.getElapsedTime(); in printModuleCheckersMetric() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/metric/ |
D | BaseDeviceMetricCollector.java | 162 } catch (Throwable t) { in testRunStarted() 164 CLog.e(t); in testRunStarted() 184 } catch (Throwable t) { in testRunEnded() 186 CLog.e(t); in testRunEnded() 204 } catch (Throwable t) { in testStarted() 206 CLog.e(t); in testStarted() 218 } catch (Throwable t) { in testFailed() 220 CLog.e(t); in testFailed() 238 } catch (Throwable t) { in testEnded() 240 CLog.e(t); in testEnded() [all …]
|
D | RuntimeRestartCollector.java | 230 .map(t -> String.valueOf(t)) in addStatsdStatsBasedMetrics() 240 .map(t -> timestampToHoursMinutesSeconds(t)) in addStatsdStatsBasedMetrics() 262 .map(t -> String.valueOf(t)) in addAtomBasedMetrics() 272 .map(t -> nanosToHoursMinutesSeconds(t)) in addAtomBasedMetrics()
|
/tools/tradefederation/contrib/src/com/android/graphics/tests/ |
D | FlatlandTestFuncTest.java | 52 String t = ft.mResultMap.get("16:10 Single Static Window 1280 x 800"); in testPraseResults() local 53 Assert.assertTrue(t.equals("0")); in testPraseResults() 55 t = ft.mResultMap.get("16:10 Single Static Window 1920 x 1200"); in testPraseResults() 56 Assert.assertTrue(t.equals("3.136")); in testPraseResults() 58 t = ft.mResultMap.get("16:10 App -> Home Transition 1280 x 800"); in testPraseResults() 59 Assert.assertTrue(t.equals("-1")); in testPraseResults() 61 t = ft.mResultMap.get("16:10 SurfaceView -> Home Transition 1280 x 800"); in testPraseResults() 62 Assert.assertTrue(t.equals("1000")); in testPraseResults()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | InstalledInstrumentationsTest.java | 308 InstrumentationTest t = createInstrumentationTest(); in buildTests() local 312 OptionCopier.copyOptions(InstalledInstrumentationsTest.this, t); in buildTests() 317 t.setInvocationContext(mContext); in buildTests() 319 t.setMetricCollectors(collectors); in buildTests() 320 t.setPackageName(target.packageName); in buildTests() 321 t.setRunnerName(target.runnerName); in buildTests() 322 t.setCoverageTarget(target.targetName); in buildTests() 324 t.addInstrumentationArg("shardIndex", Integer.toString(mShardIndex)); in buildTests() 325 t.addInstrumentationArg("numShards", Integer.toString(mTotalShards)); in buildTests() 327 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/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/acloud/ |
D | run_tests.sh | 56 for t in $all_tests; 60 if [[ "$t" =~ "$t_pattern" ]]; then 61 tests_to_run=("${tests_to_run[@]}" "$t") 67 for t in $tests_to_run; 69 if ! PYTHONPATH=$(get_python_path):$PYTHONPATH $run_cmd $t; then 71 echo -e "${RED}$t failed${NC}"
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | ApiAnalyzer.kt | 998 val t = p.type() in <lambda>() constant 999 if (!t.primitive) { in <lambda>() 1000 … if (!m.deprecated && !cl.deprecated && t.asClass()?.deprecated == true) { in <lambda>() 1003 …"Parameter of deprecated type $t in ${cl.qualifiedName()}.${m.name()}(): this method should also b… in <lambda>() 1007 hiddenClass = findHiddenClasses(t, stubImportPackages) in <lambda>() 1009 if (hiddenClass.qualifiedName() == t.asClass()?.qualifiedName()) { in <lambda>() 1013 … "Parameter of unavailable type $t in ${cl.qualifiedName()}.${m.name()}()" in <lambda>() 1019 … "Parameter uses type parameter of unavailable type $t in ${cl.qualifiedName()}.${m.name()}()" in <lambda>() 1026 val t = m.returnType() in <lambda>() constant 1027 …if (t != null && !t.primitive && !m.deprecated && !cl.deprecated && t.asClass()?.deprecated == tru… in <lambda>() [all …]
|
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/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/test/connectivity/acts/framework/acts/ |
D | logger.py | 97 def _parse_logline_timestamp(t): argument 107 date, time = t.split(' ') 142 t = datetime.datetime.now() 144 t = t + datetime.timedelta(seconds=delta) 145 return t.strftime(time_format)[:-3]
|
/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/tests/src/com/android/tradefed/util/ |
D | RunUtilFuncTest.java | 204 for (Thread t : list) { in testRunTimedCmd_timeout() 206 String.format("We found a thread: %s", t.getName()), in testRunTimedCmd_timeout() 207 t.getName().contains(RunUtil.RUNNABLE_NOTIFIER_NAME)); in testRunTimedCmd_timeout() 209 String.format("We found a thread: %s", t.getName()), in testRunTimedCmd_timeout() 210 t.getName().contains(RunUtil.INHERITIO_PREFIX)); in testRunTimedCmd_timeout()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
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 | 136 Throwable t = mTestCaseFailures.get(0); in handleFailures() local 137 if (t instanceof AssumptionViolatedException) { in handleFailures() 138 mListener.testAssumptionFailure(testid, StreamUtil.getStackTrace(t)); in handleFailures() 140 mListener.testFailed(testid, StreamUtil.getStackTrace(t)); in handleFailures()
|
/tools/test/connectivity/acts/tests/google/wifi/ |
D | WifiTetheringPowerTest.py | 134 t = threading.Thread(target = self._start_traffic_on_device, 136 t.start() 137 threads.append(t) 141 for t in threads: 142 t.join()
|
/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/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()
|