Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 62) sorted by relevance

123

/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DApiFile.java699 private static Object parseValue(String type, String val) { in parseValue() argument
700 if (val != null) { in parseValue()
703 return "true".equals(val) ? Boolean.TRUE : Boolean.FALSE; in parseValue()
705 return Integer.valueOf(val); in parseValue()
707 return Integer.valueOf(val); in parseValue()
709 return Integer.valueOf(val); in parseValue()
711 return Long.valueOf(val.substring(0, val.length() - 1)); in parseValue()
713 switch (val) { in parseValue()
724 return Float.valueOf(val); in parseValue()
727 switch (val) { in parseValue()
[all …]
/tools/acloud/public/
Dconfig_test.py140 {key: val for key, val in six.iteritems(cfg.metadata_variable)},
211 key: val
212 for key, val in six.iteritems(cfg.default_usr_cfg.metadata_variable)
218 {key: val for key, val in six.iteritems(cfg.device_resolution_map)},
221 key: val
222 for key, val in six.iteritems(cfg.device_default_orientation_map)
226 key: val
227 for key, val in six.iteritems(cfg.valid_branch_and_min_build_id)
253 {key: val for key, val in six.iteritems(cfg.common_hw_property_map)},
/tools/acloud/public/actions/
Dcreate_cuttlefish_action.py101 key: val for key, val in utils.GetDictItems(self.build_info) if val}
104 {"kernel_%s" % key: val
105 for key, val in utils.GetDictItems(self.kernel_build_info) if val}
108 {"system_%s" % key: val
109 for key, val in utils.GetDictItems(self.system_build_info) if val}
Dcreate_goldfish_action.py127 key: val for key, val in utils.GetDictItems(self.build_info) if val}
130 {"emulator_%s" % key: val
131 for key, val in utils.GetDictItems(self.emulator_build_info) if val}
135 {"kernel_%s" % key: val
136 for key, val in utils.GetDictItems(self.kernel_build_info) if val}
Dremote_instance_cf_device_factory.py311 key: val for key, val in self._avd_spec.remote_image.items() if val}
318 {"kernel_%s" % key: val
319 for key, val in self._avd_spec.kernel_build_info.items() if val}
322 {"system_%s" % key: val
323 for key, val in self._avd_spec.system_build_info.items() if val}
/tools/repohooks/tools/
Dcpplint.py572 def ProcessHppHeadersOption(val): argument
575 _hpp_headers = set(val.split(','))
5977 name, _, val = line.partition('=')
5979 val = val.strip()
5983 cfg_filters.append(val)
5992 pattern = re.compile(val)
6000 (filename, cfg_file, base_name, val))
6005 _line_length = int(val)
6011 _root = os.path.join(os.path.dirname(cfg_file), val)
6013 ProcessHppHeadersOption(val)
[all …]
Dcheckpatch.pl615 my $val = "";
627 $val .= '\s*\|\s*' if ($val ne "");
628 $val .= $match;
5466 my $val = $1;
5470 "Comparison to NULL could be written \"${equal}${val}\"\n" . $herecurr) &&
5472 $fixed[$fixlinenr] =~ s/\b\Q$val\E\s*(?:==|\!=)\s*NULL\b/$equal$val/;
6427 my $val = $1;
6428 $val = $6 if ($skip_args ne "");
6429 if (!($func =~ /^(?:module_param|proc_create)/ && $val eq "0") &&
6430 (($val =~ /^$Int$/ && $val !~ /^$Octal$/) ||
[all …]
/tools/dexter/slicer/export/slicer/
Dcode_ir.h251 bool Visit(T* val) override { in CastOperand()
252 converted = val; in CastOperand()
274 bool Visit(String* val) override {
275 converted = val;
278 bool Visit(Type* val) override {
279 converted = val;
282 bool Visit(Field* val) override {
283 converted = val;
286 bool Visit(Method* val) override {
287 converted = val;
/tools/test/connectivity/tools/
Dread_acts_results.py107 print(' '.join((val.ljust(width) for val, width in zip(row,
120 print(' '.join((val.ljust(width) for val, width in zip(row,
126 print(' '.join((val.ljust(width) for val, width in zip(row,
132 print(' '.join((val.ljust(width)
133 for val, width in zip(row, widths))))
/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/
DWifiUtil.java96 String val = mArguments.getString(arg); in expectString() local
97 if (TextUtils.isEmpty(val)) { in expectString()
101 return val; in expectString()
113 String val = mArguments.getString(arg); in getString() local
114 if (TextUtils.isEmpty(val)) { in getString()
118 return val; in getString()
130 String val = expectString(arg); in expectInteger() local
133 intVal = Integer.parseInt(val); in expectInteger()
/tools/tradefederation/core/src/com/android/tradefed/config/
DDynamicRemoteFileResolver.java212 Object val = entry.getValue(); in validateRemoteFilePath() local
215 Object finalVal = val; in validateRemoteFilePath()
223 if (val instanceof File) { in validateRemoteFilePath()
224 val = resolveRemoteFiles((File) val, option); in validateRemoteFilePath()
225 if (val != null) { in validateRemoteFilePath()
226 downloadedFiles.add((File) val); in validateRemoteFilePath()
227 finalVal = val; in validateRemoteFilePath()
/tools/repohooks/rh/
Dhooks.py87 for key, val in replacements.items():
90 if isinstance(val, string_types):
91 ret.append(val)
93 ret.extend(val)
99 val = self.get(m.group(1))
100 if isinstance(val, string_types):
101 return val
102 return ' '.join(val)
/tools/test/connectivity/acts/tests/google/wifi/
DWifiDppTest.py465 val = dut_event[self.DPP_TEST_EVENT_DATA][
467 if val == 0:
473 val = dut_event[self.DPP_TEST_EVENT_DATA][self.DPP_TEST_MESSAGE_STATUS]
474 if val == 0:
476 elif val == 1:
587 val = dut_event[self.DPP_TEST_EVENT_DATA][self.DPP_TEST_MESSAGE_STATUS]
588 if val == 0:
590 elif val == 1:
DWifiRoamingPerformanceTest.py270 for val in vals:
271 if val in {0} or math.isnan(val):
620 val for val in temp_section
DWifiRssiTest.py164 for key, val in postprocessed_results.items():
168 filtered_error = [x for x in val['error'] if not math.isnan(x)]
235 for key, val in postprocessed_results.items():
271 for key, val in postprocessed_results.items():
347 for key, val in rssi_time_series.items():
/tools/tradefederation/core/src/com/android/tradefed/util/
DTimeVal.java93 timeValue = val(m.group("d")); in fromString()
97 timeValue = LongMath.checkedAdd(timeValue, val(m.group("h"))); in fromString()
101 timeValue = LongMath.checkedAdd(timeValue, val(m.group("m"))); in fromString()
105 timeValue = LongMath.checkedAdd(timeValue, val(m.group("s"))); in fromString()
109 timeValue = LongMath.checkedAdd(timeValue, val(m.group("ms"))); in fromString()
122 static long val(String str) throws NumberFormatException { in val() method in TimeVal
DSubprocessTestResultsParser.java610 String val = attributes.remove(key.toString()); in handleEvent() local
613 InvocationMetricLogger.addInvocationMetrics(key, Long.parseLong(val)); in handleEvent()
615 CLog.d("Key %s doesn't have a number value, was: %s.", key, val); in handleEvent()
617 InvocationMetricLogger.addInvocationMetrics(key, val); in handleEvent()
620 InvocationMetricLogger.addInvocationMetrics(key, val); in handleEvent()
624 String val = attributes.get(TfObjectTracker.TF_OBJECTS_TRACKING_KEY); in handleEvent() local
625 for (String pair : Splitter.on(",").split(val)) { in handleEvent()
DSimplePerfResult.java85 protected void addBenchmarkMetrics(String key, String val) { in addBenchmarkMetrics() argument
86 benchmarkMetrics.put(key, val); in addBenchmarkMetrics()
98 protected void addBenchmarkComment(String key, String val) { in addBenchmarkComment() argument
99 benchmarkComments.put(key, val); in addBenchmarkComment()
/tools/test/connectivity/acts/framework/acts/test_utils/power/cellular/
Dcellular_power_base_test.py400 for val in calibration_table.values():
401 if isinstance(val, dict):
402 self.ensure_valid_calibration_table(val)
403 elif not isinstance(val, float) and not isinstance(val, int):
405 elif val < 0.0:
/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DProtoResultParser.java606 for (String val : values) { in mergeInvocationContext()
609 InvocationMetricLogger.addInvocationMetrics(key, Long.parseLong(val)); in mergeInvocationContext()
611 CLog.d("Key %s doesn't have a number value, was: %s.", key, val); in mergeInvocationContext()
612 InvocationMetricLogger.addInvocationMetrics(key, val); in mergeInvocationContext()
615 InvocationMetricLogger.addInvocationMetrics(key, val); in mergeInvocationContext()
621 for (String val : values) { in mergeInvocationContext()
622 for (String pair : Splitter.on(",").split(val)) { in mergeInvocationContext()
/tools/test/connectivity/acts/framework/acts/controllers/
Darduino_wifi_dongle.py297 val = data.split(':')[-1].lstrip().rstrip()
306 self.ip_addr = None if val == '0.0.0.0' else val
308 self.ssid = val
310 self.status = int(val)
312 self.ping = int(val) != 0
/tools/test/connectivity/acts/framework/tests/event/
Devent_bus_test.py209 val = event_bus.unregister(subscription)
211 self.assertTrue(val)
225 val = event_bus.unregister(registration_id)
227 self.assertTrue(val)
239 val = event_bus.unregister(9)
240 self.assertFalse(val)
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/api/lvpm_stock/
Dmonsoon_proxy.py315 val = 1023 - int((i / 8) * 1023)
316 self._send_struct('BBB', 0x01, 0x0a, val & 0xff)
317 self._send_struct('BBB', 0x01, 0x0b, val >> 8)
324 val = 1023 - int((current / 8) * 1023)
325 self._send_struct('BBB', 0x01, 0x08, val & 0xff)
326 self._send_struct('BBB', 0x01, 0x09, val >> 8)
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandFileParser.java172 public void add(int idx, boolean val) { in add() argument
173 mBitmask.add(idx, val); in add()
174 if (val) { in add()
186 public void addN(int idx, int count, boolean val) { in addN() argument
188 add(idx, val); in addN()
/tools/test/connectivity/acts_tests/tests/google/gnss/
DAGNSSPerformanceTest.py148 for key, val in results.items():
156 if isinstance(val, dict):
157 metric = val['avg']
159 metric = val

123