Home
last modified time | relevance | path

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

1234567

/development/samples/browseable/Timer/src/com.example.android.wearable.timer/util/
DTimerFormat.java49 String format; in setTime() local
85 format = showNeg ? NEG_TWO_DIGITS : TWO_DIGITS; in setTime()
86 mHours = String.format(format, hours); in setTime()
88 format = showNeg ? NEG_ONE_DIGIT : ONE_DIGIT; in setTime()
89 mHours = String.format(format, hours); in setTime()
96 format = (showNeg && hours == 0) ? NEG_TWO_DIGITS : TWO_DIGITS; in setTime()
97 mMinutes = String.format(format, minutes); in setTime()
99 format = (showNeg && hours == 0) ? NEG_ONE_DIGIT : ONE_DIGIT; in setTime()
100 mMinutes = String.format(format, minutes); in setTime()
104 mSeconds = String.format(TWO_DIGITS, seconds); in setTime()
[all …]
/development/scripts/
Dlldbclient.py60 return path.format(root, arch, "64")
62 return path.format(root, arch, "")
88 line, _ = device.shell(["grep", "-e", "^TracerPid:", "/proc/{}/status".format(pid)])
140 sys.exit(msg.format(target_device, ", ".join(names)))
146 msg = "failed to find running process {}".format(process_name)
150 msg = "multiple processes match '{}': {}".format(process_name, pids)
250 "please provide an absolute path.".format(args.run_cmd[0]))
260 sys.exit("failed to pull binary for PID {}".format(pid))
264 " symbols may not be available.".format(sysroot))
276 "name": "(lldbclient.py) Attach {} (port: {})".format(binary_name.split("/")[-1], port),
[all …]
Dgdbclient.py60 return path.format(root, arch, "64")
62 return path.format(root, arch, "")
88 line, _ = device.shell(["grep", "-e", "^TracerPid:", "/proc/{}/status".format(pid)])
140 sys.exit(msg.format(target_device, ", ".join(names)))
146 msg = "failed to find running process {}".format(process_name)
150 msg = "multiple processes match '{}': {}".format(process_name, pids)
250 "please provide an absolute path.".format(args.run_cmd[0]))
260 sys.exit("failed to pull binary for PID {}".format(pid))
264 " symbols may not be available.".format(sysroot))
276 "name": "(lldbclient.py) Attach {} (port: {})".format(binary_name.split("/")[-1], port),
[all …]
Dget_rust_pkg.py83 print("INFO: {}".format(msg), flush=True)
88 print("INFO: now {} in {}:{}".format(len(deps), kind, set2list(deps)))
108 echo(args, "checking version={} id={}".format(check_version, check_id))
126 url = "https://crates.io/api/v1/crates/{}/{}".format(base_name, version)
127 echo(args, "try to get dl_path from {}".format(url))
131 print("ERROR: cannot find version {} of package {}".format(
134 echo(args, "found download path for version {}".format(version))
141 print("ERROR: cannot find download path for '{}'".format(pkg))
145 echo(args, "fetch tar file from {}".format(url))
148 echo(args, "extract tar file {} into {}".format(tar_file, tmp_dir))
[all …]
/development/vndk/snapshot/
Dcheck_gpl_license.py63 '{manifest} not found at {manifest_file}'.format(
117 logging.info('Checking if revision {rev} exists in {proj}'.format(
121 'git', '-C', path, 'rev-list', 'HEAD..{}'.format(revision)
125 logging.error('Error: {}'.format(error))
131 format(proj=git_project_path, rev=output))
135 'Found revision {rev} in project {proj}'.format(
148 format(rev=revision, proj=git_project_path))
152 '{}^2'.format(revision)]
157 '{err}'.format(
160 'in the current branch'.format(revision))
[all …]
Dupdate.py41 logging.info('Creating branch {branch} in {dir}'.format(
47 logging.info('Removing any old files in {}'.format(install_dir))
48 for file in glob.glob('{}/*'.format(install_dir)):
55 logging.error('Error: {}'.format(error))
78 logging.info('Fetching {pattern} from {branch} (bid: {build})'.format(
82 manifest_pattern = 'manifest_{}.xml'.format(build)
83 logging.info('Fetching {file} from {branch} (bid: {build})'.format(
90 logging.info('Fetching local VNDK snapshot from {}'.format(local_dir))
95 logging.info('Unzipping VNDK snapshot: {}'.format(artifact))
103 logging.info('Creating {} directory to gather all NOTICE files...'.format(
[all …]
Dgen_buildfiles.py122 etc_pattern = '{}*'.format(os.path.splitext(etc_module)[0])
160 logging.info('Generating Android.bp for snapshot v{}'.format(
179 logging.info('Successfully generated {}'.format(self._root_bpfile))
184 logging.info('Generating common/Android.bp for snapshot v{}'.format(
207 binder32_suffix = '_{}'.format(
209 logging.info('Generating Android.bp for vndk_v{}_{}{}'.format(
274 logging.info('Successfully generated {}'.format(bpfile_path))
285 '{0}{0} DO NOT EDIT\n'.format(comment_char))
312 versioned_name = '{}.{}{}'.format(name, self._vndk_version, ext)
319 binder_suffix = '.{}'.format(utils.BINDER32) if is_binder32 else ''
[all …]
Dutils.py46 format='%(levelname)-8s [%(filename)s:%(lineno)d] %(message)s',
51 logging.debug('Running `{}`'.format(' '.join(cmd)))
56 logging.debug('Running `{}`'.format(' '.join(cmd)))
58 logging.debug('Output: `{}`'.format(output))
70 'It must be no smaller than {min_vndk}.'.format(
108 for file in glob.glob('{}/*'.format(install_dir)):
/development/python-packages/gdbrunner/
D__init__.py65 sys.exit(msg.format(adb_path))
180 gdbserver_cmd.extend(["--once", "+{}".format(debug_socket)])
187 forward_gdbserver_port(device, local=port, remote="localfilesystem:{}".format(debug_socket))
195 print("Redirecting lldb-server output to {}".format(gdbserver_output_path))
199 print("Redirecting gdbserver output to {}".format(gdbserver_output_path))
219 device.forward("tcp:{}".format(local), remote)
220 atexit.register(lambda: device.forward_remove("tcp:{}".format(local)))
244 raise ValueError("'{}' is not an absolute path".format(executable_path))
260 file_name = "gdbclient-binary-{}".format(os.getppid())
261 remote_temp_path = "/data/local/tmp/{}".format(file_name)
[all …]
/development/gsi/gsi_util/gsi_util/checkers/
Dsepolicy_checker.py86 raise RuntimeError('Failed to open: {}'.format(_VENDOR_VERSION_FILE))
125 mapping_sepolicy_cil = '/system/etc/selinux/mapping/{}.cil'.format(
138 raise RuntimeError('Failed to open: {}'.format(_PLAT_SEPOLICY_CIL))
140 raise RuntimeError('Failed to open: {}'.format(mapping_sepolicy_cil))
155 'Either {!r} or {!r}/{!r} should present'.format(
Dvintf_checker.py69 raise RuntimeError('Failed to open: {}'.format(manifest_filename))
71 raise RuntimeError('Failed to open: {}'.format(matrix_filename))
Dchecker.py87 raise RuntimeError('Unknown check item: {}'.format(check_item))
91 'Duplicated check items: {} in the check list'.format(check_item))
/development/tools/mkstubs/src/com/android/mkstubs/sourcer/
DOutput.java51 public void write(String format, Object... args) { in write() argument
53 mWriter.write(String.format(format, args)); in write()
/development/tools/winscope/adb_proxy/
Dwinscope_proxy.py70 format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
306 log.debug("Loaded token {} from {}".format(
314 log.debug("Created and saved token {} to {}".format(
319 log.error("Unable to save persistent token {} to {}".format(
398 return self.__bad_request("Unknown endpoint /{}/".format(endpoint_name))
414 log.debug('Error executing adb command: {}\n{}'.format(
416 raise AdbError('Error executing adb command: {}\n{}'.format(
419 log.debug('Error executing adb command: {}\n{}'.format(
421 raise AdbError('Error executing adb command: adb {}\n{}'.format(
432 log.debug('Error executing adb command: adb {}\n'.format(params) + err.decode(
[all …]
/development/gsi/gsi_util/gsi_util/commands/
Dcheck_compat.py70 print(self._OUTPUT_FORMAT.format(title, result_str))
72 print(self._ERR_MSE_FORMAT.format(stderr))
84 summary_result_str = '{}/{}'.format(num_pass_items, num_all_items)
85 print(self._OUTPUT_FORMAT.format(self._SUMMARY_NAME, summary_result_str))
102 return ', '.join('{!r}'.format(x.check_item) for x in check_list)
172 'select one from: {}\n'.format(_format_check_list(
/development/gsi/gsi_util/
Dbuild.py88 print 'Copy {}...'.format(item.dest)
94 print 'Archive to {}...'.format(filename)
97 print 'Add {}'.format(f)
100 print 'Add {}'.format(f[0])
114 print ' {:20} <== {}'.format(item.dest, item.src)
117 print ' {}'.format(item)
Dgsi_util.py44 logging.basicConfig(format=self._LOGGING_FORMAT, level=self._LOGGING_LEVEL)
49 version='%(prog)s {}'.format(self._GSI_UTIL_VERSION))
/development/vendor_snapshot/
Dupdate.py416 logging.info('Generating Android.bp to: {}'.format(f.name))
436 logging.debug('found {} installed files'.format(len(installed_files)))
442 logging.debug('{} {} {} {} {}'.format(
455 logging.debug(' {} {}'.format(key, list))
463 logging.debug(' {} {}'.format(key, dirs))
467 logging.debug(' scanning {}'.format(dir_path))
474 logging.debug(' arch {}'.format(arch))
475 logging.debug(' name {}'.format( name))
476 logging.debug(' is_cfi {}'.format(is_cfi))
479 logging.debug(' src {}'.format(src))
[all …]
/development/gsi/gsi_util/gsi_util/utils/
Ddebugfs.py37 debugfs_command = 'dump {} {}'.format(file_spec, out_file)
57 debugfs_command = 'stat {}'.format(file_spec)
70 assert m is not None, '{} outputs with an unknown format.'.format(_DEBUGFS)
/development/tools/repo_pull/
Dgerrit.py143 .format(domain, args.gitcookies), file=sys.stderr)
228 url = '{}/a/changes/{}/revisions/current/review'.format(
243 url = '{}/a/changes/{}/submit'.format(gerrit_url, change_id)
251 url = '{}/a/changes/{}/abandon'.format(gerrit_url, change_id)
263 url = '{}/a/changes/{}/restore'.format(gerrit_url, change_id)
271 url = '{}/a/changes/{}/topic'.format(gerrit_url, change_id)
279 url = '{}/a/changes/{}/topic'.format(gerrit_url, change_id)
288 url = '{}/a/changes/{}/hashtags'.format(gerrit_url, change_id)
302 url = '{}/a/changes/{}/revisions/current/review'.format(
315 url = '{}/a/changes/{}/reviewers/{}/delete'.format(
[all …]
Drepo_patch.py69 print('{:>{}}/{} | {} {}'.format(
74 with open('{}.patch'.format(change['_number']), 'wb') as output_file:
/development/gsi/gsi_util/gsi_util/mounters/
Dcomposite_mounter.py60 raise ValueError('Wrong partition name "{}"'.format(partition))
66 path_prefix = '/{}/'.format(partition)
76 raise ValueError('Unknown target "{}"'.format(mount_target))
126 mount_point = '/{}/'.format(partition)
/development/tools/core_connectivity/
Dcheck_style.sh26 $ANDROID_BUILD_TOP/prebuilts/clang/host/linux-x86/clang-stable/bin/git-clang-format \
30 local MSG=`git rev-list --format=%B --max-count=1 HEAD`
/development/samples/browseable/BluetoothLeGatt/src/com.example.android.bluetoothlegatt/
DBluetoothLeService.java131 int format = -1; in broadcastUpdate() local
133 format = BluetoothGattCharacteristic.FORMAT_UINT16; in broadcastUpdate()
136 format = BluetoothGattCharacteristic.FORMAT_UINT8; in broadcastUpdate()
139 final int heartRate = characteristic.getIntValue(format, 1); in broadcastUpdate()
140 Log.d(TAG, String.format("Received heart rate: %d", heartRate)); in broadcastUpdate()
148 stringBuilder.append(String.format("%02X ", byteChar)); in broadcastUpdate()
/development/samples/browseable/MidiScope/src/com.example.android.midiscope/
DLoggingReceiver.java48 sb.append(String.format("-----0----: ")); in onSend()
52 sb.append(String.format("%10.3f: ", seconds)); in onSend()

1234567