Home
last modified time | relevance | path

Searched defs:cursor (Results 1 – 25 of 117) sorted by relevance

12345

/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DCommonDatabaseUtils.java35 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()
DDeletedContactUtil.java40 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
DContactsContract_AggregationSuggestionsTest.java67 Cursor cursor = mResolver.query(uri, TEST_PROJECTION, null, null, null); in testAggregationSuggestionsByNameReversed() local
89 Cursor cursor = mResolver.query(uri, TEST_PROJECTION, null, null, null); in testAggregationSuggestionsByName() local
110 Cursor cursor = mResolver.query( in testAggregationSuggestionsByName_noMatch() local
127 Cursor cursor = mResolver.query(uri, TEST_PROJECTION, null, null, null); in testAggregationSuggestionsByName_matchSecondNameParameter() local
148 Cursor cursor = mResolver.query(uri, TEST_PROJECTION, null, null, null); in testAggregationSuggestionsByName_matchFirstNameParameter() local
DContactsContract_Subquery.java56 try (Cursor cursor = mResolver.query(Contacts.CONTENT_URI, null, null, null, null)) { in testProviderStatus_addedContacts()
61 try (Cursor cursor = mResolver.query(Contacts.CONTENT_URI, null, in testProviderStatus_addedContacts()
67 try (Cursor cursor = mResolver.query(Contacts.CONTENT_URI, null, in testProviderStatus_addedContacts()
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteCursorTest.java75 SQLiteCursor cursor = getCursor(); in testConstructor() local
80 SQLiteCursor cursor = getCursor(); in testClose() local
95 SQLiteCursor cursor = getCursor(); in testRegisterDataSetObserver() local
152 SQLiteCursor cursor = getCursor(); in testRequery() local
195 SQLiteCursor cursor = getCursor(); in testGetColumnIndex() local
208 SQLiteCursor cursor = (SQLiteCursor) mDatabase.query(TABLE_NAME, null, SELECTION, in testSetSelectionArguments() local
225 Cursor cursor = mDatabase.rawQuery("SELECT * FROM TST", null); in testRowTooBig() local
245 Cursor cursor = mDatabase.rawQuery("SELECT * FROM TST", null); in testFillWindowForwardOnly() local
275 SQLiteCursor cursor = (SQLiteCursor) mDatabase.query(TABLE_NAME, null, null, in getCursor() local
DSQLiteProgramTest.java90 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
DSQLiteFtsTest.java64 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
/cts/tests/tests/simphonebookprovider/src/android/provider/cts/simphonebook/
DSimPhonebookContract_SimRecordsTest.java115 try (Cursor cursor = query(uri, projection)) { in queryAdn_nullProjection_returnsCursorWithAllSupportedColumns()
130 try (Cursor cursor = query(adnUri, new String[]{SimRecords.NAME})) { in queryAdn_nonNullProjection_returnsCursorWithProvidedProjection()
140 try (Cursor cursor = query(adnUri, all)) { in queryAdn_nonNullProjection_returnsCursorWithProvidedProjection()
145 try (Cursor cursor = query(adnUri, all)) { in queryAdn_nonNullProjection_returnsCursorWithProvidedProjection()
152 try (Cursor cursor = query(SimRecords.getContentUri(mDefaultSubscriptionId, EF_ADN), in queryAdn_noAdnRecords_returnsEmptyCursor()
160 try (Cursor cursor = in queryFdn_noFdnRecords_returnsEmptyCursor()
164 try (Cursor cursor = query(SimRecords.getContentUri(mDefaultSubscriptionId, EF_FDN), in queryFdn_noFdnRecords_returnsEmptyCursor()
176 try (Cursor cursor = query(SimRecords.getContentUri(mDefaultSubscriptionId, EF_SDN), in querySdn_returnsCursorWithSdnRecords()
194 try (Cursor cursor = query(SimRecords.getContentUri(mDefaultSubscriptionId, EF_ADN), in queryAdn_nonEmpty_returnsAdnRecordsFromSim()
222 try (Cursor cursor = query(SimRecords.getContentUri(mDefaultSubscriptionId, EF_FDN), in queryFdn_nonEmpty_returnsFdnRecordsFromSim()
[all …]
DSimPhonebookContract_ElementaryFilesNoSimTest.java84 try (Cursor cursor = query(null)) { in query_nullProjection_includesAllSupportedColumns()
100 try (Cursor cursor = query( in query_withProjection_resultHasProjection()
120 try (Cursor cursor = query( in query_withProjection_resultHasProjection()
127 try (Cursor cursor = query( in query_withProjection_resultHasProjection()
DSimPhonebookContract_ElementaryFilesTest.java98 try (Cursor cursor = mResolver.query( in query_includesRowForEachElementaryFileOnEachSim()
108 try (Cursor cursor = mResolver.query( in query_includesRowForEachElementaryFileOnEachSim()
120 try (Cursor cursor = query(ElementaryFiles.CONTENT_URI, in query_includesRowForEachElementaryFileOnEachSim()
189 try (Cursor cursor = query( in query_adnItemUri_returnsCorrectRow()
201 try (Cursor cursor = query( in query_fdnItemUri_returnsCorrectRow()
215 try (Cursor cursor = query( in query_sdnItemUri_returnsCorrectRow()
/cts/tests/tests/widget/src/android/widget/cts/
DResourceCursorTreeAdapterTest.java90 Cursor cursor = createTestCursor(3, 3); in testConstructor() local
169 MatrixCursor cursor = new MatrixCursor(columns, rowCount); in createTestCursor() local
182 public MockResourceCursorTreeAdapter(Context context, Cursor cursor, in MockResourceCursorTreeAdapter()
189 public MockResourceCursorTreeAdapter(Context context, Cursor cursor, in MockResourceCursorTreeAdapter()
194 public MockResourceCursorTreeAdapter(Context context, Cursor cursor, int groupLayout, in MockResourceCursorTreeAdapter()
200 protected void bindChildView(View view, Context context, Cursor cursor, in bindChildView()
205 protected void bindGroupView(View view, Context context, Cursor cursor, in bindGroupView()
DSimpleCursorTreeAdapterTest.java207 MatrixCursor cursor = new MatrixCursor(columns, rowCount); in createTestCursor() local
220 public MockSimpleCursorTreeAdapter(Context context, Cursor cursor, in MockSimpleCursorTreeAdapter()
228 public MockSimpleCursorTreeAdapter(Context context, Cursor cursor, in MockSimpleCursorTreeAdapter()
235 public MockSimpleCursorTreeAdapter(Context c, Cursor cursor, int groupLayout, in MockSimpleCursorTreeAdapter()
247 protected void bindChildView(View v, Context context, Cursor cursor, boolean isLastChild) { in bindChildView()
251 protected void bindGroupView(View v, Context context, Cursor cursor, boolean isExpanded) { in bindGroupView()
/cts/tests/tests/database/src/android/database/cts/
DDatabaseUtilsTest.java118 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testBindObjectToProgram() local
151 Cursor cursor = db.query(TABLE_NAME, PROJECTION, null, null, null, null, null); in testCreateDbFromSqlStatements() local
162 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testCursorDoubleToContentValues() local
182 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testCursorDoubleToCursorValues() local
201 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testCursorIntToContentValues() local
230 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testcursorLongToContentValues() local
259 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testCursorRowToContentValues() local
290 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testCursorStringToContentValues() local
333 Cursor cursor = mDatabase.query("test_copy", TEST_PROJECTION, null, null, null, null, null); in testCursorStringToInsertHelper() local
360 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testDumpCurrentRow() local
[all …]
DCursorWrapperTest.java82 Cursor cursor = mDatabase.query("test1", NUMBER_PROJECTION, null, null, null, null, null); in getCursor() local
322 Cursor cursor = mDatabase.query("test2", null, null, null, null, null, null); in testGettingValues() local
367 CursorWrapper cursor = new CursorWrapper(getCursor()); in testGetExtras() local
374 Cursor cursor = getCursor(); in testCopyStringToBuffer() local
448 Cursor cursor = getCursor(); in testSetExtras() local
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DSmsTest.java78 Cursor cursor = mContentResolver.query(uri, null, null, null); in testSmsInsert() local
98 Cursor cursor = mContentResolver.query(uri, null, null, null); in testSmsDelete() local
143 Cursor cursor = mContentResolver.query(uri, null, null, null); in testInsertSms_canUpdateSeen() local
161 Cursor cursor = mContentResolver.query(uri, null, null, null); in testInsertSms_canUpdateSmsStatus() local
177 Cursor cursor = mContentResolver.query(uri, null, null, null); in testInsertSms_canUpdateSmsType() local
221 Cursor cursor = mContentResolver.query(Telephony.Sms.CONTENT_URI, null, null, null); in testDefaultValuesAreInsertedInSmsTable() local
262 Cursor cursor = mContentResolver.query(Telephony.Sms.CONTENT_URI, null, null, null); in testDeleteSms_ifLastSmsDeletedThenThreadIsDeleted() local
DMmsTest.java83 Cursor cursor = mContentResolver.query(uri, null, null, null); in testMmsInsert_insertSendReqSucceeds() local
104 Cursor cursor = mContentResolver.query(uri, null, null, null); in testMmsDelete() local
236 Cursor cursor = mContentResolver in testMmsQuery_retrieveAllWhenSelectorNotSpecified() local
260 private void assertThatMmsCursorValues(Cursor cursor, in assertThatMmsCursorValues()
274 Cursor cursor = mContentResolver in testMmsQuery_retrieveAllFailedMmsWhenSelectorSpecified() local
288 Cursor cursor = mContentResolver in testMmsQuery_retrieveAllSentMmsWhenSelectorSpecified() local
302 Cursor cursor = mContentResolver in testMmsQuery_retrieveAllQueuedMmsWhenSelectorSpecified() local
315 Cursor cursor = mContentResolver.query(mmsUri, null, null, null); in testMmsUpdate() local
344 Cursor cursor = mContentResolver.query(mmsUri, null, null, null); in testMmsUpdate_canUpdateReadAndSeenStatus() local
487 Cursor cursor = mContentResolver.query(uriReturnedFromInsert, null, null, null); in assertThatMmsInsertFailed() local
[all …]
DLockedMessageTest.java81 Cursor cursor = mContentResolver.query(Telephony.MmsSms.CONTENT_LOCKED_URI, null, null, in testLockedMessage_atMostOneLockedMessage() local
109 Cursor cursor = mContentResolver.query(Telephony.MmsSms.CONTENT_LOCKED_URI, null, null, in testLockedMessage_getNoLockedMessage() local
118 Cursor cursor = mContentResolver.query(mmsUri, null, null, null); in insertMmsWithLockedMessage() local
144 Cursor cursor = mContentResolver.query(smsUri, null, null, null); in insertSmsWithLockedMessage() local
DSmsConversationTest.java77 Cursor cursor = mContentResolver in testQueryConversation_snippetEqualsMostRecentMessageBody() local
102 Cursor cursor = mContentResolver in testQueryConversation_returnsCorrectMessageCount() local
/cts/hostsidetests/telephonyprovider/devicetest/src/android/telephonyprovider/device/cts/
DTelephonyProviderTest.java61 Cursor cursor = mContentResolver.query(Carriers.CONTENT_URI, in testAccessToApnsWithChangeEnabled() local
74 Cursor cursor = mContentResolver.query(Carriers.CONTENT_URI, in testAccessToApnsWithChangeDisabled() local
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/
DField.java59 public long getLong(Cursor cursor) { in getLong()
69 public String getString(Cursor cursor) { in getString()
125 public long getLong(Cursor cursor) { in getLong()
145 public String getString(Cursor cursor) { in getString()
/cts/tests/inputmethod/mockspellchecker/src/com/android/cts/mockspellchecker/
DSharedPrefsProvider.kt54 val cursor = MatrixCursor(arrayOf(COLUMN_NAME)) in getType() constant
94 val cursor = resolver.query(uriFor(key), arrayOf(COLUMN_NAME), null, null) in getSharedPreferences() constant
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvContractTest.java275 private static void verifyStringColumn(Cursor cursor, ContentValues expectedValues, in verifyStringColumn()
283 private static void verifyIntegerColumn(Cursor cursor, ContentValues expectedValues, in verifyIntegerColumn()
291 private static void verifyLongColumn(Cursor cursor, ContentValues expectedValues, in verifyLongColumn()
299 private static void verifyBlobColumn(Cursor cursor, ContentValues expectedValues, in verifyBlobColumn()
317 try (Cursor cursor = mContentResolver.query( in verifyChannel()
353 try (Cursor cursor = mContentResolver.query(channelUri, projection, null, null, null)) { in verifyNonExistingColumn()
389 try (Cursor cursor = mContentResolver.query( in testChannelsTable()
527 try (Cursor cursor = mContentResolver.query( in testChannelsTableForIllegalAccess()
533 try (Cursor cursor = mContentResolver.query( in testChannelsTableForIllegalAccess()
541 try (Cursor cursor = mContentResolver.query( in testChannelsTableForIllegalAccess()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DVoicemailContractTest.java165 Cursor cursor = mVoicemailProvider.query( in testVoicemailsTable() local
250 try (Cursor cursor = mVoicemailProvider in testForeignUpdate_dirty()
276 try (Cursor cursor = mVoicemailProvider in testForeignUpdate_retainDirty_notDirty()
298 try (Cursor cursor = mVoicemailProvider in testForeignUpdate_explicitNotDirty()
320 try (Cursor cursor = mVoicemailProvider in testForeignUpdate_null_dirty()
342 try (Cursor cursor = mVoicemailProvider in testForeignUpdate_NotNormalized_normalized()
360 try (Cursor cursor = mVoicemailProvider in testLocalUpdate_notDirty()
380 try (Cursor cursor = mVoicemailProvider in testLocalUpdate_retainDirty_dirty()
420 final Cursor cursor = mVoicemailProvider.query(mVoicemailContentUri, in assertDataNotEquals() local
488 Cursor cursor = mStatusProvider.query( in testStatusTable() local
/cts/tests/tests/provider/src/android/provider/cts/
DUserDictionary_WordsTest.java73 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
/cts/tests/tests/content/src/android/content/cts/
DContentProviderCursorWindowTest.java36 Cursor cursor; in testQuery() local

12345