Home
last modified time | relevance | path

Searched refs:size_t (Results 1 – 25 of 55) sorted by relevance

123

/test/vts/compilation_tools/vtsc/test/golden/FUZZER/
DContext.fuzzer.cpp26 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { in LLVMFuzzerTestOneInput()
34 size_t type_size0 = sizeof(uint64_t); in LLVMFuzzerTestOneInput()
41 size_t type_size1 = sizeof(uint64_t); in LLVMFuzzerTestOneInput()
51 size_t type_size0 = sizeof(uint64_t); in LLVMFuzzerTestOneInput()
58 size_t type_size1 = sizeof(::android::hardware::hidl_vec<uint32_t>); in LLVMFuzzerTestOneInput()
68 size_t type_size0 = sizeof(uint64_t); in LLVMFuzzerTestOneInput()
78 size_t type_size0 = sizeof(uint64_t); in LLVMFuzzerTestOneInput()
85size_t type_size1 = sizeof(::android::hardware::renderscript::V1_0::AllocationMipmapControl); in LLVMFuzzerTestOneInput()
92 size_t type_size2 = sizeof(int32_t); in LLVMFuzzerTestOneInput()
99 size_t type_size3 = sizeof(void*); in LLVMFuzzerTestOneInput()
[all …]
DDevice.fuzzer.cpp26 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { in LLVMFuzzerTestOneInput()
34 size_t type_size0 = sizeof(uint32_t); in LLVMFuzzerTestOneInput()
41 size_t type_size1 = sizeof(::android::hardware::renderscript::V1_0::ContextType); in LLVMFuzzerTestOneInput()
48 size_t type_size2 = sizeof(int32_t); in LLVMFuzzerTestOneInput()
/test/vts/drivers/resource/fmq_driver/
DVtsFmqDriverTest.cpp43 static constexpr size_t NUM_ELEMS = 2048; in SetUp()
69 static constexpr size_t NUM_ELEMS = 2048; in SetUp()
93 static constexpr size_t NUM_ELEMS = 2048; in SetUp()
119 static constexpr size_t NUM_ELEMS = 2048; in TEST_F()
126 size_t writer_queue_size; in TEST_F()
132 size_t writer_elem_size; in TEST_F()
138 size_t writer_available_writes; in TEST_F()
148 size_t reader_queue_size; in TEST_F()
154 size_t reader_elem_size; in TEST_F()
160 size_t reader_available_reads; in TEST_F()
[all …]
/test/vts-testcase/fuzz/iface_fuzzer/
DProtoFuzzerMutateFns.cpp46 size_t vector_size = var_spec.vector_size(); in ArrayRandomGen()
48 for (size_t i = 0; i < vector_size; ++i) { in ArrayRandomGen()
56 size_t vector_size = result.vector_size(); in ArrayMutate()
57 size_t idx = rand_(vector_size); in ArrayMutate()
67 size_t size = blueprint.enumerator_size(); in EnumRandomGen()
68 size_t idx = rand_(size); in EnumRandomGen()
110 size_t str_size = mutator_config_.default_string_size_; in StringRandomGen()
126 size_t str_size = result.string_value().length(); in StringMutate()
132 size_t dice_roll = str.empty() ? 0 : rand_(3); in StringMutate()
133 size_t idx = rand_(str_size); in StringMutate()
[all …]
DProtoFuzzerMain.cpp71 size_t dice_roll = rand(10); in __anon605a8dbd0102()
129 extern "C" size_t LLVMFuzzerCustomMutator(uint8_t *data, size_t size, in LLVMFuzzerCustomMutator()
130 size_t max_size, unsigned int seed) { in LLVMFuzzerCustomMutator()
143 if (static_cast<size_t>(exec_spec.ByteSize()) > max_size) { in LLVMFuzzerCustomMutator()
146 cerr << static_cast<size_t>(exec_spec.ByteSize()) << endl; in LLVMFuzzerCustomMutator()
152 extern "C" size_t LLVMFuzzerCustomCrossOver(const uint8_t *data1, size_t size1, in LLVMFuzzerCustomCrossOver()
153 const uint8_t *data2, size_t size2, in LLVMFuzzerCustomCrossOver()
154 uint8_t *out, size_t max_out_size, in LLVMFuzzerCustomCrossOver()
182 if (static_cast<size_t>(exec_spec_out.ByteSize()) > max_out_size) { in LLVMFuzzerCustomCrossOver()
185 cerr << static_cast<size_t>(exec_spec_out.ByteSize()) << endl; in LLVMFuzzerCustomCrossOver()
[all …]
DProtoFuzzerMutator.cpp104 size_t rand_idx = rand_(tbl.size()); in RandomSelectIface()
111 size_t num_calls) { in RandomGen()
114 for (size_t i = 0; i < num_calls; ++i) { in RandomGen()
122 size_t num_apis = iface_spec.api_size(); in RandomGen()
123 size_t rand_api_idx = rand_(num_apis); in RandomGen()
140 size_t idx = rand_(exec_spec->function_call_size()); in Mutate()
150 size_t func_idx = rand_(exec_spec->function_call_size()); in Mutate()
151 size_t blueprint_idx = rand_(iface_spec.api_size()); in Mutate()
173 size_t num_args = result.arg_size(); in Mutate()
175 size_t rand_arg_idx = rand_(num_args); in Mutate()
DProtoFuzzerUtils.cpp185 bool FromArray(const uint8_t *data, size_t size, ExecSpec *exec_spec) { in FromArray()
191 size_t ToArray(uint8_t *data, size_t size, ExecSpec *exec_spec) { in ToArray()
193 size_t exec_size = exec_spec->ByteSize(); in ToArray()
/test/vts/runners/target/gtest/
Dgtest_main.cpp183 size_t TestCount() const { return test_list_.size(); } in TestCount()
185 std::string GetTestName(size_t test_id) const { in GetTestName()
190 Test& GetTest(size_t test_id) { in GetTest()
195 const Test& GetTest(size_t test_id) const { in GetTest()
200 void SetTestResult(size_t test_id, TestResult result) { in SetTestResult()
205 TestResult GetTestResult(size_t test_id) const { in GetTestResult()
210 void SetTestTime(size_t test_id, int64_t elapsed_time_ns) { in SetTestTime()
215 int64_t GetTestTime(size_t test_id) const { in GetTestTime()
221 void VerifyTestId(size_t test_id) const { in VerifyTestId()
319 const std::vector<TestCase>& testcase_list, size_t iteration, in OnTestIterationStartPrint()
[all …]
/test/vts/drivers/resource/include/fmq_driver/
DVtsFmqDriver.h90 QueueId CreateFmq(const string& data_type, size_t queue_size, bool blocking);
117 QueueId CreateFmq(const string& data_type, size_t queue_descriptor);
131 size_t data_size);
149 size_t data_size, int64_t time_out_nanos);
169 size_t data_size, uint32_t read_notification,
185 size_t data_size);
204 size_t data_size, int64_t time_out_nanos);
224 size_t data_size, uint32_t read_notification,
241 size_t* result);
256 size_t* result);
[all …]
/test/vts/drivers/resource/resource_manager/
DVtsResourceManager.cpp46 size_t read_data_size = hidl_handle_request.read_data_size(); in ProcessHidlHandleCommand()
49 size_t write_data_size = hidl_handle_request.write_data().length(); in ProcessHidlHandleCommand()
159 size_t hidl_handle_address = in RegisterHidlHandle()
171 const VariableSpecificationMessage& hidl_handle_msg, size_t* result) { in GetHidlHandleAddress()
180 size_t mem_size = hidl_memory_request.mem_size(); in ProcessHidlMemoryCommand()
226 size_t result_mem_size; in ProcessHidlMemoryCommand()
240 size_t hidl_mem_address = in RegisterHidlMemory()
252 const VariableSpecificationMessage& hidl_memory_msg, size_t* result) { in GetHidlMemoryAddress()
274 size_t queue_desc_addr = queue_msg.fmq_value(0).fmq_desc_address(); in RegisterFmq()
295 const VariableSpecificationMessage& queue_msg, size_t* result) { in GetQueueDescAddress()
[all …]
/test/vts/drivers/resource/hidl_handle_driver/
DVtsHidlHandleDriver.cpp78 size_t new_handle_id = hidl_handle_map_.size(); in CreateFileHandle()
93 size_t num_bytes) { in ReadFile()
115 size_t num_bytes) { in WriteFile()
135 HandleId VtsHidlHandleDriver::RegisterHidlHandle(size_t hidl_handle_address) { in RegisterHidlHandle()
140 size_t new_handle_id = hidl_handle_map_.size(); in RegisterHidlHandle()
147 size_t* result) { in GetHidlHandleAddress()
150 *result = reinterpret_cast<size_t>(handle); in GetHidlHandleAddress()
/test/vts/drivers/resource/include/hidl_handle_driver/
DVtsHidlHandleDriver.h93 ssize_t ReadFile(HandleId handle_id, void* read_data, size_t num_bytes);
107 size_t num_bytes);
116 HandleId RegisterHidlHandle(size_t hidl_handle_address);
124 bool GetHidlHandleAddress(HandleId handle_id, size_t* result);
/test/vts/drivers/resource/hidl_memory_driver/
DVtsHidlMemoryDriver.cpp41 MemoryId VtsHidlMemoryDriver::Allocate(size_t mem_size) { in Allocate()
56 size_t new_mem_id = hidl_memory_map_.size(); in Allocate()
62 MemoryId VtsHidlMemoryDriver::RegisterHidlMemory(size_t hidl_mem_address) { in RegisterHidlMemory()
73 size_t new_mem_id = hidl_memory_map_.size(); in RegisterHidlMemory()
136 bool VtsHidlMemoryDriver::GetSize(MemoryId mem_id, size_t* result) { in GetSize()
144 size_t* result) { in GetHidlMemoryAddress()
148 *result = reinterpret_cast<size_t>(hidl_mem_ptr); in GetHidlMemoryAddress()
DVtsHidlMemoryDriverTest.cpp46 void InitData(int* data, size_t len) { in InitData()
47 for (size_t i = 0; i < len; i++) { in InitData()
59 size_t mem_size; in TEST_F()
/test/mlts/benchmark/jni/
Drun_tflite.h28 size_t size;
37 size_t input_size;
40 std::function<bool(uint8_t*, size_t)> createInput;
92 bool setInput(const uint8_t* dataPtr, size_t length);
117 void getOutputError(const uint8_t* dataPtr, size_t length,
Drun_tflite.cpp126 for (size_t node = 0; node < mTfliteInterpreter->nodes_size(); ++node) { in init()
159 bool BenchmarkModel::setInput(const uint8_t* dataPtr, size_t length) { in setInput()
186 void BenchmarkModel::getOutputError(const uint8_t* expected_data, size_t length, in getOutputError()
195 size_t elements_count = 0; in getOutputError()
202 for (size_t i = 0; i < output_tensor->bytes; ++i) { in getOutputError()
213 for (size_t i = 0; i < output_tensor->bytes / sizeof(float); ++i) { in getOutputError()
312 size_t outputsCount = mTfliteInterpreter->outputs().size(); in benchmark()
/test/vts/drivers/resource/include/hidl_memory_driver/
DVtsHidlMemoryDriver.h82 MemoryId Allocate(size_t mem_size);
90 MemoryId RegisterHidlMemory(size_t hidl_mem_address);
164 bool GetSize(MemoryId mem_id, size_t* result);
172 bool GetHidlMemoryAddress(MemoryId mem_id, size_t* result);
/test/vts/drivers/resource/include/resource_manager/
DVtsResourceManager.h104 size_t* result);
135 size_t* result);
171 size_t* result);
216 size_t write_data_size);
235 T* read_data, size_t read_data_size);
/test/vts-testcase/fuzz/iface_fuzzer/include/
DProtoFuzzerUtils.h73 size_t exec_size_;
105 size_t ToArray(uint8_t *, size_t, ExecSpec *);
108 bool FromArray(const uint8_t *, size_t, ExecSpec *);
DProtoFuzzerMutator.h48 size_t default_vector_size_ = 64;
50 size_t default_string_size_ = 16;
59 ExecSpec RandomGen(const IfaceDescTbl &, size_t);
/test/vts-testcase/security/avb/
DVtsSecurityAvbTest.cpp82 virtual bool CalculateDigest(const void *buffer, size_t size,
91 typedef int (*UpdateFunc)(CTX_TYPE *sha, const void *data, size_t len);
108 bool CalculateDigest(const void *buffer, size_t size, const void *salt, in CalculateDigest()
146 static bool CalculateZeroDigest(const ShaHasher &hasher, size_t size, in CalculateZeroDigest()
189 size_t calculating_offset;
193 HashtreeLevel(uint64_t lv_offset, uint64_t lv_size, size_t hash_block_size) in HashtreeLevel()
594 static size_t NextWord(const std::string &str, size_t *pos) { in NextWord()
596 size_t start = str.find_first_not_of(whitespaces, *pos); in NextWord()
660 size_t next_pos = 0; in TEST()
662 size_t begin_pos = NextWord(target.data, &next_pos); in TEST()
[all …]
/test/vts/testcases/target/hal_power/
Dhal_power_basic_test.cpp92 size_t *voter_list = (size_t *)calloc(num_modes_, sizeof(*voter_list)); in TEST_F()
147 size_t *voter_list = (size_t *)calloc(num_modes_, sizeof(*voter_list)); in TEST_F()
/test/vts/drivers/hal/libmeasurement/
Dvts_measurement.cpp46 __attribute__((weak)) size_t __sanitizer_get_total_unique_caller_callee_pairs();
47 __attribute__((weak)) size_t __sanitizer_get_total_unique_coverage();
50 __attribute__((weak)) size_t __sanitizer_get_number_of_counters();
/test/vts/compilation_tools/vtsc/code_gen/fuzzer/
DHalHidlFuzzerCodeGen.cpp111 size_t num_cb_arg = func_spec.return_type_hidl_size(); in GenerateReturnCallback()
112 for (size_t i = 0; i < num_cb_arg; ++i) { in GenerateReturnCallback()
128 for (size_t i = 0; i < types.size(); ++i) { in GenerateHalFunctionCall()
138 for (size_t i = 0; i < types.size(); ++i) { in GenerateHalFunctionCall()
/test/vts-testcase/kernel/encryption/
Dutils.cpp79 for (size_t i = 0; i < bytes.size(); i++) { in RandomBytesForTesting()
85 std::vector<uint8_t> GenerateTestKey(size_t size) { in GenerateTestKey()
285 size_t destLen = bytes.size() - std::min<size_t>(4, bytes.size()); in VerifyDataRandomness()
288 size_t outPropsSize = LZMA_PROPS_SIZE; in VerifyDataRandomness()
388 for (size_t count = 0; count < (output_key_size / kAesBlockSize); count++) { in AesCmacKdfHelper()

123