/drivers/peripheral/power/test/unittest/src/ |
D | hdf_power_runninglock_test.cpp | 57 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/ |
D | buffer_allocator_factory.cpp | 25 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/power/interfaces/hdi_service/src/ |
D | running_lock_impl.cpp | 52 if (!IsValidType(filledInfo.type, state)) { in Hold() 53 …"Runninglock hold failed, type=%{public}d or state=%{public}d is invalid", filledInfo.type, state); in Hold() 56 auto iterator = lockCounters_.find(filledInfo.type); in Hold() 58 auto pair = lockCounters_.emplace(filledInfo.type, in Hold() 59 … std::make_shared<RunningLockCounter>(filledInfo.type, GetRunningLockTag(filledInfo.type))); in Hold() 61 … HDF_LOGW("Runninglock hold failed, type=%{public}d is not in lockCounters", filledInfo.type); in Hold() 91 if (!IsValidType(filledInfo.type)) { in Unhold() 92 HDF_LOGW("Runninglock unhold failed, type=%{public}d is invalid", filledInfo.type); in Unhold() 95 auto iterator = lockCounters_.find(filledInfo.type); in Unhold() 97 HDF_LOGW("type=%{public}d is not in lockCounters, no need to unhold", filledInfo.type); in Unhold() [all …]
|
D | running_lock_timer_handler.cpp | 41 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/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/include/ |
D | camera_dev.h | 37 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/ |
D | token.cpp | 21 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/ |
D | osal_mem.c | 32 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/ |
D | c_custom_types_code_emitter.cpp | 139 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 …]
|
D | c_custom_types_code_emitter.h | 41 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 …]
|
D | cpp_custom_types_code_emitter.cpp | 151 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/ |
D | hdf_dlist.h | 172 #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/tools/hdi-gen/ast/ |
D | ast.cpp | 145 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 ((typeName.find('.') == std::string::npos && type.second->GetName() == typeName) || in FindType() 162 type.first == typeName) { in FindType() 163 return type.second; in FindType() 176 AutoPtr<ASTType> type = nullptr; in FindType() local 178 type = importPair.second->FindType(typeName, false); in FindType() 179 if (type != nullptr) { in FindType() [all …]
|
/drivers/hdf_core/framework/utils/src/hcs_parser/ |
D | hcs_blob_if.c | 118 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 …]
|
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/message/ |
D | mock.js | 61 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/ |
D | buffer_allocator_factory.h | 27 #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/interface/battery/v1_2/ |
D | Types.idl | 34 …* 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/interface/battery/v2_0/ |
D | Types.idl | 34 …* 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 */ 144 * @brief Defines the battery charging limit type. 150 /** Limit type: charging current */ 152 /** Limit type: charging voltage */ 163 enum ChargingLimitType type; 169 * @brief Indicates the type of the charger plugged-in. 175 /** Unknown type */ [all …]
|
/drivers/peripheral/thermal/interfaces/hdi_service/src/ |
D | thermal_zone_manager.cpp | 63 std::string type; in InitThermalZoneSysfs() local 64 if (!ThermalHdfUtils::ReadNode(path, type)) { in InitThermalZoneSysfs() 67 tznMap_[type] = idx; in InitThermalZoneSysfs() 76 data.type = tzIter.replace; in UpdateDataType() 78 data.type = tzIter.type; in UpdateDataType() 97 auto typeIter = tznMap_.find(tzIter.type); in UpdateThermalZoneInfo() 106 data.type = tnIter.type; in UpdateThermalZoneInfo() 188 info.type = iter.type; in CollectCallbackInfo() 190 … THERMAL_HILOGD(COMP_HDI, "type: %{public}s temp: %{public}d", iter.type.c_str(), info.temp); in CollectCallbackInfo() 242 info.type = iter.type; in GetCallbackInfo() [all …]
|
/drivers/peripheral/camera/vdi_base/common/adapter/platform/hdf_driver/src/driver_adapter/src/ |
D | camera_dev.cpp | 140 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/peripheral/location/agnss/hdi_service/ |
D | agnss_interface_impl.cpp | 70 static void GetSetidCb(uint16_t type) in GetSetidCb() argument 77 callback->RequestSubscriberSetId(static_cast<SubscriberSetIdType>(type)); in GetSetidCb() 82 static void GetRefLocationidCb(uint32_t type) in GetRefLocationidCb() argument 84 HDF_LOGI("%{public}s, type=%{public}d", __func__, type); in GetRefLocationidCb() 86 g_refInfoType = type; in GetRefLocationidCb() 90 callback->RequestAgnssRefInfo(static_cast<AGnssRefInfoType>(type)); in GetRefLocationidCb() 167 uint16_t type = static_cast<uint16_t>(server.type); in SetAgnssServer() local 168 …bool ret = agnssInterface->set_agnss_server(type, server.server.c_str(), server.server.length(), s… in SetAgnssServer() 186 HDF_LOGI("%{public}s, g_refInfoType=%{public}d", __func__, refInfo.type); in SetAgnssRefInfo() 188 loc.type = g_refInfoType; in SetAgnssRefInfo() [all …]
|
/drivers/hdf_core/framework/utils/src/ |
D | hdf_sbuf.c | 22 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/interface/camera/sequenceable/map_data/ |
D | map_data_sequenceable.cpp | 58 auto type = static_cast<MapDataType>(parcel.ReadInt32()); in Unmarshalling() local 59 switch (type) { in Unmarshalling() 61 ret = sequenceData->Set(key, type, parcel.ReadInt32()); in Unmarshalling() 65 ret = sequenceData->Set(key, type, parcel.ReadInt64()); in Unmarshalling() 69 ret = sequenceData->Set(key, type, parcel.ReadDouble()); in Unmarshalling() 73 ret = sequenceData->Set(key, type, parcel.ReadString()); in Unmarshalling() 95 dataParcel.WriteInt32(static_cast<int32_t>(data.type)); in Marshalling() 96 switch (data.type) { in Marshalling() 173 int32_t MapDataSequenceable::Get(const std::string &key, MapDataType type, T &value) const in Get() argument 180 if (it->second.type != type) { in Get() [all …]
|
/drivers/hdf_core/framework/model/audio/usb/src/ |
D | audio_usb_validate_desc.c | 48 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/model/camera/utils/include/ |
D | camera_utils.h | 25 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/ |
D | venc_node.cpp | 16 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()
|