Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 96) sorted by relevance

1234

/test/vts/compilation_tools/vtsc/test/golden/FUZZER/
DContext.fuzzer.cpp26 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { in LLVMFuzzerTestOneInput() argument
38 memcpy(&arg0, data, type_size0); in LLVMFuzzerTestOneInput()
39 data += type_size0; in LLVMFuzzerTestOneInput()
45 memcpy(&arg1, data, type_size1); in LLVMFuzzerTestOneInput()
46 data += type_size1; in LLVMFuzzerTestOneInput()
55 memcpy(&arg0, data, type_size0); in LLVMFuzzerTestOneInput()
56 data += type_size0; in LLVMFuzzerTestOneInput()
62 memcpy(&arg1, data, type_size1); in LLVMFuzzerTestOneInput()
63 data += type_size1; in LLVMFuzzerTestOneInput()
72 memcpy(&arg0, data, type_size0); in LLVMFuzzerTestOneInput()
[all …]
DDevice.fuzzer.cpp26 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { in LLVMFuzzerTestOneInput() argument
38 memcpy(&arg0, data, type_size0); in LLVMFuzzerTestOneInput()
39 data += type_size0; in LLVMFuzzerTestOneInput()
45 memcpy(&arg1, data, type_size1); in LLVMFuzzerTestOneInput()
46 data += type_size1; in LLVMFuzzerTestOneInput()
52 memcpy(&arg2, data, type_size2); in LLVMFuzzerTestOneInput()
53 data += type_size2; in LLVMFuzzerTestOneInput()
/test/vts/drivers/hal/common/binder/
DVtsFuzzerBinderService.cpp44 Parcel data; in Exit() local
46 data.writeInterfaceToken(IVtsFuzzer::getInterfaceDescriptor()); in Exit()
47 data.writeString16(String16("Exit code")); in Exit()
48 remote()->transact(EXIT, data, &reply, IBinder::FLAG_ONEWAY); in Exit()
55 Parcel data; in LoadHal() local
62 data.writeInterfaceToken(IVtsFuzzer::getInterfaceDescriptor()); in LoadHal()
63 data.writeCString(path.c_str()); in LoadHal()
64 data.writeInt32(target_class); in LoadHal()
65 data.writeInt32(target_type); in LoadHal()
66 data.writeInt32(target_version_major); in LoadHal()
[all …]
/test/mlts/benchmark/src/com/android/nn/benchmark/util/
DIOUtils.java79 private static void invertOrder4(byte[] data) { in invertOrder4() argument
80 if (data.length % 4 != 0) { in invertOrder4()
83 for (int i = 0; i < data.length; i += 4) { in invertOrder4()
84 byte a = data[i]; in invertOrder4()
85 byte b = data[i + 1]; in invertOrder4()
86 data[i] = data[i + 3]; in invertOrder4()
87 data[i + 1] = data[i + 2]; in invertOrder4()
88 data[i + 2] = b; in invertOrder4()
89 data[i + 3] = a; in invertOrder4()
94 private static void invertOrder2(byte[] data) { in invertOrder2() argument
[all …]
/test/vts-testcase/nbu/src/
Dble_test.py125 result = scan_result.data['result']
158 result = scan_result.data['result']
209 asserts.assert_equal(start_server_result.data[STATUS], GATT_SUCCESS)
212 for characteristic in start_server_result.data['Service'][
227 asserts.assert_equal(start_client_result.data[STATUS], GATT_SUCCESS)
228 asserts.assert_equal(start_client_result.data[STATE], 'STATE_CONNECTED')
252 asserts.assert_equal(start_server_result.data[STATUS], GATT_SUCCESS)
255 for characteristic in start_server_result.data['Service'][
279 asserts.assert_equal(start_client_result.data[STATUS], GATT_SUCCESS)
280 asserts.assert_equal(start_client_result.data[STATE], 'STATE_CONNECTED')
[all …]
/test/vts-testcase/kernel/zram/
DZramTest.cpp56 std::vector<std::string> data = Split(line, delimiters); in TEST() local
58 data.erase(std::remove_if(data.begin(), data.end(), in TEST()
60 data.end()); in TEST()
62 ASSERT_EQ(SWAP_NUM, data.size()) << "Unexpected format in /proc/swaps."; in TEST()
63 ASSERT_STREQ(swapFilename, data[SWAP_FILENAME].c_str()) in TEST()
65 ParseInt(data[SWAP_SIZE], &swapSize); in TEST()
/test/vts-testcase/security/avb/
DVtsSecurityAvbTest.cpp99 typedef int (*UpdateFunc)(CTX_TYPE *sha, const void *data, size_t len);
158 return hasher.CalculateDigest(buffer.data(), size, salt, block_length, in CalculateZeroDigest()
274 if (!CalculateZeroDigest(hasher, data_block_size, salt.data(), salt.size(), in VerifyHashtree()
275 padded_zero_digest.data())) { in VerifyHashtree()
284 pread64(image_fd, data_block.data(), data_block.size(), image_offset)); in VerifyHashtree()
296 level->calculating_hash_block.data() + level->calculating_offset; in VerifyHashtree()
297 if (!hasher.CalculateDigest(current_block->data(), current_block->size(), in VerifyHashtree()
298 salt.data(), salt.size(), current_digest)) { in VerifyHashtree()
312 level->calculating_hash_block.data() + level->calculating_offset, 0, in VerifyHashtree()
326 pread64(image_fd, tree_block.data(), tree_block.size(), in VerifyHashtree()
[all …]
/test/mlts/benchmark/jni/
Drun_tflite.cpp131 outputs.insert(outputs.end(), node_outputs->data, in init()
132 node_outputs->data + node_outputs->size); in init()
198 void* raw = input_tensor->data.raw; in setInput()
214 sink.insert(sink.end(), output_tensor->data.uint8, in saveInferenceOutput()
215 output_tensor->data.uint8 + output_tensor->bytes); in saveInferenceOutput()
314 const InferenceInOut& data = seq[i]; in benchmark() local
320 if (data.input) { in benchmark()
321 setInput(data.input, data.input_size); in benchmark()
325 if (!data.createInput((uint8_t*)input_tensor->data.raw, in benchmark()
353 if (outputsCount != data.outputs.size()) { in benchmark()
[all …]
/test/vts/utils/python/mirror/
Dresource_mirror.py92 def read(self, data, data_size): argument
107 del data[:]
115 self._extractReadData(fmq_response, data)
120 def readBlocking(self, data, data_size, time_out_nanos=0): argument
137 del data[:]
146 self._extractReadData(fmq_response, data)
150 def write(self, data, data_size): argument
166 prepare_result = self._prepareWriteData(request_msg, data[:data_size])
178 def writeBlocking(self, data, data_size, time_out_nanos=0): argument
196 prepare_result = self._prepareWriteData(request_msg, data[:data_size])
[all …]
/test/vti/dashboard/
DREADME.md107 …u start your local GAE server, you will see empty page as the local datastore do not have any data.
108 So we need to put some sample data into local datastore so that developers are able to continue to
117 ### How to set test data on json files for generating mock data on local dev server
119 If you want to generate some mock data for your local development, you need to set some fake data
121 otherwise you will end up with errors from the mock data dev API.
123 First, in test-plan-report-data.json, you need to set the same number of data under "testCaseNames"
124 and "results". For example, if you put 5 elements of data in "testCaseNames", you should put the sa…
125 number of data under "results".
152 Second, in test-report-data.json file, you need to make sure that "testModules" should have
154 in the test-report-data.json file.
[all …]
/test/vts/drivers/resource/hidl_handle_driver/
DVtsHidlHandleDriver.cpp44 int mode, vector<int> data) { in CreateFileHandle() argument
46 int num_ints = data.size(); in CreateFileHandle()
61 close(native_handle->data[j]); in CreateFileHandle()
66 native_handle->data[i] = curr_fd; in CreateFileHandle()
68 native_handle->data[i] = data[i - num_fds]; in CreateFileHandle()
104 int fd = native_handle->data[0]; in ReadFile()
126 int fd = native_handle->data[0]; in WriteFile()
/test/vts/drivers/resource/include/fmq_driver/
DVtsFmqDriver.h130 bool ReadFmq(const string& data_type, QueueId queue_id, T* data,
148 bool ReadFmqBlocking(const string& data_type, QueueId queue_id, T* data,
168 bool ReadFmqBlocking(const string& data_type, QueueId queue_id, T* data,
184 bool WriteFmq(const string& data_type, QueueId queue_id, T* data,
203 bool WriteFmqBlocking(const string& data_type, QueueId queue_id, T* data,
223 bool WriteFmqBlocking(const string& data_type, QueueId queue_id, T* data,
407 bool VtsFmqDriver::ReadFmq(const string& data_type, QueueId queue_id, T* data, in ReadFmq() argument
412 return queue_object->read(data, data_size); in ReadFmq()
417 T* data, size_t data_size, in ReadFmqBlocking() argument
428 return queue_object->readBlocking(data, data_size, time_out_nanos); in ReadFmqBlocking()
[all …]
/test/vti/dashboard/src/main/webapp/js/
Dcommon.js73 function displayTestDetails(container, data, lineHeight) { argument
74 var nCol = data.length;
78 data.forEach(function(column, index) {
79 if (column.data == undefined || column.name == undefined) {
95 var count = column.data.length;
106 column.data.forEach(function(testCase) {
Dtest_results.js101 function displayTestDetails(container, data, lineHeight) { argument
102 var nCol = data.length;
106 data.forEach(function(column, index) {
107 if (column.data == undefined || column.name == undefined) {
123 var count = column.data.length;
134 column.data.forEach(function(testCase) {
180 .done(function(data) { argument
181 displayTestDetails(container, data, 16);
296 .data('urlSafeKeyList', metadata.testRun.apiCoverageKeyList);
309 $('#coverageModalGraph').data('testname', test);
/test/vti/dashboard/src/main/webapp/WEB-INF/jsp/
Dshow_plan_run.jsp45 var urlSafeKeyList = modal.data('urlSafeKeyList');
48 return $.get( "/api/coverage/api/data?key=" + urlSafeKey, function(data) {
49 halApiInfoList.push(data);
52 alert( "Error : can't bring API coverage data from the server" );
57 $.each(halApiInfoList, function( index, data ) {
59 var version = data.halMajorVersion + '.' + data.halMinorVersion;
60 … var defaultInfo = data.halPackageName + '@' + version + '::' + data.halInterfaceName;
72 $.map( data.halApi, function( apiName, idx ) {
73 … var colorClass = data.coveredHalApi.indexOf(apiName) > -1 ? "green" : "red"
121 var data = google.visualization.arrayToDataTable(rows);
[all …]
Dshow_tree.jsp81 var urlSafeKeyList = modal.data('urlSafeKeyList');
84 return $.get( "/api/coverage/api/data?key=" + urlSafeKey, function(data) {
85 halApiInfoList.push(data);
88 alert( "Error : can't bring API coverage data from the server" );
93 $.each(halApiInfoList, function( index, data ) {
95 var version = data.halMajorVersion + '.' + data.halMinorVersion;
96 … var defaultInfo = data.halPackageName + '@' + version + '::' + data.halInterfaceName;
102 $.map( data.halApi, function( apiName, idx ) {
103 … var colorClass = data.coveredHalApi.indexOf(apiName) > -1 ? "green" : "red"
143 // view older data
[all …]
Dshow_profiling_overview.jsp57 var data = new google.visualization.DataTable();
58 data.addColumn('string', 'x');
60 data.addColumn('number', series);
61 data.addColumn({id:'fill', type:'number', role:'interval'});
62 data.addColumn({id:'fill', type:'number', role:'interval'});
63 data.addColumn({id:'bar', type:'number', role:'interval'});
64 data.addColumn({id:'bar', type:'number', role:'interval'});
65 data.addColumn({type:'string', role:'tooltip', p: {'html': true}});
89 data.addRows(rows);
142 plot.draw(data, options);
Dshow_coverage_overview.jsp71 var testname = modal.data('testname');
102 var data = response.getDataTable();
103 if (data.getNumberOfRows() == 0) {
110 data.sort([{column: 0}]);
113 date_formatter.format(data, 0);
115 var dataView = new google.visualization.DataView(data);
188 tableChart.draw(data, tableOptions);
197 var testName = header.data('test');
198 var timestamp = header.data('time');
200 $.get(url).done(function(data) {
[all …]
Dshow_table.jsp79 showLog(${logInfoMap}[$(this).data('col')]);
118 // view older data
131 // view newer data
163 var data = google.visualization.arrayToDataTable(rows);
176 chart.draw(data, options);
179 // table for grid data
181 var data = new google.visualization.DataTable();
188 data.addColumn('string', '<span class="' + classNames + '">' +
213 // add rows to the data.
214 data.addRows(timeGrid);
[all …]
Dshow_coverage.jsp48 var testRunId = $(evt.target).data("id");
50 $.post("/api/coverage/data", postData, function() {
106 var url = self.parent().data('url');
109 var coverageVectors = self.parent().data('coverage');
171 <ul class="collapsible popout" data-collapsible="accordion">
173 …<li data-url="<c:url value="${coverageEntity.gerritUrl}"/>" data-index="${loop.index}" data-covera…
180 …<span data-id="${coverageEntity.id}" class="indicator waves-effect blue lighten-1" style="margin-l…
/test/vts-testcase/kernel/gki/
Dcpio.cpp38 ret.push_back(arg.data()); in ToCStringArray()
54 CHECK(0 == chdir(working_directory.data())) << strerror(errno); in Exec()
58 (void)execvp(c_args[0], c_args.data()); in Exec()
82 std::vector<std::string> args{"cpio", "-i", "-F", archive_path.data()}; in CpioExtract()
Dlz4_legacy.cpp83 if (!ReadFully(ifd, ibuf.data(), block_size)) { in Lz4DecompressLegacy()
88 LZ4_decompress_safe(ibuf.data(), obuf.data(), block_size, obuf.size()); in Lz4DecompressLegacy()
93 if (!WriteFully(ofd, obuf.data(), decoded_size)) { in Lz4DecompressLegacy()
/test/vts-testcase/fuzz/iface_fuzzer/
DProtoFuzzerMain.cpp129 extern "C" size_t LLVMFuzzerCustomMutator(uint8_t *data, size_t size, in LLVMFuzzerCustomMutator() argument
136 if (!FromArray(data, size, &exec_spec) || runner->UntouchedIfaces()) { in LLVMFuzzerCustomMutator()
149 return ToArray(data, max_size, &exec_spec); in LLVMFuzzerCustomMutator()
191 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { in LLVMFuzzerTestOneInput() argument
193 if (!FromArray(data, size, &exec_spec)) { in LLVMFuzzerTestOneInput()
/test/vts/runners/target/vts_hal_hidl_target/
DVtsHalHidlTargetCallbackBase.h176 void NotifyFromCallback(const CallbackArgsTemplateClass& data) { in NotifyFromCallback() argument
177 NotifyFromCallback(kVtsHalHidlTargetCallbackDefaultName, data); in NotifyFromCallback()
185 const CallbackArgsTemplateClass& data) { in NotifyFromCallback() argument
187 GetCallbackLock(callback_function_name)->NotifyFromCallback(data); in NotifyFromCallback()
275 void NotifyFromCallback(const CallbackArgsTemplateClass& data) { in NotifyFromCallback() argument
277 arg_data_.push(make_shared<CallbackArgsTemplateClass>(data)); in NotifyFromCallback()
/test/vts/proto/
DVtsResourceControllerMessage.proto104 // string to represent type of data in the queue
120 // data to be written
122 // length of data to be read
135 // including scalar values and data read back from the queue.
137 // data read from the queue
161 // data to be written into memory
173 // data read from memory
190 // data to be written into file
200 // data read from the file

1234