Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 37) sorted by relevance

12

/test/suite_harness/tools/dex-tools/src/dex/reader/
DDexClassImpl.java41 private final DexBuffer buffer; field in DexClassImpl
69 public DexClassImpl(DexBuffer buffer, ClassDefItem classDefItem, in DexClassImpl() argument
72 this.buffer = buffer; in DexClassImpl()
120 buffer.setPosition(classDefItem.annotations_off); in parseAnnotationDirectory()
122 annotationDir.class_annotations_off = buffer.readUInt(); in parseAnnotationDirectory()
123 annotationDir.fields_size = buffer.readUInt(); in parseAnnotationDirectory()
124 annotationDir.methods_size = buffer.readUInt(); in parseAnnotationDirectory()
125 annotationDir.annotated_params_size = buffer.readUInt(); in parseAnnotationDirectory()
132 annotationDir.fieldAnnotations[i].fieldIdx = buffer in parseAnnotationDirectory()
134 annotationDir.fieldAnnotations[i].annotationsOff = buffer in parseAnnotationDirectory()
[all …]
DDexEncodedValueImpl.java30 private final DexBuffer buffer; field in DexEncodedValueImpl
47 public DexEncodedValueImpl(DexBuffer buffer, DexAnnotation annotation, in DexEncodedValueImpl() argument
49 this.buffer = buffer; in DexEncodedValueImpl()
58 typeAndValueArg = buffer.readUByte(); in parseValue()
136 return new DexEncodedAnnotationImpl(buffer, annotation, typeIds, in getAnnotationValue()
146 int size = buffer.readUleb128(); in getArrayValue()
149 values.add(new DexEncodedValueImpl(buffer, annotation, typeIds, in getArrayValue()
161 int fieldOffset = buffer.readInt(valueArg + 1); in getEnumValue()
176 buffer.skip(valueArg + 1); in getMethodValue()
186 int fieldOffset = buffer.readInt(valueArg + 1); in getFieldValue()
[all …]
DDexMethodImpl.java39 private DexBuffer buffer; field in DexMethodImpl
54 public DexMethodImpl(DexBuffer buffer, DexClass declaringClass, in DexMethodImpl() argument
59 this.buffer = buffer; in DexMethodImpl()
76 buffer.setPosition(parameterAnnotation.annotationsOff); in parseParameterAnnotations()
77 int numberOfParameters = buffer.readUInt(); in parseParameterAnnotations()
79 parameterIdToIndex.put(i, buffer.readUInt()); in parseParameterAnnotations()
87 buffer.setPosition(methodAnnotation.annotationsOff); in parseAnnotations()
88 final int size = buffer.readUInt(); in parseAnnotations()
90 annotations.add(new DexAnnotationImpl(buffer.createCopy(), in parseAnnotations()
91 buffer.readUInt(), typeIds, stringPool, fieldIdItems)); in parseAnnotations()
[all …]
DDexParameterImpl.java31 private final DexBuffer buffer; field in DexParameterImpl
36 public DexParameterImpl(DexBuffer buffer, String typeName, in DexParameterImpl() argument
39 this.buffer = buffer; in DexParameterImpl()
51 buffer.setPosition(annotationOffset); in parseAnnotations()
52 final int size = buffer.readUInt(); in parseAnnotations()
54 annotations.add(new DexAnnotationImpl(buffer.createCopy(), in parseAnnotations()
55 buffer.readUInt(), typeIds, stringPool, fieldIdItems)); in parseAnnotations()
DDexFieldImpl.java31 private DexBuffer buffer; field in DexFieldImpl
42 public DexFieldImpl(DexBuffer buffer, DexClass declaringClass, in DexFieldImpl() argument
46 this.buffer = buffer; in DexFieldImpl()
60 buffer.setPosition(fieldAnnotation.annotationsOff); in parseAnnotations()
61 final int size = buffer.readUInt(); in parseAnnotations()
63 annotations.add(new DexAnnotationImpl(buffer.createCopy(), in parseAnnotations()
64 buffer.readUInt(), typeIds, stringPool, fieldIdItems)); in parseAnnotations()
DDexEncodedAnnotationImpl.java32 private final DexBuffer buffer; field in DexEncodedAnnotationImpl
39 public DexEncodedAnnotationImpl(DexBuffer buffer, DexAnnotation annotation, in DexEncodedAnnotationImpl() argument
41 this.buffer = buffer; in DexEncodedAnnotationImpl()
50 typeIdx = buffer.readUleb128(); in parseEncodedAnnotation()
51 int size = buffer.readUleb128(); in parseEncodedAnnotation()
54 values.add(new DexAnnotationAttributeImpl(buffer, annotation, in parseEncodedAnnotation()
DDexAnnotationImpl.java29 private DexBuffer buffer; field in DexAnnotationImpl
38 public DexAnnotationImpl(DexBuffer buffer, int offset, int[] typeIds, in DexAnnotationImpl() argument
40 this.buffer = buffer; in DexAnnotationImpl()
49 buffer.setPosition(offset); in parseAnnotations()
50 visibility = Visibility.get(buffer.readUByte()); in parseAnnotations()
51 encodedAnnotation = new DexEncodedAnnotationImpl(buffer, this, typeIds, in parseAnnotations()
DDexAnnotationAttributeImpl.java29 private DexBuffer buffer; field in DexAnnotationAttributeImpl
34 public DexAnnotationAttributeImpl(DexBuffer buffer, in DexAnnotationAttributeImpl() argument
37 this.buffer = buffer; in DexAnnotationAttributeImpl()
46 nameIdx = buffer.readUleb128(); in parseValue()
47 value = new DexEncodedValueImpl(buffer, annotation, typeIds, in parseValue()
DDexFileImpl.java38 private final DexBuffer buffer; field in DexFileImpl
42 public DexFileImpl(DexBuffer buffer, String[] stringPool, int[] typeIds, in DexFileImpl() argument
45 this.buffer = buffer; in DexFileImpl()
63 classes.add(new DexClassImpl(buffer.createCopy(), in getDefinedClasses()
DDexBuffer.java61 private void initialize(ByteBuffer buffer) { in initialize() argument
62 b = buffer.asReadOnlyBuffer(); in initialize()
/test/vts/drivers/hal/libcodecoverage/
DGcdaFile.cpp49 free(gcov_var_.buffer); in Close()
51 gcov_var_.buffer = 0; in Close()
85 const unsigned* buffer = ReadWords(1); in ReadUnsigned() local
87 if (!buffer) return 0; in ReadUnsigned()
88 return FromFile(buffer[0]); in ReadUnsigned()
98 gcov_var_.buffer = (unsigned*)realloc(gcov_var_.buffer, new_size << 2); in Allocate()
109 memmove(gcov_var_.buffer, gcov_var_.buffer + gcov_var_.offset, excess * 4); in ReadWords()
116 excess = fread(gcov_var_.buffer + gcov_var_.length, 1, excess << 2, in ReadWords()
125 result = &gcov_var_.buffer[gcov_var_.offset]; in ReadWords()
143 const unsigned* buffer = ReadWords(2); in ReadCounter() local
[all …]
/test/mlts/benchmark/src/com/android/nn/benchmark/util/
DIOUtils.java35 ByteBuffer buffer = ByteBuffer.wrap(bytes); in readFloats() local
36 buffer.order(ByteOrder.LITTLE_ENDIAN); in readFloats()
41 result[i] = buffer.getFloat(); in readFloats()
43 result[i] = (float)(buffer.get() & 0xff); in readFloats()
54 byte[] buffer = new byte[8192]; in readAsset()
57 while ((bytesRead = in.read(buffer)) != -1) { in readAsset()
58 output.write(buffer, 0, bytesRead); in readAsset()
/test/vts-testcase/kernel/bow/
DBowTest.cpp237 char buffer[sector_size_] = {}; in PrepareFile() local
238 snprintf(buffer, sizeof(buffer), "Sector %d", i); in PrepareFile()
239 write(fd.get(), buffer, sizeof(buffer)); in PrepareFile()
296 char buffer[sector_size_]; in FindChanged() local
298 EXPECT_EQ(read(fd.get(), buffer, sizeof(buffer)), sizeof(buffer)); in FindChanged()
299 if (strcmp(buffer, "Changed") == 0) { in FindChanged()
304 EXPECT_STREQ(buffer, expected.c_str()); in FindChanged()
311 char buffer[sector_size_]; in DumpSector0() local
313 read(fd_.get(), buffer, sizeof(buffer)); in DumpSector0()
316 << (int)buffer[i]; in DumpSector0()
/test/vts/hals/light/bullhead/
Dlights.c66 char buffer[32] = {0,}; in write_int() local
67 int bytes = snprintf(buffer, sizeof(buffer), "%d\n", value); in write_int()
68 int amt = write(fd, buffer, bytes); in write_int()
87 char buffer[32] = {0,}; in write_on_off() local
88 int bytes = snprintf(buffer, sizeof(buffer), "%d %d\n", on, off); in write_on_off()
89 int amt = write(fd, buffer, bytes); in write_on_off()
/test/mlts/benchmark/src/com/android/nn/benchmark/core/
DOutputMeanStdDev.java32 ByteBuffer buffer = ByteBuffer.wrap(bytes); in OutputMeanStdDev() local
33 buffer.order(ByteOrder.LITTLE_ENDIAN); in OutputMeanStdDev()
35 mMeanStdDevs[i] = new MeanStdDev(buffer.getFloat(), buffer.getFloat()); in OutputMeanStdDev()
DTestModelsListLoader.java157 char buffer[] = new char[16384]; in readAssetsFileAsString() local
159 while ((len = reader.read(buffer)) > 0) { in readAssetsFileAsString()
160 sb.append(buffer, 0, len); in readAssetsFileAsString()
DNNTestBase.java308 byte[] buffer = new byte[1024]; in copyAssetToFile()
310 while ((read = in.read(buffer)) != -1) { in copyAssetToFile()
311 out.write(buffer, 0, read); in copyAssetToFile()
/test/vts/utils/native/libprofiling/
DVtsProfilingUtil.cpp34 uint8_t* buffer = output.GetDirectBufferForNBytesAndAdvance(size); in writeOneDelimited() local
35 if (buffer) { in writeOneDelimited()
38 message.SerializeWithCachedSizesToArray(buffer); in writeOneDelimited()
/test/suite_harness/common/util/src/com/android/compatibility/common/util/
DStreamUtil.java58 byte[] buffer = new byte[1024]; in readInputStream()
60 while ((length = inputStream.read(buffer)) != -1) { in readInputStream()
61 result.write(buffer, 0, length); in readInputStream()
DResultUploader.java64 byte[] buffer = new byte[1024]; in getBytes()
66 while ((count = input.read(buffer)) > 0) { in getBytes()
67 gzipOutput.write(buffer, 0, count); in getBytes()
DChecksumReporter.java354 byte [] buffer = new byte[bufferSize]; in calculateFileChecksum()
355 while ((cnt = inputStream.read(buffer)) != -1) { in calculateFileChecksum()
356 hashSum.update(buffer, 0, cnt); in calculateFileChecksum()
/test/vts/drivers/hal/common/driver_base/
DDriverBase.cpp226 string buffer = basepath + "/" + filename; in ReadGcdaFile() local
228 android::vts::GcdaRawCoverageParser(buffer.c_str()).Parse(); in ReadGcdaFile()
233 FILE* gcda_file = fopen(buffer.c_str(), "rb"); in ReadGcdaFile()
235 LOG(ERROR) << "Unable to open a gcda file. " << buffer; in ReadGcdaFile()
237 LOG(DEBUG) << "Opened a gcda file. " << buffer; in ReadGcdaFile()
/test/suite_harness/common/util/tests/src/com/android/compatibility/common/util/
DReadElfTest.java282 byte[] buffer = new byte[4096]; in getResrouceFile()
284 while ((length = input.read(buffer)) > 0) { in getResrouceFile()
285 output.write(buffer, 0, length); in getResrouceFile()
/test/vts-testcase/security/avb/
DVtsSecurityAvbTest.cpp81 virtual bool CalculateDigest(const void *buffer, size_t size,
107 bool CalculateDigest(const void *buffer, size_t size, const void *salt, in CalculateDigest() argument
116 if (update_func_(&ctx, buffer, size) != 1) { in CalculateDigest()
148 const std::vector<uint8_t> buffer(size, 0); in CalculateZeroDigest() local
149 return hasher.CalculateDigest(buffer.data(), size, salt, block_length, in CalculateZeroDigest()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/result/suite/
DCertificationChecksumHelper.java293 byte [] buffer = new byte[bufferSize]; in calculateFileChecksum()
294 while ((cnt = inputStream.read(buffer)) != -1) { in calculateFileChecksum()
295 hashSum.update(buffer, 0, cnt); in calculateFileChecksum()

12