Home
last modified time | relevance | path

Searched refs:func_msg (Results 1 – 22 of 22) sorted by relevance

/test/vts/compilation_tools/vtsc/test/golden/DRIVER/
DlibcV1.driver.cpp14 FunctionSpecificationMessage* func_msg, in Fuzz() argument
16 const char* func_name = func_msg->name().c_str(); in Fuzz()
19 …int32_t arg0 = (func_msg->arg(0).type() == TYPE_SCALAR && func_msg->arg(0).scalar_value().has_int3… in Fuzz()
21 …int32_t arg1 = (func_msg->arg(1).type() == TYPE_SCALAR && func_msg->arg(1).scalar_value().has_int3… in Fuzz()
23 …int32_t arg2 = (func_msg->arg(2).type() == TYPE_SCALAR && func_msg->arg(2).scalar_value().has_int3… in Fuzz()
33 …int32_t arg0 = (func_msg->arg(0).type() == TYPE_SCALAR && func_msg->arg(0).scalar_value().has_int3… in Fuzz()
47 …int32_t arg0 = (func_msg->arg(0).type() == TYPE_SCALAR && func_msg->arg(0).scalar_value().has_int3… in Fuzz()
61 …int32_t arg0 = (func_msg->arg(0).type() == TYPE_SCALAR && func_msg->arg(0).scalar_value().has_int3… in Fuzz()
75 …int32_t arg0 = (func_msg->arg(0).type() == TYPE_SCALAR && func_msg->arg(0).scalar_value().has_int3… in Fuzz()
77 …int32_t arg1 = (func_msg->arg(1).type() == TYPE_SCALAR && func_msg->arg(1).scalar_value().has_int3… in Fuzz()
[all …]
DBar.driver.cpp656 const FunctionSpecificationMessage& func_msg, in CallFunction() argument
659 const char* func_name = func_msg.name().c_str(); in CallFunction()
666 …MessageTo__android__hardware__tests__foo__V1_0__IFoo__Discriminator(func_msg.arg(0), &(arg0), call… in CallFunction()
668 arg1.resize(func_msg.arg(1).vector_value_size()); in CallFunction()
669 for (int arg1_index = 0; arg1_index < func_msg.arg(1).vector_value_size(); arg1_index++) { in CallFunction()
670 …MessageTo__android__hardware__tests__foo__V1_0__IFoo__Union(func_msg.arg(1).vector_value(arg1_inde… in CallFunction()
689 arg0 = func_msg.arg(0).scalar_value().float_t(); in CallFunction()
697 arg0 = func_msg.arg(0).scalar_value().int64_t(); in CallFunction()
709 arg0 = func_msg.arg(0).scalar_value().int32_t(); in CallFunction()
711 arg1 = func_msg.arg(1).scalar_value().int64_t(); in CallFunction()
[all …]
DMemoryTest.driver.cpp120 const FunctionSpecificationMessage& func_msg, in CallFunction() argument
123 const char* func_name = func_msg.name().c_str(); in CallFunction()
130 if (func_msg.arg(0).hidl_memory_value().has_hidl_mem_address()) { in CallFunction()
131 …arg0 = *(reinterpret_cast<android::hardware::hidl_memory*>(func_msg.arg(0).hidl_memory_value().hid… in CallFunction()
138 …auto res = ashmemAllocator->allocate(func_msg.arg(0).hidl_memory_value().size(), [&](bool success,… in CallFunction()
159 if (func_msg.arg(0).hidl_memory_value().has_hidl_mem_address()) { in CallFunction()
160 …arg0 = *(reinterpret_cast<android::hardware::hidl_memory*>(func_msg.arg(0).hidl_memory_value().hid… in CallFunction()
167 …auto res = ashmemAllocator->allocate(func_msg.arg(0).hidl_memory_value().size(), [&](bool success,… in CallFunction()
177 arg1 = func_msg.arg(1).scalar_value().uint8_t(); in CallFunction()
185 …MessageTo__android__hidl__memory__block__V1_0__MemoryBlock(func_msg.arg(0), &(arg0), callback_sock… in CallFunction()
[all …]
DTestMsgQ.driver.cpp205 const FunctionSpecificationMessage& func_msg, in CallFunction() argument
208 const char* func_name = func_msg.name().c_str(); in CallFunction()
215 … if (func_msg.arg(0).fmq_value_size() > 0 && func_msg.arg(0).fmq_value(0).has_fmq_desc_address()) { in CallFunction()
216 …arg0 = reinterpret_cast<::android::hardware::MQDescriptorSync<uint16_t>*>(func_msg.arg(0).fmq_valu… in CallFunction()
219 for (int i = 0; i < (int)func_msg.arg(0).fmq_value_size(); i++) { in CallFunction()
221 arg0_sync_q_item = func_msg.arg(0).fmq_value(i).scalar_value().uint16_t(); in CallFunction()
237 arg0 = func_msg.arg(0).scalar_value().bool_t(); in CallFunction()
257 arg0 = func_msg.arg(0).scalar_value().int32_t(); in CallFunction()
269 arg0 = func_msg.arg(0).scalar_value().int32_t(); in CallFunction()
281 arg0 = func_msg.arg(0).scalar_value().int32_t(); in CallFunction()
[all …]
DNfcClientCallback.driver.cpp87 const FunctionSpecificationMessage& func_msg, in CallFunction() argument
90 const char* func_name = func_msg.name().c_str(); in CallFunction()
97 … MessageTo__android__hardware__nfc__V1_0__NfcEvent(func_msg.arg(0), &(arg0), callback_socket_name); in CallFunction()
99 …MessageTo__android__hardware__nfc__V1_0__NfcStatus(func_msg.arg(1), &(arg1), callback_socket_name); in CallFunction()
107 arg0.resize(func_msg.arg(0).vector_value_size()); in CallFunction()
108 for (int arg0_index = 0; arg0_index < func_msg.arg(0).vector_value_size(); arg0_index++) { in CallFunction()
109 arg0[arg0_index] = func_msg.arg(0).vector_value(arg0_index).scalar_value().uint8_t(); in CallFunction()
DNfc.driver.cpp142 const FunctionSpecificationMessage& func_msg, in CallFunction() argument
145 const char* func_name = func_msg.name().c_str(); in CallFunction()
153 …tic_cast<Vts_android_hardware_nfc_V1_0_INfcClientCallback*>(arg0.get())->Register(func_msg.arg(0)); in CallFunction()
164 arg0.resize(func_msg.arg(0).vector_value_size()); in CallFunction()
165 for (int arg0_index = 0; arg0_index < func_msg.arg(0).vector_value_size(); arg0_index++) { in CallFunction()
166 arg0[arg0_index] = func_msg.arg(0).vector_value(arg0_index).scalar_value().uint8_t(); in CallFunction()
179 arg0.resize(func_msg.arg(0).vector_value_size()); in CallFunction()
180 for (int arg0_index = 0; arg0_index < func_msg.arg(0).vector_value_size(); arg0_index++) { in CallFunction()
181 arg0[arg0_index] = func_msg.arg(0).vector_value(arg0_index).scalar_value().uint8_t(); in CallFunction()
DNfcClientCallback.vts.h59 …bool Fuzz(FunctionSpecificationMessage* func_msg, void** result, const string& callback_socket_nam…
60 …bool CallFunction(const FunctionSpecificationMessage& func_msg, const string& callback_socket_name…
62 bool GetAttribute(FunctionSpecificationMessage* func_msg, void** result);
DNfc.vts.h75 …bool Fuzz(FunctionSpecificationMessage* func_msg, void** result, const string& callback_socket_nam…
76 …bool CallFunction(const FunctionSpecificationMessage& func_msg, const string& callback_socket_name…
78 bool GetAttribute(FunctionSpecificationMessage* func_msg, void** result);
DMemoryTest.vts.h70 …bool Fuzz(FunctionSpecificationMessage* func_msg, void** result, const string& callback_socket_nam…
71 …bool CallFunction(const FunctionSpecificationMessage& func_msg, const string& callback_socket_name…
73 bool GetAttribute(FunctionSpecificationMessage* func_msg, void** result);
DTestMsgQ.vts.h82 …bool Fuzz(FunctionSpecificationMessage* func_msg, void** result, const string& callback_socket_nam…
83 …bool CallFunction(const FunctionSpecificationMessage& func_msg, const string& callback_socket_name…
85 bool GetAttribute(FunctionSpecificationMessage* func_msg, void** result);
DBar.vts.h169 …bool Fuzz(FunctionSpecificationMessage* func_msg, void** result, const string& callback_socket_nam…
170 …bool CallFunction(const FunctionSpecificationMessage& func_msg, const string& callback_socket_name…
172 bool GetAttribute(FunctionSpecificationMessage* func_msg, void** result);
/test/vts/utils/python/mirror/
Dnative_entity_mirror.py91 func_msg = CompSpecMsg.FunctionSpecificationMessage()
92 func_msg.name = api_name
93 return func_msg
192 func_msg = self.GetApi(api_name)
193 if not func_msg:
194 raise MirrorObjectError("api %s unknown", func_msg)
198 for arg_msg, value_msg in zip(func_msg.arg, args):
209 for arg in func_msg.arg:
214 logging.debug(func_msg)
220 call_msg.api.CopyFrom(func_msg)
[all …]
/test/vts/drivers/hal/common/driver_manager/
DVtsHalDriverManager.cpp390 FunctionSpecificationMessage* func_msg, void* result) { in ProcessFuncResultsForLibrary() argument
392 if (func_msg->return_type().type() == TYPE_PREDEFINED) { in ProcessFuncResultsForLibrary()
396 LOG(DEBUG) << "Return type: " << func_msg->return_type().type(); in ProcessFuncResultsForLibrary()
401 google::protobuf::TextFormat::PrintToString(*func_msg, &output); in ProcessFuncResultsForLibrary()
403 } else if (func_msg->return_type().type() == TYPE_SCALAR) { in ProcessFuncResultsForLibrary()
406 if (!strcmp(func_msg->return_type().scalar_type().c_str(), "int32_t")) { in ProcessFuncResultsForLibrary()
407 func_msg->mutable_return_type()->mutable_scalar_value()->set_int32_t( in ProcessFuncResultsForLibrary()
409 google::protobuf::TextFormat::PrintToString(*func_msg, &output); in ProcessFuncResultsForLibrary()
411 } else if (!strcmp(func_msg->return_type().scalar_type().c_str(), in ProcessFuncResultsForLibrary()
413 func_msg->mutable_return_type()->mutable_scalar_value()->set_uint32_t( in ProcessFuncResultsForLibrary()
[all …]
/test/vts/drivers/hal/common/component_loader/
DHalDriverLoader.cpp146 for (const FunctionSpecificationMessage& func_msg : in GetFuzzerBaseAndAddAllFunctionsToQueue() local
148 LOG(DEBUG) << "Add a job " << func_msg.name(); in GetFuzzerBaseAndAddAllFunctionsToQueue()
149 FunctionSpecificationMessage* func_msg_copy = func_msg.New(); in GetFuzzerBaseAndAddAllFunctionsToQueue()
150 func_msg_copy->CopyFrom(func_msg); in GetFuzzerBaseAndAddAllFunctionsToQueue()
282 vts::FunctionSpecificationMessage* func_msg = curr_job.first; in Process() local
287 LOG(INFO) << "Iteration " << (i + 1) << " Function " << func_msg->name(); in Process()
290 func_fuzzer->CallFunction(*func_msg, callback_socket_name_, &result_msg); in Process()
292 func_fuzzer->Fuzz(func_msg, &result, callback_socket_name_); in Process()
/test/vts/compilation_tools/vtsc/code_gen/driver/
DHalHidlCodeGen.cpp216 const FunctionSpecificationMessage& func_msg) { in GenerateDriverImplForMethod() argument
217 out << "if (!strcmp(func_name, \"" << func_msg.name() << "\")) {\n"; in GenerateDriverImplForMethod()
220 for (int i = 0; i < func_msg.arg_size(); i++) { in GenerateDriverImplForMethod()
221 const auto& arg = func_msg.arg(i); in GenerateDriverImplForMethod()
252 if (CanElideCallback(func_msg)) { in GenerateDriverImplForMethod()
253 out << GetCppVariableType(func_msg.return_type_hidl(0)) << " result0 = "; in GenerateDriverImplForMethod()
254 GenerateHalFunctionCall(out, func_msg); in GenerateDriverImplForMethod()
256 for (int index = 0; index < func_msg.return_type_hidl_size(); index++) { in GenerateDriverImplForMethod()
260 out, func_msg.return_type_hidl(index), in GenerateDriverImplForMethod()
265 GenerateHalFunctionCall(out, func_msg); in GenerateDriverImplForMethod()
[all …]
DHalHidlCodeGen.h116 const FunctionSpecificationMessage& func_msg);
120 const FunctionSpecificationMessage& func_msg);
124 const FunctionSpecificationMessage& func_msg);
200 bool CanElideCallback(const FunctionSpecificationMessage& func_msg);
/test/vts/compilation_tools/vtsc/test/golden/DRIVER/test/vts/specification/lib/ndk/bionic/1.0/
DlibcV1.vts.h26 …bool Fuzz(FunctionSpecificationMessage* func_msg, void** result, const string& callback_socket_nam…
27 …bool CallFunction(const FunctionSpecificationMessage& func_msg, const string& callback_socket_name…
29 bool GetAttribute(FunctionSpecificationMessage* func_msg, void** result);
/test/vts/drivers/hal/replayer/
DVtsHidlHalReplayer.cpp140 cout << "Replay function: " << call_msg.func_msg().name() << endl; in ReplayTrace()
141 LOG(DEBUG) << "Replay function: " << call_msg.func_msg().DebugString(); in ReplayTrace()
154 *func_call_msg.mutable_api() = call_msg.func_msg(); in ReplayTrace()
167 driver_id, expected_result_msg.func_msg(), result_msg)) { in ReplayTrace()
171 << expected_result_msg.func_msg().DebugString() in ReplayTrace()
/test/vts/drivers/hal/common/include/driver_manager/
DVtsHalDriverManager.h69 string CallFunction(FunctionCallMessage* func_msg);
116 string GetAttribute(FunctionCallMessage* func_msg);
143 string ProcessFuncResultsForLibrary(FunctionSpecificationMessage* func_msg,
/test/vts/utils/native/trace_processor/
DVtsTraceProcessor.cpp513 entry_record.func_msg().name() != exit_record.func_msg().name()) { in isPairedRecord()
670 string func_name = record.func_msg().name(); in GetHalTraceSummary()
700 "::" + record.func_msg().name(); in GetFullApiStr()
/test/vts/drivers/hal/common/driver_base/
DDriverBase.cpp125 for (vts::FunctionSpecificationMessage func_msg : in Fuzz()
127 Fuzz(&func_msg, result, ""); in Fuzz()
/test/vts/proto/
DVtsProfilingMessage.proto61 optional FunctionSpecificationMessage func_msg = 6; field