Home
last modified time | relevance | path

Searched refs:projection (Results 1 – 25 of 219) sorted by relevance

123456789

/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsProvider.java342 public Cursor query(Uri uri, String[] projection, in query() argument
356 SqlQueryChecker.checkQueryParametersForSubqueries(projection, selection, sortOrder); in query()
368 cursor = getCompleteConversations(projection, selection, sortOrder, smsTable, in query()
380 projection, selection, selectionArgs, sortOrder); in query()
383 projection, selection, sortOrder, smsTable, pduTable); in query()
387 cursor = getConversationMessages(uri.getPathSegments().get(1), projection, in query()
392 uri.getPathSegments().get(1), projection, selection, in query()
397 uri.getPathSegments().get(1), projection, selection, in query()
402 uri.getPathSegments().get(2), projection, selection, sortOrder, smsTable, in query()
439 || projection != null) { in query()
[all …]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/enterprise/
DCrossProfileCalendarHelperTest.java39 final String[] projection = new String[]{ in testProjectionNotWhitelisted_throwErrorForCalendars() local
44 mHelper.getCalibratedProjection(projection, Calendars.CONTENT_URI); in testProjectionNotWhitelisted_throwErrorForCalendars()
52 final String[] projection = new String[] { in testProjectionNotWhitelisted_throwErrorForEvents() local
57 mHelper.getCalibratedProjection(projection, Events.CONTENT_URI); in testProjectionNotWhitelisted_throwErrorForEvents()
65 final String[] projection = new String[] { in testProjectionNotWhitelisted_throwErrorForInstances() local
70 mHelper.getCalibratedProjection(projection, Instances.CONTENT_URI); in testProjectionNotWhitelisted_throwErrorForInstances()
78 final String[] projection = mHelper.getCalibratedProjection(null, Calendars.CONTENT_URI); in testNoProjection_getFullWhitelistedProjectionForCalendars() local
79 final Set<String> projectionSet = new ArraySet<String>(Arrays.asList(projection)); in testNoProjection_getFullWhitelistedProjectionForCalendars()
85 final String[] projection = mHelper.getCalibratedProjection(null, Events.CONTENT_URI); in testNoProjection_getFullWhitelistedProjectionForEvents() local
86 final Set<String> projectionSet = new ArraySet<String>(Arrays.asList(projection)); in testNoProjection_getFullWhitelistedProjectionForEvents()
[all …]
/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DAudioStore.java84 String[] projection = { in load() local
88 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
108 String[] projection = { in load() local
113 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
142 String[] projection = { in load() local
150 … Cursor cursor = mContentResolver.query(contentUri, projection, selection, null, sortOrder); in load()
189 String[] projection = { in load() local
193 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
213 String[] projection = { in load() local
217 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
[all …]
/packages/apps/Traceur/src/com/android/traceur/
DStorageProvider.java75 public Cursor queryRoots(String[] projection) throws FileNotFoundException { in queryRoots() argument
76 final MatrixCursor result = new MatrixCursor(resolveRootProjection(projection)); in queryRoots()
100 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
102 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in queryDocument()
126 String parentDocumentId, String[] projection, String sortOrder) in queryChildDocuments() argument
128 Cursor result = super.queryChildDocuments(parentDocumentId, projection, sortOrder); in queryChildDocuments()
151 private static String[] resolveRootProjection(String[] projection) { in resolveRootProjection() argument
152 return projection != null ? projection : DEFAULT_ROOT_PROJECTION; in resolveRootProjection()
155 private static String[] resolveDocumentProjection(String[] projection) { in resolveDocumentProjection() argument
156 return projection != null ? projection : DEFAULT_DOCUMENT_PROJECTION; in resolveDocumentProjection()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/provider/
DSharedImageProvider.java86 …public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String… in query() argument
91 if (projection == null) { in query()
92 projection = new String[] { in query()
105 MatrixCursor cursor = new MatrixCursor(projection); in query()
106 Object[] columns = new Object[projection.length]; in query()
107 for (int i = 0; i < projection.length; i++) { in query()
108 if (projection[i].equalsIgnoreCase(BaseColumns._ID)) { in query()
110 } else if (projection[i].equalsIgnoreCase(MediaStore.MediaColumns.DATA)) { in query()
112 } else if (projection[i].equalsIgnoreCase(OpenableColumns.DISPLAY_NAME)) { in query()
114 } else if (projection[i].equalsIgnoreCase(OpenableColumns.SIZE)) { in query()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DGlobalSearchSupport.java86 public ArrayList<?> asList(String[] projection) { in asList() argument
100 if (projection == null) { in asList()
112 for (int i = 0; i < projection.length; i++) { in asList()
113 addColumnValue(list, projection[i]); in asList()
182 public Cursor handleSearchSuggestionsQuery(SQLiteDatabase db, Uri uri, String[] projection, in handleSearchSuggestionsQuery() argument
185 projection == null ? SEARCH_SUGGESTIONS_COLUMNS : projection); in handleSearchSuggestionsQuery()
193 cursor, db, projection, selection, searchClause, limit, cancellationSignal); in handleSearchSuggestionsQuery()
209 public Cursor handleSearchShortcutRefresh(SQLiteDatabase db, String[] projection, in handleSearchShortcutRefresh() argument
218 projection == null ? SEARCH_SUGGESTIONS_COLUMNS : projection); in handleSearchShortcutRefresh()
220 db, projection, ContactsColumns.CONCRETE_ID + "=" + contactId, filter, null, in handleSearchShortcutRefresh()
[all …]
DContactsProvider2.java5432 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
5434 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query()
5438 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
5441 Log.v(TAG, "query: uri=" + uri + " projection=" + Arrays.toString(projection) + in query()
5447 mContactsHelper.validateProjection(getCallingPackage(), projection); in query() local
5459 return createEmptyCursor(uri, projection); in query()
5464 return mProfileProvider.query(uri, projection, selection, selectionArgs, sortOrder, in query()
5473 return queryDirectoryIfNecessary(uri, projection, selection, selectionArgs, sortOrder, in query()
5485 private Cursor queryDirectoryIfNecessary(Uri uri, String[] projection, String selection, in queryDirectoryIfNecessary() argument
5494 final Cursor cursor = queryLocal(uri, projection, selection, selectionArgs, sortOrder, in queryDirectoryIfNecessary()
[all …]
/packages/apps/Contacts/src/com/android/contacts/database/
DNoNullCursorAsyncQueryHandler.java36 public void startQuery(int token, Object cookie, Uri uri, String[] projection, String selection, in startQuery() argument
38 final CookieWithProjection projectionCookie = new CookieWithProjection(cookie, projection); in startQuery()
39 super.startQuery(token, projectionCookie, uri, projection, selection, selectionArgs, in startQuery()
50 cursor = new EmptyCursor(projectionCookie.projection); in onQueryComplete()
62 public final String[] projection; field in NoNullCursorAsyncQueryHandler.CookieWithProjection
64 public CookieWithProjection(Object cookie, String[] projection) { in CookieWithProjection() argument
66 this.projection = projection; in CookieWithProjection()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadStorageProvider.java111 private static String[] resolveRootProjection(String[] projection) { in resolveRootProjection() argument
112 return projection != null ? projection : DEFAULT_ROOT_PROJECTION; in resolveRootProjection()
115 private static String[] resolveDocumentProjection(String[] projection) { in resolveDocumentProjection() argument
116 return projection != null ? projection : DEFAULT_DOCUMENT_PROJECTION; in resolveDocumentProjection()
158 public Cursor queryRoots(String[] projection) throws FileNotFoundException { in queryRoots() argument
164 final MatrixCursor result = new MatrixCursor(resolveRootProjection(projection)); in queryRoots()
267 public Cursor queryDocument(String docId, String[] projection) throws FileNotFoundException { in queryDocument() argument
273 return super.queryDocument(docId, projection); in queryDocument()
276 final DownloadsCursor result = new DownloadsCursor(projection, in queryDocument()
307 public Cursor queryChildDocuments(String parentDocId, String[] projection, String sortOrder) in queryChildDocuments() argument
[all …]
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DColumnFilterTest.java83 String[] projection = new String[]{ in testQueryChannel() local
88 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testQueryChannel()
98 String[] projection = new String[]{ in testQueryChannel_count() local
101 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testQueryChannel_count()
117 String[] projection = new String[] { in testQueryChannelWithNoValidColumn() local
120 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testQueryChannelWithNoValidColumn()
129 String[] projection = new String[] { in testInsertAndQueryChannel() local
134 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testInsertAndQueryChannel()
147 String[] projection = new String[] { in testUpdateChannel() local
152 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testUpdateChannel()
DUtils.java211 String[] projection = new String[] { in queryPrograms() local
217 resolver.query(TvContract.Programs.CONTENT_URI, projection, null, null, null); in queryPrograms()
244 String[] projection = new String[] { in queryPreviewPrograms() local
251 TvContract.PreviewPrograms.CONTENT_URI, projection, null, null, null); in queryPreviewPrograms()
277 String[] projection = new String[] { in queryRecordedPrograms() local
283 Cursor cursor = resolver.query(RecordedPrograms.CONTENT_URI, projection, null, null, null); in queryRecordedPrograms()
314 String[] projection = new String[] { in queryWatchedPrograms() local
321 TvContract.WatchedPrograms.CONTENT_URI, projection, null, null, null); in queryWatchedPrograms()
348 String[] projection = new String[] { in queryWatchNextPrograms() local
355 TvContract.WatchNextPrograms.CONTENT_URI, projection, null, null, null); in queryWatchNextPrograms()
[all …]
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
DDeletedContactUtil.java36 String[] projection = new String[]{ in queryDeletedTimestampForContactId() local
40 Cursor cursor = resolver.query(uri, projection, null, null, null); in queryDeletedTimestampForContactId()
48 String[] projection = new String[] { in getCount() local
51 Cursor cursor = resolver.query(URI, projection, null, null, null); in getCount()
64 public static List<String[]> query(ContentResolver resolver, String[] projection) { in query() argument
65 Cursor cursor = resolver.query(URI, projection, null, null, null); in query()
74 public static List<String[]> querySinceTimestamp(ContentResolver resolver, String[] projection, in querySinceTimestamp() argument
78 Cursor cursor = resolver.query(URI, projection, selection, args, null); in querySinceTimestamp()
/packages/apps/Dialer/java/com/android/contacts/common/database/
DNoNullCursorAsyncQueryHandler.java45 String[] projection, in startQuery() argument
54 final CookieWithProjection projectionCookie = new CookieWithProjection(cookie, projection); in startQuery()
55 super.startQuery(token, projectionCookie, uri, projection, selection, selectionArgs, orderBy); in startQuery()
65 cursor = new EmptyCursor(projectionCookie.projection); in onQueryComplete()
97 public final String[] projection; field in NoNullCursorAsyncQueryHandler.CookieWithProjection
99 public CookieWithProjection(Object cookie, String[] projection) { in CookieWithProjection() argument
101 this.projection = projection; in CookieWithProjection()
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DMockContentProvider.java80 public Query withProjection(String... projection) { in withProjection() argument
81 mProjection = projection; in withProjection()
85 public Query withDefaultProjection(String... projection) { in withDefaultProjection() argument
86 mDefaultProjection = projection; in withDefaultProjection()
136 public boolean equals(Uri uri, String[] projection, String selection, in equals() argument
146 if (!mAnyProjection && !Arrays.equals(projection, mProjection)) { in equals()
165 public Cursor getResult(String[] projection) { in getResult() argument
168 columnNames = projection != null ? projection : mDefaultProjection; in getResult()
516 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
520 + queryToString(uri, projection, selection, selectionArgs, sortOrder)); in query()
[all …]
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java279 public Cursor query(Uri uri, String[] projection, String selection, in setUp()
283 if (projection != null) { in setUp()
284 fakeCursor.setProjection(projection); in setUp()
738 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
874 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
933 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
942 return new FakeCursor(table, projection); in query()
944 assertEquals(1, projection.length); in query()
945 assertEquals(Telephony.Threads.ARCHIVED, projection[0]); in query()
952 return new FakeCursor(table, projection); in query()
[all …]
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapIMProvider.java302 protected String[] convertProjection(String[] projection, Map<String, String> projectionMap) { in convertProjection() argument
303 String[] newProjection = new String[projection.length]; in convertProjection()
304 for (int i = 0; i < projection.length; i++) { in convertProjection()
305 newProjection[i] = projectionMap.get(projection[i]) + " as " + projection[i]; in convertProjection()
315 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
326 return queryAccount(projection, selection, selectionArgs, sortOrder); in query()
330 return queryMessage(accountId, projection, selection, selectionArgs, sortOrder); in query()
357 searchString, projection, sortOrder); in query()
361 return queryConvoContact(accountId, contactId, projection, selection, in query()
381 protected abstract Cursor queryAccount(String[] projection, String selection, in queryAccount() argument
[all …]
DBluetoothMapEmailProvider.java505 protected String[] convertProjection(String[] projection, Map<String, String> projectionMap) { in convertProjection() argument
506 String[] newProjection = new String[projection.length]; in convertProjection()
507 for (int i = 0; i < projection.length; i++) { in convertProjection()
508 newProjection[i] = projectionMap.get(projection[i]) + " as " + projection[i]; in convertProjection()
518 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
525 return queryAccount(projection, selection, selectionArgs, sortOrder); in query()
528 return queryFolder(accountId, projection, selection, selectionArgs, sortOrder); in query()
531 return queryMessage(accountId, projection, selection, selectionArgs, sortOrder); in query()
550 protected abstract Cursor queryAccount(String[] projection, String selection, in queryAccount() argument
563 protected abstract Cursor queryFolder(String accountId, String[] projection, String selection, in queryFolder() argument
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DInspectorProvider.java68 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
72 MatrixCursor c = createDocCursor(projection); in queryDocument()
77 MatrixCursor c = createDocCursor(projection); in queryDocument()
94 public Cursor queryChildDocuments(String s, String[] projection, String s1) in queryChildDocuments() argument
98 MatrixCursor c = createDocCursor(projection); in queryChildDocuments()
106 MatrixCursor c = createDocCursor(projection); in queryChildDocuments()
114 MatrixCursor c = createDocCursor(projection); in queryChildDocuments()
121 MatrixCursor c = createDocCursor(projection); in queryChildDocuments()
DStubProvider.java153 public Cursor queryRoots(String[] projection) throws FileNotFoundException { in queryRoots() argument
154 final MatrixCursor result = new MatrixCursor(projection != null ? projection in queryRoots()
170 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
172 final MatrixCursor result = new MatrixCursor(projection != null ? projection in queryDocument()
225 public Cursor queryChildDocumentsForManage(String parentDocumentId, String[] projection, in queryChildDocumentsForManage() argument
227 return queryChildDocuments(parentDocumentId, projection, sortOrder); in queryChildDocumentsForManage()
231 … public Cursor queryChildDocuments(String parentDocumentId, String[] projection, String sortOrder) in queryChildDocuments() argument
241 …MatrixCursor cursor = new MatrixCursor(projection != null ? projection : DEFAULT_DOCUMENT_PROJECTI… in queryChildDocuments()
252 final MatrixCursor result = new MatrixCursor(projection != null ? projection in queryChildDocuments()
268 public Cursor queryRecentDocuments(String rootId, String[] projection) in queryRecentDocuments() argument
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DResourcesProvider.java81 public Cursor queryRoots(String[] projection) throws FileNotFoundException { in queryRoots() argument
82 final MatrixCursor result = new MatrixCursor(projection != null ? projection in queryRoots()
93 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
95 final MatrixCursor result = new MatrixCursor(projection != null ? projection in queryDocument()
113 String parentDocumentId, String[] projection, String sortOrder) in queryChildDocuments() argument
119 final MatrixCursor result = new MatrixCursor(projection != null ? projection in queryChildDocuments()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DArchivesProvider.java91 public Cursor queryRoots(String[] projection) { in queryRoots() argument
93 return new MatrixCursor(projection != null ? projection : DEFAULT_ROOTS_PROJECTION); in queryRoots()
97 public Cursor queryChildDocuments(String documentId, @Nullable String[] projection, in queryChildDocuments() argument
105 return loader.get().queryChildDocuments(documentId, projection, sortOrder); in queryChildDocuments()
109 projection != null ? projection : Archive.DEFAULT_PROJECTION); in queryChildDocuments()
176 public Cursor queryDocument(String documentId, @Nullable String[] projection) in queryDocument() argument
192 projection != null ? projection : Archive.DEFAULT_PROJECTION); in queryDocument()
203 return loader.get().queryDocument(documentId, projection); in queryDocument()
/packages/apps/Gallery2/src/com/android/gallery3d/provider/
DGalleryProvider.java114 public Cursor query(Uri uri, String[] projection, in query() argument
126 projection, selection, selectionArgs, sortOrder); in query()
135 private Cursor queryPicasaItem(MediaObject image, String[] projection, in queryPicasaItem() argument
137 if (projection == null) projection = SUPPORTED_PICASA_COLUMNS; in queryPicasaItem()
138 Object[] columnValues = new Object[projection.length]; in queryPicasaItem()
143 for (int i = 0, n = projection.length; i < n; ++i) { in queryPicasaItem()
144 String column = projection[i]; in queryPicasaItem()
167 MatrixCursor cursor = new MatrixCursor(projection); in queryPicasaItem()
/packages/providers/ContactsProvider/tests2/src/com/android/providers/contacts/tests2/
DAllUriTest.java306 String[] projection, String selection, in checkQueryExecutable() argument
309 try (Cursor c = mResolver.query(uri, projection, selection, in checkQueryExecutable() argument
318 try (Cursor c = mResolver.query(uri, projection, selection, in checkQueryExecutable() argument
330 projection, selection, selectionArgs, sortOrder)) { in checkQueryExecutable() argument
345 projection, selection, selectionArgs, sortOrder)) { in checkQueryExecutable() argument
354 String[] projection, String selection, in checkQueryNotExecutable() argument
357 try (Cursor c = mResolver.query(uri, projection, selection, in checkQueryNotExecutable() argument
524 final String[] projection = {getColumns(uri)[0]}; in testSelectWithAllArgs() local
527 projection, // projection in testSelectWithAllArgs()
582 private void checkColumnNotAccessibleInner(Uri uri, String[] projection, String selection, in checkColumnNotAccessibleInner() argument
[all …]
/packages/apps/Gallery2/src/com/android/photos/data/
DPhotoProvider.java308 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
310 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query()
314 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
316 projection = replaceCount(projection); in query()
321 … Cursor c = query(table, projection, selection, selectionArgs, sortOrder, cancellationSignal); in query()
529 protected static String[] replaceCount(String[] projection) { in replaceCount() argument
530 if (projection != null && projection.length == 1 in replaceCount()
531 && BaseColumns._COUNT.equals(projection[0])) { in replaceCount()
534 return projection; in replaceCount()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java153 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
157 return getEmptyCursorOrThrow(projection); in query()
188 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, orderBy); in query()
352 private static Cursor getEmptyCursorOrThrow(String[] projection) { in getEmptyCursorOrThrow() argument
353 if (projection != null) { in getEmptyCursorOrThrow()
354 for (String column : projection) { in getEmptyCursorOrThrow()
361 projection = new String[columnCount]; in getEmptyCursorOrThrow()
363 projection[i] = sDictProjectionMap.keyAt(i); in getEmptyCursorOrThrow()
367 return new MatrixCursor(projection, 0); in getEmptyCursorOrThrow()

123456789