Home
last modified time | relevance | path

Searched refs:ERROR (Results 1 – 25 of 255) sorted by relevance

1234567891011

/base/sensors/miscdevice/utils/haptic_decoder/oh_json/src/
Ddefault_vibrator_decoder.cpp78 CHKPR(metadataItem, ERROR); in CheckMetadata()
80 CHKPR(versionItem, ERROR); in CheckMetadata()
84 return ERROR; in CheckMetadata()
87 CHKPR(channelNumberItem, ERROR); in CheckMetadata()
91 return ERROR; in CheckMetadata()
99 CHKPR(channelsItem, ERROR); in ParseChannel()
102 return ERROR; in ParseChannel()
107 return ERROR; in ParseChannel()
111 CHKPR(channelItem, ERROR); in ParseChannel()
113 CHKPR(channelParametersItem, ERROR); in ParseChannel()
[all …]
/base/sensors/miscdevice/utils/haptic_decoder/he_json/src/
Dhe_vibrator_decoder.cpp56 CHKPR(patternJSON, ERROR); in DecodeEffect()
60 CHKCR((ret == SUCCESS), ERROR, "parse pattern fail!"); in DecodeEffect()
66 CHKPR(patternListJSON, ERROR); in DecodeEffect()
68 CHKCR((ret == SUCCESS), ERROR, "parse pattern list fail!"); in DecodeEffect()
73 return ERROR; in DecodeEffect()
82 CHKPR(metadataJSON, ERROR); in ParseVersion()
84 CHKPR(versionJSON, ERROR); in ParseVersion()
92 return ERROR; in ParsePatternList()
97 return ERROR; in ParsePatternList()
102 CHKPR(patternListItemJSON, ERROR); in ParsePatternList()
[all …]
/base/update/updater/interfaces/kits/misc_info/
Dmisc_info.cpp28 LOG(ERROR) << "realPath is NULL" << " : " << strerror(errno); in WriteUpdaterMessage()
34 LOG(ERROR) << "WriteUpdaterMessage fopen failed" << " : " << strerror(errno); in WriteUpdaterMessage()
40 LOG(ERROR) << "WriteUpdaterMessage fwrite failed" << " : " << strerror(errno); in WriteUpdaterMessage()
47 LOG(ERROR) << "WriteUpdaterMessage fclose failed" << " : " << strerror(errno); in WriteUpdaterMessage()
57 LOG(ERROR) << "realPath is NULL" << " : " << strerror(errno); in ReadUpdaterMessage()
63 LOG(ERROR) << "ReadUpdaterMessage fopen failed" << " : " << strerror(errno); in ReadUpdaterMessage()
70 LOG(ERROR) << "ReadUpdaterMessage fwrite failed" << " : " << strerror(errno); in ReadUpdaterMessage()
77 LOG(ERROR) << "ReadUpdaterMessage fclose failed" << " : " << strerror(errno); in ReadUpdaterMessage()
81 LOG(ERROR) << "ReadUpdaterMessage memcpy failed" << " : " << strerror(errno); in ReadUpdaterMessage()
118 LOG(ERROR) << "WriteUpdaterParaMisc realPath is NULL" << ":" << strerror(errno); in WriteUpdaterParaMisc()
[all …]
/base/update/sys_installer/interfaces/innerkits/ipc_client/src/
Dmodule_update_proxy.cpp32 LOG(ERROR) << "Can not get remote"; in InstallModulePackage()
38 LOG(ERROR) << "WriteInterfaceToken error"; in InstallModulePackage()
48 LOG(ERROR) << "SendRequest error"; in InstallModulePackage()
60 LOG(ERROR) << "Can not get remote"; in UninstallModulePackage()
66 LOG(ERROR) << "WriteInterfaceToken error"; in UninstallModulePackage()
76 LOG(ERROR) << "SendRequest error"; in UninstallModulePackage()
89 LOG(ERROR) << "Can not get remote"; in GetModulePackageInfo()
95 LOG(ERROR) << "WriteInterfaceToken error"; in GetModulePackageInfo()
105 LOG(ERROR) << "SendRequest error"; in GetModulePackageInfo()
118 LOG(ERROR) << "Can not get remote"; in ReportModuleUpdateStatus()
[all …]
Dsys_installer_proxy.cpp33 LOG(ERROR) << "Can not get remote"; in SysInstallerInit()
46 LOG(ERROR) << "SendRequest error"; in SysInstallerInit()
58 LOG(ERROR) << "Can not get remote"; in StartUpdatePackageZip()
64 LOG(ERROR) << "WriteInterfaceToken error"; in StartUpdatePackageZip()
74 LOG(ERROR) << "SendRequest error"; in StartUpdatePackageZip()
84 LOG(ERROR) << "Invalid param"; in SetUpdateCallback()
91 LOG(ERROR) << "Can not get remote"; in SetUpdateCallback()
97 LOG(ERROR) << "WriteInterfaceToken fail"; in SetUpdateCallback()
103 LOG(ERROR) << "WriteRemoteObject error"; in SetUpdateCallback()
111 LOG(ERROR) << "SendRequest error"; in SetUpdateCallback()
[all …]
Dmodule_update_kits_impl.cpp67 LOG(ERROR) << "Get samgr object failed"; in GetService()
72 LOG(ERROR) << "Get module update object from samgr failed"; in GetService()
81 LOG(ERROR) << "Failed to add death recipient"; in GetService()
87 LOG(ERROR) << "module update object iface_cast failed"; in GetService()
103 LOG(ERROR) << "Get moduleUpdate failed"; in InstallModulePackage()
114 LOG(ERROR) << "Get moduleUpdate failed"; in UninstallModulePackage()
126 LOG(ERROR) << "Get moduleUpdate failed"; in GetModulePackageInfo()
137 LOG(ERROR) << "Get moduleUpdate failed"; in ReportModuleUpdateStatus()
148 LOG(ERROR) << "Get moduleUpdate failed"; in ExitModuleUpdate()
159 LOG(ERROR) << "Failed to start service"; in InitModuleUpdate()
[all …]
Dsys_installer_kits_impl.cpp69 LOG(ERROR) << "Get samgr failed"; in GetService()
74 LOG(ERROR) << "Get update object from samgr failed"; in GetService()
83 LOG(ERROR) << "Failed to add death recipient"; in GetService()
89 LOG(ERROR) << "account iface_cast failed"; in GetService()
117 LOG(ERROR) << "GetSystemAbilityManager samgr object null"; in Init()
122 LOG(ERROR) << "systemAbilityId " << SYS_INSTALLER_DISTRIBUTED_SERVICE_ID << in Init()
137 LOG(ERROR) << "Init failed"; in SysInstallerInit()
143 LOG(ERROR) << "Get updateService failed"; in SysInstallerInit()
155 LOG(ERROR) << "Get updateService failed"; in StartUpdatePackageZip()
167 LOG(ERROR) << "callback null"; in SetUpdateCallback()
[all …]
/base/update/sys_installer/services/module_update/util/src/
Dmodule_zip_helper.cpp87 LOG(ERROR) << "Cannot get entry number with invalid handle. path=" << zipPath_; in GetNumberOfEntry()
93 LOG(ERROR) << "Get global info error " << err << ". path=" << zipPath_; in GetNumberOfEntry()
103 LOG(ERROR) << "Cannot locate file with invalid handle. path=" << zipPath_; in LocateFile()
108 LOG(ERROR) << filename << " is not found in " << zipPath_; in LocateFile()
120 LOG(ERROR) << "Cannot get file size without located file. path=" << zipPath_; in GetFileSize()
126 LOG(ERROR) << "Get file size error " << err << ". " << filename_ << " in " << zipPath_; in GetFileSize()
136 LOG(ERROR) << "Cannot get file offset without located file. path=" << zipPath_; in GetFileOffset()
142 LOG(ERROR) << "Get file pos error " << err << ". " << filename_ << " in " << zipPath_; in GetFileOffset()
147 LOG(ERROR) << "Cannot get file entry offset"; in GetFileOffset()
157 LOG(ERROR) << "Invalid path " << zipPath_; in GetFileEntryOffset()
[all …]
Dmodule_file.cpp71 LOG(ERROR) << "Couldn't read filesystem magic"; in RetrieveFsType()
78 LOG(ERROR) << "Couldn't find filesystem magic"; in RetrieveFsType()
85 LOG(ERROR) << "Could not find " << IMG_FILE_NAME << " in package " << path; in ParseImageStat()
89 LOG(ERROR) << "Failed to get file offset from package " << path; in ParseImageStat()
93 LOG(ERROR) << "Failed to get file size from package " << path; in ParseImageStat()
99 LOG(ERROR) << "Invalid path " << path; in ParseImageStat()
104 LOG(ERROR) << "Failed to open package " << path << ": I/O error"; in ParseImageStat()
109 LOG(ERROR) << "Failed to get fs type " << path; in ParseImageStat()
114 LOG(ERROR) << "Failed to copy fs type " << fsTypePtr; in ParseImageStat()
126 LOG(ERROR) << "Failed to get name string"; in ParseModuleInfo()
[all …]
/base/update/updater/services/ptable_parse/
Dptable_manager.cpp54 LOG(ERROR) << "filePath is empty or lunCapacity is nullptr"; in IsUfsDevice()
59 LOG(ERROR) << "open " << filePath << " fail"; in IsUfsDevice()
88 LOG(ERROR) << "pPtable_ is nullptr"; in InitPtableManager()
92 LOG(ERROR) << "init ptable error"; in InitPtableManager()
102 LOG(ERROR) << "invalid input: ptnInfo is empty or name is null"; in GetPartitionInfoIndexByName()
127 LOG(ERROR) << "can't find the " << partitionName << " partition in device ptable!"; in IsPartitionChanged()
132 LOG(ERROR) << "can't find the " << partitionName << " partition in package ptable!"; in IsPartitionChanged()
194 LOG(ERROR) << "Write ptable to device failed! pPtable_ is nullptr"; in WritePtableToDevice()
198 LOG(ERROR) << "Write ptable to device failed! Please load ptable first!"; in WritePtableToDevice()
208 LOG(ERROR) << "print partition info:"; in PrintPtableInfo()
[all …]
Dptable.cpp50 LOG(ERROR) << "ptnInfo is empty"; in LoadPtnInfo()
68 LOG(ERROR) << "parse PtableData from json file error"; in InitPtable()
90 LOG(ERROR) << "parse json failed! " << dataVar.first << " is nullptr!"; in ParsePtableDataNode()
104 LOG(ERROR) << PTABLE_CONFIG_PATH << " not exist"; in ParsePtableData()
112 LOG(ERROR) << PTABLE_CONFIG_PATH << " contained json invalid"; in ParsePtableData()
146 LOG(ERROR) << "invaild input"; in MemReadWithOffset()
152 LOG(ERROR) << "open " << filePath << " fail"; in MemReadWithOffset()
158 LOG(ERROR) << "seekp 0x" << std::hex << offset << " bytes in " << filePath << in MemReadWithOffset()
165 LOG(ERROR) << "read 0x" << std::hex << dataSize << " bytes in " << filePath << in MemReadWithOffset()
222 LOG(ERROR) << "size < (TABLE_SIGNATURE + 1)"; in VerifyMbrMagicNum()
[all …]
Demmc_ptable.cpp41 LOG(ERROR) << "invaild argument"; in EmmcPatchGptHeader()
61 LOG(ERROR) << "no partition exist"; in EmmcPatchGptHeader()
96 LOG(ERROR) << "emmcPtnDataInfo_ is empty, write failed!"; in WritePartitionTable()
107 LOG(ERROR) << "write gpt fail"; in WritePartitionTable()
117 LOG(ERROR) << "ptbImgBuffer == NULL || imgBufSize < GPT_PARTITION_SIZE"; in ParsePartitionFromBuffer()
129 LOG(ERROR) << "GetPartitionGptHeaderInfo fail"; in ParseGptHeaderByEmmc()
159 LOG(ERROR) << "memcpy guid fail"; in EmmcReadGpt()
175 LOG(ERROR) << "input param invalid"; in UpdateCommInitializeGptPartition()
185 LOG(ERROR) << "check mbr or header fail"; in UpdateCommInitializeGptPartition()
192 LOG(ERROR) << "memcpy_s mbr fail"; in UpdateCommInitializeGptPartition()
[all …]
/base/update/updater/services/fs_manager/
Dmount.cpp95 LOG(ERROR) << "fstab is not loaded, g_fstab is null."; in UmountForPath()
101 LOG(ERROR) << "Cannot find fstab item for " << path << " to umount."; in UmountForPath()
114 LOG(ERROR) << "Umount " << item->mountPoint << "failed: " << errno; in UmountForPath()
135 LOG(ERROR) << "waitpid failed, " << child; in MountNtfsWithRetry()
138 LOG(ERROR) << "child terminated by exit " << WEXITSTATUS(status); in MountNtfsWithRetry()
140 LOG(ERROR) << "child terminated by signal " << WTERMSIG(status); in MountNtfsWithRetry()
142 LOG(ERROR) << "child stopped by signal " << WSTOPSIG(status); in MountNtfsWithRetry()
151 …LOG(ERROR) << "SD card never insert, dont try again, failed to mount " << source << " on " << targ… in MountNtfsWithRetry()
156 LOG(ERROR) << "failed to mount " << source << " on " << target << ", errno is " << errno; in MountNtfsWithRetry()
164 LOG(ERROR) << "path or mountPoint is null, mount fail"; in MountSdcard()
[all …]
/base/update/updater/services/flow_update/update_bin/
Dbin_process.cpp43 LOG(ERROR) << "Error to get bin file"; in Execute()
50 LOG(ERROR) << "Error to get pkg manager"; in Execute()
56 LOG(ERROR) << "Error to get ringbuffer"; in Execute()
66 LOG(ERROR) << "Get file info fail " << upgradeFileName; in Execute()
71 LOG(ERROR) << "Error to create output stream"; in Execute()
82 LOG(ERROR) << "Error to Execute bin file update"; in Execute()
98 LOG(ERROR) << "Error to get bin file"; in ExtractBinFile()
105 LOG(ERROR) << "Error to get pkg manager"; in ExtractBinFile()
116 LOG(ERROR) << "Error to create output stream"; in ExtractBinFile()
122 LOG(ERROR) << "Error to extract" << upgradeFileName; in ExtractBinFile()
[all …]
/base/update/updater/services/updater_binary/
Dupdate_partitions.cpp36 LOG(ERROR) << "Error get thisPartion: " << idx; in SetPartitionInfo()
41 LOG(ERROR) << "Error get start"; in SetPartitionInfo()
48 LOG(ERROR) << "Error get length"; in SetPartitionInfo()
57 LOG(ERROR) << "Error get partName"; in SetPartitionInfo()
64 LOG(ERROR) << "Error get fsType"; in SetPartitionInfo()
79 LOG(ERROR) << "Error get root"; in ParsePartitionInfo()
84 LOG(ERROR) << "Error get Partitions"; in ParsePartitionInfo()
90 LOG(ERROR) << "Error partitions number: " << number; in ParsePartitionInfo()
99 LOG(ERROR) << "Allocate memory for partition failed: " << errno; in ParsePartitionInfo()
136 LOG(ERROR) << "Error to create: " << tmpPath; in SetNewPartition()
[all …]
Dupdate_processor.cpp116 LOG(ERROR) << "Data writer is null"; in RawImageWriteProcessor()
127 LOG(ERROR) << "Write " << size << " byte(s) failed"; in RawImageWriteProcessor()
146 LOG(ERROR) << "Error to get file info"; in WriteRawImage()
153 … LOG(ERROR) << "partition size: " << partitionSize << " is short than image size: " << totalSize_; in WriteRawImage()
163 LOG(ERROR) << "Error to create output stream"; in WriteRawImage()
170 LOG(ERROR) << "Error to extract file"; in WriteRawImage()
184 LOG(ERROR) << "Error to get partitionName"; in Execute()
199 LOG(ERROR) << "Error to get pkg manager"; in Execute()
208 LOG(ERROR) << "Get partition:%s WritePathAndOffset fail \'" << in Execute()
217 LOG(ERROR) << "Error to create writer"; in Execute()
[all …]
/base/security/access_token/services/privacymanager/src/sensitive/camera_manager/
Dcamera_manager_privacy_proxy.cpp24 static constexpr int32_t ERROR = -1; variable
35 return ERROR; in SetMuteCallback()
40 return ERROR; in SetMuteCallback()
44 return ERROR; in SetMuteCallback()
61 return ERROR; in MuteCamera()
65 return ERROR; in MuteCamera()
70 return ERROR; in MuteCamera()
84 return ERROR; in IsCameraMuted()
88 return ERROR; in IsCameraMuted()
93 return ERROR; in IsCameraMuted()
/base/update/updater/services/applypatch/
Dpartition_record.cpp37 LOG(ERROR) << "realPath is NULL" << " : " << strerror(errno); in IsPartitionUpdated()
43 …LOG(ERROR) << "PartitionRecord: Open misc to recording partition failed" << " : " << strerror(errn… in IsPartitionUpdated()
47 … LOG(ERROR) << "PartitionRecord: Seek misc to specific offset failed" << " : " << strerror(errno); in IsPartitionUpdated()
52 … LOG(ERROR) << "PartitionRecord: Read from misc partition failed" << " : " << strerror(errno); in IsPartitionUpdated()
76 LOG(ERROR) << "PartitionRecord: Seek misc to record offset failed: " << strerror(errno); in RecordPartitionSetOffset()
80 LOG(ERROR) << "PartitionRecord: Read offset failed: " << strerror(errno); in RecordPartitionSetOffset()
85 LOG(ERROR) << "PartitionRecord: Seek misc to specific offset failed: " << strerror(errno); in RecordPartitionSetOffset()
95 LOG(ERROR) << "PartitionRecord: strncpy_s failed: " << strerror(errno); in RecordPartitionSetInfo()
100 LOG(ERROR) << "PartitionRecord: write failed: " << strerror(errno); in RecordPartitionSetInfo()
105 LOG(ERROR) << "PartitionRecord: Seek misc to record offset failed: " << strerror(errno); in RecordPartitionSetInfo()
[all …]
Dstore.cpp35 LOG(ERROR) << "Failed to get files for free space"; in DoFreeSpace()
40 LOG(ERROR) << "Failed to delete in do free space"; in DoFreeSpace()
56 LOG(ERROR) << "Failed to delete " << path; in FreeStore()
63 LOG(ERROR) << "path is empty."; in CreateNewSpace()
70 LOG(ERROR) << "Create new space, failed to stat"; in CreateNewSpace()
74 LOG(ERROR) << "Failed to make store"; in CreateNewSpace()
115 LOG(ERROR) << "Failed to create store"; in WriteDataToStore()
123 LOG(ERROR) << "Write to stash failed, " << size << " blocks to " << path; in WriteDataToStore()
128 LOG(ERROR) << "Failed to fsync"; in WriteDataToStore()
135 LOG(ERROR) << "Failed to open"; in WriteDataToStore()
[all …]
/base/update/sys_installer/services/module_update/src/
Dmodule_loop.cpp64 LOG(ERROR) << "Failed to clear fd for loopback device"; in MaybeCloseBad()
72 LOG(ERROR) << "loop-control is not ready"; in PreAllocateLoopDevices()
77 LOG(ERROR) << "Failed to open loop-control"; in PreAllocateLoopDevices()
86 LOG(ERROR) << "Failed to open " << BLOCK_DEV_PATH; in PreAllocateLoopDevices()
113 LOG(ERROR) << "Failed to add loop device"; in PreAllocateLoopDevices()
124 LOG(ERROR) << "invalid device path " << devicePath; in ConfigureReadAhead()
132 LOG(ERROR) << "invalid device path " << sysfsDevice; in ConfigureReadAhead()
137 LOG(ERROR) << "Failed to open " << realPath; in ConfigureReadAhead()
142 LOG(ERROR) << "Failed to write to " << realPath; in ConfigureReadAhead()
173 LOG(ERROR) << "Failed to configure loop device err=" << errno; in ConfigureLoopDevice()
[all …]
/base/sensors/sensor/frameworks/native/src/
Dsensor_agent_proxy.cpp128 CHKPR(user, OHOS::Sensors::ERROR); in ActivateSensor()
129 CHKPR(user->callback, OHOS::Sensors::ERROR); in ActivateSensor()
132 return ERROR; in ActivateSensor()
141 return ERROR; in ActivateSensor()
156 CHKPR(user, OHOS::Sensors::ERROR); in DeactivateSensor()
157 CHKPR(user->callback, OHOS::Sensors::ERROR); in DeactivateSensor()
165 return OHOS::Sensors::ERROR; in DeactivateSensor()
180 CHKPR(user, OHOS::Sensors::ERROR); in SetBatch()
187 return OHOS::Sensors::ERROR; in SetBatch()
192 return OHOS::Sensors::ERROR; in SetBatch()
[all …]
/base/update/updater/utils/
Dutils.cpp62 LOG(ERROR) << "SetMessageToMisc read misc failed"; in UpdateInfoInMisc()
70 LOG(ERROR) << "SetMessageToMisc strncat_s failed"; in UpdateInfoInMisc()
74 LOG(ERROR) << "SetMessageToMisc strncat_s failed"; in UpdateInfoInMisc()
84 LOG(ERROR) << "SetMessageToMisc snprintf_s failed"; in UpdateInfoInMisc()
90 LOG(ERROR) << "SetMessageToMisc snprintf_s failed"; in UpdateInfoInMisc()
95 LOG(ERROR) << "SetMessageToMisc strncat_s failed"; in UpdateInfoInMisc()
99 LOG(ERROR) << "Write command to misc failed."; in UpdateInfoInMisc()
112 LOG(ERROR) << "Copy updater log failed!"; in SaveLogs()
124 LOG(ERROR) << "Copy stage log failed!"; in SaveLogs()
131 LOG(ERROR) << "Invalid filename"; in DeleteFile()
[all …]
/base/update/updater/services/
Dupdater.cpp70 LOG(ERROR) << "ExtractUpdaterBinary create stream fail"; in ExtractUpdaterBinary()
76 LOG(ERROR) << "ExtractUpdaterBinary extract file failed"; in ExtractUpdaterBinary()
83 LOG(ERROR) << "verify updater_binary failed"; in ExtractUpdaterBinary()
95 LOG(ERROR) << "pkgManager is nullptr"; in GetUpdatePackageInfo()
111 LOG(ERROR) << "get stash size error"; in IsSpaceCapacitySufficient()
120 LOG(ERROR) << "CheckStatvfs error"; in IsSpaceCapacitySufficient()
134 LOG(ERROR) << "pkgManager is nullptr"; in GetStashSizeList()
142 LOG(ERROR) << "LoadPackageWithoutUnPack failed " << upParams.updatePackage[i]; in GetStashSizeList()
160 … LOG(ERROR) << "Create stream fail " << maxStashFileName << " in " << upParams.updatePackage[i]; in GetStashSizeList()
168 … LOG(ERROR) << "ExtractFile fail " << maxStashFileName << " in " << upParams.updatePackage[i]; in GetStashSizeList()
[all …]
/base/update/updater/services/ui/view/page/
Dpage_manager.cpp37 LOG(ERROR) << "create base page failed"; in InitImpl()
41 LOG(ERROR) << "Build page failed"; in InitImpl()
45 LOG(ERROR) << "Build sub page failed"; in InitImpl()
51 LOG(ERROR) << "base page id duplicated:" << pageInfo.id; in InitImpl()
73 LOG(ERROR) << "entry " << entry << " is invalid "; in Init()
91 LOG(ERROR) << "create sub page failed"; in BuildSubPages()
95 LOG(ERROR) << "build sub page failed"; in BuildSubPages()
99 LOG(ERROR) << "sub page id duplicated:" << subPageId; in BuildSubPages()
117 LOG(ERROR) << "page id " << pageId << "not valid"; in IsValidCom()
132 LOG(ERROR) << "cur page is null"; in ShowPage()
[all …]
/base/security/access_token/services/common/app_manager/src/
Dapp_manager_access_proxy.cpp24 static constexpr int32_t ERROR = -1; variable
36 return ERROR; in RegisterApplicationStateObserver()
40 return ERROR; in RegisterApplicationStateObserver()
44 return ERROR; in RegisterApplicationStateObserver()
50 return ERROR; in RegisterApplicationStateObserver()
63 return ERROR; in UnregisterApplicationStateObserver()
67 return ERROR; in UnregisterApplicationStateObserver()
85 return ERROR; in GetForegroundApplications()
96 return ERROR; in GetForegroundApplications()

1234567891011