Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 236) sorted by relevance

12345678910

/tools/acloud/create/
Dcreate_args.py46 type=str,
53 type=str,
84 type=str,
93 type=str,
99 type=str,
105 type=str,
111 type=str,
137 type=str,
144 type=str,
149 type=str,
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DFieldItem.kt249 fun javaEscapeString(str: String): String { in javaEscapeString()
251 val n = str.length in javaEscapeString()
253 val c = str[i] in javaEscapeString()
271 fun javaUnescapeString(str: String): String { in javaUnescapeString()
272 val n = str.length in javaUnescapeString()
275 val c = str[i] in javaUnescapeString()
282 return str in javaUnescapeString()
285 val buf = StringBuilder(str.length) in javaUnescapeString()
296 val c = str[i] in javaUnescapeString()
346 str + "\"" in javaUnescapeString()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/data_storage/bigquery/
Dbigquery_logger_utils.py62 or isinstance(value, str) or isinstance(value, bool)):
66 return str(value)
105 if isinstance(value, str):
219 new_field_name += str(count)
223 new_field_name = new_field_name[:-1] + str(count)
280 row[key] = str(row[key])
431 print('Changed Fields: ' + str(changed_fields))
442 print('Retry ' + str(retry + 1))
476 str(queue_size),
477 str(ip_address),
[all …]
/tools/test/connectivity/acts/tests/google/ble/api/
DBleAdvertiseApiTest.py496 + str(exp_is_connectable))
528 str(exp_service_uuids))
559 str(exp_service_uuids))
593 str(exp_service_uuids))
622 str(exp_service_uuids))
1045 self.log.debug(str(error))
1063 self.log.debug(str(error))
1082 self.log.debug(str(error))
1102 self.log.debug(str(error))
1123 self.log.debug(str(error))
[all …]
/tools/acloud/public/
Dacloud_common.py29 type=str,
33 type=str,
39 type=str,
44 type=str,
51 type=str,
64 type=str,
69 type=str,
73 type=str,
79 type=str,
Dacloud_main.py144 type=str,
150 type=str,
160 type=str,
184 type=str,
189 type=str,
195 type=str,
203 type=str,
421 EXCEPTION_LOG = str(e)
/tools/acloud/internal/lib/
Dcheeps_compute_client_test.py85 'cvd_01_dpi': str(self.DPI),
86 'cvd_01_x_res': str(self.X_RES),
87 'cvd_01_y_res': str(self.Y_RES),
89 str(self.X_RES),
90 str(self.Y_RES),
91 str(self.DPI))}
96 avd_spec.hw_property = {constants.HW_X_RES: str(self.X_RES),
97 constants.HW_Y_RES: str(self.Y_RES),
98 constants.HW_ALIAS_DPI: str(self.DPI)}
Dcvd_compute_client_test.py96 "cvd_01_dpi": str(self.DPI),
102 "cvd_01_x_res": str(self.X_RES),
103 "cvd_01_y_res": str(self.Y_RES),
107 "cvd_01_blank_data_disk_size": str(self.EXTRA_DATA_DISK_SIZE_GB * 1024),
141 fake_avd_spec.hw_property[constants.HW_X_RES] = str(self.X_RES)
142 fake_avd_spec.hw_property[constants.HW_Y_RES] = str(self.Y_RES)
143 fake_avd_spec.hw_property[constants.HW_ALIAS_DPI] = str(self.DPI)
144 fake_avd_spec.hw_property[constants.HW_ALIAS_DISK] = str(
Dandroid_build_client.py89 logger.error("Downloading artifact failed: %s", str(e))
90 raise errors.DriverError(str(e))
127 if self.NO_ACCESS_ERROR_PATTERN in str(e):
130 error_msg %= (destination_bucket, str(e))
175 return str(build.get("builds")[0].get("buildId"))
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DStringSearch.kt32 fun isPrefix(str: CharSequence, pos: Int): Boolean { in isPrefix()
33 return (0 until (str.length - pos)).none { str[it] != str[pos + it] } in isPrefix()
188 fun searchFor(str: String) = StringSearch(str) in searchFor()
190 fun GenericByteBuffer.indexOf(str: String, endIndex: Long = this.length): Long { in searchFor()
193 return StringSearch(str).findInLoadedRegion(this, stopAt) in searchFor()
195 return StringSearch(str).find(this, 0, stopAt) in searchFor()
198 fun GenericByteBuffer.contains(str: String, endIndex: Long = this.length): Boolean { in GenericByteBuffer()
199 return this.indexOf(str, endIndex) != -1L in GenericByteBuffer()
/tools/test/connectivity/acts/tests/google/wifi/
DWifiRvrTwTest.py163 self.log.info("Set dB to "+str(dB))
164 InputdB=str('V')+str(dB)+str(';')
194 self.log.info("Current dB = "+str(self.getdB(port)))
195 self.log.info("Fail to set Attenuator to "+str(dB)+", "
196 +str(retry)+" times try to reset")
231 self.log.info("Set angle to "+str(DG))
232 InputDG=str('DG')+str(DG)+str(';')
246 self.log.info('Current angle = '+str(self.getDG(port)))
247 self.log.info('Fail set angle to '+str(DG)+', '+str(retry)+' times try to reset')
251 self.log.info('Retry turntable fail for '+str(retry)+' cycles, end test!')
[all …]
/tools/test/connectivity/acts/tests/google/ble/bt5/
DBt5ScanTest.py115 self.log.info("LE 2M: " + str(sup2M) + ", LE Coded: " + str(
116 supCoded) + ", LE Extended Advertising: " + str(
117 supExt) + ", LE Periodic Advertising: " + str(supPeriodic) +
118 ", maximum advertising data length: " + str(maxDataLen))
126 self.log.info("LE 2M: " + str(sup2M) + ", LE Coded: " + str(
127 supCoded) + ", LE Extended Advertising: " + str(
128 supExt) + ", LE Periodic Advertising: " + str(supPeriodic) +
129 ", maximum advertising data length: " + str(maxDataLen))
414 str(address))
461 self.log.info("data: " + str(evt['data']))
[all …]
/tools/test/connectivity/acts/framework/acts/config/
Dentries.py32 type=str,
41 type=str,
67 type=str,
75 type=str,
84 type=str,
92 type=str,
100 type=str,
/tools/test/connectivity/acts/framework/acts/bin/
Dact.py17 from builtins import str
158 type=str,
165 type=str,
188 type=str,
194 type=str,
201 type=str,
210 type=str,
217 type=str,
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DArrayUtilTest.java46 String str = ArrayUtil.join(", ", list); in testJoinCollection() local
47 assertEquals(expected, str); in testJoinCollection()
56 String str = ArrayUtil.join(", ", (Object[]) ary); in testJoinArray() local
57 assertEquals(expected, str); in testJoinArray()
65 String str = ArrayUtil.join(", ", "alpha", "beta", "gamma"); in testJoinNormal() local
66 assertEquals(expected, str); in testJoinNormal()
/tools/loganalysis/tests/src/com/android/loganalysis/util/
DArrayUtilTest.java46 String str = ArrayUtil.join(", ", list); in testJoinCollection() local
47 assertEquals(expected, str); in testJoinCollection()
56 String str = ArrayUtil.join(", ", (Object[]) ary); in testJoinArray() local
57 assertEquals(expected, str); in testJoinArray()
65 String str = ArrayUtil.join(", ", "alpha", "beta", "gamma"); in testJoinNormal() local
66 assertEquals(expected, str); in testJoinNormal()
/tools/test/connectivity/acts/tests/google/ble/system_tests/
DBleStressTest.py172 str(advertise_callback), "onSuccess"])
181 str(error)]))
186 str(error)
225 str(advertise_callback), "onSuccess"])
234 str(error)]))
239 str(error)
255 str(error)]))
260 str(error)
/tools/test/connectivity/acts/framework/acts/test_utils/coex/
DCoexPerformanceBaseTest.py142 self.test_params["fixed_attenuation"][str(self.network["channel"])])
199 self.iperf_received.append(float(str(
223 float(str(self.iperf_variables.received[-1]).strip("Mb/s")))
237 json.dump({str(k): v for k, v in self.rvr.items()},
245 json.dump({str(k): v for k, v in self.rvr.items()}, result_file,
274 0, str("BT Attenuation @ %sdB" % bt_atten))
296 (throughput_results[str(bt_atten)]["fixed_attenuation"])
300 throughput_received.append(throughput_results[str(
423 performance_results[str(bt_atten)]))
439 performance_results[str(bt_atten)]["throughput_received"][
/tools/test/connectivity/acts/tests/google/tel/live/
DTelLiveVoiceTest.py143 extras={"fail_reason": str(result.result_value)})
173 extras={"fail_reason": str(result.result_value)})
205 extras={"fail_reason": str(result.result_value)})
360 extras={"fail_reason": str(result.result_value)})
391 extras={"fail_reason": str(result.result_value)})
431 extras={"fail_reason": str(result.result_value)})
471 extras={"fail_reason": str(result.result_value)})
494 extras={"fail_reason": str(result.result_value)})
502 extras={"fail_reason": str(result.result_value)})
541 extras={"fail_reason": str(result.result_value)})
[all …]
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DShortName.java198 private static void checkString(String str, String strType, in checkString() argument
201 if (str == null) in checkString()
204 if (str.length() < minLength) in checkString()
207 " characters: " + str); in checkString()
208 if (str.length() > maxLength) in checkString()
211 " characters: " + str); in checkString()
DDummy83BufferGenerator.java89 public static String stripLeadingPeriods(String str) { in stripLeadingPeriods() argument
90 final StringBuilder sb = new StringBuilder(str.length()); in stripLeadingPeriods()
92 for (int i=0; i < str.length(); i++) { in stripLeadingPeriods()
93 if (str.charAt(i) != '.') { //NOI18N in stripLeadingPeriods()
94 sb.append(str.substring(i)); in stripLeadingPeriods()
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dbt_contacts_utils.py122 str(len(pce_contacts))))
125 str(len(set(pce_contacts).intersection(set(pse_contacts))))))
127 str(len(differences))))
141 self.phone_number = re.sub(r"\D", "", str(phone_number))
191 str(phone.phone_type), phone.phone_number))
265 contact_file.write(str(card))
372 new_call_log["type"] = str(call_log_type)
374 new_call_log["time"] = str(call_time)
/tools/test/connectivity/acts/tests/google/bt/
Drelay_tool.py113 print('%s%s: \n%s\n' % (func_name, str(signature), docstring),
119 parser.add_argument('-c', '--config', type=str, required=True,
121 parser.add_argument('-tb', '--testbed', type=str, required=True,
123 parser.add_argument('-rd', '--relay_device', type=str, required=True,
126 group.add_argument('-cmd', '--command', type=str, nargs='+',
/tools/tradefederation/core/src/com/android/tradefed/util/
DStringEscapeUtils.java35 public static String escapeShell(String str) { in escapeShell() argument
36 if (str == null) { in escapeShell()
40 for (int i = 0; i < str.length(); ++i) { in escapeShell()
41 char ch = str.charAt(i); in escapeShell()
/tools/test/connectivity/acts/tests/google/tel/etc/
Dmanage_sim.py177 str(iccid), str(active_list[iccid]['droid_serial']), str(
178 active_list[iccid]['phone_num']), str(active_list[iccid][
192 type=str)

12345678910