/frameworks/support/samples/SupportContentDemos/src/main/java/com/example/android/support/content/demos/ |
H A D | UnpagedDemoDataProvider.java | 48 MatrixCursor cursor = new MatrixCursor(COLUMNS); 55 cursor.addRow(values); 58 return cursor;
|
/frameworks/base/apct-tests/perftests/core/src/android/database/ |
H A D | CursorWindowPerfTest.java | 91 try (Cursor cursor = sDatabase.rawQuery(helper.readSql(), new String[0])) { 92 TableHelper.CursorReader reader = helper.createReader(cursor); 94 SQLiteCursor sqLiteCursor = (SQLiteCursor) cursor; 106 cursor.moveToPosition(start); 112 cursor.moveToPosition(start);
|
/frameworks/base/core/java/android/widget/ |
H A D | MultiAutoCompleteTextView.java | 211 * <code>cursor</code> within <code>text</code>. 213 public int findTokenStart(CharSequence text, int cursor); argument 217 * that begins at offset <code>cursor</code> within <code>text</code>. 219 public int findTokenEnd(CharSequence text, int cursor); argument 233 public int findTokenStart(CharSequence text, int cursor) { argument 234 int i = cursor; 239 while (i < cursor && text.charAt(i) == ' ') { 246 public int findTokenEnd(CharSequence text, int cursor) { argument 247 int i = cursor;
|
H A D | CursorAdapter.java | 94 * If set the adapter will call requery() on the cursor whenever a content change 106 * If set the adapter will register a content observer on the cursor and will call 123 * @param c The cursor from which to get the data. 137 * @param c The cursor from which to get the data. 140 * cursor whenever it changes so the most recent 150 * @param c The cursor from which to get the data. 223 * Returns the cursor. 224 * @return the cursor. 278 throw new IllegalStateException("this should only be called when the cursor is valid"); 281 throw new IllegalStateException("couldn't move cursor t 319 newView(Context context, Cursor cursor, ViewGroup parent) argument 329 newDropDownView(Context context, Cursor cursor, ViewGroup parent) argument 340 bindView(View view, Context context, Cursor cursor) argument 348 changeCursor(Cursor cursor) argument 400 convertToString(Cursor cursor) argument [all...] |
H A D | QuickContactBadge.java | 344 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { argument 357 if (cursor != null && cursor.moveToFirst()) { 358 long contactId = cursor.getLong(PHONE_ID_COLUMN_INDEX); 359 String lookupKey = cursor.getString(PHONE_LOOKUP_STRING_COLUMN_INDEX); 372 if (cursor != null && cursor.moveToFirst()) { 373 long contactId = cursor.getLong(EMAIL_ID_COLUMN_INDEX); 374 String lookupKey = cursor.getString(EMAIL_LOOKUP_STRING_COLUMN_INDEX); 381 if (cursor ! [all...] |
/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 254 populateComponent(Cursor cursor, ICalendar.Component component) argument [all...] |
/frameworks/base/telephony/java/android/telephony/data/ |
H A D | ApnSetting.java | 605 public static ApnSetting makeApnSetting(Cursor cursor) { argument 607 cursor.getString(cursor.getColumnIndexOrThrow(Telephony.Carriers.TYPE))); 608 int networkTypeBitmask = cursor.getInt( 609 cursor.getColumnIndexOrThrow(Telephony.Carriers.NETWORK_TYPE_BITMASK)); 611 final int bearerBitmask = cursor.getInt(cursor.getColumnIndexOrThrow( 618 cursor.getInt(cursor.getColumnIndexOrThrow(Telephony.Carriers._ID)), 619 cursor [all...] |
/frameworks/support/tv-provider/src/main/java/androidx/tvprovider/media/tv/ |
H A D | PreviewChannel.java | 86 * This method assumes the cursor was obtained using {@link androidx.tvprovider.media.tv 90 * @param cursor a cursor row from the TvProvider 91 * @return a PreviewChannel whose values come from the cursor row 93 public static PreviewChannel fromCursor(Cursor cursor) { argument 95 builder.setId(cursor.getInt(Columns.COL_ID)); 96 builder.setPackageName(cursor.getString(Columns.COL_PACKAGE_NAME)); 97 builder.setType(cursor.getString(Columns.COL_TYPE)); 98 builder.setDisplayName(cursor.getString(Columns.COL_DISPLAY_NAME)); 99 builder.setDescription(cursor [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | SubscriptionController.java | 268 * @param cursor 271 private SubscriptionInfo getSubInfoRecord(Cursor cursor) { argument 272 int id = cursor.getInt(cursor.getColumnIndexOrThrow( 274 String iccId = cursor.getString(cursor.getColumnIndexOrThrow( 276 int simSlotIndex = cursor.getInt(cursor.getColumnIndexOrThrow( 278 String displayName = cursor.getString(cursor [all...] |
/frameworks/base/core/java/android/app/ |
H A D | DownloadManager.java | 347 /* add the following 'computed' columns to the cursor. 1091 Cursor cursor = null; 1093 cursor = query(query); 1094 if (cursor == null) { 1097 if (cursor.moveToFirst()) { 1098 int status = cursor.getInt(cursor.getColumnIndexOrThrow(COLUMN_STATUS)); 1104 if (cursor != null) { 1105 cursor.close(); 1122 Cursor cursor 1487 CursorTranslator(Cursor cursor, Uri baseUri, boolean accessFilename) argument [all...] |
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/ |
H A D | DatabaseCallbackTest.java | 96 Cursor cursor = null; 98 cursor = db.query( 101 while (cursor.moveToNext()) { 102 names.add(cursor.getString(0)); 106 if (cursor != null) { 107 cursor.close();
|
/frameworks/support/content/src/androidTest/java/androidx/contentpager/content/ |
H A D | TestContentProvider.java | 108 Cursor cursor = null; 111 cursor = buildUnpagedResults(recordCount); 114 cursor = buildPagedResults(uri, queryArgs, recordCount); 117 cursor = buildPagedWindowedResults(uri, queryArgs, recordCount); 123 cursor.setNotificationUri(getContext().getContentResolver(), uri); 125 return cursor; 155 // Calculate the number of items to include in the cursor. 290 * Asserts that the value at the current cursor position x column 295 * @param cursor must be prepositioned to the row to be tested. 297 * than the cursor positio 301 assertExpectedCellValue(Cursor cursor, int row, int column) 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 | 26 * If the wrapped cursor returns non-null from {@link CrossProcessCursor#getWindow} 43 * The cursor that is being adapted. 44 * This field is set to null when the cursor is closed. 49 * The cursor window that was filled by the cross process cursor in the 50 * case where the cursor does not support getWindow. 88 public CursorToBulkCursorAdaptor(Cursor cursor, IContentObserver observer, argument 90 if (cursor instanceof CrossProcessCursor) { 91 mCursor = (CrossProcessCursor)cursor; 93 mCursor = new CrossProcessCursorWrapper(cursor); [all...] |
/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/cursoradapter/src/main/java/androidx/cursoradapter/widget/ |
H A D | CursorAdapter.java | 101 * If set the adapter will call requery() on the cursor whenever a content change 113 * If set the adapter will register a content observer on the cursor and will call 130 * @param c The cursor from which to get the data. 144 * @param c The cursor from which to get the data. 147 * cursor whenever it changes so the most recent 157 * @param c The cursor from which to get the data. 203 * Returns the cursor. 204 * @return the cursor. 263 throw new IllegalStateException("this should only be called when the cursor is valid"); 266 throw new IllegalStateException("couldn't move cursor t 303 newView(Context context, Cursor cursor, ViewGroup parent) argument 313 newDropDownView(Context context, Cursor cursor, ViewGroup parent) argument 324 bindView(View view, Context context, Cursor cursor) argument 333 changeCursor(Cursor cursor) argument 386 convertToString(Cursor cursor) argument [all...] |
H A D | ResourceCursorAdapter.java | 75 * @param c The cursor from which to get the data. 77 * cursor whenever it changes so the most recent 94 * @param c The cursor from which to get the data. 111 public View newView(Context context, Cursor cursor, ViewGroup parent) { argument 116 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/base/tools/aapt2/compile/ |
H A D | NinePatch.cpp | 634 uint8_t* cursor = buffer.get(); local 636 memcpy(cursor, &layout_bounds.left, sizeof(layout_bounds.left)); 637 cursor += sizeof(layout_bounds.left); 639 memcpy(cursor, &layout_bounds.top, sizeof(layout_bounds.top)); 640 cursor += sizeof(layout_bounds.top); 642 memcpy(cursor, &layout_bounds.right, sizeof(layout_bounds.right)); 643 cursor += sizeof(layout_bounds.right); 645 memcpy(cursor, &layout_bounds.bottom, sizeof(layout_bounds.bottom)); 646 cursor += sizeof(layout_bounds.bottom); 656 uint8_t* cursor local [all...] |
/frameworks/base/core/java/android/provider/ |
H A D | ContactsContract.java | 195 * A key to a boolean in the "extras" bundle of the cursor. 204 * Key to retrieve the original deferred snippeting from the cursor on the client side. 452 "vnd.android.cursor.dir/contact_directories"; 458 "vnd.android.cursor.item/contact_directory"; 1255 * index as cursor extras. For most languages it is the first letter of the sort key. This 1256 * parameter does not affect the main content of the cursor. 1267 * Cursor cursor = getContentResolver().query(uri, 1270 * Bundle bundle = cursor.getExtras(); 1285 * same order as the data in the cursor. 1595 * Cursor cursor 3059 newEntityIterator(Cursor cursor) argument 3085 EntityIteratorImpl(Cursor cursor) argument 3090 getEntityAndIncrementCursor(Cursor cursor) argument 7906 newEntityIterator(Cursor cursor) argument 7911 EntityIteratorImpl(Cursor cursor) argument 7916 getEntityAndIncrementCursor(Cursor cursor) argument [all...] |
H A D | FontsContract.java | 80 * Defines the constants used in a response from a Font Provider. The cursor returned from the 92 * Constant used to request data from a font provider. The cursor returned from the query 101 * Constant used to request data from a font provider. The cursor returned from the query 106 * Constant used to request data from a font provider. The cursor returned from the query 112 * Constant used to request data from a font provider. The cursor returned from the query 119 * Constant used to request data from a font provider. The cursor returned from the query 125 * Constant used to request data from a font provider. The cursor returned from the query 127 * query. This will be checked before any other data in the cursor. Possible values are 774 try (Cursor cursor = context.getContentResolver().query(uri, new String[] { Columns._ID, 780 if (cursor ! [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | RingBuffer.java | 34 // Cursor keeping track of the logical end of the array. This cursor never 99 private int indexOf(long cursor) { argument 100 return (int) Math.abs(cursor % mBuffer.length);
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
H A D | PhotoViewCallbacks.java | 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); argument 93 public void onCursorChanged(PhotoViewFragment fragment, Cursor cursor); argument
|
/frameworks/support/compat/src/main/java/androidx/core/provider/ |
H A D | FontsContractCompat.java | 78 * Defines the constants used in a response from a Font Provider. The cursor returned from the 86 * Constant used to request data from a font provider. The cursor returned from the query 95 * Constant used to request data from a font provider. The cursor returned from the query 100 * Constant used to request data from a font provider. The cursor returned from the query 107 * Constant used to request data from a font provider. The cursor returned from the query 114 * Constant used to request data from a font provider. The cursor returned from the query 120 * Constant used to request data from a font provider. The cursor returned from the query 122 * query. This will be checked before any other data in the cursor. Possible values are 824 Cursor cursor = null; 827 cursor [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...] |