Home
last modified time | relevance | path

Searched refs:GetType (Results 1 – 25 of 29) sorted by relevance

12

/system/tools/aidl/
Dgenerate_java.cpp108 out << variable->GetType().GetComments() << "\n"; in generate_parcel_class()
109 for (const auto& a : generate_java_annotations(variable->GetType())) { in generate_parcel_class()
114 if (variable->GetType().GetName() == "ParcelableHolder" || parcel->IsImmutable()) { in generate_parcel_class()
117 out << JavaSignatureOf(variable->GetType(), typenames) << " " << variable->GetName(); in generate_parcel_class()
120 } else if (variable->GetType().GetName() == "ParcelableHolder") { in generate_parcel_class()
122 out << " = new " << JavaSignatureOf(variable->GetType(), typenames) << "("; in generate_parcel_class()
186 .type = field->GetType(), in generate_parcel_class()
213 JavaSignatureOf(field->GetType(), typenames), field->GetName())); in generate_parcel_class()
217 if (field->GetType().GetName() == "List") { in generate_parcel_class()
220 } else if (field->GetType().GetName() == "Map") { in generate_parcel_class()
[all …]
Dgenerate_ndk.cpp210 includes.insert(headerFilePath(method->GetType())); in GenerateHeaderIncludes()
212 includes.insert(headerFilePath(argument->GetType())); in GenerateHeaderIncludes()
220 includes.insert(headerFilePath(field->GetType())); in GenerateHeaderIncludes()
256 CHECK(value.GetType() != AidlConstantValue::Type::UNARY && in GenerateConstantDeclarations()
257 value.GetType() != AidlConstantValue::Type::BINARY); in GenerateConstantDeclarations()
258 if (value.GetType() == AidlConstantValue::Type::STRING) { in GenerateConstantDeclarations()
267 CHECK(value.GetType() != AidlConstantValue::Type::UNARY && in GenerateConstantDeclarations()
268 value.GetType() != AidlConstantValue::Type::BINARY); in GenerateConstantDeclarations()
269 if (value.GetType() == AidlConstantValue::Type::BOOLEAN || in GenerateConstantDeclarations()
270 value.GetType() == AidlConstantValue::Type::INT8 || in GenerateConstantDeclarations()
[all …]
Dgenerate_cpp.cpp106 const bool nonCopyable = IsNonCopyableType(a->GetType(), typenames); in BuildArgList()
110 literal = CppNameOf(a->GetType(), typenames); in BuildArgList()
115 const auto definedType = typenames.TryGetDefinedType(a->GetType().GetName()); in BuildArgList()
118 const bool isPrimitive = AidlTypenames::IsPrimitiveTypename(a->GetType().GetName()); in BuildArgList()
122 if (!(isPrimitive || isEnum || nonCopyable) || a->GetType().IsArray()) { in BuildArgList()
142 if (method.GetType().GetName() != "void") { in BuildArgList()
145 literal = CppNameOf(method.GetType(), typenames) + "*"; in BuildArgList()
226 string type = CppNameOf(a.GetType(), typenamespaces); in DeclareLocalVariable()
299 const string& method = ParcelWriteMethodOf(a->GetType(), typenames); in DefineClientTransaction()
303 ParcelWriteCastOf(a->GetType(), typenames, var_name)))); in DefineClientTransaction()
[all …]
Daidl_checkapi.cpp59 if (kIgnoreAnnotations.find(annotation.GetType()) == kIgnoreAnnotations.end()) { in get_strict_annotations()
126 compatible &= are_compatible_types(old_m->GetType(), new_m->GetType()); in are_compatible_interfaces()
135 compatible &= are_compatible_types(old_a.GetType(), new_a.GetType()); in are_compatible_interfaces()
160 compatible &= are_compatible_types(old_c->GetType(), new_c->GetType()); in are_compatible_interfaces()
201 compatible &= are_compatible_types(old_field->GetType(), new_field->GetType()); in are_compatible_parcelables()
229 if (!new_field->GetDefaultValue() && !has_usable_nil_type(new_field->GetType())) { in are_compatible_parcelables()
Dgenerate_aidl_mappings.cpp43 signature << java::JavaSignatureOf(arg->GetType(), typenames) << ","; in generate_mappings()
46 signature << java::JavaSignatureOf(method->GetType(), typenames); in generate_mappings()
Dgenerate_java_binder.cpp405 decl->returnType = JavaSignatureOf(method.GetType(), typenames); in generate_interface_method()
407 decl->annotations = generate_java_annotations(method.GetType()); in generate_interface_method()
410 … auto var = std::make_shared<Variable>(JavaSignatureOf(arg->GetType(), typenames), arg->GetName()); in generate_interface_method()
411 var->annotations = generate_java_annotations(arg->GetType()); in generate_interface_method()
461 std::shared_ptr<Variable> v = stubArgs.Get(arg->GetType(), typenames); in generate_stub_code()
470 .type = arg->GetType(), in generate_stub_code()
478 if (!arg->GetType().IsArray()) { in generate_stub_code()
481 InstantiableJavaSignatureOf(arg->GetType(), typenames)))); in generate_stub_code()
483 generate_new_array(arg->GetType(), typenames, statements, v, transact_data); in generate_stub_code()
492 if (method.GetType().GetName() == "void") { in generate_stub_code()
[all …]
Daidl_language.cpp252 if (a.GetType() == type) { in GetAnnotation()
337 if (supported_annotations.find(annotation.GetType()) == supported_annotations.end()) { in CheckValid()
570 return default_value_->ValueString(GetType(), decorator); in ValueString()
692 arg_signatures.emplace_back(arg->GetType().ToString()); in Signature()
702 string ret = (IsOneway() ? "oneway " : "") + GetType().Signature() + " " + GetName() + "(" + in ToString()
815 if (field->GetType().IsHidden()) { in Dump()
842 success = success && typenames.CanBeImmutable(v->GetType()); in CheckValid()
948 if (!v->GetType().LanguageSpecificCheckValid(typenames, lang)) { in LanguageSpecificCheckValid()
1046 if (!m->GetType().LanguageSpecificCheckValid(typenames, lang)) { in LanguageSpecificCheckValid()
1050 if (!arg->GetType().LanguageSpecificCheckValid(typenames, lang)) { in LanguageSpecificCheckValid()
[all …]
Daidl_to_cpp_common.cpp213 if (!CanWriteLog(a.GetType())) { in WriteLogForArguments()
224 WriteLogFor(*(writer.get()), a.GetType(), varName, isPointer, logElementVarName + "[\"value\"]", in WriteLogForArguments()
343 if (method.GetType().GetName() != "void") { in GenLogAfterExecute()
344 WriteLogFor(*(writer.get()), method.GetType(), returnVarName, !isServer, in GenLogAfterExecute()
Daidl.cpp667 switch (constant->GetValue().GetType()) { in load_and_validate_aidl()
686 << static_cast<int>(constant->GetValue().GetType()); in load_and_validate_aidl()
723 check(method->GetType(), method.get()); in load_and_validate_aidl()
725 check(arg->GetType(), method.get()); in load_and_validate_aidl()
730 check(field->GetType(), field.get()); in load_and_validate_aidl()
Daidl_to_ndk.cpp430 std::string type = NdkNameOf(types, a->GetType(), mode); in NdkArgList()
435 if (method.GetType().GetName() != "void") { in NdkArgList()
436 std::string type = NdkNameOf(types, method.GetType(), StorageMode::OUT_ARGUMENT); in NdkArgList()
Daidl_language.h183 const Type& GetType() const { return schema_.type; } in GetType() function
341 const AidlTypeSpecifier& GetType() const { return *type_; } in GetType() function
464 Type GetType() const { return final_type_; } in GetType() function
550 const AidlTypeSpecifier& GetType() const { return *type_; } in GetType() function
559 return value_->ValueString(GetType(), decorator); in ValueString()
588 const AidlTypeSpecifier& GetType() const { return *type_; } in GetType() function
Daidl_unittest.cpp356 EXPECT_FALSE(interface->GetMethods()[0]->GetType().IsNullable()); in TEST_P()
366 EXPECT_TRUE(interface->GetMethods()[0]->GetType().IsNullable()); in TEST_P()
376 EXPECT_FALSE(interface->GetMethods()[0]->GetType().IsUtf8InCpp()); in TEST_P()
386 EXPECT_TRUE(interface->GetMethods()[0]->GetType().IsUtf8InCpp()); in TEST_P()
526 const AidlTypeSpecifier& ret_type = method->GetType(); in TEST_P()
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dloopback.cc70 LOG_INFO("Got a packet of type %d", static_cast<int>(packet.GetType())); in IncomingPacket()
72 packet.GetType() == model::packets::PacketType::LE_SCAN) { in IncomingPacket()
Dsniffer.cc53 model::packets::PacketTypeText(packet.GetType()).c_str()); in IncomingPacket()
Dremote_loopback_device.cc51 model::packets::PacketType type = packet.GetType(); in IncomingPacket()
Ddevice.cc32 phy_layers_[phy->GetType()].push_back(phy); in RegisterPhyLayer()
Dbeacon.cc81 packet.GetType() == model::packets::PacketType::LE_SCAN) { in IncomingPacket()
Dscripted_beacon.cc204 packet.GetType() == model::packets::PacketType::LE_SCAN) { in IncomingPacket()
/system/apex/apexd/
Dapex_database.cpp68 BlockDeviceType GetType() const { in GetType() function in android::apex::__anon837c15e40111::BlockDevice
138 if (dev.GetType() != LoopDevice) { in PopulateLoopInfo()
194 switch (block.GetType()) { in resolveMountInfo()
/system/bt/vendor_libs/test_vendor_lib/model/setup/
Dphy_layer.h47 Phy::Type GetType() { in GetType() function
Dphy_layer_factory.h36 Phy::Type GetType();
Dtest_model.cc159 devices_[dev_index]->UnregisterPhyLayer(phys_[phy_index].GetType(), in DelDeviceFromPhy()
167 if (phy_type == phys_[i].GetType()) { in AddLinkLayerConnection()
Dphy_layer_factory.cc25 Phy::Type PhyLayerFactory::GetType() { in GetType() function in test_vendor_lib::PhyLayerFactory
/system/bt/vendor_libs/test_vendor_lib/test/
Dpacket_stream_unittest.cc79 EXPECT_EQ(DATA_TYPE_COMMAND, command->GetType()); in CheckedReceiveCommand()
Dlink_layer_socket_device_test.cc101 ASSERT_EQ(Link::PacketType::COMMAND, received_view.GetType()); in ValidatePacket()

12