/test/vts/compilation_tools/vtsc/ |
D | VtsCompilerUtils.cpp | 156 string GetCppVariableType(const VariableSpecificationMessage& arg, in GetCppVariableType() argument 159 switch (arg.type()) { in GetCppVariableType() 166 result = arg.predefined_type(); in GetCppVariableType() 171 result = GetCppVariableType(arg.scalar_type()); in GetCppVariableType() 181 if (!arg.has_enum_value() && arg.has_predefined_type()) { in GetCppVariableType() 182 result = arg.predefined_type(); in GetCppVariableType() 183 } else if (arg.has_enum_value() && arg.has_name()) { in GetCppVariableType() 184 result = arg.name(); // nested enum type. in GetCppVariableType() 194 string element_type = GetCppVariableType(arg.vector_value(0)); in GetCppVariableType() 200 VariableSpecificationMessage cur_val = arg; in GetCppVariableType() [all …]
|
D | VtsCompilerUtils.h | 41 string GetCppVariableType(const VariableSpecificationMessage& arg, 46 const VariableSpecificationMessage& arg, 52 VariableSpecificationMessage arg);
|
/test/vts/compilation_tools/vtsc/code_gen/driver/ |
D | HalCodeGen.cpp | 85 for (const auto& arg : func_pt_spec.arg()) { in GenerateCppBodyInterfaceImpl() local 89 if (arg.is_const()) { in GenerateCppBodyInterfaceImpl() 92 if (arg.type() == TYPE_SCALAR) { in GenerateCppBodyInterfaceImpl() 99 if (arg.scalar_type() == "char_pointer") { in GenerateCppBodyInterfaceImpl() 101 } else if (arg.scalar_type() == "uchar_pointer") { in GenerateCppBodyInterfaceImpl() 103 } else if (arg.scalar_type() == "bool_t") { in GenerateCppBodyInterfaceImpl() 105 } else if (arg.scalar_type() == "int8_t" || in GenerateCppBodyInterfaceImpl() 106 arg.scalar_type() == "uint8_t" || in GenerateCppBodyInterfaceImpl() 107 arg.scalar_type() == "int16_t" || in GenerateCppBodyInterfaceImpl() 108 arg.scalar_type() == "uint16_t" || in GenerateCppBodyInterfaceImpl() [all …]
|
D | LibSharedCodeGen.cpp | 50 for (auto const& arg : api.arg()) { in GenerateCppBodyFuzzFunction() local 51 if (arg_count == 0 && arg.type() == TYPE_PREDEFINED && in GenerateCppBodyFuzzFunction() 52 !strncmp(arg.predefined_type().c_str(), in GenerateCppBodyFuzzFunction() 56 out << " " << GetCppVariableType(arg) << " " in GenerateCppBodyFuzzFunction() 58 out << "reinterpret_cast<" << GetCppVariableType(arg) << ">(" in GenerateCppBodyFuzzFunction() 60 } else if (arg.type() == TYPE_SCALAR) { in GenerateCppBodyFuzzFunction() 61 if (arg.scalar_type() == "char_pointer" || in GenerateCppBodyFuzzFunction() 62 arg.scalar_type() == "uchar_pointer") { in GenerateCppBodyFuzzFunction() 63 if (arg.scalar_type() == "char_pointer") { in GenerateCppBodyFuzzFunction() 80 << GetCppInstanceType(arg) << ");" << "\n"; in GenerateCppBodyFuzzFunction() [all …]
|
/test/vts/compilation_tools/vtsc/test/golden/DRIVER/ |
D | libcV1.driver.cpp | 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() 86 …int32_t arg0 = (func_msg->arg(0).type() == TYPE_SCALAR && func_msg->arg(0).scalar_value().has_int3… in Fuzz() 88 …1 = (func_msg->arg(1).type() == TYPE_SCALAR && func_msg->arg(1).scalar_value().has_void_pointer())… in Fuzz() [all …]
|
D | NfcClientCallback.driver.cpp | 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() 144 ::android::hardware::nfc::V1_0::INfcClientCallback* arg = nullptr; in vts_func_4_android_hardware_nfc_V1_0_INfcClientCallback_with_arg() 146 … arg = reinterpret_cast<::android::hardware::nfc::V1_0::INfcClientCallback*>(hw_binder_proxy); in vts_func_4_android_hardware_nfc_V1_0_INfcClientCallback_with_arg() 152 arg); in vts_func_4_android_hardware_nfc_V1_0_INfcClientCallback_with_arg() 153 if (arg != nullptr) { in vts_func_4_android_hardware_nfc_V1_0_INfcClientCallback_with_arg() 154 arg->decStrong(arg); in vts_func_4_android_hardware_nfc_V1_0_INfcClientCallback_with_arg()
|
D | MemoryTest.driver.cpp | 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() 198 if (func_msg.arg(0).hidl_memory_value().has_hidl_mem_address()) { in CallFunction() 199 …arg0 = *(reinterpret_cast<android::hardware::hidl_memory*>(func_msg.arg(0).hidl_memory_value().hid… in CallFunction() [all …]
|
D | TestMsgQ.driver.cpp | 14 …sed__)), ::android::hardware::tests::msgq::V1_0::ITestMsgQ::EventFlagBits* arg __attribute__((__un… in MessageTo__android__hardware__tests__msgq__V1_0__ITestMsgQ__EventFlagBits() argument 15 …*arg = (::android::hardware::tests::msgq::V1_0::ITestMsgQ::EventFlagBits)var_msg.scalar_value().ui… in MessageTo__android__hardware__tests__msgq__V1_0__ITestMsgQ__EventFlagBits() 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 …]
|
D | Bar.driver.cpp | 14 …unused__)), ::android::hardware::tests::bar::V1_0::IBar::SomethingRelated* arg __attribute__((__un… in MessageTo__android__hardware__tests__bar__V1_0__IBar__SomethingRelated() argument 15 …MessageTo__android__hardware__tests__foo__V1_0__Unrelated(var_msg.struct_value(0), &(arg->myRelate… in MessageTo__android__hardware__tests__bar__V1_0__IBar__SomethingRelated() 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 …]
|
D | Nfc.driver.cpp | 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() 282 ::android::hardware::nfc::V1_0::INfc* arg = nullptr; in vts_func_4_android_hardware_nfc_V1_0_INfc_with_arg() 284 arg = reinterpret_cast<::android::hardware::nfc::V1_0::INfc*>(hw_binder_proxy); in vts_func_4_android_hardware_nfc_V1_0_INfc_with_arg() 290 arg); in vts_func_4_android_hardware_nfc_V1_0_INfc_with_arg() [all …]
|
/test/vts/specification/lib/ndk/bionic/1.0/ |
D | libcV1.vts | 19 arg: { 23 arg: { 27 arg: { 39 arg: { 43 arg: { 48 arg: { 61 arg: { 65 arg: { 70 arg: { 83 arg: { [all …]
|
D | libcutilsV1.vts | 18 arg: { 22 arg: { 26 arg: { 38 arg: { 50 arg: { 54 arg: { 66 arg: { 70 arg: { 82 arg: {
|
/test/vti/test_serving/gae/webapp/src/testing/ |
D | unittest_base.py | 114 for arg in device._properties: 115 if arg in skip_list or (arg in set_or_empty and arg not in kwargs): 117 if arg in kwargs: 118 value = kwargs[arg] 119 elif isinstance(device._properties[arg], ndb.StringProperty): 121 elif isinstance(device._properties[arg], ndb.IntegerProperty): 123 elif isinstance(device._properties[arg], ndb.BooleanProperty): 126 print("A type of property '{}' is not supported.".format(arg)) 128 if device._properties[arg]._repeated and type(value) is not list: 130 setattr(device, arg, value) [all …]
|
/test/vts/drivers/hal/common/driver_manager/ |
D | VtsHalDriverManager.cpp | 124 auto* arg = api->mutable_arg(index); in CallFunction() local 125 bool process_success = PreprocessHidlHalFunctionCallArgs(arg); in CallFunction() 446 VariableSpecificationMessage* arg) { in PreprocessHidlHalFunctionCallArgs() argument 447 switch (arg->type()) { in PreprocessHidlHalFunctionCallArgs() 451 for (int i = 0; i < arg->vector_size(); i++) { in PreprocessHidlHalFunctionCallArgs() 452 if (!PreprocessHidlHalFunctionCallArgs(arg->mutable_vector_value(i))) { in PreprocessHidlHalFunctionCallArgs() 462 for (int i = 0; i < arg->union_value_size(); i++) { in PreprocessHidlHalFunctionCallArgs() 463 auto* union_field = arg->mutable_union_value(i); in PreprocessHidlHalFunctionCallArgs() 467 << union_field->name() << "\" in union \"" << arg->name() in PreprocessHidlHalFunctionCallArgs() 476 for (int i = 0; i < arg->struct_value_size(); i++) { in PreprocessHidlHalFunctionCallArgs() [all …]
|
/test/vts/testcases/target/hal_lights/ |
D | hal_lights_basic_test.cpp | 71 struct light_state_t* arg = in TEST_F() local 73 arg->color = 0x80ff8000; in TEST_F() 74 arg->flashMode = LIGHT_FLASH_NONE; in TEST_F() 75 arg->flashOnMS = 0; in TEST_F() 76 arg->flashOffMS = 0; in TEST_F() 77 arg->brightnessMode = BRIGHTNESS_MODE_USER; in TEST_F() 78 EXPECT_EQ(0, device_->set_light(device_, arg)); in TEST_F()
|
/test/suite_harness/common/util/src/com/android/compatibility/common/util/ |
D | BusinessLogicExecutor.java | 102 for (String arg : args) { in formatArgs() 103 formattedArgs.add(formatArg(arg)); in formatArgs() 108 private static String formatArg(String arg) { in formatArg() argument 110 if (arg.contains(str)) { in formatArg() 114 return arg; in formatArg() 213 public void addArg(Object arg) { in addArg() argument 214 mArgs.add(arg); in addArg()
|
/test/vts/runners/target/vts_hal_hidl_target/ |
D | VtsHalHidlTargetTestEnvBase.cpp | 73 bool VtsHalHidlTargetTestEnvBase::parseVtsTestOption(const char* arg) { in parseVtsTestOption() argument 75 if (arg == NULL) return false; in parseVtsTestOption() 77 if (arg == kListFlag) { in parseVtsTestOption() 82 if (string(arg).find(kServiceInstanceFlag) == 0) { in parseVtsTestOption() 84 string value = string(arg).substr(kServiceInstanceFlag.length()); in parseVtsTestOption()
|
/test/vts/drivers/hal/server/ |
D | BinderServer.cpp | 104 const char* arg = data.readCString(); in onTransact() local 105 const string& result = Call(arg); in onTransact() 107 ALOGD("BnVtsFuzzer::%s call(%s) = %i", __FUNCTION__, arg, result.c_str()); in onTransact() 166 string Call(const string& arg) { in Call() argument 167 printf("VtsFuzzerServer::Call(%s)\n", arg.c_str()); in Call() 169 google::protobuf::TextFormat::MergeFromString(arg, call_msg); in Call()
|
D | SocketServer.cpp | 72 string VtsDriverHalSocketServer::Call(const string& arg) { in Call() argument 74 google::protobuf::TextFormat::MergeFromString(arg, call_msg); in Call() 80 string VtsDriverHalSocketServer::GetAttribute(const string& arg) { in GetAttribute() argument 82 google::protobuf::TextFormat::MergeFromString(arg, call_msg); in GetAttribute() 153 const string& result = Call(command_message.arg()); in ProcessOneCommand() 175 const string& result = GetAttribute(command_message.arg()); in ProcessOneCommand()
|
/test/vts-testcase/security/poc/target/kernel_wifi/31707909/ |
D | poc.cpp | 69 struct ifreq arg; in poc() local 81 memcpy(arg.ifr_ifrn.ifrn_name, ifname, strlen(ifname)); in poc() 93 arg.ifr_data = &ioc; in poc() 96 if ((res = ioctl(fd, 0x89F0, (struct ifreq *)&arg)) < 0) { in poc()
|
/test/vts/runners/host/tcp_client/ |
D | vts_tcp_client.py | 340 def CallApi(self, arg, caller_uid=None): argument 342 self.SendCommand(SysMsg_pb2.CALL_API, arg=arg, caller_uid=caller_uid) 377 "RPC Error, response code for %s is %s" % (arg, resp_code)) 379 def GetAttribute(self, arg): argument 381 self.SendCommand(SysMsg_pb2.VTS_AGENT_COMMAND_GET_ATTRIBUTE, arg=arg) 406 "RPC Error, response code for %s is %s" % (arg, resp_code)) 648 arg=None, argument 668 logging.debug("target API: %s", arg) 718 if arg is not None: 719 command_msg.arg = arg
|
/test/vts/specification/kernel/ |
D | syscalls-arm64.vts | 17 arg: { 22 arg: { 35 arg: {
|
/test/vti/test_serving/gae/webapp/src/ |
D | webapp_main.py | 32 def get(self, arg): argument 33 if arg: 34 return self.redirect("https://{}.appspot.com/".format(arg))
|
/test/vts/compilation_tools/vtsc/code_gen/profiler/ |
D | HalHidlProfilerCodeGen.cpp | 382 out << "if ((*args).size() != " << method.arg().size() << ") {\n"; in GenerateProfilerForMethod() 385 << method.arg().size() in GenerateProfilerForMethod() 391 for (int i = 0; i < method.arg().size(); i++) { in GenerateProfilerForMethod() 392 const VariableSpecificationMessage arg = method.arg(i); in GenerateProfilerForMethod() local 397 out << GetCppVariableType(arg) << " *" << arg_value in GenerateProfilerForMethod() 399 << GetCppVariableType(arg) << "*> ((*args)[" << i << "]);\n"; in GenerateProfilerForMethod() 402 GenerateProfilerForTypedVariable(out, arg, arg_name, in GenerateProfilerForMethod() 431 const VariableSpecificationMessage arg = method.return_type_hidl(i); in GenerateProfilerForMethod() local 436 out << GetCppVariableType(arg) << " *" << result_value in GenerateProfilerForMethod() 438 << GetCppVariableType(arg) << "*> ((*args)[" << i << "]);\n"; in GenerateProfilerForMethod() [all …]
|
/test/vti/test_serving/gae/webapp/src/tasks/ |
D | indexing.py | 41 def get(self, arg): argument 44 if arg: 45 if arg.startswith("/") and arg[1:].lower() in DICT_MODELS.keys(): 46 index_list.append(arg[1:].lower())
|