/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
D | FatDirectoryEntry.java | 65 private final byte[] data; field in FatDirectoryEntry 69 FatDirectoryEntry(byte[] data, boolean readOnly) { in FatDirectoryEntry() argument 72 this.data = data; in FatDirectoryEntry() 103 final byte[] data = new byte[SIZE]; in read() 104 buff.get(data); in read() 105 return new FatDirectoryEntry(data, readOnly); in read() 177 return LittleEndian.getUInt8(data, OFFSET_ATTRIBUTES); in getFlags() 181 LittleEndian.setInt8(data, OFFSET_ATTRIBUTES, flags); in setFlags() 208 final byte[] data = new byte[SIZE]; in createVolumeLabel() 212 data, 0, in createVolumeLabel() local [all …]
|
D | FatType.java | 37 long readEntry(byte[] data, int index) { in readEntry() argument 39 final int b1 = data[idx] & 0xFF; in readEntry() 40 final int b2 = data[idx + 1] & 0xFF; in readEntry() 51 void writeEntry(byte[] data, int index, long entry) { in writeEntry() argument 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() 70 long readEntry(byte[] data, int index) { in readEntry() argument 72 final int b1 = data[idx] & 0xFF; in readEntry() [all …]
|
/tools/security/fuzzing/orphans/libcppbor/ |
D | cppbor_parse_fuzzer.cpp | 33 void FuzzParse(const uint8_t* data, size_t size) { in FuzzParse() argument 34 const uint8_t* cursor = data; in FuzzParse() 35 const uint8_t* end = data + size; in FuzzParse() 45 void FuzzParseWithViews(const uint8_t* data, size_t size) { in FuzzParseWithViews() argument 46 const uint8_t* cursor = data; in FuzzParseWithViews() 47 const uint8_t* end = data + size; in FuzzParseWithViews() 57 void FuzzParseWithClient(const uint8_t* data, size_t size) { in FuzzParseWithClient() argument 58 const uint8_t* end = data + size; in FuzzParseWithClient() 60 parse(data, end, &parseClient); in FuzzParseWithClient() 63 void FuzzParseWithClientAndViews(const uint8_t* data, size_t size) { in FuzzParseWithClientAndViews() argument [all …]
|
D | cppbor_fuzzer.cpp | 21 void FuzzStringParsing(const uint8_t* data, size_t size) { in FuzzStringParsing() argument 22 FuzzedDataProvider dataProvider(data, size); in FuzzStringParsing() 28 void FuzzVectorParsing(const uint8_t* data, size_t size) { in FuzzVectorParsing() argument 29 FuzzedDataProvider dataProvider(data, size); in FuzzVectorParsing() 39 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { in LLVMFuzzerTestOneInput() argument 40 FuzzStringParsing(data, size); in LLVMFuzzerTestOneInput() 41 FuzzVectorParsing(data, size); in LLVMFuzzerTestOneInput()
|
/tools/loganalysis/src/com/android/loganalysis/parser/ |
D | LogcatParser.java | 283 LogcatData data; in parseLine() local 285 data = new LogcatData(pid, tid, time, level, tag, mPreambleUtil.getLastTail(), in parseLine() 287 mDataMap.put(key, data); in parseLine() 288 mDataList.add(data); in parseLine() 290 data = mDataMap.get(key); in parseLine() 292 data.mLines.add(msg); in parseLine() 300 LogcatData data; in parseLine() local 302 data = new LogcatData(pid, tid, time, level, tag, mPreambleUtil.getLastTail(), in parseLine() 304 mDataMap.put(key, data); in parseLine() 305 mDataList.add(data); in parseLine() [all …]
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/zip/ |
D | CentralDirectoryInfo.java | 187 public CentralDirectoryInfo(byte[] data, int startOffset) throws IOException { in CentralDirectoryInfo() argument 188 this(data, startOffset, false); in CentralDirectoryInfo() 199 public CentralDirectoryInfo(byte[] data, int startOffset, boolean useZip64) throws IOException { in CentralDirectoryInfo() argument 226 Arrays.copyOfRange(data, startOffset, startOffset + 4))) { in CentralDirectoryInfo() 229 mCompressionMethod = ByteArrayUtil.getInt(data, startOffset + 10, 2); in CentralDirectoryInfo() 230 mCrc = ByteArrayUtil.getLong(data, startOffset + 16, 4); in CentralDirectoryInfo() 231 mCompressedSize = ByteArrayUtil.getLong(data, startOffset + 20, 4); in CentralDirectoryInfo() 232 mUncompressedSize = ByteArrayUtil.getLong(data, startOffset + 24, 4); in CentralDirectoryInfo() 233 mInternalFileAttributes = ByteArrayUtil.getInt(data, startOffset + 36, 2); in CentralDirectoryInfo() 234 mExternalFileAttributes = ByteArrayUtil.getLong(data, startOffset + 38, 4); in CentralDirectoryInfo() [all …]
|
D | LocalFileHeader.java | 103 byte[] data; in LocalFileHeader() 106 data = new byte[LOCAL_FILE_HEADER_SIZE]; in LocalFileHeader() 107 stream.read(data); in LocalFileHeader() 111 if (!Arrays.equals(LOCAL_FILE_HEADER_SIGNATURE, Arrays.copyOfRange(data, 0, 4))) { in LocalFileHeader() 114 mCompressionMethod = ByteArrayUtil.getInt(data, 8, 2); in LocalFileHeader() 115 mCrc = ByteArrayUtil.getLong(data, 14, 4); in LocalFileHeader() 116 mCompressedSize = ByteArrayUtil.getLong(data, 18, 2); in LocalFileHeader() 117 mUncompressedSize = ByteArrayUtil.getLong(data, 22, 2); in LocalFileHeader() 118 mFileNameLength = ByteArrayUtil.getInt(data, 26, 2); in LocalFileHeader() 119 mExtraFieldLength = ByteArrayUtil.getInt(data, 28, 2); in LocalFileHeader()
|
/tools/dexter/slicer/ |
D | writer.cc | 41 static void WriteEncodedValueHeader(dex::u1 type, int arg, Section& data) { in WriteEncodedValueHeader() argument 45 data.Push<dex::u1>(header); in WriteEncodedValueHeader() 50 static void WriteIntValue(dex::u1 type, T value, Section& data) { in WriteIntValue() argument 70 WriteEncodedValueHeader(type, size - 1, data); in WriteIntValue() 71 data.Push(buff, size); in WriteIntValue() 76 static void WriteFloatValue(dex::u1 type, T value, Section& data) { in WriteFloatValue() argument 93 WriteEncodedValueHeader(type, size - 1, data); in WriteFloatValue() 94 data.Push(buff, size); in WriteFloatValue() 97 static void WriteEncodedArray(const ir::EncodedArray* ir_array, Section& data); 98 static void WriteAnnotation(const ir::Annotation* ir_annotation, Section& data); [all …]
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | HexEncoding.java | 34 public static String encode(byte[] data, int offset, int length) { in encode() argument 37 byte b = data[offset + i]; in encode() 47 public static String encode(byte[] data) { in encode() argument 48 return encode(data, 0, data.length); in encode() 54 public static String encodeRemaining(ByteBuffer data) { in encodeRemaining() argument 55 return encode(data.array(), data.arrayOffset() + data.position(), data.remaining()); in encodeRemaining()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | AudioLoopbackTestHelper.java | 310 public void addTestData(ResultData data, in addTestData() argument 314 mResultDictionaries.add(data.getIteration(), resultDictionary); in addTestData() 315 mAllResults.add(data); in addTestData() 317 if (useImageAnalyzer && data.hasLogFile(LogFileType.GRAPH)) { in addTestData() 319 final String screenshot = data.getLogFile(LogFileType.GRAPH); in addTestData() 321 data.setImageAnalyzerResult(result.first); in addTestData() 322 data.setFailureReason(result.second); in addTestData() 352 for (final ResultData data : mBadResults) { in getWorstResults() 354 worstResults.add(data); in getWorstResults() 359 for (final ResultData data : mGoodResults) { in getWorstResults() [all …]
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/utils/ |
D | LittleEndianUtilsTest.java | 53 int[] data = new int[COUNT]; in readWrite2Le() local 54 for (int i = 0; i < data.length; i++) { in readWrite2Le() 55 data[i] = r.nextInt(range); in readWrite2Le() 59 for (int d : data) { in readWrite2Le() 64 for (int i = 0; i < data.length; i++) { in readWrite2Le() 65 assertEquals(data[i], LittleEndianUtils.readUnsigned2Le(in)); in readWrite2Le() 94 long[] data = new long[COUNT]; in readWrite4Le() local 95 for (int i = 0; i < data.length; i++) { in readWrite4Le() 97 data[i] = r.nextInt() - (long) Integer.MIN_VALUE; in readWrite4Le() 98 } while (data[i] < 0); in readWrite4Le() [all …]
|
/tools/test/connectivity/acts/framework/acts/libs/ |
D | yaml_writer.py | 22 lambda dumper, data: dumper.represent_dict(data), 26 def _str_representer(dumper, data): argument 27 if len(data.splitlines()) > 1: 28 data = '\n'.join(line.replace('\t', ' ').rstrip() 29 for line in data.splitlines()) 30 return dumper.represent_scalar('tag:yaml.org,2002:str', data, style='|') 31 return dumper.represent_scalar('tag:yaml.org,2002:str', data)
|
/tools/test/graphicsbenchmark/performance_tests/hostside/test/com/android/game/qualification/metric/ |
D | HistogramTest.java | 38 List<Long> data = Arrays.asList(0L, 1L, 1L, 2L, 0L); in testSimple() local 39 Histogram histogram = new Histogram(data, 1L, null, null); in testSimple() 62 List<Long> data = Arrays.asList(-2L, -1L, 0L, 1L, 2L); in testCutoff() local 63 Histogram histogram = new Histogram(data, 1L,-1L, 1L); in testCutoff() 78 List<Long> data = Arrays.asList(0L, 2L, 4L); in testPlotCutoff() local 79 Histogram histogram = new Histogram(data, 1L, 1L, 3L); in testPlotCutoff() 99 List<Long> data = Arrays.asList(0L, 1L, 2L, 3L, 4L); in testBuckets() local 100 Histogram histogram = new Histogram(data, 3L, null, null); in testBuckets() 117 List<Long> data = Arrays.asList(-2L, -1L, 0L, 1L, 2L, 3L, 4L, 5L, 6L, 7L); in testEvenBucketSize() local 118 Histogram histogram = new Histogram(data, 2L,-1L, 5L); in testEvenBucketSize() [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/relay_lib/ |
D | usb_relay_board_base.py | 59 def _get_relay_state(self, data, relay): argument 70 return self.test_bit(data, 1) 72 return self.test_bit(data, 3) 74 return self.test_bit(data, 5) 76 return self.test_bit(data, 7) 78 return self.test_bit(data, 2) 80 return self.test_bit(data, 4) 82 return self.test_bit(data, 6) 84 return self.test_bit(data, 8)
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/compress/ |
D | MultiCompressorTest.java | 47 private static byte[] compress(byte[] data, int level) throws Exception { in compress() argument 49 deflater.setInput(data); in compress() 52 byte[] resultAll = new byte[data.length * 2]; in compress() 81 byte[] data = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; in sameCompressionResultButBetterThanStore() 84 zf.add("file", new ByteArrayInputStream(data)); in sameCompressionResultButBetterThanStore() 92 assertTrue(ci.getCompressedSize() < data.length); in sameCompressionResultButBetterThanStore() 98 byte[] data = getCompressibleData(); 99 int bestSize = compress(data, Deflater.BEST_COMPRESSION).length; 100 int defaultSize = compress(data, Deflater.DEFAULT_COMPRESSION).length; 116 defaultZFile.add("wikipedia.html", new ByteArrayInputStream(data)); [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/keystore/ |
D | JSONFileKeyStoreClientTest.java | 107 JSONObject data = new JSONObject(mJsonData); in testDoesNotContainMissingKey() local 108 mKeyStore.setKeyStore(data); in testDoesNotContainMissingKey() 115 JSONObject data = new JSONObject(mJsonData); in testContainsValidKey() local 116 mKeyStore.setKeyStore(data); in testContainsValidKey() 122 JSONObject data = new JSONObject(mJsonData); in testFetchMissingKey() local 123 mKeyStore.setKeyStore(data); in testFetchMissingKey() 130 JSONObject data = new JSONObject(mJsonData); in testFetchNullKey() local 131 mKeyStore.setKeyStore(data); in testFetchNullKey() 138 JSONObject data = new JSONObject(mJsonData); in testFetchValidKey() local 139 mKeyStore.setKeyStore(data); in testFetchValidKey() [all …]
|
/tools/trebuchet/trebuchet/startup-analyzer/ |
D | README.md | 115 /data/app/com.facebook.katana @ 0.040 ms 116 /data/app/com.facebook.katana @ 0.034 ms 117 /data/app/com.facebook.katana @ 0.033 ms 118 /data/app/com.facebook.katana @ 0.035 ms 119 /data/app/com.facebook.katana @ 0.034 ms 120 /data/app/com.facebook.katana @ 0.039 ms 121 /data/app/com.facebook.katana @ 0.033 ms 122 /data/app/com.facebook.katana @ 0.034 ms 123 /data/app/com.facebook.katana @ 0.033 ms 124 /data/app/com.facebook.katana @ 0.062 ms [all …]
|
/tools/netsim/testing/mobly/ |
D | ble_utils.py | 125 result = scan_result.data['result'] 202 result = scan_result.data['result'] 203 scan_start_to_result_time_ms = scan_result.data['StartToResultTimeDeltaMs'] 284 result = [result.data['result'] for result in scan_result] 346 asserts.assert_equal(start_server_result.data[STATUS], GATT_SUCCESS) 349 for characteristic in start_server_result.data['Service'][ 368 asserts.assert_equal(start_client_result.data[STATUS], GATT_SUCCESS) 369 asserts.assert_equal(start_client_result.data[STATE], 'STATE_CONNECTED') 373 asserts.assert_equal(server_event.data[STATUS], GATT_SUCCESS) 375 server_event.data[STATE], [all …]
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/ |
D | ByteTracker.java | 49 byte[] data = ByteStreams.toByteArray(stream); in fromStream() 50 updateUsage(data.length); in fromStream() 51 return new CloseableDelegateByteSource(ByteSource.wrap(data), data.length) { in fromStream() 69 byte[] data = stream.toByteArray(); 70 updateUsage(data.length); 71 return new CloseableDelegateByteSource(ByteSource.wrap(data), data.length) {
|
D | RandomAccessFileUtils.java | 38 public static void fullyRead(@Nonnull RandomAccessFile raf, @Nonnull byte[] data) in fullyRead() argument 43 while ((r = raf.read(data, p, data.length - p)) > 0) { in fullyRead() 45 if (p == data.length) { in fullyRead() 50 if (p < data.length) { in fullyRead() 53 + data.length in fullyRead()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/statsd/ |
D | MetricUtilTest.java | 177 List<EventMetricData> data = MetricUtil.getEventMetricData(mTestDevice, CONFIG_ID); in testNonEmptyMetricReportList() local 179 assertThat(data.size()).isEquivalentAccordingToCompareTo(2); in testNonEmptyMetricReportList() 181 assertThat(data.get(0).getElapsedTimestampNanos()) in testNonEmptyMetricReportList() 183 assertThat(data.get(0).getAtom().hasBleScanResultReceived()).isTrue(); in testNonEmptyMetricReportList() 185 assertThat(data.get(1).getElapsedTimestampNanos()) in testNonEmptyMetricReportList() 187 assertThat(data.get(1).getAtom().hasBleScanStateChanged()).isTrue(); in testNonEmptyMetricReportList() 207 List<EventMetricData> data = MetricUtil.getEventMetricData(mTestDevice, CONFIG_ID); in testEmptyMetricReportList() local 209 assertThat(data.size()).isEquivalentAccordingToCompareTo(0); in testEmptyMetricReportList() 233 List<EventMetricData> data = MetricUtil.getEventMetricData(mTestDevice, CONFIG_ID); in testMultipleReportsInReportList_differentAtoms() local 235 assertThat(data.size()).isEquivalentAccordingToCompareTo(2); in testMultipleReportsInReportList_differentAtoms() [all …]
|
/tools/netsim/src/util/ |
D | ini_file.cc | 28 data.clear(); in Read() 48 data.emplace(key, val); in Read() 66 for (const auto &pair : data) { in Write() 73 return data.find(key) != std::end(data); in HasKey() 77 auto citer = data.find(key); in Get() 78 return (citer == std::end(data)) ? std::nullopt in Get() 83 data[key] = std::string(value); in Set()
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/util/ |
D | RamDisk.java | 42 private final ByteBuffer data; field in RamDisk 79 this.data = buffer; in RamDisk() 106 this.data = ByteBuffer.allocate(size); in RamDisk() 127 data.limit((int) (devOffset + dest.remaining())); in read() 128 data.position((int) devOffset); in read() 130 dest.put(data); in read() 143 data.limit((int) (devOffset + src.remaining())); in write() 144 data.position((int) devOffset); in write() 147 data.put(src); in write() 159 return this.data.asReadOnlyBuffer(); in getBuffer()
|
/tools/asuite/atest/test_runners/ |
D | event_handler_unittest.py | 317 for name, data in EVENTS_NORMAL: 318 self.fake_eh.process_event(name, data) 353 for name, data in EVENTS_RUN_FAILURE: 354 self.fake_eh.process_event(name, data) 374 for name, data in EVENTS_INVOCATION_FAILURE: 375 self.fake_eh.process_event(name, data) 395 for name, data in EVENTS_MISSING_TEST_RUN_STARTED_EVENT: 396 self.fake_eh.process_event(name, data) 417 for name, data in EVENTS_NOT_BALANCED_BEFORE_RAISE: 418 self.fake_eh.process_event(name, data) [all …]
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | ExtraField.java | 160 byte[] data = new byte[dataSize]; in parseSegments() 171 buffer.get(data); in parseSegments() 174 Segment seg = factory.make(headerId, data); in parseSegments() 278 Segment make(int headerId, @Nonnull byte[] data) throws IOException; in make() argument 296 private final byte[] data; field in ExtraField.RawDataSegment 304 RawDataSegment(int headerId, @Nonnull byte[] data) { in RawDataSegment() argument 306 this.data = data; in RawDataSegment() 317 LittleEndianUtils.writeUnsigned2Le(out, data.length); in write() 318 out.put(data); in write() 323 return 4 + data.length; in size() [all …]
|