Home
last modified time | relevance | path

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

12

/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/vts/harnesses/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
DHidlProfilerPreparer.java111 Log.d(LOG_TAG, String.format("Deleting any existing target-side trace files in %s.", in setUp()
114 String.format("rm %s/*.vts.trace", mTargetProfilingTracePath)); in setUp()
116 Log.d(LOG_TAG, String.format("Starting the HIDL profiling (bitness: %s).", in setUp()
120 Log.d(LOG_TAG, String.format("Target Profiling Library Path: %s", in setUp()
125 Log.d(LOG_TAG, String.format("setenforce: %s", result)); in setUp()
130 Log.d(LOG_TAG, String.format("chmod: %s", result)); in setUp()
133 Log.d(LOG_TAG, String.format("chmod: %s", result)); in setUp()
136 Log.d(LOG_TAG, String.format("chmod: %s", result)); in setUp()
140 Log.d(LOG_TAG, String.format("chmod: %s", result)); in setUp()
142 String.format("/data/local/tmp/vts_profiling_configure enable")); in setUp()
[all …]
DVtsFilePusher.java155 String.format("Failed to parse push spec '%s'", pushspec)); in pushFileGroups()
167 Log.w(cls.getSimpleName(), String.format( in pushFileGroups()
174 String.format("Trying to push file from local to remote: %s", pushspec)); in pushFileGroups()
179 throw new TargetSetupError(String.format("Failed to push local '%s' to remote '%s'", in pushFileGroups()
233 String.format("%s%s", fileName, mAppendBitness ? mAbi.getBitness() : "")); in resolveRelativeFilePath()
/test/vts/testcases/template/gtest_binary_test/
Dgtest_test_case.py53 '--gtest_output=xml:{output_file_path}').format(
57 'cat {output} && rm -rf {output}'.format(
65 self.output_file_path = '{directory}/gtest_output_{name}.xml'.format(
87 format(output_file_path, utils.MAX_FILENAME_LEN))
88 output_base_name = '{}.xml'.format(uuid.uuid4())
95 format(output_file_path, utils.MAX_PATH_LEN))
/test/vts/harnesses/tradefed/src/com/android/compatibility/common/tradefed/build/
DVtsCompatibilityInvocationHelper.java36 rootDirPath = System.getProperty(String.format("%s_ROOT", in getTestsDir()
40 String.format("Missing install path property %s_ROOT", in getTestsDir()
46 throw new FileNotFoundException(String.format( in getTestsDir()
/test/vts/harnesses/tradefed/src/com/android/tradefed/testtype/
DVtsFuzzTest.java202 flags = String.format("%s=%s", VTS_FUZZ_TEST_FLAG_CLASS, mTargetClass); in getAllVtsFuzzTestFlags()
207 flags = String.format("%s %s=%s", flags, VTS_FUZZ_TEST_FLAG_TYPE, mTargetType); in getAllVtsFuzzTestFlags()
212 flags = String.format("%s %s=%s", flags, VTS_FUZZ_TEST_FLAG_VERSION, mTargetVersion); in getAllVtsFuzzTestFlags()
214 flags = String.format("%s %s=%s", flags, VTS_FUZZ_TEST_FLAG_EPOCH_COUNT, mEpochCount); in getAllVtsFuzzTestFlags()
216 flags = String.format("%s %s", flags, mTargetComponentPath); in getAllVtsFuzzTestFlags()
258 cmdLine.append(String.format("%s %s", fullPath, flags)); in getVtsFuzzTestCmdLine()
287 Log.w(LOG_TAG, String.format("Could not find fuzzer binary file %s in %s!", in run()
294 Log.i(LOG_TAG, String.format("Running fuzzer '%s %s' on %s", in run()
/test/vts-testcase/hal/script/configure/
Dtest_case_creator.py204 f.write(LICENSE_STATEMENT_POUND.format(year=self._current_year))
207 ANDROID_MK_TEMPLATE.format(
234 f.write(LICENSE_STATEMENT_XML.format(year=self._current_year))
292 push_spec = VTS_SPEC_PUSH_TEMPLATE.format(
303 push_driver = VTS_LIB_PUSH_TEMPLATE_32.format(
308 push_driver = VTS_LIB_PUSH_TEMPLATE_64.format(
322 push_profiler = VTS_LIB_PUSH_TEMPLATE_32.format(
327 push_profiler = VTS_LIB_PUSH_TEMPLATE_64.format(
354 'value': TEST_TRACE_TEMPLATE.format(
364 test_binary = TEST_BINEARY_TEMPLATE_32.format(
[all …]
/test/vts/script/
Dcreate-test-project.py153 f.write(LICENSE_STATEMENT_POUND.format(year=self.current_year))
156 ANDROID_MK_TEMPLATE.format(
167 LICENSE_STATEMENT_POUND.format(year=self.current_year))
177 f.write(LICENSE_STATEMENT_XML.format(year=self.current_year))
179 ANDROID_TEST_XML_TEMPLATE.format(
192 f.write(LICENSE_STATEMENT_POUND.format(year=self.current_year))
194 f.write(TEST_CASE_PY_TEMPLATE.format(test_name=self.test_name))
/test/vts/runners/host/
Dutils.py169 gmt = "GMT+{}".format(-tzoffset)
171 gmt = "GMT-{}".format(tzoffset)
313 print("{} generated an exception: {}".format(
513 "seconds.").format(func.__name__, sec))
572 ad.adb.shell("settings put global airplane_mode_on {}".format(
601 "dumpsys deviceidle: {}".format(
625 "dumpsys deviceidle: {}".format(
641 ad.adb.shell("settings put secure doze_enabled {}".format(1 if new_state
652 ad.adb.shell("settings put system screen_brightness_mode {}".format(
663 ad.adb.shell("settings put system accelerometer_rotation {}".format(
[all …]
Dconfig_parser.py93 print("Error loading test config {}".format(test_config_path))
142 "config.").format(k))
247 raise errors.USERError("Duplicate testbed name {} found.".format(
/test/vts-testcase/kernel/ltp/shell_environment/definitions/
Dpath_permission.py66 commands = ["stat -c {}a {}".format('%', path) for path in self._paths]
84 commands = ["chmod {} {}".format(permission, path)
90 commands = ["chmod {} {}".format(original, path)
/test/vts-testcase/kernel/ltp/
DKernelLtpTest.py340 self._dut.shell.InvokeTerminal("shell_thread_{}".format(i))
372 shell = getattr(self._dut.shell, "shell_thread_{}".format(id))
379 logging.info("Worker {} takes '{}'.".format(id, test_case))
381 logging.info("Worker {} finished.".format(id))
392 "for '{}'.".format(id, test_case))
398 "not satisfied for '{}'.".format(id, test_case))
403 cmd = "export {envp} && cd {cwd} && {commands}".format(
408 "for '{}'.\n Command:{}".format(id, test_case, cmd))
412 "for '{}'.".format(id, test_case))
418 "sequential job queue.".format(id, test_case))
[all …]
/test/vts/utils/python/controllers/
Devent_dispatcher.py75 print("Received Malformed event {}".format(event_obj))
117 raise DuplicateError('A handler for {} already exists'.format(
185 raise TypeError("Failed to get an event queue for {}".format(
199 raise queue.Empty('Timeout after {}s waiting for event: {}'.format(
244 'Timeout after {}s waiting for event: {}'.format(
282 raise queue.Empty('Timeout after {}s waiting for event: {}'.format(
Dadb.py121 self.adb_str = "adb -s {}".format(serial)
172 self.forward("tcp:{} tcp:{}".format(host_port, device_port))
181 self.reverse("tcp:{} tcp:{}".format(device_port, host_port))
/test/vts/harnesses/tradefed/src/com/android/tradefed/targetprep/
DVtsPythonVirtualenvPreparer.java135 CLog.i(String.format("Loaded %s: %s", LOCAL_PYPI_PATH_KEY, mLocalPypiPath)); in setLocalPypiPath()
175 CLog.i(String.format("Failed to read dir: %s. Result %s. stdout: %s, stderr: %s", in dirExistsAndHaveReadAccess()
188 CLog.i(String.format( in dirExistsAndHaveReadAccess()
225 CLog.i(String.format("Result %s. stdout: %s, stderr: %s", result.getStatus(), in installDeps()
228 CLog.e(String.format("Installing %s from %s failed", dep, mLocalPypiPath)); in installDeps()
234 CLog.i(String.format("Result %s. stdout: %s, stderr: %s", result.getStatus(), in installDeps()
242 throw new TargetSetupError(String.format( in installDeps()
247 CLog.i(String.format("Result %s. stdout: %s, stderr: %s", in installDeps()
280 CLog.e(String.format("Failed to create virtualenv with : %s.", virtualEnvPath)); in startVirtualenv()
DVtsTestPlanResultReporter.java114 CLog.e(String.format("Invalid keys %s", currentLine)); in tearDown()
122 CLog.d(String.format("Can't read the test plan result file %s", repotFilePath)); in tearDown()
126 CLog.d(String.format("Delete report dir %s", reportDir.getAbsolutePath())); in tearDown()
/test/vts-testcase/hal/wifi/V1_0/host/
DVtsHalWifiV1_0TestCase.py35 new_cmd = [('{cmd}{nan_on}').format(
/test/vts-testcase/kernel/ltp/shell_environment/
Dshell_environment.py81 "\n Command results: {}".format(results))
94 "\n CPU info: '{}'".format(cpu_info))
/test/vts/testcases/template/binary_test/
Dbinary_test_case.py89 return getattr(self, '_full_name', '{}.{}'.format(
111 envp = ('{}{}'.format(envp, ld_library_path)
116 return '{working_directory}{envp}{cmd}{args}'.format(
/test/vts-testcase/hal/media/omx/V1_0/host/
DVtsHalMediaOmxV1_0TestCase.py44 new_cmd = [('{cmd} -I {instance} -C {component} -R {role}').format(
/test/vts/harnesses/tradefed/src/com/android/tradefed/util/
DVtsDashboardUtil.java89 CLog.e(String.format("Service key file %s doesn't exist.", keyFilePath)); in GetToken()
91 CLog.e(String.format("Can't read the service key file, %s", keyFilePath)); in GetToken()
123 CLog.i(String.format("Upload command: %s", commandTemplate)); in Upload()
/test/vts-testcase/hal/radio/deprecated/V1_0/host/
DVtsHalOemHookV1_0HostTest.py51 return (re.search(r"\b({0})\b".format(api_name), self._vintf_xml)
/test/vts-testcase/kernel/cpu_profiling/
DCpuProfilingTest.py43 logging.info("Skip test on device {}.".format(self.product_type))
/test/vts/harnesses/tradefed/src/com/android/compatibility/common/tradefed/result/
DVtsResultReporter.java44 CLog.w(String.format( in addDeviceBuildInfoToResult()

12