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

123456789

/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/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/list/
H A DSmartDialNumberListAdapter.java75 * @param cursor Object containing information of the associated List item.
78 protected void setHighlight(ContactListItemView view, Cursor cursor) { argument
81 if (mNameMatcher.matches(cursor.getString(PhoneQuery.DISPLAY_NAME))) {
86 Log.v(TAG, cursor.getString(PhoneQuery.DISPLAY_NAME) + " " +
92 final SmartDialMatchPosition numberMatch = mNameMatcher.matchesNumber(cursor.getString(
105 Cursor cursor = ((Cursor)getItem(position));
106 if (cursor != null) {
107 long id = cursor.getLong(PhoneQuery.PHONE_ID);
/packages/apps/Dialer/src/com/android/dialer/voicemail/
H A DVoicemailStatusHelper.java75 * @param cursor The cursor pointing to the query on {@link Status#CONTENT_URI}. The projection
78 public List<StatusMessage> getStatusMessages(Cursor cursor); argument
85 public int getNumberActivityVoicemailSources(Cursor cursor); argument
/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
H A DPhotoThumbnailAdapter.java48 public void bindView(View view, Context context, Cursor cursor) { argument
51 Drawable drawable = mDrawableFactory.drawableForItem(cursor, recycle);
58 public View newView(Context context, Cursor cursor, ViewGroup parent) { argument
65 Cursor cursor = getItem(position);
66 float width = cursor.getInt(PhotoSetLoader.INDEX_WIDTH);
67 float height = cursor.getInt(PhotoSetLoader.INDEX_HEIGHT);
/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.
H A DCursorBackedSuggestionExtras.java27 * SuggestionExtras taking values from the extra columns in a suggestion cursor.
41 static CursorBackedSuggestionExtras createExtrasIfNecessary(Cursor cursor, int position) { argument
42 List<String> extraColumns = getExtraColumns(cursor);
44 return new CursorBackedSuggestionExtras(cursor, position, extraColumns);
50 static String[] getCursorColumns(Cursor cursor) { argument
52 return cursor.getColumnNames();
60 static boolean cursorContainsExtras(Cursor cursor) { argument
61 String[] columns = getCursorColumns(cursor);
70 static List<String> getExtraColumns(Cursor cursor) { argument
71 String[] columns = getCursorColumns(cursor);
85 CursorBackedSuggestionExtras(Cursor cursor, int position, List<String> extraColumns) argument
[all...]
H A DSuggestionCursorWrapper.java24 * A suggestion cursor that delegates all methods to another SuggestionCursor.
30 public SuggestionCursorWrapper(String userQuery, SuggestionCursor cursor) { argument
32 mCursor = cursor;
/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 conjuction 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/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());
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/
H A DCommonDatabaseUtils.java33 public static String[] singleRecordToArray(Cursor cursor) { argument
36 if (cursor.moveToNext()) {
37 result = new String[cursor.getColumnCount()];
38 fillArray(cursor, result);
41 closeQuietly(cursor);
46 public static List<String[]> multiRecordToArray(Cursor cursor) { argument
49 while (cursor.moveToNext()) {
50 String[] record = new String[cursor.getColumnCount()];
51 fillArray(cursor, record);
55 closeQuietly(cursor);
60 fillArray(Cursor cursor, String[] array) argument
66 closeQuietly(Cursor cursor) argument
[all...]
/packages/providers/DownloadProvider/ui/src/com/android/providers/downloads/ui/
H A DDateSortedDownloadAdapter.java35 public DateSortedDownloadAdapter(DownloadList downloadList, Cursor cursor) { argument
36 super(downloadList, cursor,
37 cursor.getColumnIndexOrThrow(DownloadManager.COLUMN_LAST_MODIFIED_TIMESTAMP));
38 mDelegate = new DownloadAdapter(downloadList, cursor);
/packages/apps/Browser/src/com/android/browser/
H A DBrowserBookmarksAdapter.java69 CharSequence getTitle(Cursor cursor) { argument
70 int type = cursor.getInt(BookmarksLoader.COLUMN_INDEX_TYPE);
75 return cursor.getString(BookmarksLoader.COLUMN_INDEX_TITLE);
/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/calllog/
H A DCallLogGroupBuilder.java50 * It assumes that the cursor will not change during its execution.
54 public void addGroups(Cursor cursor) { argument
55 final int count = cursor.getCount();
61 cursor.moveToFirst();
63 String firstNumber = cursor.getString(CallLogQuery.NUMBER);
65 int firstCallType = cursor.getInt(CallLogQuery.CALL_TYPE);
66 while (cursor.moveToNext()) {
67 // The number of the current row in the cursor.
68 final String currentNumber = cursor.getString(CallLogQuery.NUMBER);
69 final int callType = cursor
[all...]
H A DIntentProvider.java69 final Cursor cursor, final int position, final long id, final int groupSize) {
73 if (cursor.isClosed()) {
74 // There are reported instances where the cursor is already closed.
77 Log.e(TAG, "getCallDetailIntentProvider() cursor is already closed.");
81 cursor.moveToPosition(position);
85 String voicemailUri = cursor.getString(CallLogQuery.VOICEMAIL_URI);
93 // We want to restore the position in the cursor at the end.
97 ids[index] = cursor.getLong(CallLogQuery.ID);
98 cursor.moveToNext();
68 getCallDetailIntentProvider( final Cursor cursor, final int position, final long id, final int groupSize) argument
/packages/apps/Email/tests/src/com/android/email/activity/
H A DMailboxFragmentAdapterTest.java82 Cursor cursor = MailboxFragmentAdapter.CombinedMailboxLoader.buildCombinedMailboxes(c,
86 assertEquals(4, cursor.getCount());
89 assertTrue(cursor.moveToFirst());
90 checkSpecialMailboxRow(cursor, Mailbox.QUERY_ALL_INBOXES, Mailbox.TYPE_INBOX, 2);
93 assertTrue(cursor.moveToNext());
94 checkSpecialMailboxRow(cursor, Mailbox.QUERY_ALL_FAVORITES, Mailbox.TYPE_MAIL, 3);
97 assertTrue(cursor.moveToNext());
98 checkSpecialMailboxRow(cursor, Mailbox.QUERY_ALL_DRAFTS, Mailbox.TYPE_DRAFTS, 4);
101 assertTrue(cursor.moveToNext());
102 checkSpecialMailboxRow(cursor, Mailbo
114 checkSpecialMailboxRow(Cursor cursor, long id, int type, int count) argument
[all...]

Completed in 432 milliseconds

123456789