Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 737) sorted by relevance

12345678910>>...30

/drivers/peripheral/power/interfaces/hdi_service/src/
Drunning_lock_impl.cpp48 if (!IsValidType(filledInfo.type, state)) { in Hold()
49 …"Runninglock hold failed, type=%{public}d or state=%{public}d is invalid", filledInfo.type, state); in Hold()
52 auto iterator = lockCounters_.find(filledInfo.type); in Hold()
54 auto pair = lockCounters_.emplace(filledInfo.type, in Hold()
55 … std::make_shared<RunningLockCounter>(filledInfo.type, GetRunningLockTag(filledInfo.type))); in Hold()
57 … HDF_LOGW("Runninglock hold failed, type=%{public}d is not in lockCounters", filledInfo.type); in Hold()
84 if (!IsValidType(filledInfo.type)) { in Unhold()
85 HDF_LOGW("Runninglock unhold failed, type=%{public}d is invalid", filledInfo.type); in Unhold()
88 auto iterator = lockCounters_.find(filledInfo.type); in Unhold()
90 HDF_LOGW("type=%{public}d is not in lockCounters, no need to unhold", filledInfo.type); in Unhold()
[all …]
Drunning_lock_timer_handler.cpp41 RunningLockType runninglockType = info.type; in RegisterRunningLockTimer()
63 RunningLockType runninglockType = info.type; in UnregisterRunningLockTimer()
74 uint32_t RunningLockTimerHandler::GetRunningLockTimerId(RunningLockType type, std::string name) in GetRunningLockTimerId() argument
77 auto typeIter = runninglockTimerMap_.find(type); in GetRunningLockTimerId()
87 void RunningLockTimerHandler::AddRunningLockTimerMap(RunningLockType type, std::string name, uint32… in AddRunningLockTimerMap() argument
89 auto typeIter = runninglockTimerMap_.find(type); in AddRunningLockTimerMap()
93 runninglockTimerMap_.emplace(type, timerIdMap); in AddRunningLockTimerMap()
104 void RunningLockTimerHandler::RemoveRunningLockTimerMap(RunningLockType type, std::string name) in RemoveRunningLockTimerMap() argument
106 auto typeIter = runninglockTimerMap_.find(type); in RemoveRunningLockTimerMap()
112 runninglockTimerMap_.erase(type); in RemoveRunningLockTimerMap()
/drivers/peripheral/power/test/unittest/src/
Dhdf_power_runninglock_test.cpp57 runinglockInfo.type = RunningLockType::RUNNINGLOCK_BACKGROUND_TASK;
74 runinglockInfo.type = static_cast<RunningLockType>(DEFAULT_RUNNINGLOCK_INVALID_TYPE);
90 runinglockInfo.type = RunningLockType::RUNNINGLOCK_BACKGROUND_TASK;
106 runinglockInfo.type = static_cast<RunningLockType>(DEFAULT_RUNNINGLOCK_INVALID_TYPE);
129 runinglockInfo.type = setLockType;
131 uint32_t originCount = RunningLockImpl::GetCount(runinglockInfo.type);
133 …alse, MockWakeLockName::FindWakeLockName(RunningLockImpl::GetRunningLockTag(runinglockInfo.type)));
135 EXPECT_EQ(originCount + 1, RunningLockImpl::GetCount(runinglockInfo.type));
136 …true, MockWakeLockName::FindWakeLockName(RunningLockImpl::GetRunningLockTag(runinglockInfo.type)));
143 EXPECT_EQ(originCount + 2, RunningLockImpl::GetCount(runinglockInfo.type));
[all …]
/drivers/peripheral/camera/vdi_base/common/buffer_manager/src/
Dbuffer_allocator_factory.cpp25 std::shared_ptr<IBufferAllocator> BufferAllocatorFactory::GetBufferAllocator(const int32_t type) in GetBufferAllocator() argument
29 if (bufferAllocatorMap_.find(type) == bufferAllocatorMap_.end()) { in GetBufferAllocator()
30 return CreateBufferAllocator(type); in GetBufferAllocator()
33 if (bufferAllocatorMap_[type].expired()) { in GetBufferAllocator()
34 return CreateBufferAllocator(type); in GetBufferAllocator()
37 return bufferAllocatorMap_[type].lock(); in GetBufferAllocator()
40 std::shared_ptr<IBufferAllocator> BufferAllocatorFactory::CreateBufferAllocator(const int32_t type) in CreateBufferAllocator() argument
42 if (allocatorRegisterMap_.find(type) == allocatorRegisterMap_.end()) { in CreateBufferAllocator()
46 std::shared_ptr<IBufferAllocator> allocator(allocatorRegisterMap_[type]()); in CreateBufferAllocator()
47 bufferAllocatorMap_[type] = allocator; in CreateBufferAllocator()
/drivers/peripheral/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/include/
Dcamera_dev.h37 RetCode PowerUp(const std::string &cameraId, int type);
39 RetCode PowerDown(const std::string &cameraId, int type);
41 …RetCode CameraGetNumberConfig(const std::string &cameraId, int type, std::vector<CameraCtrl> &cont…
43 …RetCode CameraSetNumberConfig(const std::string &cameraId, int type, std::vector<CameraCtrl> &cont…
45 RetCode GetFmtDescs(const std::string &cameraId, int type, std::vector<CameraCtrl> &fmtDesc);
47 …RetCode ConfigSys(const std::string &cameraId, int type, CameraFmtCmd command, CameraCtrl &format);
49 RetCode GetDeviceAbility(const std::string &cameraId, int type);
51 RetCode EnumDevices(const std::string &cameraId, int type, struct DeviceaInfo &device);
53 RetCode GetControls(const std::string &cameraId, int type, CameraCtrl &ctrl);
55 RetCode UpdateSetting(const std::string &cameraId, int type, CameraCtrl &ctrl);
[all …]
/drivers/hdf_core/framework/tools/hc-gen/src/
Dtoken.cpp21 std::string OHOS::Hardware::TokenType2String(int32_t type) in TokenType2String() argument
36 if (type < '~') { in TokenType2String()
37 str.push_back(static_cast<char>(type)); in TokenType2String()
39 } else if (tokenTypeMap.find(type) != tokenTypeMap.end()) { in TokenType2String()
40 str = tokenTypeMap[type]; in TokenType2String()
48 …stream << "Token: type: " << std::setw(WIDTH_EIGHT) << ::std::left << TokenType2String(token.type); in operator <<()
50 token.type != NUMBER ? stream << std::setw(WIDTH_TWENTY) << token.strval in operator <<()
57 Token::Token() : type(0), strval(), numval(0), src(), lineNo(0) {} in Token()
61 return otherType == type; in operator ==()
66 return otherType != type; in operator !=()
[all …]
/drivers/hdf_core/adapter/khdf/linux/osal/src/
Dosal_mem.c32 uint32_t type; member
46 static void *osal_mem_alloc(size_t size, uint32_t *type) in osal_mem_alloc() argument
57 *type = TYPE_VMALLOC; in osal_mem_alloc()
60 *type = TYPE_KMALLOC; in osal_mem_alloc()
72 uint32_t type; in OsalMemAlloc() local
79 base = osal_mem_alloc(size, &type); in OsalMemAlloc()
86 block->hdr.type = type; in OsalMemAlloc()
118 uint32_t type; in OsalMemAllocAlign() local
128 base = osal_mem_alloc(size + alignment, &type); in OsalMemAllocAlign()
138 block->hdr.type = type; in OsalMemAllocAlign()
[all …]
/drivers/hdf_core/framework/tools/hdi-gen/codegen/
Dc_custom_types_code_emitter.cpp139 AutoPtr<ASTType> type = ast_->GetTypeDefintion(i); in EmitCustomTypeDecls() local
140 EmitCustomTypeDecl(sb, type); in EmitCustomTypeDecls()
147 void CCustomTypesCodeEmitter::EmitCustomTypeDecl(StringBuilder &sb, const AutoPtr<ASTType> &type) c… in EmitCustomTypeDecl()
149 switch (type->GetTypeKind()) { in EmitCustomTypeDecl()
151 AutoPtr<ASTEnumType> enumType = dynamic_cast<ASTEnumType *>(type.Get()); in EmitCustomTypeDecl()
156 AutoPtr<ASTStructType> structType = dynamic_cast<ASTStructType *>(type.Get()); in EmitCustomTypeDecl()
161 AutoPtr<ASTUnionType> unionType = dynamic_cast<ASTUnionType *>(type.Get()); in EmitCustomTypeDecl()
173 AutoPtr<ASTType> type = ast_->GetTypeDefintion(i); in EmitCustomTypeFuncDecl() local
174 if (type->GetTypeKind() == TypeKind::TYPE_STRUCT) { in EmitCustomTypeFuncDecl()
175 AutoPtr<ASTStructType> structType = dynamic_cast<ASTStructType *>(type.Get()); in EmitCustomTypeFuncDecl()
[all …]
Dc_custom_types_code_emitter.h41 void EmitCustomTypeDecl(StringBuilder &sb, const AutoPtr<ASTType> &type) const;
45 void EmitCustomTypeMarshallingDecl(StringBuilder &sb, const AutoPtr<ASTStructType> &type) const;
47 … void EmitCustomTypeUnmarshallingDecl(StringBuilder &sb, const AutoPtr<ASTStructType> &type) const;
49 void EmitCustomTypeFreeDecl(StringBuilder &sb, const AutoPtr<ASTStructType> &type) const;
59 void EmitCustomTypeMarshallingImpl(StringBuilder &sb, const AutoPtr<ASTStructType> &type);
61 void EmitCustomTypeUnmarshallingImpl(StringBuilder &sb, const AutoPtr<ASTStructType> &type);
63 void EmitMarshallingVarDecl(const AutoPtr<ASTStructType> &type,
66 void EmitUnmarshallingVarDecl(const AutoPtr<ASTStructType> &type,
71 void EmitPodTypeUnmarshalling(const AutoPtr<ASTStructType> &type,
74 …void EmitMemberUnmarshalling(const AutoPtr<ASTType> &type, const std::string &name, const std::str…
[all …]
Dcpp_custom_types_code_emitter.cpp151 AutoPtr<ASTType> type = ast_->GetTypeDefintion(i); in EmitCustomTypeDecls() local
152 EmitCustomTypeDecl(sb, type); in EmitCustomTypeDecls()
159 void CppCustomTypesCodeEmitter::EmitCustomTypeDecl(StringBuilder &sb, const AutoPtr<ASTType> &type)… in EmitCustomTypeDecl()
161 switch (type->GetTypeKind()) { in EmitCustomTypeDecl()
163 AutoPtr<ASTEnumType> enumType = dynamic_cast<ASTEnumType *>(type.Get()); in EmitCustomTypeDecl()
168 AutoPtr<ASTStructType> structType = dynamic_cast<ASTStructType *>(type.Get()); in EmitCustomTypeDecl()
173 AutoPtr<ASTUnionType> unionType = dynamic_cast<ASTUnionType *>(type.Get()); in EmitCustomTypeDecl()
185 AutoPtr<ASTType> type = ast_->GetTypeDefintion(i); in EmitCustomTypeFuncDecl() local
186 if (type->GetTypeKind() == TypeKind::TYPE_STRUCT) { in EmitCustomTypeFuncDecl()
187 AutoPtr<ASTStructType> structType = dynamic_cast<ASTStructType *>(type.Get()); in EmitCustomTypeFuncDecl()
[all …]
/drivers/hdf_core/interfaces/inner_api/utils/
Dhdf_dlist.h172 #define CONTAINER_OF(ptr, type, member) \ argument
173 (type *)((char *)(ptr) - (char *)&((type *)0)->member)
184 #define DLIST_FIRST_ENTRY(ptr, type, member) \ argument
185 CONTAINER_OF((ptr)->next, type, member)
196 #define DLIST_LAST_ENTRY(ptr, type, member) \ argument
197 CONTAINER_OF((ptr)->prev, type, member)
209 #define DLIST_FOR_EACH_ENTRY(pos, head, type, member) \ argument
210 for ((pos) = CONTAINER_OF((head)->next, type, member); \
212 (pos) = CONTAINER_OF((pos)->member.next, type, member))
215 #define DLIST_FOR_EACH_ENTRY_REVERSE(pos, head, type, member) \ argument
[all …]
/drivers/hdf_core/framework/utils/src/hcs_parser/
Dhcs_blob_if.c118 bool HcsSwapToUint8(uint8_t *value, const char *realValue, uint32_t type) in HcsSwapToUint8() argument
120 if (type == CONFIG_BYTE) { in HcsSwapToUint8()
124 HDF_LOGE("%{public}s failed, type: %{public}u", __func__, type); in HcsSwapToUint8()
128 bool HcsSwapToUint16(uint16_t *value, const char *realValue, uint32_t type) in HcsSwapToUint16() argument
131 if (type == CONFIG_WORD) { in HcsSwapToUint16()
135 if (HcsSwapToUint8(&data, realValue, type)) { in HcsSwapToUint16()
139 HDF_LOGE("%{public}s failed, type: %{public}u", __func__, type); in HcsSwapToUint16()
143 bool HcsSwapToUint32(uint32_t *value, const char *realValue, uint32_t type) in HcsSwapToUint32() argument
146 if (type == CONFIG_DWORD) { in HcsSwapToUint32()
150 if (HcsSwapToUint16(&data, realValue, type)) { in HcsSwapToUint32()
[all …]
Ddevice_resource_if.c37 …ic bool DeviceResourceIfaceConstruct(struct DeviceResourceIface *instance, DeviceResourceType type) in DeviceResourceIfaceConstruct() argument
39 if (type == HDF_CONFIG_SOURCE) { in DeviceResourceIfaceConstruct()
42 …DF_LOGE("%s: Currently, this configuration type is not supported, the type is %d", __func__, type); in DeviceResourceIfaceConstruct()
48 struct DeviceResourceIface *DeviceResourceGetIfaceInstance(DeviceResourceType type) in DeviceResourceGetIfaceInstance() argument
53 if (!DeviceResourceIfaceConstruct(&singletonInstance, type)) { in DeviceResourceGetIfaceInstance()
/drivers/hdf_core/framework/tools/hdi-gen/ast/
Dast.cpp145 void AST::AddType(const AutoPtr<ASTType> &type) in AddType() argument
147 if (type == nullptr) { in AddType()
151 types_[type->ToString()] = type; in AddType()
160 for (const auto &type : types_) { in FindType() local
161 if (type.second->GetName() == typeName) { in FindType()
162 return type.second; in FindType()
175 AutoPtr<ASTType> type = nullptr; in FindType() local
177 type = importPair.second->FindType(typeName, false); in FindType()
178 if (type != nullptr) { in FindType()
182 return type; in FindType()
[all …]
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/message/
Dmock.js61 send(type, data) { argument
66 type: type, property
74 NapiLog.logInfo(msg.type);
76 if (msg.type == 'inited') {
78 } else if (msg.type == 'getfiledata') {
/drivers/peripheral/camera/vdi_base/common/buffer_manager/include/
Dbuffer_allocator_factory.h27 #define REGISTER_BUFFER_ALLOCATOR(C, type, ...) \ argument
28 static BufferAllocatorFactory::BufferAllocatorRegister<C> g_reg##C(type, ##__VA_ARGS__)
33 std::shared_ptr<IBufferAllocator> GetBufferAllocator(const int32_t type);
37 template<typename ...Args> BufferAllocatorRegister(int32_t type, Args... args) in BufferAllocatorRegister() argument
41 …factory->allocatorRegisterMap_.emplace(type, [&args...] { return new C(std::forward<Args>(args)...… in BufferAllocatorRegister()
47 std::shared_ptr<IBufferAllocator> CreateBufferAllocator(const int32_t type);
/drivers/external_device_manager/services/native/driver_extension_manager/src/bus_extension/usb/
Dusb_driver_info.cpp65 if (jsonObj["pids"].type() != Json::arrayValue || jsonObj["vids"].type() != Json::arrayValue) { in UnSerialize()
67 jsonObj["pids"].type(), jsonObj["vids"].type()); in UnSerialize()
74 if (vid.type() != Json::intValue) { in UnSerialize()
75 EDM_LOGE(MODULE_BUS_USB, "json vids type error, %{public}d", vid.type()); in UnSerialize()
81 if (pid.type() != Json::intValue) { in UnSerialize()
82 EDM_LOGE(MODULE_BUS_USB, "json pid type error, %{public}d", pid.type()); in UnSerialize()
/drivers/interface/battery/v1_2/
DTypes.idl34 …* Such data types include the health status, charging status, charging device type, and battery in…
85 * @brief Enumerates the charging device type.
91 /** Unknown type */
117 /** Charging device type */
142 * @brief Defines the battery charging limit type.
148 /** Limit type: charging current */
150 /** Limit type: charging voltage */
161 enum ChargingLimitType type;
167 * @brief Indicates the type of the charger plugged-in.
173 /** Unknown type */
[all …]
/drivers/peripheral/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/src/
Dcamera_dev.cpp140 RetCode CameraDev::PowerUp(const std::string &cameraId, int type) in PowerUp() argument
159 ret = SetDeviceInfo(&feature, cameraId, type, deviceName, true); in PowerUp()
170 RetCode CameraDev::PowerDown(const std::string &cameraId, int type) in PowerDown() argument
189 ret = SetDeviceInfo(&feature, cameraId, type, deviceName, true); in PowerDown()
200 RetCode CameraDev::ReqBuffers(const std::string &cameraId, int type, unsigned int buffCont) in ReqBuffers() argument
211 ret = SetDeviceInfo(&feature, cameraId, type, deviceName, true); in ReqBuffers()
234 RetCode CameraDev::CreatBuffer(const std::string &cameraId, int type, const std::shared_ptr<FrameSp… in CreatBuffer() argument
251 ret = SetDeviceInfo(&feature, cameraId, type, deviceName, true); in CreatBuffer()
268 RetCode CameraDev::QueueBuffer(const std::string &cameraId, int type, const std::shared_ptr<FrameSp… in QueueBuffer() argument
284 ret = SetDeviceInfo(&feature, cameraId, type, deviceName, true); in QueueBuffer()
[all …]
/drivers/hdf_core/framework/utils/src/
Dhdf_sbuf.c22 HDF_LOGE(#api " is not supported on %u sbuf", (sbuf)->type); \
34 HDF_LOGE(#api " is not supported on %u sbuf", (sbuf)->type); \
41 uint32_t type; member
66 static const struct HdfSbufConstructor *HdfSbufConstructorGet(uint32_t type) in HdfSbufConstructorGet() argument
68 if (type >= SBUF_TYPE_MAX) { in HdfSbufConstructorGet()
72 return &g_sbufConstructorMap[type]; in HdfSbufConstructorGet()
307 struct HdfSBuf *HdfSbufTypedObtainCapacity(uint32_t type, size_t capacity) in HdfSbufTypedObtainCapacity() argument
311 const struct HdfSbufConstructor *constructor = HdfSbufConstructorGet(type); in HdfSbufTypedObtainCapacity()
313 HDF_LOGE("sbuf constructor %u not implement", type); in HdfSbufTypedObtainCapacity()
317 HDF_LOGE("sbuf constructor %u obtain method not implement", type); in HdfSbufTypedObtainCapacity()
[all …]
/drivers/hdf_core/framework/model/audio/usb/src/
Daudio_usb_validate_desc.c48 uint8_t type; member
245 for (; usbDesc != NULL && usbDesc->type != 0; usbDesc++) { in ValidateDesc()
246 if (usbDesc->type == hdr[AUDIO_USB_INDEX_2] && in ValidateDesc()
317 if (usbDesc->type == UAC2_PROCESSING_UNIT_V2) { in UacProcessGetLength()
408 if (usbDesc->type == UAC3_EXTENSION_UNIT) { in ValidateProcessingUnitSub()
450 if (usbDesc->type == UAC1_EXTENSION_UNIT || usbDesc->type == UAC2_EXTENSION_UNIT_V2) { in ValidateProcessingUnit()
515 …{.protocol = UAC_VERSION_1, .type = UAC_HEADER, .func = ValidateUac1Header …
516 …{.protocol = UAC_VERSION_1, .type = UAC_INPUT_TERMINAL, .size = sizeof(struct uac_input_terminal…
517 …{.protocol = UAC_VERSION_1, .type = UAC_OUTPUT_TERMINAL, .size = sizeof(struct uac1_output_termin…
518 …{.protocol = UAC_VERSION_1, .type = UAC_MIXER_UNIT, .func = ValidateMixerUnit …
[all …]
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/engine/
DRightMenu.js46 type: 0,
58 type: 1,
67 type: 2,
92 if (e.type != 2) {
112 if (e.type == 2) {
131 if (e.type == 0) {
146 } else if (e.type == 1) {
207 if (e.type == 1 && msg == 1) {
210 if (e.type == 2) {
212 if (e.type == 0) {
[all …]
/drivers/hdf_core/framework/model/camera/utils/include/
Dcamera_utils.h25 int32_t CheckCameraDevice(const char *deviceName, int type);
33 int32_t GetDeviceNum(const char *driverName, int camId, int type);
36 int32_t CheckFrameRate(int camId, const char *driverName, int type, struct CameraCtrlConfig *ctrlCo…
37 int32_t CameraGetDeviceInfo(int type, struct HdfSBuf *reqData,
39 int32_t CameraGetStreamDevInfo(int type, struct HdfSBuf *reqData, struct CameraDevice **camDev);
40 int32_t CameraGetNames(int type, struct HdfSBuf *reqData, const char **deviceName, const char **dri…
42 int type, int32_t camId, const char *driverName, struct DeviceOps **devOps);
/drivers/peripheral/camera/vdi_base/common/adapter/platform/mpp/src/pipeline_core/nodes/venc_node/
Dvenc_node.cpp16 VencNode::VencNode(const std::string& name, const std::string& type) in VencNode() argument
17 : NodeBase(name, type), MpiNode(name, type), SinkNode(name, type) in VencNode()
/drivers/peripheral/location/agnss/hdi_service/
Dagnss_interface_impl.cpp68 static void GetSetidCb(uint16_t type) in GetSetidCb() argument
74 callback->RequestSubscriberSetId(static_cast<SubscriberSetIdType>(type)); in GetSetidCb()
78 static void GetRefLocationidCb(uint32_t type) in GetRefLocationidCb() argument
162 uint16_t type = static_cast<uint16_t>(server.type); in SetAgnssServer() local
163 …bool ret = agnssInterface->set_agnss_server(type, server.server.c_str(), server.server.length(), s… in SetAgnssServer()
182 loc.type = refInfo.type; in SetAgnssRefInfo()
183 switch (refInfo.cellId.type) { in SetAgnssRefInfo()
185 loc.u.cellId.type = static_cast<uint16_t>(CellIdClass::GSM_CELLID); in SetAgnssRefInfo()
188 loc.u.cellId.type = static_cast<uint16_t>(CellIdClass::UMTS_CELLID); in SetAgnssRefInfo()
191 loc.u.cellId.type = static_cast<uint16_t>(CellIdClass::LTE_CELLID); in SetAgnssRefInfo()
[all …]

12345678910>>...30