public final class CursorToBulkCursorAdaptor extends BulkCursorNative implements IBinder.DeathRecipient
If the wrapped cursor returns non-null from CrossProcessCursor.getWindow()
then it is assumed to own the window. Otherwise, the adaptor provides a
window to be filled and ensures it gets closed as needed during deactivation
and requeries.
IBinder.DeathRecipient
LOG_RUNTIME_EXCEPTION
CLOSE_TRANSACTION, DEACTIVATE_TRANSACTION, descriptor, GET_CURSOR_WINDOW_TRANSACTION, GET_EXTRAS_TRANSACTION, ON_MOVE_TRANSACTION, REQUERY_TRANSACTION, RESPOND_TRANSACTION
DUMP_TRANSACTION, FIRST_CALL_TRANSACTION, FLAG_ONEWAY, INTERFACE_TRANSACTION, LAST_CALL_TRANSACTION, LIKE_TRANSACTION, MAX_IPC_SIZE, PING_TRANSACTION, SHELL_COMMAND_TRANSACTION, SYSPROPS_TRANSACTION, TWEET_TRANSACTION
Constructor and Description |
---|
CursorToBulkCursorAdaptor(Cursor cursor,
IContentObserver observer,
String providerName) |
Modifier and Type | Method and Description |
---|---|
void |
binderDied() |
void |
close() |
void |
deactivate() |
BulkCursorDescriptor |
getBulkCursorDescriptor()
Returns an object that contains sufficient metadata to reconstruct
the cursor remotely.
|
Bundle |
getExtras() |
CursorWindow |
getWindow(int position)
Gets a cursor window that contains the specified position.
|
void |
onMove(int position)
Notifies the cursor that the position has changed.
|
int |
requery(IContentObserver observer) |
Bundle |
respond(Bundle extras) |
asBinder, asInterface, onTransact
attachInterface, blockUntilThreadAvailable, clearCallingIdentity, disableTracing, dump, dump, dumpAsync, enableTracing, finalize, flushPendingCommands, getCallingPid, getCallingUid, getCallingUserHandle, getInterfaceDescriptor, getThreadStrictModePolicy, getTransactionTracker, isBinderAlive, isProxy, isTracingEnabled, joinThreadPool, linkToDeath, onShellCommand, pingBinder, queryLocalInterface, restoreCallingIdentity, setDumpDisabled, setThreadStrictModePolicy, shellCommand, transact, unlinkToDeath
public void binderDied()
binderDied
in interface IBinder.DeathRecipient
public BulkCursorDescriptor getBulkCursorDescriptor()
public CursorWindow getWindow(int position)
IBulkCursor
getWindow
in interface IBulkCursor
public void onMove(int position)
IBulkCursor
#getWantsAllOnMoveCalls()
returns true.onMove
in interface IBulkCursor
position
- The new positionpublic void deactivate()
deactivate
in interface IBulkCursor
public void close()
close
in interface IBulkCursor
public int requery(IContentObserver observer)
requery
in interface IBulkCursor
public Bundle getExtras()
getExtras
in interface IBulkCursor
public Bundle respond(Bundle extras)
respond
in interface IBulkCursor