/frameworks/base/core/java/android/content/ |
H A D | AsyncQueryHandler.java | 77 Cursor cursor; 79 cursor = resolver.query(args.uri, args.projection, 82 // Calling getCount() causes the cursor window to be filled, 84 if (cursor != null) { 85 cursor.getCount(); 89 cursor = null; 92 args.result = cursor; 284 * @param cursor The cursor holding the results from the query. 286 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { argument [all...] |
/frameworks/base/core/java/android/provider/ |
H A D | BrowserContract.java | 330 public static final String CONTENT_TYPE = "vnd.android.cursor.dir/bookmark"; 335 public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/bookmark"; 452 public static final String CONTENT_TYPE = "vnd.android.cursor.dir/browser-history"; 457 public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/browser-history"; 475 public static final String CONTENT_TYPE = "vnd.android.cursor.dir/searches"; 480 public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/searches"; 581 public static final String CONTENT_TYPE = "vnd.android.cursor.dir/images"; 586 public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/images"; 654 public static final String CONTENT_TYPE = "vnd.android.cursor.dir/image_mappings"; 659 public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor [all...] |
H A D | CallLog.java | 140 public static final String CONTENT_TYPE = "vnd.android.cursor.dir/calls"; 146 public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/calls"; 482 final Cursor cursor; 488 cursor = resolver.query(Phone.CONTENT_URI, 496 cursor = resolver.query( 505 if (cursor != null) { 507 if (cursor.getCount() > 0 && cursor.moveToFirst()) { 508 final String dataId = cursor.getString(0); 517 cursor [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | MultiAutoCompleteTextView.java | 220 * <code>cursor</code> within <code>text</code>. 222 public int findTokenStart(CharSequence text, int cursor); argument 226 * that begins at offset <code>cursor</code> within <code>text</code>. 228 public int findTokenEnd(CharSequence text, int cursor); argument 242 public int findTokenStart(CharSequence text, int cursor) { argument 243 int i = cursor; 248 while (i < cursor && text.charAt(i) == ' ') { 255 public int findTokenEnd(CharSequence text, int cursor) { argument 256 int i = cursor;
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/ |
H A D | BaseCursorPagerAdapter.java | 33 * Page adapter for use with an BaseCursorLoader. Unlike other cursor adapters, this has no 43 /** Mapping of row ID to cursor position */ 51 * @param c The cursor from which to get the data. 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 already 67 public abstract Fragment getItem(Context context, Cursor cursor, int position); argument 69 // TODO: This shouldn't just return null - maybe it needs to wait for a cursor to be supplied? 91 throw new IllegalStateException("this should only be called when the cursor i 202 convertToString(Cursor cursor) argument [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | LockSettingsStorage.java | 106 Cursor cursor; 109 if ((cursor = db.query(TABLE, COLUMNS_FOR_QUERY, 113 if (cursor.moveToFirst()) { 114 result = cursor.getString(0); 116 cursor.close(); 132 Cursor cursor; 134 if ((cursor = db.query(TABLE, COLUMNS_FOR_PREFETCH, 138 while (cursor.moveToNext()) { 139 String key = cursor.getString(0); 140 String value = cursor [all...] |
/frameworks/base/core/tests/coretests/src/android/content/ |
H A D | ContentQueryMapTest.java | 58 Cursor cursor = r.query( 66 cursor, Settings.System.NAME, true, null);
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | CallerInfoAsyncQuery.java | 242 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { argument 253 if (cursor != null) { 254 cursor.close(); 261 if (cursor != null) { 262 cursor.close(); 286 mCallerInfo = CallerInfo.getCallerInfo(mContext, mQueryUri, cursor); 342 if (cursor != null) { 343 cursor.close();
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | RecentLoader.java | 58 // TODO: clean up cursor ownership so background thread doesn't traverse 93 // TODO: create better transfer of ownership around cursor to ensure its 131 final Cursor cursor = client.query( 133 mWithRoot = new RootCursorWrapper(authority, rootId, cursor, MAX_DOCS_FROM_ROOT); 203 final Cursor cursor = task.get(); 204 if (cursor == null) continue; 207 cursor, mState.acceptMimes, RECENT_REJECT_MIMES, rejectBefore) { 210 // Ignored, since we manage cursor lifecycle internally 252 result.cursor = sorted;
|
H A D | RecentsCreateFragment.java | 162 final Cursor cursor = resolver.query( 165 while (cursor != null && cursor.moveToNext()) { 166 final byte[] rawStack = cursor.getBlob( 167 cursor.getColumnIndex(RecentColumns.STACK)); 183 IoUtils.closeQuietly(cursor);
|
H A D | DirectoryFragment.java | 438 final Cursor cursor = mAdapter.getItem(position); 439 if (cursor != null) { 440 final String docMimeType = getCursorString(cursor, Document.COLUMN_MIME_TYPE); 441 final int docFlags = getCursorInt(cursor, Document.COLUMN_FLAGS); 443 final DocumentInfo doc = DocumentInfo.fromDirectoryCursor(cursor); 482 final Cursor cursor = mAdapter.getItem(checked.keyAt(i)); 483 final DocumentInfo doc = DocumentInfo.fromDirectoryCursor(cursor); 521 final Cursor cursor = mAdapter.getItem(position); 522 if (cursor != null) { 523 final String docMimeType = getCursorString(cursor, Documen [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | UserInfoController.java | 165 final Cursor cursor = context.getContentResolver().query( 170 if (cursor != null) { 172 if (cursor.moveToFirst()) { 173 name = cursor.getString(cursor.getColumnIndex( 177 cursor.close();
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | SmsNumberUtils.java | 260 Cursor cursor = null; 262 cursor = context.getContentResolver().query(MccIdd.CONTENT_URI, projection, 264 if (cursor.getCount() > 0) { 265 while (cursor.moveToNext()) { 266 String idd = cursor.getString(0); 275 if (cursor != null) { 276 cursor.close(); 463 Cursor cursor = null; 466 cursor = context.getContentResolver().query(MccLookup.CONTENT_URI, 469 if (cursor [all...] |
H A D | InboundSmsHandler.java | 682 Cursor cursor = null; 691 cursor = mResolver.query(sRawUri, PDU_SEQUENCE_PORT_PROJECTION, 694 int cursorCount = cursor.getCount(); 706 while (cursor.moveToNext()) { 708 int index = cursor.getInt(SEQUENCE_COLUMN) - tracker.getIndexOffset(); 710 pdus[index] = HexDump.hexStringToByteArray(cursor.getString(PDU_COLUMN)); 714 if (index == 0 && !cursor.isNull(DESTINATION_PORT_COLUMN)) { 715 int port = cursor.getInt(DESTINATION_PORT_COLUMN); 727 if (cursor != null) { 728 cursor [all...] |
/frameworks/opt/chips/src/com/android/ex/chips/ |
H A D | BaseRecipientAdapter.java | 162 public TemporaryEntry(Cursor cursor, Long directoryId) { argument 163 this.displayName = cursor.getString(Queries.Query.NAME); 164 this.destination = cursor.getString(Queries.Query.DESTINATION); 165 this.destinationType = cursor.getInt(Queries.Query.DESTINATION_TYPE); 166 this.destinationLabel = cursor.getString(Queries.Query.DESTINATION_LABEL); 167 this.contactId = cursor.getLong(Queries.Query.CONTACT_ID); 169 this.dataId = cursor.getLong(Queries.Query.DATA_ID); 170 this.thumbnailUriString = cursor.getString(Queries.Query.PHOTO_THUMBNAIL_URI); 171 this.displayNameSource = cursor.getInt(Queries.Query.DISPLAY_NAME_SOURCE); 172 this.lookupKey = cursor [all...] |
/frameworks/base/core/java/android/database/ |
H A D | AbstractCursor.java | 31 * This is an abstract cursor class that handles a lot of the common code 56 * the column at {@link #mRowIdColumnIndex} for the current row this cursor is 98 // TODO implement getBlob in all cursor types 106 * If the cursor is backed by a {@link CursorWindow}, returns a pre-filled 107 * window with the contents of the cursor, otherwise null. 109 * @return The pre-filled window that backs this cursor, or null if none. 152 * This function is called every time the cursor is successfully scrolled 155 * cursor will scroll to the beforeFirst position. 196 // Make sure position isn't past the end of the cursor 203 // Make sure position isn't before the beginning of the cursor 446 SelfContentObserver(AbstractCursor cursor) argument [all...] |
H A D | CursorWrapper.java | 24 * Wrapper class for Cursor that delegates all calls to the actual cursor object. The primary 25 * use for this class is to extend a cursor while overriding only a subset of its methods. 32 * Creates a cursor wrapper. 33 * @param cursor The underlying cursor to wrap. 35 public CursorWrapper(Cursor cursor) { argument 36 mCursor = cursor; 40 * Gets the underlying cursor that is wrapped by this instance. 42 * @return The wrapped cursor.
|
/frameworks/base/cmds/content/src/com/android/commands/content/ |
H A D | Content.java | 535 Cursor cursor = provider.query(null, mUri, mProjection, mWhere, null, mSortOrder, null); 536 if (cursor == null) { 541 if (cursor.moveToFirst()) { 548 final int columnCount = cursor.getColumnCount(); 553 String columnName = cursor.getColumnName(i); 555 final int columnIndex = cursor.getColumnIndex(columnName); 556 final int type = cursor.getType(columnIndex); 559 columnValue = String.valueOf(cursor.getFloat(columnIndex)); 562 columnValue = String.valueOf(cursor.getLong(columnIndex)); 565 columnValue = cursor [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
H A D | SqliteWrapper.java | 67 public static boolean requery(Context context, Cursor cursor) { argument 69 return cursor.requery();
|
/frameworks/base/telephony/java/android/telephony/ |
H A D | PhoneNumberFormattingTextWatcher.java | 124 * Generate the formatted number by ignoring all non-dialable chars and stick the cursor to the 126 * removed then the cursor should be behind '3' instead of '-'. 128 private String reformat(CharSequence s, int cursor) { argument 129 // The index of char to the leftward of the cursor. 130 int curIndex = cursor - 1;
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
H A D | TrackerProvider.java | 115 Cursor cursor = db.query(TABLE_NAME, projection, selection, 118 return cursor;
|
/frameworks/opt/telephony/src/java/com/google/android/mms/util/ |
H A D | SqliteWrapper.java | 79 public static boolean requery(Context context, Cursor cursor) { argument 81 return cursor.requery();
|
/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | DatabaseGeneralTest.java | 215 Cursor cursor = mDatabase.rawQuery( 222 assertNotNull(cursor); 223 assertTrue(cursor.moveToFirst()); 226 "equal", cursor.getString(0)); 229 "not equal", cursor.getString(0)); 232 if (cursor != null) { 233 cursor.close(); 374 Cursor cursor; 378 cursor = db1.query("db1", null, null, null, null, null, null); 379 assertNotNull("Cursor is null", cursor); [all...] |
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/ |
H A D | TrackerActivity.java | 176 Cursor cursor = trackerData.query(tagFilter); 183 while ((line = trackerData.getNextOutput(cursor)) != null) { 197 if (cursor != null) { 198 cursor.close();
|
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
H A D | DownloadManagerTestApp.java | 187 Cursor cursor = getCursor(dlRequest); 190 assertTrue("Unable to query last initiated download!", cursor.moveToFirst()); 192 int columnIndex = cursor.getColumnIndex(DownloadManager.COLUMN_STATUS); 193 int status = cursor.getInt(columnIndex); 207 cursor.close(); 238 Cursor cursor = getCursor(dlRequest); 250 cursor.close();
|