Home
last modified time | relevance | path

Searched refs:devmgr (Results 1 – 17 of 17) sorted by relevance

/drivers/hdf_core/adapter/uhdf2/hdi/test/servmgr/
Dservice_manager_hdi_c_test.cpp50 struct HDIDeviceManager *devmgr = HDIDeviceManagerGet(); in SetUpTestCase() local
51 if (devmgr != nullptr) { in SetUpTestCase()
52 devmgr->LoadDevice(devmgr, TEST_SERVICE_NAME); in SetUpTestCase()
57 struct HDIDeviceManager *devmgr = HDIDeviceManagerGet(); in TearDownTestCase() local
58 if (devmgr != nullptr) { in TearDownTestCase()
59 devmgr->UnloadDevice(devmgr, TEST_SERVICE_NAME); in TearDownTestCase()
259 struct HDIDeviceManager *devmgr = HDIDeviceManagerGet(); variable
260 ASSERT_TRUE(devmgr != nullptr);
261 devmgr->UnloadDevice(devmgr, TEST_SERVICE_NAME);
269 int ret = devmgr->LoadDevice(devmgr, TEST_SERVICE_NAME);
[all …]
Dservice_manager_hdi_test.cpp68 auto devmgr = IDeviceManager::Get(); in SetUpTestCase() local
69 if (devmgr != nullptr) { in SetUpTestCase()
71 devmgr->LoadDevice(TEST_SERVICE_NAME); in SetUpTestCase()
76 auto devmgr = IDeviceManager::Get(); in TearDownTestCase() local
77 if (devmgr != nullptr) { in TearDownTestCase()
79 devmgr->UnloadDevice(TEST_SERVICE_NAME); in TearDownTestCase()
82 …void TestServiceListenerStop(const sptr<IDeviceManager>& devmgr, const sptr<IServiceManager>& serv…
83 void TestSampleService(sptr<IRemoteObject>& sampleService, const sptr<IDeviceManager>& devmgr,
217 auto devmgr = IDeviceManager::Get(); variable
218 ASSERT_TRUE(devmgr != nullptr);
[all …]
/drivers/hdf_core/adapter/uhdf2/host/test/unittest/
Ddevmgr_test.cpp41 static struct HDIDeviceManager *devmgr; member in OHOS::DevMgrTest
45 struct HDIDeviceManager *DevMgrTest::devmgr = nullptr; member in OHOS::DevMgrTest
50 devmgr = HDIDeviceManagerGet(); in SetUpTestCase()
74 ASSERT_TRUE(devmgr != nullptr);
76 int ret = devmgr->LoadDevice(devmgr, TEST_SERVICE_NAME);
98 ASSERT_TRUE(devmgr != nullptr);
100 int ret = devmgr->UnloadDevice(devmgr, TEST_SERVICE_NAME);
117 ASSERT_TRUE(devmgr != nullptr);
122 ret = devmgr->LoadDevice(devmgr, TEST_SERVICE_NAME);
133 ret = devmgr->UnloadDevice(devmgr, TEST_SERVICE_NAME);
[all …]
/drivers/hdf_core/framework/test/fuzztest/devmgr_c_fuzzer/unloaddevice_fuzzer/
Dunloaddevice_fuzzer.cpp31 struct HDIDeviceManager *devmgr = HDIDeviceManagerGet(); in UnloadDeviceFuzzTest() local
32 if (devmgr == nullptr) { in UnloadDeviceFuzzTest()
37 if (devmgr->LoadDevice(devmgr, servicename) == HDF_SUCCESS) { in UnloadDeviceFuzzTest()
41 if (devmgr->UnloadDevice(devmgr, servicename) == HDF_SUCCESS) { in UnloadDeviceFuzzTest()
44 HDIDeviceManagerRelease(devmgr); in UnloadDeviceFuzzTest()
/drivers/hdf_core/framework/test/fuzztest/devmgr_c_fuzzer/queryusabledeviceInfo_fuzzer/
DqueryusabledeviceInfo_fuzzer.cpp32 struct HDIDeviceManager *devmgr = HDIDeviceManagerGet(); in QueryUnusableDeviceInfoFuzzTest() local
33 if (devmgr == nullptr) { in QueryUnusableDeviceInfoFuzzTest()
38 int32_t ret = devmgr->QueryUnusableDeviceInfo(devmgr, &list); in QueryUnusableDeviceInfoFuzzTest()
42 HDIDeviceManagerRelease(devmgr); in QueryUnusableDeviceInfoFuzzTest()
/drivers/hdf_core/framework/core/manager/test/unittest/common/
Ddevmgr_uevent_test.cpp32 static struct HDIDeviceManager *devmgr; member in DevmgrUeventTest
37 struct HDIDeviceManager *DevmgrUeventTest::devmgr = nullptr; member in DevmgrUeventTest
46 devmgr = HDIDeviceManagerGet(); in SetUpTestCase()
70 ASSERT_TRUE(devmgr != nullptr);
73 int ret = devmgr->UnloadDevice(devmgr, TEST_SERVICE_NAME);
116 ASSERT_TRUE(devmgr != nullptr);
119 int ret = devmgr->LoadDevice(devmgr, TEST_SERVICE_NAME);
162 ASSERT_TRUE(devmgr != nullptr);
165 int ret = devmgr->UnloadDevice(devmgr, TEST_SERVICE_NAME);
/drivers/peripheral/partitionslot/test/unittest/
Dhdf_partitionslot_test.cpp34 auto devmgr = IDeviceManager::Get(); in SetUpTestCase() local
35 if (devmgr != nullptr) { in SetUpTestCase()
36 devmgr->LoadDevice("partition_slot_service"); in SetUpTestCase()
43 auto devmgr = IDeviceManager::Get(); in TearDownTestCase() local
44 if (devmgr != nullptr) { in TearDownTestCase()
45 devmgr->UnloadDevice("partition_slot_service"); in TearDownTestCase()
/drivers/external_device_manager/test/moduletest/bus_extension_core_mt/
Dext_device_manager_mt.cpp36 ExtDeviceManager &devmgr = ExtDeviceManager::GetInstance(); in PrintAllDevice() local
38 std::vector<shared_ptr<DeviceInfo>> devicesInfo = devmgr.QueryDevice(BUS_TYPE_USB); in PrintAllDevice()
44 std::unordered_map<string, unordered_set<uint64_t>> &bundleMatchMap = devmgr.bundleMatchMap_; in PrintAllDevice()
Dbus_extension_core_mt.cpp34 ExtDeviceManager &devmgr = ExtDeviceManager::GetInstance(); in PrintAllDevice() local
36 …const std::unordered_map<uint64_t, std::shared_ptr<Device>> &map = devmgr.deviceMap_[BUS_TYPE_USB]; in PrintAllDevice()
/drivers/hdf_core/adapter/uhdf2/hdi/test/smq_test/
Dsmq_test.cpp177 auto devmgr = IDeviceManager::Get(); in SetUpTestCase() local
178 if (devmgr != nullptr) { in SetUpTestCase()
180 devmgr->LoadDevice(SERVICE_NAME); in SetUpTestCase()
186 auto devmgr = IDeviceManager::Get(); in TearDownTestCase() local
187 if (devmgr != nullptr) { in TearDownTestCase()
189 devmgr->UnloadDevice(SERVICE_NAME); in TearDownTestCase()
/drivers/hdf_core/adapter/uhdf2/hdi/src/
Ddevmgr_client.c245 void HDIDeviceManagerRelease(struct HDIDeviceManager *devmgr) in HDIDeviceManagerRelease() argument
247 if (devmgr == NULL) { in HDIDeviceManagerRelease()
251 HdfRemoteServiceRecycle(devmgr->remote); in HDIDeviceManagerRelease()
252 OsalMemFree(devmgr); in HDIDeviceManagerRelease()
/drivers/hdf_core/interfaces/inner_api/hdi/
Ddevmgr_hdi.h150 void HDIDeviceManagerRelease(struct HDIDeviceManager *devmgr);
/drivers/hdf_core/framework/tools/hdf_dbg/
Dhdf_dbg.cpp348 auto devmgr = IDeviceManager::Get(); in InjectDebugHdi() local
350 devmgr->LoadDevice(info.serviceName); in InjectDebugHdi()
384 devmgr->UnloadDevice(info.serviceName); in InjectDebugHdi()
424 auto devmgr = IDeviceManager::Get(); in GetAllDeviceUserSpace() local
425 if (devmgr == nullptr) { in GetAllDeviceUserSpace()
431 (void)devmgr->ListAllDevice(deviceInfos); in GetAllDeviceUserSpace()
/drivers/hdf_core/framework/core/manager/src/
Ddevmgr_service.c307 static int DevmgrServiceStartDeviceHost(struct DevmgrService *devmgr, struct HdfHostInfo *hostAttr) in DevmgrServiceStartDeviceHost() argument
320 DListInsertTail(&hostClnt->node, &devmgr->hosts); in DevmgrServiceStartDeviceHost()
415 struct DevmgrService *devmgr = NULL; in DevmgrServicePowerStateChange() local
426 devmgr = CONTAINER_OF(devmgrService, struct DevmgrService, super); in DevmgrServicePowerStateChange()
430 DLIST_FOR_EACH_ENTRY(hostClient, &devmgr->hosts, struct DevHostServiceClnt, node) { in DevmgrServicePowerStateChange()
439 DLIST_FOR_EACH_ENTRY_REVERSE(hostClient, &devmgr->hosts, struct DevHostServiceClnt, node) { in DevmgrServicePowerStateChange()
/drivers/hdf_core/adapter/uhdf2/host/test/
DBUILD.gn23 module_out_path = "hdf_core/devmgr"
/drivers/peripheral/bluetooth/audio/hal/hdi_binder/proxy/
DBUILD.gn60 "$hdf_uhdf_path/devmgr/include",
/drivers/hdf_core/adapter/uhdf2/hdi/
DBUILD.gn77 "$hdf_uhdf_path/devmgr/include",