/drivers/peripheral/user_auth/test/unittest/idm_test/ |
D | idm_session_test.cpp | 64 struct SessionInfo session = {}; variable 65 g_session = &session; 98 struct SessionInfo session; variable 99 EXPECT_EQ(GenerateChallenge(session.challenge, CHALLENGE_LEN), RESULT_SUCCESS); 100 g_session = &session; 124 struct SessionInfo session; variable 125 session.isScheduleValid = false; 126 g_session = &session; 128 session.isScheduleValid = true; 137 struct SessionInfo session; variable [all …]
|
D | user_idm_funcs_test.cpp | 98 struct SessionInfo session = {}; variable 99 session.userId = userId; 100 session.time = GetSystemTime(); 101 g_session = &session; 130 struct SessionInfo session = {}; variable 131 session.userId = userId; 132 session.time = GetSystemTime(); 133 g_session = &session; 165 struct SessionInfo session = {}; variable 166 session.userId = userId; [all …]
|
D | enroll_specification_check_test.cpp | 90 struct SessionInfo session = {}; variable 91 session.userId = 2661; 92 session.validAuthTokenTime = 100; 93 g_session = &session; 94 EXPECT_EQ(GenerateChallenge(session.challenge, CHALLENGE_LEN), RESULT_SUCCESS); 104 …EXPECT_EQ(memcpy_s(token.tokenDataPlain.challenge, CHALLENGE_LEN, session.challenge, CHALLENGE_LEN… 109 EXPECT_EQ(CheckIdmOperationToken(session.userId, &token), RESULT_BAD_MATCH); 111 data.userId = session.userId; 113 EXPECT_EQ(CheckIdmOperationToken(session.userId, &token), RESULT_BAD_MATCH); 118 userInfo->userId = session.userId; [all …]
|
/drivers/peripheral/usb/test/unittest/mock/src/ |
D | mock_linux_adapter.cpp | 63 int32_t FuncAdapterInit(const UsbSession *session) in FuncAdapterInit() argument 65 (void)session; in FuncAdapterInit() 70 void FuncAdapterExit(const UsbSession *session) in FuncAdapterExit() argument 72 (void)session; in FuncAdapterExit() 91 static UsbDeviceHandle *OsGetDeviceHandle(UsbSession *session, uint8_t busNum, uint8_t usbAddr) in OsGetDeviceHandle() argument 93 if (session == nullptr) { in OsGetDeviceHandle() 98 OsalMutexLock(&session->lock); in OsGetDeviceHandle() 100 HdfSListSearch(&session->usbDevs, (busNum << BUS_OFFSET) | usbAddr, OsDeviceCompare)); in OsGetDeviceHandle() 105 OsalMutexUnlock(&session->lock); in OsGetDeviceHandle() 122 static UsbDevice *OsAllocDevice(UsbSession *session, UsbDeviceHandle *handle) in OsAllocDevice() argument [all …]
|
/drivers/interface/bluetooth/a2dp/v1_0/ |
D | IBluetoothAudioSession.idl | 22 * The Host can use the interface provided by the module to create an audio session, 31 * @brief Defines the interfaces to start audio session, send render operation result, 32 * and stop the audio session. 44 * @brief Defines the interfaces to start audio session, send render operation result, 45 * and stop the audio session. 51 * @brief Start audio session and register the callback function. 53 * @param sessionType Indicates the session type. 65 * @brief Stop audio session. 67 * @param sessionType Indicates the session type.
|
D | BluetoothAudioTypes.idl | 22 * The Host can use the interface provided by the module to create an audio session, 60 * @brief Defines the type of audio session.
|
/drivers/peripheral/usb/test/unittest/mock/include/ |
D | mock_linux_adapter.h | 23 int32_t FuncAdapterInit(const UsbSession *session); 24 void FuncAdapterExit(const UsbSession *session); 25 UsbDeviceHandle *FuncAdapterOpenDevice(UsbSession *session, uint8_t busNum, uint8_t usbAddr);
|
/drivers/peripheral/usb/interfaces/ddk/host/ |
D | usb_ddk_interface.h | 299 int32_t UsbInitHostSdk(struct UsbSession **session); 312 int32_t UsbExitHostSdk(const struct UsbSession *session); 328 struct UsbInterface *UsbClaimInterfaceUnforce(const struct UsbSession *session, uint8_t busNum, 345 struct UsbInterface *UsbClaimInterface(const struct UsbSession *session, uint8_t busNum, 367 int32_t UsbAddOrRemoveInterface(const struct UsbSession *session, uint8_t busNum, uint8_t usbAddr, 494 int32_t UsbGetDeviceMemMapFd(const struct UsbSession *session, uint8_t busNum, uint8_t usbAddr);
|
D | usb_raw_api.h | 215 int32_t UsbRawInit(struct UsbSession **session); 228 int32_t UsbRawExit(const struct UsbSession *session); 241 UsbRawHandle *UsbRawOpenDevice(const struct UsbSession *session, uint8_t busNum, uint8_t usbAddr);
|
/drivers/peripheral/usb/ddk/host/include/ |
D | usb_interface_pool.h | 60 struct UsbSession *session; member 67 struct UsbSession *session; member 119 int32_t UsbIfCreatInterfacePool(const struct UsbSession *session, uint8_t busNum, uint8_t devAddr,
|
D | usb_ddk_device.h | 33 struct UsbSession *session; member 55 struct UsbSession *session; member
|
D | liteos_adapter.h | 93 int32_t (*init)(const struct UsbSession *session); 94 void (*exit)(const struct UsbSession *session); 95 …struct UsbDeviceHandle *(*openDevice)(struct UsbSession *session, uint8_t busNum, uint8_t usbAddr);
|
D | usb_raw_api_library.h | 83 struct UsbSession *RawGetSession(const struct UsbSession *session); 84 int32_t RawInit(struct UsbSession **session); 85 int32_t RawExit(const struct UsbSession *session); 86 struct UsbDeviceHandle *RawOpenDevice(const struct UsbSession *session, uint8_t busNum, uint8_t usb…
|
D | linux_adapter.h | 114 int32_t (*init)(const struct UsbSession *session); 115 void (*exit)(const struct UsbSession *session); 116 …struct UsbDeviceHandle *(*openDevice)(struct UsbSession *session, uint8_t busNum, uint8_t usbAddr);
|
/drivers/peripheral/usb/ddk/host/src/ |
D | usb_interface_pool.c | 127 interfacePool->session = NULL; in IfInterfacePoolInit() 182 struct UsbSession *session = NULL; in IfDestroyInterfacePool() local 185 if (interfacePool == NULL || interfacePool->session == NULL) { in IfDestroyInterfacePool() 190 session = interfacePool->session; in IfDestroyInterfacePool() 191 if (DListIsEmpty(&session->ifacePoolList)) { in IfDestroyInterfacePool() 197 …interfacePoolPos, interfacePoolTemp, &session->ifacePoolList, struct UsbInterfacePool, object.entr… in IfDestroyInterfacePool() 332 const struct UsbSession *session, struct UsbPoolQueryPara queryPara, bool refCountFlag) in IfFindInterfacePool() argument 339 if (session == NULL) { in IfFindInterfacePool() 344 OsalMutexLock((struct OsalMutex *)&session->lock); in IfFindInterfacePool() 345 ifacePoolList = (struct DListHead *)&session->ifacePoolList; in IfFindInterfacePool() [all …]
|
D | usb_raw_api.c | 21 int32_t UsbRawInit(struct UsbSession **session) in UsbRawInit() argument 23 return RawInit(session); in UsbRawInit() 26 int32_t UsbRawExit(const struct UsbSession *session) in UsbRawExit() argument 28 return RawExit(session); in UsbRawExit() 31 UsbRawHandle *UsbRawOpenDevice(const struct UsbSession *session, uint8_t busNum, uint8_t usbAddr) in UsbRawOpenDevice() argument 33 return (UsbRawHandle *)RawOpenDevice(session, busNum, usbAddr); in UsbRawOpenDevice()
|
D | linux_adapter.c | 69 static struct UsbDeviceHandle *OsGetDeviceHandle(struct UsbSession *session, uint8_t busNum, uint8_… in OsGetDeviceHandle() argument 74 if (session == NULL) { in OsGetDeviceHandle() 79 OsalMutexLock(&session->lock); in OsGetDeviceHandle() 80 …dev = (struct UsbDevice *)HdfSListSearch(&session->usbDevs, (busNum << BUS_OFFSET) | usbAddr, OsDe… in OsGetDeviceHandle() 85 OsalMutexUnlock(&session->lock); in OsGetDeviceHandle() 105 static struct UsbDevice *OsAllocDevice(struct UsbSession *session, struct UsbDeviceHandle *handle) in OsAllocDevice() argument 113 dev->session = session; in OsAllocDevice() 895 static int32_t AdapterInit(const struct UsbSession *session) in AdapterInit() argument 897 (void)session; in AdapterInit() 901 static void AdapterExit(const struct UsbSession *session) in AdapterExit() argument [all …]
|
D | liteos_adapter.c | 212 static struct UsbDeviceHandle *OsGetDeviceHandle(struct UsbSession *session, uint8_t busNum, uint8_… in OsGetDeviceHandle() argument 217 if (session == NULL) { in OsGetDeviceHandle() 222 OsalMutexLock(&session->lock); in OsGetDeviceHandle() 223 …dev = (struct UsbDevice *)HdfSListSearch(&session->usbDevs, (busNum << BUS_OFFSET) | usbAddr, OsDe… in OsGetDeviceHandle() 228 OsalMutexUnlock(&session->lock); in OsGetDeviceHandle() 248 static struct UsbDevice *OsAllocDevice(struct UsbSession *session, struct UsbDeviceHandle *handle) in OsAllocDevice() argument 256 dev->session = session; in OsAllocDevice() 1098 static int32_t AdapterInit(const struct UsbSession *session) in AdapterInit() argument 1100 (void)session; in AdapterInit() 1104 static void AdapterExit(const struct UsbSession *session) in AdapterExit() argument [all …]
|
D | usb_protocol.c | 255 if ((devHandle == NULL) || (devHandle->dev == NULL) || (devHandle->dev->session == NULL)) { in UsbProtocalParseDescriptor() 260 ret = UsbIfCreatInterfacePool(devHandle->dev->session, busNum, devAddr, &interfacePool); in UsbProtocalParseDescriptor() 265 interfacePool->session = devHandle->dev->session; in UsbProtocalParseDescriptor()
|
/drivers/peripheral/usb/test/unittest/host_sdk/ |
D | usb_host_sdk_if_test.cpp | 208 g_acm->session = g_session; 221 ret = UsbExitHostSdk(g_acm->session); 267 g_acm->session = g_session; 268 ret = UsbExitHostSdk(g_acm->session); 337 g_acm->session = g_session; 352 …g_acm->dataIface = UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->interfa… 382 …g_acm->intIface = UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->interfac… 412 …g_acm->ctrIface = UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->interfac… 456 …g_acm->dataIface = UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->interfa… 472 …g_acm->dataIface = UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->interfa… [all …]
|
D | usb_host_sdk_if_test_io.cpp | 324 struct UsbSession *session = nullptr; in AcmInit() local 326 ret = UsbInitHostSdk(&session); in AcmInit() 328 g_acm->session = session; in AcmInit() 333 …g_acm->dataIface = UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->interf… in AcmInit() 337 …g_acm->intIface = UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->interfa… in AcmInit() 341 …g_acm->ctrIface = UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->interfa… in AcmInit()
|
/drivers/hdf_core/framework/test/unittest/model/usb/host/src/ |
D | usb_test.c | 162 g_acm->session = g_session; in CheckHostSdkIfInit001() 168 int32_t ret = UsbExitHostSdk(g_acm->session); in CheckHostSdkIfExit001() 173 g_acm->session = NULL; in CheckHostSdkIfExit001() 174 g_session = g_acm->session; in CheckHostSdkIfExit001() 206 g_acm->session = g_session; in CheckHostSdkIfInit003() 207 ret = UsbExitHostSdk(g_acm->session); in CheckHostSdkIfInit003() 212 g_acm->session = NULL; in CheckHostSdkIfInit003() 213 g_session = g_acm->session; in CheckHostSdkIfInit003() 242 g_acm->session = g_session; in CheckHostSdkIfInit005() 251 …(struct UsbInterface *)UsbClaimInterface(g_acm->session, g_acm->busNum, g_acm->devAddr, g_acm->int… in CheckHostSdkIfClaimInterface001() [all …]
|
D | usb_raw_io.c | 518 g_acm->session = g_session; in CheckRawSdkIfInit001() 527 ret = UsbRawExit(g_acm->session); in CheckRawSdkIfExit001() 533 g_acm->session = g_session; in CheckRawSdkIfExit001() 570 g_acm->session = g_session; in CheckRawSdkIfInit003() 571 ret = UsbRawExit(g_acm->session); in CheckRawSdkIfInit003() 577 g_acm->session = g_session; in CheckRawSdkIfInit003() 608 g_acm->session = g_session; in CheckRawSdkIfInit005() 629 g_devHandle = UsbRawOpenDevice(g_acm->session, busNum, devAddr); in CheckRawSdkIfOpenDevice002() 643 g_devHandle = UsbRawOpenDevice(g_acm->session, busNum, devAddr); in CheckRawSdkIfOpenDevice003() 657 g_devHandle = UsbRawOpenDevice(g_acm->session, busNum, devAddr); in CheckRawSdkIfOpenDevice004() [all …]
|
/drivers/peripheral/usb/sample/host/liteos_test/src/ |
D | usbhost_sdkraw_speed.c | 598 static int32_t UsbSpeedDdkInit(const struct UsbSession *session) in UsbSpeedDdkInit() argument 603 ret = UsbRawInit((struct UsbSession **)&session); in UsbSpeedDdkInit() 609 devHandle = UsbRawOpenDevice(session, g_acm->busNum, g_acm->devAddr); in UsbSpeedDdkInit() 650 static void UsbSpeedDdkExit(const struct UsbSession *session) in UsbSpeedDdkExit() argument 666 UsbRawExit(session); in UsbSpeedDdkExit() 674 struct UsbSession *session = NULL; in UsbSerialSpeed() local 701 ret = UsbSpeedDdkInit(session); in UsbSerialSpeed() 721 UsbSpeedDdkExit(session); in UsbSerialSpeed()
|
/drivers/peripheral/audio/hal/hdi_binder/server/include/ |
D | hdf_audio_server.h | 115 struct AudioSessionExtInfo session; /* session specific info */ member
|