Home
last modified time | relevance | path

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

12345678910>>...24

/packages/services/Mtp/tests/src/com/android/mtp/
DMtpDatabaseTest.java70 private static int getInt(Cursor cursor, String columnName) { in getInt()
74 private static boolean isNull(Cursor cursor, String columnName) { in isNull()
78 private static String getString(Cursor cursor, String columnName) { in getString()
92 final Cursor cursor = mDatabase.queryRootDocuments(COLUMN_NAMES); in testPutSingleStorageDocuments() local
116 final Cursor cursor = mDatabase.queryRoots(resources, new String [] { in testPutSingleStorageDocuments() local
155 final Cursor cursor = mDatabase.queryRootDocuments(COLUMN_NAMES); in testPutStorageDocuments() local
205 final Cursor cursor = mDatabase.queryChildDocuments(COLUMN_NAMES, "2"); in testPutChildDocuments() local
280 try (final Cursor cursor = in testPutChildDocuments_operationsSupported()
297 try (final Cursor cursor = in testPutChildDocuments_operationsSupported()
313 try (final Cursor cursor = in testPutChildDocuments_operationsSupported()
[all …]
DMtpDocumentsProviderTest.java153 try (final Cursor cursor = mProvider.queryRoots(columns)) { in testOpenDeviceOnDemand()
164 try (final Cursor cursor = mProvider.queryChildDocuments("1", null, (String) null)) {} in testOpenDeviceOnDemand()
211 final Cursor cursor = mProvider.queryRoots(null); in testQueryRoots() local
229 final Cursor cursor = mProvider.queryRoots(null); in testQueryRoots() local
276 final Cursor cursor = mProvider.queryRoots(null); in testQueryRoots_error() local
320 final Cursor cursor = mProvider.queryDocument("3", null); in testQueryDocument() local
357 final Cursor cursor = mProvider.queryDocument("3", null); in testQueryDocument_directory() local
384 final Cursor cursor = mProvider.queryDocument("2", null); in testQueryDocument_forStorage() local
408 final Cursor cursor = mProvider.queryDocument("1", null); in testQueryDocument_forDeviceWithSingleStorage() local
439 final Cursor cursor = mProvider.queryDocument("1", null); in testQueryDocument_forDeviceWithTwoStorages() local
[all …]
DDocumentLoaderTest.java78 final Cursor cursor = mLoader.queryChildDocuments( in testBasic() local
88 final Cursor cursor = mLoader.queryChildDocuments( in testBasic() local
99 final Cursor cursor = mLoader.queryChildDocuments( in testBasic() local
118 try (final Cursor cursor = mLoader.queryChildDocuments( in testError_GetObjectHandles()
139 try (final Cursor cursor = mLoader.queryChildDocuments( in testError_GetObjectInfo()
154 try (final Cursor cursor = mLoader.queryChildDocuments( in testCancelTask()
171 try (final Cursor cursor = mLoader.queryChildDocuments( in testCancelTask()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyDatabaseHelperTest.java76 Cursor cursor = db.query("carriers", null, null, null, null, null, null); in databaseHelperOnUpgrade_hasApnSetIdField() local
91 Cursor cursor = db.query("carriers", null, null, null, null, null, null); in databaseHelperOnUpgrade_hasCarrierIdField() local
104 Cursor cursor = db.query("simInfo", null, null, null, null, null, null); in databaseHelperOnUpgrade_hasCountryIsoField() local
117 Cursor cursor = db.query("siminfo", null, null, null, null, null, null); in databaseHelperOnUpgrade_hasProfileClassField() local
131 Cursor cursor = db.query("carriers", null, null, null, null, null, null); in databaseHelperOnUpgrade_hasSkip464XlatField() local
147 Cursor cursor = db.query("carriers", null, null, null, null, null, null); in databaseHelperOnUpgrade_columnsMatchNewlyCreatedDb() local
181 Cursor cursor = db.query("siminfo", null, null, null, null, null, null); in databaseHelperOnUpgrade_hasSubscriptionTypeField() local
196 Cursor cursor = db.query("siminfo", null, null, null, null, null, null); in databaseHelperOnUpgrade_hasImsRcsUceEnabledField() local
212 Cursor cursor = db.query("siminfo", null, null, null, null, null, null); in databaseHelperOnUpgrade_hasRcsConfigField() local
228 Cursor cursor = db.query("siminfo", null, null, null, null, null, null); in databaseHelperOnUpgrade_hasVoImsOptInStatusField() local
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DDataStatus.java46 public DataStatus(Cursor cursor) { in DataStatus()
55 public void possibleUpdate(Cursor cursor) { in possibleUpdate()
76 private void fromCursor(Cursor cursor) { in fromCursor()
144 private static String getString(Cursor cursor, String columnName) { in getString()
148 private static int getInt(Cursor cursor, String columnName) { in getInt()
152 private static int getInt(Cursor cursor, String columnName, int missingValue) { in getInt()
157 private static long getLong(Cursor cursor, String columnName, long missingValue) { in getLong()
162 private static boolean isNull(Cursor cursor, String columnName) { in isNull()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/contact/
DContactPickerFragmentTest.java109 private ContactPickerFragmentTest loadWithAllContactsCursor(final Cursor cursor) { in loadWithAllContactsCursor()
127 private ContactPickerFragmentTest loadWithFrequentContactsCursor(final Cursor cursor) { in loadWithFrequentContactsCursor()
158 final Cursor cursor = TestDataFactory.getAllContactListCursor(); in testLoadAllContactsList() local
170 final Cursor cursor = TestDataFactory.getFrequentContactListCursor(); in testLoadFrequentContactsList() local
179 final Cursor cursor = TestDataFactory.getFrequentContactListCursor(); in testPickInitialContact() local
199 final Cursor cursor = TestDataFactory.getFrequentContactListCursor(); in testLeaveChipsMode() local
212 final Cursor cursor = TestDataFactory.getFrequentContactListCursor(); in testPickMoreContacts() local
/packages/apps/Contacts/tests/src/com/android/contacts/list/
DContactListItemViewTest.java55 Cursor cursor = createCursor("John Doe", "Doe John"); in testShowDisplayName_Simple() local
64 Cursor cursor = createCursor("", ""); in testShowDisplayName_Unknown() local
74 Cursor cursor = createCursor("John Doe", "Doe John"); in testShowDisplayName_WithPrefix() local
89 Cursor cursor = createCursor("John Doe", "Doe John"); in testShowDisplayName_WithPrefixReversed() local
127 MatrixCursor cursor = new MatrixCursor(new String[]{"Name", "AlternateName"}); in createCursor() local
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DCursorBackedSuggestionExtras.java41 static CursorBackedSuggestionExtras createExtrasIfNecessary(Cursor cursor, int position) { in createExtrasIfNecessary()
50 static String[] getCursorColumns(Cursor cursor) { in getCursorColumns()
60 static boolean cursorContainsExtras(Cursor cursor) { in cursorContainsExtras()
70 static List<String> getExtraColumns(Cursor cursor) { in getExtraColumns()
85 private CursorBackedSuggestionExtras(Cursor cursor, int position, List<String> extraColumns) { in CursorBackedSuggestionExtras()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastSearchIndexableProviderTest.java52 Cursor cursor = mSearchIndexableProvider.queryXmlResources(null); in testQueryXmlResources() local
59 Cursor cursor = mSearchIndexableProvider.queryRawData(new String[]{""}); in testQueryRawData() local
71 Cursor cursor = mSearchIndexableProvider.queryNonIndexableKeys(new String[]{""}); in testQueryNonIndexableKeys() local
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DColumnFilterTest.java88 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testQueryChannel() local
101 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testQueryChannel_count() local
110 Cursor cursor = mResolver.query(Channels.CONTENT_URI, null, null, null, null); in testQueryChannelWithNullProjection() local
120 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testQueryChannelWithNoValidColumn() local
134 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testInsertAndQueryChannel() local
152 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testUpdateChannel() local
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/
DSortingCursorWrapperTest.java109 private Cursor cursor; field in SortingCursorWrapperTest
142 final Cursor cursor = createSortingCursorWrapper(); in testSort_names_ascending() local
166 final Cursor cursor = createSortingCursorWrapper(); in testSort_names_descending() local
187 final Cursor cursor = createSortingCursorWrapper(); in testSort_sizes_ascending() local
210 Cursor cursor = createSortingCursorWrapper(); in testSort_sizes_descending() local
245 final Cursor cursor = createSortingCursorWrapper(c); in testSort_sizesWithBucketing_ascending() local
297 final Cursor cursor = createSortingCursorWrapper(c); in testSort_sizesWithBucketing_descending() local
355 final Cursor cursor = createSortingCursorWrapper(c); in testSort_time_ascending() local
392 final Cursor cursor = createSortingCursorWrapper(c); in testSort_time_descending() local
411 final Cursor cursor = createSortingCursorWrapper(); in testSort_type_ascending() local
[all …]
/packages/apps/EmergencyInfo/tests/robolectric/src/com/android/emergency/
DEmergencySearchIndexablesProviderTest.java45 Cursor cursor = mProvider.queryXmlResources( in testQueryXmlResources() local
65 Cursor cursor = mProvider.queryRawData(SearchIndexablesContract.INDEXABLES_RAW_COLUMNS); in testQueryRawData() local
73 Cursor cursor = mProvider.queryNonIndexableKeys( in testQueryNonIndexableKeys() local
/packages/apps/Dialer/java/com/android/dialer/searchfragment/cp2/
DSearchContactViewHolder.java95 public void bind(SearchCursor cursor, String query) { in bind()
132 private boolean shouldShowPhoto(SearchCursor cursor) { in shouldShowPhoto()
146 private static Uri getContactUri(Cursor cursor) { in getContactUri()
154 private static String getLabel(Resources resources, Cursor cursor) { in getLabel()
165 private void setCallToAction(SearchCursor cursor, String query) { in setCallToAction()
196 Context context, SearchCursor cursor, String query) { in getCallToAction()
228 SearchCursor cursor, in shouldRequestCapabilities()
269 private static DialerContact getDialerContact(Context context, Cursor cursor) { in getDialerContact()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DArchivesProviderTest.java85 Cursor cursor = client.query(rootsUri, null, null, null, null, null); in testQueryRoots() local
109 final Cursor cursor = resolver.query(childrenUri, null, null, null, null, null); in testOpen_Success() local
130 final Cursor cursor = resolver.query(childrenUri, null, null, null, null, null); in testOpen_Success() local
162 final Cursor cursor = resolver.query(childrenUri, null, null, null, null, null); in testOpen_Failure() local
183 final Cursor cursor = resolver.query(childrenUri, null, null, null, null, null); in testOpen_Failure() local
216 final Cursor cursor = resolver.query(childrenUri, null, null, null, null, null); in testOpen_ClosesOnRelease() local
223 final Cursor cursor = resolver.query(childrenUri, null, null, null, null, null); in testOpen_ClosesOnRelease() local
255 final Cursor cursor = client.query(childrenUri, null, null, null, null, null); in testNoNotificationAfterAllReleased() local
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListAdapter.java169 public Uri getContactUri(int partitionIndex, Cursor cursor) { in getContactUri()
185 final Cursor cursor = (Cursor) getItem(position); in getContactId() local
190 final Cursor cursor = (Cursor) getItem(position); in isEnterpriseContact() local
204 public boolean isSelectedContact(int partitionIndex, Cursor cursor) { in isSelectedContact()
221 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { in newView()
234 Cursor cursor) { in bindSectionHeaderAndDivider()
244 protected void bindPhoto(final ContactListItemView view, int partitionIndex, Cursor cursor) { in bindPhoto()
273 protected void bindNameAndViewId(final ContactListItemView view, Cursor cursor) { in bindNameAndViewId()
281 protected void bindPresenceAndStatusMessage(final ContactListItemView view, Cursor cursor) { in bindPresenceAndStatusMessage()
286 protected void bindSearchSnippet(final ContactListItemView view, Cursor cursor) { in bindSearchSnippet()
[all …]
DJoinContactListAdapter.java114 public void setSuggestionsCursor(Cursor cursor) { in setSuggestionsCursor()
119 public void changeCursor(Cursor cursor) { in changeCursor()
140 protected View newHeaderView(Context context, int partition, Cursor cursor, in newHeaderView()
161 protected void bindHeaderView(View view, int partitionIndex, Cursor cursor) { in bindHeaderView()
167 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { in newView()
181 protected void bindView(View itemView, int partition, Cursor cursor, int position) { in bindView()
202 public Uri getContactUri(int partitionIndex, Cursor cursor) { in getContactUri()
DLegacyContactListAdapter.java67 Cursor cursor = ((Cursor)getItem(position)); in getPersonUri() local
74 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { in newView()
81 protected void bindView(View itemView, int partition, Cursor cursor, int position) { in bindView()
89 protected void bindName(final ContactListItemView view, Cursor cursor) { in bindName()
95 protected void bindPresence(final ContactListItemView view, Cursor cursor) { in bindPresence()
DLegacyPostalAddressListAdapter.java72 Cursor cursor = ((Cursor)getItem(position)); in getContactMethodUri() local
79 Context context, int partition, Cursor cursor, int position, ViewGroup parent) { in newView()
86 protected void bindView(View itemView, int partition, Cursor cursor, int position) { in bindView()
94 protected void bindName(final ContactListItemView view, Cursor cursor) { in bindName()
100 protected void bindPostalAddress(ContactListItemView view, Cursor cursor) { in bindPostalAddress()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DResolvePlaylistTest.java114 try (Cursor cursor = mIsolatedContext.getContentResolver().query( in doPlaylist()
125 try (Cursor cursor = mIsolatedResolver.query(membersUri, new String[] { in doPlaylist()
146 try (Cursor cursor = mIsolatedResolver.query(membersUri, new String[] { in doPlaylist()
166 try (Cursor cursor = mIsolatedResolver.query(membersUri, new String[] { in doPlaylist()
193 try (Cursor cursor = mIsolatedContext.getContentResolver().query( in testBrokenPlaylistM3u()
204 try (Cursor cursor = mIsolatedResolver.query(membersUri, new String[] { in testBrokenPlaylistM3u()
226 try (Cursor cursor = mIsolatedContext.getContentResolver().query(playlistUri, in testPlaylistDeletion()
240 try (Cursor cursor = mIsolatedResolver.query(membersUri, null, null, null)) { in testPlaylistDeletion()
260 try (Cursor cursor = mIsolatedContext.getContentResolver().query(playlistUri, in testPlaylistMembersDeletion()
274 try (Cursor cursor = mIsolatedResolver.query(membersUri, null, null, null)) { in testPlaylistMembersDeletion()
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
DDeletedContactUtil.java40 Cursor cursor = resolver.query(uri, projection, null, null, null); in queryDeletedTimestampForContactId() local
51 Cursor cursor = resolver.query(URI, projection, null, null, null); in getCount() local
65 Cursor cursor = resolver.query(URI, projection, null, null, null); in query() local
78 Cursor cursor = resolver.query(URI, projection, selection, args, null); in querySinceTimestamp() local
DCommonDatabaseUtils.java40 public static String[] singleRecordToArray(Cursor cursor) { in singleRecordToArray()
53 public static List<String[]> multiRecordToArray(Cursor cursor) { in multiRecordToArray()
67 private static void fillArray(Cursor cursor, String[] array) { in fillArray()
73 public static void closeQuietly(Cursor cursor) { in closeQuietly()
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
DGalleryGridItemViewTest.java78 final FakeCursor cursor = TestDataFactory.getGalleryGridCursor(); in testBind() local
91 final FakeCursor cursor = TestDataFactory.getGalleryGridCursor(); in testBindMultiSelectUnSelected() local
104 final FakeCursor cursor = TestDataFactory.getGalleryGridCursor(); in testBindMultiSelectSelected() local
117 final FakeCursor cursor = TestDataFactory.getGalleryGridCursor(); in testClick() local
129 final FakeCursor cursor = TestDataFactory.getGalleryGridCursor(); in testBindTwice() local
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactDirectoryManagerTest.java92 MatrixCursor cursor = new MatrixCursor( in query() local
186 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, in testScanAllProviders() local
271 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageInstalled() local
331 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageUninstalled() local
377 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageReplaced() local
435 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageRenamed() local
502 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testAccountRemoval() local
536 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testNotifyDirectoryChange() local
562 Cursor cursor = mResolver.query( in testForwardingToDirectoryProvider() local
602 Cursor cursor = mResolver.query( in testProjectionPopulated() local
[all …]
/packages/apps/Dialer/java/com/android/dialer/contactsfragment/
DContactsAdapter.java60 private Cursor cursor; field in ContactsAdapter
69 void updateCursor(Cursor cursor) { in updateCursor()
182 private static String getDisplayName(Cursor cursor) { in getDisplayName()
186 private static long getPhotoId(Cursor cursor) { in getPhotoId()
190 private static Uri getPhotoUri(Cursor cursor) { in getPhotoUri()
195 private static Uri getContactUri(Cursor cursor) { in getContactUri()
201 private static long getContactId(Cursor cursor) { in getContactId()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/
DReadableArchiveTest.java101 private static void assertRowExist(Cursor cursor, String targetDocId) { in assertRowExist()
122 final Cursor cursor = mArchive.queryChildDocuments( in testQueryChildDocument() local
172 final Cursor cursor = mArchive.queryChildDocuments( in testQueryChildDocument_NoDirs() local
221 final Cursor cursor = mArchive.queryChildDocuments( in testQueryChildDocument_EmptyDirs() local
301 final Cursor cursor = mArchive.queryDocument( in testQueryDocument() local
323 final Cursor cursor = mArchive.queryDocument(documentId, null); in queryDocumentByResIdWithMimeTypeAndVerify() local
415 final Cursor cursor = mArchive.queryChildDocuments( in testBrokenArchive() local

12345678910>>...24