Searched defs:cursor (Results 1 - 25 of 274) sorted by relevance

1234567891011

/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastCursorAdapter.java32 public CellBroadcastCursorAdapter(Context context, Cursor cursor) { argument
34 super(context, cursor, 0);
38 * Makes a new view to hold the data pointed to by cursor.
40 * @param cursor The cursor from which to get the data. The cursor is already
46 public View newView(Context context, Cursor cursor, ViewGroup parent) { argument
47 CellBroadcastMessage message = CellBroadcastMessage.createFromCursor(cursor);
58 * Bind an existing view to the data pointed to by cursor
61 * @param cursor Th
65 bindView(View view, Context context, Cursor cursor) argument
[all...]
/packages/apps/Music/src/com/android/music/
H A DMusicAlphabetIndexer.java30 public MusicAlphabetIndexer(Cursor cursor, int sortedColumnIndex, CharSequence alphabet) { argument
31 super(cursor, sortedColumnIndex, alphabet);
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DConversationCursorOperationListener.java24 * Marks all contents of this cursor as seen.
37 * wrapped cursor, or returns.
39 public static void markContentsSeen(final Cursor cursor) { argument
40 if (cursor == null) {
44 if (cursor instanceof ConversationCursorOperationListener) {
45 ((ConversationCursorOperationListener) cursor).markContentsSeen();
46 } else if (cursor instanceof CursorWrapper) {
47 markContentsSeen(((CursorWrapper) cursor).getWrappedCursor());
54 * wrapped cursor, or returns.
56 public static void emptyFolder(final Cursor cursor) { argument
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
H A DCloseUtils.java27 /** If the argument is non-null, close the cursor. */
28 public static void closeQuietly(Cursor cursor) { argument
29 if (cursor != null) {
30 cursor.close();
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppTransferAdapter.java66 public void bindView(View view, Context context, Cursor cursor) { argument
71 int status = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.STATUS));
72 int dir = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.DIRECTION));
85 String title = cursor.getString(
86 cursor.getColumnIndexOrThrow(BluetoothShare.FILENAME_HINT));
95 int destinationColumnId = cursor.getColumnIndexOrThrow(BluetoothShare.DESTINATION);
96 BluetoothDevice remoteDevice = adapter.getRemoteDevice(cursor
102 long totalBytes = cursor
[all...]
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/pbap/
H A DContactCursorFilterTest.java36 Cursor cursor = BluetoothPbapVcardManager.ContactCursorFilter.filterByRange(mc, 1, 2);
37 assertEquals(2, cursor.getCount());
38 assertEquals(1L, getContactsIdFromCursor(cursor, 0));
39 assertEquals(2L, getContactsIdFromCursor(cursor, 1));
40 cursor.close();
43 cursor = BluetoothPbapVcardManager.ContactCursorFilter.filterByRange(mc, 1, 3);
44 assertEquals(3, cursor.getCount());
45 assertEquals(1L, getContactsIdFromCursor(cursor, 0));
46 assertEquals(2L, getContactsIdFromCursor(cursor, 1));
47 assertEquals(3L, getContactsIdFromCursor(cursor,
156 getContactsIdFromCursor(Cursor cursor, int offset) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/list/
H A DGroupMemberTileAdapter.java50 protected void saveNumFrequentsFromCursor(Cursor cursor) { argument
60 protected int getDividerPosition(Cursor cursor) { argument
/packages/apps/Contacts/src/com/android/contacts/util/
H A DNotifyingAsyncQueryHandler.java40 void onQueryComplete(int token, Object cookie, Cursor cursor); argument
58 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { argument
61 listener.onQueryComplete(token, cookie, cursor);
62 } else if (cursor != null) {
63 cursor.close();
/packages/apps/Dialer/src/com/android/dialer/filterednumber/
H A DBlockedNumbersAdapter.java52 public void bindView(View view, final Context context, Cursor cursor) { argument
53 super.bindView(view, context, cursor);
54 final Integer id = cursor.getInt(cursor.getColumnIndex(FilteredNumberColumns._ID));
55 final String countryIso = cursor.getString(cursor.getColumnIndex(
57 final String number = cursor.getString(cursor.getColumnIndex(FilteredNumberColumns.NUMBER));
58 final String normalizedNumber = cursor.getString(cursor
[all...]
H A DViewNumbersToImportAdapter.java48 public void bindView(View view, Context context, Cursor cursor) { argument
49 super.bindView(view, context, cursor);
51 final String number = cursor.getString(
/packages/apps/Dialer/src/com/android/dialer/voicemail/
H A DVoicemailStatusHelper.java79 * @param cursor The cursor pointing to the query on {@link Status#CONTENT_URI}. The projection
83 public List<StatusMessage> getStatusMessages(Cursor cursor); argument
90 public int getNumberActivityVoicemailSources(Cursor cursor); argument
/packages/apps/Email/provider_src/com/android/email/provider/
H A DEmailMessageCursor.java37 * This class wraps a cursor for the purpose of bypassing the CursorWindow object for the
39 * large email message can exceed that limit and cause the cursor to fail to load.
42 * load the content from the provider, skipping the cursor window.
44 * This will still potentially blow up if this cursor gets wrapped in a CrossProcessCursorWrapper
46 * passing a cursor back to UnifiedEmail this shouldn't be an issue.
55 public EmailMessageCursor(final Context c, final Cursor cursor, final String htmlColumn, argument
57 super(cursor);
58 mHtmlColumnIndex = cursor.getColumnIndex(htmlColumn);
59 mTextColumnIndex = cursor.getColumnIndex(textColumn);
60 final int cursorSize = cursor
[all...]
/packages/apps/Gallery2/src/com/android/photos/adapters/
H A DAlbumSetCursorAdapter.java50 public void bindView(View v, Context context, Cursor cursor) { argument
53 titleTextView.setText(cursor.getString(AlbumSetLoader.INDEX_TITLE));
57 int count = cursor.getInt(AlbumSetLoader.INDEX_COUNT);
64 Drawable drawable = mDrawableFactory.drawableForItem(cursor, recycle);
71 public View newView(Context context, Cursor cursor, ViewGroup parent) { argument
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
H A DGalleryGridAdapter.java31 * Bridges between the image cursor loaded by GalleryBoundCursorLoader and the GalleryGridView.
36 public GalleryGridAdapter(final Context context, final Cursor cursor) { argument
37 super(context, cursor, 0);
48 public void bindView(final View view, final Context context, final Cursor cursor) { argument
51 galleryImageView.bind(cursor, mGgivHostInterface);
58 public View newView(final Context context, final Cursor cursor, final ViewGroup parent) { argument
/packages/apps/Messaging/tests/src/com/android/messaging/ui/conversationlist/
H A DConversationListFragmentTest.java73 * @param cursor
75 private void loadWith(final Cursor cursor) { argument
87 fragment.onConversationListCursorUpdated(mMockConversationListData, cursor);
94 * Verifies that list view gets correctly populated given a cursor.
97 final Cursor cursor = TestDataFactory.getConversationListCursor();
98 loadWith(cursor);
101 //assertEquals(cursor.getCount(), listView.getCount());
102 assertEquals(cursor.getCount(), listView.getChildCount());
106 * Verifies that 'empty list' promo is rendered with an empty cursor.
122 final Cursor cursor
[all...]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DCursorBackedSourceResult.java34 public CursorBackedSourceResult(GoogleSource source, String userQuery, Cursor cursor) { argument
35 super(userQuery, cursor);
H A DSuggestionPosition.java30 public SuggestionPosition(SuggestionCursor cursor) { argument
31 this(cursor, cursor.getPosition());
34 public SuggestionPosition(SuggestionCursor cursor, int suggestionPos) { argument
35 mCursor = cursor;
44 * Gets the suggestion cursor, moved to point to the right suggestion.
/packages/apps/UnifiedEmail/src/com/android/mail/content/
H A DObjectCursor.java24 * A cursor-backed type that can return an object for each row of the cursor. This class is most
26 * 1. The cursor is returned in conjunction with an AsyncTaskLoader and created off the UI thread.
27 * 2. A single row in the cursor specifies everything for an object.
30 /** The cache for objects in the underlying cursor. */
36 * Creates a new object cursor.
37 * @param cursor the underlying cursor this wraps.
39 public ObjectCursor(Cursor cursor, CursorCreator<T> factory) { argument
40 super(cursor);
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DConversationLongPressTipView.java42 public void onUpdate(Folder folder, ConversationCursor cursor) { argument
/packages/experimental/LoaderApp/src/com/android/loaderapp/
H A DCursorFactoryListAdapter.java35 public void bindView(View view, Context context, Cursor cursor); argument
55 public void bindView(View view, Context context, Cursor cursor) { argument
57 name.setText(cursor.getString(ContactsListLoader.COLUMN_NAME));
62 super(context, null, /* disable content observers for the cursor */0);
67 public View newView(Context context, Cursor cursor, ViewGroup parent) { argument
69 mViewFactory.bindView(view, context, cursor);
74 public void bindView(View view, Context context, Cursor cursor) { argument
75 mViewFactory.bindView(view, context, cursor);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DMemoryCursor.java24 * Implementation of an in-memory cursor backed by a cursor window.
35 public void fillFromCursor(Cursor cursor) { argument
36 DatabaseUtils.cursorFillWindow(cursor, 0, getWindow());
H A DPhoneLookupWithStarPrefix.java34 * Returns a cursor with a subset of the rows passed into this function. If {@param number}
35 * starts with a "*" then only rows from {@param cursor} that have a number equal to
37 * only rows from {@param cursor} that have numbers without starting "*" characters
43 * @param cursor this function takes ownership of the cursor. The calling scope MUST NOT
44 * use or close() the cursor passed into this function. The cursor must contain
47 * @return a cursor that the calling context owns
49 public static Cursor removeNonStarMatchesFromCursor(String number, Cursor cursor) { argument
52 Cursor unreturnedCursor = cursor;
122 matchingNumberStartsWithStar(Cursor cursor) argument
134 cursorValue(Cursor cursor, int column) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/data/
H A DFilmstripContentQueries.java41 * Convert a cursor at a given location to a Local Data object.
43 * @param cursor the current cursor state.
44 * @return a LocalData object that represents the current cursor state.
46 public I get(Cursor cursor); argument
58 * @param factory an object that can turn a given cursor into a LocalData object.
67 Cursor cursor = contentResolver.query(contentUri, projection,
70 if (cursor != null) {
71 while (cursor.moveToNext()) {
72 I item = factory.get(cursor);
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/database/
H A DNoNullCursorAsyncQueryHandler.java25 * An {@AsyncQueryHandler} that will never return a null cursor.
44 protected final void onQueryComplete(int token, Object cookie, Cursor cursor) { argument
47 super.onQueryComplete(token, projectionCookie.originalCookie, cursor);
49 if (cursor == null) {
50 cursor = new EmptyCursor(projectionCookie.projection);
52 onNotNullableQueryComplete(token, projectionCookie.originalCookie, cursor);
55 protected abstract void onNotNullableQueryComplete(int token, Object cookie, Cursor cursor); argument
/packages/apps/Dialer/src/com/android/dialer/list/
H A DBlockedListSearchAdapter.java69 protected void bindView(View itemView, int partition, Cursor cursor, int position) { argument
70 super.bindView(itemView, partition, cursor, position);

Completed in 1746 milliseconds

1234567891011