Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 291) sorted by relevance

12345678910>>...12

/tools/test/connectivity/acts/framework/tests/
Daudio_quality_measurement_unittest.py49 teager_value_of_wave, length = 0, len(wave)
68 for i in range(len(value1)):
101 for i in range(len(self.delay_start_time)):
134 for i in range(len(self.burst_start_time)):
144 for i in range(len(start_time)):
156 self.assertTrue(len(result['artifacts']['noise_before_playback']) == 0)
157 self.assertTrue(len(result['artifacts']['noise_after_playback']) == 0)
158 self.assertTrue(len(result['artifacts']['delay_during_playback']) == 0)
159 self.assertTrue(len(result['artifacts']['burst_during_playback']) == 0)
160 self.assertTrue(len(result['volume_changes']) == 0)
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/
DInputStreamBerDataValueReader.java161 private static void skipDefiniteLengthContents(InputStream in, int len) in skipDefiniteLengthContents() argument
164 while (len > 0) { in skipDefiniteLengthContents()
165 int skipped = (int) in.skip(len); in skipDefiniteLengthContents()
169 + ", " + len + " missing"); in skipDefiniteLengthContents()
171 len -= skipped; in skipDefiniteLengthContents()
260 int len = mIn.read(b); in read() local
261 if (len > 0) { in read()
262 mBuf.write(b, 0, len); in read()
264 return len; in read()
268 public int read(byte[] b, int off, int len) throws IOException { in read() argument
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/audio_analysis_lib/
Daudio_analysis.py110 if len(signal) == 0:
113 signal_rms = numpy.linalg.norm(signal) / numpy.sqrt(len(signal))
126 y_conv_w = signal * numpy.hanning(len(signal))
128 length = len(y_conv_w)
139 for i in range(len(abs_y_f)):
199 length = len(array)
305 if len(signal) == 0:
312 for start in range(0, len(signal), int(block_size / 2)):
354 if len(anoms) == 0:
358 for i in range(len(anoms)-1):
[all …]
Daudio_quality_measurement.py179 if len(x.shape) > 1:
223 teager_value, length = 0, len(wave)
312 length = len(signal)
326 frequecny = numpy.append(frequency, frequency[len(frequency) - 1])
352 length = len(arr)
414 length = len(block_frequency_delta)
454 length = len(block_amplitude)
591 for i in range(len(delay_time_points)):
708 length = len(left_block_amplitude)
754 for i in range(len(changing_events)):
[all …]
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DClusterChain.java200 int len = dest.remaining(); in readData() local
202 if ((startCluster == 0 && len > 0)) throw new EOFException(); in readData()
210 int size = Math.min(len, in readData()
217 len -= size; in readData()
221 while (len > 0) { in readData()
222 int size = Math.min(clusterSize, len); in readData()
227 len -= size; in readData()
245 int len = srcBuf.remaining(); in writeData() local
247 if (len == 0) return; in writeData()
249 final long minSize = offset + len; in writeData()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Dmonsoon.py197 if len(read_bytes) != calsize or read_bytes[0] != 0x10:
200 read_bytes[0], len(read_bytes))
309 if len(_bytes) < 4 + 8 + 1 or _bytes[0] < 0x20 or _bytes[0] > 0x2F:
311 _bytes[0], len(_bytes))
318 len(_bytes) - 8, 8)
361 data_len = len(data) + 1
378 if len(result) != data_len:
381 len(result))
383 checksum = (sum(struct.unpack("B" * len(body), body)) + data_len) % 256
397 if len(ready_x) > 0:
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/rtt/
Drtt_test_utils.py154 if len(aps) != 0:
179 if len(result) == select_count:
220 len(scan_results), len(range_results),
228 for i in range(len(scan_results)):
339 for i in range(len(results)):
385 if len(distances) > 0:
387 if len(distances) > 1:
389 if len(rssis) > 0:
391 if len(rssis) > 1:
428 asserts.assert_true(len(aps) > 0, "Need at least one AP!")
[all …]
/tools/repohooks/tools/
Dcpplint.py1131 return fullname[len(prefix) + 1:]
1147 return fullname[len(prefix) + 1:]
1314 line = leading_space.group(1) + '""' + line[end + len(delimiter):]
1344 matched.group(3)[end + len(delimiter):])
1361 while lineix < len(lines):
1367 return len(lines)
1372 while lineix < len(lines):
1376 return len(lines)
1390 while lineix < len(lines):
1392 if lineix_begin >= len(lines):
[all …]
/tools/test/connectivity/acts/tests/google/wifi/
DWifiScannerScanTest.py237 len(batch["ScanResults"]))
238 bssids += len(batch["ScanResults"])
256 self.log.debug("Number of Full scan results %s", len(results))
297 len(results), 1,
299 len(results))
303 len(results), bssids)
354 len(results) >= bssids,
355 "Full single shot result don't match {}".format(len(results)))
366 llen = len(scan_result[0]["radioChainInfos"])
416 len(results) >= bssids,
[all …]
DWifiAutoJoinTest.py196 "Number of test_autojoin_Ap1_2g failed {}".format(len(failed)))
219 "Number of test_autojoin_Ap1_2gto5g failed {}".format(len(failed)))
243 len(failed)))
268 len(failed)))
291 "Number of test_autojoin_Ap2_2gto5g failed {}".format(len(failed)))
313 "Number of test_autojoin_Ap2_5gto2g failed {}".format(len(failed)))
365 "Number of test_autojoin_Ap2_2g failed {}".format(len(failed)))
389 len(failed)))
414 len(failed)))
437 "Number of test_autojoin_Ap1_5gto2g failed {}".format(len(failed)))
DWifiRoamingPerformanceTest.py87 len(result['roam_transitions'])))
97 len(result['traffic_disruption']), formatted_traffic_gaps))
227 for idx in range(len(result['rssi_result']['bssid']) - 1)
309 len(tput_thresholding) + 1)
381 idx * IPERF_INTERVAL for idx in range(len(result['throughput']))
543 len(atten_waveforms[network])
546 if len(waveform_lengths) != 1:
561 for section in range(len(waveform_params['atten_levels']) - 1):
638 'step_duration': len(primary_waveform),
644 'length': len(primary_waveform)
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dgattc_lib.py117 if len(line) == 4:
157 if len(args) != 2:
173 if len(args) != 2:
186 if len(args) != 2:
202 if len(args) != 2:
234 if len(args) != 2:
250 if len(args) != 2:
283 if len(args) != 2:
304 if len(args) != 2:
340 for j in range(len(characteristic_uuids)):
[all …]
Dbt_contacts_utils.py102 return len(numbers)
122 str(len(pce_contacts))))
125 str(len(set(pce_contacts).intersection(set(pse_contacts))))))
127 str(len(differences))))
130 return len(differences)
274 return len(contact_list)
396 if len(pse_call_log) == len(pce_call_log):
397 for i in range(len(pse_call_log)):
418 len(pse_call_log), len(pce_call_log)))
Dbt_coc_test_utils.py66 number_buffers * buffer_size, len(list_server_ad)))
68 if (len(list_server_ad) != len(list_client_conn_id)):
72 len(list_server_ad), len(list_client_conn_id)))
243 if len(server_ad.droid.bluetoothSocketConnActiveConnections()) > 0:
245 if len(client_ad.droid.bluetoothSocketConnActiveConnections()) > 0:
258 if len(client_ad.droid.bluetoothSocketConnActiveConnections()) > 0:
261 len(client_ad.droid.bluetoothSocketConnActiveConnections()))
DPowerBaseTest.py328 self.measure_time, self.idle_time, len(self.data_points)))
421 ).format(len(self.data_points), self.hz, self.offset))
498 if len(self.start_times) == 0 or len(self.end_times) == 0:
503 len(self.start_times),
504 len(self.end_times), len(self.data_points)))
536 if measure_cycle_index > (len(self.start_times) - 1):
541 if measure_cycle_index < (len(self.start_times) - 2):
571 "Total Number of Cycles: {}".format(len(average_for_a_cycle)))
/tools/tradefederation/core/src/com/android/tradefed/util/
DFixedByteArrayOutputStream.java79 public void write(byte[] b, int off, int len) throws IOException { in write() argument
83 if (len >= mBuffer.length) { in write()
85 System.arraycopy(b, off + len - mBuffer.length, mBuffer, 0, mBuffer.length); in write()
91 if (freeSpace >= len) { in write()
93 System.arraycopy(b, off, mBuffer, mWritePos, len); in write()
98 System.arraycopy(b, off + freeSpace, mBuffer, 0, len - freeSpace); in write()
101 mWritePos += len; in write()
/tools/test/connectivity/acts/tests/google/wifi/rtt/functional/
DRttRequestManagementTest.py67 len(aps) > 0, "Need at least one AP which supports 802.11mc!")
68 if len(aps) > max_peers:
94 for i in range(len(group1_ids)):
101 for i in range(len(group2_ids)):
106 for i in range(len(group3_ids)):
130 len(aps) > 0, "Need at least one AP which supports 802.11mc!")
131 if len(aps) > max_peers:
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
Drpc_client.py174 if len(self._working_connections) > 0:
177 'responses.Closing these connections now.' % len(
195 if len(self._free_connections) > 0:
199 if len(self._free_connections) == 0:
205 client_count = (len(self._free_connections) +
206 len(self._working_connections))
209 client_count = (len(self._free_connections) +
210 len(self._working_connections))
/tools/test/connectivity/acts/framework/tests/event/
Devent_bus_integration_test.py72 self.assertGreaterEqual(len(TestClass.instance_event_received), 1)
73 self.assertEqual(len(TestClass.static_event_received), 0)
82 self.assertEqual(len(TestClass.instance_event_received), 0)
83 self.assertEqual(len(TestClass.static_event_received), 1)
93 self.assertEqual(len(TestClass.instance_event_received), 1)
94 self.assertEqual(len(TestClass.static_event_received), 0)
Devent_bus_test.py71 self.assertEqual(register_subscription.call_count, len(subscriptions))
151 self.assertEqual(unregister.call_count, len(unregister_list))
172 self.assertEqual(unregister.call_count, len(unregister_list))
195 len(unregister_list_1) + len(unregister_list_2))
250 self.assertEqual(len(bus._registration_id_map), 1)
263 self.assertEqual(len(bus._registration_id_map), 0)
/tools/asuite/aidegen/lib/
Dproject_file_gen_unittest.py182 print('\n{} {}.'.format('Test_paths length:', len(test_paths)))
187 print('{} {}.'.format('path list with length:', len(path_list)))
190 print('{} {}.'.format('Names list with length:', len(names)))
192 self.assertEqual(len(names), len(path_list))
196 print('{} {}.'.format('The size of name set is:', len(dic)))
197 self.assertEqual(len(dic), len(path_list))
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DHexEncoding.java41 public static String encode(byte[] data, int offset, int len) { in encode() argument
42 StringBuilder result = new StringBuilder(len * 2); in encode()
43 for (int i = 0; i < len; i++) { in encode()
73 for (int len = encoded.length(); encodedCharOffset < len; encodedCharOffset += 2) { in decode()
/tools/test/connectivity/acts/tests/google/ble/concurrency/
DConcurrentGattConnectTest.py131 while time.time() < end_time and len(address_list) < len(
146 if len(device) is not 0:
153 if len(result) is 0:
160 if len(address_list) < self.max_connections:
205 if (len(
286 if (len(
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java282 int len = (int) lenLong; in findApkSignatureSchemeBlock() local
283 int nextEntryPos = pairs.position() + len; in findApkSignatureSchemeBlock()
284 if (len > pairs.remaining()) { in findApkSignatureSchemeBlock()
286 "APK Signing Block entry #" + entryCount + " size out of range: " + len in findApkSignatureSchemeBlock()
291 return getByteBuffer(pairs, len - 4); in findApkSignatureSchemeBlock()
375 int len = source.getInt(); in getLengthPrefixedSlice() local
376 if (len < 0) { in getLengthPrefixedSlice()
378 } else if (len > source.remaining()) { in getLengthPrefixedSlice()
381 + ". Field length: " + len + ", remaining: " + source.remaining()); in getLengthPrefixedSlice()
383 return getByteBuffer(source, len); in getLengthPrefixedSlice()
[all …]
/tools/test/connectivity/acts/framework/tests/metrics/loggers/
Dblackbox_test.py238 self.assertEqual(len(args_list), 1)
262 self.assertEqual(len(args_list), 2)
294 self.assertEqual(len(args_list), 1)
317 self.assertEqual(len(args_list), 1)
343 self.assertEqual(len(args_list), 1)
349 self.assertEqual(len(call_args[0]) + len(call_args[1]), 1)
350 if len(call_args[0]) == 1:

12345678910>>...12