/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
D | FatType.java | 38 final int idx = (int) (index * 1.5); in readEntry() local 39 final int b1 = data[idx] & 0xFF; in readEntry() 40 final int b2 = data[idx + 1] & 0xFF; in readEntry() 52 final int idx = (int) (index * 1.5); in writeEntry() local 55 data[idx] = (byte) (entry & 0xFF); in writeEntry() 56 data[idx + 1] = (byte) ((entry >> 8) & 0x0F); in writeEntry() 58 data[idx] |= (byte) ((entry & 0x0F) << 4); in writeEntry() 59 data[idx + 1] = (byte) ((entry >> 4) & 0xFF); in writeEntry() 71 final int idx = index << 1; in readEntry() local 72 final int b1 = data[idx] & 0xFF; in readEntry() [all …]
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | CentralDirectory.java | 435 int idx = 0; in computeByteRepresentation() local 438 cdhs[idx] = entry.getCentralDirectoryHeader(); in computeByteRepresentation() 439 compressInfos[idx] = cdhs[idx].getCompressionInfoWithWait(); in computeByteRepresentation() 440 encodedFileNames[idx] = cdhs[idx].getEncodedFileName(); in computeByteRepresentation() 441 extraFields[idx] = new byte[cdhs[idx].getExtraField().size()]; in computeByteRepresentation() 442 cdhs[idx].getExtraField().write(ByteBuffer.wrap(extraFields[idx])); in computeByteRepresentation() 443 comments[idx] = cdhs[idx].getComment(); in computeByteRepresentation() 445 total += F_OFFSET.endOffset() + encodedFileNames[idx].length in computeByteRepresentation() 446 + extraFields[idx].length + comments[idx].length; in computeByteRepresentation() 447 idx++; in computeByteRepresentation() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/command/ |
D | CommandFileParser.java | 144 public boolean get(int idx) { in get() argument 145 return mBitmask.get(idx); in get() 148 public boolean set(int idx) { in set() argument 149 boolean retVal = mBitmask.set(idx, true); in set() 156 public boolean unset(int idx) { in unset() argument 157 boolean retVal = mBitmask.set(idx, false); in unset() 164 public boolean remove(int idx) { in remove() argument 165 boolean retVal = mBitmask.remove(idx); in remove() 172 public void add(int idx, boolean val) { in add() argument 173 mBitmask.add(idx, val); in add() [all …]
|
/tools/test/connectivity/acts/tests/google/wifi/ |
D | WifiScannerScanTest.py | 272 idx = data["Index"] 275 "Wifi single shot scan started index: %s at real time: %s", idx, 287 event_name = "{}{}onResults".format(EVENT_TAG, idx) 309 self.dut.droid.wifiScannerStopScan(idx) 331 idx = data["Index"] 333 self.log.info("Wifi single shot scan started with index: %s", idx) 341 event_name = "%s%sonResults" % (EVENT_TAG, idx) 351 event_name = "{}{}onFullResult".format(EVENT_TAG, idx) 363 self.dut.droid.wifiScannerStopScan(idx) 391 idx = data["Index"] [all …]
|
D | WifiScannerBssidTest.py | 185 idx = data["Index"] 190 event_name = "%s%sonFound" % (BSSID_EVENT_TAG, idx) 207 self.dut.droid.wifiScannerStopTrackingBssids(idx) 231 idx = None 235 idx = data["Index"] 238 event_name = "%s%sonFound" % (BSSID_EVENT_TAG, idx) 250 event_name = "%s%sonLost" % (BSSID_EVENT_TAG, idx) 260 if idx: 261 self.dut.droid.wifiScannerStopTrackingBssids(idx) 379 idx = None [all …]
|
D | WifiScannerMultiScanTest.py | 276 idx = data["Index"] 288 return idx, wait_time, scan_channels 371 idx, wait_time, scan_chan = self.start_scan(scan_setting) 374 scan_setting["band"], idx, wait_time, scan_chan) 375 idx_list.append(idx) 382 SCAN_EVENT_TAG, idx)] = scan_results_events 386 SCAN_EVENT_TAG, idx)] = scan_results_events 395 for idx in idx_list: 396 self.dut.droid.wifiScannerStopBackgroundScan(idx)
|
D | WifiRoamingPerformanceTest.py | 226 (idx, idx + 1) 227 for idx in range(len(result['rssi_result']['bssid']) - 1) 228 if result['rssi_result']['bssid'][idx] != result['rssi_result'] 229 ['bssid'][idx + 1] 307 any(tput_thresholding[max(0, idx - window_size):idx]) 308 for idx in range(1, 381 idx * IPERF_INTERVAL for idx in range(len(result['throughput']))
|
D | WifiPingTest.py | 154 for idx, rtt in enumerate(rtt_at_test_percentile): 159 .format(rtt, mean_rtt[idx], std_rtt[idx])) 208 for idx in range(len(ping_loss_above_threshold)): 209 if all(ping_loss_above_threshold[idx:]): 210 range_index = max(idx, 1) - 1 340 for idx in range(
|
D | WifiRvrTest.py | 149 for idx, current_throughput in enumerate( 151 current_att = rvr_result["attenuation"][idx] + rvr_result["fixed_attenuation"] 152 if (current_throughput < throughput_limits["lower_limit"][idx] 154 throughput_limits["upper_limit"][idx]): 160 throughput_limits["lower_limit"][idx], 161 throughput_limits["upper_limit"][idx])) 195 for idx, current_throughput in enumerate( 197 current_att = rvr_result["attenuation"][idx] + rvr_result["fixed_attenuation"]
|
D | WifiRssiTest.py | 263 postprocessed_results[key]["mean"][idx] + CONST_3dB - 264 postprocessed_results["predicted_rssi"][idx] 265 for idx in range( 270 postprocessed_results[key]["mean"][idx] - 271 postprocessed_results["predicted_rssi"][idx] 272 for idx in range( 628 temp_section[idx] for idx in range(len(temp_section))
|
D | WifiRttManagerTest.py | 139 idx = self.dut.droid.wifiRttStartRanging(rtt_params) 142 event = self.dut.ed.pop_events("WifiRttRanging%d" % idx, 30) 222 idx = wutils.start_wifi_single_scan(self.android_devices[0], 224 self.log.info("Scan index is %d" % idx) 225 event_name = "WifiScannerScan%donFullResult" % idx 237 event_name = "WifiScannerScan%donResults" % idx
|
D | WifiWakeTest.py | 127 idx = data["Index"] 130 "Wifi single shot scan started index: %s at real time: %s", idx, 140 event_name = "{}{}onResults".format("WifiScannerScan", idx) 151 self.dut.droid.wifiScannerStopScan(idx)
|
/tools/test/connectivity/acts/framework/acts/controllers/attenuator_lib/minicircuits/ |
D | telnet.py | 85 def set_atten(self, idx, value, strict_flag=True): argument 108 if idx >= self.num_atten: 110 idx) 116 self._tnhelper.cmd('CHAN:%s:SETATT:%s' % (idx + 1, value)) 118 def get_atten(self, idx): argument 133 if idx >= self.num_atten or idx < 0: 135 idx) 137 atten_val_str = self._tnhelper.cmd('CHAN:%s:ATT?' % (idx + 1))
|
D | http.py | 87 def set_atten(self, idx, value, strict_flag=True): argument 104 if not (0 <= idx < self.num_atten): 106 idx) 114 self._ip_address, self._port, idx + 1, value), 122 def get_atten(self, idx): argument 135 if not (0 <= idx < self.num_atten): 137 idx) 140 idx + 1),
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | ByteArrayList.java | 243 public byte get(int idx) { in get() argument 244 if (idx < 0 || idx >= size()) { in get() 247 return mStorage[idx]; in get() 256 public byte set(int idx, byte b) { in set() argument 257 if (idx < 0 || idx >= size()) { in set() 260 byte curVal = mStorage[idx]; in set() 261 mStorage[idx] = b; in set()
|
D | SimpleStats.java | 99 int idx = size() / 2; in median() local 100 return mData.get(idx); in median() 103 int idx = size() / 2; in median() local 104 return (mData.get(idx - 1) + mData.get(idx)) / 2; in median()
|
D | SimplePerfStatResultParser.java | 96 int idx = output.indexOf(SIMPLEPERF_METRIC_HEAD); in parseRawOutput() local 97 if (idx == -1) { in parseRawOutput() 101 result.setCommandRawOutput(output.substring(0, idx)); in parseRawOutput() 102 String simpleperfOutput = output.substring(idx + SIMPLEPERF_METRIC_HEAD.length() + 1); in parseRawOutput()
|
/tools/test/connectivity/acts/framework/acts/test_utils/audio_analysis_lib/ |
D | check_quality.py | 294 for idx, expected_freq in enumerate(expected_freqs): 297 if not self._spectrals[idx]: 299 'Failed at channel %d: no dominant frequency' % idx) 300 dominant_freq = self._spectrals[idx][0][0] 304 (idx, dominant_freq, expected_freq)) 315 for idx, quality_res in enumerate(self._quality_result): 369 for idx, expected_freq in enumerate(expected_freqs): 372 if not self._spectrals[idx]: 374 'Failed at channel %d: no dominant frequency' % idx) 375 dominant_freq = self._spectrals[idx][0][0] [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | attenuator.py | 64 attn = Attenuator(attn_inst, idx=i) 146 def set_atten(self, idx, value, strict=True): argument 159 def get_atten(self, idx): argument 181 def __init__(self, instrument, idx=0, offset=0): argument 202 self.idx = idx 205 if self.idx >= instrument.num_atten: 225 self.instrument.set_atten(self.idx, value + self.offset, strict) 229 return self.instrument.get_atten(self.idx) - self.offset
|
/tools/test/connectivity/acts/framework/acts/test_utils/coex/ |
D | CoexPerformanceBaseTest.py | 210 for idx, data in enumerate(content["quality_result"]): 212 self.rvr["bt_gap_analysis"][bt_atten][atten][idx] = ( 216 self.rvr["bt_gap_analysis"][bt_atten][atten][idx] = 0 299 for idx, _ in enumerate(throughput_attenuation): 301 bt_atten)]["throughput_received"][idx]) 375 for idx, current_throughput in enumerate( 377 current_att = self.rvr[bt_atten]["attenuation"][idx] + ( 380 (throughput_limits[bt_atten]["lower_limit"][idx]) or 382 (throughput_limits[bt_atten]["upper_limit"][idx])): 389 throughput_limits[bt_atten]["lower_limit"][idx], [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/attenuator_lib/aeroflex/ |
D | telnet.py | 79 def set_atten(self, idx, value): argument 98 if idx >= self.num_atten: 100 idx) 106 self._tnhelper.cmd('ATTN ' + str(idx + 1) + ' ' + str(value), False) 108 def get_atten(self, idx): argument 127 atten_val = self._tnhelper.cmd('ATTN? ' + str(idx + 1))
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | FakeTestTest.java | 301 int idx) { in testPassExpectations() argument 302 final String name = String.format("testMethod%d", idx); in testPassExpectations() 309 ITestInvocationListener l, String klass, int idx, String log) { in testPassExpectations() argument 310 final String name = String.format("testMethod%d", idx); in testPassExpectations() 318 int idx) { in testFailExpectations() argument 319 final String name = String.format("testMethod%d", idx); in testFailExpectations() 326 private void testAssumptionExpectations(ITestInvocationListener l, String klass, int idx) { in testAssumptionExpectations() argument 327 final String name = String.format("testMethod%d", idx); in testAssumptionExpectations() 334 private void testIgnoredExpectations(ITestInvocationListener l, String klass, int idx) { in testIgnoredExpectations() argument 335 final String name = String.format("testMethod%d", idx); in testIgnoredExpectations()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/ |
D | AndroidBinXmlParser.java | 651 int idx = (int) index; in getString() local 652 String result = mCachedStrings.get(idx); in getString() 657 long offsetInStringsSection = getUnsignedInt32(mChunkContents, idx * 4); in getString() 660 "Offset of string idx " + idx + " out of bounds: " + offsetInStringsSection in getString() 668 mCachedStrings.put(idx, result); in getString() 780 int idx = (int) index; in getResourceId() local 782 return mChunkContents.getInt(idx * 4); in getResourceId()
|
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/ssh/ |
D | connection.py | 384 idx = None 387 idx = i 389 if idx is not None: 390 tunnel = self._tunnels.pop(idx)
|
/tools/test/connectivity/acts/tests/google/bt/performance/ |
D | BtInterferenceRSSITest.py | 36 self.log.debug("Set attenuator %s to %s" % (attenuator.idx, value)) 41 (attenuator.idx, value))
|