Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 124) sorted by relevance

12345

/test/vti/test_serving/gae/webapp/src/utils/
Demail_util.py66 email_message.sender = SENDER_ADDRESS.format(
74 email_message.subject = SEND_DEVICE_NOTIFICATION_TITLE.format(
79 message += SEND_DEVICE_NOTIFICATION_HEADER.format(lab)
90 message += SEND_NOTIFICATION_FOOTER.format(lab)
132 "Could not find a lab model for hostname {}".format(
138 email_message.sender = SENDER_ADDRESS.format(
146 email_message.subject = SEND_JOB_NOTIFICATION_TITLE.format(
151 message += SEND_JOB_NOTIFICATION_HEADER.format(lab)
153 message += "http://{}.appspot.com/job".format(
157 message += "hostname: {}\n\n".format(job.hostname)
[all …]
/test/vti/dashboard/src/main/webapp/js/
Dtime.js27 var format = 'YYYY-M-DD H:mm:ss';
29 format = format + 'ZZ';
31 return time.format(format);
42 var format = 'YYYY-M-DD';
44 format = format + 'ZZ';
46 return time.format(format);
62 return duration.format(fmt);
/test/mlts/benchmark/results/
Dgenerate_result.py228 left_pad = (['{:.2f}ms'.format(
232 right_pad = (['{:.2f}ms'.format(
239 data = (['{:.2f}ms'.format(
296 topk = [TOPK_BASELINE_TEMPLATE.format(val=x) for x in val]
297 return ACCURACY_VALUES_TOPK_TEMPLATE.format(
304 topk = [TOPK_DIFF_TEMPLATE.format(
307 return ACCURACY_VALUES_TOPK_TEMPLATE.format(
315 return ACCURACY_VALUES_MELCEPLOGF0_TEMPLATE.format(
316 max_log_f0=MELCEPLOGF0_BASELINE_TEMPLATE.format(
318 max_mel_cep_distortion=MELCEPLOGF0_BASELINE_TEMPLATE.format(
[all …]
/test/vts/utils/python/coverage/
Dparser_test.py41 def __init__(self, magic=MAGIC, format='<'): argument
42 self.format = format
44 version = struct.unpack(format + 'I', '*802')[0]
45 self.content = struct.pack(format + 'III', magic, version, 0)
60 new_content = stream.content + struct.pack(stream.format + 'I',
62 s = MockStream(stream.magic, stream.format)
81 new_content = stream.content + struct.pack(stream.format + 'II', lo,
83 s = MockStream(stream.magic, stream.format)
109 stream.format + 'I', word_count) + bytes(string + padding)
110 s = MockStream(stream.magic, stream.format)
[all …]
Dparser.py54 self.format = '<'
58 struct.unpack(self.format + 'ssss', self.stream.read(4)))
64 self.format = '>'
78 return struct.unpack(self.format + 'I', self.stream.read(4))[0]
112 struct.unpack(self.format + 's' * length, self.stream.read(
Dsancov_utils.py113 'lshal -itp 2> /dev/null | grep {0}'.format(hal)).splitlines()
123 processes = dut.adb.shell('ps -p {0} -o comm='.format(
136 cmd = self._PROCESS_INIT_COMMAND.format(
139 dut.adb.shell(cmd.format(process_name))
157 dut.adb.shell(self._FLUSH_COMMAND.format(hal))
303 dut.adb.shell('find {0}/{1} -name \"*.sancov\"'.format(
316 dut.adb.shell('rm -rf {0}/{1}'.format(self._TARGET_SANCOV_PATH,
336 addrs = map(lambda addr: '{0:#x}'.format(addr),
/test/vti/dashboard/src/main/java/com/android/vts/job/
DVtsCoverageAlertJobServlet.java150 + FORMATTER.format(GOOD_THRESHOLD * 100) in getTestCoverageStatus()
157 + FORMATTER.format(coveragePct * 100) in getTestCoverageStatus()
168 + FORMATTER.format(GOOD_THRESHOLD * 100) in getTestCoverageStatus()
176 + FORMATTER.format(coveragePct * 100) in getTestCoverageStatus()
187 + FORMATTER.format(BAD_THRESHOLD * 100) in getTestCoverageStatus()
194 + FORMATTER.format(coveragePct * 100) in getTestCoverageStatus()
205 + FORMATTER.format(BAD_THRESHOLD * 100) in getTestCoverageStatus()
212 + FORMATTER.format(coveragePct * 100) in getTestCoverageStatus()
223 + FORMATTER.format(CHANGE_ALERT_THRESHOLD * 100) in getTestCoverageStatus()
230 + FORMATTER.format(previousPct * 100) in getTestCoverageStatus()
[all …]
/test/vts/testcases/template/gtest_binary_test/
Dgtest_test_case.py62 gtest_filter_flag = ('--gtest_filter={test}').format(test=test_name)
67 '--gtest_output=xml:{output_file_path}').format(
71 'cat {output} && rm -rf {output}'.format(
79 self.output_file_path = '{directory}/gtest_output_{name}.xml'.format(
101 'File name of output file "{}" is longer than {}.'.format(
103 output_base_name = '{}.xml'.format(uuid.uuid4())
110 'File path of output file "{}" is longer than {}.'.format(
/test/app_compat/csuite/harness/src/main/java/com/android/csuite/core/
DSystemPackageUninstaller.java185 String.format("%s; Command result: %s", failureMessage, commandResult)); in executeShellCommandOrThrow()
220 String.format("rm -r %s", packageInstallDirectory), in removePackageInstallDirectory()
221 String.format( in removePackageInstallDirectory()
246 String dataPath = String.format("/data/data/%s", packageName); in removePackageData()
250 String.format("rm -r %s", dataPath), in removePackageData()
251 String.format( in removePackageData()
265 String.format("pm list packages %s", packageName), in isPackageInstalled()
270 String.format( in isPackageInstalled()
275 .contains(String.format("package:%s", packageName)); in isPackageInstalled()
283 String.format("pm path %s", packageName), in getPackageInstallDirectory()
[all …]
/test/vts-testcase/kernel/api/sysfs/src/com/android/tests/sysfs/
DKernelApiSysfsTest.java116 f = String.format("/sys/devices/system/cpu/cpu%d/cpufreq/scaling_cur_freq", cpu); in testPerCpuCpufreq()
121 f = String.format("/sys/devices/system/cpu/cpu%d/cpufreq/scaling_min_freq", cpu); in testPerCpuCpufreq()
126 f = String.format("/sys/devices/system/cpu/cpu%d/cpufreq/scaling_max_freq", cpu); in testPerCpuCpufreq()
131 f = String.format( in testPerCpuCpufreq()
144 f = String.format("/sys/devices/system/cpu/cpu%d/cpufreq/stats/time_in_state", cpu); in testPerCpuCpufreq()
176 String.format("find %s -name \"%s\" -maxdepth 1 -type l", dir, nameFilter)); in findFiles()
210 assertTrue(String.format("(%s) does not match RTC_HCTOSYS_DEVICE (%s)", rtc_link, rtc), in testRtcHctosys()
222 getDevice().executeShellCommand(String.format("echo %s > %s", lockName, wakeLockPath)); in testWakeLock()
227 assertTrue(String.format("active wake lock not reported in %s", wakeLockPath), in testWakeLock()
231 getDevice().executeShellCommand(String.format("echo %s > %s", lockName, wakeUnLockPath)); in testWakeLock()
[all …]
/test/mlts/benchmark/src/com/android/nn/crashtest/core/test/
DPerformanceDegradationTest.java128 Log.i(TAG, String.format("Checking performance degradation using %d models", in call()
149 Log.i(TAG, String.format( in testDegradationForModels()
154 Log.d(TAG, String.format("%s: Calculating baseline", mTestName)); in testDegradationForModels()
159 return failure(String.format("%s: Baseline has benchmark error '%s'", in testDegradationForModels()
162 Log.d(TAG, String.format("%s: Baseline mean time is %f seconds", mTestName, in testDegradationForModels()
165 Log.d(TAG, String.format("%s: Sleeping for %d millis", mTestName, in testDegradationForModels()
169 Log.d(TAG, String.format("%s: Calculating performance with %d threads", mTestName, in testDegradationForModels()
199 String.format( in testDegradationForModels()
204 Log.d(TAG, String.format("%s: Multithreaded mean time is %f seconds", in testDegradationForModels()
210 Log.i(TAG, String.format( in testDegradationForModels()
[all …]
DRunModelsInMultipleProcesses.java114 Log.w(TAG, String.format("Unable to delete file %s", fileToDelete.getAbsolutePath())); in deleteOrWarn()
128 String.format("Trying to create model path '%s'", targetModelFile.getAbsolutePath())); in call()
131 return failure(String.format("Unable to copy model to target %s file %s", in call()
140 return failure(String.format("Cannot write test input data file %s for model %s", in call()
157 Log.i(TAG, String.format("Test process returned %d", testResult)); in call()
161 return failure(String.format("Test failed with return code %d", testResult)); in call()
174 String.format( in writeModelInput()
202 Log.w(TAG, String.format("Cannot write to target file %s", targetInputFile.getAbsolutePath()), in writeModelInput()
209 String.format("No content in inference input sequence to write for file %s", in writeModelInput()
DRandomGraphTest.java47 Log.d(TAG, String.format("Writing NNAPI Fuzzer logs to %s", logFile)); in getNnapiLogFilePath()
89 String.format("Invalid native result value %d", nativeResult)); in fromNativeResult()
189 String.format(String.format( in call()
219 Log.w(TAG, String.format( in call()
224 Log.i(TAG, String.format("Model has been dumped at path '%s'", in call()
230 Log.w(TAG, String.format( in call()
/test/vts/runners/host/
Dutils.py173 gmt = "GMT+{}".format(-tzoffset)
175 gmt = "GMT-{}".format(tzoffset)
317 print("{} generated an exception: {}".format(
555 "seconds.").format(func.__name__, sec))
614 ad.adb.shell("settings put global airplane_mode_on {}".format(
643 "dumpsys deviceidle: {}".format(
667 "dumpsys deviceidle: {}".format(
683 ad.adb.shell("settings put secure doze_enabled {}".format(1 if new_state
694 ad.adb.shell("settings put system screen_brightness_mode {}".format(
705 ad.adb.shell("settings put system accelerometer_rotation {}".format(
[all …]
/test/app_compat/csuite/harness/src/main/java/com/android/csuite/config/
DAppRemoteFileResolver.java146 String.format("%s=%s is empty", URI_TEMPLATE_OPTION, mUriTemplate)); in resolveRemoteFiles()
156 String.format( in resolveRemoteFiles()
164 String.format( in resolveRemoteFiles()
191 String.format("Unsupported scheme (%s) in provided URI (%s)", uriScheme, uri)); in checkAppUri()
200 String.format( in checkAppUri()
206 String.format( in checkAppUri()
228 String.format( in expandVars()
260 String.format("Could not resolve URI (%s) for package '%s'", uri, packageName), in resolveUriToFile()
/test/vts-testcase/kernel/ltp/
DKernelLtpTest.py356 self._dut.shell.InvokeTerminal("shell_thread_{}".format(i))
388 shell = getattr(self._dut.shell, "shell_thread_{}".format(id))
396 logging.info("Worker {} takes '{}'.".format(id, test_case))
398 logging.info("Worker {} finished.".format(id))
409 "for '{}'.".format(id, test_case))
415 "not satisfied for '{}'.".format(id, test_case))
420 cmd = "export {envp} && cd {cwd} && {commands}".format(
426 "for '{}'.\n Command:{}".format(id, test_case, cmd))
430 "for '{}'.".format(id, test_case))
436 "sequential job queue.".format(id, test_case))
[all …]
/test/vts-testcase/hal/usb/gadget/V1_0/host/src/com/android/tests/usbgadget/
DHalUsbGadgetV1_0HostTest.java56 .executeShellCommand(String.format("lshal | grep \"%s\"", HAL_SERVICE)) in beforeClassWithDevice()
100 assumeTrue(String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testAndroidUSB()
112 assumeTrue(String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testMtp()
126 assumeTrue(String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testPtp()
142 assumeTrue(String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testMIDI()
158 assumeTrue(String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testRndis()
/test/vti/dashboard/src/main/java/com/android/vts/util/
DTimeUtil.java21 import java.time.format.DateTimeFormatter;
43 return DateTimeFormatter.ofPattern(DATE_TIME_ZONE_FORMAT).format(zdt); in getDateTimeZoneString()
55 return DateTimeFormatter.ofPattern(DATE_FORMAT).format(zdt); in getDateString()
67 return DateTimeFormatter.ofPattern(DATE_TIME_FORMAT).format(zdt); in getDateTimeString()
DPerformanceUtil.java78 pctChangeString = FORMATTER.format(pctChange * 100) + " %"; in getPercentChangeHTML()
126 row += FORMATTER.format(baseline.getBestCase()); in getBestCasePerformanceComparisonHTML()
128 row += FORMATTER.format(baseline.getMean()); in getBestCasePerformanceComparisonHTML()
130 row += FORMATTER.format(baseline.getStd()) + "</td>"; in getBestCasePerformanceComparisonHTML()
255 row += FORMATTER.format(baseline.getBestCase()); in getAvgCasePerformanceComparisonHTML()
257 row += FORMATTER.format(baseline.getMean()); in getAvgCasePerformanceComparisonHTML()
259 row += FORMATTER.format(baseline.getStd()) + "</td>"; in getAvgCasePerformanceComparisonHTML()
/test/vts/tools/vts-core-tradefed/src/com/android/tradefed/util/
DTargetFileUtils.java95 throw new RuntimeException(String.format("Invalid group: %s", groupIndex)); in hasPermission()
99 String.format("Invalid permission bits: %s", permissionBits.length() + "")); in hasPermission()
114 throw new RuntimeException(String.format("Invalid permission bit: %d", perm)); in hasPermission()
121 throw new RuntimeException(String.format( in hasPermission()
146 String command = String.format("find %s -name \"%s\"", path, namePattern); in findFile()
/test/vti/test_serving/gae/webapp/src/scheduler/
Djob_heartbeat.py65 self.logger.Println("[hostname]{} [device]{} [test_name]{}".format(
76 self.logger.Println("Device serial: {}".format(device.serial))
84 self.logger.Println("{} jobs are updated.".format(
89 self.logger.Println("{} devices are updated.".format(
/test/mlts/benchmark/src/com/android/nn/crashtest/app/
DCrashTestStatus.java55 String.format("Received crash test notification: %s and extra msg %s.\n", in handleCompletionNotification()
61 String.format("Test completed with result %s and msg: %s.\n", testResult, in handleCompletionNotification()
64 … mDisplayMessages.accept(String.format("Test completed with result %s\n", testResult)); in handleCompletionNotification()
68 String.format("mParallelTestComplete count is now %d, test result is %s\n", in handleCompletionNotification()
/test/app_compat/csuite/harness/src/main/java/com/android/tradefed/util/
DPublicApkUtil.java96 File apkFile = new File(dir, String.format("%s_ranking.csv", flavor)); in getApkList()
128 String.format("Failed to parse apk file %s", apk.getCanonicalPath())); in getApkListFromDirectory()
209 String.format("Invalid line (rank field not a number): %s", line), e); in fromCsvLine()
213 String.format("Invalid line (expected 5 data columns): %s", line)); in fromCsvLine()
220 return String.format( in toString()
/test/mlts/benchmark/src/com/android/nn/benchmark/app/
DBenchmarkTestBase.java126 String.format( in waitUntilCharged()
136 Log.v(NNBenchmark.TAG, String.format("Battery level: %d%%", percentage)); in waitUntilCharged()
143 String.format("Device is not charging, status is %d", status)); in waitUntilCharged()
203 Log.v(NNBenchmark.TAG, String.format( in run()
213 String.format("Error running Benchmark for test '%s'", mTestModel), e); in run()
217 String.format("Failure running Benchmark for test '%s'!!", mTestModel), e); in run()
/test/mlts/benchmark/dogfood/src/com/android/nn/dogfood/
DBenchmarkJobService.java64 Log.d(TAG, String.format("NN API Benchmarking job %d/%d started", getNumRuns(), NUM_RUNS)); in onStartJob()
73 Log.d(TAG, String.format("NN API Benchmarking job %d/%d stopped", getNumRuns(), NUM_RUNS)); in onStopJob()
104 String.format( in onBenchmarkFinish()
117 String.format("Benchmark progress %d of %d - %s", testNumber, numTests, modelName)); in onStatusUpdate()
129 String msg = String.format("Background test %d of %d is running", getNumRuns(), NUM_RUNS); in showNotification()

12345