Home
last modified time | relevance | path

Searched refs:devClass (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/drivers/hdf_core/framework/core/shared/src/
H A Dsvcmgr_ioservice.c24 static int32_t ProcessListenClass(struct SvcMgrIoservice *svcmgrInst, uint16_t devClass, int cmdId) in ProcessListenClass() argument
31 (void)HdfSbufWriteUint16(data, devClass); in ProcessListenClass()
43 static int32_t SetListenClass(struct SvcMgrIoservice *svcmgrInst, uint16_t devClass) in SetListenClass() argument
45 return ProcessListenClass(svcmgrInst, devClass, SVCMGR_REGISTER_LISTENER); in SetListenClass()
48 static int32_t UnSetListenClass(struct SvcMgrIoservice *svcmgrInst, uint16_t devClass) in UnSetListenClass() argument
50 return ProcessListenClass(svcmgrInst, devClass, SVCMGR_UNREGISTER_LISTENER); in UnSetListenClass()
/ohos5.0/drivers/hdf_core/framework/core/manager/src/
H A Ddevsvc_manager.c47 .deviceClass = record->devClass, in NotifyServiceStatusLocked()
53 if ((holder->listenClass & record->devClass) && holder->NotifyStatus != NULL) { in NotifyServiceStatusLocked()
69 if ((listenerHolder->listenClass & record->devClass) == 0) { in NotifyServiceStatusOnRegisterLocked()
73 .deviceClass = record->devClass, in NotifyServiceStatusOnRegisterLocked()
111 record->devClass = servInfo->devClass; in DevSvcManagerAddService()
158 record->devClass = servInfo->devClass; in DevSvcManagerUpdateService()
247 if (record->devClass == deviceClass) { in DevSvcManagerListService()
274 HdfSbufWriteUint16(reply, record->devClass); in DevSvcManagerListAllService()
276 … HDF_LOGD("%{public}s 0x%{public}x %{public}d", record->servName, record->devId, record->devClass); in DevSvcManagerListAllService()
H A Ddevsvc_manager_ext.c40 uint16_t devClass = DEVICE_CLASS_MAX; in DevSvcManagerExtRegisterListener() local
47 if (!HdfSbufReadUint16(data, &devClass)) { in DevSvcManagerExtRegisterListener()
54 holder->listenClass = devClass; in DevSvcManagerExtRegisterListener()
58 holder = ServStatListenerHolderCreate((uintptr_t)client, devClass); in DevSvcManagerExtRegisterListener()
/ohos5.0/drivers/hdf_core/framework/core/shared/include/
H A Dhdf_service_info.h17 uint16_t devClass; member
26 info->devClass = devNode->deviceObject.deviceClass; in HdfServiceInfoInit()
H A Dhdf_service_record.h21 uint16_t devClass; member
/ohos5.0/drivers/hdf_core/adapter/uhdf2/host/src/
H A Ddevsvc_manager_proxy.c38 if (!HdfSbufWriteUint16(data, servInfo->devClass)) { in WriteServiceInfo()
85 if (servInfo->devClass >= DEVICE_CLASS_MAX) { in DevSvcManagerProxyAddService()
125 if (servInfo->devClass >= DEVICE_CLASS_MAX) { in DevSvcManagerProxyUpdateService()
/ohos5.0/drivers/hdf_core/framework/core/host/src/
H A Ddevsvc_manager_clnt.c23 if (servinfo->devClass >= DEVICE_CLASS_MAX) { in DevSvcManagerClntAddService()
44 if (servinfo->devClass >= DEVICE_CLASS_MAX) { in DevSvcManagerClntUpdateService()
/ohos5.0/drivers/hdf_core/adapter/uhdf2/hdi/test/servmgr/
H A Dservice_manager_hdi_test.cpp314 uint16_t devClass; in TestServiceListenerStop() local
322 devClass = status.deviceClass; in TestServiceListenerStop()
340 ASSERT_EQ(devClass, DEVICE_CLASS_DEFAULT); in TestServiceListenerStop()
354 ASSERT_EQ(devClass, DEVICE_CLASS_DEFAULT); in TestServiceListenerStop()
384 uint16_t devClass; in TestSampleService() local
394 devClass = status.deviceClass; in TestSampleService()
421 ASSERT_EQ(devClass, DEVICE_CLASS_DEFAULT); in TestSampleService()
467 uint16_t devClass; variable
477 devClass = status.deviceClass; in __anon4552f7070302()
496 ASSERT_EQ(devClass, DEVICE_CLASS_DEFAULT);
H A Dservice_manager_hdi_c_test.cpp350 …ServiceStatusData() : devClass(0), servStatus(0), callbacked(false), waitStatus(SERVIE_STATUS_STAR… in ServiceStatusData()
353 uint16_t devClass; member
367 ssd->devClass = servstat->deviceClass; in TestOnServiceStatusReceived()
413 ASSERT_EQ(ssd.devClass, DEVICE_CLASS_DEFAULT);
428 ASSERT_EQ(ssd.devClass, DEVICE_CLASS_DEFAULT);
493 ASSERT_EQ(ssd.devClass, DEVICE_CLASS_DEFAULT);
540 ASSERT_EQ(ssd.devClass, DEVICE_CLASS_DEFAULT);
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dbg/
H A Dhdf_dbg.cpp127 … cout << info.serviceName << ":0x" << std::hex << info.devClass << "\t:0x" << info.devId << endl; in PrintAllServiceInfoUser()
149 uint16_t devClass; in PrintAllServiceInfoKernel() local
150 if (!HdfSbufReadUint16(data, &devClass)) { in PrintAllServiceInfoKernel()
161 cout << serviceName << ":0x" << std::hex << devClass << "\t:0x" << devId << endl; in PrintAllServiceInfoKernel()
/ohos5.0/drivers/hdf_core/interfaces/inner_api/hdi/
H A Diservmgr_hdi.h59 uint16_t devClass; member
/ohos5.0/drivers/hdf_core/adapter/uhdf2/manager/src/
H A Ddevmgr_dump.c285 uint32_t devClass; in DevMgrFillServiceInfo() local
302 (void)HdfSbufReadUint32(data, &devClass); in DevMgrFillServiceInfo()
303 …devClassLen = sprintf_s(&line[devClassAlign], sizeof(line) - devClassAlign - 1, ":0x%x", devClass); in DevMgrFillServiceInfo()
H A Ddevsvc_manager_stub.c234 info->devClass = DEVICE_CLASS_DEFAULT; in DevSvcMgrStubGetPara()
235 if (!HdfSbufReadUint16(data, &info->devClass)) { in DevSvcMgrStubGetPara()
H A Ddevmgr_service_stub.c280 info.devClass = DEVICE_CLASS_DEFAULT; in DevmgrServiceStubStartService()
/ohos5.0/drivers/hdf_core/framework/core/manager/test/unittest/common/
H A Dhdf_ioservice_test.cpp747 IoServiceStatusData(): devClass(0), servStatus(0), callbacked(false) in IoServiceStatusData()
753 uint16_t devClass; member
766 issd->devClass = servstat->deviceClass; in TestOnServiceStatusReceived()
800 ASSERT_EQ(issd->devClass, DEVICE_CLASS_DEFAULT); in TestServiceStop()
815 ASSERT_EQ(issd->devClass, DEVICE_CLASS_DEFAULT); in TestServiceStop()
889 ASSERT_EQ(issd.devClass, DEVICE_CLASS_DEFAULT);
943 ASSERT_EQ(issd.devClass, DEVICE_CLASS_DEFAULT);
/ohos5.0/foundation/communication/nfc/services/src/tag/
H A Dndef_bt_data_parser.cpp107 int devClass = (firstByte << (SHIFT_ONE_BYTE * 2)) + (secondByte << SHIFT_ONE_BYTE) + thirdByte; in GetBtDevClass() local
108 btClass = Bluetooth::BluetoothDeviceClass(devClass); in GetBtDevClass()
/ohos5.0/drivers/hdf_core/adapter/uhdf2/hdi/src/
H A Diservmgr_client.cpp158 info.devClass = reply.ReadUint16(); in HdfDevMgrDbgFillServiceInfo()
/ohos5.0/drivers/hdf_core/adapter/uhdf2/host/test/unittest/
H A Ddevhost_test.cpp113 servInfo.devClass = DEVICE_CLASS_MAX;