/libcore/support/src/test/java/tests/support/ |
Support_Xml.java | 23 import org.w3c.dom.Element; 47 public static Element firstElementOf(Document doc) throws Exception { 48 return (Element) doc.getFirstChild(); 51 public static String attrOf(Element e) throws Exception {
|
/prebuilts/go/darwin-x86/test/fixedbugs/ |
bug026.go | 9 type Element interface { 15 func (v *Vector) Insert(i int, e Element) {
|
/prebuilts/go/linux-x86/test/fixedbugs/ |
bug026.go | 9 type Element interface { 15 func (v *Vector) Insert(i int, e Element) {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/values/uimodel/ |
UiItemElementNode.java | 24 import org.w3c.dom.Element; 29 * customizes the element display to include the item type attribute if present. 45 if (xmlNode != null && xmlNode instanceof Element && xmlNode.hasAttributes()) { 47 Element elem = (Element) xmlNode;
|
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/ |
ProductionComponentProcessingStep.java | 28 import javax.lang.model.element.Element; 29 import javax.lang.model.element.TypeElement; 74 SetMultimap<Class<? extends Annotation>, Element> elementsByAnnotation) { 75 final Map<Element, ValidationReport<TypeElement>> builderReportsByComponent = 92 private Map<Element, ValidationReport<TypeElement>> processComponentBuilders( 93 Set<? extends Element> componentBuilderElements) { 94 Map<Element, ValidationReport<TypeElement>> builderReportsByComponent = Maps.newHashMap(); 95 for (Element element : componentBuilderElements) [all...] |
SourceFileGenerator.java | 29 import javax.lang.model.element.Element; 51 ImmutableSet<Element> originatingElements = 52 ImmutableSet.<Element>copyOf(getOriginatingElements(input)); 86 * Implementations should return {@link Element} instances from which the source is to be 89 abstract Iterable<? extends Element> getOriginatingElements(T input); 92 * Returns an optional element to be used for reporting errors. This returns a single element 95 abstract Optional<? extends Element> getElementForErrorReporting(T input);
|
AbstractComponentProcessingStep.java | 24 import javax.lang.model.element.Element; 25 import javax.lang.model.element.TypeElement; 59 public final ImmutableSet<Element> process( 60 SetMultimap<Class<? extends Annotation>, Element> elementsByAnnotation) { 61 ImmutableSet.Builder<Element> rejectedElements = ImmutableSet.builder(); 64 for (Element element : elementsByAnnotation.get(componentAnnotation)) { 65 TypeElement componentTypeElement = MoreElements.asType(element); 99 * Returns an object that can validate a type element annotated with the component type [all...] |
/frameworks/base/sax/java/android/sax/ |
RootElement.java | 26 * The root XML element. The entry point for this API. Not safe for concurrent 47 * Element entry = root.getChild(ATOM_NAMESPACE, "entry"); 66 public class RootElement extends Element { 71 * Constructs a new root element with the given name. 81 * Constructs a new root element with the given name. Uses an empty string 101 Element current = null; 115 // This is the root element. 123 + " within text element named " + current + ".", 127 // If we're one level below the current element. 132 Element child = children.get(uri, localName) [all...] |
Children.java | 20 * Contains element children. Using this class instead of HashMap results in 30 Element getOrCreate(Element parent, String uri, String localName) { 65 Element get(String uri, String localName) { 86 static class Child extends Element { 91 Child(Element parent, String uri, String localName, int depth,
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
Allocation.java | 47 * more complex Element types, the {@link #copyFromUnchecked} methods can be 84 private Element.DataType validateObjectIsPrimitiveArray(Object d, boolean checkType) { 99 return Element.DataType.SIGNED_64; 107 return Element.DataType.SIGNED_32; 115 return Element.DataType.SIGNED_16; 123 return Element.DataType.SIGNED_8; 130 return Element.DataType.FLOAT_32; 137 return Element.DataType.FLOAT_64; 247 * Get the {@link android.support.v8.renderscript.Element} of the {@link 250 * @return Element [all...] |
/libcore/luni/src/test/java/tests/org/w3c/dom/ |
ElementHasAttributeNS.java | 24 import org.w3c.dom.Element; 33 * name and namespace URI is specified on this element or has a default value, 36 * Retreive the first employee element node. Invoke the hasAttributeNS method to 76 Element element; local 81 element = (Element) elementList.item(0); 82 state = element 88 Element element; local 101 Element element; local [all...] |
ElementSetAttributeNodeNS.java | 24 import org.w3c.dom.Element; 35 * Testing Element.setAttributeNodeNS: If an attribute with that local name and 36 * that namespace URI is already present in the element, it is replaced by the 37 * new one. Create a new element and two new attribute nodes (in the same 39 * element node using the setAttributeNodeNS method. Check that only one 78 Element element; local 89 element = doc.createElementNS("http://www.w3.org/DOM/Test/Level2", 90 "new:element"); 96 element.setAttributeNodeNS(attribute1) 111 Element element; local 185 Element element; local 206 Element element; local [all...] |
SetAttributeNS.java | 24 import org.w3c.dom.Element; 92 ((Element) /* Node */testAddr).setAttributeNS(namespaceURI, 114 ((Element) /* Node */testAddr).setAttributeNS(namespaceURI, 133 // Element genElement; 147 // genElement = (Element) gList.item(0); 174 ((Element) /* Node */testAddr).setAttributeNS("http://www.nist.gov", 176 addrAttr = ((Element) /* Node */testAddr).getAttributeNodeNS( 178 resultAttr = ((Element) /* Node */testAddr).getAttributeNS( 202 ((Element) /* Node */testAddr).setAttributeNS(namespaceURI, 204 resultAttr = ((Element) /* Node */testAddr).getAttributeNS [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/manifest/model/ |
UiManifestElementNode.java | 27 import org.w3c.dom.Element; 38 * Element nodes don't contain data per se. Their data is contained in their attributes 57 * Uses the element's attribute "android:name" if present, or the "android:label" one 58 * followed by the element's name if not repeated. 74 getXmlNode() instanceof Element && 83 Element elem = (Element) getXmlNode(); 114 * Note: This is a wrapper around {@link Element#getAttributeNS(String, String)}. 118 * @see Element#getAttributeNS(String, String) 120 * @return The result from {@link Element#getAttributeNS(String, String)} or or an empty string [all...] |
/prebuilts/go/darwin-x86/src/container/list/ |
list.go | 14 // Element is an element of a linked list. 15 type Element struct { 18 // as a ring, such that &l.root is both the next element of the last 19 // list element (l.Back()) and the previous element of the first list 20 // element (l.Front()). 21 next, prev *Element 23 // The list to which this element belongs. 26 // The value stored with this element [all...] |
/prebuilts/go/linux-x86/src/container/list/ |
list.go | 14 // Element is an element of a linked list. 15 type Element struct { 18 // as a ring, such that &l.root is both the next element of the last 19 // list element (l.Back()) and the previous element of the first list 20 // element (l.Front()). 21 next, prev *Element 23 // The list to which this element belongs. 26 // The value stored with this element [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/maps/tiled/ |
TideMapLoader.java | 39 import com.badlogic.gdx.utils.XmlReader.Element;
51 private Element root;
102 /** Loads the map data, given the XML root element and an {@link ImageResolver} used to return the tileset Textures
103 * @param root the XML root element
107 private TiledMap loadMap (Element root, FileHandle tmxFile, ImageResolver imageResolver) {
109 Element properties = root.getChildByName("Properties");
113 Element tilesheets = root.getChildByName("TileSheets");
114 for (Element tilesheet : tilesheets.getChildrenByName("TileSheet")) {
117 Element layers = root.getChildByName("Layers");
118 for (Element layer : layers.getChildrenByName("Layer")) { [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/utils/ |
XmlReader.java | 31 * content. Namespaces are parsed as part of the element or attribute name. Prologs and doctypes are ignored. Only 8-bit character
38 private final Array<Element> elements = new Array(8);
39 private Element root, current;
42 public Element parse (String xml) {
47 public Element parse (Reader reader) throws IOException {
69 public Element parse (InputStream input) throws IOException {
79 public Element parse (FileHandle file) throws IOException {
87 public Element parse (char[] data, int offset, int length) {
332 Element element = elements.peek(); local 578 Element element = children.get(i); local 589 Element element = children.get(i); local [all...] |
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
IsObjectTest.java | 21 import android.renderscript.Element; 32 Element element; field in class:IsObjectTest 44 element = Element.BOOLEAN(mRS); 46 type = new Type.Builder(mRS, Element.I8(mRS)).setX(1).create(); 61 mItem.element = element; 65 mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); 74 Assert.assertTrue("rsIsObject element test fail: " + "Expect 1;value [all...] |
SetObjectTest.java | 21 import android.renderscript.Element; 31 Element element; field in class:SetObjectTest 43 element = Element.BOOLEAN(mRS); 45 type = new Type.Builder(mRS, Element.I8(mRS)).setX(1).create(); 60 mItem.element = element; 64 mOut = Allocation.createSized(mRS, Element.I32(mRS), ObjectNum); 73 Assert.assertTrue("rsSetObject element test fail: " + "Expect 1;value [all...] |
/frameworks/base/tools/aapt2/xml/ |
XmlDom.h | 88 * An Element XML node. 90 struct Element : public BaseNode<Element> { 96 xml::Element* findChild(const StringPiece16& ns, const StringPiece16& name); 97 xml::Element* findChildWithAttribute(const StringPiece16& ns, const StringPiece16& name, 101 std::vector<xml::Element*> getChildElements(); 132 Element* findRootElement(XmlResource* doc); 133 Element* findRootElement(Node* node); 143 virtual void visit(Element* node) {} 157 void visit(Element* node) override [all...] |
XmlActionExecutor.cpp | 22 static bool wrapperOne(XmlNodeAction::ActionFunc& f, Element* el, SourcePathDiagnostics*) { 26 static bool wrapperTwo(XmlNodeAction::ActionFuncWithDiag& f, Element* el, 43 static void printElementToDiagMessage(const Element* el, DiagMessage* msg) { 52 Element* el) const { 58 for (Element* childEl : el->getChildElements()) { 70 errorMsg << "unknown element "; 84 Element* el = findRootElement(doc); 102 errorMsg << "unknown element ";
|
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/ |
UT_fp16.java | 35 private void initializeGlobals(RenderScript RS, ScriptC_fp16 s, Element e, int nDims) { 57 initializeGlobals(RS, s, Element.F16(RS), nDims); 63 initializeGlobals(RS, s, Element.F16(RS), nDims); 70 initializeGlobals(RS, s, Element.F16_2(RS), nDims); 76 initializeGlobals(RS, s, Element.F16_2(RS), nDims); 83 initializeGlobals(RS, s, Element.F16_3(RS), nDims); 89 initializeGlobals(RS, s, Element.F16_3(RS), nDims); 96 initializeGlobals(RS, s, Element.F16_4(RS), nDims); 102 initializeGlobals(RS, s, Element.F16_4(RS), nDims);
|
/external/autotest/frontend/client/src/autotest/common/ |
PaddedJsonRpcProxy.java | 6 import com.google.gwt.dom.client.Element; 34 private Element scriptTag; 131 private static Element addScript(String url, int requestId) { 133 Element scriptElement = addScriptToDocument(scriptId, url); 137 private static native Element addScriptToDocument(String uniqueId, String url) /*-{ 146 private static native void dropScript(Element scriptElement) /*-{
|
/external/guice/core/test/com/google/inject/spi/ |
ModuleRewriterTest.java | 50 List<Element> elements = Elements.getElements(module); 53 List<Element> rewritten = Lists.newArrayList(); 54 for (Element element : elements) { 55 element = element.acceptVisitor(new DefaultElementVisitor<Element>() { 56 @Override public <T> Element visit(Binding<T> binding) { 66 if (element != null) { 67 rewritten.add(element); [all...] |