Home
last modified time | relevance | path

Searched refs:instance (Results 1 – 25 of 117) sorted by relevance

12345

/system/bt/gd/
Dmodule.cc58 auto instance = started_modules_.find(module); in Get() local
59 ASSERT(instance != started_modules_.end()); in Get()
60 return instance->second; in Get()
73 void ModuleRegistry::set_registry_and_handler(Module* instance, Thread* thread) const { in set_registry_and_handler() argument
74 instance->registry_ = this; in set_registry_and_handler()
75 instance->handler_ = new Handler(thread); in set_registry_and_handler()
84 Module* instance = module->ctor_(); in Start() local
85 set_registry_and_handler(instance, thread); in Start()
87 instance->ListDependencies(&instance->dependencies_); in Start()
88 Start(&instance->dependencies_, thread); in Start()
[all …]
Dmodule.h153 void set_registry_and_handler(Module* instance, ::bluetooth::os::Thread* thread) const;
174 void InjectTestModule(const ModuleFactory* module, Module* instance) { in InjectTestModule() argument
176 started_modules_[module] = instance; in InjectTestModule()
177 set_registry_and_handler(instance, &test_thread); in InjectTestModule()
178 instance->Start(); in InjectTestModule()
217 Module* instance = T::Factory.ctor_(); in Inject() local
218 InjectTestModule(overriding, instance); in Inject()
219 return static_cast<T*>(instance); in Inject()
/system/tools/hidl/test/lazy_test/
Dhidl_lazy_test.cpp44 sp<IBase> getHal(const FqInstance& instance) { in getHal() argument
45 return ::android::hardware::details::getRawServiceInternal(instance.getFqName().string(), in getHal()
46 instance.getInstance(), in getHal()
58 for (const auto& instance : gInstances) { in SetUp() local
59 ASSERT_FALSE(isServiceRunning(instance)) in SetUp()
60 << "Service '" << instance.string() in SetUp()
73 for (const auto& instance : gInstances) { in TearDown() local
74 ASSERT_FALSE(isServiceRunning(instance)) in TearDown()
75 << "Service failed to shutdown " << instance.string(); in TearDown()
79 bool isServiceRunning(const FqInstance& instance) { in isServiceRunning() argument
[all …]
/system/core/libutils/include/utils/
DSingleton.h53 TYPE* instance = sInstance; in getInstance() local
54 if (instance == nullptr) { in getInstance()
55 instance = new TYPE(); in getInstance()
56 sInstance = instance; in getInstance()
58 return *instance; in getInstance()
/system/tools/hidl/utils/
DFqInstance.cpp102 bool FqInstance::setTo(const FQName& fqName, const std::string& instance) { in setTo() argument
104 mInstance = instance; in setTo()
109 const std::string& interface, const std::string& instance) { in setTo() argument
111 mInstance = instance; in setTo()
116 const std::string& instance) { in setTo() argument
117 return setTo("", majorVer, minorVer, interface, instance); in setTo()
120 bool FqInstance::setTo(const std::string& interface, const std::string& instance) { in setTo() argument
121 return setTo(0u, 0u, interface, instance); in setTo()
/system/core/init/
Dinterface_utils.cpp47 for (const std::string& instance : instances) { in CheckInterfaceInheritanceHierarchy() local
50 if (base::Split(instance, "/")[0] == "aidl") { in CheckInterfaceInheritanceHierarchy() local
55 if (!fqinstance.setTo(instance)) { in CheckInterfaceInheritanceHierarchy()
56 return Error() << "Unable to parse interface instance '" << instance << "'"; in CheckInterfaceInheritanceHierarchy()
102 Result<void> IsKnownInterface(const std::string& instance) { in IsKnownInterface() argument
104 if (!fqinstance.setTo(instance)) { in IsKnownInterface()
105 return Error() << "Unable to parse interface instance '" << instance << "'"; in IsKnownInterface()
/system/tools/xsdc/tests/src/com/android/xsdc/tests/
DXmlParserTest.java49 Object instance; in testPurchaseSimple() local
52 instance = xmlParser.getMethod("read", InputStream.class).invoke(null, in); in testPurchaseSimple()
54 Object billTo = purchaseOrderType.getMethod("getBillTo").invoke(instance); in testPurchaseSimple()
55 List shipToList = (List) purchaseOrderType.getMethod("getShipTo").invoke(instance); in testPurchaseSimple()
62 "getOrderDate").invoke(instance); in testPurchaseSimple()
86 Object instance; in testNestedType() local
89 instance = xmlParser.getMethod("read", InputStream.class).invoke(null, in); in testNestedType()
92 String name = (String) employee.getMethod("getName").invoke(instance); in testNestedType()
93 Object addressInstance = employee.getMethod("getAddress").invoke(instance); in testNestedType()
116 Object instance; in testSimpleComplexContent() local
[all …]
/system/nvram/core/tests/
Dgtest_stubs.cpp29 TestInstanceBase* instance = decl->create_function(); in RunAllTests() local
32 instance->Run(); in RunAllTests()
36 delete instance; in RunAllTests()
53 testing::detail::TestRegistry::instance()->RunAllTests(); in main()
/system/libvintf/
DHalInterface.cpp33 for (const auto& instance : mInstances) { in forEachInstance() local
34 if (!func(mName, instance, false /* isRegex */)) { in forEachInstance()
38 for (const auto& instance : mRegexes) { in forEachInstance() local
39 if (!func(mName, instance, true /* isRegex */)) { in forEachInstance()
DMatrixHal.cpp59 intf.forEachInstance([&](const auto& interface, const auto& instance, bool isRegex) { in forEachInstance() argument
62 if (fqInstance.setTo(getName(), vr.majorVer, vr.minMinor, interface, instance)) { in forEachInstance()
82 intf.forEachInstance([&](const auto& interface, const auto& instance, bool isRegex) { in forEachInstance() argument
83 return func(this->versionRanges, interface, instance, isRegex); in forEachInstance()
147 void MatrixHal::insertInstance(const std::string& interface, const std::string& instance, in insertInstance() argument
152 it->second.insertInstance(instance, isRegex); in insertInstance()
164 bool MatrixHal::removeInstance(const std::string& interface, const std::string& instance, in removeInstance() argument
168 bool removed = it->second.removeInstance(instance, isRegex); in removeInstance()
Dparse_string.cpp406 auto instance = matrixInstance.isRegex() ? matrixInstance.regexPattern() in expandInstances() local
411 s += toFQNameString(matrixInstance.interface(), instance); in expandInstances()
416 s += toFQNameString(vr, matrixInstance.interface(), instance); in expandInstances()
494 const std::string& interface, const std::string& instance) { in toFQNameString() argument
499 if (!instance.empty()) { in toFQNameString()
500 ss << "/" << instance; in toFQNameString()
507 const std::string& interface, const std::string& instance) { in toFQNameString() argument
508 return toFQNameString(package, to_string(version), interface, instance); in toFQNameString()
512 const std::string& instance) { in toFQNameString() argument
513 return toFQNameString("", version, interface, instance); in toFQNameString()
[all …]
DManifestInstance.cpp59 const std::string& ManifestInstance::instance() const { in instance() function in android::vintf::ManifestInstance
97 success = e.setTo(interface(), instance()); in getSimpleFqInstance()
102 success = e.setTo(version().majorVer, version().minorVer, interface(), instance()); in getSimpleFqInstance()
114 return toAidlFqnameString(package(), interface(), instance()); in description()
/system/libvintf/libaidlvintf_test_helper/
DVintf.cpp33 for (const std::string& instance : deviceManifest->getAidlInstances(package, iface)) { in getAidlHalInstanceNames() local
34 ret.push_back(descriptor + "/" + instance); in getAidlHalInstanceNames()
38 for (const std::string& instance : frameworkManifest->getAidlInstances(package, iface)) { in getAidlHalInstanceNames() local
39 ret.push_back(descriptor + "/" + instance); in getAidlHalInstanceNames()
/system/tools/hidl/utils/include/hidl-util/
DFqInstance.h77 const std::string& instance);
86 const std::string& instance = "");
92 const std::string& instance = "");
96 const std::string& instance);
/system/bt/bta/hearing_aid/
Dhearing_aid.cc111 HearingAidImpl* instance; variable
274 instance->gatt_if = client_id; in HearingAidImpl()
897 if (instance) in OnReadOnlyPropertiesReadStatic()
898 instance->OnReadOnlyPropertiesRead(conn_id, status, handle, len, value, in OnReadOnlyPropertiesReadStatic()
904 if (instance) in OnAudioStatusStatic()
905 instance->OnAudioStatus(conn_id, status, handle, len, value, data); in OnAudioStatusStatic()
911 if (instance) in OnPsmReadStatic()
912 instance->OnPsmRead(conn_id, status, handle, len, value, data); in OnPsmReadStatic()
1382 if (instance) instance->GapCallback(gap_handle, event, data); in GapCallbackStatic()
1684 if ((instance) && (p_result->status == BTM_SUCCESS)) { in read_rssi_cb()
[all …]
/system/libhidl/transport/allocator/1.0/vts/functional/
DVtsHidlAllocatorV1_0TargetTest.cpp39 static AllocatorEnvironment* instance() { in instance() function in AllocatorEnvironment
40 static AllocatorEnvironment* instance = new AllocatorEnvironment(); in instance() local
41 return instance; in instance()
48 allocator = getService<IAllocator>(AllocatorEnvironment::instance()); in SetUp()
135 ::testing::AddGlobalTestEnvironment(AllocatorEnvironment::instance()); in main()
137 AllocatorEnvironment::instance()->init(&argc, argv); in main()
/system/libhidl/base/
DHidlSupport.cpp282 sp<HidlMemory> instance = new HidlMemory(); in getInstance() local
283 instance->hidl_memory::operator=(mem); in getInstance()
284 return instance; in getInstance()
288 sp<HidlMemory> instance = new HidlMemory(); in getInstance() local
289 instance->hidl_memory::operator=(std::move(mem)); in getInstance()
290 return instance; in getInstance()
305 sp<HidlMemory> instance = new HidlMemory(name, std::move(hidlHandle), size); in getInstance() local
306 return instance; in getInstance()
/system/bt/service/ipc/binder/
Dinterface_with_instances_base.cc51 std::unique_ptr<bluetooth::BluetoothInstance> instance) { in RegisterInstanceBase() argument
62 std::move(instance)); in RegisterInstanceBase()
114 std::unique_ptr<bluetooth::BluetoothInstance> instance) { in OnRegisterInstance() argument
137 int instance_id = instance->GetInstanceId(); in OnRegisterInstance()
147 std::shared_ptr<bluetooth::BluetoothInstance>(instance.release()); in OnRegisterInstance()
Dbluetooth_gatt_client_binder_server.cc77 bluetooth::BluetoothInstance* instance) { in OnRegisterInstanceImpl() argument
78 VLOG(1) << __func__ << " client ID: " << instance->GetInstanceId() in OnRegisterInstanceImpl()
84 ? instance->GetInstanceId() in OnRegisterInstanceImpl()
/system/libhidl/transport/base/1.0/vts/functional/
Dvts_ibase_test.cpp71 for (const FqInstance& instance : instances) { in FqInstancesToString() local
72 instance_strings.insert(instance.string()); in FqInstancesToString()
84 void GetHal(const std::string& service, const FqInstance& instance) { in GetHal() argument
85 if (instance.getFqName().string() == IBase::descriptor) { in GetHal()
90 instance.getFqName().string(), instance.getInstance(), true /*retry*/, in GetHal()
96 gDeclaredServiceHalMap[service].push_back(Hal{.service = hal, .fq_instance = instance}); in GetHal()
116 const std::string instance = strName.substr(loc + 1); in SetUp() local
118 sp<IBase> service = default_manager_->get(fqName, instance); in SetUp()
121 << instance; in SetUp()
/system/teeui/test/
Dteeui_device_config.h50 static TeeuiRenderTest* instance = new TeeuiRenderTest; in Instance() local
51 return instance; in Instance()
/system/bt/gd/hal/
Dhci_hal_host_rootcanal.h28 static HciHalHostRootcanalConfig instance; in Get() local
29 return &instance; in Get()
/system/bt/common/
Daddress_obfuscator.h35 static auto instance = new AddressObfuscator(); in GetInstance() local
36 return instance; in GetInstance()
/system/core/fs_mgr/liblp/
Dproperty_fetcher.cpp35 static std::unique_ptr<IPropertyFetcher> instance = std::make_unique<PropertyFetcher>(); in GetInstanceAllocation() local
36 return &instance; in GetInstanceAllocation()
/system/libvintf/include/vintf/
Dparse_string.h111 const std::string& intf = "", const std::string& instance = "");
114 const std::string& instance);
119 const std::string& interface, const std::string& instance);
122 const std::string& instance);
124 std::string toFQNameString(const std::string& interface, const std::string& instance);
127 const std::string& instance = "");

12345