/frameworks/opt/vcard/java/com/android/vcard/ |
H A D | VCardComposer.java | 260 * Cursor cursor = mContentResolver.query( 376 public boolean init(Cursor cursor) { argument 377 return initWithCallback(cursor, null); 381 * @param cursor Cursor that used to get contact id 387 public boolean initWithCallback(Cursor cursor, argument 393 mCursor = cursor;
|
/frameworks/support/room/testing/src/main/java/androidx/room/testing/ |
H A D | MigrationTestHelper.java | 378 Cursor cursor = db.query("SELECT name FROM sqlite_master WHERE type='table'" 384 while (cursor.moveToNext()) { 385 final String tableName = cursor.getString(0); 392 cursor.close();
|
/frameworks/base/core/java/android/content/ |
H A D | ContentProviderNative.java | 102 Cursor cursor = query(callingPkg, url, projection, queryArgs, cancellationSignal); 103 if (cursor != null) { 107 adaptor = new CursorToBulkCursorAdaptor(cursor, observer, 109 cursor = null; 118 // Close cursor if an exception was thrown while constructing the adaptor. 122 if (cursor != null) { 123 cursor.close(); 422 Binder.copyAllowBlocking(mRemote, (d.cursor != null) ? d.cursor.asBinder() : null);
|
H A D | ContentProvider.java | 214 // The caller has no access to the data, so return an empty cursor with 226 // we have to execute the query as if allowed to get a cursor with the 227 // columns. We then use the column names to return an empty cursor. 228 Cursor cursor = ContentProvider.this.query( 231 if (cursor == null) { 235 // Return an empty cursor for all columns. 236 return new MatrixCursor(cursor.getColumnNames(), 0); 970 * @param projection The list of columns to put into the cursor. If 977 * @param sortOrder How the rows in the cursor should be sorted. 1038 * @param projection The list of columns to put into the cursor [all...] |
H A D | ContentResolver.java | 403 public static final String CURSOR_ITEM_BASE_TYPE = "vnd.android.cursor.item"; 419 * in the cursor is the same. 421 public static final String CURSOR_DIR_BASE_TYPE = "vnd.android.cursor.dir"; 429 public static final String ANY_CURSOR_ITEM_TYPE = "vnd.android.cursor.item/*"; 825 // Wrap the cursor object into CursorWrapperInner object. 2985 CursorWrapperInner(Cursor cursor, IContentProvider contentProvider) { argument 2986 super(cursor);
|
/frameworks/minikin/tools/ |
H A D | mk_hyb_file.py | 81 def next(self, cursor): 82 if cursor == 0: 83 cursor = self.first 84 if cursor is None: 88 result = cursor 204 cursor = 0 206 edge_ix, cursor = edges.next(cursor)
|
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/app/ |
H A D | AlertController.java | 963 // adapter or a cursor 1014 final Cursor cursor = getCursor(); 1015 mLabelIndex = cursor.getColumnIndexOrThrow(mLabelColumn); 1016 mIsCheckedIndex = cursor.getColumnIndexOrThrow(mIsCheckedColumn); 1020 public void bindView(View view, Context context, Cursor cursor) { 1023 text.setText(cursor.getString(mLabelIndex)); 1024 listView.setItemChecked(cursor.getPosition(), 1025 cursor.getInt(mIsCheckedIndex) == 1); 1029 public View newView(Context context, Cursor cursor, ViewGroup parent) {
|
/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | DatabaseCursorTest.java | 112 // use cursor to access blob 151 // The cursor should ignore text before the last period when looking for a column. (This 267 public TestObserver(int total_, SQLiteCursor cursor) { argument 268 c = cursor; 331 // if cursor window size changed, adjust this value too 362 // if cursor window size changed, adjust this value too 467 // Our hacked requery() changes the query arguments in the cursor. 476 // Test that setting query args on a deactivated cursor also works. 496 Cursor cursor = mDatabase.rawQuery("select * from test", null); 497 cursor [all...] |
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | ValidateNotificationPeople.java | 399 Slog.w(TAG, "Null cursor from contacts query."); 425 public void mergeContact(Cursor cursor) { argument 430 final int idIdx = cursor.getColumnIndex(Contacts._ID); 432 id = cursor.getInt(idIdx); 436 Slog.i(TAG, "invalid cursor: no _ID"); 440 final int starIdx = cursor.getColumnIndex(Contacts.STARRED); 442 boolean isStarred = cursor.getInt(starIdx) != 0; 448 if (DEBUG) Slog.d(TAG, "invalid cursor: no STARRED");
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | IccProvider.java | 153 return "vnd.android.cursor.dir/sim-contact"; 413 final MatrixCursor cursor = new MatrixCursor(ADDRESS_BOOK_COLUMN_NAMES, N); 416 loadRecord(adnRecords.get(i), cursor, i); 418 return cursor; 512 * @param cursor the cursor to receive the results 514 private void loadRecord(AdnRecord record, MatrixCursor cursor, int id) { argument 535 cursor.addRow(contact);
|
/frameworks/base/core/java/android/text/ |
H A D | TextLine.java | 532 * Walk the cursor through this line, skipping conjuncts and 535 * <p>This function cannot properly walk the cursor off the ends of the line 537 * that might affect the cursor position. Callers must either avoid these 540 * @param cursor the starting position of the cursor, between 0 and the 547 int getOffsetToLeftRightOf(int cursor, boolean toLeft) { argument 569 if (cursor == lineStart) { 571 } else if (cursor == lineEnd) { 578 if (cursor >= runStart) { 583 if (cursor < runLimi [all...] |
/frameworks/support/compat/src/main/java/androidx/core/content/ |
H A D | FileProvider.java | 476 final MatrixCursor cursor = new MatrixCursor(cols, 1); 477 cursor.addRow(values); 478 return cursor;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
H A D | AccountsDbTest.java | 128 try (Cursor cursor = mAccountsDb.findAuthtokenForAllAccounts(account.type, "token")) { 129 assertTrue(cursor.moveToNext()); 131 try (Cursor cursor = mAccountsDb.findAuthtokenForAllAccounts(account.type, "nosuchtoken")) { 132 assertFalse(cursor.moveToNext());
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | AlertController.java | 1064 // adapter or a cursor 1115 final Cursor cursor = getCursor(); 1116 mLabelIndex = cursor.getColumnIndexOrThrow(mLabelColumn); 1117 mIsCheckedIndex = cursor.getColumnIndexOrThrow(mIsCheckedColumn); 1121 public void bindView(View view, Context context, Cursor cursor) { 1123 text.setText(cursor.getString(mLabelIndex)); 1125 cursor.getPosition(), 1126 cursor.getInt(mIsCheckedIndex) == 1); 1130 public View newView(Context context, Cursor cursor, ViewGroup parent) {
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
H A D | VCardVerifier.java | 350 final Cursor cursor = resolver.query(CONTACTS_TEST_CONTENT_URI, null, null, null, null); 351 if (!composer.init(cursor)) {
|
/frameworks/base/services/core/java/com/android/server/location/ |
H A D | GnssLocationProvider.java | 2484 Cursor cursor = null; 2486 cursor = mContext.getContentResolver().query( 2492 if (cursor != null && cursor.moveToFirst()) { 2493 return cursor.getString(0); 2500 if (cursor != null) { 2501 cursor.close(); 2515 Cursor cursor = null; 2517 cursor = mContext.getContentResolver().query( 2524 if (null != cursor [all...] |
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
H A D | PduPersister.java | 943 Cursor cursor = null; 945 cursor = context.getContentResolver().query(uri, projection, null, 947 if (null == cursor || 0 == cursor.getCount() || !cursor.moveToFirst()) { 951 int pathIndex = cursor.getColumnIndexOrThrow(MediaStore.MediaColumns.DATA); 952 path = cursor.getString(pathIndex); 957 if (null != cursor) { 958 cursor.close();
|
/frameworks/base/telephony/java/android/provider/ |
H A D | Telephony.java | 302 * Return cursor for table query. 310 * Return cursor for table query. 1947 Cursor cursor = SqliteWrapper.query(context, context.getContentResolver(), 1949 if (cursor != null) { 1951 if (cursor.moveToFirst()) { 1952 return cursor.getLong(0); 1957 cursor.close();
|
/frameworks/base/core/tests/coretests/src/android/content/ |
H A D | ContentProviderOperationTest.java | 142 // Assert that values match from cursor 146 // Return cursor over specific set of values 161 // Assert that values match from cursor 165 // Return cursor over specific set of values 177 // Assert that values match from cursor 181 // Return cursor over specific set of values 193 // Assert that values match from cursor 197 // Return cursor over specific set of values 222 final MatrixCursor cursor = new MatrixCursor(keys); 224 cursor [all...] |
/frameworks/base/core/jni/ |
H A D | android_util_AssetManager.cpp | 832 jint* cursor = buffer; local 853 cursor[STYLE_TYPE] = static_cast<jint>(value.dataType); 854 cursor[STYLE_DATA] = static_cast<jint>(value.data); 855 cursor[STYLE_ASSET_COOKIE] = ApkAssetsCookieToJavaCookie(cookie); 856 cursor[STYLE_RESOURCE_ID] = static_cast<jint>(ref); 857 cursor[STYLE_CHANGING_CONFIGURATIONS] = static_cast<jint>(flags); 858 cursor[STYLE_DENSITY] = static_cast<jint>(selected_config.density); 859 cursor += STYLE_NUM_ENTRIES;
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsProvider.java | 447 return "vnd.android.cursor.dir/" + args.table; 449 return "vnd.android.cursor.item/" + args.table; 1969 MatrixCursor cursor = new MatrixCursor(projection, 1); 1970 appendSettingToCursor(cursor, setting); 1971 return cursor; 1990 private static void appendSettingToCursor(MatrixCursor cursor, Setting setting) { argument 1994 final int columnCount = cursor.getColumnCount(); 1999 String column = cursor.getColumnName(i); 2016 cursor.addRow(values); 2684 Cursor cursor [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | ContextFixture.java | 131 MatrixCursor cursor = new MatrixCursor(projection); 132 cursor.addRow(new String[]{mKeyValuePairs.get(selectionArgs[0])}); 133 return cursor;
|
/frameworks/base/core/java/android/widget/ |
H A D | GridLayout.java | 1443 int cursor = result.length - 1; 1453 result[cursor--] = arc; 1473 assert cursor == -1;
|
/frameworks/support/gridlayout/src/main/java/androidx/gridlayout/widget/ |
H A D | GridLayout.java | 1331 int cursor = result.length - 1; 1341 result[cursor--] = arc; 1361 assert cursor == -1;
|
/frameworks/base/core/java/android/provider/ |
H A D | Settings.java | 13123 * @param cursor A cursor pointing to the row whose title should be 13124 * returned. The cursor must contain at least the {@link #TITLE} 13129 public static CharSequence getTitle(Context context, Cursor cursor) { argument 13130 int titleColumn = cursor.getColumnIndex(TITLE); 13131 int intentColumn = cursor.getColumnIndex(INTENT); 13134 "The cursor must contain the TITLE and INTENT columns."); 13137 String title = cursor.getString(titleColumn); 13142 String intentUri = cursor.getString(intentColumn);
|