/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | CommonDatabaseUtils.java | 35 public static String[] singleRecordToArray(Cursor cursor) { in singleRecordToArray() 48 public static List<String[]> multiRecordToArray(Cursor cursor) { in multiRecordToArray() 62 private static void fillArray(Cursor cursor, String[] array) { in fillArray() 68 public static void closeQuietly(Cursor cursor) { in closeQuietly()
|
D | DeletedContactUtil.java | 40 Cursor cursor = resolver.query(uri, projection, null, null, null); in queryDeletedTimestampForContactId() local 56 Cursor cursor = resolver.query(URI, projection, null, null, null); in getCount() local 70 Cursor cursor = resolver.query(URI, projection, null, null, null); in query() local 83 Cursor cursor = resolver.query(URI, projection, selection, args, null); in querySinceTimestamp() local
|
D | ContactUtil.java | 52 Cursor cursor = resolver.query(uri, projection, null, null, null); in recordExistsForContactId() local 65 Cursor cursor = resolver.query(uri, projection, null, null, null); in queryContactLastUpdatedTimestamp() local
|
D | DatabaseAsserts.java | 169 final Cursor cursor = resolver.query(uri, projection, selection, selectionArgs, sortOrder); in assertStoredValuesInUriMatchExactly() local 190 public static void assertCursorValuesMatchExactly(Cursor cursor, in assertCursorValuesMatchExactly() 224 public static void assertCursorValuesMatchExactlyInOrder(Cursor cursor, in assertCursorValuesMatchExactlyInOrder() 239 private static boolean equalsWithExpectedValues(Cursor cursor, ContentValues expectedValues, in equalsWithExpectedValues()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | ContactsContract_AggregationSuggestionsTest.java | 68 Cursor cursor = mResolver.query(uri, TEST_PROJECTION, null, null, null); in testAggregationSuggestionsByNameReversed() local 90 Cursor cursor = mResolver.query(uri, TEST_PROJECTION, null, null, null); in testAggregationSuggestionsByName() local 111 Cursor cursor = mResolver.query( in testAggregationSuggestionsByName_noMatch() local 128 Cursor cursor = mResolver.query(uri, TEST_PROJECTION, null, null, null); in testAggregationSuggestionsByName_matchSecondNameParameter() local 149 Cursor cursor = mResolver.query(uri, TEST_PROJECTION, null, null, null); in testAggregationSuggestionsByName_matchFirstNameParameter() local
|
D | UserDictionary_WordsTest.java | 73 Cursor cursor = mContentResolver.query(UserDictionary.Words.CONTENT_URI, WORDS_PROJECTION, in testAddWord_deprecated() local 91 Cursor cursor = mContentResolver.query(UserDictionary.Words.CONTENT_URI, WORDS_PROJECTION, in assertWord() local
|
D | TelephonyProviderTest.java | 92 Cursor cursor = mContentResolver.query(Carriers.CONTENT_URI, in testAccessToApns() local
|
D | ContactsContract_ProviderStatus.java | 69 Cursor cursor = mResolver.query(ProviderStatus.CONTENT_URI, null, null, null, null); in testProviderStatus_addedContacts() local
|
D | Contacts_PeopleTest.java | 113 Cursor cursor; in testAddToGroup() local 227 Cursor cursor; in testMarkAsContacted() local
|
D | ContactsContract_ContactCountsTest.java | 61 final Cursor cursor = mResolver.query(Contacts.CONTENT_URI, TEST_PROJECTION, in testContactCounts_noExtraNoExtrasReturned() local 76 final Cursor cursor = mResolver.query(uri, TEST_PROJECTION, in testContactCounts_correctCountsReturned() local
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ResourceCursorTreeAdapterTest.java | 81 Cursor cursor = createTestCursor(3, 3); in testConstructor() local 158 MatrixCursor cursor = new MatrixCursor(columns, rowCount); in createTestCursor() local 171 public MockResourceCursorTreeAdapter(Context context, Cursor cursor, in MockResourceCursorTreeAdapter() 178 public MockResourceCursorTreeAdapter(Context context, Cursor cursor, in MockResourceCursorTreeAdapter() 183 public MockResourceCursorTreeAdapter(Context context, Cursor cursor, int groupLayout, in MockResourceCursorTreeAdapter() 189 protected void bindChildView(View view, Context context, Cursor cursor, in bindChildView() 194 protected void bindGroupView(View view, Context context, Cursor cursor, in bindGroupView()
|
D | SimpleCursorTreeAdapterTest.java | 193 MatrixCursor cursor = new MatrixCursor(columns, rowCount); in createTestCursor() local 206 public MockSimpleCursorTreeAdapter(Context context, Cursor cursor, in MockSimpleCursorTreeAdapter() 214 public MockSimpleCursorTreeAdapter(Context context, Cursor cursor, in MockSimpleCursorTreeAdapter() 221 public MockSimpleCursorTreeAdapter(Context c, Cursor cursor, int groupLayout, in MockSimpleCursorTreeAdapter() 233 protected void bindChildView(View v, Context context, Cursor cursor, boolean isLastChild) { in bindChildView() 237 protected void bindGroupView(View v, Context context, Cursor cursor, boolean isExpanded) { in bindGroupView()
|
D | CursorTreeAdapterTest.java | 596 public MockCursorTreeAdapter(Cursor cursor, Context context) { in MockCursorTreeAdapter() 600 public MockCursorTreeAdapter(Cursor cursor, Context context, boolean autoRequery) { in MockCursorTreeAdapter() 609 public String convertToString(Cursor cursor) { in convertToString() 616 Cursor cursor, boolean isLastChild) { in bindChildView() 630 Cursor cursor, boolean isExpanded) { in bindGroupView() 673 public View newChildView(Context context, Cursor cursor, in newChildView() 686 public View newGroupView(Context context, Cursor cursor, in newGroupView()
|
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
D | SQLiteCursorTest.java | 72 SQLiteCursor cursor = getCursor(); in testConstructor() local 77 SQLiteCursor cursor = getCursor(); in testClose() local 92 SQLiteCursor cursor = getCursor(); in testRegisterDataSetObserver() local 149 SQLiteCursor cursor = getCursor(); in testRequery() local 192 SQLiteCursor cursor = getCursor(); in testGetColumnIndex() local 205 SQLiteCursor cursor = (SQLiteCursor) mDatabase.query(TABLE_NAME, null, SELECTION, in testSetSelectionArguments() local 232 SQLiteCursor cursor = (SQLiteCursor) mDatabase.query(TABLE_NAME, null, null, in getCursor() local
|
D | SQLiteProgramTest.java | 90 Cursor cursor = null; in testBind() local 140 Cursor cursor = mDatabase.query("test", new String[] { "text1", "text2", "num1", "image" }, in testBindNull() local 171 Cursor cursor = mDatabase.query("test", new String[] { "text1", "text2", "num1", "image" }, in testBindBlob() local
|
D | SQLiteFtsTest.java | 64 final Cursor cursor = queryFtsTable(TEST_TABLE, "technology"); in testFts3Porter() local 80 final Cursor cursor = queryFtsTable(TEST_TABLE, "technology"); in testFts3Simple() local 94 final Cursor cursor = queryFtsTable(TEST_TABLE, "technology"); in testFts4Simple() local
|
D | SQLiteDatabaseTest.java | 334 Cursor cursor = mDatabase.query("test", TEST_PROJECTION, null, null, null, null, null); in testCompileStatement() local 377 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, in testDelete() local 427 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, in testExecSQL() local 549 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, in testInsert() local 758 Cursor cursor = mDatabase.query(true, "employee", new String[] { "name", "sum(salary)" }, in testQuery() local 861 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testReplace() local 927 Cursor cursor = mDatabase.query("test", null, "_id=1", null, null, null, null); in testUpdate() local 962 Cursor cursor = mDatabase.rawQuery(sql, null); in testSetLocale() local 1080 Cursor cursor = mDatabase.rawQuery("SELECT count(*) FROM test", null); in testGroupConcat() local 1104 Cursor cursor = mDatabase.rawQuery("SELECT * FROM test", null); in testSchemaChanges() local [all …]
|
D | SQLiteQueryBuilderTest.java | 135 Cursor cursor = sqliteQueryBuilder.query(mDatabase, new String[] { "name", "age" }, in testSetCursorFactory() local 209 Cursor cursor = sqliteQueryBuilder.query(mDatabase, in testQuery() local 284 Cursor cursor = sqliteQueryBuilder.query(mDatabase, in testCancelableQuery_WhenNotCanceled_ReturnsResultSet() local 316 Cursor cursor = sqliteQueryBuilder.query(mDatabase, in testCancelableQuery_WhenCanceledAfterQuery_ThrowsWhenExecuted() local 372 Cursor cursor = sqliteQueryBuilder.query(mDatabase, in testCancelableQuery_WhenCanceledDueToContention_StopsWaitingAndThrows() local 434 Cursor cursor = sqliteQueryBuilder.query(mDatabase, null, in testCancelableQuery_WhenCanceledDuringLongRunningQuery_CancelsQueryAndThrows() local
|
/cts/tests/tests/database/src/android/database/cts/ |
D | DatabaseUtilsTest.java | 116 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testBindObjectToProgram() local 149 Cursor cursor = db.query(TABLE_NAME, PROJECTION, null, null, null, null, null); in testCreateDbFromSqlStatements() local 160 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testCursorDoubleToContentValues() local 180 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testCursorDoubleToCursorValues() local 199 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testCursorIntToContentValues() local 228 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testcursorLongToContentValues() local 257 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testCursorRowToContentValues() local 272 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testCursorStringToContentValues() local 315 Cursor cursor = mDatabase.query("test_copy", TEST_PROJECTION, null, null, null, null, null); in testCursorStringToInsertHelper() local 342 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testDumpCurrentRow() local [all …]
|
D | MatrixCursor_RowBuilderTest.java | 34 MatrixCursor cursor = new MatrixCursor(new String[] { "column0", "column1", "column2" }); in testAdd() local
|
D | CursorWrapperTest.java | 82 Cursor cursor = mDatabase.query("test1", NUMBER_PROJECTION, null, null, null, null, null); in getCursor() local 315 Cursor cursor = mDatabase.query("test2", null, null, null, null, null, null); in testGettingValues() local 360 CursorWrapper cursor = new CursorWrapper(getCursor()); in testGetExtras() local 367 Cursor cursor = getCursor(); in testCopyStringToBuffer() local 441 Cursor cursor = getCursor(); in testSetExtras() local
|
D | DatabaseUtils_InsertHelperTest.java | 100 Cursor cursor = mDatabase.query(TEST_TABLE_NAME, projection, null, null, null, null, null); in testInsert() local 202 Cursor cursor = mDatabase.query(TEST_TABLE_NAME, projection, null, null, null, null, null); in testReplace() local
|
/cts/tests/app/src/android/app/cts/ |
D | DownloadManagerTest.java | 196 Cursor cursor = null; in testMinimumDownload() local 365 Cursor cursor = null; in clearDownloads() local 402 Cursor cursor = null; in getTotalNumberDownloads() local 415 Cursor cursor = null; in assertDownloadQueryableById() local 431 Cursor cursor= null; in assertDownloadQueryableByStatus() local 446 Cursor cursor = null; in assertSuccessfulDownload() local 463 Cursor cursor = null; in assertRemoveDownload() local
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvContractTest.java | 131 try (Cursor cursor = mContentResolver.query(mChannelsUri, projection, null, null, null)) { in tearDown() 209 private static void verifyStringColumn(Cursor cursor, ContentValues expectedValues, in verifyStringColumn() 217 private static void verifyIntegerColumn(Cursor cursor, ContentValues expectedValues, in verifyIntegerColumn() 225 private static void verifyLongColumn(Cursor cursor, ContentValues expectedValues, in verifyLongColumn() 233 private static void verifyBlobColumn(Cursor cursor, ContentValues expectedValues, in verifyBlobColumn() 246 try (Cursor cursor = mContentResolver.query( in verifyChannel() 295 try (Cursor cursor = mContentResolver.query( in testChannelsTable() 302 try (Cursor cursor = mContentResolver.query( in verifyProgram() 342 try (Cursor cursor = mContentResolver.query( in verifyDeprecatedColumsInProgram() 410 try (Cursor cursor = mContentResolver.query( in verifyProgramsTable() [all …]
|
/cts/tests/tvprovider/src/android/tvprovider/cts/ |
D | TvProviderPerfTest.java | 116 try (final Cursor cursor = mContentResolver.query(Channels.CONTENT_URI, in testChannels() 159 try (final Cursor cursor = mContentResolver.query(Channels.CONTENT_URI, in testChannels() 324 try (final Cursor cursor = mContentResolver.query(Programs.CONTENT_URI, in testPrograms()
|