Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aedc2a8f authored by Brian Carlstrom's avatar Brian Carlstrom Committed by Android (Google) Code Review
Browse files

Merge "Tracking merge of dalvik-dev to master"

parents d4f4e077 08065b9f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -640,6 +640,8 @@ LOCAL_MODULE := ext
LOCAL_NO_EMMA_INSTRUMENT := true
LOCAL_NO_EMMA_COMPILE := true

LOCAL_DX_FLAGS := --core-library

include $(BUILD_JAVA_LIBRARY)


+2 −42
Original line number Diff line number Diff line
@@ -270265,7 +270265,7 @@
<package name="dalvik.system"
>
<class name="DexClassLoader"
 extends="java.lang.ClassLoader"
 extends="dalvik.system.BaseDexClassLoader"
 abstract="false"
 static="false"
 final="false"
@@ -270409,7 +270409,7 @@
</method>
</class>
<class name="PathClassLoader"
 extends="java.lang.ClassLoader"
 extends="dalvik.system.BaseDexClassLoader"
 abstract="false"
 static="false"
 final="false"
@@ -275862,8 +275862,6 @@
>
<exception name="IOException" type="java.io.IOException">
</exception>
<exception name="SecurityException" type="java.lang.SecurityException">
</exception>
</constructor>
<constructor name="ObjectInputStream"
 type="java.io.ObjectInputStream"
@@ -275908,8 +275906,6 @@
>
<parameter name="enable" type="boolean">
</parameter>
<exception name="SecurityException" type="java.lang.SecurityException">
</exception>
</method>
<method name="read"
 return="int"
@@ -276652,8 +276648,6 @@
>
<exception name="IOException" type="java.io.IOException">
</exception>
<exception name="SecurityException" type="java.lang.SecurityException">
</exception>
</constructor>
<constructor name="ObjectOutputStream"
 type="java.io.ObjectOutputStream"
@@ -276735,8 +276729,6 @@
>
<parameter name="enable" type="boolean">
</parameter>
<exception name="SecurityException" type="java.lang.SecurityException">
</exception>
</method>
<method name="putFields"
 return="java.io.ObjectOutputStream.PutField"
@@ -285569,8 +285561,6 @@
</parameter>
<exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException">
</exception>
<exception name="SecurityException" type="java.lang.SecurityException">
</exception>
</method>
<method name="getConstructors"
 return="java.lang.reflect.Constructor&lt;?&gt;[]"
@@ -285582,8 +285572,6 @@
 deprecated="not deprecated"
 visibility="public"
>
<exception name="SecurityException" type="java.lang.SecurityException">
</exception>
</method>
<method name="getDeclaredAnnotations"
 return="java.lang.annotation.Annotation[]"
@@ -285606,8 +285594,6 @@
 deprecated="not deprecated"
 visibility="public"
>
<exception name="SecurityException" type="java.lang.SecurityException">
</exception>
</method>
<method name="getDeclaredConstructor"
 return="java.lang.reflect.Constructor&lt;T&gt;"
@@ -285623,8 +285609,6 @@
</parameter>
<exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException">
</exception>
<exception name="SecurityException" type="java.lang.SecurityException">
</exception>
</method>
<method name="getDeclaredConstructors"
 return="java.lang.reflect.Constructor&lt;?&gt;[]"
@@ -285636,8 +285620,6 @@
 deprecated="not deprecated"
 visibility="public"
>
<exception name="SecurityException" type="java.lang.SecurityException">
</exception>
</method>
<method name="getDeclaredField"
 return="java.lang.reflect.Field"
@@ -285653,8 +285635,6 @@
</parameter>
<exception name="NoSuchFieldException" type="java.lang.NoSuchFieldException">
</exception>
<exception name="SecurityException" type="java.lang.SecurityException">
</exception>
</method>
<method name="getDeclaredFields"
 return="java.lang.reflect.Field[]"
@@ -285666,8 +285646,6 @@
 deprecated="not deprecated"
 visibility="public"
>
<exception name="SecurityException" type="java.lang.SecurityException">
</exception>
</method>
<method name="getDeclaredMethod"
 return="java.lang.reflect.Method"
@@ -285685,8 +285663,6 @@
</parameter>
<exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException">
</exception>
<exception name="SecurityException" type="java.lang.SecurityException">
</exception>
</method>
<method name="getDeclaredMethods"
 return="java.lang.reflect.Method[]"
@@ -285698,8 +285674,6 @@
 deprecated="not deprecated"
 visibility="public"
