Home
last modified time | relevance | path

Searched refs:compare (Results 1 – 25 of 121) sorted by relevance

12345

/base/hiviewdfx/faultloggerd/frameworks/unwinder/
Ddfx_config.cpp52 if ((key.compare("faultlogLogPersist") == 0)) { in ParserConfig()
53 if (value.compare("false") == 0) { in ParserConfig()
60 if (key.compare("displayRigister") == 0) { in ParserConfig()
61 if (value.compare("false") == 0) { in ParserConfig()
68 if (key.compare("displayBacktrace") == 0) { in ParserConfig()
69 if (value.compare("false") == 0) { in ParserConfig()
76 if (key.compare("displayMaps") == 0) { in ParserConfig()
77 if (value.compare("false") == 0) { in ParserConfig()
84 if (key.compare("displayFaultStack.switch") == 0) { in ParserConfig()
85 if (value.compare("false") == 0) { in ParserConfig()
[all …]
/base/global/i18n/frameworks/intl/src/
Dlocale_compare.cpp166 …if (script1.compare(script2) == 0 || (language1.compare("en") == 0 && IsSameEnglishScript(script1,… in Compare()
174 if (region1.length() != 0 && region1.compare(region2) == 0) { in Compare()
182 if (langTag1.compare(langTag2) == 0) { in IsSameLanguage()
185 if (langTag1.compare("tl") == 0 && langTag2.compare("fil") == 0) { in IsSameLanguage()
188 if (langTag1.compare("fil") == 0 && langTag2.compare("tl") == 0) { in IsSameLanguage()
196 if (scriptTag1.compare("Qaag") == 0 && scriptTag2.compare("Latn") == 0) { in IsSameEnglishScript()
199 if (scriptTag1.compare("Latn") == 0 && scriptTag2.compare("Qaag") == 0) { in IsSameEnglishScript()
212 if (localeTag2.compare(hantParent[localeTag1]) == 0) { in HasMapRelation()
217 if (localeTag2.compare(latnParent[localeTag1]) == 0) { in HasMapRelation()
231 if (localeTag2.compare(extendedHantParent[localeTag1]) == 0) { in HasMapRelation()
[all …]
Dmeasure_data.cpp504 double compare = 0.0; in ComputePowerValue() local
505 if (fabs(value - compare) < 1e-6) { in ComputePowerValue()
533 double compare = 0.0; in ComputeValue() local
535 if (fabs(factors[0] - compare) < 1e-6) { in ComputeValue()
538 if (fabs(factors[0] - compare) < 1e-6) { in ComputeValue()
541 if (fabs(factors[0] - compare) < 1e-6) { in ComputeValue()
/base/hiviewdfx/hisysevent/frameworks/native/
Dhisysevent_json_decorator.cpp191 return (key.compare(ele) == 0); in HiSysEventJsonDecorator()
220 if (dataType.compare("BOOL") == 0) { in HiSysEventJsonDecorator()
222 } else if ((dataType.compare("INT8") == 0) || (dataType.compare("INT16") == 0) || in HiSysEventJsonDecorator()
223 (dataType.compare("INT32") == 0)) { in HiSysEventJsonDecorator()
225 } else if (dataType.compare("INT64") == 0) { in HiSysEventJsonDecorator()
227 } else if ((dataType.compare("UINT8") == 0) || (dataType.compare("UINT16") == 0) || in HiSysEventJsonDecorator()
228 (dataType.compare("UINT32") == 0)) { in HiSysEventJsonDecorator()
230 } else if (dataType.compare("UINT64") == 0) { in HiSysEventJsonDecorator()
232 } else if ((dataType.compare("FLOAT") == 0) || (dataType.compare("DOUBLE") == 0)) { in HiSysEventJsonDecorator()
234 } else if (dataType.compare("STRING") == 0) { in HiSysEventJsonDecorator()
/base/global/i18n_lite/frameworks/i18n/test/unittest/lite/common/
Di18n_test.cpp1236 EXPECT_TRUE(expect.compare(out) == 0);
1238 EXPECT_TRUE(expect.compare(out) == 0);
1240 EXPECT_TRUE(expect.compare(out) == 0);
1244 EXPECT_TRUE(expect.compare(out) == 0);
1246 EXPECT_TRUE(expect.compare(out) == 0);
1250 EXPECT_TRUE(expect.compare(out) == 0);
1252 EXPECT_TRUE(expect.compare(out) == 0);
1254 EXPECT_TRUE(expect.compare(out) == 0);
1258 EXPECT_TRUE(expect.compare(out) == 0);
1260 EXPECT_TRUE(expect.compare(out) == 0);
[all …]
/base/startup/appspawn/interfaces/innerkits/src/
Dappspawn_mount_permission.cpp43 if (mountPermission.compare(inputPermission) == 0) { in GenPermissionCode()
55 if (mountPermission.compare(permission) == 0) { in IsMountPermission()
/base/hiviewdfx/faultloggerd/test/unittest/callstack/
Dregister_test.cpp50 EXPECT_EQ(GetArchName(ArchType::X86_32).compare("X86_32"), 0);
51 EXPECT_EQ(GetArchName(ArchType::X86_64).compare("X86_64"), 0);
52 EXPECT_EQ(GetArchName(ArchType::ARM).compare("ARM"), 0);
53 EXPECT_EQ(GetArchName(ArchType::ARM64).compare("ARM64"), 0);
54 EXPECT_EQ(GetArchName(static_cast<ArchType>(100)).compare("Unsupport"), 0);
55 EXPECT_EQ(GetArchName(static_cast<ArchType>(-1)).compare("Unsupport"), 0);
/base/location/services/location_locator/locator/source/
Dfusion_controller.cpp57 if (GNSS_ABILITY.compare(abilityName) != 0) { in Process()
68 if (GNSS_ABILITY.compare(abilityName) == 0) { in FuseResult()
Dwork_record.cpp197 if ((name.compare(names_[i]) == 0) && (uuid.compare(uuid_[i]) == 0)) { in Remove()
222 if (iter->compare(name) == 0) { in Remove()
247 if ((name.compare(names_[i]) == 0) && (uuid.compare(uuid_[i]) == 0)) { in Find()
Dlocator_event_subscriber.cpp36 if (MODE_CHANGED_EVENT.compare(action) == 0) { in OnReceiveEvent()
/base/security/dlp_permission_service/services/dlp_permission/sa/test/unittest/src/
Ddlp_parcel_test.cpp55 EXPECT_EQ(0, result->authUserInfo_.authAccount.compare("abc"));
131 EXPECT_EQ(0, result->bundleName_.compare("abc"));
150 EXPECT_EQ(0, result->docUri.compare("abc"));
/base/powermgr/battery_manager/services/native/src/
Dbattery_dump.cpp60 if ((args.empty()) || (args[0].compare(u"-i") != 0)) { in GetBatteryInfo()
100 if ((args.empty()) || (args[0].compare(u"-u") != 0)) { in MockUnplugged()
111 if ((args.empty()) || (args[0].compare(u"-r") != 0)) { in Reset()
122 …if ((args.empty()) || args.size() != CAPACITY_DUMP_PARAM_SIZE || (args[0].compare(u"--capacity") !… in MockCapacity()
/base/location/frameworks/location_common/common/source/
Dcommon_utils.cpp108 if (GNSS_ABILITY.compare(ability) == 0) { in AbilityConvertToId()
111 if (NETWORK_ABILITY.compare(ability) == 0) { in AbilityConvertToId()
114 if (PASSIVE_ABILITY.compare(ability) == 0) { in AbilityConvertToId()
117 if (GEO_ABILITY.compare(ability) == 0) { in AbilityConvertToId()
137 if (GNSS_ABILITY.compare(name) == 0) { in GetLabel()
140 if (NETWORK_ABILITY.compare(name) == 0) { in GetLabel()
143 if (PASSIVE_ABILITY.compare(name) == 0) { in GetLabel()
146 if (GEO_ABILITY.compare(name) == 0) { in GetLabel()
/base/update/sys_installer/tools/module_update_tool/
Dmain.cpp105 if (INSTALL_PARAM.compare(argv[1]) == 0 && argc == MAX_PARAM_NUM) { in main()
111 if (UNINSTALL_PARAM.compare(argv[1]) == 0 && argc == MAX_PARAM_NUM) { in main()
117 if (SHOW_INFO.compare(argv[1]) == 0) { in main()
/base/update/updateservice/services/core/ability/utils/include/
Dencrypt_utils.h50 if (encryptUrl.compare(0, httpsPrefix.size(), httpsPrefix) == 0) { in EncryptUrl()
54 if (encryptUrl.compare(0, httpPrefix.size(), httpPrefix) == 0) { in EncryptUrl()
/base/powermgr/battery_statistics/utils/native/src/
Dstats_hisysevent.cpp26 if (eventName.compare(HISYSEVENT_LIST[i]) == COMPARE_SUCCESS) { in CheckHiSysEvent()
/base/sensors/medical_sensor/services/medical_sensor/src/
Dmedical_dump.cpp48 if ((args.empty()) || (args[0].compare(u"-h") != 0)) { in DumpSensorHelp()
69 if ((args.empty()) || (args[0].compare(u"-l") != 0)) { in DumpSensorList()
89 if ((args.empty()) || (args[0].compare(u"-c") != 0)) { in DumpSensorChannel()
116 if ((args.empty()) || (args[0].compare(u"-o") != 0)) { in DumpOpeningSensor()
133 if ((args.empty()) || (args[0].compare(u"-d") != 0)) { in DumpSensorData()
/base/hiviewdfx/hilog/frameworks/libhilog/utils/include/
Dlog_utils.h30 : str_map(map), def_key(def_k), def_value(def_v), compare(cmp) in str_map()
43 if (compare(value, it.second)) { in GetKey()
68 const ValueCmp compare; variable
/base/update/updater/services/package/pkg_verify/
Dcert_verify.cpp124 if (rootInfo_.subject.compare(certSubject) == 0 && in CompareCertSubjectAndIssuer()
125 rootInfo_.issuer.compare(certIssuer) == 0) { in CompareCertSubjectAndIssuer()
/base/security/code_signature/utils/src/
Dfile_helper.cpp36 (baseRealPath.compare(realPath.substr(0, baseRealPath.size())) == 0); in CheckFilePathValid()
/base/telephony/sms_mms/frameworks/native/mms/src/
Dmms_buffer.cpp112 if ((absDir.compare(filePath.substr(0, absDir.size())) != 0) && in WriteBufferFromFile()
113 (relDir.compare(filePath.substr(0, relDir.size())) != 0)) { in WriteBufferFromFile()
/base/update/updater/services/
Dupdater_preprocess.cpp81 ret = verStr.compare(targetVersions[i]); in CheckVersion()
105 ret = localBoardId.compare(boardIdList[i]); in CheckBoardId()
Dupdater_utils.cpp51 if (currentName[0] == '.' || (currentName.compare("log") == 0) || in DeleteUpdaterPath()
52 (currentName.compare(UPDATER_RESULT_FILE) == 0) || in DeleteUpdaterPath()
53 (currentName.compare(UPDATER_LOCALE_FILE) == 0)) { in DeleteUpdaterPath()
/base/telephony/core_service/services/sim/src/
Doperator_matching_rule.cpp49 return !(valueFromSim.compare(PREFIX_INDEX, valuePrefix.size(), valuePrefix)); in PrefixMatch()
/base/powermgr/power_manager/test/unittest/include/
Drunning_lock_test.h42 ASSERT_TRUE((runningLockInfo.name).compare(runningLockInner->GetName()) == 0); in TestRunningLockInnerExisit()

12345