/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/security/fuzzing/orphans/pppd/ |
D | eap_fuzz.cc | 34 std::string data = ""; in DEFINE_BINARY_PROTO_FUZZER() local 44 data = eap_request.identity().data(); in DEFINE_BINARY_PROTO_FUZZER() 45 S_MALLOC(fuzz_packet, data.size()+EAP_HEADERLEN+1); in DEFINE_BINARY_PROTO_FUZZER() 50 data = eap_request.notification().data(); in DEFINE_BINARY_PROTO_FUZZER() 51 S_MALLOC(fuzz_packet, data.size()+EAP_HEADERLEN+1); in DEFINE_BINARY_PROTO_FUZZER() 56 data = eap_request.md5chap().data(); in DEFINE_BINARY_PROTO_FUZZER() 57 S_MALLOC(fuzz_packet, data.size()+EAP_HEADERLEN+1); in DEFINE_BINARY_PROTO_FUZZER() 66 data = request_srp.srp_challenge().data(); in DEFINE_BINARY_PROTO_FUZZER() 71 data = request_srp.srp_validator().data(); in DEFINE_BINARY_PROTO_FUZZER() 76 data = request_srp.srp_key().data(); in DEFINE_BINARY_PROTO_FUZZER() [all …]
|
D | eap_fuzz.proto | 28 required bytes data = 1; field 32 required bytes data = 1; field 36 required bytes data = 2; field 48 required bytes data = 1; field 52 required bytes data = 1; field 56 required bytes data = 1; field 60 required bytes data = 1; field 74 required bytes data = 1; field 78 required bytes data = 1; field 90 required bytes data = 1; field [all …]
|
/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/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/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 …]
|
D | AudioLoopbackTest.java | 508 private Map<String, String> runTest(ResultData data, final long timeout) in runTest() argument 514 final String loopbackCmd = getTestCommand(data.getIteration()); in runTest() 530 data.setDeviceTestStartTime(deviceTestStartTime); in runTest() 533 final String resultFilename = getDeviceFilename(LogFileType.RESULT, data.getIteration()); in runTest() 538 storeDeviceFilesOnHost(data); in runTest() 539 final String reportFilename = data.getLogFile(LogFileType.RESULT); in runTest() 548 data.setIsTimedOut(System.currentTimeMillis() - loopbackStartTime >= timeout); in runTest() 549 } while (!data.hasLogFile(LogFileType.RESULT) && !data.isTimedOut()); in runTest() 553 saveLogcatForIteration(data, lc, data.getIteration()); in runTest() 558 if (data.isTimedOut()) { in runTest() [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/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/test/connectivity/acts/framework/tests/metrics/loggers/ |
D | bounded_metrics_test.py | 154 data=result) 212 self.assertEqual(published.data.test_method, 'test_magnificent') 213 self.assertEqual(published.data.test_class, 'FantasticTest') 214 self.assertEqual(published.data.value, 1234) 215 self.assertEqual(published.data.lower_limit.value, -5) 216 self.assertEqual(published.data.upper_limit.value, 15) 217 self.assertEqual(published.data.unit, 'towels') 257 self.assertEqual(published1.data.test_method, '') 258 self.assertEqual(published2.data.test_method, '') 259 self.assertEqual(published3.data.test_method, '') [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 …]
|
/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 | atest_tf_test_runner_unittest.py | 68 data={constants.TI_REL_CONFIG: uc.CONFIG2_FILE, 74 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE, 80 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE, 86 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE, 93 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE, 105 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE, 111 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE, 119 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE, 127 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE, 133 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE, [all …]
|
D | atest_tf_test_runner.py | 285 data = conn.recv(SOCKET_BUFFER) 286 if isinstance(data, bytes): 287 data = data.decode() 288 logging.debug('received: %s', data) 289 if data: 290 data_map[conn] += data 303 return bool(data) 562 data = {} 565 data.update(test_info_i.data) 568 module_args.extend(test_info_i.data.get( [all …]
|
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 | atest_tf_test_runner_unittest.py | 66 data={constants.TI_REL_CONFIG: uc.CONFIG2_FILE, 72 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE, 78 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE, 84 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE, 91 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE, 103 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE, 109 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE, 117 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE, 125 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE, 131 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE, [all …]
|
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 …]
|
/tools/test/connectivity/acts/tests/google/wifi/aware/stress/ |
D | MessagesStressTest.py | 171 for msg, data in messages_by_msg.items(): 172 if data[KEY_TX_OK_COUNT] > 0: 174 if data[KEY_TX_OK_COUNT] > 1: 177 if data[KEY_TX_FAIL_COUNT] > 0: 179 if data[KEY_TX_FAIL_COUNT] > 1: 182 if (data[KEY_TX_OK_COUNT] == 0 and data[KEY_TX_FAIL_COUNT] == 0 183 and data[KEY_ID] != -1): 185 if data[KEY_TX_OK_COUNT] > 0 and data[KEY_RX_COUNT] == 0: 188 if data[KEY_RX_COUNT] > 0: 190 if data[KEY_RX_COUNT] > 1: [all …]
|
/tools/test/connectivity/acts/framework/tests/metrics/ |
D | core_test.py | 38 self.data = Mock() 42 metric = ProtoMetric(name = self.TEST_NAME, data=self.data) 44 self.assertEqual(metric.data, self.data) 50 metric = ProtoMetric(name=self.TEST_NAME, data=self.data) 51 self.data.SerializeToString = Mock() 55 self.data.SerializeToString.assert_called_once_with() 59 metric = ProtoMetric(name=self.TEST_NAME, data=self.data) 63 parse_proto_to_ascii.assert_called_once_with(self.data) 67 metric = ProtoMetric(name=self.TEST_NAME, data=self.data) 74 to_descriptor_proto.assert_called_once_with(self.data) [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/test/java/com/android/tools/build/apkzlib/zip/ |
D | ZFileTest.java | 965 byte[] data = Files.toByteArray(zip); in utf8NamesSupportedOnReadingWithoutUtf8Flag() 966 data[7] = 0; in utf8NamesSupportedOnReadingWithoutUtf8Flag() 967 data[122] = 0; in utf8NamesSupportedOnReadingWithoutUtf8Flag() 968 Files.write(data, zip); in utf8NamesSupportedOnReadingWithoutUtf8Flag() 1052 byte[] data = new byte[900]; in unusedZipAreasAreClearedOnWrite() 1053 RandomAccessFileUtils.fullyRead(raf, data); in unusedZipAreasAreClearedOnWrite() 1055 byte[] zeroData = new byte[data.length]; in unusedZipAreasAreClearedOnWrite() 1056 assertArrayEquals(zeroData, data); in unusedZipAreasAreClearedOnWrite() 1725 byte[] data = new byte[100]; 1726 data[50] = 0x50; // Signature [all …]
|
/tools/asuite/aidegen_functional_test/ |
D | aidegen_functional_test_main.py | 169 data = {} 172 data[_SRCS] = [] 177 data[_SRCS].append(src) 178 data[_JARS] = [] 182 data[_JARS].append(jar) 187 return data 340 data = {} 348 return data 356 data[item_name] = _import_project_file_xml_etree(real_iml_file) 357 return data [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/ |
D | apollo_qa.proto | 34 // data[0] = partition# erased. 36 // data[0] = partition# we will write to. 37 // data[1] = expected length we will write to partition 39 // data[0] = partition# written 40 // data[1] = actual written length 51 // data[0] = num bytes received 52 // data[1] = num bytes expected 56 // data[0] = AvrcpPlayStatus as integer 58 /* data[0] = new volume level (int16 stored in uint32) 59 data[1] = new volume level in dB (int16 stored in uint32) [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 …]
|