Home
last modified time | relevance | path

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

/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 …]
Dgcov_basic_io.h128 unsigned* buffer; member
/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.java159 char buffer[] = new char[16384]; in readAssetsFileAsString() local
161 while ((len = reader.read(buffer)) > 0) { in readAssetsFileAsString()
162 sb.append(buffer, 0, len); in readAssetsFileAsString()
DInferenceInOut.java34 public abstract void createInput(ByteBuffer buffer); in createInput() argument
DInferenceInOutSequence.java239 public void createInput(ByteBuffer buffer) { in readDataset()
243 assetManager, fileName, cacheDir, buffer); in readDataset()
/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/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/mlts/benchmark/jni/
Dbenchmark_jni.cpp47 const char *buffer = nullptr; in Java_com_android_nn_benchmark_core_NNTestBase_hasNnApiDevice() local
49 NnApiImplementation()->ANeuralNetworksDevice_getName(device, &buffer); in Java_com_android_nn_benchmark_core_NNTestBase_hasNnApiDevice()
50 if (device_name == buffer) { in Java_com_android_nn_benchmark_core_NNTestBase_hasNnApiDevice()
222 uint8_t* buffer, size_t length) { in InferenceInOutSequenceList() argument
223 jobject byteBuffer = env->NewDirectByteBuffer(buffer, length); in InferenceInOutSequenceList()
470 const char* buffer = nullptr; in Java_com_android_nn_benchmark_core_NNTestBase_getAcceleratorNames() local
471 nnapi_result = NnApiImplementation()->ANeuralNetworksDevice_getName(device, &buffer); in Java_com_android_nn_benchmark_core_NNTestBase_getAcceleratorNames()
476 auto device_name = env->NewStringUTF(buffer); in Java_com_android_nn_benchmark_core_NNTestBase_getAcceleratorNames()
Drandom_graph_test_jni.cpp113 const char* buffer = nullptr; in findDeviceByName() local
121 int getDeviceNameResult = ANeuralNetworksDevice_getName(device, &buffer); in findDeviceByName()
128 if (deviceNameStr == buffer) { in findDeviceByName()
/test/vts-testcase/kernel/encryption/
Dmetadata_encryption_tests.cpp108 uint8_t *buffer = static_cast<uint8_t *>(buf_mem.get()); in ReadBlockDevice() local
116 if (!android::base::ReadFully(fd, buffer, count)) { in ReadBlockDevice()
121 *data = std::vector<uint8_t>(buffer, buffer + count); in ReadBlockDevice()
/test/vts/specification/lib/ndk/bionic/1.0/
DlibcV1.vts196 name: "buffer"
219 name: "buffer"
/test/mlts/benchmark/src/com/android/nn/crashtest/core/test/
DRunModelsInMultipleProcesses.java192 ByteBuffer buffer = ByteBuffer.wrap(input); in writeModelInput() local
193 creator.createInput(buffer); in writeModelInput()
/test/vts-testcase/security/avb/
DVtsSecurityAvbTest.cpp90 virtual bool CalculateDigest(const void *buffer, size_t size,
116 bool CalculateDigest(const void *buffer, size_t size, const void *salt, in CalculateDigest() argument
125 if (update_func_(&ctx, buffer, size) != 1) { in CalculateDigest()
157 const std::vector<uint8_t> buffer(size, 0); in CalculateZeroDigest() local
158 return hasher.CalculateDigest(buffer.data(), size, salt, block_length, in CalculateZeroDigest()
/test/vts/drivers/resource/resource_manager/
DVtsResourceManager.cpp98 struct stat buffer; in ProcessHidlHandleCommand() local
99 if (stat(filepath.c_str(), &buffer) == 0) { in ProcessHidlHandleCommand()
/test/vts/runners/host/
Dbase_test.py1590 for buffer in LOGCAT_BUFFERS:
1593 + '_%s_' % buffer
1600 device.adb.logcat('-b', buffer, '-d', '>', file_path)
/test/app_compat/csuite/
Dpylintrc63 buffer-builtin,