Home
last modified time | relevance | path

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

1234567

/system/bt/gd/
Dmodule.cc59 auto instance = started_modules_.find(module); in Get() local
60 ASSERT(instance != started_modules_.end()); in Get()
61 return instance->second; in Get()
74 void ModuleRegistry::set_registry_and_handler(Module* instance, Thread* thread) const { in set_registry_and_handler() argument
75 instance->registry_ = this; in set_registry_and_handler()
76 instance->handler_ = new Handler(thread); in set_registry_and_handler()
86 Module* instance = module->ctor_(); in Start() local
87 last_instance_ = "starting " + instance->ToString(); in Start()
88 set_registry_and_handler(instance, thread); in Start()
90 LOG_DEBUG("Starting dependencies of %s", instance->ToString().c_str()); in Start()
[all …]
Dmodule.h153 void set_registry_and_handler(Module* instance, ::bluetooth::os::Thread* thread) const;
175 void InjectTestModule(const ModuleFactory* module, Module* instance) { in InjectTestModule() argument
177 started_modules_[module] = instance; in InjectTestModule()
178 set_registry_and_handler(instance, &test_thread); in InjectTestModule()
179 instance->Start(); in InjectTestModule()
218 Module* instance = T::Factory.ctor_(); in Inject() local
219 InjectTestModule(overriding, instance); in Inject()
220 return static_cast<T*>(instance); in Inject()
/system/apex/apexd/
Dapex_file_repository_test.cpp83 ApexFileRepository instance; in TEST() local
84 ASSERT_TRUE(IsOk(instance.AddPreInstalledApex({built_in_dir.path}))); in TEST()
85 ASSERT_TRUE(IsOk(instance.AddDataApex(data_dir.path))); in TEST()
93 auto ret = instance.GetPublicKey(apex->GetManifest().name()); in TEST()
99 auto ret = instance.GetPreinstalledPath(apex->GetManifest().name()); in TEST()
106 auto ret = instance.GetDataPath(apex->GetManifest().name()); in TEST()
111 ASSERT_TRUE(instance.HasPreInstalledVersion(apex->GetManifest().name())); in TEST()
112 ASSERT_TRUE(instance.HasDataVersion(apex->GetManifest().name())); in TEST()
119 ASSERT_TRUE(IsOk(instance.AddPreInstalledApex({built_in_dir.path}))); in TEST()
120 ASSERT_TRUE(IsOk(instance.AddDataApex(data_dir.path))); in TEST()
[all …]
/system/tools/hidl/test/lazy_test/
Dhidl_lazy_test.cpp46 sp<IBase> getHal(const FqInstance& instance) { in getHal() argument
47 return ::android::hardware::details::getRawServiceInternal(instance.getFqName().string(), in getHal()
48 instance.getInstance(), in getHal()
60 for (const auto& instance : gInstances) { in SetUp() local
61 ASSERT_FALSE(isServiceRunning(instance)) in SetUp()
62 << "Service '" << instance.string() in SetUp()
75 for (const auto& instance : gInstances) { in TearDown() local
76 ASSERT_FALSE(isServiceRunning(instance)) in TearDown()
77 << "Service failed to shutdown " << instance.string(); in TearDown()
81 bool isServiceRunning(const FqInstance& instance) { in isServiceRunning() argument
[all …]
/system/libvintf/analyze_matrix/
Dhals_for_release.py184 def GetHalFormat(instance): argument
197 return HalFormat.HIDL if "::" in instance else HalFormat.AIDL
200 def SplitInstance(instance): argument
214 format = GetHalFormat(instance)
216 atPos = instance.find("@")
217 spacePos = instance.rfind(" ")
218 return instance[:atPos], instance[atPos:spacePos], instance[spacePos + 1:]
220 dotPos = instance.rfind(".")
221 spacePos = instance.rfind(" ")
222 return instance[:dotPos], instance[dotPos + 1:spacePos], instance[spacePos + 1:]
[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/bt/bta/vc/
Dvc.cc40 VolumeControlImpl* instance; variable
74 instance->gatt_if_ = client_id; in VolumeControlImpl()
323 if (!instance) { in OnGattWriteCccStatic()
328 instance->OnGattWriteCcc(connection_id, status, handle, data); in OnGattWriteCccStatic()
453 if (instance) in devices_control_point_helper()
454 instance->OnWriteControlResponse(connection_id, status, handle, in devices_control_point_helper()
511 if (instance) instance->gattc_callback(event, p_data); in gattc_callback_static()
516 if (instance) instance->OnEncryptionComplete(*address, status); in enc_callback_static()
522 if (instance) in chrc_read_callback_static()
523 instance->OnCharacteristicValueChanged(conn_id, status, handle, len, in chrc_read_callback_static()
[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/
DMatrixHal.cpp39 intf.forEachInstance([&](const auto& interface, const auto& instance, in isValid()
41 if (!canConvertToFqInstance(getName(), v, interface, instance, format, error)) { in isValid()
86 intf.forEachInstance([&](const auto& interface, const auto& instance, bool isRegex) { in forEachInstance() argument
89 if (fqInstance.setTo(getName(), vr.majorVer, vr.minMinor, interface, instance)) { in forEachInstance()
109 intf.forEachInstance([&](const auto& interface, const auto& instance, bool isRegex) { in forEachInstance() argument
110 return func(this->versionRanges, interface, instance, isRegex); in forEachInstance()
174 void MatrixHal::insertInstance(const std::string& interface, const std::string& instance, in insertInstance() argument
179 it->second.insertInstance(instance, isRegex); in insertInstance()
191 bool MatrixHal::removeInstance(const std::string& interface, const std::string& instance, in removeInstance() argument
195 bool removed = it->second.removeInstance(instance, isRegex); in removeInstance()
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()
Dutils.cpp25 const std::string& interface, const std::string& instance, in canConvertToFqInstance() argument
27 if (FqInstance::from(package, version.majorVer, version.minorVer, interface, instance) in canConvertToFqInstance()
39 ss << toAidlFqnameString(package, interface, instance) << " (@" << version.minorVer << ")"; in canConvertToFqInstance()
41 ss << toFQNameString(package, version, interface, instance); in canConvertToFqInstance()
Dparse_string.cpp392 auto instance = matrixInstance.isRegex() ? matrixInstance.regexPattern() in expandInstances() local
396 s += toFQNameString(matrixInstance.interface(), instance) + " (@" + in expandInstances()
402 s += toFQNameString(vr, matrixInstance.interface(), instance); in expandInstances()
480 const std::string& interface, const std::string& instance) { in toFQNameString() argument
485 if (!instance.empty()) { in toFQNameString()
486 ss << "/" << instance; in toFQNameString()
493 const std::string& interface, const std::string& instance) { in toFQNameString() argument
494 return toFQNameString(package, to_string(version), interface, instance); in toFQNameString()
498 const std::string& instance) { in toFQNameString() argument
499 return toFQNameString("", version, interface, instance); in toFQNameString()
[all …]
DManifestInstance.cpp70 const std::string& ManifestInstance::instance() const { in instance() function in android::vintf::ManifestInstance
114 success = e.setTo(interface(), instance()); in getSimpleFqInstance()
119 success = e.setTo(version().majorVer, version().minorVer, interface(), instance()); in getSimpleFqInstance()
131 return toAidlFqnameString(package(), interface(), instance()) + " (@" + in description()
145 return toFQNameString(interface(), instance()) + " (@" + in descriptionWithoutPackage()
/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/aidl/tests/golden_output/aidl-test-interface-ndk_platform-source/gen/android/aidl/tests/
DIDeprecated.cpp52 …tatus_t IDeprecated::writeToParcel(AParcel* parcel, const std::shared_ptr<IDeprecated>& instance) { in writeToParcel() argument
53 return AParcel_writeStrongBinder(parcel, instance ? instance->asBinder().get() : nullptr); in writeToParcel()
55 …atus_t IDeprecated::readFromParcel(const AParcel* parcel, std::shared_ptr<IDeprecated>* instance) { in readFromParcel() argument
59 *instance = IDeprecated::fromBinder(binder); in readFromParcel()
/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.cc119 HearingAidImpl* instance; variable
282 instance->gatt_if = client_id; in HearingAidImpl()
893 if (instance) in OnReadOnlyPropertiesReadStatic()
894 instance->OnReadOnlyPropertiesRead(conn_id, status, handle, len, value, in OnReadOnlyPropertiesReadStatic()
900 if (instance) in OnAudioStatusStatic()
901 instance->OnAudioStatus(conn_id, status, handle, len, value, data); in OnAudioStatusStatic()
907 if (instance) in OnPsmReadStatic()
908 instance->OnPsmRead(conn_id, status, handle, len, value, data); in OnPsmReadStatic()
1370 if (instance) instance->GapCallback(gap_handle, event, data); in GapCallbackStatic()
1670 if ((instance) && (p_result->status == BTM_SUCCESS)) { in read_rssi_cb()
[all …]
/system/libhidl/base/
DHidlSupport.cpp290 sp<HidlMemory> instance = new HidlMemory(); in getInstance() local
291 instance->hidl_memory::operator=(mem); in getInstance()
292 return instance; in getInstance()
296 sp<HidlMemory> instance = new HidlMemory(); in getInstance() local
297 instance->hidl_memory::operator=(std::move(mem)); in getInstance()
298 return instance; in getInstance()
313 sp<HidlMemory> instance = new HidlMemory(name, std::move(hidlHandle), size); in getInstance() local
314 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/core/fs_mgr/libsnapshot/
Dsnapuserd_daemon.h34 static Daemon instance; in Instance() local
35 return instance; in Instance()
/system/bt/gd/hal/
Dhci_hal_host.h28 static HciHalHostRootcanalConfig instance; in Get() local
29 return &instance; in Get()

1234567