Searched defs:ns (Results 1 - 15 of 15) sorted by relevance

/frameworks/base/tools/localize/
H A DXMLNode.h10 string ns; member in struct:XMLAttribute
15 const string& ns, const string& name, const string& def);
H A Dres_check.cpp71 is_xliff_block(const string& ns, const string& name) argument
73 if (ns == XLIFF_XMLNS) {
H A DValuesFile.cpp31 virtual int OnStartElement(const SourcePos& pos, const string& ns, const string& name,
56 ArrayHandler::OnStartElement(const SourcePos& pos, const string& ns, const string& name, argument
59 if (ns == "" && name == "item") {
60 XMLNode* node = XMLNode::NewElement(pos, ns, name, attrs, XMLNode::EXACT);
93 virtual int OnStartElement(const SourcePos& pos, const string& ns, const string& name,
113 ValuesHandler::OnStartElement(const SourcePos& pos, const string& ns, const string& name, argument
116 if (ns == "" && name == "string") {
118 XMLNode* node = XMLNode::NewElement(pos, ns, name, attrs, XMLNode::EXACT);
124 else if (ns == "" && name == "array") {
H A DXMLHandler.h19 string ns; member in struct:XMLAttribute
25 XMLAttribute(string ns, string name, string value);
38 const string& ns, const string& name, const string& def);
46 string Get(const string& ns) const;
47 string GetPrefix(const string& ns) const;
66 static XMLNode* NewElement(const SourcePos& pos, const string& ns, const string& name,
89 inline void SetName(const string& ns, const string& n) { m_ns = ns; m_name = n; } argument
94 vector<XMLNode*> GetElementsByName(const string& ns, const string& name) const;
95 XMLNode* GetElementByNameAt(const string& ns, cons
[all...]
H A DXLIFFFile.cpp37 get_unique_node(const XMLNode* parent, const string& ns, const string& name, bool required) argument
39 size_t count = parent->CountElementsByName(ns, name);
41 return parent->GetElementByNameAt(ns, name, 0);
H A DXMLHandler.cpp72 XMLNamespaceMap::Get(const string& ns) const
74 if (ns == "xml") {
75 return ns;
77 map<string,string>::const_iterator it = m_map.find(ns);
86 XMLNamespaceMap::GetPrefix(const string& ns) const
88 if (ns == "") {
91 map<string,string>::const_iterator it = m_map.find(ns);
128 :ns(that.ns),
135 :ns(
158 Find(const vector<XMLAttribute>& list, const string& ns, const string& name, const string& def) argument
208 NewElement(const SourcePos& pos, const string& ns, const string& name, const vector<XMLAttribute>& attrs, int pretty) argument
394 GetElementsByName(const string& ns, const string& name) const argument
408 GetElementByNameAt(const string& ns, const string& name, size_t index) const argument
426 CountElementsByName(const string& ns, const string& name) const argument
440 GetAttribute(const string& ns, const string& name, const string& def) const argument
446 parse_namespace(const char* data, string* ns, string* name) argument
742 OnEndElement(const SourcePos& pos, const string& ns, const string& name) argument
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DMaterial.java34 private float ns; field in class:Material
57 Math.min(Math.max(ns, 0), 128));
69 // Math.min(Math.max(ns, 0), 128));
101 this.ns = dis.readFloat();
112 "ns=" + ns + "," +
/frameworks/base/core/jni/
H A Dandroid_util_XmlBlock.cpp266 jstring ns, jstring name)
276 if (ns) {
277 ns16 = env->GetStringChars(ns, NULL);
278 nsLen = env->GetStringLength(ns);
286 if (ns) {
287 env->ReleaseStringChars(ns, ns16);
264 android_content_XmlBlock_nativeGetAttributeIndex(JNIEnv* env, jobject clazz, jint token, jstring ns, jstring name) argument
/frameworks/base/tools/aapt/
H A DXMLNode.h47 sp<XMLNode> newElement(const String8& filename, const String16& ns, const String16& name) { argument
48 return new XMLNode(filename, ns, name, false);
85 String16 ns; member in struct:XMLNode::attribute_entry
96 const attribute_entry* getAttribute(const String16& ns, const String16& name) const;
98 attribute_entry* editAttribute(const String16& ns, const String16& name);
115 status_t addAttribute(const String16& ns, const String16& name,
H A DXMLNode.cpp111 const uint16_t* ns = inXml->getElementNamespace(&nslen); local
112 if (ns == NULL) {
113 ns = (const uint16_t*)"\0\0";
116 const String8 nspace(String16(ns, nslen));
168 const uint16_t* ns = inXml->getElementNamespace(&nslen); local
169 if (ns == NULL) {
170 ns = (const uint16_t*)"\0\0";
173 const String8 nspace(String16(ns, nslen));
280 const uint16_t* ns)
283 if (ns !
279 build_namespace(const Vector<namespace_entry>& namespaces, const uint16_t* ns) argument
326 String8 ns = build_namespace(namespaces, ns16); local
357 namespace_entry ns; local
372 const namespace_entry& ns = namespaces.top(); local
[all...]
H A DCommand.cpp236 String8 getAttribute(const ResXMLTree& tree, const char* ns, argument
239 ssize_t idx = tree.indexOfAttribute(ns, attr);
H A DResource.cpp384 const char* ns, const char* attr, const char* validChars, bool required)
388 ssize_t index = parser.indexOfAttribute(ns, attr);
610 const String16 ns(ns8);
613 if (node->getAttribute(ns, attr) != NULL) {
616 String8(attr).string(), String8(ns).string());
620 node->addAttribute(ns, attr, String16(value));
382 validateAttr(const String8& path, const ResTable& table, const ResXMLParser& parser, const char* ns, const char* attr, const char* validChars, bool required) argument
/frameworks/base/include/utils/
H A DResourceTypes.h547 struct ResStringPool_ref ns; member in struct:android::ResXMLTree_endElementExt
562 struct ResStringPool_ref ns; member in struct:android::ResXMLTree_attrExt
592 struct ResStringPool_ref ns; member in struct:android::ResXMLTree_attribute
683 ssize_t indexOfAttribute(const char* ns, const char* attr) const;
684 ssize_t indexOfAttribute(const char16_t* ns, size_t nsLen,
/frameworks/base/libs/utils/
H A DResourceTypes.cpp722 return dtohl(((const ResXMLTree_attrExt*)mCurExt)->ns.index);
725 return dtohl(((const ResXMLTree_endElementExt*)mCurExt)->ns.index);
770 return dtohl(attr->ns.index);
884 ssize_t ResXMLParser::indexOfAttribute(const char* ns, const char* attr) const argument
886 String16 nsStr(ns != NULL ? ns : "");
888 return indexOfAttribute(ns ? nsStr.string() : NULL, ns ? nsStr.size() : 0,
892 ssize_t ResXMLParser::indexOfAttribute(const char16_t* ns, size_t nsLen, argument
901 //printf("%d: ns
[all...]
/frameworks/base/services/java/com/android/server/
H A DPackageManagerService.java8881 private int readInt(XmlPullParser parser, String ns, String name, argument
8883 String v = parser.getAttributeValue(ns, name);

Completed in 145 milliseconds