/base/telephony/call_manager/services/audio/src/ |
H A D | call_state_processor.cpp | 148 shouldSwitch = (dialingCalls_.size() == EXIST_ONLY_ONE_CALL && activeCalls_.empty() && in ShouldSwitchState() 149 incomingCalls_.empty() && alertingCalls_.empty()); in ShouldSwitchState() 152 shouldSwitch = (alertingCalls_.size() == EXIST_ONLY_ONE_CALL && activeCalls_.empty() && in ShouldSwitchState() 153 incomingCalls_.empty() && dialingCalls_.empty()); in ShouldSwitchState() 156 shouldSwitch = (incomingCalls_.size() == EXIST_ONLY_ONE_CALL && activeCalls_.empty() && in ShouldSwitchState() 157 dialingCalls_.empty() && alertingCalls_.empty()); in ShouldSwitchState()
|
/base/telephony/core_service/utils/vcard/src/ |
H A D | vcard_decoder_v30.cpp | 34 if (!preLine_.empty()) { in GetLine() 45 if (!preLine_.empty()) { in PeekLine() 58 if (line.empty()) { in GetNonEmptyLine() 62 if (!preLine_.empty()) { in GetNonEmptyLine() 69 if (!ret.empty() || !preLine_.empty()) { in GetNonEmptyLine() 74 if (ret.empty()) { in GetNonEmptyLine() 169 if (value.empty()) { in DealParamV30() 181 if (value.empty()) { in DealParamV30() 182 TELEPHONY_LOGI("value is empty"); in DealParamV30() [all...] |
/base/notification/common_event_service/frameworks/native/src/ |
H A D | matching_skills.cpp | 147 if (vectorInfo.empty()) { in WriteVectorInfo() 204 int32_t empty = VALUE_NULL; in ReadFromParcel() local 205 if (!parcel.ReadInt32(empty)) { in ReadFromParcel() 208 if (empty == VALUE_OBJECT) { in ReadFromParcel() 220 empty = VALUE_NULL; in ReadFromParcel() 221 if (!parcel.ReadInt32(empty)) { in ReadFromParcel() 224 if (empty == VALUE_OBJECT) { in ReadFromParcel() 236 empty = VALUE_NULL; in ReadFromParcel() 237 if (!parcel.ReadInt32(empty)) { in ReadFromParcel() 240 if (empty in ReadFromParcel() [all...] |
/kernel/linux/linux-6.6/sound/sh/ |
H A D | sh_dac_audio.c | 45 int empty; member 69 chip->empty = 1; in dac_audio_reset() 108 chip->empty = 1; in snd_sh_dac_pcm_open() 149 chip->empty = 1; in snd_sh_dac_pcm_trigger() 170 if (chip->empty) { in snd_sh_dac_pcm_copy() 171 chip->empty = 0; in snd_sh_dac_pcm_copy() 188 if (chip->empty) { in snd_sh_dac_pcm_silence() 189 chip->empty = 0; in snd_sh_dac_pcm_silence() 270 if (!chip->empty) { in sh_dac_audio_timer() 285 chip->empty in sh_dac_audio_timer() [all...] |
/base/customization/enterprise_device_management/test/unittest/interface/plugin_kits/ |
H A D | ipolicy_manager_test.cpp | 42 ASSERT_TRUE(policyValue.empty());
in HWTEST_F() 45 ASSERT_TRUE(policyValue.empty());
in HWTEST_F() 49 ASSERT_TRUE(policyValue.empty());
in HWTEST_F() 52 ASSERT_TRUE(policyValue.empty());
in HWTEST_F()
|
/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/src/utils/ |
H A D | password_policy_serializer_test.cpp | 46 * @tc.desc: Test PasswordSerializer::Deserialize when jsonString is empty 56 ASSERT_TRUE(policy.complexityReg.empty()); in HWTEST_F() 58 ASSERT_TRUE(policy.additionalDescription.empty()); in HWTEST_F() 73 ASSERT_TRUE(policy.complexityReg.empty()); in HWTEST_F() 75 ASSERT_TRUE(policy.additionalDescription.empty()); in HWTEST_F() 90 ASSERT_TRUE(policy.complexityReg.empty()); in HWTEST_F() 92 ASSERT_TRUE(policy.additionalDescription.empty()); in HWTEST_F() 124 ASSERT_FALSE(jsonString.empty()); in HWTEST_F()
|
/base/security/access_token/frameworks/common/src/ |
H A D | data_validator.cpp | 33 return !bundleName.empty() && (bundleName.length() <= MAX_LENGTH); in IsBundleNameValid() 48 if (permissionName.empty() || (permissionName.length() > MAX_LENGTH)) { in IsPermissionNameValid() 68 return !appIDDesc.empty() && (appIDDesc.length() <= MAX_APPIDDESC_LENGTH); in IsAppIDDescValid() 73 return !domain.empty() && (domain.length() <= MAX_LENGTH); in IsDomainValid() 88 return !processName.empty() && (processName.length() <= MAX_LENGTH); in IsProcessNameValid() 93 if (deviceId.empty() || (deviceId.length() > MAX_LENGTH)) { in IsDeviceIdValid() 102 return !dcap.empty() && (dcap.length() <= MAX_DCAP_LENGTH); in IsDcapValid()
|
/base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
H A D | app_spawn_command_lexer_test.cpp | 78 ASSERT_FALSE(args_.empty()); in HWTEST_F() 95 ASSERT_FALSE(args_.empty()); in HWTEST_F() 112 ASSERT_FALSE(args_.empty()); in HWTEST_F() 125 ASSERT_TRUE(args_.empty()); in HWTEST_F() 134 ASSERT_TRUE(args_.empty()); in HWTEST_F() 145 ASSERT_TRUE(args_.empty()); in HWTEST_F() 157 ASSERT_FALSE(args_.empty()); in HWTEST_F()
|
/base/telephony/sms_mms/frameworks/native/mms/src/ |
H A D | mms_attachment.cpp | 33 if (strPath.empty()) { in SetAttachmentFilePath() 34 TELEPHONY_LOGE("Attachment file path is empty!"); in SetAttachmentFilePath() 77 if (contentId.empty()) { in SetContentId() 78 TELEPHONY_LOGE("Attachment contentId is empty!"); in SetContentId() 97 if (contentLocation.empty()) { in SetContentLocation() 98 TELEPHONY_LOGE("Attachment ContentLocation is empty!"); in SetContentLocation() 112 if (contentDisposition.empty()) { in SetContentDisposition() 113 TELEPHONY_LOGE("Attachment contentDisposition is empty!"); in SetContentDisposition() 127 if (contentTransferEncoding.empty()) { in SetContentTransferEncoding() 128 TELEPHONY_LOGE("Attachment ContentTransferEncoding is empty!"); in SetContentTransferEncoding() [all...] |
/base/update/updater/services/applypatch/ |
H A D | store.cpp | 48 if (dirPath.empty() || fileName.empty()) {
in FreeStore() 61 if (path.empty()) {
in CreateNewSpace() 62 LOG(ERROR) << "path is empty.";
in CreateNewSpace() 84 if (files.empty()) {
in CreateNewSpace() 102 if (dirPath.empty()) {
in WriteDataToStore() 106 if (!fileName.empty()) {
in WriteDataToStore() 145 if (!fileName.empty()) {
in LoadDataFromStore()
|
/base/hiviewdfx/hiview/base/test/unittest/common/ |
H A D | plugin_test.cpp | 151 ASSERT_TRUE(context.GetPipelineSequenceByName("").empty());
in HWTEST_F() 155 ASSERT_TRUE(context.GetHiViewDirectory(HiviewContext::DirectoryType::CONFIG_DIRECTORY).empty());
in HWTEST_F() 156 ASSERT_TRUE(context.GetHiViewDirectory(HiviewContext::DirectoryType::WORK_DIRECTORY).empty());
in HWTEST_F() 157 ASSERT_TRUE(context.GetHiViewDirectory(HiviewContext::DirectoryType::PERSIST_DIR).empty());
in HWTEST_F() 167 ASSERT_TRUE(context.GetListenerInfo(0, "", "").empty());
in HWTEST_F() 169 ASSERT_TRUE(context.GetDisPatcherInfo(0, "", "", "").empty());
in HWTEST_F()
|
/base/hiviewdfx/hiview/base/event_store/store/ |
H A D | sys_event_database.cpp | 95 if (!dir.empty()) { in GetDatabaseDir() 142 if (domainDirs.empty()) { in Backup() 198 if (quotaMap_.empty()) { in Clear() 205 if (!clearMap_.empty()) { in Clear() 222 if (!limitQueue.empty()) { in Clear() 225 } else if (!normalQueue.empty()) { in Clear() 253 if (queryFiles.empty()) { in Query() 281 while (!files.empty()) { in UpdateClearMap() 322 if (quotaMap_.empty() || quotaMap_.find(type) == quotaMap_.end()) { in GetMaxFileNum() 330 if (quotaMap_.empty() || quotaMap in GetMaxSize() [all...] |
/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/ |
H A D | sandbox_json_manager.cpp | 80 if (retentionInfo.bundleName.empty() || retentionInfo.appIndex < 0 || retentionInfo.userId < 0 ||
in AddSandboxInfo() 82 DLP_LOG_ERROR(LABEL, "Param is invalid, bundleName.empty=%{public}d, appIndex=%{public}d, userId=%{public}d"
in AddSandboxInfo() 83 ", userId=%{public}d.", retentionInfo.bundleName.empty(), retentionInfo.appIndex, retentionInfo.userId,
in AddSandboxInfo() 98 if (iter->docUriSet.empty()) {
in CanUninstall() 112 if (iter->docUriSet.empty()) {
in DelSandboxInfo() 116 DLP_LOG_ERROR(LABEL, "docUriset not empty tokenId:%{public}d", tokenId);
in DelSandboxInfo() 127 if (docUriSet.empty()) {
in UpdateRetentionState() 137 if (info.bundleName.empty() && info.tokenId == 0) {
in UpdateRetentionState() 138 DLP_LOG_ERROR(LABEL, "tokenId==0 and bundleName empty");
in UpdateRetentionState() 174 if (info.docUriSet.empty()) {
in ClearDocUriSet() [all...] |
/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/test/ |
H A D | test_util.cpp | 52 if (pid.empty()) { in GetSmapsPath() 53 HIVIEW_LOGW("GetSmapsPath failed because pid is empty"); in GetSmapsPath() 65 if (pid.empty()) { in GetSampleFile() 66 HIVIEW_LOGW("GetSampleFile failed because pid is empty"); in GetSampleFile() 78 if (pidBefore.empty()) { in RestartProcess() 87 if (!pidAfter.empty()) { in RestartProcess() 103 while (!pid.empty() && pid.back() == '\n') { in GetPidByProcess() 113 if (name.empty()) { in ClearDir() 116 while (!name.empty() && name.back() == '/') { in ClearDir() 155 if (cmd.empty()) { in ExecCmd() [all...] |
/base/hiviewdfx/faultloggerd/interfaces/innerkits/formatter/ |
H A D | dfx_json_formatter.cpp | 57 file.empty() ? "Unknown" : file.c_str()) <= 0) { in FormatNativeFrame() 61 if (!symbol.empty()) { in FormatNativeFrame() 64 if (!buildId.empty()) { in FormatNativeFrame() 91 if (frames[j]["line"].asString().empty()) { in FormatJsonStack() 112 if (processStack.empty()) { in FormatKernelStackStr() 124 file.empty() ? "Unknown" : file.c_str()) <= 0) { in FormatKernelStackStr() 135 if (processStack.empty()) { in FormatKernelStackJson() 154 frameJson["file"] = frame.mapName.empty() ? "Unknown" : frame.mapName; in FormatKernelStackJson()
|
/base/sensors/sensor/vibration_convert/core/algorithm/onset/src/ |
H A D | onset.cpp | 52 if ((matrixA.empty()) || (matrixB.empty())) { in MatrixDot() 53 SEN_HILOGE("matrixA or matrixB is empty"); in MatrixDot() 76 if ((valueCols == 0) || (values.empty())) { in MatrixDiff() 92 if (values.empty()) { in Median() 93 SEN_HILOGE("values is empty"); in Median() 104 if (values.empty()) { in Mean() 105 SEN_HILOGE("values is empty"); in Mean() 125 if (data.empty()) { in Sfft() 126 SEN_HILOGE("data is empty"); in Sfft() [all...] |
/base/web/webview/ohos_adapter/distributeddatamgr_adapter/webdatabase/src/ |
H A D | ohos_web_permission_data_base_adapter_impl.cpp | 119 if (rdbStore_ == nullptr || origin.empty()) { in ExistPermissionByOrigin() 123 if (tableName.empty()) { in ExistPermissionByOrigin() 142 if (rdbStore_ == nullptr || origin.empty()) { in GetPermissionResultByOrigin() 146 if (tableName.empty()) { in GetPermissionResultByOrigin() 171 if (rdbStore_ == nullptr || origin.empty()) { in SetPermissionByOrigin() 175 if (tableName.empty()) { in SetPermissionByOrigin() 191 if (rdbStore_ == nullptr || origin.empty()) { in ClearPermissionByOrigin() 196 if (tableName.empty()) { in ClearPermissionByOrigin() 212 if (tableName.empty()) { in ClearAllPermission() 230 if (tableName.empty()) { in GetOriginsByPermission() [all...] |
/base/customization/enterprise_device_management/tools/edm/src/ |
H A D | edm_command.cpp | 84 if (result == ERR_EDM_TOOLS_COMMAND_HELP && bundleName.empty() && abilityName.empty()) { in RunAsEnableCommand() 90 if (bundleName.empty()) { in RunAsEnableCommand() 93 if (abilityName.empty()) { in RunAsEnableCommand() 109 if (result == ERR_EDM_TOOLS_COMMAND_HELP && bundleName.empty()) { in RunAsDisableAdminCommand() 115 if (bundleName.empty()) { in RunAsDisableAdminCommand()
|
/base/powermgr/thermal_manager/test/unittest/src/ |
H A D | thermal_policy_test.cpp | 69 EXPECT_TRUE(policy.GetClusterLevelMap().empty()); in HWTEST_F() 116 EXPECT_FALSE(actionList.empty()); in HWTEST_F() 123 EXPECT_FALSE(actionMap.empty()); in HWTEST_F() 150 EXPECT_FALSE(actionList.empty()); in HWTEST_F() 157 EXPECT_FALSE(actionMap.empty()); in HWTEST_F() 212 if (result.empty()) { in HWTEST_F()
|
/base/print/print_fwk/utils/include/ |
H A D | print_util.h | 71 if (!str.empty()) { in Str2VecStr() 85 if (!list.empty()) { in ParseListToString() 101 if (!str.empty()) { in SplitStr() 118 if (!str.empty()) { in ToUpper() 126 if (str.empty() || content.empty()) { in CheckContains()
|
/base/security/access_token/services/tokensyncmanager/src/device/ |
H A D | device_info_manager.cpp | 55 !DataValidator::IsDeviceIdValid(uniqueDeviceId) || deviceName.empty() || deviceType.empty()) { in AddDeviceInfo() 101 if (!universallyUniqueId.empty()) { in ConvertToUniversallyUniqueIdOrFetch() 106 if (!udid.empty()) { in ConvertToUniversallyUniqueIdOrFetch() 122 if (uniqueDeviceId.empty()) { in ConvertToUniqueDeviceIdOrFetch() 124 if (!udid.empty()) { in ConvertToUniqueDeviceIdOrFetch() 128 "FindDeviceInfo succeed, udid and local udid is empty, nodeId(%{public}s)", in ConvertToUniqueDeviceIdOrFetch() 133 "FindDeviceInfo succeed, udid is empty, nodeId(%{public}s) ", in ConvertToUniqueDeviceIdOrFetch()
|
/base/powermgr/battery_statistics/services/native/src/ |
H A D | battery_stats_listener.cpp | 130 if (root["ID"].isString() && !root["ID"].asString().empty()) {
in ProcessCameraEvent() 207 if (root["STATE"].isString() && !root["STATE"].asString().empty()) {
in ProcessGnssEvent() 319 if (root["name_"].isString() && !root["name_"].asString().empty()) {
in ProcessPhoneDebugInfo() 427 if (root["NAME"].isString() && !root["NAME"].asString().empty()) {
in ProcessWakelockEvent() 433 if (root["TAG"].isString() && !root["TAG"].asString().empty()) {
in ProcessWakelockEvent() 436 if (root["MESSAGE"].isString() && !root["MESSAGE"].asString().empty()) {
in ProcessWakelockEvent() 443 if (root["name_"].isString() && !root["name_"].asString().empty()) {
in ProcessDispalyDebugInfo() 452 if (root["REASON"].isString() && !root["REASON"].asString().empty()) {
in ProcessDispalyDebugInfo() 522 if (root["name_"].isString() && !root["name_"].asString().empty()) {
in ProcessThermalEvent() 525 if (root["NAME"].isString() && !root["NAME"].asString().empty()) {
in ProcessThermalEvent() [all...] |
/kernel/linux/linux-6.6/drivers/power/supply/ |
H A D | cpcap-battery.c | 543 *empty, *full; in cpcap_battery_update_status() local 576 empty = cpcap_battery_get_empty(ddata); in cpcap_battery_update_status() 577 if (empty->voltage && empty->voltage != -1) { in cpcap_battery_update_status() 578 empty->voltage = -1; in cpcap_battery_update_status() 580 empty->counter_uah - full->counter_uah; in cpcap_battery_update_status() 582 empty->voltage = -1; in cpcap_battery_update_status() 583 empty->counter_uah = in cpcap_battery_update_status() 587 empty = cpcap_battery_get_empty(ddata); in cpcap_battery_update_status() 588 memcpy(empty, lates in cpcap_battery_update_status() 640 struct cpcap_battery_state_data *latest, *previous, *empty; cpcap_battery_get_property() local [all...] |
/base/msdp/device_status/intention/common/channel/include/ |
H A D | channel.h | 212 bool needNotify = queue_.empty(); in Send() 224 if (queue_.empty()) { in Peek() 226 return !queue_.empty(); in Peek() 236 if (queue_.empty()) { in Pop() 238 return !queue_.empty(); in Pop() 248 if (queue_.empty()) { in Receive() 250 return !queue_.empty(); in Receive()
|
/base/notification/distributed_notification_service/frameworks/core/src/ |
H A D | ans_image_util.cpp | 31 if (!pixelMap || format.empty()) { in PackImage() 75 if (pixelMapStr.empty()) { in UnPackImage() 108 if (!pixelMap || outFilePath.empty() || format.empty()) { in PackImage2File() 136 if (inFilePath.empty() || format.empty()) { in CreatePixelMap() 169 if (strBin.empty()) { in BinToHex()
|