/tools/test/connectivity/acts_tests/acts_contrib/test_utils_tests/ |
D | audio_quality_measurement_integrationtest.py | 54 teager_value_of_wave, length = 0, len(wave) 73 for i in range(len(value1)): 106 for i in range(len(self.delay_start_time)): 139 for i in range(len(self.burst_start_time)): 149 for i in range(len(start_time)): 161 self.assertTrue(len(result['artifacts']['noise_before_playback']) == 0) 162 self.assertTrue(len(result['artifacts']['noise_after_playback']) == 0) 163 self.assertTrue(len(result['artifacts']['delay_during_playback']) == 0) 164 self.assertTrue(len(result['artifacts']['burst_during_playback']) == 0) 165 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/test/connectivity/acts_tests/acts_contrib/test_utils/audio_analysis_lib/ |
D | audio_analysis.py | 110 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 …]
|
D | audio_quality_measurement.py | 179 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/ |
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/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/repohooks/tools/ |
D | cpplint.py | 1137 return fullname[len(prefix) + 1:] 1153 return fullname[len(prefix) + 1:] 1320 line = leading_space.group(1) + '""' + line[end + len(delimiter):] 1350 matched.group(3)[end + len(delimiter):]) 1367 while lineix < len(lines): 1373 return len(lines) 1378 while lineix < len(lines): 1382 return len(lines) 1396 while lineix < len(lines): 1398 if lineix_begin >= len(lines): [all …]
|
/tools/asuite/atest/ |
D | result_reporter.py | 186 max_len = {'name': len(max(all_name, key=len)), 187 'real_time': len(max(all_real_time, key=len)), 188 'time_unit': len(max(all_time_unit, key=len)), 189 'cpu_time': len(max(all_cpu_time, key=len)), 190 'iterations': len(max(all_iterations, key=len))} 311 print('\n', runner_name, '\n', '-' * len(runner_name), sep='') 333 print('\n', runner_name, '\n', '-' * len(runner_name), sep='') 370 iterations = len(ITER_SUMMARY) 377 failed_sum = len(self.failed_tests) 405 print('-'*len(message)) [all …]
|
/tools/asuite/atest-py2/ |
D | result_reporter.py | 180 max_len = {'name': len(max(all_name, key=len)), 181 'real_time': len(max(all_real_time, key=len)), 182 'time_unit': len(max(all_time_unit, key=len)), 183 'cpu_time': len(max(all_cpu_time, key=len)), 184 'iterations': len(max(all_iterations, key=len))} 302 print('\n', runner_name, '\n', '-' * len(runner_name), sep='') 324 print('\n', runner_name, '\n', '-' * len(runner_name), sep='') 346 failed_sum = len(self.failed_tests) 373 print('-'*len(message)) 466 underline = '-' * (len(title))
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/ |
D | gattc_lib.py | 117 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 …]
|
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/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 …]
|
D | WifiAutoJoinTest.py | 196 "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)))
|
/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/external_updater/ |
D | external_updater_reviewers_test.py | 76 self.assertGreaterEqual(len(reviewers.RUST_REVIEWERS), 3) 80 len(reviewers.RUST_CRATE_OWNERS)) 85 self.assertEqual(sum_projects, len(reviewers.RUST_REVIEWER_LIST)) 95 num_tries = len(reviewers.RUST_REVIEWERS) * 20 97 self.assertEqual(len(counters), len(reviewers.RUST_REVIEWERS)) 110 self.assertEqual(len(counters), 1) 113 self.assertEqual(len(counters), 2)
|
/tools/asuite/aidegen/idea/ |
D | iml_unittest.py | 189 print('\n{} {}.'.format('Test_paths length:', len(test_paths))) 194 print('{} {}.'.format('path list with length:', len(path_list))) 198 print('{} {}.'.format('Names list with length:', len(names))) 199 self.assertEqual(len(names), len(path_list)) 203 print('{} {}.'.format('The size of name set is:', len(dic))) 204 self.assertEqual(len(dic), len(path_list))
|
/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/framework/tests/controllers/bits_lib/ |
D | bits_client_test.py | 61 self.assertEqual(len(non_expected_call), 0, 82 self.assertEquals(len(non_expected_call), 0, 100 self.assertEqual(len(expected_call), 1, 120 self.assertEqual(len(expected_call), 1, 154 self.assertEqual(len(expected_calls), 3, 190 self.assertEqual(len(expected_calls), 3, 216 self.assertEqual(len(expected_call), 1, 237 self.assertEqual(len(expected_call), 1, 259 self.assertEqual(len(expected_call), 1,
|
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/ |
D | rpc_client.py | 174 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_tests/tests/google/fuchsia/wlan_policy/ |
D | SavedNetworksTest.py | 61 if len(self.fuchsia_devices) < 1: 136 if len(actual_networks) != len(expected_networks): 140 (len(actual_networks), len(expected_networks))) 194 if len(self.access_points) > 0: 209 if len(credentialValue) == PSK_LEN: 211 elif len(credentialValue) == 0:
|
/tools/test/connectivity/acts/framework/tests/event/ |
D | event_bus_integration_test.py | 70 self.assertGreaterEqual(len(TestClass.instance_event_received), 1) 71 self.assertEqual(len(TestClass.static_event_received), 0) 80 self.assertEqual(len(TestClass.instance_event_received), 0) 81 self.assertEqual(len(TestClass.static_event_received), 1) 94 self.assertEqual(len(TestClass.instance_event_received), 1) 95 self.assertEqual(len(TestClass.static_event_received), 0)
|
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/api/lvpm_stock/ |
D | monsoon_proxy.py | 255 if len(read_bytes) != expected_size or read_bytes[0] != 0x10: 257 read_bytes[0], len(read_bytes)) 361 data_len = len(data) + 1 377 if len(result) != data_len: 380 len(result)) 382 checksum = (sum(struct.unpack('B' * len(body), body)) + data_len) % 256 395 if len(ready_x) > 0: 397 elif len(ready_r) > 0:
|
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/sampling/engine/ |
D | transformers.py | 232 (len(buffer) + len(self._leftovers)) % self._mean_width) 234 tailless_buffer = np.array(buffer[:len(buffer) - tail_length]) 236 sample_count = len(tailless_buffer) + len(self._leftovers) 244 self._leftovers = buffer[len(buffer) - tail_length:]
|