Home
last modified time | relevance | path

Searched refs:session (Results 1 – 25 of 61) sorted by relevance

123

/drivers/peripheral/user_auth/test/unittest/idm_test/
Didm_session_test.cpp64 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 …]
Duser_idm_funcs_test.cpp98 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 …]
Denroll_specification_check_test.cpp90 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/
Dmock_linux_adapter.cpp63 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/
DIBluetoothAudioSession.idl22 * 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.
DBluetoothAudioTypes.idl22 * 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/
Dmock_linux_adapter.h23 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/
Dusb_ddk_interface.h299 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);
Dusb_raw_api.h215 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/
Dusb_interface_pool.h60 struct UsbSession *session; member
67 struct UsbSession *session; member
119 int32_t UsbIfCreatInterfacePool(const struct UsbSession *session, uint8_t busNum, uint8_t devAddr,
Dusb_ddk_device.h33 struct UsbSession *session; member
55 struct UsbSession *session; member
Dliteos_adapter.h93 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);
Dusb_raw_api_library.h83 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…
Dlinux_adapter.h114 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/
Dusb_interface_pool.c127 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 …]
Dusb_raw_api.c21 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()
Dlinux_adapter.c69 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 …]
Dliteos_adapter.c212 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 …]
Dusb_protocol.c255 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/
Dusb_host_sdk_if_test.cpp208 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 …]
Dusb_host_sdk_if_test_io.cpp324 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/
Dusb_test.c162 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 …]
Dusb_raw_io.c518 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/
Dusbhost_sdkraw_speed.c598 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/
Dhdf_audio_server.h115 struct AudioSessionExtInfo session; /* session specific info */ member

123