Loading api/current.xml +26 −0 Original line number Diff line number Diff line Loading @@ -25311,6 +25311,19 @@ visibility="public" > </method> <method name="reset" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <exception name="RemoteException" type="android.os.RemoteException"> </exception> </method> </class> <class name="ActivityNotFoundException" extends="java.lang.RuntimeException" Loading Loading @@ -31226,6 +31239,19 @@ <exception name="RemoteException" type="android.os.RemoteException"> </exception> </method> <method name="reset" return="void" abstract="true" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <exception name="RemoteException" type="android.os.RemoteException"> </exception> </method> </interface> <class name="Intent" extends="java.lang.Object" core/java/android/content/AbstractCursorEntityIterator.java +8 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,14 @@ public abstract class AbstractCursorEntityIterator implements EntityIterator { } } public void reset() throws RemoteException { if (mIsClosed) { throw new IllegalStateException("calling reset() when the iterator is closed"); } mEntityCursor.moveToPosition(-1); mNextEntity = null; } /** * Closes this iterator making it invalid. If is invalid for the user to call any public * method on the iterator once it has been closed. Loading core/java/android/content/ContentProviderNative.java +8 −0 Original line number Diff line number Diff line Loading @@ -281,6 +281,10 @@ abstract public class ContentProviderNative extends Binder implements IContentPr return mEntityIterator.next(); } public void reset() throws RemoteException { mEntityIterator.reset(); } public void close() throws RemoteException { mEntityIterator.close(); } Loading Loading @@ -406,6 +410,10 @@ final class ContentProviderProxy implements IContentProvider return mEntityIterator.next(); } public void reset() throws RemoteException { mEntityIterator.reset(); } public void close() { try { mEntityIterator.close(); Loading core/java/android/content/ContentResolver.java +7 −0 Original line number Diff line number Diff line Loading @@ -244,6 +244,13 @@ public abstract class ContentResolver { return mInner.next(); } public void reset() throws RemoteException { if (mClientReleased) { throw new IllegalStateException("this iterator is already closed"); } mInner.reset(); } public void close() { mClient.release(); mInner.close(); Loading core/java/android/content/EntityIterator.java +2 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,8 @@ public interface EntityIterator { */ public Entity next() throws RemoteException; public void reset() throws RemoteException; /** * Indicates that this iterator is no longer needed and that any associated resources * may be released (such as a SQLite cursor). Loading Loading
api/current.xml +26 −0 Original line number Diff line number Diff line Loading @@ -25311,6 +25311,19 @@ visibility="public" > </method> <method name="reset" return="void" abstract="false" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <exception name="RemoteException" type="android.os.RemoteException"> </exception> </method> </class> <class name="ActivityNotFoundException" extends="java.lang.RuntimeException" Loading Loading @@ -31226,6 +31239,19 @@ <exception name="RemoteException" type="android.os.RemoteException"> </exception> </method> <method name="reset" return="void" abstract="true" native="false" synchronized="false" static="false" final="false" deprecated="not deprecated" visibility="public" > <exception name="RemoteException" type="android.os.RemoteException"> </exception> </method> </interface> <class name="Intent" extends="java.lang.Object"
core/java/android/content/AbstractCursorEntityIterator.java +8 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,14 @@ public abstract class AbstractCursorEntityIterator implements EntityIterator { } } public void reset() throws RemoteException { if (mIsClosed) { throw new IllegalStateException("calling reset() when the iterator is closed"); } mEntityCursor.moveToPosition(-1); mNextEntity = null; } /** * Closes this iterator making it invalid. If is invalid for the user to call any public * method on the iterator once it has been closed. Loading
core/java/android/content/ContentProviderNative.java +8 −0 Original line number Diff line number Diff line Loading @@ -281,6 +281,10 @@ abstract public class ContentProviderNative extends Binder implements IContentPr return mEntityIterator.next(); } public void reset() throws RemoteException { mEntityIterator.reset(); } public void close() throws RemoteException { mEntityIterator.close(); } Loading Loading @@ -406,6 +410,10 @@ final class ContentProviderProxy implements IContentProvider return mEntityIterator.next(); } public void reset() throws RemoteException { mEntityIterator.reset(); } public void close() { try { mEntityIterator.close(); Loading
core/java/android/content/ContentResolver.java +7 −0 Original line number Diff line number Diff line Loading @@ -244,6 +244,13 @@ public abstract class ContentResolver { return mInner.next(); } public void reset() throws RemoteException { if (mClientReleased) { throw new IllegalStateException("this iterator is already closed"); } mInner.reset(); } public void close() { mClient.release(); mInner.close(); Loading
core/java/android/content/EntityIterator.java +2 −0 Original line number Diff line number Diff line Loading @@ -41,6 +41,8 @@ public interface EntityIterator { */ public Entity next() throws RemoteException; public void reset() throws RemoteException; /** * Indicates that this iterator is no longer needed and that any associated resources * may be released (such as a SQLite cursor). Loading