summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/ContentProviderNative.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/java/android/content/ContentProviderNative.java')
-rw-r--r--core/java/android/content/ContentProviderNative.java98
1 files changed, 0 insertions, 98 deletions
diff --git a/core/java/android/content/ContentProviderNative.java b/core/java/android/content/ContentProviderNative.java
index adc3f60..bacb684 100644
--- a/core/java/android/content/ContentProviderNative.java
+++ b/core/java/android/content/ContentProviderNative.java
@@ -106,20 +106,6 @@ abstract public class ContentProviderNative extends Binder implements IContentPr
return true;
}
- case QUERY_ENTITIES_TRANSACTION:
- {
- data.enforceInterface(IContentProvider.descriptor);
- Uri url = Uri.CREATOR.createFromParcel(data);
- String selection = data.readString();
- String[] selectionArgs = data.readStringArray();
- String sortOrder = data.readString();
- EntityIterator entityIterator = queryEntities(url, selection, selectionArgs,
- sortOrder);
- reply.writeNoException();
- reply.writeStrongBinder(new IEntityIteratorImpl(entityIterator).asBinder());
- return true;
- }
-
case GET_TYPE_TRANSACTION:
{
data.enforceInterface(IContentProvider.descriptor);
@@ -245,32 +231,6 @@ abstract public class ContentProviderNative extends Binder implements IContentPr
return super.onTransact(code, data, reply, flags);
}
- /**
- * @hide
- */
- private class IEntityIteratorImpl extends IEntityIterator.Stub {
- private final EntityIterator mEntityIterator;
-
- IEntityIteratorImpl(EntityIterator iterator) {
- mEntityIterator = iterator;
- }
- public boolean hasNext() throws RemoteException {
- return mEntityIterator.hasNext();
- }
-
- public Entity next() throws RemoteException {
- return mEntityIterator.next();
- }
-
- public void reset() throws RemoteException {
- mEntityIterator.reset();
- }
-
- public void close() throws RemoteException {
- mEntityIterator.close();
- }
- }
-
public IBinder asBinder()
{
return this;
@@ -352,64 +312,6 @@ final class ContentProviderProxy implements IContentProvider
return adaptor;
}
- /**
- * @hide
- */
- public EntityIterator queryEntities(Uri url, String selection, String[] selectionArgs,
- String sortOrder)
- throws RemoteException {
- Parcel data = Parcel.obtain();
- Parcel reply = Parcel.obtain();
-
- data.writeInterfaceToken(IContentProvider.descriptor);
-
- url.writeToParcel(data, 0);
- data.writeString(selection);
- data.writeStringArray(selectionArgs);
- data.writeString(sortOrder);
-
- mRemote.transact(IContentProvider.QUERY_ENTITIES_TRANSACTION, data, reply, 0);
-
- DatabaseUtils.readExceptionFromParcel(reply);
-
- IBinder entityIteratorBinder = reply.readStrongBinder();
-
- data.recycle();
- reply.recycle();
-
- return new RemoteEntityIterator(IEntityIterator.Stub.asInterface(entityIteratorBinder));
- }
-
- /**
- * @hide
- */
- static class RemoteEntityIterator implements EntityIterator {
- private final IEntityIterator mEntityIterator;
- RemoteEntityIterator(IEntityIterator entityIterator) {
- mEntityIterator = entityIterator;
- }
-
- public boolean hasNext() throws RemoteException {
- return mEntityIterator.hasNext();
- }
-
- public Entity next() throws RemoteException {
- return mEntityIterator.next();
- }
-
- public void reset() throws RemoteException {
- mEntityIterator.reset();
- }
-
- public void close() {
- try {
- mEntityIterator.close();
- } catch (RemoteException e) {
- // doesn't matter
- }
- }
- }
-
public String getType(Uri url) throws RemoteException
{
Parcel data = Parcel.obtain();