Home
last modified time | relevance | path

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

123456

/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsProvider.java319 public Cursor query(Uri uri, String[] projection, in query() argument
335 cursor = getCompleteConversations(projection, selection, sortOrder, smsTable, in query()
347 projection, selection, selectionArgs, sortOrder); in query()
350 projection, selection, sortOrder, smsTable, pduTable); in query()
354 cursor = getConversationMessages(uri.getPathSegments().get(1), projection, in query()
359 uri.getPathSegments().get(1), projection, selection, in query()
364 uri.getPathSegments().get(1), projection, selection, in query()
369 uri.getPathSegments().get(2), projection, selection, sortOrder, smsTable, in query()
406 || projection != null) { in query()
448 || projection != null) { in query()
[all …]
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
DMockContentProvider.java67 public Query withProjection(String... projection) { in withProjection() argument
68 mProjection = projection; in withProjection()
72 public Query withDefaultProjection(String... projection) { in withDefaultProjection() argument
73 mDefaultProjection = projection; in withDefaultProjection()
123 public boolean equals(Uri uri, String[] projection, String selection, in equals() argument
129 if (!mAnyProjection && !equals(projection, mProjection)) { in equals()
178 public Cursor getResult(String[] projection) { in getResult() argument
181 columnNames = projection; in getResult()
192 Object[] columns = new Object[projection.length]; in getResult()
193 for (int i = 0; i < projection.length; i++) { in getResult()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsProvider2.java5005 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
5007 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query()
5011 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
5014 Log.v(TAG, "query: uri=" + uri + " projection=" + Arrays.toString(projection) + in query()
5025 return mProfileProvider.query(uri, projection, selection, selectionArgs, sortOrder, in query()
5039 final Cursor cursor = queryLocal(uri, projection, selection, selectionArgs, sortOrder, in query()
5068 if (projection == null) { in query()
5069 projection = getDefaultProjection(uri); in query()
5075 directoryUri, projection, selection, selectionArgs, sortOrder); in query()
5180 protected Cursor queryLocal(final Uri uri, final String[] projection, String selection, in queryLocal() argument
[all …]
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 …]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DUIProviderValidator.java37 public static String[] validateAccountProjection(String[] projection) { in validateAccountProjection() argument
38 return getValidProjection(projection, UIProvider.ACCOUNTS_PROJECTION); in validateAccountProjection()
44 public static String[] validateFolderProjection(String[] projection) { in validateFolderProjection() argument
45 return getValidProjection(projection, UIProvider.FOLDERS_PROJECTION); in validateFolderProjection()
51 public static String[] validateAccountCookieProjection(String[] projection) { in validateAccountCookieProjection() argument
52 return getValidProjection(projection, UIProvider.ACCOUNT_COOKIE_PROJECTION); in validateAccountCookieProjection()
58 public static String[] validateConversationProjection(String[] projection) { in validateConversationProjection() argument
59 return getValidProjection(projection, UIProvider.CONVERSATION_PROJECTION); in validateConversationProjection()
65 public static String[] validateMessageProjection(String[] projection) { in validateMessageProjection() argument
66 return getValidProjection(projection, UIProvider.MESSAGE_PROJECTION); in validateMessageProjection()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DUtility.java563 String[] projection, String selection, String[] selectionArgs, String sortOrder,
567 Cursor c = context.getContentResolver().query(uri, projection, selection, selectionArgs,
584 public static Long getFirstRowLong(Context context, Uri uri, String[] projection,
586 return getFirstRowColumn(context, uri, projection, selection, selectionArgs,
593 public static Long getFirstRowLong(Context context, Uri uri, String[] projection,
596 return getFirstRowColumn(context, uri, projection, selection, selectionArgs,
603 public static Integer getFirstRowInt(Context context, Uri uri, String[] projection,
605 return getFirstRowColumn(context, uri, projection, selection, selectionArgs,
612 public static Integer getFirstRowInt(Context context, Uri uri, String[] projection,
615 return getFirstRowColumn(context, uri, projection, selection, selectionArgs,
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadStorageProvider.java76 private static String[] resolveRootProjection(String[] projection) { in resolveRootProjection() argument
77 return projection != null ? projection : DEFAULT_ROOT_PROJECTION; in resolveRootProjection()
80 private static String[] resolveDocumentProjection(String[] projection) { in resolveDocumentProjection() argument
81 return projection != null ? projection : DEFAULT_DOCUMENT_PROJECTION; in resolveDocumentProjection()
94 public Cursor queryRoots(String[] projection) throws FileNotFoundException { in queryRoots() argument
95 final MatrixCursor result = new MatrixCursor(resolveRootProjection(projection)); in queryRoots()
154 public Cursor queryDocument(String docId, String[] projection) throws FileNotFoundException { in queryDocument() argument
155 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in queryDocument()
178 public Cursor queryChildDocuments(String docId, String[] projection, String sortOrder) in queryChildDocuments() argument
180 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in queryChildDocuments()
[all …]
DDownloadProvider.java853 private Cursor queryCleared(Uri uri, String[] projection, String selection, in queryCleared() argument
857 return query(uri, projection, selection, selectionArgs, sort); in queryCleared()
867 public Cursor query(final Uri uri, String[] projection, in query() argument
884 if (projection != null || selection != null || sort != null) { in query()
894 if (projection == null) { in query()
895 projection = sAppReadableColumnsArray.clone(); in query()
898 for (int i = 0; i < projection.length; ++i) { in query()
899 if (!sAppReadableColumnsSet.contains(projection[i]) && in query()
900 !downloadManagerColumnsList.contains(projection[i])) { in query()
902 "column " + projection[i] + " is not allowed in queries"); in query()
[all …]
/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/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapIMProvider.java291 protected String[] convertProjection(String[] projection, Map<String,String> projectionMap) { in convertProjection() argument
292 String[] newProjection = new String[projection.length]; in convertProjection()
293 for(int i = 0; i < projection.length; i++) { in convertProjection()
294 newProjection[i] = projectionMap.get(projection[i]) + " as " + projection[i]; in convertProjection()
304 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
313 return queryAccount(projection, selection, selectionArgs, sortOrder); in query()
317 return queryMessage(accountId, projection, selection, selectionArgs, sortOrder); in query()
344 searchString, projection, sortOrder); in query()
348 return queryConvoContact(accountId, contactId, projection, in query()
368 abstract protected Cursor queryAccount(String[] projection, String selection, in queryAccount() argument
[all …]
DBluetoothMapEmailProvider.java486 protected String[] convertProjection(String[] projection, Map<String,String> projectionMap) { in convertProjection() argument
487 String[] newProjection = new String[projection.length]; in convertProjection()
488 for(int i = 0; i < projection.length; i++) { in convertProjection()
489 newProjection[i] = projectionMap.get(projection[i]) + " as " + projection[i]; in convertProjection()
498 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
505 return queryAccount(projection, selection, selectionArgs, sortOrder); in query()
508 return queryFolder(accountId, projection, selection, selectionArgs, sortOrder); in query()
511 return queryMessage(accountId, projection, selection, selectionArgs, sortOrder); in query()
530 …abstract protected Cursor queryAccount(String[] projection, String selection, String[] selectionAr… in queryAccount() argument
543 …abstract protected Cursor queryFolder(String accountId, String[] projection, String selection, Str… in queryFolder() argument
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/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/apps/Email/provider_src/com/android/email/provider/
DContentCache.java475 public Cursor putCursor(Cursor c, String id, String[] projection, CacheToken token) { in putCursor() argument
480 return putCursorImpl(c, id, projection, token); in putCursor()
482 public synchronized Cursor putCursorImpl(Cursor c, String id, String[] projection, in putCursorImpl() argument
492 if (c != null && Arrays.equals(projection, mBaseProjection) && !sLockCache) { in putCursorImpl()
516 public synchronized Cursor getCachedCursor(String id, String[] projection) { in getCachedCursor() argument
521 if (projection == mBaseProjection) { in getCachedCursor()
524 return getMatrixCursor(id, projection); in getCachedCursor()
538 private MatrixCursor getMatrixCursor(String id, String[] projection) { in getMatrixCursor() argument
539 return getMatrixCursor(id, projection, null); in getMatrixCursor()
542 private MatrixCursor getMatrixCursor(String id, String[] projection, in getMatrixCursor() argument
[all …]
DAttachmentProvider.java247 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
251 if (projection == null) { in query()
252 projection = in query()
282 MatrixCursor ret = new MatrixCursorWithCachedColumns(projection); in query()
283 Object[] values = new Object[projection.length]; in query()
284 for (int i = 0, count = projection.length; i < count; i++) { in query()
285 String column = projection[i]; in query()
/packages/providers/ContactsProvider/tests/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()
DRawContactUtil.java44 long rawContactId, String[] projection) { in queryByRawContactId() argument
47 Cursor cursor = resolver.query(uri, projection, null, null, null); in queryByRawContactId()
57 String[] projection) { in queryByContactId() argument
59 Cursor cursor = resolver.query(uri, projection, null, null, null); in queryByContactId()
73 String[] projection = new String[]{ in queryContactIdByRawContactId() local
77 projection); in queryContactIdByRawContactId()
/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/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/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java148 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
170 return getEmptyCursorOrThrow(projection); in query()
183 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, orderBy); in query()
347 private static Cursor getEmptyCursorOrThrow(String[] projection) { in getEmptyCursorOrThrow() argument
348 if (projection != null) { in getEmptyCursorOrThrow()
349 for (String column : projection) { in getEmptyCursorOrThrow()
356 projection = new String[columnCount]; in getEmptyCursorOrThrow()
358 projection[i] = sDictProjectionMap.keyAt(i); in getEmptyCursorOrThrow()
362 return new MatrixCursor(projection, 0); in getEmptyCursorOrThrow()
/packages/apps/Messaging/src/com/android/messaging/sms/
DDatabaseMessages.java107 String[] projection = new String[] { in getProjection() local
121 projection[INDEX_DATE_SENT] = Sms.DATE; in getProjection()
124 Assert.equals(INDEX_SUB_ID, projection.length - 1); in getProjection()
125 String[] withoutSubId = new String[projection.length - 1]; in getProjection()
126 System.arraycopy(projection, 0, withoutSubId, 0, withoutSubId.length); in getProjection()
127 projection = withoutSubId; in getProjection()
130 sProjection = projection; in getProjection()
288 String[] projection = new String[] { in getProjection() local
311 Assert.equals(INDEX_SUB_ID, projection.length - 1); in getProjection()
312 String[] withoutSubId = new String[projection.length - 1]; in getProjection()
[all …]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPicasaSource.java107 String[] projection = {PICASA_ID, PICASA_URL, PICASA_ROTATION, PICASA_ALBUM_ID}; in openCursor() local
115 projection, selection, null, null); in openCursor()
176 String[] projection = {PICASA_ID, PICASA_URL, PICASA_ROTATION, PICASA_ALBUM_ID}; in findImages() local
219 projection, selection.toString(), null, null); in findImages()
258 String[] projection = {PICASA_ACCOUNT}; in resolveAccount() local
265 projection, null, null, null); in resolveAccount()
288 String[] projection = {PICASA_ID, PICASA_ALBUM_TYPE, PICASA_ALBUM_UPDATED, in resolveAlbumIds() local
299 projection, selection, null, order); in resolveAlbumIds()
332 String[] projection = {PICASA_ID, PICASA_TITLE, PICASA_THUMB, PICASA_ALBUM_TYPE, in findAlbums() local
340 projection, null, null, null); in findAlbums()
DLocalSource.java73 String[] projection = {MediaStore.Images.Media.DATA, MediaStore.Images.Media.BUCKET_ID, in findAlbums() local
76 Cursor cursor = mResolver.query(uri, projection, null, null, null); in findAlbums()
129 String[] projection = {MediaStore.Images.Media.DATA, MediaStore.Images.Media.ORIENTATION, in openCursor() local
133 data.cursor = mResolver.query(data.uri, projection, selection, null, null); in openCursor()
191 String[] projection = {MediaStore.Images.Media.DATA, MediaStore.Images.Media.ORIENTATION, in findImages() local
208 Cursor cursor = mResolver.query(uri, projection, selection, null, null); in findImages()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java182 private static String[] resolveRootProjection(String[] projection) { in resolveRootProjection() argument
183 return projection != null ? projection : DEFAULT_ROOT_PROJECTION; in resolveRootProjection()
186 private static String[] resolveDocumentProjection(String[] projection) { in resolveDocumentProjection() argument
187 return projection != null ? projection : DEFAULT_DOCUMENT_PROJECTION; in resolveDocumentProjection()
220 public Cursor queryRoots(String[] projection) throws FileNotFoundException { in queryRoots() argument
221 final MatrixCursor result = new MatrixCursor(resolveRootProjection(projection)); in queryRoots()
229 public Cursor queryDocument(String docId, String[] projection) throws FileNotFoundException { in queryDocument() argument
231 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in queryDocument()
320 public Cursor queryChildDocuments(String docId, String[] projection, String sortOrder) in queryChildDocuments() argument
323 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in queryChildDocuments()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseContactsProvider2Test.java570 protected Cursor queryContact(long contactId, String[] projection) { in queryContact() argument
572 projection, null, null, null); in queryContact()
654 final String[] projection = new String[] { in assertStructuredName() local
659 Cursor c = mResolver.query(uri, projection, Data.MIMETYPE + "='" in assertStructuredName()
741 final String[] projection = new String[]{Data.MIMETYPE, Data._ID, Data.IS_SUPER_PRIMARY}; in assertSuperPrimary() local
743 projection, null, null, null); in assertSuperPrimary()
1037 String[] projection) { in assertSelection() argument
1059 … Cursor c = mResolver.query(uri, projection, sb.toString(), selectionArgs.toArray(new String[0]), in assertSelection()
1209 String[] projection = new String[values.size()]; in buildProjection() local
1211 for (int i = 0; i < projection.length; i++) { in buildProjection()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDatabaseWrapper.java198 final String[] projection, final String selection, in explainQueryPlan() argument
206 projection, in explainQueryPlan()
244 public Cursor query(final String searchTable, final String[] projection, in query() argument
250 explainQueryPlan(qb, mDatabase, projection, selection, selectionArgs, in query()
259 final Cursor cursor = mDatabase.query(searchTable, projection, selection, selectionArgs, in query()
279 final String[] projection, final String selection, final String[] queryArgs, in query() argument
282 explainQueryPlan(qb, mDatabase, projection, selection, queryArgs, in query()
290 final Cursor cursor = qb.query(mDatabase, projection, selection, queryArgs, groupBy, in query()

123456