Home
last modified time | relevance | path

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

12345678910

/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/enterprise/
DCrossProfileCalendarHelperTest.java39 final String[] projection = new String[]{ in testProjectionNotInAllowedList_throwErrorForCalendars() local
44 mHelper.getCalibratedProjection(projection, Calendars.CONTENT_URI); in testProjectionNotInAllowedList_throwErrorForCalendars()
52 final String[] projection = new String[] { in testProjectionNotInAllowedList_throwErrorForEvents() local
57 mHelper.getCalibratedProjection(projection, Events.CONTENT_URI); in testProjectionNotInAllowedList_throwErrorForEvents()
65 final String[] projection = new String[] { in testProjectionNotInAllowedList_throwErrorForInstances() local
70 mHelper.getCalibratedProjection(projection, Instances.CONTENT_URI); in testProjectionNotInAllowedList_throwErrorForInstances()
78 final String[] projection = mHelper.getCalibratedProjection(null, Calendars.CONTENT_URI); in testNoProjection_getFullAllowedListProjectionForCalendars() local
79 final Set<String> projectionSet = new ArraySet<String>(Arrays.asList(projection)); in testNoProjection_getFullAllowedListProjectionForCalendars()
85 final String[] projection = mHelper.getCalibratedProjection(null, Events.CONTENT_URI); in testNoProjection_getFullAllowedListProjectionForEvents() local
86 final Set<String> projectionSet = new ArraySet<String>(Arrays.asList(projection)); in testNoProjection_getFullAllowedListProjectionForEvents()
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsProvider.java324 public Cursor query(Uri uri, String[] projection, in query() argument
338 SqlQueryChecker.checkQueryParametersForSubqueries(projection, selection, sortOrder); in query()
350 cursor = getCompleteConversations(projection, selection, sortOrder, smsTable, in query()
362 projection, selection, selectionArgs, sortOrder); in query()
365 projection, selection, sortOrder, smsTable, pduTable); in query()
369 cursor = getConversationMessages(uri.getPathSegments().get(1), projection, in query()
374 uri.getPathSegments().get(1), projection, selection, in query()
379 uri.getPathSegments().get(1), projection, selection, in query()
384 uri.getPathSegments().get(2), projection, selection, sortOrder, smsTable, in query()
421 || projection != null) { in query()
[all …]
/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DAudioStore.java83 String[] projection = { in load() local
87 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
107 String[] projection = { in load() local
112 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
141 String[] projection = { in load() local
149 … Cursor cursor = mContentResolver.query(contentUri, projection, selection, null, sortOrder); in load()
188 String[] projection = { in load() local
192 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
212 String[] projection = { in load() local
216 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
[all …]
/packages/services/Telephony/src/com/android/phone/
DSimPhonebookProvider.java147 private static void validateProjection(Set<String> allowed, String[] projection) { in validateProjection() argument
148 if (projection == null || allowed.containsAll(Arrays.asList(projection))) { in validateProjection()
151 Set<String> invalidColumns = new LinkedHashSet<>(Arrays.asList(projection)); in validateProjection()
238 public Cursor query(@NonNull Uri uri, @Nullable String[] projection, @Nullable Bundle queryArgs, in query() argument
248 return queryElementaryFiles(projection); in query()
251 projection); in query()
253 return querySimRecords(PhonebookArgs.forSimRecords(uri, queryArgs), projection); in query()
256 projection); in query()
264 public Cursor query(@NonNull Uri uri, @Nullable String[] projection, @Nullable String selection, in query() argument
272 public Cursor query(@NonNull Uri uri, @Nullable String[] projection, @Nullable String selection, in query() argument
[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/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/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.java5409 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
5411 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query()
5415 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
5426 cursor = queryInternal(uri, projection, selection, selectionArgs, sortOrder, in query()
5438 private Cursor queryInternal(Uri uri, String[] projection, String selection, in queryInternal() argument
5441 Log.v(TAG, "query: uri=" + uri + " projection=" + Arrays.toString(projection) + in queryInternal()
5448 mContactsHelper.validateProjection(getCallingPackage(), projection); in queryInternal() local
5467 return mProfileProvider.query(uri, projection, selection, selectionArgs, sortOrder, in queryInternal()
5476 return queryDirectoryIfNecessary(uri, projection, selection, selectionArgs, sortOrder, in queryInternal()
5525 private Cursor queryDirectoryIfNecessary(Uri uri, String[] projection, String selection, in queryDirectoryIfNecessary() argument
[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/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/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/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()
134 @Nullable String[] projection, @Nullable String sortOrder) in queryChildDocumentsForManage() argument
137 return queryChildDocuments(parentDocumentId, projection, sortOrder); in queryChildDocumentsForManage()
184 public Cursor queryDocument(String documentId, @Nullable String[] projection) in queryDocument() argument
200 projection != null ? projection : Archive.DEFAULT_PROJECTION); in queryDocument()
211 return loader.get().queryDocument(documentId, projection); in queryDocument()
/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/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/
DResourcesProvider.java78 public Cursor queryRoots(String[] projection) throws FileNotFoundException { in queryRoots() argument
79 final MatrixCursor result = new MatrixCursor(projection != null ? projection in queryRoots()
90 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
92 final MatrixCursor result = new MatrixCursor(projection != null ? projection in queryDocument()
110 String parentDocumentId, String[] projection, String sortOrder) in queryChildDocuments() argument
116 final MatrixCursor result = new MatrixCursor(projection != null ? projection in queryChildDocuments()
/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()
161 public Cursor queryRoots(String[] projection) throws FileNotFoundException { in queryRoots() argument
167 final MatrixCursor result = new MatrixCursor(resolveRootProjection(projection)); in queryRoots()
269 public Cursor queryDocument(String docId, String[] projection) throws FileNotFoundException { in queryDocument() argument
275 return super.queryDocument(docId, projection); in queryDocument()
278 final DownloadsCursor result = new DownloadsCursor(projection, in queryDocument()
310 public Cursor queryChildDocuments(String parentDocId, String[] projection, String sortOrder) in queryChildDocuments() 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()
/packages/services/Mtp/src/com/android/mtp/
DMtpDocumentsProvider.java173 public Cursor queryRoots(String[] projection) throws FileNotFoundException { in queryRoots() argument
174 if (projection == null) { in queryRoots()
175 projection = MtpDocumentsProvider.DEFAULT_ROOT_PROJECTION; in queryRoots()
177 final Cursor cursor = mDatabase.queryRoots(mResources, projection); in queryRoots()
184 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
186 if (projection == null) { in queryDocument()
187 projection = MtpDocumentsProvider.DEFAULT_DOCUMENT_PROJECTION; in queryDocument()
189 final Cursor cursor = mDatabase.queryDocument(documentId, projection); in queryDocument()
206 return mDatabase.queryDocument(documentId, projection); in queryDocument()
234 final MatrixCursor output = new MatrixCursor(projection, 1); in queryDocument()
[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/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java291 public Cursor query(Uri uri, String[] projection, String selection, in setUp()
295 if (projection != null) { in setUp()
296 fakeCursor.setProjection(projection); in setUp()
828 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
964 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
1023 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
1032 return new FakeCursor(table, projection); in query()
1034 assertEquals(1, projection.length); in query()
1035 assertEquals(Telephony.Threads.ARCHIVED, projection[0]); in query()
1042 return new FakeCursor(table, projection); in query()
[all …]
/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/services/Telephony/tests/src/com/android/phone/
DSimPhonebookProviderTest.java152 String[] projection = Arrays.copyOf( in query_entityFiles_returnsCursorWithCorrectProjection() local
155 Collections.shuffle(Arrays.asList(projection)); in query_entityFiles_returnsCursorWithCorrectProjection()
156 try (Cursor cursor = mResolver.query(ElementaryFiles.CONTENT_URI, projection, null, null)) { in query_entityFiles_returnsCursorWithCorrectProjection() argument
157 assertThat(cursor).hasColumnNames(projection); in query_entityFiles_returnsCursorWithCorrectProjection()
193 String[] projection = { in query_entityFiles_multiSim_returnsCursorWithRowForEachSimEf() local
198 try (Cursor cursor = mResolver.query(ElementaryFiles.CONTENT_URI, projection, null, null)) { in query_entityFiles_multiSim_returnsCursorWithRowForEachSimEf() argument
199 assertThat(cursor).hasColumnNames(projection); in query_entityFiles_multiSim_returnsCursorWithRowForEachSimEf()
268 String[] projection = Arrays.copyOf( in query_adnRecords_returnsCursorWithMatchingProjection() local
271 Collections.shuffle(Arrays.asList(projection)); in query_adnRecords_returnsCursorWithMatchingProjection()
272 try (Cursor cursor = mResolver.query(contentAdn, projection, null, null)) { in query_adnRecords_returnsCursorWithMatchingProjection() argument
[all …]

12345678910