Lines Matching defs:string

49 const std::string TAG = "DistributedWant";
52 const std::string DistributedWant::ACTION_PLAY("action.system.play");
53 const std::string DistributedWant::ACTION_HOME("action.system.home");
55 const std::string DistributedWant::ENTITY_HOME("entity.system.home");
56 const std::string DistributedWant::ENTITY_VIDEO("entity.system.video");
57 const std::string DistributedWant::FLAG_HOME_INTENT_FROM_SYSTEM("flag.home.intent.from.system");
58 const std::string DistributedWant::ENTITY_MUSIC("entity.app.music");
59 const std::string DistributedWant::ENTITY_EMAIL("entity.app.email");
60 const std::string DistributedWant::ENTITY_CONTACTS("entity.app.contacts");
61 const std::string DistributedWant::ENTITY_MAPS("entity.app.maps");
62 const std::string DistributedWant::ENTITY_BROWSER("entity.app.browser");
63 const std::string DistributedWant::ENTITY_CALENDAR("entity.app.calendar");
64 const std::string DistributedWant::ENTITY_MESSAGING("entity.app.messaging");
65 const std::string DistributedWant::ENTITY_FILES("entity.app.files");
66 const std::string DistributedWant::ENTITY_GALLERY("entity.app.gallery");
68 const std::string DistributedWant::OCT_EQUALSTO("075"); // '='
69 const std::string DistributedWant::OCT_SEMICOLON("073"); // ';'
70 const std::string DistributedWant::MIME_TYPE("mime-type");
71 const std::string DistributedWant::WANT_HEADER("#Intent;");
73 const std::string DistributedWant::PARAM_RESV_WINDOW_MODE("ohos.aafwk.param.windowMode");
74 const std::string DistributedWant::PARAM_RESV_DISPLAY_ID("ohos.aafwk.param.displayId");
75 const std::string DistributedWant::PARAM_RESV_CALLER_TOKEN("ohos.aafwk.param.callerToken");
76 const std::string DistributedWant::PARAM_RESV_CALLER_UID("ohos.aafwk.param.callerUid");
77 const std::string DistributedWant::PARAM_RESV_CALLER_PID("ohos.aafwk.param.callerPid");
110 std::map<std::string, sptr<AAFwk::IInterface>> data = want.GetParams().GetParams();
139 std::vector<std::string> ents = GetEntities();
174 DistributedWant& DistributedWant::SetElementName(const std::string& bundleName, const std::string& abilityName)
181 DistributedWant& DistributedWant::SetElementName(const std::string& deviceId, const std::string& bundleName,
182 const std::string& abilityName)
198 const std::vector<std::string>& DistributedWant::GetEntities() const
203 DistributedWant& DistributedWant::AddEntity(const std::string& entity)
209 void DistributedWant::RemoveEntity(const std::string& entity)
214 bool DistributedWant::HasEntity(const std::string& entity) const
224 std::string DistributedWant::GetBundle() const
229 DistributedWant& DistributedWant::SetBundle(const std::string& bundleName)
235 std::string DistributedWant::GetType() const
242 return std::string();
245 DistributedWant& DistributedWant::SetType(const std::string& type)
254 std::string dStrUri = const_cast<Uri&>(uri).ToString();
255 std::string schemeStr = const_cast<Uri&>(uri).GetScheme();
260 std::string lowSchemeStr = schemeStr;
270 if (pos != std::string::npos) {
277 std::string DistributedWant::GetAction() const
282 DistributedWant& DistributedWant::SetAction(const std::string& action)
288 const std::string DistributedWant::GetScheme() const
304 bool DistributedWant::GetBoolParam(const std::string& key, bool defaultValue) const
314 std::vector<bool> DistributedWant::GetBoolArrayParam(const std::string& key) const
333 DistributedWant& DistributedWant::SetParam(const std::string& key, const sptr<IRemoteObject>& remoteObject)
342 DistributedWant& DistributedWant::SetParam(const std::string& key, bool value)
348 DistributedWant& DistributedWant::SetParam(const std::string& key, const std::vector<bool>& value)
361 AAFwk::byte DistributedWant::GetByteParam(const std::string& key, const AAFwk::byte defaultValue) const
371 std::vector<AAFwk::byte> DistributedWant::GetByteArrayParam(const std::string& key) const
390 DistributedWant& DistributedWant::SetParam(const std::string& key, AAFwk::byte value)
396 DistributedWant& DistributedWant::SetParam(const std::string& key, const std::vector<AAFwk::byte>& value)
410 AAFwk::zchar DistributedWant::GetCharParam(const std::string& key, AAFwk::zchar defaultValue) const
420 std::vector<AAFwk::zchar> DistributedWant::GetCharArrayParam(const std::string& key) const
439 DistributedWant& DistributedWant::SetParam(const std::string& key, AAFwk::zchar value)
445 DistributedWant& DistributedWant::SetParam(const std::string& key, const std::vector<AAFwk::zchar>& value)
459 int DistributedWant::GetIntParam(const std::string& key, const int defaultValue) const
469 std::vector<int> DistributedWant::GetIntArrayParam(const std::string& key) const
488 DistributedWant& DistributedWant::SetParam(const std::string& key, int value)
494 DistributedWant& DistributedWant::SetParam(const std::string& key, const std::vector<int>& value)
508 double DistributedWant::GetDoubleParam(const std::string& key, double defaultValue) const
518 std::vector<double> DistributedWant::GetDoubleArrayParam(const std::string& key) const
537 DistributedWant& DistributedWant::SetParam(const std::string& key, double value)
543 DistributedWant& DistributedWant::SetParam(const std::string& key, const std::vector<double>& value)
557 float DistributedWant::GetFloatParam(const std::string& key, float defaultValue) const
567 std::vector<float> DistributedWant::GetFloatArrayParam(const std::string& key) const
586 DistributedWant& DistributedWant::SetParam(const std::string& key, float value)
592 DistributedWant& DistributedWant::SetParam(const std::string& key, const std::vector<float>& value)
607 long DistributedWant::GetLongParam(const std::string& key, long defaultValue) const
614 std::string str = AAFwk::String::Unbox(AAFwk::IString::Query(value));
631 std::string str = AAFwk::String::Unbox(o);
638 std::vector<long> DistributedWant::GetLongArrayParam(const std::string& key) const
661 DistributedWant& DistributedWant::SetParam(const std::string& key, long value)
667 DistributedWant& DistributedWant::SetParam(const std::string& key, const std::vector<long>& value)
681 DistributedWant& DistributedWant::SetParam(const std::string& key, long long value)
687 short DistributedWant::GetShortParam(const std::string& key, short defaultValue) const
697 std::vector<short> DistributedWant::GetShortArrayParam(const std::string& key) const
716 DistributedWant& DistributedWant::SetParam(const std::string& key, short value)
722 DistributedWant& DistributedWant::SetParam(const std::string& key, const std::vector<short>& value)
736 std::string DistributedWant::GetStringParam(const std::string& key) const
743 return std::string();
746 std::vector<std::string> DistributedWant::GetStringArrayParam(const std::string& key) const
748 std::vector<std::string> array;
765 DistributedWant& DistributedWant::SetParam(const std::string& key, const std::string& value)
771 DistributedWant& DistributedWant::SetParam(const std::string& key, const std::vector<std::string>& value)
800 std::string DistributedWant::GetUriString() const
810 DistributedWant& DistributedWant::SetUri(const std::string& uri)
822 DistributedWant& DistributedWant::SetUriAndType(const OHOS::Uri& uri, const std::string& type)
828 DistributedWant& DistributedWant::FormatUri(const std::string& uri)
839 bool DistributedWant::HasParameter(const std::string& key) const
856 void DistributedWant::RemoveParam(const std::string& key)
900 std::vector<std::string> entities = GetEntities();
901 for (std::vector<std::string>::size_type i = 0; i < entities.size(); i++) {
1014 std::vector<std::string> entities;
1103 std::string parametersString = wrapper.ToString();
1106 std::vector<std::string> entities = GetEntities();
1140 HILOGE("device id is not string");
1144 HILOGE("bundle name is not string");
1148 HILOGE("ability name is not string");
1152 HILOGE("uri is not string");
1156 HILOGE("type is not string");
1164 HILOGE("action is not string");
1168 HILOGE("parameters is not string");
1187 std::string deviceId = wantJson.at("deviceId").get<std::string>();
1188 std::string bundleName = wantJson.at("bundleName").get<std::string>();
1189 std::string abilityName = wantJson.at("abilityName").get<std::string>();
1192 std::string uri = wantJson.at("uri").get<std::string>();
1195 std::string type = wantJson.at("type").get<std::string>();
1204 std::string action = wantJson.at("action").get<std::string>();
1210 std::string parametersString = wantJson.at("parameters").get<std::string>();
1214 std::vector<std::string> entities;
1215 wantJson.at("entities").get_to<std::vector<std::string>>(entities);
1223 std::string DistributedWant::ToString() const
1228 DistributedWant* DistributedWant::FromString(std::string& string)
1230 if (string.empty()) {
1234 nlohmann::json wantJson = nlohmann::json::parse(string, nullptr, false);
1247 DistributedWant& DistributedWant::SetDeviceId(const std::string& deviceId)