| /packages/experimental/RpcPerformance/src/com/android/rpc_performance/ |
| Provider.java | 21 import android.database.Cursor; 31 public Cursor query(Uri uri, String[] projection,
|
| /packages/providers/BookmarkProvider/src/com/android/bookmarkstore/ |
| BookmarkProvider.java | 21 import android.database.Cursor; 59 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
|
| /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/ |
| NullContentProvider.java | 20 import android.database.Cursor; 31 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
|
| /developers/samples/android/content/LoaderCursor/src/com/example/android/content/loadercursor/ |
| MainActivity.java | 22 import android.database.Cursor; 28 * of the {@link LoaderManager} to retrieve data from a {@link Cursor}. Here, a
|
| /development/samples/ApiDemos/src/com/example/android/apis/view/ |
| List7.java | 25 import android.database.Cursor; 36 * A list view example where the data comes from a cursor. 61 // Get a cursor with all numbers. 63 Cursor c = getContentResolver().query(Phone.CONTENT_URI, 70 // Give the cursor to the list adapter 81 //Get current cursor 82 Cursor c = (Cursor) parent.getItemAtPosition(position);
|
| List3.java | 20 import android.database.Cursor; 29 * data comes from a cursor, and a 39 // Get a cursor with all phones 40 Cursor c = getContentResolver().query(Phone.CONTENT_URI, 44 // Map Cursor columns to views defined in simple_list_item_2.xml 54 public boolean setViewValue(View view, Cursor cursor, int columnIndex) { 59 int type = cursor.getInt(COLUMN_TYPE); 63 label = cursor.getString(COLUMN_LABEL);
|
| /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
| CursorTest.java | 21 import com.badlogic.gdx.graphics.Cursor; 31 /** Simple test case for mouse cursor change 32 * Switch between two cursors every frame, a third cursor is used when a mouse button is pressed 35 Cursor cursor1; 36 Cursor cursor2; 37 Cursor cursor3;
|
| /external/proguard/src/proguard/gui/ |
| ProGuardRunnable.java | 65 consoleTextArea.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); 126 consoleTextArea.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
|
| ReTraceRunnable.java | 68 consoleTextArea.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); 131 consoleTextArea.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
|
| /packages/apps/Settings/src/com/android/settings/search/ |
| SettingsSearchIndexablesProvider.java | 19 import android.database.Cursor; 46 public Cursor queryXmlResources(String[] projection) { 47 MatrixCursor cursor = new MatrixCursor(INDEXABLES_XML_RES_COLUMNS); local 58 cursor.addRow(ref); 60 return cursor; 64 public Cursor queryRawData(String[] projection) { 70 public Cursor queryNonIndexableKeys(String[] projection) { 71 MatrixCursor cursor = new MatrixCursor(NON_INDEXABLES_KEYS_COLUMNS); local 72 return cursor;
|
| /packages/services/Telephony/src/com/android/phone/ |
| PhoneSearchIndexablesProvider.java | 19 import android.database.Cursor; 51 public Cursor queryXmlResources(String[] projection) { 52 MatrixCursor cursor = new MatrixCursor(INDEXABLES_XML_RES_COLUMNS); local 63 cursor.addRow(ref); 65 return cursor; 69 public Cursor queryRawData(String[] projection) { 70 MatrixCursor cursor = new MatrixCursor(INDEXABLES_RAW_COLUMNS); local 71 return cursor; 74 public Cursor queryNonIndexableKeys(String[] projection) { 75 MatrixCursor cursor = new MatrixCursor(NON_INDEXABLES_KEYS_COLUMNS) local [all...] |
| /frameworks/ex/common/java/com/android/common/ |
| Search.java | 23 import android.database.Cursor; 45 * Column name for suggestions cursor. <i>Optional.</i> This column may be 58 * Gets a cursor with search suggestions. 62 * @return a cursor with suggestions, or <code>null</null> the suggestion query failed. 64 public static Cursor getSuggestions(Context context, SearchableInfo searchable, String query) { 69 * Gets a cursor with search suggestions. 74 * the returned cursor may contain more rows. Pass {@code -1} for no limit. 75 * @return a cursor with suggestions, or <code>null</null> the suggestion query failed. 77 public static Cursor getSuggestions(Context context, SearchableInfo searchable,
|
| /frameworks/opt/photoviewer/src/com/android/ex/photo/ |
| PhotoViewCallbacks.java | 3 import android.database.Cursor; 62 * Called when the cursor that contains the photo list data 63 * is updated. Note that there is no guarantee that the cursor 65 * @param cursor the cursor containing the photo list data 67 public void onCursorChanged(Cursor cursor); 93 public void onCursorChanged(PhotoViewFragment fragment, Cursor cursor);
|
| /packages/apps/Camera2/src/com/android/camera/data/ |
| FilmstripContentQueries.java | 20 import android.database.Cursor; 41 * 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); 58 * @param factory an object that can turn a given cursor into a LocalData object. 67 Cursor cursor = contentResolver.query(contentUri, projection local [all...] |
| /packages/apps/Contacts/src/com/android/contacts/list/ |
| GroupMemberTileAdapter.java | 20 import android.database.Cursor; 50 protected void saveNumFrequentsFromCursor(Cursor cursor) { 60 protected int getDividerPosition(Cursor cursor) {
|
| /packages/apps/ContactsCommon/src/com/android/contacts/common/database/ |
| NoNullCursorAsyncQueryHandler.java | 21 import android.database.Cursor; 25 * An {@AsyncQueryHandler} that will never return a null cursor. 27 * Instead, will return a {@link Cursor} with 0 records. 44 protected final void onQueryComplete(int token, Object cookie, Cursor cursor) { 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) [all...] |
| /packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
| ConversationListAdapter.java | 20 import android.database.Cursor; 30 * Provides an interface to expose Conversation List Cursor data to a UI widget like a ListView. 37 public ConversationListAdapter(final Context context, final Cursor cursor, 39 super(context, cursor, 0); 47 * android.database.Cursor) 51 final Cursor cursor) { 53 conversationListItemView.bind(cursor, mClivHostInterface);
|
| /packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
| AttachmentLoader.java | 24 import android.database.Cursor; 40 public Cursor loadInBackground() { 48 private AttachmentCursor(Cursor inner) {
|
| /packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
| DataRowHandlerForIdentity.java | 20 import android.database.Cursor; 49 Cursor c, boolean callerIsSyncAdapter, boolean callerIsMetadataSyncAdapter) { 63 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) {
|
| ReorderingCursorWrapper.java | 19 import android.database.Cursor; 22 * Cursor wrapper that reorders rows according to supplied specific position mapping. 26 private final Cursor mCursor; 32 * @param cursor wrapped cursor 33 * @param positionMap maps wrapper cursor positions to wrapped cursor positions 36 public ReorderingCursorWrapper(Cursor cursor, int[] positionMap) { 37 if (cursor.getCount() != positionMap.length) [all...] |
| /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
| ContactUtil.java | 22 import android.database.Cursor; 49 Cursor cursor = resolver.query(uri, projection, null, null, null); local 50 if (cursor.moveToNext()) { 62 Cursor cursor = resolver.query(uri, projection, null, null, null); local 64 if (cursor.moveToNext()) { 65 return cursor.getLong(0); 68 if (cursor != null) { 69 cursor.close() [all...] |
| /cts/tests/tests/database/src/android/database/sqlite/cts/ |
| SQLiteFtsTest.java | 22 import android.database.Cursor; 64 final Cursor cursor = queryFtsTable(TEST_TABLE, "technology"); local 66 assertEquals(2, cursor.getCount()); 67 cursor.moveToPosition(0); 68 assertTrue(cursor.getString(0).contains(">TECHnology<")); 69 cursor.moveToPosition(1); 70 assertTrue(cursor.getString(0).contains(">technologies<")); 72 cursor.close(); 80 final Cursor cursor = queryFtsTable(TEST_TABLE, "technology") local 94 final Cursor cursor = queryFtsTable(TEST_TABLE, "technology"); local [all...] |
| /development/samples/ApiDemos/src/com/example/android/apis/app/ |
| QuickContactsDemo.java | 24 import android.database.Cursor; 61 Cursor c = 71 public ContactListItemAdapter(Context context, int layout, Cursor c) { 76 public void bindView(View view, Context context, Cursor cursor) { 79 cursor.copyStringToBuffer(SUMMARY_NAME_COLUMN_INDEX, cache.nameBuffer); 82 final long contactId = cursor.getLong(SUMMARY_ID_COLUMN_INDEX); 83 final String lookupKey = cursor.getString(SUMMARY_LOOKUP_KEY); 88 public View newView(Context context, Cursor cursor, ViewGroup parent) [all...] |
| /frameworks/base/core/java/android/content/ |
| ContentQueryMap.java | 20 import android.database.Cursor; 28 * Caches the contents of a cursor into a Map of String->ContentValues and optionally 29 * keeps the cache fresh by registering for updates on the content backing the cursor. The column of 33 * The cursor data is accessed by row key and column name via getValue(). 36 private volatile Cursor mCursor; 47 /** Set when a cursor change notification is received and is cleared on a call to requery(). */ 51 * Creates a ContentQueryMap that caches the content backing the cursor 53 * @param cursor the cursor whose contents should be cached 55 * @param keepUpdated true if the cursor's ContentProvider should be monitored for changes and 131 final Cursor cursor = mCursor; local [all...] |
| /frameworks/base/core/java/android/provider/ |
| SearchIndexablesProvider.java | 25 import android.database.Cursor; 106 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, 126 * columns to put into the cursor. If {@code null} all supported columns 129 public abstract Cursor queryXmlResources(String[] projection); 137 * to put into the cursor. If {@code null} all supported columns should be 140 public abstract Cursor queryRawData(String[] projection); 148 * columns to put into the cursor. If {@code null} all supported columns 151 public abstract Cursor queryNonIndexableKeys(String[] projection);
|