Home
last modified time | relevance | path

Searched refs:interface (Results 1 – 25 of 145) sorted by relevance

123456

/base/usb/usb_manager/interfaces/innerkits/native/include/
Dusb_interface.h46 explicit UsbInterface(const Json::Value &interface) in UsbInterface() argument
48 id_ = interface["id"].asInt(); in UsbInterface()
49 protocol_ = interface["protocol"].asInt(); in UsbInterface()
50 klass_ = interface["clazz"].asInt(); in UsbInterface()
51 subClass_ = interface["subClass"].asInt(); in UsbInterface()
52 alternateSetting_ = interface["alternateSetting"].asInt(); in UsbInterface()
53 name_ = interface["name"].asString(); in UsbInterface()
55 Json::Value endpoints = interface["endpoints"]; in UsbInterface()
181 Json::Value interface; in ToJson() local
182 interface["id"] = id_; in ToJson()
[all …]
Dusb_device_pipe.h29 int32_t ClaimInterface(const UsbInterface &interface, bool force);
30 int32_t ReleaseInterface(const UsbInterface &interface);
34 int32_t SetInterface(const UsbInterface &interface);
Dusb_config.h67 bool GetInterface(uint32_t index, UsbInterface &interface) const in GetInterface() argument
72 interface = interfaces_[index]; in GetInterface()
138 const UsbInterface &interface = interfaces_[i]; in ToString() local
139 str += interface.ToString(); in ToString()
/base/useriam/face_auth/test/unittest/
Dface_auth_driver_hdi_unit_test.cpp81 sptr<MockIFaceAuthInterface> interface(new (std::nothrow) MockIFaceAuthInterface());
82 ASSERT_TRUE(interface != nullptr);
83 EXPECT_CALL(*interface, GetExecutorListV1_1(_)).Times(Exactly(1));
87 EXPECT_CALL(*adapter, Get()).Times(Exactly(1)).WillOnce(Return(interface));
97 sptr<MockIFaceAuthInterface> interface(new (std::nothrow) MockIFaceAuthInterface());
98 ASSERT_TRUE(interface != nullptr);
99 …EXPECT_CALL(*interface, GetExecutorListV1_1(_)).Times(Exactly(1)).WillOnce([](std::vector<sptr<IEx… in __anon3e0ce4140102()
105 EXPECT_CALL(*adapter, Get()).Times(Exactly(1)).WillOnce(Return(interface));
115 sptr<MockIFaceAuthInterface> interface(new (std::nothrow) MockIFaceAuthInterface());
116 ASSERT_TRUE(interface != nullptr);
[all …]
/base/useriam/fingerprint_auth/test/unittest/
Dfingerprint_auth_driver_hdi_unit_test.cpp81 … sptr<MockIFingerprintAuthInterface> interface(new (std::nothrow) MockIFingerprintAuthInterface());
82 ASSERT_TRUE(interface != nullptr);
83 EXPECT_CALL(*interface, GetExecutorListV1_1(_)).Times(Exactly(1));
87 EXPECT_CALL(*adapter, Get()).Times(Exactly(1)).WillOnce(Return(interface));
97 … sptr<MockIFingerprintAuthInterface> interface(new (std::nothrow) MockIFingerprintAuthInterface());
98 ASSERT_TRUE(interface != nullptr);
99 …EXPECT_CALL(*interface, GetExecutorListV1_1(_)).Times(Exactly(1)).WillOnce([](std::vector<sptr<IEx… in __anonb26f53060102()
105 EXPECT_CALL(*adapter, Get()).Times(Exactly(1)).WillOnce(Return(interface));
115 … sptr<MockIFingerprintAuthInterface> interface(new (std::nothrow) MockIFingerprintAuthInterface());
116 ASSERT_TRUE(interface != nullptr);
[all …]
/base/useriam/pin_auth/test/unittest/src/
Dpin_auth_driver_hdi_unit_test.cpp81 sptr<MockIPinAuthInterface> interface(new (std::nothrow) MockIPinAuthInterface());
82 ASSERT_TRUE(interface != nullptr);
83 EXPECT_CALL(*interface, GetExecutorListV1_1(_)).Times(Exactly(1));
87 EXPECT_CALL(*adapter, Get()).Times(Exactly(1)).WillOnce(Return(interface));
97 sptr<MockIPinAuthInterface> interface(new (std::nothrow) MockIPinAuthInterface());
98 ASSERT_TRUE(interface != nullptr);
99 …EXPECT_CALL(*interface, GetExecutorListV1_1(_)).Times(Exactly(1)).WillOnce([](std::vector<sptr<IEx… in __anoncd017c7b0102()
105 EXPECT_CALL(*adapter, Get()).Times(Exactly(1)).WillOnce(Return(interface));
115 sptr<MockIPinAuthInterface> interface(new (std::nothrow) MockIPinAuthInterface());
116 ASSERT_TRUE(interface != nullptr);
[all …]
/base/usb/usb_manager/services/native/src/
Dusb_descriptor_parser.cpp103 UsbInterface interface; in ParseConfigDescriptor() local
105 … buffer + cursor + interfaceCursor, length - cursor - interfaceCursor, interfaceCursor, interface); in ParseConfigDescriptor()
109 if (iter->GetId() == interface.GetId()) { in ParseConfigDescriptor()
115 if (interface.GetEndpointCount() >= 0 && !isRepeat) { in ParseConfigDescriptor()
116 interfaces.push_back(interface); in ParseConfigDescriptor()
119 if (interface.GetEndpointCount() > 0 && iter != interfaces.end()) { in ParseConfigDescriptor()
121 *iter = interface; in ParseConfigDescriptor()
132 const uint8_t *buffer, uint32_t length, uint32_t &cursor, UsbInterface &interface) in ParseInterfaceDescriptor() argument
164 interface.SetId(interfaceDescriptor.bInterfaceNumber); in ParseInterfaceDescriptor()
165 interface.SetProtocol(interfaceDescriptor.bInterfaceProtocol); in ParseInterfaceDescriptor()
[all …]
/base/usb/usb_manager/interfaces/innerkits/native/src/
Dusb_device_pipe.cpp43 int32_t USBDevicePipe::ClaimInterface(const UsbInterface &interface, bool force) in ClaimInterface() argument
45 return UsbSrvClient::GetInstance().ClaimInterface(*this, interface, force); in ClaimInterface()
48 int32_t USBDevicePipe::ReleaseInterface(const UsbInterface &interface) in ReleaseInterface() argument
50 return UsbSrvClient::GetInstance().ReleaseInterface(*this, interface); in ReleaseInterface()
68 int32_t USBDevicePipe::SetInterface(const UsbInterface &interface) in SetInterface() argument
70 return UsbSrvClient::GetInstance().SetInterface(*this, interface); in SetInterface()
/base/usb/usb_manager/test/native/mock/src/
Dusb_device_pipe_mock_test.cpp703 UsbInterface interface = device_.GetConfigs().front().GetInterfaces().front(); variable
704 uint8_t interfaceId = interface.GetId();
719 UsbInterface interface = device_.GetConfigs().front().GetInterfaces().front(); variable
720 uint8_t interfaceId = interface.GetId();
735 UsbInterface interface = device_.GetConfigs().front().GetInterfaces().at(1); variable
736 uint8_t interfaceId = interface.GetId();
751 UsbInterface interface = device_.GetConfigs().front().GetInterfaces().at(1); variable
752 uint8_t interfaceId = interface.GetId();
767 UsbInterface interface = device_.GetConfigs().front().GetInterfaces().front(); variable
768 uint8_t interfaceId = interface.GetId();
[all …]
/base/usb/usb_manager/test/native/service_unittest/src/
Dusb_bulkcallback_test.cpp133 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1); variable
134 USBEndpoint point = interface.GetEndpoints().front();
137 ret = UsbSrvClient.ClaimInterface(pipe, interface, true);
181 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1); variable
182 USBEndpoint point = interface.GetEndpoints().at(1);
185 ret = UsbSrvClient.ClaimInterface(pipe, interface, true);
229 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1); variable
230 USBEndpoint point = interface.GetEndpoints().at(1);
233 ret = UsbSrvClient.ClaimInterface(pipe, interface, true);
279 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1); variable
[all …]
Dusb_request_test.cpp97 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1); variable
98 USBEndpoint point = interface.GetEndpoints().front();
99 ret = UsbSrvClient.ClaimInterface(pip, interface, true);
141 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1); variable
142 USBEndpoint point = interface.GetEndpoints().at(1);
143 ret = UsbSrvClient.ClaimInterface(pip, interface, true);
186 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1); variable
187 USBEndpoint point = interface.GetEndpoints().at(0);
188 ret = UsbSrvClient.ClaimInterface(pip, interface, true);
229 UsbInterface interface = device.GetConfigs().front().GetInterfaces().at(1); variable
[all …]
Dusb_device_pipe_test.cpp382 UsbInterface interface = device.GetConfigs().front().GetInterfaces().front(); variable
421 UsbInterface interface = device.GetConfigs().front().GetInterfaces().front(); variable
462 UsbInterface interface = device.GetConfigs().front().GetInterfaces().front(); variable
979 UsbInterface interface = devi.front().GetConfigs().front().GetInterfaces().front(); variable
980 ret = UsbSrvClient.ClaimInterface(pipe, interface, true);
1014 UsbInterface interface = devi.front().GetConfigs().front().GetInterfaces().front(); variable
1015 ret = UsbSrvClient.ClaimInterface(pipe, interface, false);
1049 UsbInterface interface = devi.front().GetConfigs().front().GetInterfaces().at(1); variable
1050 ret = UsbSrvClient.ClaimInterface(pipe, interface, true);
1084 UsbInterface interface = devi.front().GetConfigs().front().GetInterfaces().at(1); variable
[all …]
/base/theme/screenlock_mgr/
DREADME.md17 │ ├── js/napi # the js interface resolves to the napi interface
18 │ └── native # interface provided for app
21 ├── test # unit test of interface
26interface documentation [js-apis-screen-lock.md](https://gitee.com/openharmony/docs/blob/master/en…
/base/usb/usb_manager/test/fuzztest/common/src/
Dusb_common_fuzz.cpp42 UsbInterface interface = devList.front().GetConfigs().front().GetInterfaces().at(1); in UsbMgrPrepareFuzzEnv() local
43 ret = usbSrvClient.ClaimInterface(pipe, interface, true); in UsbMgrPrepareFuzzEnv()
50 return {true, pipe, interface}; in UsbMgrPrepareFuzzEnv()
/base/update/update_app/common/src/main/ets/manager/
DUpgradeInterface.ets25 export interface IUpgradeControl {
42 export interface ChangelogInfo {
84 export interface CountDownDialogInfo {
101 export interface VersionPageInfo {
133 export interface IPage {
160 export interface INotify {
/base/usb/usb_manager/
DREADME_zh.md18 3. USB HAL层:提供给用户态可直接调用的驱动能力接口,按照功能分类三大类:DDK初始化类、对interface对象操作类、对request对象操作类,可以提供DDK初始化、interface
45 | int32_t ClaimInterface(USBDevicePipe &pip, const UsbInterface &interface, bool force); | 打开接口,并申明…
46 | int32_t ReleaseInterface(USBDevicePipe &pip, const UsbInterface &interface); | 关闭接口,释放接口的占用,在停止数据…
47 | int32_t SetInterface(USBDevicePipe &pipe, const UsbInterface &interface); | 设置指定接口的备选设置,用于在具有相同ID…
100 usb.claimInterface(pipe , interface, true); // interface为device中需要操作的interface,选取合适的interface进行对应操作
129 usb.releaseInterface(pipe, interface);
DREADME.md20interface operation class, and request operation class by function. They can be used to perform DD…
51 …DevicePipe &pip, const UsbInterface &interface, bool force); | Claim…
52 …DevicePipe &pip, const UsbInterface &interface); | Release…
53 …nst UsbInterface &interface); | Sets the alternate sett…
116 // Claim the USB interface.
117 usb.claimInterface(pipe, interface, true); // Among the input arguments, interface refers to the on…
147 5. Release the USB interface, and close the USB device.
150 usb.releaseInterface(pipe, interface);
/base/usb/usb_manager/services/zidl/src/
Dusb_srv_stub.cpp355 uint8_t interface = 0; in DoClaimInterface() local
359 READ_PARCEL_WITH_RET(data, Uint8, interface, UEC_SERVICE_READ_PARCEL_ERROR); in DoClaimInterface()
362 … reply, Int32, ClaimInterface(busNum, devAddr, interface, force), UEC_SERVICE_WRITE_PARCEL_ERROR); in DoClaimInterface()
370 uint8_t interface = 0; in DoReleaseInterface() local
373 READ_PARCEL_WITH_RET(data, Uint8, interface, UEC_SERVICE_READ_PARCEL_ERROR); in DoReleaseInterface()
374 …WRITE_PARCEL_WITH_RET(reply, Int32, ReleaseInterface(busNum, devAddr, interface), UEC_SERVICE_WRIT… in DoReleaseInterface()
382 uint8_t interface = 0; in DoBulkTransferRead() local
387 READ_PARCEL_WITH_RET(data, Uint8, interface, UEC_SERVICE_WRITE_PARCEL_ERROR); in DoBulkTransferRead()
392 const UsbPipe tmpPipe = {interface, endpoint}; in DoBulkTransferRead()
410 uint8_t interface = 0; in DoBulkTransferWrite() local
[all …]
/base/sensors/miscdevice/services/miscdevice_service/
DBUILD.gn22 "hdi_connection/interface/src/light_hdi_connection.cpp",
23 "hdi_connection/interface/src/vibrator_hdi_connection.cpp",
38 "$SUBSYSTEM_DIR/services/miscdevice_service/hdi_connection/interface/include",
40 "$SUBSYSTEM_DIR/utils/haptic_decoder/interface",
98 "hdi_connection/interface/src/light_hdi_connection.cpp",
99 "hdi_connection/interface/src/vibrator_hdi_connection.cpp",
114 "$SUBSYSTEM_DIR/services/miscdevice_service/hdi_connection/interface/include",
116 "$SUBSYSTEM_DIR/utils/haptic_decoder/interface",
/base/usb/usb_manager/test/fuzztest/usbmgrregbulkcallback_fuzzer/
Dusbmgrregbulkcallback_fuzzer.cpp27 auto[res, pipe, interface] = UsbMgrPrepareFuzzEnv(); in UsbMgrRegBulkCallbackFuzzTest()
29 (void)interface; in UsbMgrRegBulkCallbackFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrbulkread_fuzzer/
Dusbmgrbulkread_fuzzer.cpp27 auto[res, pipe, interface] = UsbMgrPrepareFuzzEnv(); in UsbMgrBulkReadFuzzTest()
36 …const_cast<USBDevicePipe &>(pipe), const_cast<UsbInterface &>(interface).GetEndpoints().at(1), cb); in UsbMgrBulkReadFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrbulkwrite_fuzzer/
Dusbmgrbulkwrite_fuzzer.cpp27 auto[res, pipe, interface] = UsbMgrPrepareFuzzEnv(); in UsbMgrBulkWriteFuzzTest()
36 …const_cast<USBDevicePipe &>(pipe), const_cast<UsbInterface &>(interface).GetEndpoints().at(1), cb); in UsbMgrBulkWriteFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrunregbulkcallback_fuzzer/
Dusbmgrunregbulkcallback_fuzzer.cpp28 auto[res, pipe, interface] = UsbMgrPrepareFuzzEnv(); in UsbMgrUnRegBulkCallbackFuzzTest()
37 …const_cast<USBDevicePipe &>(pipe), const_cast<UsbInterface &>(interface).GetEndpoints().at(1), cb); in UsbMgrUnRegBulkCallbackFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrrequestfree_fuzzer/
Dusbmgrrequestfree_fuzzer.cpp42 UsbInterface interface = devList.front().GetConfigs().front().GetInterfaces().front(); in UsbMgrRequestFreeFuzzTest() local
43 ret = usbSrvClient.ClaimInterface(pipe, interface, true); in UsbMgrRequestFreeFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrsetinterface_fuzzer/
Dusbmgrsetinterface_fuzzer.cpp42 UsbInterface interface = devList.front().GetConfigs().front().GetInterfaces().front(); in UsbMgrSetInterfaceFuzzTest() local
43 ret = usbSrvClient.ClaimInterface(pipe, interface, true); in UsbMgrSetInterfaceFuzzTest()

123456