>
<exception name="SecurityException" type="java.lang.SecurityException">
</exception>
</method>
<method name="getDeclaringClass"
 return="java.lang.Class&lt;?&gt;"
@@ -285770,8 +285744,6 @@
</parameter>
<exception name="NoSuchFieldException" type="java.lang.NoSuchFieldException">
</exception>
<exception name="SecurityException" type="java.lang.SecurityException">
</exception>
</method>
<method name="getFields"
 return="java.lang.reflect.Field[]"
@@ -285783,8 +285755,6 @@
 deprecated="not deprecated"
 visibility="public"
>
<exception name="SecurityException" type="java.lang.SecurityException">
</exception>
</method>
<method name="getGenericInterfaces"
 return="java.lang.reflect.Type[]"
@@ -285835,8 +285805,6 @@
</parameter>
<exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException">
</exception>
<exception name="SecurityException" type="java.lang.SecurityException">
</exception>
</method>
<method name="getMethods"
 return="java.lang.reflect.Method[]"
@@ -285848,8 +285816,6 @@
 deprecated="not deprecated"
 visibility="public"
>
<exception name="SecurityException" type="java.lang.SecurityException">
</exception>
</method>
<method name="getModifiers"
 return="int"
@@ -297698,8 +297664,6 @@
</parameter>
<parameter name="flag" type="boolean">
</parameter>
<exception name="SecurityException" type="java.lang.SecurityException">
</exception>
</method>
<method name="setAccessible"
 return="void"
@@ -297713,8 +297677,6 @@
>
<parameter name="flag" type="boolean">
</parameter>
<exception name="SecurityException" type="java.lang.SecurityException">
</exception>
</method>
</class>
<interface name="AnnotatedElement"
@@ -380201,8 +380163,6 @@
>
<parameter name="encoding" type="java.lang.String">
</parameter>
<exception name="SecurityException" type="java.lang.SecurityException">
</exception>
<exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException">
</exception>
</method>
+151 −142

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ package android.util;
import android.content.res.Resources;
import android.content.res.XmlResourceParser;

import org.apache.harmony.luni.internal.util.ZoneInfoDB;
import libcore.util.ZoneInfoDB;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;

+19 −21
Original line number Diff line number Diff line
@@ -16,23 +16,21 @@

package android.util;

import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.io.StringReader;
import java.io.UnsupportedEncodingException;
import org.apache.harmony.xml.ExpatReader;
import org.kxml2.io.KXmlParser;
import org.xml.sax.ContentHandler;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlSerializer;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlPullParserFactory;

import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.io.StringReader;
import java.io.UnsupportedEncodingException;

import org.apache.harmony.xml.ExpatPullParser;
import org.apache.harmony.xml.ExpatReader;
import org.xmlpull.v1.XmlSerializer;

/**
 * XML utility methods.
@@ -46,7 +44,7 @@ public class Xml {
     * @see <a href="http://xmlpull.org/v1/doc/features.html#relaxed">
     *  specification</a>
     */
    public static String FEATURE_RELAXED = ExpatPullParser.FEATURE_RELAXED;
    public static String FEATURE_RELAXED = "http://xmlpull.org/v1/doc/features.html#relaxed";

    /**
     * Parses the given xml string and fires events on the given SAX handler.
@@ -57,8 +55,7 @@ public class Xml {
            XMLReader reader = new ExpatReader();
            reader.setContentHandler(contentHandler);
            reader.parse(new InputSource(new StringReader(xml)));
        }
        catch (IOException e) {
        } catch (IOException e) {
            throw new AssertionError(e);
        }
    }
@@ -88,16 +85,17 @@ public class Xml {
    }

    /**
     * Creates a new pull parser with namespace support.
     *
     * <p><b>Note:</b> This is actually slower than the SAX parser, and it's not
     *   fully implemented. If you need a fast, mostly implemented pull parser,
     *   use this. If you need a complete implementation, use KXML.
     * Returns a new pull parser with namespace support.
     */
    public static XmlPullParser newPullParser() {
        ExpatPullParser parser = new ExpatPullParser();
        parser.setNamespaceProcessingEnabled(true);
        try {
            KXmlParser parser = new KXmlParser();
            parser.setFeature(XmlPullParser.FEATURE_PROCESS_DOCDECL, true);
            parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true);
            return parser;
        } catch (XmlPullParserException e) {
            throw new AssertionError();
        }
    }

    /**
Loading