Home
last modified time | relevance | path

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

123

/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/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/tradefederation/core/src/com/android/tradefed/command/
DCommandFileParser.java145 public boolean get(int idx) { in get() argument
146 return mBitmask.get(idx); in get()
149 public boolean set(int idx) { in set() argument
150 boolean retVal = mBitmask.set(idx, true); in set()
157 public boolean unset(int idx) { in unset() argument
158 boolean retVal = mBitmask.set(idx, false); in unset()
165 public boolean remove(int idx) { in remove() argument
166 boolean retVal = mBitmask.remove(idx); in remove()
173 public void add(int idx, boolean val) { in add() argument
174 mBitmask.add(idx, val); in add()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/attenuator_lib/minicircuits/
Dhttp.py88 def set_atten(self, idx, value, strict=True, retry=False, **_): argument
106 if not (0 <= idx < self.num_atten):
108 idx)
117 self._port, idx + 1,
123 self.set_atten(idx, value, strict, retry=False)
129 def get_atten(self, idx, retry=False, **_): argument
143 if not (0 <= idx < self.num_atten):
145 idx)
147 'http://{}:{}/CHAN:{}:ATT?'.format(self._ip_address, self.port, idx + 1),
154 self.get_atten(idx, retry=False)
Dtelnet.py88 def set_atten(self, idx, value, strict=True, retry=False): argument
112 if idx >= self.num_atten:
114 idx)
121 self._tnhelper.cmd('CHAN:%s:SETATT:%s' % (idx + 1, adjusted_value),
124 def get_atten(self, idx, retry=False): argument
140 if idx >= self.num_atten or idx < 0:
142 idx)
147 atten_val_str = self._tnhelper.cmd('CHAN:%s:ATT?' % (idx + 1),
/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/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):
229 def set_atten(self, idx, value, strict=True, retry=False): argument
243 def get_atten(self, idx, retry=False): argument
266 def __init__(self, instrument, idx=0, offset=0): argument
287 self.idx = idx
290 if self.idx >= instrument.num_atten:
311 self.instrument.set_atten(self.idx,
318 return self.instrument.get_atten(self.idx, retry) - self.offset
/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/asuite/atest/
Dcc_test_filter_generator.py117 for idx in range(0, len(line)):
118 chars.append(line[idx] if idx > index_end else ' ')
124 for idx in range(0, len(line) - 1):
125 mark = line[idx : idx + 2]
127 return CCCommentType.LINE_COMMENT, idx
129 return CCCommentType.BLOCK_COMMENT, idx
/tools/test/connectivity/acts_tests/tests/google/wifi/
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 …]
DWifiScannerScanTest.py264 idx = data["Index"]
267 "Wifi single shot scan started index: %s at real time: %s", idx,
279 event_name = "{}{}onResults".format(EVENT_TAG, idx)
301 self.dut.droid.wifiScannerStopScan(idx)
323 idx = data["Index"]
325 self.log.info("Wifi single shot scan started with index: %s", idx)
333 event_name = "%s%sonResults" % (EVENT_TAG, idx)
343 event_name = "{}{}onFullResult".format(EVENT_TAG, idx)
355 self.dut.droid.wifiScannerStopScan(idx)
383 idx = data["Index"]
[all …]
DWifiScannerMultiScanTest.py274 idx = data["Index"]
286 return idx, wait_time, scan_channels
369 idx, wait_time, scan_chan = self.start_scan(scan_setting)
372 scan_setting["band"], idx, wait_time, scan_chan)
373 idx_list.append(idx)
380 SCAN_EVENT_TAG, idx)] = scan_results_events
384 SCAN_EVENT_TAG, idx)] = scan_results_events
393 for idx in idx_list:
394 self.dut.droid.wifiScannerStopBackgroundScan(idx)
DWifiTdlsRvrTest.py142 for idx in range(len(tput_below_limit)):
143 if all(tput_below_limit[idx:]):
144 if idx == 0:
149 'total_attenuation'][max(idx, 1) - 1]
160 for idx in range(len(tput_below_limit)):
161 if all(tput_below_limit[idx:]):
163 'total_attenuation'][max(idx, 1) - 1]
197 for idx, ad in enumerate(self.android_devices):
198 tdls_config[idx] = {
DWifiRoamingPerformanceTest.py264 (idx, idx + 1)
265 for idx in range(len(result['rssi_result']['bssid']) - 1)
266 if result['rssi_result']['bssid'][idx] != result['rssi_result']
267 ['bssid'][idx + 1]
353 any(tput_thresholding[max(0, idx - window_size):idx])
354 for idx in range(1,
427 idx * IPERF_INTERVAL for idx in range(len(result['throughput']))
451 for idx, atten in enumerate(self.attenuators):
453 item["network"] for item in self.rf_map_by_atten[idx]
595 for idx, atten in enumerate(self.attenuators):
[all …]
/tools/netsim/ui/ts/
Ddevice-list.ts78 (device, idx) => html`
85 color=${rainbow[idx % rainbow.length]}
95 color=${rainbow[idx % rainbow.length]}
107 color=${rainbow[idx % rainbow.length]}
117 color=${rainbow[idx % rainbow.length]}
Ddevice-map.ts127 (device, idx) => html`
142 .color=${rainbow[idx % rainbow.length]}
174 .color=${rainbow[idx % rainbow.length]}
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/audio_analysis_lib/
Dcheck_quality.py286 for idx, expected_freq in enumerate(expected_freqs):
289 if not self._spectrals[idx]:
291 'Failed at channel %d: no dominant frequency' % idx)
292 dominant_freq = self._spectrals[idx][0][0]
296 (idx, dominant_freq, expected_freq))
307 for idx, quality_res in enumerate(self._quality_result):
361 for idx, expected_freq in enumerate(expected_freqs):
364 if not self._spectrals[idx]:
366 'Failed at channel %d: no dominant frequency' % idx)
367 dominant_freq = self._spectrals[idx][0][0]
[all …]
/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/security/fuzzing/system_fuzzers/libwatchdog_perf_service/
Dlibwatchdog_perf_service_fuzzer.cpp60 uint32_t idx = choose; in LLVMFuzzerTestOneInput() local
67 idx = fdp.ConsumeIntegralInRange<uint32_t>(3, 12); in LLVMFuzzerTestOneInput()
72 procStatsSnapshot += info.instr[idx]; in LLVMFuzzerTestOneInput()
73 for (int i = 0; i < info.len[idx]; i++) { in LLVMFuzzerTestOneInput()
/tools/test/connectivity/acts_tests/acts_contrib/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/javatests/com/android/tradefed/testtype/
DFakeTestTest.java322 ITestInvocationListener l, String klass, int idx, InOrder io) { in testPassExpectations() argument
323 final String name = String.format("testMethod%d", idx); in testPassExpectations()
330 ITestInvocationListener l, String klass, int idx, String log, InOrder io) { in testPassExpectations() argument
331 final String name = String.format("testMethod%d", idx); in testPassExpectations()
339 ITestInvocationListener l, String klass, int idx, InOrder io) { in testFailExpectations() argument
340 final String name = String.format("testMethod%d", idx); in testFailExpectations()
348 ITestInvocationListener l, String klass, int idx, InOrder io) { in testAssumptionExpectations() argument
349 final String name = String.format("testMethod%d", idx); in testAssumptionExpectations()
357 ITestInvocationListener l, String klass, int idx, InOrder io) { in testIgnoredExpectations() argument
358 final String name = String.format("testMethod%d", idx); in testIgnoredExpectations()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/wifi_performance_test_utils/
Dbokeh_figure.py131 for idx, xy in enumerate(
140 value[idx] if len(value) > idx else '')
354 for idx, figure in enumerate(figure_array):
358 '.html', '{}-plot_data.json'.format(idx))
/tools/test/connectivity/acts_tests/tests/google/wifi/aware/performance/
DWifiAwareRvrTest.py170 for idx in range(len(tput_below_limit)):
171 if all(tput_below_limit[idx:]):
172 if idx == 0:
177 'total_attenuation'][max(idx, 1) - 1]
188 for idx in range(len(tput_below_limit)):
189 if all(tput_below_limit[idx:]):
191 'total_attenuation'][max(idx, 1) - 1]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/cellular/performance/
DCellularThroughputBaseTest.py597 for idx in range(num_apm_toggles):
599 self.dut_utils.toggle_airplane_mode(False, False, idx)
601 'LTE', 'CELL1', 'CONN', 10 * (idx + 1)):
606 elif idx < num_apm_toggles - 1:
608 self.dut_utils.toggle_airplane_mode(True, False, idx)
638 for idx in range(num_apm_toggles):
640 self.dut_utils.toggle_airplane_mode(False, False, idx)
642 'NR5G', 'CELL1', 'CONN', 10 * (idx + 1)):
647 elif idx < num_apm_toggles - 1:
649 self.dut_utils.toggle_airplane_mode(True, False, idx)

123