Home
last modified time | relevance | path

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

12

/system/bt/vendor_libs/test_vendor_lib/model/devices/
Ddevice.cc45 phy->GetType() == phy_type) { in UnregisterPhyLayer()
62 if (phy != nullptr && phy->GetType() == phy_type) { in SendLinkLayerPacket()
71 if (phy != nullptr && phy->GetType() == phy_type) { in SendLinkLayerPacket()
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()
Dbeacon.cc79 packet.GetType() == model::packets::PacketType::LE_SCAN) { in IncomingPacket()
/system/tools/aidl/
Dgenerate_rust.cpp64 auto arg_type = RustNameOf(arg.GetType(), typenames, arg_mode); in BuildArg()
69 auto method_type = RustNameOf(method.GetType(), typenames, StorageMode::VALUE); in BuildMethod()
131 } else if (arg->GetType().IsArray()) { in GenerateClientMethod()
133 if (arg->GetType().IsNullable()) { in GenerateClientMethod()
174 if (method.GetType().GetName() != "void") { in GenerateClientMethod()
175 auto return_type = RustNameOf(method.GetType(), typenames, StorageMode::VALUE); in GenerateClientMethod()
215 auto arg_type = RustNameOf(arg->GetType(), typenames, arg_mode); in GenerateServerTransaction()
220 if (!arg->IsIn() && arg->GetType().IsArray()) { in GenerateServerTransaction()
222 auto resize_name = arg->GetType().IsNullable() ? "resize_nullable_out_vec" : "resize_out_vec"; in GenerateServerTransaction()
240 if (method.GetType().GetName() != "void") { in GenerateServerTransaction()
[all …]
Dgenerate_java.cpp146 if (CanDescribeContents(f->GetType(), types, &describers)) { in GenerateParcelableDescribeContents()
168 if (CanDescribeContents(f->GetType(), types, &describers)) { in GenerateParcelableDescribeContents()
196 .type = field->GetType(), in GenerateToString()
218 .type = field->GetType(), in GenerateToString()
396 if (variable->GetType().GetName() == "ParcelableHolder" || parcel->IsJavaOnlyImmutable()) { in generate_parcel_class()
399 out << JavaSignatureOf(variable->GetType(), typenames) << " " << variable->GetName(); in generate_parcel_class()
402 } else if (variable->GetType().GetName() == "ParcelableHolder") { in generate_parcel_class()
404 out << " = new " << JavaSignatureOf(variable->GetType(), typenames) << "("; in generate_parcel_class()
426 out << "private " << JavaSignatureOf(variable->GetType(), typenames) << " " in generate_parcel_class()
433 << JavaSignatureOf(variable->GetType(), typenames) << " " << variable->GetName() in generate_parcel_class()
[all …]
Ddiagnostics.cpp107 void Visit(const AidlMethod& a) override { fun(a.GetType()); } in Check()
180 if (v.GetType().IsNullable()) return; in CheckExplicitDefault()
181 if (v.GetType().IsArray()) return; in CheckExplicitDefault()
182 const auto defined_type = v.GetType().GetDefinedType(); in CheckExplicitDefault()
217 if (a->GetType().IsArray() && a->IsOut()) { in Visit()
220 << "'. Instead prefer APIs like '" << a->GetType().Signature() << " " << m.GetName() in Visit()
240 if (a.GetType().IsArray()) return; in Visit()
241 if (a.IsOut() && a.GetType().IsNullable()) { in Visit()
Dgenerate_cpp.cpp111 const bool nonCopyable = IsNonCopyableType(a->GetType(), typenames); in BuildArgList()
115 literal = CppNameOf(a->GetType(), typenames); in BuildArgList()
120 const auto definedType = typenames.TryGetDefinedType(a->GetType().GetName()); in BuildArgList()
123 const bool isPrimitive = AidlTypenames::IsPrimitiveTypename(a->GetType().GetName()); in BuildArgList()
127 if (!(isPrimitive || isEnum || nonCopyable) || a->GetType().IsArray()) { in BuildArgList()
147 if (method.GetType().GetName() != "void") { in BuildArgList()
150 literal = CppNameOf(method.GetType(), typenames) + "*"; in BuildArgList()
286 const string& method = ParcelWriteMethodOf(a->GetType(), typenames); in DefineClientTransaction()
290 ParcelWriteCastOf(a->GetType(), typenames, var_name)))); in DefineClientTransaction()
292 } else if (a->IsOut() && a->GetType().IsArray()) { in DefineClientTransaction()
[all …]
Dgenerate_aidl_mappings.cpp43 signature << java::JavaSignatureOf(arg->GetType(), typenames) << ","; in generate_mappings()
46 signature << java::JavaSignatureOf(method->GetType(), typenames); in generate_mappings()
Daidl_to_rust.cpp207 const auto typeName = arg.GetType().GetName(); in ArgumentStorageMode()
212 if (typeName == "String" || arg.GetType().IsArray() || typenames.IsList(arg.GetType())) { in ArgumentStorageMode()
225 if (arg.GetType().IsNullable()) { in ArgumentReferenceMode()
237 if (arg.GetType().IsNullable()) { in ArgumentReferenceMode()
Daidl_checkapi.cpp98 if (kIgnoreAnnotations.find(annotation.GetType()) != kIgnoreAnnotations.end()) { in get_strict_annotations()
155 compatible &= are_compatible_types(old_c->GetType(), new_c->GetType()); in are_compatible_constants()
203 compatible &= are_compatible_types(old_m->GetType(), new_m->GetType()); in are_compatible_interfaces()
212 compatible &= are_compatible_types(old_a.GetType(), new_a.GetType()); in are_compatible_interfaces()
278 compatible &= are_compatible_types(old_field->GetType(), new_field->GetType()); in are_compatible_parcelables()
287 auto enum_decl = new_types.GetEnumDeclaration(new_field->GetType()); in are_compatible_parcelables()
319 if (const auto& enum_decl = new_types.GetEnumDeclaration(new_field->GetType()); in are_compatible_parcelables()
Dgenerate_ndk.cpp252 visit(method->GetType()); in GenerateHeaderIncludes()
254 visit(argument->GetType()); in GenerateHeaderIncludes()
261 visit(field->GetType()); in GenerateHeaderIncludes()
263 if (field->GetType().IsGeneric()) { in GenerateHeaderIncludes()
264 for (const auto& type_argument : field->GetType().GetTypeParameters()) { in GenerateHeaderIncludes()
314 const AidlTypeSpecifier& type = constant->GetType(); in GenerateConstantDeclarations()
335 AIDL_FATAL_IF(value.GetType() == AidlConstantValue::Type::UNARY || in GenerateConstantDefinitions()
336 value.GetType() == AidlConstantValue::Type::BINARY, in GenerateConstantDefinitions()
338 if (value.GetType() == AidlConstantValue::Type::STRING) { in GenerateConstantDefinitions()
421 WriteToParcelFor({out, types, arg->GetType(), "_aidl_in.get()", prefix + var_name}); in GenerateClientMethodDefinition()
[all …]
Dgenerate_java_binder.cpp395 const AidlTypeSpecifier& type = constant->GetType(); in generate_constant_declarations()
408 decl->returnType = JavaSignatureOf(method.GetType(), typenames); in generate_interface_method()
413 … auto var = std::make_shared<Variable>(JavaSignatureOf(arg->GetType(), typenames), arg->GetName()); in generate_interface_method()
414 var->annotations = JavaAnnotationsFor(arg->GetType()); in generate_interface_method()
464 std::shared_ptr<Variable> v = stubArgs.Get(arg->GetType(), typenames); in generate_stub_code()
473 .type = arg->GetType(), in generate_stub_code()
481 if (!arg->GetType().IsArray()) { in generate_stub_code()
484 InstantiableJavaSignatureOf(arg->GetType(), typenames)))); in generate_stub_code()
486 generate_new_array(arg->GetType(), typenames, statements, v, transact_data); in generate_stub_code()
495 if (method.GetType().GetName() == "void") { in generate_stub_code()
[all …]
Daidl_dumpapi.cpp124 Visit(v.GetType()); in Visit()
127 DumpConstantValue(v.GetType(), *v.GetDefaultValue()); in Visit()
136 Visit(c.GetType()); in Visit()
138 DumpConstantValue(c.GetType(), c.GetValue()); in Visit()
Daidl_language.cpp331 if (a.GetType() == type) { in GetAnnotation()
423 const auto& [iter, inserted] = declared.emplace(annotation.GetType(), annotation.GetLocation()); in CheckValid()
670 if (GetType().IsNullable()) { in HasUsefulDefaultValue()
715 return default_value_->ValueString(GetType(), decorator); in ValueString()
723 traverse(GetType()); in TraverseChildren()
785 if (!GetType().CheckValid(typenames)) { in CheckValid()
789 const auto& aspect = typenames.GetArgumentAspect(GetType()); in CheckValid()
882 arg_signatures.emplace_back(arg->GetType().Signature()); in Signature()
892 string ret = (IsOneway() ? "oneway " : "") + GetType().ToString() + " " + GetName() + "(" + in ToString()
963 if (!typenames.CanBeJavaOnlyImmutable(v->GetType())) { in CheckValidWithMembers()
[all …]
Daidl_to_cpp_common.cpp184 if (method.GetType().GetName() != "void") { in GenLogAfterExecute()
343 field_types.push_back(name_of(f->GetType(), typenames)); in PrivateFields()
370 name_of(first_field->GetType(), typenames) + "(" + first_field->ValueString(decorator) + ")"; in PublicFields()
449 const auto& type = variable->GetType(); in ReadFromParcel()
487 ctx.write_func(out, "get<" + variable->GetName() + ">()", variable->GetType()); in WriteToParcel()
Daidl.cpp375 Check(m.GetType(), AidlAnnotation::CONTEXT_TYPE_SPECIFIER | AidlAnnotation::CONTEXT_METHOD); in ValidateAnnotationContext()
377 Check(arg->GetType(), AidlAnnotation::CONTEXT_TYPE_SPECIFIER); in ValidateAnnotationContext()
381 Check(m.GetType(), AidlAnnotation::CONTEXT_TYPE_SPECIFIER | AidlAnnotation::CONTEXT_CONST); in ValidateAnnotationContext()
384 Check(m.GetType(), AidlAnnotation::CONTEXT_TYPE_SPECIFIER | AidlAnnotation::CONTEXT_FIELD); in ValidateAnnotationContext()
761 check_untyped_container(method->GetType(), method.get()); in load_and_validate_aidl()
763 check_untyped_container(arg->GetType(), method.get()); in load_and_validate_aidl()
768 check_untyped_container(field->GetType(), field.get()); in load_and_validate_aidl()
Daidl_language.h249 const Type& GetType() const { return schema_.type; }
485 const AidlTypeSpecifier& GetType() const { return *type_; }
550 traverse(GetType());
645 Type GetType() const { return final_type_; }
779 const AidlTypeSpecifier& GetType() const { return *type_; }
798 return value_->ValueString(GetType(), decorator);
804 traverse(GetType());
831 const AidlTypeSpecifier& GetType() const { return *type_; }
870 traverse(GetType());
/system/bt/vendor_libs/test_vendor_lib/model/setup/
Dphy_layer.h47 Phy::Type GetType() { in GetType() function
Dphy_layer_factory.h37 Phy::Type GetType();
Dtest_model.cc162 phys_[phy_index].GetType(), in DelDeviceFromPhy()
171 if (phy_type == phys_[i].GetType()) { in AddLinkLayerConnection()
/system/apex/apexd/
Dapex_database.cpp71 BlockDeviceType GetType() const { in GetType() function in android::apex::__anon70e6d16b0111::BlockDevice
144 if (dev.GetType() != LoopDevice) { in PopulateLoopInfo()
207 switch (block.GetType()) { in ResolveMountInfo()
/system/apex/tools/
Ddeapexer.py218 if GetType(args.apex) == ApexType.COMPRESSED:
241 if GetType(args.apex) == ApexType.COMPRESSED:
263 def GetType(apex_path): function
279 res = GetType(args.apex)
/system/bt/vendor_libs/test_vendor_lib/test/
Dpacket_stream_unittest.cc79 EXPECT_EQ(DATA_TYPE_COMMAND, command->GetType()); in CheckedReceiveCommand()

12