/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/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/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/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 …]
|
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/test/connectivity/acts/tests/google/wifi/ |
D | WifiScannerScanTest.py | 232 len(batch["ScanResults"])) 233 bssids += len(batch["ScanResults"]) 251 self.log.debug("Number of Full scan results %s", len(results)) 292 len(results), 1, 294 len(results)) 298 len(results), bssids) 349 len(results) >= bssids, 350 "Full single shot result don't match {}".format(len(results))) 361 llen = len(scan_result[0]["radioChainInfos"]) 411 len(results) >= bssids, [all …]
|
D | WifiRoamingPerformanceTest.py | 105 len(result['roam_transitions']))) 115 len(result['traffic_disruption']), formatted_traffic_gaps)) 118 disruption_percentage = (len(result['traffic_disruption']) / 264 for idx in range(len(result['rssi_result']['bssid']) - 1) 349 len(tput_thresholding) + 1) 418 idx * IPERF_INTERVAL for idx in range(len(result['throughput'])) 594 len(atten_waveforms[network]) 597 if len(waveform_lengths) != 1: 612 for section in range(len(waveform_params['atten_levels']) - 1): 685 'step_duration': len(primary_waveform), [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)))
|
D | WifiPingTest.py | 150 sorted(x['rtt'][round(ignored_fraction * len(x['rtt'])):]) 153 disconnected = any([len(x) == 0 for x in sorted_rtt]) 159 len(x))] for x in sorted_rtt 227 for idx in range(len(ping_loss_above_threshold)): 262 if len(result['rtt']) > 1: 306 len(testcase_params['atten_range']) + self.TEST_TIMEOUT) 349 len(testcase_params['atten_range']) - 350 len(test_result['ping_results'])): 645 average_range = sum(channel_data['range']) / len( 700 ref_index = len(previous_params) - 1 - ref_index [all …]
|
/tools/test/connectivity/acts/framework/acts/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_carkit_lib.py | 71 connected_hsp_devices = len(ad.droid.bluetoothHspGetConnectedDevices()) 76 if len(ad.droid.bluetoothHspGetConnectedDevices() == 1): 84 connected_hsp_devices = len( 185 while time.time() < start_time + 10 and len(connected_devices) != 1: 189 if len(connected_devices) != 1: 210 if len(pri_dut.droid.bluetoothA2dpGetConnectedDevices()) != 0: 215 if len(pri_dut.droid.bluetoothA2dpGetConnectedDevices()) != 1: 231 if len(pri_dut.droid.bluetoothHspGetConnectedDevices()) != 1: 247 if len(pri_dut.droid.bluetoothA2dpGetConnectedDevices()) != 0: 250 if len(pri_dut.droid.bluetoothHspGetConnectedDevices()) != 0: [all …]
|
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/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/asuite/atest/ |
D | result_reporter.py | 185 max_len = {'name': len(max(all_name, key=len)), 186 'real_time': len(max(all_real_time, key=len)), 187 'time_unit': len(max(all_time_unit, key=len)), 188 'cpu_time': len(max(all_cpu_time, key=len)), 189 'iterations': len(max(all_iterations, key=len))} 309 print('\n', runner_name, '\n', '-' * len(runner_name), sep='') 331 print('\n', runner_name, '\n', '-' * len(runner_name), sep='') 355 failed_sum = len(self.failed_tests) 382 print('-'*len(message)) 460 if len(mod_list) > 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/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))
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | ApkSigningBlockUtils.java | 285 int len = (int) lenLong; in findApkSignatureSchemeBlock() local 286 int nextEntryPos = pairs.position() + len; in findApkSignatureSchemeBlock() 287 if (len > pairs.remaining()) { in findApkSignatureSchemeBlock() 289 "APK Signing Block entry #" + entryCount + " size out of range: " + len in findApkSignatureSchemeBlock() 294 return getByteBuffer(pairs, len - 4); in findApkSignatureSchemeBlock() 378 int len = source.getInt(); in getLengthPrefixedSlice() local 379 if (len < 0) { in getLengthPrefixedSlice() 381 } else if (len > source.remaining()) { in getLengthPrefixedSlice() 384 + ". Field length: " + len + ", remaining: " + source.remaining()); in getLengthPrefixedSlice() 386 return getByteBuffer(source, len); in getLengthPrefixedSlice() [all …]
|
/tools/test/connectivity/acts/tests/google/wifi/aware/functional/ |
D | DataPathTest.py | 1105 while num_events != 2 * len(req_keys): 1245 len(init_aware_ifs), 1, "Multiple initiator interfaces") 1247 len(resp_aware_ifs), 1, "Multiple responder interfaces") 1249 len(init_aware_ipv6), 1, "Multiple initiator IPv6 addresses") 1251 len(resp_aware_ipv6), 1, "Multiple responder IPv6 addresses") 1439 len(sec_configs) 1441 len(sec_configs), "DUTs do not support enough NDIs") 1559 len(dut1_aware_ifs), len(sec_configs), "Multiple DUT1 interfaces") 1561 len(dut2_aware_ifs), len(sec_configs), "Multiple DUT2 interfaces") 1563 len(dut1_aware_ipv6s), len(sec_configs), [all …]
|
/tools/test/connectivity/acts/framework/acts/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/test/connectivity/acts_tests/tests/google/fuchsia/bt/ |
D | command_input.py | 528 if len(line) > 0: 784 if len(args) != 2: 835 if len(args) != 2: 883 if len(args) != 2: 928 if len(args) != 2: 975 if len(args) != 1: 1024 if len(args) != 3: 1059 if len(args) < 3: 1066 if len(args) > 3: 1095 if len(args) != 3: [all …]
|
/tools/test/graphicsbenchmark/apps/sample_app/src/cpp/ |
D | vecmath.h | 188 float len = Length(); in Normalize() local 189 x_ = x_ / len; in Normalize() 190 y_ = y_ / len; in Normalize() 376 float len = Length(); in Normalize() local 377 x_ = x_ / len; in Normalize() 378 y_ = y_ / len; in Normalize() 379 z_ = z_ / len; in Normalize() 593 float len = Length(); in Normalize() local 594 x_ = x_ / len; in Normalize() 595 y_ = y_ / len; in Normalize() [all …]
|
/tools/test/connectivity/acts/framework/acts/test_utils/gnss/ |
D | gnss_test_utils.py | 799 ad.log.info(prop_basename+"TotalFixPoints %d" % len(time_list)) 801 percent=l5flag_list.count("true")/len(l5flag_list))) 802 ad.log.info(prop_basename+"AvgDis %.1f" % (sum(pe_list)/len(pe_list))) 918 % (len(ttff_data.keys()), ttff_mode)) 922 if len(ttff_data.keys()) == 0: 955 if len(sec_list) == timeoutcount: 958 avgttff = sum(sec_list)/(len(sec_list) - timeoutcount) 963 avgdis = sum(pe_list)/len(pe_list) 965 ant_avgcn = sum(ant_cn_list)/len(ant_cn_list) 966 base_avgcn = sum(base_cn_list)/len(base_cn_list) [all …]
|
/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/treble/split/ |
D | manifest_split.py | 215 for i in range(0, len(modules), NINJA_SHARD_LIMIT): 293 return makefile[len(overlay):] 332 for index in reversed(range(0, len(parts))): 453 len(input_projects), " ".join(targets)) 462 len(input_projects)) 472 len(input_projects)) 518 iteration, len(input_projects)) 529 iteration, len(input_projects)) 533 logger.info("%s projects - complete", len(input_projects))
|