Home
last modified time | relevance | path

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

12345

/tools/test/connectivity/acts/tests/google/fuchsia/wlan/
DDownloadStressTest.py116 t = threading.Thread(target=self.download_thread, args=(url, ))
117 download_threads.append(t)
118 t.start()
121 for t in download_threads:
122 t.join(self.download_timeout_s)
127 for index, t in enumerate(download_threads):
128 if t.isAlive():
129 t = None
156 t = threading.Thread(
159 download_threads.append(t)
[all …]
DPingStressTest.py138 t = threading.Thread(target=self.ping_thread, args=(url, ))
139 ping_threads.append(t)
140 t.start()
143 for t in ping_threads:
144 t.join(self.ping_thread_timeout_s)
149 for index, t in enumerate(ping_threads):
150 if t.isAlive():
151 t = None
/tools/tradefederation/core/common_util/com/android/tradefed/log/
DLogUtil.java152 public static void w(Throwable t) { in w() argument
154 Log.w(getClassName(2), getStackTraceString(t)); in w()
196 public static void e(Throwable t) { in e() argument
198 Log.e(getClassName(2), t); in e()
240 public static void wtf(Throwable t) { in wtf() argument
241 wtf(t.getMessage(), t); in wtf() local
263 public static void wtf(String message, Throwable t) { in wtf() argument
266 String stackTrace = getStackTraceString(t); in wtf()
281 private static String getStackTraceString(Throwable t) { in getStackTraceString() argument
282 if (t == null) { in getStackTraceString()
[all …]
/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/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/device_build_interfaces/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/log/
DLogUtilFuncTest.java87 Throwable t = new Throwable(); in testCLog_findCallerClassName_callerDeeperInStackTrace() local
91 Arrays.asList(t.getStackTrace())); in testCLog_findCallerClassName_callerDeeperInStackTrace()
96 t.setStackTrace(list.toArray(new StackTraceElement[list.size()])); in testCLog_findCallerClassName_callerDeeperInStackTrace()
98 String klass = CLog.findCallerClassName(t); in testCLog_findCallerClassName_callerDeeperInStackTrace()
106 Throwable t = new Throwable(); in testCLog_findCallerClassName_emptyStackTrace() local
109 t.setStackTrace(emptyStackTrace); in testCLog_findCallerClassName_emptyStackTrace()
111 String klass = CLog.findCallerClassName(t); in testCLog_findCallerClassName_emptyStackTrace()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DFakeTestTest.java75 final Map<String, String> t = new HashMap<String, String>(); in testDecodeRle() local
76 t.put("PFAI", "PFAI"); in testDecodeRle()
77 t.put("P1F1A1", "PFA"); in testDecodeRle()
78 t.put("P2F2A2", "PPFFAA"); in testDecodeRle()
79 t.put("P3F2A1", "PPPFFA"); in testDecodeRle()
80 t.put("", ""); in testDecodeRle()
81 for (Map.Entry<String, String> testcase : t.entrySet()) { in testDecodeRle()
101 final Map<String, String> t = new HashMap<String, String>(); in testDecode() local
103 t.put("PFA", "PFA"); in testDecode()
104 t.put("P1F1A1", "PFA"); in testDecode()
[all …]
/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/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/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/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/tradefederation/core/src/com/android/tradefed/device/metric/
DBaseDeviceMetricCollector.java250 } catch (Throwable t) { in testRunStarted()
252 CLog.e(t); in testRunStarted()
277 } catch (Throwable t) { in testRunEnded()
279 CLog.e(t); in testRunEnded()
297 } catch (Throwable t) { in testStarted()
299 CLog.e(t); in testStarted()
310 } catch (Throwable t) { in testFailed()
312 CLog.e(t); in testFailed()
326 } catch (Throwable t) { in testFailed()
328 CLog.e(t); in testFailed()
[all …]
/tools/asuite/aidegen/
Drun_tests.sh56 for t in $tests_to_run; do
57 echo "Testing" $t
58 … if ! PYTHONPATH=$(get_python_path) python3 -m coverage run --append --rcfile=$RC_FILE $t; then
60 echo -e "${RED}$t failed${NC}"
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DInstalledInstrumentationsTest.java354 InstrumentationTest t = createInstrumentationTest(); in buildTests() local
358 OptionCopier.copyOptions(InstalledInstrumentationsTest.this, t); in buildTests()
364 t.setMetricCollectors(collectors); in buildTests()
366 t.setPackageName(targetPackageName); in buildTests()
374 if (t instanceof AndroidJUnitTest) { in buildTests()
375 AndroidJUnitTest filterable = (AndroidJUnitTest) t; in buildTests()
391 t.setRunnerName(target.runnerName); in buildTests()
392 t.setCoverageTarget(target.targetName); in buildTests()
394 t.addInstrumentationArg("shardIndex", Integer.toString(mShardIndex)); in buildTests()
395 t.addInstrumentationArg("numShards", Integer.toString(mTotalShards)); in buildTests()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/
DProguardWriter.kt128 private fun getCleanTypeName(t: TypeItem?): String { in getCleanTypeName()
129 t ?: return "" in getCleanTypeName()
130 val cls = t.asClass() ?: return t.toCanonicalType() in getCleanTypeName()
133 for (i in 0 until t.arrayDimensions()) { in getCleanTypeName()
/tools/test/connectivity/acts/framework/acts/
Dlogger.py95 def _parse_logline_timestamp(t): argument
105 date, time = t.split(' ')
140 t = datetime.datetime.now()
142 t = t + datetime.timedelta(seconds=delta)
143 return t.strftime(time_format)[:-3]
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DRuntimeRestartCollector.java237 .map(t -> String.valueOf(t)) in addStatsdStatsBasedMetrics()
247 .map(t -> timestampToHoursMinutesSeconds(t)) in addStatsdStatsBasedMetrics()
265 .map(t -> String.valueOf(t)) in addAtomBasedMetrics()
275 .map(t -> nanosToHoursMinutesSeconds(t)) in addAtomBasedMetrics()
/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()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/utils/
DCachedSupplier.java105 public synchronized void precomputed(T t) { in precomputed() argument
106 cached = t; in precomputed()
/tools/tradefederation/core/src/com/android/tradefed/util/executor/
DParallelDeviceExecutor.java58 Thread t = Executors.defaultThreadFactory().newThread(r); in invokeAll()
59 t.setDaemon(true); in invokeAll()
60 return t; in invokeAll()
/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/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DBuilders.kt21 private fun <T> noReset(t: T) = t in noReset()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/sl4a/
DSl4aEventDispatcherTest.java161 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()

12345