/tools/test/connectivity/acts_tests/acts_contrib/test_utils_tests/ |
D | audio_quality_measurement_integrationtest.py | 49 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/ |
D | InputStreamBerDataValueReader.java | 161 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/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
D | ClusterChain.java | 200 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_tests/acts_contrib/test_utils/audio_analysis_lib/ |
D | audio_analysis.py | 108 if len(signal) == 0: 111 signal_rms = numpy.linalg.norm(signal) / numpy.sqrt(len(signal)) 124 y_conv_w = signal * numpy.hanning(len(signal)) 126 length = len(y_conv_w) 137 for i in range(len(abs_y_f)): 197 length = len(array) 303 if len(signal) == 0: 310 for start in range(0, len(signal), int(block_size / 2)): 352 if len(anoms) == 0: 356 for i in range(len(anoms) - 1): [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtilsLite.java | 109 int len = (int) lenLong; in findApkSignatureSchemeBlock() local 110 int nextEntryPos = pairs.position() + len; in findApkSignatureSchemeBlock() 111 if (len > pairs.remaining()) { in findApkSignatureSchemeBlock() 113 "APK Signing Block entry #" + entryCount + " size out of range: " + len in findApkSignatureSchemeBlock() 118 return getByteBuffer(pairs, len - 4); in findApkSignatureSchemeBlock() 336 int len = value.length; in toHex() local 337 for (int i = 0; i < len; i++) { in toHex() 351 int len = source.getInt(); in getLengthPrefixedSlice() local 352 if (len < 0) { in getLengthPrefixedSlice() 354 } else if (len > source.remaining()) { in getLengthPrefixedSlice() [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/rtt/ |
D | rtt_test_utils.py | 160 if len(aps) != 0: 185 if len(result) == select_count: 226 len(scan_results), len(range_results), 234 for i in range(len(scan_results)): 345 for i in range(len(results)): 391 if len(distances) > 0: 393 if len(distances) > 1: 395 if len(rssis) > 0: 397 if len(rssis) > 1: 434 asserts.assert_true(len(aps) > 0, "Need at least one AP!") [all …]
|
/tools/netsim/rust/daemon/src/captures/ |
D | pcap_util.rs | 77 Ok(header.len()) in write_pcap_header() 103 Ok(header.len()) in write_pcapng_header() 115 let mut bytes = Vec::<u8>::with_capacity(header.len() + packet.len()); in wrap_bt_packet() 128 let length = packet.len(); in append_record() 135 let mut bytes = Vec::<u8>::with_capacity(header.len() + length); in append_record() 140 Ok(header.len() + length) in append_record() 149 let packet_data_padding: usize = 4 - packet.len() % 4; in append_record_pcapng() 150 let block_total_length: u32 = (packet.len() + packet_data_padding + 32) as u32; in append_record_pcapng() 158 packet.len() as u32, // Captured Packet Length in append_record_pcapng() 159 packet.len() as u32 // Original Packet Length in append_record_pcapng()
|
/tools/security/fuzzing/orphans/smallvec/ |
D | smallvec_fuzzer.rs | 60 Truncate { len: usize }, 63 Resize { len: usize, value: Data }, 87 if index < vec.len() { in do_fuzz() 92 if index < vec.len() { in do_fuzz() 97 if index < vec.len() { in do_fuzz() 116 Command::Truncate { len } => { in do_fuzz() 117 vec.truncate(len); in do_fuzz() 121 if new_cap >= vec.len() { in do_fuzz() 128 Command::Resize { len, value } => { in do_fuzz() 129 vec.resize(len % MAX_SIZE_MODIFIER, value); in do_fuzz()
|
/tools/test/connectivity/acts_tests/tests/google/tel/live/ |
D | TelLiveRilImsKpiTest.py | 63 failure_count = len(list(filter(lambda x: (x != True), result_list))) 221 (len(result) - result.count(True)), 222 len(result)) 228 len(result) - result.count(True))/len(result) 242 len(ims_reg)) 358 (len(result) - result.count(True)), 359 len(result)) 366 len(result) - result.count(True))/len(result) 380 len(ims_reg)) 480 … ad.log.warning('%s/%s cycles failed.', (len(result) - result.count(True)), len(result)) [all …]
|
/tools/netsim/rust/daemon/src/bluetooth/ |
D | advertise_data.rs | 142 if device_name.len() > MAX_ADV_NONCONN_DATA_LEN - 2 { in serialize() 150 (1 + device_name.len()) in serialize() 163 if manufacturer_data.len() < 2 { in serialize() 168 if manufacturer_data.len() > MAX_ADV_NONCONN_DATA_LEN - 2 { in serialize() 176 (1 + manufacturer_data.len()) in serialize() 184 if bytes.len() > MAX_ADV_NONCONN_DATA_LEN { in serialize() 207 let exp_name_len = HEADER_LEN + device_name.len(); in test_from_proto_succeeds() 223 assert_eq!(exp_name_len + exp_tx_power_len, bytes.len()); in test_from_proto_succeeds() 269 let exp_len = HEADER_LEN + device_name.len(); in test_set_device_name_succeeds() 274 assert_eq!(exp_len, bytes.len()); in test_set_device_name_succeeds() [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/instrumentation/device/command/ |
D | instrumentation_command_builder.py | 105 if len(errors) > 0: 154 if len(self._classes) != 0: 159 if len(self._packages) != 0: 164 if len(self._packages) != 0: 170 if len(self._packages) == 0 and len(self._classes) == 0: 174 if len(errors) > 0: 180 if len(self._packages) > 0: 184 elif len(self._classes) > 0:
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | FixedByteArrayOutputStream.java | 79 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/acts_contrib/test_utils/bt/ |
D | gattc_lib.py | 116 if len(line) == 4: 156 if len(args) != 2: 172 if len(args) != 2: 185 if len(args) != 2: 201 if len(args) != 2: 233 if len(args) != 2: 249 if len(args) != 2: 282 if len(args) != 2: 303 if len(args) != 2: 339 for j in range(len(characteristic_uuids)): [all …]
|
D | bt_contacts_utils.py | 102 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)))
|
D | bt_coc_test_utils.py | 66 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))) 246 if len(server_ad.droid.bluetoothSocketConnActiveConnections()) > 0: 248 if len(client_ad.droid.bluetoothSocketConnActiveConnections()) > 0: 261 if len(client_ad.droid.bluetoothSocketConnActiveConnections()) > 0: 264 len(client_ad.droid.bluetoothSocketConnActiveConnections()))
|
/tools/asuite/atest/ |
D | result_reporter.py | 214 'name': len(max(all_name, key=len)), 215 'real_time': len(max(all_real_time, key=len)), 216 'time_unit': len(max(all_time_unit, key=len)), 217 'cpu_time': len(max(all_cpu_time, key=len)), 218 'iterations': len(max(all_iterations, key=len)), 345 print('\n', runner_name, '\n', '-' * len(runner_name), sep='') 371 print('\n', runner_name, '\n', '-' * len(runner_name), sep='') 439 multi_iterations = len(ITER_SUMMARY) > 1 448 failed_sum = len(self.failed_tests) 482 print('-' * len(message)) [all …]
|
/tools/repohooks/tools/ |
D | cpplint.py | 1371 num_errors = len(self._junit_errors) 1372 num_failures = len(self._junit_failures) 1604 return fullname[len(prefix) + 1:] 1620 return fullname[len(prefix) + 1:] 1797 line = leading_space.group(1) + '""' + line[end + len(delimiter):] 1827 matched.group(3)[end + len(delimiter):]) 1844 while lineix < len(lines): 1850 return len(lines) 1855 while lineix < len(lines): 1859 return len(lines) [all …]
|
/tools/test/connectivity/acts_tests/tests/google/wifi/ |
D | WifiScannerScanTest.py | 229 len(batch["ScanResults"])) 230 bssids += len(batch["ScanResults"]) 248 self.log.debug("Number of Full scan results %s", len(results)) 289 len(results), 1, 291 len(results)) 295 len(results), bssids) 346 len(results) >= bssids, 347 "Full single shot result don't match {}".format(len(results))) 358 llen = len(scan_result[0]["radioChainInfos"]) 408 len(results) >= bssids, [all …]
|
/tools/external_updater/ |
D | external_updater_reviewers_test.py | 73 self.assertGreaterEqual(len(reviewers.RUST_REVIEWERS), 3) 78 self.assertEqual(sum_projects, len(reviewers.RUST_REVIEWER_LIST)) 87 num_tries = len(reviewers.RUST_REVIEWERS) * 20 89 self.assertEqual(len(counters), len(reviewers.RUST_REVIEWERS)) 102 self.assertEqual(len(counters), 1) 105 self.assertEqual(len(counters), 2)
|
/tools/test/connectivity/acts_tests/tests/google/wifi/rtt/functional/ |
D | RttRequestManagementTest.py | 64 len(aps) > 0, "Need at least one AP which supports 802.11mc!") 65 if len(aps) > max_peers: 91 for i in range(len(group1_ids)): 98 for i in range(len(group2_ids)): 103 for i in range(len(group3_ids)): 127 len(aps) > 0, "Need at least one AP which supports 802.11mc!") 128 if len(aps) > max_peers:
|
/tools/test/connectivity/acts_tests/tests/google/net/ |
D | DNSTest.py | 161 self.dut.log.info("IPv4 DNS query count : %s" % len(pkts)) 162 self.dut.log.info("IPv6 DNS query count : %s" % len(pkts6)) 163 asserts.assert_true(len(pkts) >= 2 or len(pkts6) >= 2, 177 self.dut.log.info("IPv4 DNS query count : %s" % len(pkts)) 178 self.dut.log.info("IPv6 DNS query count : %s" % len(pkts6)) 179 asserts.assert_true(len(pkts) >= 2 or len(pkts6) >= 2,
|
/tools/asuite/aidegen/idea/ |
D | iml_unittest.py | 198 print('\n{} {}.'.format('Test_paths length:', len(test_paths))) 203 print('{} {}.'.format('path list with length:', len(path_list))) 207 print('{} {}.'.format('Names list with length:', len(names))) 208 self.assertEqual(len(names), len(path_list)) 212 print('{} {}.'.format('The size of name set is:', len(dic))) 213 self.assertEqual(len(dic), len(path_list))
|
/tools/netsim/rust/proto/src/ |
D | model.rs | 704 let len = v.compute_size(); in compute_size() localVariable 705 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; in compute_size() 708 let len = v.compute_size(); in compute_size() localVariable 709 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; in compute_size() 712 let len = v.compute_size(); in compute_size() localVariable 713 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; in compute_size() 716 let len = v.compute_size(); in compute_size() localVariable 717 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; in compute_size() 1120 let len = v.compute_size(); in compute_size() localVariable 1121 my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len; in compute_size() [all …]
|
/tools/test/connectivity/acts/framework/tests/controllers/bits_lib/ |
D | bits_client_test.py | 90 self.assertEqual(len(non_expected_call), 0, 104 self.assertEqual(len(expected_calls), 1, 'expected 1 calls with --time') 119 self.assertEqual(len(expected_calls), 1, 'expected 1 calls with --time') 135 self.assertEqual(len(non_expected_call), 0, 151 self.assertEqual(len(expected_call), 1, 210 self.assertEqual(len(expected_calls), 3, 'expected 3 calls with --log') 237 self.assertEqual(len(expected_calls), 3, 'expected 3 calls with --log') 262 self.assertEqual(len(expected_call), 1, 283 self.assertEqual(len(expected_call), 1, 304 self.assertEqual(len(expected_call), 1,
|
/tools/security/remote_provisioning/hwtrust/cxxbridge/ |
D | lib.rs | 32 len: usize, field 63 len: 0, in verify_dice_chain() 70 let len = match chain { in verify_dice_chain() localVariable 71 ChainForm::Proper(ref chain) => chain.payloads().len(), in verify_dice_chain() 75 ffi::VerifyDiceChainResult { error: "".to_string(), chain, len } in verify_dice_chain() 79 ffi::VerifyDiceChainResult { error, chain: Box::new(DiceChain(None)), len: 0 } in verify_dice_chain()
|