Home
last modified time | relevance | path

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

123456789

/development/tools/winscope/src/trace/tree_node/
Dformatters_test.ts42 DEFAULT_PROPERTY_FORMATTER.format(
47 DEFAULT_PROPERTY_FORMATTER.format(
52 DEFAULT_PROPERTY_FORMATTER.format(
57 DEFAULT_PROPERTY_FORMATTER.format(
65 DEFAULT_PROPERTY_FORMATTER.format(
73 DEFAULT_PROPERTY_FORMATTER.format(
78 DEFAULT_PROPERTY_FORMATTER.format(
83 DEFAULT_PROPERTY_FORMATTER.format(
93 COLOR_FORMATTER.format(TreeNodeUtils.makeColorNode(-1, -1, -1, 1)),
96 COLOR_FORMATTER.format(TreeNodeUtils.makeColorNode(1, 1, 1, 0)),
[all …]
Dformatters.ts34 format(node: PropertyTreeNode): string; method
38 format(node: PropertyTreeNode): string { method in DefaultPropertyFormatter
56 format(node: PropertyTreeNode): string { method in ColorFormatter
79 format(node: PropertyTreeNode): string { method in RectFormatter
94 format(node: PropertyTreeNode): string { method in BufferFormatter
105 format(node: PropertyTreeNode): string { method in LayerIdFormatter
113 format(node: PropertyTreeNode): string { method in MatrixFormatter
145 format(node: PropertyTreeNode): string { method in TransformFormatter
155 format(node: PropertyTreeNode): string { method in SizeFormatter
164 format(node: PropertyTreeNode): string { method in PositionFormatter
[all …]
/development/tools/winscope/src/common/
Dtime_test.ts63 expect(TimestampConverterUtils.makeElapsedTimestamp(0n).format()).toEqual(
67 TimestampConverterUtils.makeElapsedTimestamp(1000n).format(),
72 ).format(),
76 TimestampConverterUtils.makeElapsedTimestamp(SECOND - 1n).format(),
79 TimestampConverterUtils.makeElapsedTimestamp(SECOND).format(),
84 ).format(),
88 TimestampConverterUtils.makeElapsedTimestamp(MINUTE - 1n).format(),
91 TimestampConverterUtils.makeElapsedTimestamp(MINUTE).format(),
96 ).format(),
101 ).format(),
[all …]
Dutc_offset_test.ts25 expect(utcOffset.format()).toEqual('UTC+02:00');
30 expect(utcOffset.format()).toEqual('UTC+11:00');
35 expect(utcOffset.format()).toEqual('UTC+05:30');
40 expect(utcOffset.format()).toEqual('UTC-08:00');
45 expect(utcOffset.format()).toEqual('UTC-10:00');
50 expect(utcOffset.format()).toEqual('UTC-04:30');
Dtimestamp_converter_test.ts58 expect(timestamp.format()).toEqual('2022-07-31, 04:55:41.051');
67 expect(timestamp.format()).toEqual('2022-07-31, 04:55:41.056');
76 expect(timestamp.format()).toEqual('2022-07-31, 04:55:41.052');
84 expect(timestamp.format()).toEqual('100ns');
91 .format(),
96 .format(),
132 expect(timestamp.format()).toEqual('2022-07-31, 10:25:41.051');
141 expect(timestamp.format()).toEqual('2022-07-31, 10:25:41.056');
150 expect(timestamp.format()).toEqual('2022-07-31, 10:25:41.052');
158 expect(timestamp.format()).toEqual('100ns');
[all …]
Dtime.ts35 format(timestamp: Timestamp): string; method
78 format(): string { method in Timestamp
79 return this.formatter.format(this);
/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/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 …]
Dgen_buildfiles.py107 etc_pattern = '{}*'.format(os.path.splitext(etc_module)[0])
145 logging.info('Generating Android.bp for snapshot v{}'.format(
161 logging.info('Successfully generated {}'.format(self._root_bpfile))
166 logging.info('Generating common/Android.bp for snapshot v{}'.format(
196 binder32_suffix = '_{}'.format(
198 logging.info('Generating Android.bp for vndk_v{}_{}{}'.format(
265 logging.info('Successfully generated {}'.format(bpfile_path))
276 '{0}{0} DO NOT EDIT\n'.format(comment_char))
282 '}}\n'.format(
309 return {'{notice_dir}/{license_text}'.format(
[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))
110 logging.info('Creating {} directory to gather all NOTICE files...'.format(
[all …]
Dutils.py47 format='%(levelname)-8s [%(filename)s:%(lineno)d] %(message)s',
52 logging.debug('Running `{}`'.format(' '.join(cmd)))
57 logging.debug('Running `{}`'.format(' '.join(cmd)))
59 logging.debug('Output: `{}`'.format(output))
71 'It must be no smaller than {min_vndk}.'.format(
109 for file in glob.glob('{}/*'.format(install_dir)):
Dcollect_licenses.py102 logging.info('Reading {}'.format(path))
108 license_text_path = '{notice_dir}/{module}.txt'.format(
111 logging.info('Reading {}'.format(license_text_path))
122 help='VNDK snapshot version to check, e.g. "{}".'.format(
140 install_dir = os.path.join(PREBUILTS_VNDK_DIR, 'v{}'.format(vndk_version))
/development/scripts/
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 …]
Dlldbclient.py74 line, _ = device.shell(["grep", "-e", "^TracerPid:", "/proc/{}/status".format(pid)])
139 sys.exit(msg.format(target_device, ", ".join(n if n else "None" for n in names)))
150 msg = "failed to find running process {}".format(process_name)
154 msg = "multiple processes match '{}': {}".format(process_name, pids)
254 "please provide an absolute path.".format(args.run_cmd[0]))
264 sys.exit("failed to pull binary for PID {}".format(pid))
268 " symbols may not be available.".format(sysroot))
322 "name": "(lldbclient.py) Attach {} (port: {})".format(binary_name.split("/")[-1], port),
327 …"initCommands": ['settings append target.exec-search-paths {}'.format(' '.join(solib_search_path))…
328 "targetCreateCommands": ["target create {}".format(binary_name),
[all …]
Dgdbclient.py74 line, _ = device.shell(["grep", "-e", "^TracerPid:", "/proc/{}/status".format(pid)])
139 sys.exit(msg.format(target_device, ", ".join(n if n else "None" for n in names)))
150 msg = "failed to find running process {}".format(process_name)
154 msg = "multiple processes match '{}': {}".format(process_name, pids)
254 "please provide an absolute path.".format(args.run_cmd[0]))
264 sys.exit("failed to pull binary for PID {}".format(pid))
268 " symbols may not be available.".format(sysroot))
322 "name": "(lldbclient.py) Attach {} (port: {})".format(binary_name.split("/")[-1], port),
327 …"initCommands": ['settings append target.exec-search-paths {}'.format(' '.join(solib_search_path))…
328 "targetCreateCommands": ["target create {}".format(binary_name),
[all …]
/development/python-packages/gdbrunner/gdbrunner/
D__init__.py66 sys.exit(msg.format(adb_path))
200 gdbserver_cmd.extend(["--once", "+{}".format(debug_socket)])
207 …forward_gdbserver_port(device, local=port, remote="localfilesystem:{}".format(chroot + debug_socke…
214 print("Redirecting lldb-server output to {}".format(gdbserver_output_path))
218 print("Redirecting gdbserver output to {}".format(gdbserver_output_path))
241 device.forward("tcp:{}".format(local), remote)
242 atexit.register(lambda: device.forward_remove("tcp:{}".format(local)))
266 raise ValueError("'{}' is not an absolute path".format(executable_path))
282 file_name = "gdbclient-binary-{}".format(os.getppid())
283 remote_temp_path = "/data/local/tmp/{}".format(file_name)
[all …]
/development/tools/winscope/src/adb/
Dwinscope_proxy.py619 log.debug("Loaded token {} from {}".format(
627 log.debug("Created and saved token {} to {}".format(
632 log.error("Unable to save persistent token {} to {}".format(
708 return self.__bad_request("Unknown endpoint /{}/".format(endpoint_name))
724 log.debug('Error executing adb command: {}\n{}'.format(
726 raise AdbError('Error executing adb command: {}\n{}'.format(
729 log.debug('Error executing adb command: {}\n{}'.format(
731 raise AdbError('Error executing adb command: adb {}\n{}'.format(
742 log.debug('Error executing adb command: adb {}\n'.format(params) + err.decode(
744 raise AdbError('Error executing adb command: adb {}\n'.format(params) + err.decode(
[all …]
/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/repo_pull/
Dgerrit.py286 raise KeyError('Domain {} not found'.format(domain))
321 .format(domain, args.gitcookies), file=sys.stderr)
458 url = '{}/a/changes/{}/revisions/current/review'.format(
473 url = '{}/a/changes/{}/submit'.format(gerrit_url, change_id)
481 url = '{}/a/changes/{}/abandon'.format(gerrit_url, change_id)
493 url = '{}/a/changes/{}/restore'.format(gerrit_url, change_id)
501 url = '{}/a/changes/{}'.format(gerrit_url, change_id)
509 url = '{}/a/changes/{}/topic'.format(gerrit_url, change_id)
517 url = '{}/a/changes/{}/topic'.format(gerrit_url, change_id)
526 url = '{}/a/changes/{}/hashtags'.format(gerrit_url, change_id)
[all …]
/development/tools/external_crates/crate_health/src/
Dreports.rs41 out.push_str(&format!("{}", a.len())); in len_formatter()
51 format!("<a href=\"{}\">{}</a>", url, text) in linkify()
85 .map_or(format!("{}", krate.path()), |url| linkify(&krate.path(), &url)), in table()
108 .map_or(format!("{}", krate.path()), |url| linkify(&krate.path(), &url)), in health_table()
115 format!( in health_table()
154 .map_or(format!("{}", source.path()), |url| linkify(&source.path(), &url)), in migratable_table()
179 .map_or(format!("{}", krate.path()), |url| linkify(&krate.path(), &url)), in migration_ineligible_table()
210 .map_or(format!("{}", source.path()), |url| linkify(&source.path(), &url)), in migration_eligible_table()
224 format!( in migration_eligible_table()
295 format!("<details><summary>No</summary><pre>{}</pre></details>", details) in prefer_yes_or_summarize()
[all …]
Dmigration.rs48 .context(format!("Failed to get file name for {}", entry.display()))? in copy_customizations()
51 copy_dir(&entry, &dest_dir_absolute.join(filename)).context(format!( in copy_customizations()
61 copy(&entry, dest_dir_absolute.join(filename)).context(format!( in copy_customizations()
106 .context(format!("Failed to remove {}", pseudo_crate.get_path()))?; in migrate()
Dcrate_type.rs116 format!("{}-{}", self.name(), self.version().to_string()) in staging_dir_name()
122 Some(format!( in aosp_url()
127 Some(format!( in aosp_url()
140 format!("https://crates.io/crates/{}", self.name()) in crates_io_url()
197 .context(format!("Failed to remove {}", staging_path_absolute.display()))?; in stage_crate()
198 copy_dir(&self.path().abs(), &staging_path_absolute).context(format!( in stage_crate()
226 .context(format!("Failed to read_dir {}", patch_dir_absolute.display()))? in apply_patches()
301 format!("[package]\nname = \"{}\"\nversion = \"{}\"\n", name, version), in write_test_manifest()
/development/tools/winscope/src/parsers/surface_flinger/computations/
Dvisibility_properties_computation_test.ts46 activeBuffer: {width: 1, height: 1, stride: 1, format: 1},
97 activeBuffer: {width: 1, height: 1, stride: 1, format: 1},
144 activeBuffer: {width: 1, height: 1, stride: 1, format: 1},
173 activeBuffer: {width: 1, height: 1, stride: 1, format: 1},
203 activeBuffer: {width: 1, height: 1, stride: 1, format: 1},
259 activeBuffer: {width: 1, height: 1, stride: 1, format: 1},
359 activeBuffer: {width: 1, height: 1, stride: 1, format: 1},
409 activeBuffer: {width: 1, height: 1, stride: 1, format: 1},
460 activeBuffer: {width: 1, height: 1, stride: 1, format: 1},
522 activeBuffer: {width: 1, height: 1, stride: 1, format: 1},
[all …]
/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/AconfigDemo/src/
Dlib.rs9 format!( in get_flag_via_static_interface()
19 format!("flag value: {}", if provider.append_injected_content() { "true" } else { "false" }) in get_flag_via_injection_interface()

123456789