/frameworks/base/core/java/android/provider/ |
H A D | Browser.java | 229 * Return a cursor pointing to a list of all the bookmarks. The cursor will have a single 244 * Return a cursor pointing to a list of all visited site urls. The cursor will 398 Cursor cursor = null; 402 cursor = cr.query(History.CONTENT_URI, 406 if (cursor.moveToFirst() && cursor.getCount() >= MAX_HISTORY_COUNT) { 410 cr.delete(ContentUris.withAppendedId(History.CONTENT_URI, cursor.getLong(0)), 412 iconDb.releaseIconForPageUrl(cursor [all...] |
H A D | ContactsContract.java | 176 * A key to a boolean in the "extras" bundle of the cursor. 452 "vnd.android.cursor.dir/contact_directories"; 458 "vnd.android.cursor.item/contact_directory"; 1168 * URI parameter and cursor extras that return counts of rows grouped by the 1171 * cursor extras bundle. 1179 * the address book index as cursor extras. For most languages it is the 1181 * content of the cursor. 1189 * same order as the data in the cursor. 1611 public static final String CONTENT_TYPE = "vnd.android.cursor.dir/contact"; 1617 public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor 2890 newEntityIterator(Cursor cursor) argument 2916 EntityIteratorImpl(Cursor cursor) argument 2921 getEntityAndIncrementCursor(Cursor cursor) argument 7247 newEntityIterator(Cursor cursor) argument 7252 EntityIteratorImpl(Cursor cursor) argument 7257 getEntityAndIncrementCursor(Cursor cursor) argument [all...] |
H A D | CallLog.java | 107 public static final String CONTENT_TYPE = "vnd.android.cursor.dir/calls"; 113 public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/calls"; 352 final Cursor cursor; 358 cursor = resolver.query(Phone.CONTENT_URI, 365 cursor = resolver.query( 374 if (cursor != null) { 376 if (cursor.getCount() > 0 && cursor.moveToFirst()) { 378 .appendPath(cursor.getString(0)) 385 cursor [all...] |
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...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | InboundSmsTracker.java | 123 * @param cursor a Cursor pointing to the row to construct this SmsTracker for 125 InboundSmsTracker(Cursor cursor, boolean isCurrentFormat3gpp2) { argument 126 mPdu = HexDump.hexStringToByteArray(cursor.getString(InboundSmsHandler.PDU_COLUMN)); 128 if (cursor.isNull(InboundSmsHandler.DESTINATION_PORT_COLUMN)) { 133 int destPort = cursor.getInt(InboundSmsHandler.DESTINATION_PORT_COLUMN); 145 mTimestamp = cursor.getLong(InboundSmsHandler.DATE_COLUMN); 147 if (cursor.isNull(InboundSmsHandler.COUNT_COLUMN)) { 149 long rowId = cursor.getLong(InboundSmsHandler.ID_COLUMN); 158 mAddress = cursor.getString(InboundSmsHandler.ADDRESS_COLUMN); 159 mReferenceNumber = cursor [all...] |
H A D | SmsBroadcastUndelivered.java | 102 Cursor cursor = null; 104 cursor = mResolver.query(sRawUri, PDU_PENDING_MESSAGE_PROJECTION, null, null, null); 105 if (cursor == null) { 106 Rlog.e(TAG, "error getting pending message cursor"); 111 while (cursor.moveToNext()) { 114 tracker = new InboundSmsTracker(cursor, isCurrentFormat3gpp2); 162 if (cursor != null) { 163 cursor.close();
|
/frameworks/base/core/java/android/widget/ |
H A D | MultiAutoCompleteTextView.java | 215 * <code>cursor</code> within <code>text</code>. 217 public int findTokenStart(CharSequence text, int cursor); argument 221 * that begins at offset <code>cursor</code> within <code>text</code>. 223 public int findTokenEnd(CharSequence text, int cursor); argument 237 public int findTokenStart(CharSequence text, int cursor) { argument 238 int i = cursor; 243 while (i < cursor && text.charAt(i) == ' ') { 250 public int findTokenEnd(CharSequence text, int cursor) { argument 251 int i = cursor;
|
H A D | CursorAdapter.java | 86 * If set the adapter will call requery() on the cursor whenever a content change 98 * If set the adapter will register a content observer on the cursor and will call 115 * @param c The cursor from which to get the data. 129 * @param c The cursor from which to get the data. 132 * cursor whenever it changes so the most recent 142 * @param c The cursor from which to get the data. 188 * Returns the cursor. 189 * @return the cursor. 243 throw new IllegalStateException("this should only be called when the cursor is valid"); 246 throw new IllegalStateException("couldn't move cursor t 283 newView(Context context, Cursor cursor, ViewGroup parent) argument 293 newDropDownView(Context context, Cursor cursor, ViewGroup parent) argument 304 bindView(View view, Context context, Cursor cursor) argument 312 changeCursor(Cursor cursor) argument 364 convertToString(Cursor cursor) argument [all...] |
H A D | QuickContactBadge.java | 311 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { argument 324 if (cursor != null && cursor.moveToFirst()) { 325 long contactId = cursor.getLong(PHONE_ID_COLUMN_INDEX); 326 String lookupKey = cursor.getString(PHONE_LOOKUP_STRING_COLUMN_INDEX); 339 if (cursor != null && cursor.moveToFirst()) { 340 long contactId = cursor.getLong(EMAIL_ID_COLUMN_INDEX); 341 String lookupKey = cursor.getString(EMAIL_LOOKUP_STRING_COLUMN_INDEX); 348 if (cursor ! [all...] |
H A D | ResourceCursorAdapter.java | 68 * @param c The cursor from which to get the data. 70 * cursor whenever it changes so the most recent 86 * @param c The cursor from which to get the data. 103 public View newView(Context context, Cursor cursor, ViewGroup parent) { argument 108 public View newDropDownView(Context context, Cursor cursor, ViewGroup parent) { argument
|
/frameworks/base/media/java/android/media/ |
H A D | RingtoneManager.java | 41 * results into a single cursor. It also provides a {@link Ringtone} for each 193 * The column index (in the cursor returned by {@link #getCursor()} for the 199 * The column index (in the cursor returned by {@link #getCursor()} for the 205 * The column index (in the cursor returned by {@link #getCursor()} for the 228 * constructed instance manages cursor(s). 230 * @param activity The activity used to get a managed cursor. 239 * constructor will not manage the cursor(s), so the client should handle 242 * @param context The context to used to get a cursor. 347 * cursor will be the same cursor returne 404 getUriFromCursor(Cursor cursor) argument 467 getValidRingtoneUriFromCursorAndClose(Context context, Cursor cursor) argument [all...] |
H A D | Ringtone.java | 108 Cursor cursor = null; 128 cursor = res.query(uri, MEDIA_COLUMNS, null, null, null); 131 // missing cursor is handled below 135 if (cursor != null && cursor.getCount() == 1) { 136 cursor.moveToFirst(); 137 return cursor.getString(2); 142 if (cursor != null) { 143 cursor.close();
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
H A D | RecurrenceSet.java | 65 * CalendarProvider. The cursor must contain the RRULE, RDATE, EXRULE, 68 * @param cursor The cursor containing the RRULE, RDATE, EXRULE, and EXDATE 71 public RecurrenceSet(Cursor cursor) argument 73 int rruleColumn = cursor.getColumnIndex(CalendarContract.Events.RRULE); 74 int rdateColumn = cursor.getColumnIndex(CalendarContract.Events.RDATE); 75 int exruleColumn = cursor.getColumnIndex(CalendarContract.Events.EXRULE); 76 int exdateColumn = cursor.getColumnIndex(CalendarContract.Events.EXDATE); 77 String rruleStr = cursor.getString(rruleColumn); 78 String rdateStr = cursor 256 populateComponent(Cursor cursor, ICalendar.Component component) argument [all...] |
/frameworks/base/core/java/android/database/ |
H A D | CursorJoiner.java | 59 /** The row currently pointed to by the left cursor is unique */ 61 /** The row currently pointed to by the right cursor is unique */ 70 * @param cursorLeft The left cursor to compare 71 * @param columnNamesLeft The column names to compare from the left cursor 72 * @param cursorRight The right cursor to compare 73 * @param columnNamesRight The column names to compare from the right cursor 104 * @param cursor the cursor that contains the columns 108 private int[] buildColumnIndiciesArray(Cursor cursor, String[] columnNames) { argument 111 columns[i] = cursor 204 populateValues(String[] values, Cursor cursor, int[] columnIndicies, int startingIndex) argument [all...] |
H A D | CursorToBulkCursorAdaptor.java | 29 * If the wrapped cursor returns non-null from {@link CrossProcessCursor#getWindow} 46 * The cursor that is being adapted. 47 * This field is set to null when the cursor is closed. 52 * The cursor window that was filled by the cross process cursor in the 53 * case where the cursor does not support getWindow. 91 public CursorToBulkCursorAdaptor(Cursor cursor, IContentObserver observer, argument 93 if (cursor instanceof CrossProcessCursor) { 94 mCursor = (CrossProcessCursor)cursor; 96 mCursor = new CrossProcessCursorWrapper(cursor); [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | RecentsProvider.java | 310 Cursor cursor = db.query(TABLE_RECENT, null, null, null, null, null, null); 312 while (cursor.moveToNext()) { 314 final byte[] rawStack = cursor.getBlob( 315 cursor.getColumnIndex(RecentColumns.STACK)); 319 final String key = getCursorString(cursor, RecentColumns.KEY); 326 IoUtils.closeQuietly(cursor); 329 cursor = db.query(TABLE_STATE, new String[] { 332 while (cursor.moveToNext()) { 333 final String authority = getCursorString(cursor, StateColumns.AUTHORITY); 341 IoUtils.closeQuietly(cursor); [all...] |
H A D | SortingCursorWrapper.java | 31 * Cursor wrapper that presents a sorted view of the underlying cursor. Handles 41 public SortingCursorWrapper(Cursor cursor, int sortOrder) { argument 42 mCursor = cursor; 44 final int count = cursor.getCount(); 60 cursor.moveToPosition(-1); 62 cursor.moveToNext(); 67 final String mimeType = getCursorString(cursor, Document.COLUMN_MIME_TYPE); 69 cursor, Document.COLUMN_DISPLAY_NAME); 77 mValueLong[i] = getCursorLong(cursor, Document.COLUMN_LAST_MODIFIED); 80 mValueLong[i] = getCursorLong(cursor, Documen [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/ |
H A D | RootInfo.java | 142 public static RootInfo fromRootsCursor(String authority, Cursor cursor) { argument 145 root.rootId = getCursorString(cursor, Root.COLUMN_ROOT_ID); 146 root.flags = getCursorInt(cursor, Root.COLUMN_FLAGS); 147 root.icon = getCursorInt(cursor, Root.COLUMN_ICON); 148 root.title = getCursorString(cursor, Root.COLUMN_TITLE); 149 root.summary = getCursorString(cursor, Root.COLUMN_SUMMARY); 150 root.documentId = getCursorString(cursor, Root.COLUMN_DOCUMENT_ID); 151 root.availableBytes = getCursorLong(cursor, Root.COLUMN_AVAILABLE_BYTES); 152 root.mimeTypes = getCursorString(cursor, Root.COLUMN_MIME_TYPES);
|
/frameworks/ex/common/tests/src/com/android/common/widget/ |
H A D | GroupingListAdapterTests.java | 54 protected void addGroups(Cursor cursor) { 55 int count = cursor.getCount(); 57 cursor.moveToFirst(); 58 String currentValue = cursor.getString(GROUPING_COLUMN_INDEX); 60 cursor.moveToNext(); 61 String value = cursor.getString(GROUPING_COLUMN_INDEX); 79 protected void bindChildView(View view, Context context, Cursor cursor) { 83 protected void bindGroupView(View view, Context context, Cursor cursor, int groupSize, 88 protected void bindStandAloneView(View view, Context context, Cursor cursor) {
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | CursorAdapter.java | 88 * If set the adapter will call requery() on the cursor whenever a content change 100 * If set the adapter will register a content observer on the cursor and will call 117 * @param c The cursor from which to get the data. 131 * @param c The cursor from which to get the data. 134 * cursor whenever it changes so the most recent 144 * @param c The cursor from which to get the data. 190 * Returns the cursor. 191 * @return the cursor. 245 throw new IllegalStateException("this should only be called when the cursor is valid"); 248 throw new IllegalStateException("couldn't move cursor t 285 newView(Context context, Cursor cursor, ViewGroup parent) argument 295 newDropDownView(Context context, Cursor cursor, ViewGroup parent) argument 306 bindView(View view, Context context, Cursor cursor) argument 314 changeCursor(Cursor cursor) argument 366 convertToString(Cursor cursor) argument [all...] |
H A D | ResourceCursorAdapter.java | 70 * @param c The cursor from which to get the data. 72 * cursor whenever it changes so the most recent 88 * @param c The cursor from which to get the data. 105 public View newView(Context context, Cursor cursor, ViewGroup parent) { argument 110 public View newDropDownView(Context context, Cursor cursor, ViewGroup parent) { argument
|
/frameworks/ex/common/java/com/android/common/widget/ |
H A D | GroupingListAdapter.java | 122 * Finds all groups of adjacent items in the cursor and calls {@link #addGroup} for 125 protected abstract void addGroups(Cursor cursor); argument 128 protected abstract void bindStandAloneView(View view, Context context, Cursor cursor); argument 131 protected abstract void bindGroupView(View view, Context context, Cursor cursor, int groupSize, argument 135 protected abstract void bindChildView(View view, Context context, Cursor cursor); argument 138 * Cache should be reset whenever the cursor changes or groups are expanded or collapsed. 152 public void changeCursor(Cursor cursor) { argument 153 if (cursor == mCursor) { 162 mCursor = cursor; 166 if (cursor ! [all...] |
/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
H A D | PhotoViewCallbacks.java | 54 * Called when the cursor that contains the photo list data 55 * is updated. Note that there is no guarantee that the cursor 57 * @param cursor the cursor containing the photo list data 59 public void onCursorChanged(Cursor cursor); argument 85 public void onCursorChanged(PhotoViewFragment fragment, Cursor cursor); argument
|
/frameworks/base/core/java/android/app/ |
H A D | DownloadManager.java | 329 /* add the following 'computed' columns to the cursor. 1028 Cursor cursor = null; 1030 cursor = query(query); 1031 if (cursor == null) { 1034 if (cursor.moveToFirst()) { 1035 int status = cursor.getInt(cursor.getColumnIndexOrThrow(COLUMN_STATUS)); 1037 int indx = cursor.getColumnIndexOrThrow( 1039 int destination = cursor.getInt(indx); 1051 String path = cursor 1295 CursorTranslator(Cursor cursor, Uri baseUri) argument [all...] |
/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...] |