Home
last modified time | relevance | path

Searched refs:descriptor (Results 1 – 25 of 53) sorted by relevance

123

/drivers/peripheral/intelligent_voice/hdi_service/trigger/
Dintell_voice_trigger_manager_impl.cpp88 …t IntellVoiceTriggerManagerImpl::LoadAdapter(const IntellVoiceTriggerAdapterDsecriptor &descriptor, in LoadAdapter() argument
98 auto it = halAdapters_.find(descriptor.adapterName); in LoadAdapter()
100 INTELLIGENT_VOICE_LOGW("adapter %{public}s already exist", descriptor.adapterName.c_str()); in LoadAdapter()
101 inst_->UnloadAdapter(descriptor); in LoadAdapter()
107 int32_t ret = inst_->LoadAdapter(descriptor, triggerAdapterDevice); in LoadAdapter()
120 halAdapters_[descriptor.adapterName] = adapter; in LoadAdapter()
124 …IntellVoiceTriggerManagerImpl::UnloadAdapter(const IntellVoiceTriggerAdapterDsecriptor &descriptor) in UnloadAdapter() argument
132 auto adapter = halAdapters_.find(descriptor.adapterName); in UnloadAdapter()
134 INTELLIGENT_VOICE_LOGE("there is no %{public}s adapter", descriptor.adapterName.c_str()); in UnloadAdapter()
138 int32_t ret = inst_->UnloadAdapter(descriptor); in UnloadAdapter()
Dintell_voice_trigger_manager_impl.h44 int32_t LoadAdapter(const IntellVoiceTriggerAdapterDsecriptor &descriptor,
47 int32_t UnloadAdapter(const IntellVoiceTriggerAdapterDsecriptor &descriptor) override;
/drivers/peripheral/intelligent_voice/hdi_service/engine/
Dintell_voice_engine_manager_impl.cpp89 const IntellVoiceEngineAdapterDescriptor &descriptor, sptr<IIntellVoiceEngineAdapter> &adapter) in CreateAdapter() argument
99 inst_->CreateAdapter(descriptor, engine); in CreateAdapter()
111 adapters_.insert(std::make_pair(descriptor.adapterType, adapter)); in CreateAdapter()
115 … IntellVoiceEngineManagerImpl::ReleaseAdapter(const IntellVoiceEngineAdapterDescriptor &descriptor) in ReleaseAdapter() argument
124 auto it = adapters_.find(descriptor.adapterType); in ReleaseAdapter()
126 INTELLIGENT_VOICE_LOGW("can not find adapter, %{public}d", descriptor.adapterType); in ReleaseAdapter()
130 inst_->ReleaseAdapter(descriptor); in ReleaseAdapter()
Dintell_voice_engine_manager_impl.h48 int32_t CreateAdapter(const IntellVoiceEngineAdapterDescriptor& descriptor,
50 int32_t ReleaseAdapter(const IntellVoiceEngineAdapterDescriptor& descriptor) override;
/drivers/interface/display/composer/hdifd_parcelable/
Dhdifd_parcelable.cpp81 sptr<IPCFileDescriptor> descriptor = new (std::nothrow) IPCFileDescriptor(dupFd); in WriteFileDescriptor() local
82 if (descriptor == nullptr) { in WriteFileDescriptor()
86 return parcel.WriteObject<IPCFileDescriptor>(descriptor); in WriteFileDescriptor()
91 sptr<IPCFileDescriptor> descriptor = parcel.ReadObject<IPCFileDescriptor>(); in ReadFileDescriptor() local
92 if (descriptor == nullptr) { in ReadFileDescriptor()
95 int fd = descriptor->GetFd(); in ReadFileDescriptor()
/drivers/peripheral/usb/ddk/device/src/
Dusbfn_sdk_if.c76 …hangeFunction(struct UsbFnFunction * const function, struct UsbFnDescriptorData * const descriptor) in DoChangeFunction() argument
82 if ((descriptor->functionMask & funcInfo[i].numberMask) != 0) { in DoChangeFunction()
93 …FnChangeFunction(struct UsbFnDeviceDesc * const des, struct UsbFnDescriptorData * const descriptor) in UsbFnChangeFunction() argument
97 if (des == NULL || descriptor == NULL) { in UsbFnChangeFunction()
103 DoChangeFunction(des->configs[i]->functions[j], descriptor); in UsbFnChangeFunction()
108 … struct UsbFnDevice *UsbFnCreateDevice(const char *udcName, struct UsbFnDescriptorData *descriptor) in UsbFnCreateDevice() argument
114 if (udcName == NULL || descriptor == NULL) { in UsbFnCreateDevice()
122 …GD("%{public}s: type=%{public}d, fMask=%{public}d", __func__, descriptor->type, descriptor->functi… in UsbFnCreateDevice()
123 if (descriptor->type == USBFN_DESC_DATA_TYPE_PROP) { in UsbFnCreateDevice()
124 property = descriptor->property; in UsbFnCreateDevice()
[all …]
Dadapter_if_liteos.c107 …t32_t fd, struct FconfigString * const gadgetName, const struct UsbFnDeviceDesc * const descriptor) in UsbFnAdapterWriteDevDesc() argument
111 if (gadgetName == NULL || descriptor == NULL) { in UsbFnAdapterWriteDevDesc()
118 …int32_t ret = memcpy_s(&devDesc.devDesc, sizeof(devDesc.devDesc), descriptor->deviceDesc, sizeof(d… in UsbFnAdapterWriteDevDesc()
183 int32_t fd, struct FconfigString * const gadgetName, const struct UsbFnDeviceDesc *descriptor) in UsbFnAdapterWriteDevStrings() argument
185 if (gadgetName == NULL || descriptor == NULL) { in UsbFnAdapterWriteDevStrings()
193 for (uint32_t iCount = 0; descriptor->deviceStrings[iCount]; iCount++) { in UsbFnAdapterWriteDevStrings()
194 … int32_t ret = UsbFnAdapterWriteDevString(fd, &devStrings, descriptor->deviceStrings[iCount]); in UsbFnAdapterWriteDevStrings()
522 …t32_t fd, struct FconfigString * const gadgetName, const struct UsbFnDeviceDesc * const descriptor) in UsbFnAdapterWriteConfigs() argument
527 if (gadgetName == NULL || descriptor == NULL || descriptor->configs == NULL) { in UsbFnAdapterWriteConfigs()
531 for (uint32_t iCount = 0; descriptor->configs[iCount]; iCount++) { in UsbFnAdapterWriteConfigs()
[all …]
Dadapter_if.c968 …FnAdapterCreateDevice(const char *udcName, const char *devName, struct UsbFnDeviceDesc *descriptor) in UsbFnAdapterCreateDevice() argument
981 ret = WriteDeviceDescriptor(devName, descriptor->deviceDesc, descriptor->deviceStrings); in UsbFnAdapterCreateDevice()
987 for (i = 0; descriptor->configs[i] != NULL; i++) { in UsbFnAdapterCreateDevice()
988 confVal = descriptor->configs[i]->configurationValue; in UsbFnAdapterCreateDevice()
989 ret = WriteConfPowerAttributes(devName, descriptor->configs[i], confVal); in UsbFnAdapterCreateDevice()
995 for (j = 0; descriptor->deviceStrings[j] != NULL; j++) { in UsbFnAdapterCreateDevice()
996 ret = UsbFnWriteConfString(devName, confVal, descriptor->deviceStrings[j]->language, in UsbFnAdapterCreateDevice()
997 descriptor->deviceStrings[j]->strings[descriptor->configs[i]->iConfiguration].s); in UsbFnAdapterCreateDevice()
1004 for (j = 0; descriptor->configs[i]->functions[j] != NULL; j++) { in UsbFnAdapterCreateDevice()
1005 if (!CreateFun(descriptor->configs[i]->functions[j], devName, &confVal, &ret)) { in UsbFnAdapterCreateDevice()
/drivers/external_device_manager/test/unittest/bus_extension_usb_test/src/
Dusb_impl_mock.cpp45 int32_t UsbImplMock::GetRawDescriptor(const UsbDev &dev, std::vector<uint8_t> &descriptor) in GetRawDescriptor() argument
58 descriptor = g_descBufErr; in GetRawDescriptor()
62 descriptor = g_descBuf; in GetRawDescriptor()
67 int32_t UsbImplMock::GetDeviceDescriptor(const UsbDev& dev, std::vector<uint8_t>& descriptor) in GetDeviceDescriptor() argument
69 return GetRawDescriptor(dev, descriptor); in GetDeviceDescriptor()
/drivers/peripheral/intelligent_voice/passthrough/engine/
Dintell_voice_engine_manager.cpp30 …int32_t CreateAdapter(const IntellVoiceEngineAdapterDescriptor &descriptor, std::unique_ptr<IEngin… in CreateAdapter() argument
33 engine = EngineFactory::CreateEngine(descriptor.adapterType); in CreateAdapter()
40 int32_t ReleaseAdapter(const IntellVoiceEngineAdapterDescriptor &descriptor) in ReleaseAdapter() argument
/drivers/peripheral/intelligent_voice/passthrough/trigger/
Dintell_voice_trigger_manager.cpp30 int32_t LoadAdapter(const IntellVoiceTriggerAdapterDsecriptor &descriptor, in LoadAdapter() argument
37 int32_t UnloadAdapter(const IntellVoiceTriggerAdapterDsecriptor &descriptor) override in UnloadAdapter() argument
/drivers/interface/usb/ddk/v1_0/
DIUsbDdk.idl61 * @brief Obtains the USB device descriptor.
63 * @param deviceId ID of the device whose descriptor is to be obtained.
64 * @param desc Standard device descriptor defined in the USB protocol.
72 * @brief Obtains the configuration descriptor.
74 * @param deviceId ID of the device whose configuration descriptor is to be obtained.
76 …* @param configDesc Configuration descriptor, which includes the standard configuration descriptor
77 * USB protocol and the associated interface descriptor and endpoint descriptor.
173 * @brief Gets the file descriptor for memory mapping.
176 * @param fd The file descriptor obtained for memory mapping.
DUsbDdkTypes.idl58 …* @brief Standard device descriptor, corresponding to <b>Standard Device Descriptor</b> in the USB…
61 /** Size of the descriptor, in bytes. */
81 /** Index of the string descriptor that describes the vendor. */
83 /** Index of the string descriptor that describes the product. */
85 /** Index of the string descriptor that describes the device SN. */
/drivers/peripheral/usb/interfaces/ddk/device/
Dusbfn_device.h147 struct UsbFnDeviceDesc *descriptor; member
169 …struct UsbFnDevice *UsbFnCreateDevice(const char *udcName, struct UsbFnDescriptorData *descriptor);
/drivers/hdf_core/adapter/uhdf2/ipc/src/
Dhdf_remote_service.c56 bool HdfRemoteServiceSetInterfaceDesc(struct HdfRemoteService *service, const char *descriptor) in HdfRemoteServiceSetInterfaceDesc() argument
58 return HdfRemoteAdapterSetInterfaceDesc(service, descriptor); in HdfRemoteServiceSetInterfaceDesc()
/drivers/hdf_core/adapter/uhdf2/ipc/include/
Diproxy_broker.h54 const std::u16string descriptor = INTERFACE::GetDescriptor(); in hdi_facecast() local
56 sptr<IRemoteBroker> broker = registration.NewInstance(descriptor, object); in hdi_facecast()
/drivers/interface/intelligent_voice/trigger/v1_0/
DIIntellVoiceTriggerManager.idl22 …LoadAdapter([in] struct IntellVoiceTriggerAdapterDsecriptor descriptor, [out] IIntellVoiceTriggerA…
23 UnloadAdapter([in] struct IntellVoiceTriggerAdapterDsecriptor descriptor);
/drivers/interface/intelligent_voice/engine/v1_0/
DIIntellVoiceEngineManager.idl23 …CreateAdapter([in] struct IntellVoiceEngineAdapterDescriptor descriptor, [out] IIntellVoiceEngineA…
24 ReleaseAdapter([in] struct IntellVoiceEngineAdapterDescriptor descriptor);
/drivers/peripheral/intelligent_voice/interfaces/
Di_trigger.h61 virtual int32_t LoadAdapter(const IntellVoiceTriggerAdapterDsecriptor &descriptor,
63 virtual int32_t UnloadAdapter(const IntellVoiceTriggerAdapterDsecriptor &descriptor) = 0;
Di_engine.h61 virtual int32_t CreateAdapter(const IntellVoiceEngineAdapterDescriptor &descriptor,
63 virtual int32_t ReleaseAdapter(const IntellVoiceEngineAdapterDescriptor &descriptor) = 0;
/drivers/interface/usb/v1_0/
DIUsbInterface.idl77 * @brief Obtains the USB device descriptor.
80 * @param descriptor Indicates the USB device descriptor.
85 GetDeviceDescriptor([in] struct UsbDev dev, [out] unsigned char[] descriptor);
88 * @brief Obtains the string descriptor of a USB device based on the specified string ID.
91 * @param descId Indicates string descriptor ID.
92 * @param descriptor Indicates the configuration descriptor of the USB device.
97 …ingDescriptor([in] struct UsbDev dev, [in] unsigned char descId, [out] unsigned char[] descriptor);
100 * @brief Obtains the configuration descriptor of a USB device based on the specified config ID.
103 * @param descId Indicates configuration descriptor ID.
104 * @param descriptor Indicates the configuration descriptor of the USB device.
[all …]
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/
Dbluetooth_a2dp_audio_src_observer_stub.cpp43 std::u16string descriptor = BluetoothA2dpAudioSrcObserverStub::GetDescriptor(); in OnRemoteRequest() local
45 if (descriptor != remoteDescriptor) { in OnRemoteRequest()
/drivers/hdf_core/interfaces/inner_api/ipc/
Dhdf_remote_service.h138 bool HdfRemoteServiceSetInterfaceDesc(struct HdfRemoteService *service, const char *descriptor);
/drivers/hdf_core/framework/support/platform/src/hdmi/
Dhdmi_hdr.c50 …if (memset_s(&(hdrAttr->descriptor), sizeof(hdrAttr->descriptor), 0, sizeof(hdrAttr->descriptor)) … in HdmiHdrZeroDrmInfoFrameTimerSet()
/drivers/hdf_core/framework/model/audio/usb/src/
Daudio_usb_linux.c117 …AudioUsbGetUsbId(le16_to_cpu(usbDev->descriptor.idVendor), le16_to_cpu(usbDev->descriptor.idProduc… in AudioUsbDriverInit()

123