/tools/test/connectivity/acts/framework/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/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/framework/acts/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 …]
|
/tools/test/connectivity/acts/framework/acts/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/test/connectivity/acts/framework/acts/test_utils/instrumentation/device/command/ |
D | instrumentation_command_builder.py | 81 if len(errors) > 0: 130 if len(self._classes) != 0: 135 if len(self._packages) != 0: 140 if len(self._packages) != 0: 146 if len(self._packages) == 0 and len(self._classes) == 0: 150 if len(errors) > 0: 156 if len(self._packages) > 0: 160 elif len(self._classes) > 0:
|
/tools/apksig/src/test/java/com/android/apksig/internal/util/ |
D | HexEncoding.java | 41 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/framework/acts/controllers/monsoon_lib/sampling/engine/ |
D | transformers.py | 163 (len(buffer) + len(self._leftovers)) % self._mean_width) 165 tailless_buffer = np.array(buffer[:len(buffer) - tail_length]) 167 sample_count = len(tailless_buffer) + len(self._leftovers) 175 self._leftovers = buffer[len(buffer) - tail_length:]
|
/tools/test/connectivity/acts/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/asuite/atest/ |
D | result_reporter.py | 184 max_len = {'name': len(max(all_name, key=len)), 185 'real_time': len(max(all_real_time, key=len)), 186 'time_unit': len(max(all_time_unit, key=len)), 187 'cpu_time': len(max(all_cpu_time, key=len)), 188 'iterations': len(max(all_iterations, key=len))} 306 print('\n', runner_name, '\n', '-' * len(runner_name), sep='') 328 print('\n', runner_name, '\n', '-' * len(runner_name), sep='') 355 failed_sum = len(self.failed_tests) 382 print('-'*len(message)) 497 underline = '-' * (len(title))
|
D | unittest_utils.py | 63 test_class.assertEqual(len(test_info_set_a), len(test_info_set_b), 65 (len(test_info_set_a), len(test_info_set_b))))
|
/tools/tradefederation/core/atest/ |
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))
|
D | unittest_utils.py | 59 test_class.assertEqual(len(test_info_set_a), len(test_info_set_b), 61 (len(test_info_set_a), len(test_info_set_b))))
|
/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/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/framework/acts/controllers/buds_lib/dev_utils/ |
D | apollo_log_decoder.py | 70 if len(header) == 4 and len(serialized) == len(message) - 4: 72 if (len(serialized) == msg_len and
|
/tools/test/connectivity/acts/tests/google/fuchsia/bt/ |
D | FuchsiaBtMacAddressTest.py | 38 if len(self.fuchsia_devices) < 2: 64 if len(mac_addr_list) != len(set(mac_addr_list)):
|
/tools/test/connectivity/acts/framework/acts/test_utils/bt/ |
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))) 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()))
|
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)))
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | SizeLimitedOutputStream.java | 191 public synchronized void write(byte[] b, int off, int len) throws IOException { in write() argument 196 while (len > 0) { in write() 202 long sizeToWrite = freeSpace > len ? len : freeSpace; in write() 207 len -= sizeToWrite; in write()
|
/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/tradefederation/core/src/com/android/tradefed/log/ |
D | ConsoleReaderOutputStream.java | 110 public synchronized void write(byte[] b, int off, int len) throws IOException { in write() argument 111 final boolean shufflePrompt = mInAsyncMode && (b[off + len - 1] == '\n'); in write() 123 mConsoleReader.printString(new String(b, off, len)); in write()
|
/tools/test/connectivity/acts/framework/acts/controllers/ap_lib/ |
D | hostapd_security.py | 89 if len(password) in hostapd_constants.WEP_STR_LENGTH: 91 elif len(password) in hostapd_constants.WEP_HEX_LENGTH and all( 99 if len(password) < hostapd_constants.MIN_WPA_PSK_LENGTH or len( 125 if len(self.password) == hostapd_constants.MAX_WPA_PSK_LENGTH:
|
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/sampling/lvpm_stock/ |
D | packet.py | 183 num_data_bytes = len(sampled_bytes) - Packet.FIRST_MEASUREMENT_OFFSET 192 self.measurements = [None] * len(samples) 209 time_per_sample = self.time_since_last_sample / len(self.measurements) 224 return len(self.measurements)
|
/tools/test/connectivity/acts/tests/google/bt/test_tools/ |
D | ToolsTest.py | 55 while time.time() < start_time + 10 and len( 60 if len(connected_devices) != 1: 91 while time.time() < start_time + 10 and len( 96 if len(connected_devices) != 1:
|