Lines Matching refs:string

29 const string ANDROID_NS("http://schemas.android.com/apk/res/android");
32 Apk::HasActivity(const string& className) in HasActivity()
34 string fullClassName = full_class_name(package, className); in HasActivity()
45 string ns;
46 string name;
47 string value;
52 string ns;
53 string name;
67 string GetAttr(const string& ns, const string& name) const;
68 void FindElements(const string& ns, const string& name, vector<Element*>* result, bool recurse);
84 string
85 Element::GetAttr(const string& ns, const string& name) const in GetAttr()
94 return string(); in GetAttr()
98 Element::FindElements(const string& ns, const string& name, vector<Element*>* result, bool recurse) in FindElements()
115 map<string,string> namespaces;
130 string
131 full_class_name(const string& packageName, const string& className) in full_class_name()
139 if (className.find('.') == string::npos) { in full_class_name()
145 string
146 pretty_component_name(const string& packageName, const string& className) in pretty_component_name()
152 return packageName + "/" + string(className, pn, string::npos); in pretty_component_name()
159 inspect_apk(Apk* apk, const string& filename) in inspect_apk()
171 string output = get_command_output(cmd, &err, false); in inspect_apk()
178 vector<string> lines; in inspect_apk()
181 const string& line = lines[i]; in inspect_apk()
195 string str = match[2]; in inspect_apk()
197 if (colon == string::npos) { in inspect_apk()
200 element->ns = scope->namespaces[string(str, 0, colon)]; in inspect_apk()
201 element->name.assign(str, colon+1, string::npos); in inspect_apk()
220 string str = match[2]; in inspect_apk()
222 if (colon == string::npos) { in inspect_apk()
226 attr.name.assign(str, colon+1, string::npos); in inspect_apk()
261 string name = activities[i]->GetAttr(ANDROID_NS, "name"); in inspect_apk()