Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 59) sorted by relevance

123

/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DCentralDirectory.java435 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/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DFatType.java38 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/tradefederation/core/src/com/android/tradefed/command/
DCommandFileParser.java144 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/
DWifiScannerScanTest.py267 idx = data["Index"]
270 "Wifi single shot scan started index: %s at real time: %s", idx,
282 event_name = "{}{}onResults".format(EVENT_TAG, idx)
304 self.dut.droid.wifiScannerStopScan(idx)
326 idx = data["Index"]
328 self.log.info("Wifi single shot scan started with index: %s", idx)
336 event_name = "%s%sonResults" % (EVENT_TAG, idx)
346 event_name = "{}{}onFullResult".format(EVENT_TAG, idx)
358 self.dut.droid.wifiScannerStopScan(idx)
386 idx = data["Index"]
[all …]
DWifiScannerBssidTest.py185 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 …]
DWifiRoamingPerformanceTest.py263 (idx, idx + 1)
264 for idx in range(len(result['rssi_result']['bssid']) - 1)
265 if result['rssi_result']['bssid'][idx] != result['rssi_result']
266 ['bssid'][idx + 1]
347 any(tput_thresholding[max(0, idx - window_size):idx])
348 for idx in range(1,
418 idx * IPERF_INTERVAL for idx in range(len(result['throughput']))
440 for idx, atten in enumerate(self.attenuators):
442 item["network"] for item in self.rf_map_by_atten[idx]
568 for idx, atten in enumerate(self.attenuators):
[all …]
DWifiRvrTest.py156 for idx, current_throughput in enumerate(
158 if (current_throughput < throughput_limits['lower_limit'][idx]
160 throughput_limits['upper_limit'][idx]):
202 for idx, current_throughput in enumerate(
204 current_att = rvr_result['attenuation'][idx] + rvr_result[
312 for idx in range(len(tput_below_limit)):
313 if all(tput_below_limit[idx:]):
314 if idx == 0:
319 'total_attenuation'][max(idx, 1) - 1]
330 for idx in range(len(tput_below_limit)):
[all …]
DWifiScannerMultiScanTest.py284 idx = data["Index"]
296 return idx, wait_time, scan_channels
379 idx, wait_time, scan_chan = self.start_scan(scan_setting)
382 scan_setting["band"], idx, wait_time, scan_chan)
383 idx_list.append(idx)
390 SCAN_EVENT_TAG, idx)] = scan_results_events
394 SCAN_EVENT_TAG, idx)] = scan_results_events
403 for idx in idx_list:
404 self.dut.droid.wifiScannerStopBackgroundScan(idx)
DWifiPingTest.py227 for idx in range(len(ping_loss_above_threshold)):
228 if all(ping_loss_above_threshold[idx:]):
229 range_index = max(idx, 1) - 1
261 for idx, result in enumerate(ping_range_result['ping_results']):
269 ping_range_result['attenuation'][idx]))
348 for idx in range(
416 for idx, atten in enumerate(self.attenuators):
418 idx] == testcase_params['attenuated_chain']:
DWifiRssiTest.py274 postprocessed_results[key]['mean'][idx] + CONST_3dB -
275 postprocessed_results['predicted_rssi'][idx]
276 for idx in range(
281 postprocessed_results[key]['mean'][idx] -
282 postprocessed_results['predicted_rssi'][idx]
283 for idx in range(
706 temp_section[idx] for idx in range(len(temp_section))
DWifiRttManagerTest.py139 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
/tools/test/connectivity/acts/framework/acts/test_utils/audio_analysis_lib/
Dcheck_quality.py294 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/
Dattenuator.py63 attn = Attenuator(attn_inst, idx=i)
87 "Attenuator_Port": attenuator.idx
160 and attenuator.idx is attenuator_port):
231 def set_atten(self, idx, value, strict=True): argument
244 def get_atten(self, idx): argument
265 def __init__(self, instrument, idx=0, offset=0): argument
286 self.idx = idx
289 if self.idx >= instrument.num_atten:
309 self.instrument.set_atten(self.idx, value + self.offset, strict)
313 return self.instrument.get_atten(self.idx) - self.offset
/tools/test/connectivity/acts/framework/acts/controllers/attenuator_lib/minicircuits/
Dtelnet.py87 def set_atten(self, idx, value, strict_flag=True): argument
110 if idx >= self.num_atten:
112 idx)
118 self._tnhelper.cmd('CHAN:%s:SETATT:%s' % (idx + 1, value))
120 def get_atten(self, idx): argument
135 if idx >= self.num_atten or idx < 0:
137 idx)
142 atten_val_str = self._tnhelper.cmd('CHAN:%s:ATT?' % (idx + 1))
Dhttp.py89 def set_atten(self, idx, value, strict_flag=True): argument
106 if not (0 <= idx < self.num_atten):
108 idx)
116 self._ip_address, self._port, idx + 1, value),
124 def get_atten(self, idx): argument
137 if not (0 <= idx < self.num_atten):
139 idx)
142 idx + 1),
/tools/test/connectivity/acts/framework/acts/test_utils/coex/
DCoexPerformanceBaseTest.py247 for idx, data in enumerate(content["quality_result"]):
249 self.rvr["bt_gap_analysis"][bt_atten][atten][idx] = (
253 self.rvr["bt_gap_analysis"][bt_atten][atten][idx] = 0
431 for idx, current_throughput in enumerate(
433 current_att = self.rvr[bt_atten]["attenuation"][idx]
435 (throughput_limits[bt_atten]["lower_limit"][idx]) or
437 (throughput_limits[bt_atten]["upper_limit"][idx])):
444 throughput_limits[bt_atten]["lower_limit"][idx],
446 idx]))
480 for idx, current_throughput in enumerate(
[all …]
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DByteArrayList.java243 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()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DFakeTestTest.java304 int idx) { in testPassExpectations() argument
305 final String name = String.format("testMethod%d", idx); in testPassExpectations()
312 ITestInvocationListener l, String klass, int idx, String log) { in testPassExpectations() argument
313 final String name = String.format("testMethod%d", idx); in testPassExpectations()
321 int idx) { in testFailExpectations() argument
322 final String name = String.format("testMethod%d", idx); in testFailExpectations()
329 private void testAssumptionExpectations(ITestInvocationListener l, String klass, int idx) { in testAssumptionExpectations() argument
330 final String name = String.format("testMethod%d", idx); in testAssumptionExpectations()
337 private void testIgnoredExpectations(ITestInvocationListener l, String klass, int idx) { in testIgnoredExpectations() argument
338 final String name = String.format("testMethod%d", idx); in testIgnoredExpectations()
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dwifi_performance_test_utils.py519 for idx, figure in enumerate(figure_array):
523 '.html', '{}-plot_data.json'.format(idx))
728 for idx in range(num_measurements):
831 for idx in range(num_measurements):
919 for idx in range(20):
948 current_rssi, target_rssi, target_atten, idx))
1043 for idx, chain in enumerate(rf_map_by_network[net_id]):
1045 rf_map_by_atten[idx].append({
1287 for idx, line in enumerate(ini_lines):
1291 ini_lines[idx] = "{}={}".format(field_name, field_value)
[all …]
/tools/dexter/slicer/
Dwriter.cc832 dex::u2* idx = &ptr[1]; in WriteInstructions() local
855 dex::u4 new_index = MapStringIndex(ReadU4(idx)); in WriteInstructions()
857 WriteU4(idx, new_index); in WriteInstructions()
860 dex::u4 new_index = MapStringIndex(*idx); in WriteInstructions()
863 *idx = dex::u2(new_index); in WriteInstructions()
869 dex::u4 new_index = MapTypeIndex(*idx); in WriteInstructions()
872 *idx = dex::u2(new_index); in WriteInstructions()
877 dex::u4 new_index = MapFieldIndex(*idx); in WriteInstructions()
880 *idx = dex::u2(new_index); in WriteInstructions()
885 dex::u4 new_index = MapMethodIndex(*idx); in WriteInstructions()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/attenuator_lib/aeroflex/
Dtelnet.py81 def set_atten(self, idx, value): argument
100 if idx >= self.num_atten:
102 idx)
108 self._tnhelper.cmd('ATTN ' + str(idx + 1) + ' ' + str(value), False)
110 def get_atten(self, idx): argument
129 atten_val = self._tnhelper.cmd('ATTN? ' + str(idx + 1))
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DAndroidBinXmlParser.java651 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/tradefederation/core/src/com/android/tradefed/util/
DSimpleStats.java99 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()
DSimplePerfStatResultParser.java96 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_tests/tests/google/tel/live/
DTelLiveDataTest.py1596 for idx, ad in enumerate(self.android_devices):
1597 self.provider = self.android_devices[idx]
1599 idx] + self.android_devices[idx
1623 elif idx == num - 1:
1649 for idx, ad in enumerate(self.android_devices):
1650 self.provider = self.android_devices[idx]
1652 idx] + self.android_devices[idx
1676 elif idx == num - 1:

123