| /frameworks/support/compat/jellybean/android/support/v4/content/ |
| ContentResolverCompatJellybean.java | 20 import android.database.Cursor; 26 public static Cursor query(ContentResolver resolver, Uri uri, String[] projection,
|
| /frameworks/support/core-ui/java/android/support/v4/widget/ |
| CursorAdapter.java | 21 import android.database.Cursor; 61 protected Cursor mCursor; 100 * If set the adapter will call requery() on the cursor whenever a content change 103 * @deprecated This option is discouraged, as it results in Cursor queries 112 * If set the adapter will register a content observer on the cursor and will call 114 * using this flag: you will need to unset the current Cursor from the adapter 124 * @deprecated This option is discouraged, as it results in Cursor queries 129 * @param c The cursor from which to get the data. 133 public CursorAdapter(Context context, Cursor c) { 139 * you not use this, but instead {@link #CursorAdapter(Context, Cursor, int)} [all...] |
| SimpleCursorAdapter.java | 20 import android.database.Cursor; 61 * @deprecated This option is discouraged, as it results in Cursor queries 67 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to) { 82 * @param c The database cursor. Can be null if the cursor is not available yet. 84 * if the cursor is not available yet. 88 * parameter. Can be null if the cursor is not available yet. 90 * as per {@link CursorAdapter#CursorAdapter(Context, Cursor, int)}. 92 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, 102 * constructor with their corresponding cursor columns as specified in th [all...] |
| /packages/apps/Camera2/src/com/android/camera/data/ |
| DataUtils.java | 20 import android.database.Cursor; 33 Cursor cursor = contentResolver.query(contentUri, proj, null, null, null); local 34 if (cursor == null) { 38 int columnIndex = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); 39 if (!cursor.moveToFirst()) { 42 return cursor.getString(columnIndex); 45 cursor.close();
|
| /packages/apps/Contacts/src/com/android/contacts/list/ |
| LegacyContactListAdapter.java | 21 import android.database.Cursor; 31 * A cursor adapter for the People.CONTENT_TYPE content type. 66 return ((Cursor)getItem(position)).getString(PERSON_DISPLAY_NAME_COLUMN_INDEX); 70 Cursor cursor = ((Cursor)getItem(position)); local 71 long personId = cursor.getLong(PERSON_ID_COLUMN_INDEX); 77 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { 84 protected void bindView(View itemView, int partition, Cursor cursor, int position) [all...] |
| /packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
| ProfileAndContactsLoader.java | 20 import android.database.Cursor; 83 public Cursor loadInBackground() { 85 List<Cursor> cursors = Lists.newArrayList(); 94 Cursor cursor = null; local 96 cursor = super.loadInBackground(); 100 final Cursor contactsCursor = cursor; 105 return new MergeCursor(cursors.toArray(new Cursor[cursors.size()])) { 108 // Need to get the extras from the contacts cursor [all...] |
| /packages/apps/Email/provider_src/com/android/email/provider/ |
| FolderPickerSelectorAdapter.java | 21 import android.database.Cursor; 31 public FolderPickerSelectorAdapter(Context context, Cursor folders,
|
| /packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
| BlockedParticipantsData.java | 22 import android.database.Cursor; 37 LoaderManager.LoaderCallbacks<Cursor> { 39 public void onBlockedParticipantsCursorUpdated(final Cursor cursor); 54 public Loader<Cursor> onCreateLoader(final int id, final Bundle args) { 68 public void onLoadFinished(final Loader<Cursor> loader, final Cursor cursor) { 72 mListener.onBlockedParticipantsCursorUpdated(cursor); 76 public void onLoaderReset(final Loader<Cursor> loader) [all...] |
| /packages/apps/Music/src/com/android/music/ |
| MusicAlphabetIndexer.java | 19 import android.database.Cursor; 30 public MusicAlphabetIndexer(Cursor cursor, int sortedColumnIndex, CharSequence alphabet) { 31 super(cursor, sortedColumnIndex, alphabet);
|
| /packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
| MemoryCursor.java | 19 import android.database.Cursor; 24 * Implementation of an in-memory cursor backed by a cursor window. 35 public void fillFromCursor(Cursor cursor) { 36 DatabaseUtils.cursorFillWindow(cursor, 0, getWindow());
|
| /frameworks/base/core/java/android/widget/ |
| SimpleCursorAdapter.java | 20 import android.database.Cursor; 25 * An easy adapter to map columns from a cursor to TextViews or ImageViews 32 * {@link ViewBinder#setViewValue(android.view.View, android.database.Cursor, int)} 45 * {@link #convertToString(android.database.Cursor)} and 71 * @deprecated This option is discouraged, as it results in Cursor queries 77 public SimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to) { 92 * @param c The database cursor. Can be null if the cursor is not available yet. 94 * if the cursor is not available yet. 98 * parameter. Can be null if the cursor is not available yet [all...] |
| /frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/ |
| PhotoPagerAdapter.java | 22 import android.database.Cursor; 42 Context context, android.support.v4.app.FragmentManager fm, Cursor c, 50 public Fragment getItem(Context context, Cursor cursor, int position) { 51 final String photoUri = getPhotoUri(cursor); 52 final String thumbnailUri = getThumbnailUri(cursor); 53 final String contentDescription = getPhotoName(cursor); 54 boolean loading = shouldShowLoadingIndicator(cursor); 83 public Cursor swapCursor(Cursor newCursor) [all...] |
| BaseCursorPagerAdapter.java | 21 import android.database.Cursor; 33 * Page adapter for use with an BaseCursorLoader. Unlike other cursor adapters, this has no 41 protected Cursor mCursor; 43 /** Mapping of row ID to cursor position */ 51 * @param c The cursor from which to get the data. 54 public BaseCursorPagerAdapter(Context context, FragmentManager fm, Cursor c) { 60 * Makes a fragment for the data pointed to by the cursor 63 * @param cursor The cursor from which to get the data. The cursor is alread [all...] |
| /development/tools/emulator/test-apps/SmokeTests/src/com/android/emulator/smoketests/sms/ |
| SmsTest.java | 21 import android.database.Cursor; 51 Cursor c = getSmsCursor(); 63 private Cursor getSmsCursor() throws java.lang.InterruptedException { 66 Cursor c;
|
| /external/libgdx/gdx/src/com/badlogic/gdx/graphics/ |
| Cursor.java | 8 * Represents a mouse cursor. Create a cursor via 10 * set the cursor use {@link Graphics#setCursor(Cursor)}. 13 public interface Cursor extends Disposable {
|
| /frameworks/base/core/java/android/database/sqlite/ |
| SQLiteDirectCursorDriver.java | 19 import android.database.Cursor; 24 * A cursor driver that uses the given query directly. 43 public Cursor query(CursorFactory factory, String[] selectionArgs) { 45 final Cursor cursor; local 50 cursor = new SQLiteCursor(this, mEditTable, query); 52 cursor = factory.newCursor(mDatabase, this, mEditTable, query); 60 return cursor; 75 public void cursorRequeried(Cursor cursor) { [all...] |
| /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
| DocumentsAdapter.java | 22 import android.database.Cursor; 85 static boolean isDirectory(Cursor cursor) { 86 final String mimeType = getCursorString(cursor, Document.COLUMN_MIME_TYPE); 92 Cursor cursor = model.getItem(modelId); local 93 return isDirectory(cursor); 107 void onBindDocumentHolder(DocumentHolder holder, Cursor cursor);
|
| /frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
| TrackerListHelper.java | 20 import android.database.Cursor; 50 Cursor cursor = mActivity.managedQuery(TrackerProvider.CONTENT_URI, local 53 TrackerAdapter adapter = new TrackerAdapter(mActivity, layout, cursor); 55 cursor.setNotificationUri(mActivity.getContentResolver(), 62 public TrackerAdapter(Context context, int layout, Cursor c) { 67 public void bindView(View view, Context context, Cursor cursor) { 71 .createEntry(cursor));
|
| /packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
| CellBroadcastCursorAdapter.java | 20 import android.database.Cursor; 32 public CellBroadcastCursorAdapter(Context context, Cursor cursor) { 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) [all...] |
| /packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
| GalleryGridAdapter.java | 20 import android.database.Cursor; 31 * Bridges between the image cursor loaded by GalleryBoundCursorLoader and the GalleryGridView. 36 public GalleryGridAdapter(final Context context, final Cursor cursor) { 37 super(context, cursor, 0); 48 public void bindView(final View view, final Context context, final Cursor cursor) { 51 galleryImageView.bind(cursor, mGgivHostInterface); 58 public View newView(final Context context, final Cursor cursor, final ViewGroup parent) [all...] |
| /packages/apps/UnifiedEmail/src/com/android/mail/content/ |
| ObjectCursor.java | 19 import android.database.Cursor; 24 * 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) [all...] |
| /development/samples/ApiDemos/src/com/example/android/apis/view/ |
| AutoComplete4.java | 24 import android.database.Cursor; 44 Cursor cursor = content.query(Contacts.CONTENT_URI, local 47 ContactListAdapter adapter = new ContactListAdapter(this, cursor); 57 public ContactListAdapter(Context context, Cursor c) { 63 public View newView(Context context, Cursor cursor, ViewGroup parent) { 67 view.setText(cursor.getString(COLUMN_DISPLAY_NAME)); 72 public void bindView(View view, Context context, Cursor cursor) { [all...] |
| /packages/apps/Dialer/tests/src/com/android/dialer/voicemail/ |
| VoicemailPlaybackTest.java | 20 import android.database.Cursor; 103 try (Cursor cursor = getArchivedVoicemailCursor()) { 104 assertTrue(hasContent(cursor)); 105 assertEquals(ContentUris.parseId(mVoicemailUri), getRowServerId(cursor)); 112 try (Cursor cursor = getArchivedVoicemailCursor()) { 113 if (hasContent(cursor)) { 114 getContentResolver().delete(getRowUri(cursor), null, null); 119 private Cursor getArchivedVoicemailCursor() [all...] |
| /packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/ |
| GroupsListFragment.java | 26 import android.database.Cursor; 37 public class GroupsListFragment extends LoaderManagingFragment<Cursor> 86 public void onLoadFinished(Loader loader, Cursor data) { 95 private void setData(Cursor groups) { 99 mAdapter.changeCursor(new MergeCursor(new Cursor[] { psuedoGroups, groups })); 108 Cursor cursor = (Cursor) mAdapter.getItem(position); local 109 mController.onGroupSelected(cursor.getString(GroupsListLoader.COLUMN_TITLE));
|
| /cts/tests/tests/provider/src/android/provider/cts/contacts/ |
| DeletedContactUtil.java | 23 import android.database.Cursor; 40 Cursor cursor = resolver.query(uri, projection, null, null, null); local 41 if (null != cursor) { 43 if (cursor.moveToNext()) { 44 deletedTime = cursor.getLong(0); 45 cursor.close(); 56 Cursor cursor = resolver.query(URI, projection, null, null, null); local 58 return cursor.getCount() 70 Cursor cursor = resolver.query(URI, projection, null, null, null); local 83 Cursor cursor = resolver.query(URI, projection, selection, args, null); local [all...] |