/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/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/loganalysis/src/com/android/loganalysis/parser/ |
D | LogcatParser.java | 280 LogcatData data; in parseLine() local 282 data = new LogcatData(pid, tid, time, level, tag, mPreambleUtil.getLastTail(), in parseLine() 284 mDataMap.put(key, data); in parseLine() 285 mDataList.add(data); in parseLine() 287 data = mDataMap.get(key); in parseLine() 289 data.mLines.add(msg); in parseLine() 297 LogcatData data; in parseLine() local 299 data = new LogcatData(pid, tid, time, level, tag, mPreambleUtil.getLastTail(), in parseLine() 301 mDataMap.put(key, data); in parseLine() 302 mDataList.add(data); in parseLine() [all …]
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/zip/ |
D | CentralDirectoryInfo.java | 183 public CentralDirectoryInfo(byte[] data, int startOffset) throws IOException { in CentralDirectoryInfo() argument 184 this(data, startOffset, false); in CentralDirectoryInfo() 195 public CentralDirectoryInfo(byte[] data, int startOffset, boolean useZip64) throws IOException { in CentralDirectoryInfo() argument 222 Arrays.copyOfRange(data, startOffset, startOffset + 4))) { in CentralDirectoryInfo() 225 mCompressionMethod = ByteArrayUtil.getInt(data, startOffset + 10, 2); in CentralDirectoryInfo() 226 mCrc = ByteArrayUtil.getLong(data, startOffset + 16, 4); in CentralDirectoryInfo() 227 mCompressedSize = ByteArrayUtil.getLong(data, startOffset + 20, 4); in CentralDirectoryInfo() 228 mUncompressedSize = ByteArrayUtil.getLong(data, startOffset + 24, 4); in CentralDirectoryInfo() 229 mInternalFileAttributes = ByteArrayUtil.getInt(data, startOffset + 36, 2); in CentralDirectoryInfo() 230 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/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/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/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.rstrip() for line in data.splitlines()) 29 return dumper.represent_scalar('tag:yaml.org,2002:str', data, style='|') 30 return dumper.represent_scalar('tag:yaml.org,2002:str', data)
|
/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/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/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/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/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/tests/src/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/tradefederation/core/tests/src/com/android/tradefed/device/metric/ |
D | TemperatureCollectorTest.java | 68 DeviceMetricData data = new DeviceMetricData(mContext); in testCollector() local 69 mCollector.onStart(data); in testCollector() 70 mCollector.collect(mDevice, data); in testCollector() 71 mCollector.collect(mDevice, data); in testCollector() 72 mCollector.onEnd(data); in testCollector() 78 data.addToMetrics(results); in testCollector() 89 DeviceMetricData data = new DeviceMetricData(mContext); in testCollectorNoData() local 90 mCollector.onStart(data); in testCollectorNoData() 91 mCollector.collect(mDevice, data); in testCollectorNoData() 92 mCollector.onEnd(data); in testCollectorNoData() [all …]
|
D | ProcessMaxMemoryCollectorTest.java | 79 DeviceMetricData data = new DeviceMetricData(mContext); in testCollector() local 80 mCollector.onStart(data); in testCollector() 81 mCollector.collect(mDevice, data); in testCollector() 82 mCollector.onEnd(data); in testCollector() 87 data.addToMetrics(results); in testCollector() 97 DeviceMetricData data = new DeviceMetricData(mContext); in testCollectorNoProcess() local 98 mCollector.onStart(data); in testCollectorNoProcess() 99 mCollector.collect(mDevice, data); in testCollectorNoProcess() 100 mCollector.onEnd(data); in testCollectorNoProcess() 105 data.addToMetrics(results); in testCollectorNoProcess()
|
/tools/security/fuzzing/orphans/libexif/ |
D | libexif_fuzzer.cpp | 7 static void mnote_dump(ExifData *data) { in mnote_dump() argument 8 ExifMnoteData *mn = exif_data_get_mnote_data(data); in mnote_dump() 30 static void data_dump(ExifData *data) { in data_dump() argument 31 exif_data_foreach_content(data, data_func, NULL); in data_dump() 34 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { in LLVMFuzzerTestOneInput() argument 36 auto image = exif_data_new_from_data(data, size); in LLVMFuzzerTestOneInput() 57 exif_loader_write(loader, const_cast<unsigned char *>(data), size); in LLVMFuzzerTestOneInput()
|
/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/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/tradefederation/core/tests/src/com/android/tradefed/util/statsd/ |
D | MetricUtilTest.java | 177 List<EventMetricData> data = MetricUtil.getEventMetricData(mTestDevice, CONFIG_ID); in testNonEmptyMetricReportList() local 179 assertThat(data.size()).comparesEqualTo(2); in testNonEmptyMetricReportList() 181 assertThat(data.get(0).getElapsedTimestampNanos()).comparesEqualTo(METRIC_2_NANOS); in testNonEmptyMetricReportList() 182 assertThat(data.get(0).getAtom().hasBleScanResultReceived()).isTrue(); in testNonEmptyMetricReportList() 184 assertThat(data.get(1).getElapsedTimestampNanos()).comparesEqualTo(METRIC_1_NANOS); in testNonEmptyMetricReportList() 185 assertThat(data.get(1).getAtom().hasBleScanStateChanged()).isTrue(); in testNonEmptyMetricReportList() 205 List<EventMetricData> data = MetricUtil.getEventMetricData(mTestDevice, CONFIG_ID); in testEmptyMetricReportList() local 207 assertThat(data.size()).comparesEqualTo(0); in testEmptyMetricReportList() 231 List<EventMetricData> data = MetricUtil.getEventMetricData(mTestDevice, CONFIG_ID); in testMultipleReportsInReportList_differentAtoms() local 233 assertThat(data.size()).comparesEqualTo(2); in testMultipleReportsInReportList_differentAtoms() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/ |
D | RemoteManagerTest.java | 75 InputStream data = new ByteArrayInputStream(buf.getBytes()); in testProcessClientOperations_invalidAction() local 76 BufferedReader in = new BufferedReader(new InputStreamReader(data)); in testProcessClientOperations_invalidAction() 94 InputStream data = new ByteArrayInputStream(buf.getBytes()); in testProcessClientOperations_initHandover() local 95 BufferedReader in = new BufferedReader(new InputStreamReader(data)); in testProcessClientOperations_initHandover() 113 InputStream data = new ByteArrayInputStream(buf.getBytes()); in testProcessClientOperations_addCommand() local 114 BufferedReader in = new BufferedReader(new InputStreamReader(data)); in testProcessClientOperations_addCommand() 129 InputStream data = new ByteArrayInputStream(buf.getBytes()); in testProcessClientOperations_addCommand_fail() local 130 BufferedReader in = new BufferedReader(new InputStreamReader(data)); in testProcessClientOperations_addCommand_fail() 147 InputStream data = new ByteArrayInputStream(buf.getBytes()); in testProcessClientOperations_addCommand_config() local 148 BufferedReader in = new BufferedReader(new InputStreamReader(data)); in testProcessClientOperations_addCommand_config() [all …]
|
/tools/asuite/atest/test_runners/ |
D | event_handler_unittest.py | 146 for name, data in EVENTS_NORMAL: 147 self.fake_eh.process_event(name, data) 178 for name, data in EVENTS_RUN_FAILURE: 179 self.fake_eh.process_event(name, data) 197 for name, data in EVENTS_INVOCATION_FAILURE: 198 self.fake_eh.process_event(name, data) 216 for name, data in EVENTS_MISSING_TEST_RUN_STARTED_EVENT: 217 self.fake_eh.process_event(name, data) 236 for name, data in EVENTS_NOT_BALANCED_BEFORE_RAISE: 237 self.fake_eh.process_event(name, data) [all …]
|
/tools/tradefederation/core/atest/test_runners/ |
D | event_handler_unittest.py | 142 for name, data in EVENTS_NORMAL: 143 self.fake_eh.process_event(name, data) 174 for name, data in EVENTS_RUN_FAILURE: 175 self.fake_eh.process_event(name, data) 193 for name, data in EVENTS_INVOCATION_FAILURE: 194 self.fake_eh.process_event(name, data) 212 for name, data in EVENTS_MISSING_TEST_RUN_STARTED_EVENT: 213 self.fake_eh.process_event(name, data) 232 for name, data in EVENTS_NOT_BALANCED_BEFORE_RAISE: 233 self.fake_eh.process_event(name, data) [all …]
|