Home
last modified time | relevance | path

Searched refs:t (Results 1 – 25 of 125) sorted by relevance

12345

/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraStressTest.java135 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 …]
DCameraLatencyTest.java105 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/
DFioBenchmarkTest.java610 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/
DLogUtil.java155 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/
DWifiStressTest.java152 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/
DFakeTestTest.java72 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/
DSuiteResultReporter.java106 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/
DBaseDeviceMetricCollector.java162 } 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 …]
DRuntimeRestartCollector.java230 .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/
DFlatlandTestFuncTest.java52 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/
DInstalledInstrumentationsTest.java308 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/
DPowerBaseTest.py300 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/
DLogUtilFuncTest.java140 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/
Drun_tests.sh56 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/
DApiAnalyzer.kt998 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 …]
DProguardWriter.kt129 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/
DDeviceConcurrentUtil.java63 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/
Dlogger.py97 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/
DDeviceRuntimeException.java41 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/
DRunUtilFuncTest.java204 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/
DJUnitToInvocationResultForwarder.java58 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()
DJUnit4ResultForwarder.java136 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/
DWifiTetheringPowerTest.py134 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/
DRemoteException.java23 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/
DApkZFileCreator.java142 } 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()

12345