Home
last modified time | relevance | path

Searched refs:find (Results 1 – 25 of 705) sorted by relevance

12345678910>>...29

/base/hiviewdfx/hiview/test/unittest/common/
Dholistic_platform_test.cpp60 auto itaa = pluginMap.find("EventSourceExample"); in SetUpTestCase()
66 auto itbb = pluginMap.find("BundleEventSourceExample"); in SetUpTestCase()
113 auto ita1 = count1_->find("EventProcessorExample3");
117 auto itb2 = count1_->find("EventProcessorExample4");
121 auto itc3 = count2_->find("BundlePluginExample2");
136 ita1 = count1_->find("EventProcessorExample3");
140 itb2 = count1_->find("EventProcessorExample4");
144 itc3 = count2_->find("BundlePluginExample2");
153 auto ita = count1_->find("EventProcessorExample3"); in LoadingPlugins002Check()
157 auto itb = count1_->find("EventProcessorExample4"); in LoadingPlugins002Check()
[all …]
/base/security/access_token/services/tokensyncmanager/src/command/
Dbase_remote_command.cpp29 …if (jsonObject.find("commandName") != jsonObject.end() && jsonObject.at("commandName").is_string()… in FromRemoteProtocolJson()
32 if (jsonObject.find("uniqueId") != jsonObject.end() && jsonObject.at("uniqueId").is_string()) { in FromRemoteProtocolJson()
35 …if (jsonObject.find("requestVersion") != jsonObject.end() && jsonObject.at("requestVersion").is_nu… in FromRemoteProtocolJson()
38 …if (jsonObject.find("srcDeviceId") != jsonObject.end() && jsonObject.at("srcDeviceId").is_string()… in FromRemoteProtocolJson()
41 …if (jsonObject.find("srcDeviceLevel") != jsonObject.end() && jsonObject.at("srcDeviceLevel").is_st… in FromRemoteProtocolJson()
44 …if (jsonObject.find("dstDeviceId") != jsonObject.end() && jsonObject.at("dstDeviceId").is_string()… in FromRemoteProtocolJson()
47 …if (jsonObject.find("dstDeviceLevel") != jsonObject.end() && jsonObject.at("dstDeviceLevel").is_st… in FromRemoteProtocolJson()
50 …if (jsonObject.find("statusCode") != jsonObject.end() && jsonObject.at("statusCode").is_number()) { in FromRemoteProtocolJson()
53 if (jsonObject.find("message") != jsonObject.end() && jsonObject.at("message").is_string()) { in FromRemoteProtocolJson()
56 …if (jsonObject.find("responseVersion") != jsonObject.end() && jsonObject.at("responseVersion").is_… in FromRemoteProtocolJson()
[all …]
/base/global/i18n/frameworks/intl/src/
Dlocale_info.cpp96 if (localeTag.find("-u-") == std::string::npos) { in ComputeFinalLocaleTag()
100 finalLocaleTag = localeTag.substr(0, localeTag.find("-u-")); in ComputeFinalLocaleTag()
137 if (localeTag.find(hourCycleTag) != std::string::npos) { in ParseLocaleTag()
138 hourCycle = localeTag.substr(localeTag.find(hourCycleTag) + CONFIG_TAG_LEN); in ParseLocaleTag()
139 hourCycle = hourCycle.substr(0, hourCycle.find(flag)); in ParseLocaleTag()
141 if (localeTag.find(numberingSystemTag) != std::string::npos) { in ParseLocaleTag()
142 numberingSystem = localeTag.substr(localeTag.find(numberingSystemTag) + CONFIG_TAG_LEN); in ParseLocaleTag()
143 numberingSystem = numberingSystem.substr(0, numberingSystem.find(flag)); in ParseLocaleTag()
145 if (localeTag.find(calendarTag) != std::string::npos) { in ParseLocaleTag()
146 calendar = localeTag.substr(localeTag.find(calendarTag) + CONFIG_TAG_LEN); in ParseLocaleTag()
[all …]
/base/account/os_account/services/accountmgr/test/unittest/account_mgr_service_test/
Daccount_dump_helper_test.cpp111 auto pos = out.find("Account Manager service, enter '-h' for usage", 0);
144 auto pos = out.find("OhosAccount name", 0);
146 pos = out.find("OhosAccount uid", 0);
148 pos = out.find("OhosAccount status", 0);
150 pos = out.find("OhosAccount bind time", 0);
152 pos = out.find("Bind local user id", 0);
171 auto pos = out.find("ID:", 0);
190 auto pos = out.find("ServiceInstanceCreateTime", 0);
209 auto pos = out.find("Usage:dump", 0);
227 auto pos = out.find("System error", 0);
[all …]
/base/time/time_service/test/unittest/src/
Dtime_dfx_test.cpp92 EXPECT_NE(result.find("dump all time info"), std::string::npos);
93 EXPECT_NE(result.find("dump the time Zone"), std::string::npos);
107 EXPECT_NE(result.find("dump all timer info"), std::string::npos);
130 EXPECT_NE(result.find("timer id"), std::string::npos);
131 EXPECT_NE(result.find("timer type"), std::string::npos);
156 EXPECT_NE(result.find("timer id"), std::string::npos);
157 EXPECT_NE(result.find("timer trigger"), std::string::npos);
172 …EXPECT_NE(result.find("dump current time info,include localtime,timezone info"), std::string::npos…
173 EXPECT_NE(result.find("dump all timer info"), std::string::npos);
174 EXPECT_NE(result.find("dump the timer info with timer id"), std::string::npos);
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/
Dfeature_analysis.cpp132 if (one.first.find("LayerTwoCmd") != string::npos || in CheckStartSegment()
133 one.first.find("LayerOneCmd") != string::npos) { in CheckStartSegment()
152 bool isOrExp = (cmdSrc.find(L3_OR_DESCRIPTOR) == string::npos) ? false : true; in IsSourceMatch()
153 bool isAndExp = (cmdSrc.find(L3_AND_DESCRIPTOR) == string::npos) ? false : true; in IsSourceMatch()
155 return line.find(cmdSrc) != string::npos; in IsSourceMatch()
169 if (line.find(str) != string::npos) { in IsMatchOrExpression()
183 pos = lineCpy.find(str); in IsMatchAndExpression()
205 … if (reg.find(L3_VARIABLE_TRACE_BLOCK) != string::npos || regex_search(src, result, regex(reg))) { in ParseElementForParam()
224 if (param.find(L3_SEEK_LAST) != string::npos) { in GetSeekInfo()
252 if ((rule.source.find(leftTag) != string::npos && rule.source.find(rightTag) != string::npos) || in CheckVariable()
[all …]
/base/telephony/sms_mms/frameworks/native/mms/src/
Dmms_address.cpp58 if (addressString_.find("PLMN")) { in CheckAddressType()
60 } else if (addressString_.find("IPv4")) { in CheckAddressType()
62 } else if (addressString_.find("IPv6")) { in CheckAddressType()
64 } else if (addressString_.find("EMAIL")) { in CheckAddressType()
/base/inputmethod/imf/unitest/src/
Dinput_method_dfx_test.cpp96 EXPECT_NE(result.find("imeList"), std::string::npos);
97 EXPECT_NE(result.find("com.example.testIme"), std::string::npos);
112 EXPECT_NE(result.find("Description:"), std::string::npos);
113 EXPECT_NE(result.find("-h show help"), std::string::npos);
114 EXPECT_NE(result.find("-a dump all input methods"), std::string::npos);
129 EXPECT_NE(result.find("input dump parameter error,enter '-h' for usage."), std::string::npos);
/base/customization/enterprise_device_management/test/unittest/src/
Dutils_test.cpp83 std::string find = "19216812"; variable
85 ASSERT_TRUE(ArrayPolicyUtils::ArrayStringContains(data, find));
87 find = "19216814";
89 ASSERT_FALSE(ArrayPolicyUtils::ArrayStringContains(data, find));
91 find = "19216814";
93 ASSERT_FALSE(ArrayPolicyUtils::ArrayStringContains(data, find));
/base/theme/wallpaper_mgr/test/unittest/
Dwallpaper_dfx_test.cpp101 EXPECT_NE(result.find("Description"), std::string::npos);
102 EXPECT_NE(result.find("Show all"), std::string::npos);
117 EXPECT_NE(result.find("Description"), std::string::npos);
118 EXPECT_NE(result.find("Show all"), std::string::npos);
133 EXPECT_NE(result.find("height"), std::string::npos);
134 EXPECT_NE(result.find("width"), std::string::npos);
135 EXPECT_NE(result.find("WallpaperExtension"), std::string::npos);
/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/adpter/src/
Dcompatible_light_connection.cpp49 if (std::find(supportLights.begin(), supportLights.end(), lightId) == supportLights.end()) { in TurnOn()
53 if (std::find(turnOnLights_.begin(), turnOnLights_.end(), lightId) != turnOnLights_.end()) { in TurnOn()
64 if (std::find(supportLights.begin(), supportLights.end(), lightId) == supportLights.end()) { in TurnOff()
68 if (std::find(turnOnLights_.begin(), turnOnLights_.end(), lightId) == turnOnLights_.end()) { in TurnOff()
72 …std::vector<int32_t>::iterator iter = std::find(turnOnLights_.begin(), turnOnLights_.end(), lightI… in TurnOff()
/base/sensors/sensor/services/sensor/src/
Dclient_info.cpp50 auto it = clientMap_.find(sensorId); in GetSensorState()
77 auto it = clientMap_.find(sensorId); in GetBestSensorInfo()
101 auto it = clientMap_.find(sensorId); in OnlyCurPidSensorEnabled()
128 auto appThreadInfoItr = appThreadInfoMap_.find(pid); in UpdateAppThreadInfo()
149 auto appThreadInfoItr = appThreadInfoMap_.find(pid); in DestroyAppThreadInfo()
171 auto channelIt = channelMap_.find(appThreadInfoIt.first); in GetSensorChannelByUid()
188 auto channelIt = channelMap_.find(pid); in GetSensorChannelByPid()
203 auto clientIt = clientMap_.find(sensorId); in GetSensorChannel()
211 auto channelIt = channelMap_.find(sensorInfoIt.first); in GetSensorChannel()
228 auto it = clientMap_.find(sensorId); in UpdateSensorInfo()
[all …]
/base/startup/appspawn/util/src/
Dsandbox_utils.cpp148 if (config.find(g_sandBoxNameSpace) == config.end()) { in GetNamespaceFlagsFromConfig()
154 if (namespaceApp.find(bundleName) == namespaceApp.end()) { in GetNamespaceFlagsFromConfig()
208 if ((pos = str.find(old_value)) != std::string::npos) { in replace_all()
225 pos = str.find(pattern, i); in split()
289 if (path.find(g_packageNameIndex) != std::string::npos) { in ConvertToRealPath()
295 if (path.find(g_packageName) != std::string::npos) { in ConvertToRealPath()
299 if (path.find(g_userId) != std::string::npos) { in ConvertToRealPath()
309 if (config.find(g_sandboxRootPrefix) != config.end()) { in GetSbxPathByConfig()
323 if (config.find(g_sandBoxSwitchPrefix) != config.end()) { in GetSbxSwitchStatusByConfig()
339 …bool istrue = mntPoint.find(g_srcPath) == mntPoint.end() || mntPoint.find(g_sandBoxPath) == mntPoi… in CheckMountConfig()
[all …]
/base/global/i18n/frameworks/intl/test/unittest/
Dintl_test.cpp449 EXPECT_TRUE(out.find(expects) != out.npos);
495 map<string, string>::iterator it = options.find("localeMatcher");
499 it = options.find("locale");
503 it = options.find("usage");
507 it = options.find("sensitivity");
511 it = options.find("ignorePunctuation");
515 it = options.find("numeric");
519 it = options.find("caseFirst");
523 it = options.find("collation");
559 map<string, string>::iterator it = options.find("localeMatcher");
[all …]
/base/telephony/core_service/services/tel_ril/src/
Dobserver_handler.cpp29 auto iter = observerHandlerMap_.find(what); in RegObserver()
32 auto it = find(handlers.begin(), handlers.end(), handler); in RegObserver()
60 auto iter = observerHandlerMap_.find(what); in Remove()
63 auto it = find(handlers.begin(), handlers.end(), handler); in Remove()
74 auto iter = observerHandlerMap_.find(what); in NotifyObserver()
/base/powermgr/battery_statistics/services/native/src/entities/
Dsensor_entity.cpp39 auto gravityIter = gravityTimerMap_.find(uid); in GetActiveTimeMs()
50 auto proximityIter = proximityTimerMap_.find(uid); in GetActiveTimeMs()
72 auto gravityIter = gravityPowerMap_.find(uid); in CalculateGravity()
91 auto proximityIter = proximityPowerMap_.find(uid); in CalculateProximity()
110 auto sensorIter = sensorTotalPowerMap_.find(uid); in Calculate()
125 auto iter = sensorTotalPowerMap_.find(uidOrUserId); in GetEntityPowerMah()
141 auto gravityOnIter = gravityPowerMap_.find(uid); in GetStatsPowerMah()
151 auto proximityOnIter = proximityPowerMap_.find(uid); in GetStatsPowerMah()
170 auto gravityOnIter = gravityTimerMap_.find(uid); in GetOrCreateTimer()
184 auto proximityOnIter = proximityTimerMap_.find(uid); in GetOrCreateTimer()
Dcpu_entity.cpp40 auto iter = cpuTimeMap_.find(uid); in GetCpuTimeMs()
71 auto cpuTimeIter = cpuTimeMap_.find(uid); in Calculate()
91 auto cpuTotalIter = cpuTotalPowerMap_.find(uid); in Calculate()
110 auto cpuActiveIter = cpuActivePowerMap_.find(uid); in CalculateCpuActivePower()
132 auto cpuClusterIter = cpuClusterPowerMap_.find(uid); in CalculateCpuClusterPower()
157 auto cpuSpeedIter = cpuSpeedPowerMap_.find(uid); in CalculateCpuSpeedPower()
173 auto iter = cpuTotalPowerMap_.find(uidOrUserId); in GetEntityPowerMah()
190 auto cpuActiveIter = cpuActivePowerMap_.find(uid); in GetStatsPowerMah()
200 auto cpuClusterIter = cpuClusterPowerMap_.find(uid); in GetStatsPowerMah()
210 auto cpuSpeedIter = cpuSpeedPowerMap_.find(uid); in GetStatsPowerMah()
/base/sensors/medical_sensor/services/medical_sensor/src/
Dclient_info.cpp51 auto it = clientMap_.find(sensorId); in GetSensorState()
79 auto it = clientMap_.find(sensorId); in GetBestSensorInfo()
105 auto it = clientMap_.find(sensorId); in OnlyCurPidSensorEnabled()
133 auto uidIt = appThreadInfoMap_.find(pid); in UpdateUid()
156 auto uidIt = appThreadInfoMap_.find(pid); in DestroyUid()
182 auto channelIt = channelMap_.find(uidIt.first); in GetSensorChannelByUid()
200 auto channelIt = channelMap_.find(pid); in GetSensorChannelByPid()
217 auto clientIt = clientMap_.find(sensorId); in GetSensorChannel()
225 auto channelIt = channelMap_.find(sensorInfoIt.first); in GetSensorChannel()
242 auto it = clientMap_.find(sensorId); in UpdateSensorInfo()
[all …]
/base/usb/usb_manager/services/native/src/
Dusb_right_manager.cpp37 auto itMap = rightMap.find(deviceName); in HasRight()
43 auto itVevtor = std::find(bundleNameList.begin(), bundleNameList.end(), bundleName); in HasRight()
69 auto itMap = rightMap.find(deviceName); in AddDeviceRight()
72 auto itVevtor = std::find(v.begin(), v.end(), bundleName); in AddDeviceRight()
89 auto it = rightMap.find(deviceName); in RemoveDeviceRight()
92 auto itVevtor = std::find(v.begin(), v.end(), bundleName); in RemoveDeviceRight()
104 auto it = rightMap.find(deviceName); in RemoveDeviceAllRight()
/base/security/selinux/test/unittest/service_checker/
Dunit_test.cpp55 ASSERT_TRUE(cmdRes.find("hdf_devmgr_class") != std::string::npos);
72 ASSERT_TRUE(cmdRes.find(TEST_SERVICE_NAME) != std::string::npos);
89 ASSERT_TRUE(cmdRes.find(TEST_SERVICE_NAME) != std::string::npos);
107 ASSERT_TRUE(cmdRes.find("samgr_class") != std::string::npos);
125 ASSERT_TRUE(cmdRes.find(TEST_SERVICE_NAME) != std::string::npos);
143 ASSERT_TRUE(cmdRes.find(TEST_SERVICE_NAME) != std::string::npos);
161 ASSERT_TRUE(cmdRes.find(TEST_SERVICE_NAME) != std::string::npos);
/base/request/request/download/interfaces/kits/js/napi/download_single/src/
Ddownload_task.cpp44 std::map<std::string, sptr<DownloadNotifyInterface>>::iterator it = listenerMap_.find(type); in AddListener()
55 auto it = listenerMap_.find(type); in RemoveListener()
66 auto it = listenerMap_.find(type); in RemoveListener()
76 return supportEvents_.find(type) != supportEvents_.end(); in IsSupportType()
/base/notification/distributed_notification_service/services/ans/src/
Dnotification_preferences_info.cpp103 auto iter = slots_.find(type); in GetSlot()
129 auto iter = slots_.find(type); in IsExsitSlot()
135 auto iter = slots_.find(type); in RemoveSlot()
168 auto iter = infos_.find(bundleKey); in GetBundleInfo()
179 auto iter = infos_.find(bundleKey); in RemoveBundleInfo()
190 auto iter = infos_.find(bundleKey); in IsExsitBundleInfo()
211 auto iter = doNotDisturbDate_.find(userId); in GetDoNotDisturbDate()
226 auto iter = isEnabledAllNotification_.find(userId); in GetEnabledAllNotification()
/base/hiviewdfx/hiview/plugins/freeze_detector/test/moduletest/common/
Dfreeze_detector_plugin_module_test.cpp48 …std::shared_ptr<Plugin> plugin = PluginPlatform::GetInstance().GetPluginMap().find("FreezeDetector… in TearDownTestCase()
72 .GetPluginMap().find("FreezeDetectorPlugin")->second); in GetFreezeDetectorPlugin()
89 … auto sysEventPlugin = PluginPlatform::GetInstance().GetPluginMap().find("SysEventSource")->second;
120 … auto sysEventPlugin = PluginPlatform::GetInstance().GetPluginMap().find("SysEventSource")->second;
152 … auto sysEventPlugin = PluginPlatform::GetInstance().GetPluginMap().find("SysEventSource")->second;
176 … auto sysEventPlugin = PluginPlatform::GetInstance().GetPluginMap().find("SysEventSource")->second;
/base/security/selinux/test/unittest/paraperm_checker/
Dunit_test.cpp76 bool find = false; variable
80 find = true;
87 ASSERT_EQ(true, find);
148 ASSERT_TRUE(cmdRes.find(TEST_NOT_EXIST_PARA_NAME) != std::string::npos);
167 ASSERT_TRUE(cmdRes.find(TEST_PARA_NAME) != std::string::npos);
198 ASSERT_TRUE(cmdRes.find(TEST_NOT_EXIST_PARA_NAME) != std::string::npos);
224 ASSERT_TRUE(cmdRes.find(TEST_PARA_NAME) != std::string::npos);
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/
Dnative_token_receptor.cpp48 if (j.find(JSON_PERMS) == j.end()) { in NativeReqPermsGet()
76 if (j.find(JSON_PROCESS_NAME) != j.end()) { in from_json()
85 if (j.find(JSON_APL) != j.end()) { in from_json()
96 if (j.find(JSON_VERSION) != j.end()) { in from_json()
105 if (j.find(JSON_TOKEN_ID) != j.end()) { in from_json()
118 if (j.find(JSON_TOKEN_ATTR) != j.end()) { in from_json()
124 if (j.find(JSON_DCAPS) != j.end()) { in from_json()
133 if (j.find(JSON_ACLS) != j.end()) { in from_json()

12345678910>>...29