Home
last modified time | relevance | path

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

123456789

/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/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/mlts/benchmark/results/
Dgenerate_result.py156 left_pad = (['{:.2f}ms'.format(
160 right_pad = (['{:.2f}ms'.format(
167 data = (['{:.2f}ms'.format(
224 topk = [TOPK_BASELINE_TEMPLATE.format(val=x) for x in val]
225 return ACCURACY_VALUES_TOPK_TEMPLATE.format(
232 topk = [TOPK_DIFF_TEMPLATE.format(
235 return ACCURACY_VALUES_TOPK_TEMPLATE.format(
243 return ACCURACY_VALUES_MELCEPLOGF0_TEMPLATE.format(
244 max_log_f0=MELCEPLOGF0_BASELINE_TEMPLATE.format(
246 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(
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/
DConsoleReporter.java184 private void logProgress(String format, Object... args) { in logProgress() argument
185 format = String.format("[%s %s %s] %s", progress(), mModuleId, mDeviceSerial, format); in logProgress()
186 log(format, args); in logProgress()
192 private void logMessage(String format, Object... args) { in logMessage() argument
193 format = String.format("[%s] %s", mDeviceSerial, format); in logMessage()
194 log(format, args); in logMessage()
200 private void log(String format, Object... args) { in log() argument
202 CLog.i(format, args); in log()
204 CLog.logAndDisplay(LogLevel.INFO, format, args); in log()
222 return String.format("%d/%d", mCurrentTestNum, mTotalTestsInModule); in progress()
/test/suite_harness/
DPREUPLOAD.cfg5 google-java-format = ${REPO_ROOT}/prebuilts/tools/common/google-java-format/google-java-format
6 google-java-format-diff = ${REPO_ROOT}/prebuilts/tools/common/google-java-format/google-java-format
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DCtsConfigLoadingTest.java210 fail(String.format("%s does not exists", testcases)); in testConfigurationLoad()
240 String.format("%s: Use com.android.tradefed.targetprep.suite." in testConfigurationLoad()
247 String.format( in testConfigurationLoad()
258 String.format( in testConfigurationLoad()
271 String.format("%s: %s reports 0 test cases.", in testConfigurationLoad()
277 throw new IllegalArgumentException(String.format( in testConfigurationLoad()
289 String.format("%s: uses '%s' instead of on of '%s' that are " in testConfigurationLoad()
299 Assert.assertNotNull(String.format("Missing module metadata field \"component\", " in testConfigurationLoad()
305 Assert.assertEquals(String.format("Module config contains more than one \"component\" " in testConfigurationLoad()
309 Assert.assertTrue(String.format("Module config contains unknown \"component\" metadata " in testConfigurationLoad()
[all …]
/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/vts/harnesses/tradefed/src/com/android/compatibility/common/tradefed/build/
DVtsCompatibilityInvocationHelper.java39 System.getenv(String.format("%s_TESTCASES", suiteName.replace('-', '_'))); in getTestsDir()
46 System.getProperty(String.format("%s_ROOT", suiteName.replace('-', '_'))); in getTestsDir()
48 throw new IllegalArgumentException(String.format( in getTestsDir()
52 String.format("android-%s/testcases", suiteName.toLowerCase())); in getTestsDir()
55 throw new FileNotFoundException(String.format( in getTestsDir()
59 CLog.d(String.format("%s TEST CASES DIR: %s", suiteName, mTestCasesDir)); in getTestsDir()
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/
DBusinessLogicHostExecutor.java58 public void logInfo(String format, Object... args) { in logInfo() argument
59 LogUtil.printLog(Log.LogLevel.INFO, LOG_TAG, String.format(format, args)); in logInfo()
66 public void logDebug(String format, Object... args) { in logDebug() argument
67 CLog.d(format, args); in logDebug()
75 return String.format("%s(%s)", method, String.join(", ", formatArgs(args))); in formatExecutionString()
120 throw new RuntimeException(String.format( in getResolvedMethod()
/test/vts-testcase/kernel/api/sysfs/src/com/android/tests/sysfs/
DKernelApiSysfsTest.java111 f = String.format("/sys/devices/system/cpu/cpu%d/cpufreq/scaling_cur_freq", cpu); in testPerCpuCpufreq()
116 f = String.format("/sys/devices/system/cpu/cpu%d/cpufreq/scaling_min_freq", cpu); in testPerCpuCpufreq()
121 f = String.format("/sys/devices/system/cpu/cpu%d/cpufreq/scaling_max_freq", cpu); in testPerCpuCpufreq()
126 f = String.format( in testPerCpuCpufreq()
139 f = String.format("/sys/devices/system/cpu/cpu%d/cpufreq/stats/time_in_state", cpu); in testPerCpuCpufreq()
171 String.format("find %s -name \"%s\" -maxdepth 1 -type l", dir, nameFilter)); in findFiles()
216 getDevice().executeShellCommand(String.format("echo %s > %s", lockName, wakeLockPath)); in testWakeLock()
221 assertTrue(String.format("active wake lock not reported in %s", wakeLockPath), in testWakeLock()
225 getDevice().executeShellCommand(String.format("echo %s > %s", lockName, wakeUnLockPath)); in testWakeLock()
230 assertTrue(String.format("inactive wake lock reported in %s", wakeLockPath), in testWakeLock()
[all …]
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/result/
DResultReporterTest.java66 private static final String TEST_1 = String.format("%s#%s", CLASS, METHOD_1);
67 private static final String TEST_2 = String.format("%s#%s", CLASS, METHOD_2);
68 private static final String TEST_3 = String.format("%s#%s", CLASS, METHOD_3);
173 assertNotNull(String.format("Expected result for %s", TEST_1), result1); in testResultReporting()
174 assertEquals(String.format("Expected pass for %s", TEST_1), TestStatus.PASS, in testResultReporting()
177 assertNotNull(String.format("Expected result for %s", TEST_2), result2); in testResultReporting()
178 assertEquals(String.format("Expected fail for %s", TEST_2), TestStatus.FAIL, in testResultReporting()
181 assertNotNull(String.format("Expected result for %s", TEST_3), result3); in testResultReporting()
182 assertEquals(String.format("Expected fail for %s", TEST_3), TestStatus.FAIL, in testResultReporting()
229 assertNotNull(String.format("Expected result for %s", TEST_1), result1); in testRepeatedExecutions()
[all …]
/test/suite_harness/common/host-side/manifest-generator/tests/src/com/android/compatibility/common/generator/
DManifestGeneratorTest.java78 String permissionXml = String.format(PERMISSION, PERMISSION_A) in testManifest()
79 + String.format(PERMISSION, PERMISSION_B); in testManifest()
80 String activityXml = String.format(ACTIVITY, ACTIVITY_A) in testManifest()
81 + String.format(ACTIVITY, ACTIVITY_B); in testManifest()
82 String libraryXml = String.format(USES_LIBRARY, LIBRARY); in testManifest()
83 String expected = String.format(MANIFEST, permissionXml, libraryXml, activityXml); in testManifest()
/test/vts/harnesses/tradefed/src/com/android/tradefed/device/metric/
DVtsHalTraceCollector.java58 device.executeShellCommand(String.format("rm -rf %s/*.vts.trace", VTS_TMP_DIR)); in onTestRunStart()
63 String.format("%s enable %s %s", VTS_TMP_DIR + PROFILING_CONFIGURE_BINARY, in onTestRunStart()
82 String.format("%s disable", VTS_TMP_DIR + PROFILING_CONFIGURE_BINARY)); in onTestRunEnd()
84 device.executeShellCommand(String.format("rm -rf %s/*.vts.trace", VTS_TMP_DIR)); in onTestRunEnd()
98 localTracedDir = new File(String.format("%s/%s", tracePath, moduleName)); in pullTraceFiles()
101 String.format("%s/%s", FileUtil.createTempDir(TRACE_DIR_PREFIX), moduleName)); in pullTraceFiles()
111 String out = device.executeShellCommand(String.format("ls %s/*.vts.trace", VTS_TMP_DIR)); in pullTraceFiles()
/test/vts/harnesses/tradefed/src/com/android/tradefed/testtype/
DVtsFuzzTest.java248 flags = String.format("%s=%s", VTS_FUZZ_TEST_FLAG_CLASS, mTargetClass); in getAllVtsFuzzTestFlags()
253 flags = String.format("%s %s=%s", flags, VTS_FUZZ_TEST_FLAG_TYPE, mTargetType); in getAllVtsFuzzTestFlags()
259 flags = String.format("%s %s=%d.%d", flags, VTS_FUZZ_TEST_FLAG_VERSION, mTargetVersionMajor, in getAllVtsFuzzTestFlags()
262 flags = String.format("%s %s=%s", flags, VTS_FUZZ_TEST_FLAG_EPOCH_COUNT, mEpochCount); in getAllVtsFuzzTestFlags()
264 flags = String.format("%s %s", flags, mTargetComponentPath); in getAllVtsFuzzTestFlags()
306 cmdLine.append(String.format("%s %s", fullPath, flags)); in getVtsFuzzTestCmdLine()
335 Log.w(LOG_TAG, String.format("Could not find fuzzer binary file %s in %s!", in run()
342 Log.i(LOG_TAG, String.format("Running fuzzer '%s %s' on %s", in run()
/test/framework/harnesses/host_controller/command_processor/
Dcommand_gsispl.py84 version = "{:04d}-{:02d}-{:02d}".format(
122 version = "{:04d}-{:02d}-{:02d}".format(
135 "system-{}.img".format(version))
136 command = "{} {} {} {}".format(
143 command = "echo {} | sudo -S {}".format(
149 "system.img path is updated to : {}".format(output_path))
152 logging.error("gsispl error: {} {}".format(stdout, stderr))
/test/vts/harnesses/tradefed/src/com/android/tradefed/targetprep/
DVtsCoveragePreparer.java151 String artifactName = String.format( in setUp()
155 String cmdString = String.format(artifactFetcher, buildId, flavor, artifactName, in setUp()
168 String artifactName = String.format( in setUp()
172 String cmdString = String.format(artifactFetcher, buildId, flavor, artifactName, in setUp()
184 String cmdString = String.format(artifactFetcher, buildId, flavor, BUILD_INFO_ARTIFACT, in setUp()
200 throw new TargetSetupError(String.format("Could not find %s under %s.", in setUp()
206 throw new TargetSetupError(String.format("Could not find %s under %s.", in setUp()
231 device.executeShellCommand(String.format("rm -rf %s/*", COVERAGE_DATA_PATH)); in setUp()
266 return String.format(SANCOV_RESOURCES_KEY, device.getSerialNumber()); in getSancovResourceDirKey()
276 return String.format(GCOV_RESOURCES_KEY, device.getSerialNumber()); in getGcovResourceDirKey()
[all …]
DVtsHalAdapterPreparer.java104 String out = device.executeShellCommand(String.format(LIST_HAL_CMD, mPackageName)); in setUp()
117 String command = String.format("chmod a+x %s", SCRIPT_PATH); in setUp()
119 command = String.format("%s /data/nativetest%s/%s %s %s %d", SCRIPT_PATH, bitness, in setUp()
131 device, mCommands, String.format(LIST_HAL_CMD, mPackageName), mCheckEmpty)) { in setUp()
150 String command = String.format("setprop %s %s", ADAPTER_SYSPROP, "true"); in tearDown()
152 if (!mCmdUtil.retry(device, command, String.format(LIST_HAL_CMD, mPackageName), in tearDown()
190 invocationHelper.getTestsDir(), String.format(VTS_NATIVE_TEST_DIR, bitness)); in pushAdapter()
195 adapter, String.format(TARGET_NATIVE_TEST_DIR, bitness) + mAdapterBinaryName); in pushAdapter()
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/targetprep/
DVtsHalAdapterPreparerTest.java138 String.format(LIST_HAL_CMD, TEST_HAL_PACKAGE)); in testOnSetUpAdapterSingleInstance()
143 String adapterCmd = String.format("%s /data/nativetest64/%s %s %s %d", SCRIPT_PATH, in testOnSetUpAdapterSingleInstance()
156 String.format(LIST_HAL_CMD, TEST_HAL_PACKAGE)); in testOnSetUpAdapterMultipleInstance()
161 adapterCmds.add(String.format("%s /data/nativetest64/%s %s %s %d", SCRIPT_PATH, in testOnSetUpAdapterMultipleInstance()
163 adapterCmds.add(String.format("%s /data/nativetest64/%s %s %s %d", SCRIPT_PATH, in testOnSetUpAdapterMultipleInstance()
165 adapterCmds.add(String.format("%s /data/nativetest64/%s %s %s %d", SCRIPT_PATH, in testOnSetUpAdapterMultipleInstance()
167 adapterCmds.add(String.format("%s /data/nativetest64/%s %s %s %d", SCRIPT_PATH, in testOnSetUpAdapterMultipleInstance()
190 String.format(LIST_HAL_CMD, TEST_HAL_PACKAGE)); in testOnSetupServiceNotAvailable()
199 String.format(LIST_HAL_CMD, TEST_HAL_PACKAGE)); in testOnSetUpAdapterFailed()
/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/suite_harness/common/util/src/com/android/compatibility/common/util/
DBackupUtils.java123 return getShellCommandOutput(String.format("bmgr --user %d list transports", userId)) in isLocalTransportSelectedForUser()
136 return getShellCommandOutput(String.format("bmgr --user %d enabled", userId)) in isBackupEnabledForUser()
165 String.format("bmgr --user %d backupnow %s", userId, packageName)); in backupNowForUser()
224 return executeShellCommand(String.format("bmgr restore %s %s", token, packageName)); in restore()
234 String.format("bmgr --user %d restore %s %s", userId, token, packageName)); in restoreForUser()
294 executeShellCommand(String.format("bmgr --user %d enable %b", userId, enable)); in enableBackupForUser()
301 executeShellCommandSync(String.format("bmgr --user %d activate %b", userId, activate)); in activateBackupForUser()
310 return getShellCommandOutput(String.format("bmgr --user %d activated", userId)) in isBackupActivatedForUser()
370 String.format("bmgr --user %d list transports", userId))); in userHasBackupTransport()
388 String.format("bmgr --user %d transport %s", userId, transport)); in setBackupTransportForUser()
DReadElf.java119 return String.format( in toString()
254 return String.format( in toString()
302 vernauxStr += String.format(" %s\n", this.vn_vernaux[i].toString()); in toString()
304 return String.format( in toString()
344 return String.format( in toString()
392 vStr += String.format(" %s\n", this.vd_verdaux[i].toString()); in toString()
394 return String.format( in toString()
425 return String.format("%s, %d, %d", this.vda_lib_name, this.vda_name, this.vda_next); in toString()
455 return String.format("%d, %d", this.mTag, this.mValue); in toString()
586 System.out.println(String.format("%8x: %s", i, symArr[i].toString())); in main()
[all …]
/test/vts-testcase/hal/usb/gadget/V1_0/host/src/com/android/tests/usbgadget/
DHalUsbGadgetV1_0HostTest.java54 .executeShellCommand(String.format("lshal | grep \"%s\"", HAL_SERVICE)) in beforeClassWithDevice()
98 assumeTrue(String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testAndroidUSB()
110 assumeTrue(String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testMtp()
124 assumeTrue(String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testPtp()
138 assumeTrue(String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testMIDI()
152 assumeTrue(String.format("The device doesn't have service %s", HAL_SERVICE), mHasService); in testRndis()

123456789