| /development/samples/ApiDemos/src/com/example/android/apis/app/ |
| AlertDialogSamples.java | 33 import android.database.Cursor; 292 Cursor cursor = managedQuery(ContactsContract.Contacts.CONTENT_URI, field in class:AlertDialogSamples 296 .setMultiChoiceItems(cursor, 412 /* Display a list of checkboxes, backed by a cursor */
|
| /development/samples/ApiDemos/src/com/example/android/apis/content/ |
| DocumentsSample.java | 23 import android.database.Cursor; 293 Cursor c = cr.query(child, new String[] {
|
| /external/autotest/client/tests/kvm/tests/ |
| stepmaker.py | 258 # Create empty cursor 261 cursor = gtk.gdk.Cursor(pix, pix, color, color, 0, 0) 262 self.event_box.window.set_cursor(cursor) 311 self.event_box.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.CROSSHAIR))
|
| /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
| ShadowContentResolver.java | 6 import android.database.Cursor; 23 private TestCursor cursor; field in class:ShadowContentResolver 118 public final Cursor query(Uri uri, String[] projection, String selection, 282 public void setCursor(TestCursor cursor) { 283 this.cursor = cursor; 337 } else if (cursor != null) { 338 return cursor;
|
| /external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/ |
| TelecomManagerFacade.java | 30 import android.database.Cursor; 333 Cursor c = resolver.query(uri, new String[] {
|
| /frameworks/base/core/java/android/content/ |
| ContentProviderOperation.java | 20 import android.database.Cursor; 325 final Cursor cursor = provider.query(mUri, projection, mSelection, selectionArgs, null); local 327 numRows = cursor.getCount(); 329 while (cursor.moveToNext()) { 331 final String cursorValue = cursor.getString(i); 344 cursor.close();
|
| /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
| RootsCache.java | 31 import android.database.Cursor; 322 Cursor cursor = null; local 325 cursor = client.query(rootsUri, null, null, null, null); 326 while (cursor.moveToNext()) { 327 final RootInfo root = RootInfo.fromRootsCursor(authority, cursor); 333 IoUtils.closeQuietly(cursor);
|
| /frameworks/base/packages/WAPPushManager/src/com/android/smspush/ |
| WapPushManager.java | 26 import android.database.Cursor; 123 Cursor cur = db.query(APPID_TABLE_NAME,
|
| /frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/ |
| PhotoViewFragment.java | 24 import android.database.Cursor; 341 // If we don't have a view, the fragment has been paused. We'll get the cursor again later. 524 public void onCursorChanged(Cursor cursor) { 527 // received an onCursorChanged without attaching to an activity. Ignore this cursor 532 // If the cursor changes, and new items are added at an earlier position than 534 // try to find a photo with the same url and move the cursor to that position. 535 if (cursor.moveToPosition(mPosition) && !isPhotoBound()) { 536 mCallback.onCursorChanged(this, cursor); 544 mResolvedPhotoUri = mAdapter.getPhotoUri(cursor); [all...] |
| /frameworks/opt/telephony/src/java/android/telephony/ |
| CellBroadcastMessage.java | 21 import android.database.Cursor; 36 * in the database cursor returned by the ContentProvider. 125 * @param cursor an open SQLite cursor pointing to the row to read 129 public static CellBroadcastMessage createFromCursor(Cursor cursor) { 130 int geoScope = cursor.getInt( 131 cursor.getColumnIndexOrThrow(Telephony.CellBroadcasts.GEOGRAPHICAL_SCOPE)); 132 int serialNum = cursor.getInt( 133 cursor.getColumnIndexOrThrow(Telephony.CellBroadcasts.SERIAL_NUMBER)) [all...] |
| /frameworks/support/core-utils/java/android/support/v4/content/ |
| FileProvider.java | 29 import android.database.Cursor; 417 * @param projection The list of columns to put into the {@link Cursor}. If null all columns are 427 * the resulting {@link Cursor}. 428 * @return A {@link Cursor} containing the results of the query. 432 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, 457 final MatrixCursor cursor = new MatrixCursor(cols, 1); local 458 cursor.addRow(values); 459 return cursor; [all...] |
| /frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
| AlertDialogCursorTest.java | 21 import android.database.Cursor; 72 private Cursor mCursor; 122 // Close the cursor on the UI thread as the list view in the alert dialog 123 // will get notified of any change to the underlying cursor.
|
| /packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
| BluetoothOppReceiver.java | 46 import android.database.Cursor; 196 Cursor cursor = context.getContentResolver().query(intent.getData(), null, null, null, local 198 if (cursor != null) { 199 if (cursor.moveToFirst()) { 200 int statusColumn = cursor.getColumnIndexOrThrow(BluetoothShare.STATUS); 201 int status = cursor.getInt(statusColumn); 202 int visibilityColumn = cursor.getColumnIndexOrThrow(BluetoothShare.VISIBILITY); 203 int visibility = cursor.getInt(visibilityColumn); 204 int userConfirmationColumn = cursor [all...] |
| /packages/apps/Calendar/src/com/android/calendar/ |
| DeleteEventHelper.java | 30 import android.database.Cursor; 112 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { 113 if (cursor == null) { 116 cursor.moveToFirst(); 118 EditEventHelper.setModelFromCursor(mModel, cursor); 119 cursor.close(); 253 * @param cursor the database cursor containing the required fields
|
| /packages/apps/Calendar/src/com/android/calendar/event/ |
| AttendeesView.java | 31 import android.database.Cursor; 418 protected void onQueryComplete(int queryIndex, Object cookie, Cursor cursor) { 419 if (cursor == null || cookie == null) { 421 Log.d(TAG, "onQueryComplete: cursor=" + cursor + ", cookie=" + cookie); 430 if (cursor.moveToFirst()) { 431 final long contactId = cursor.getLong(EMAIL_PROJECTION_CONTACT_ID_INDEX); 436 cursor.getString(EMAIL_PROJECTION_CONTACT_LOOKUP_INDEX); 439 final long photoId = cursor.getLong(EMAIL_PROJECTION_PHOTO_ID_INDEX) [all...] |
| /packages/apps/Calendar/src/com/android/calendar/widget/ |
| CalendarAppWidgetModel.java | 23 import android.database.Cursor; 263 public void buildFromCursor(Cursor cursor, String timeZone) { 277 cursor.moveToPosition(-1); 279 while (cursor.moveToNext()) { 280 final int rowId = cursor.getPosition(); 281 final long eventId = cursor.getLong(CalendarAppWidgetService.INDEX_EVENT_ID); 282 final boolean allDay = cursor.getInt(CalendarAppWidgetService.INDEX_ALL_DAY) != 0; 283 long start = cursor.getLong(CalendarAppWidgetService.INDEX_BEGIN); 284 long end = cursor.getLong(CalendarAppWidgetService.INDEX_END) [all...] |
| /packages/apps/ContactsCommon/src/com/android/contacts/common/interactions/ |
| ImportExportDialogFragment.java | 28 import android.database.Cursor; 232 final Cursor cursor = getActivity().getContentResolver().query( local 235 if (cursor != null) { 237 if (!cursor.moveToFirst()) { 249 uriListBuilder.append(cursor.getString(0)); 251 } while (cursor.moveToNext()); 261 cursor.close();
|
| /packages/apps/Dialer/src/com/android/dialer/ |
| SpecialCharSequenceMgr.java | 29 import android.database.Cursor; 452 * we're handed the ADN cursor. 455 protected void onNotNullableQueryComplete(int token, Object cookie, Cursor c) { 470 // if the TextView is valid, and the cursor is valid and positionable on the
|
| /packages/apps/Email/tests/src/com/android/email/ |
| LegacyConversionsTests.java | 21 import android.database.Cursor; 113 Cursor c = mProviderContext.getContentResolver().query(uri, Attachment.CONTENT_PROJECTION,
|
| /packages/apps/KeyChain/src/com/android/keychain/ |
| KeyChainService.java | 25 import android.database.Cursor; 443 Cursor cursor = null; local 446 cursor = db.query(TABLE_GRANTS, 448 while (cursor.moveToNext()) { 449 final int uid = cursor.getInt(0); 461 if (cursor != null) { 462 cursor.close();
|
| /packages/apps/Launcher3/tests/src/com/android/launcher3/ |
| BindWidgetTest.java | 11 import android.database.Cursor; 42 private Cursor mCursor;
|
| /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
| DownloadPackageTask.java | 29 import android.database.Cursor; 148 Cursor c = mDlm.query(q);
|
| /packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
| SyncMessageBatch.java | 19 import android.database.Cursor; 301 Cursor cursor = null; local 304 cursor = db.rawQuery("SELECT " + ConversationColumns._ID 308 if (cursor != null && cursor.moveToFirst()) { 309 Assert.isTrue(cursor.getCount() == 1); 310 foundConversationId = cursor.getString(0); 313 if (cursor != null) { 314 cursor.close() [all...] |
| /packages/apps/Messaging/src/com/android/messaging/ui/appsettings/ |
| ApnEditorActivity.java | 24 import android.database.Cursor; 137 private Cursor mCursor;
|
| /packages/apps/Music/src/com/android/music/ |
| AudioPreview.java | 24 import android.database.Cursor; 131 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { 132 if (cursor != null && cursor.moveToFirst()) { 134 int titleIdx = cursor.getColumnIndex(MediaStore.Audio.Media.TITLE); 135 int artistIdx = cursor.getColumnIndex(MediaStore.Audio.Media.ARTIST); 136 int idIdx = cursor.getColumnIndex(MediaStore.Audio.Media._ID); 137 int displaynameIdx = cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME); 140 mMediaId = cursor.getLong(idIdx) [all...] |