Home
last modified time | relevance | path

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

12345

/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsProvider.java295 public Cursor query(Uri uri, String[] projection, in query() argument
301 cursor = getCompleteConversations(projection, selection, sortOrder); in query()
312 projection, selection, selectionArgs, sortOrder); in query()
315 projection, selection, sortOrder); in query()
319 cursor = getConversationMessages(uri.getPathSegments().get(1), projection, in query()
324 uri.getPathSegments().get(1), projection, selection, in query()
329 uri.getPathSegments().get(1), projection, selection, in query()
334 uri.getPathSegments().get(2), projection, selection, sortOrder); in query()
370 || projection != null) { in query()
411 || 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.java4921 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
4923 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query()
4927 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
4930 Log.v(TAG, "query: uri=" + uri + " projection=" + Arrays.toString(projection) + in query()
4943 return mProfileProvider.query(uri, projection, selection, selectionArgs, sortOrder, in query()
4952 queryLocal(uri, projection, selection, selectionArgs, sortOrder, -1, in query()
4956 queryLocal(uri, projection, selection, selectionArgs, sortOrder, in query()
4960 queryLocal(uri, projection, selection, selectionArgs, sortOrder, in query()
4988 if (projection == null) { in query()
4989 projection = getDefaultProjection(uri); in query()
[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/Exchange/exchange2/src/com/android/exchange/provider/
DExchangeDirectoryProvider.java94 GalProjection(String[] projection) { in GalProjection() argument
95 size = projection.length; in GalProjection()
96 for (int i = 0; i < projection.length; i++) { in GalProjection()
97 columnMap.put(projection[i], i); in GalProjection()
107 GalContactRow(GalProjection projection, long contactId, String lookupKey, in GalContactRow() argument
109 this.mProjection = projection; in GalContactRow()
110 row = new Object[projection.size]; in GalContactRow()
155 static void addPhoneRow(MatrixCursor cursor, GalProjection projection, long contactId, in addPhoneRow() argument
159 projection, contactId, lookupKey, accountName, displayName); in addPhoneRow()
199 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DUtility.java658 String[] projection, String selection, String[] selectionArgs, String sortOrder,
662 Cursor c = context.getContentResolver().query(uri, projection, selection, selectionArgs,
679 public static Long getFirstRowLong(Context context, Uri uri, String[] projection,
681 return getFirstRowColumn(context, uri, projection, selection, selectionArgs,
688 public static Long getFirstRowLong(Context context, Uri uri, String[] projection,
691 return getFirstRowColumn(context, uri, projection, selection, selectionArgs,
698 public static Integer getFirstRowInt(Context context, Uri uri, String[] projection,
700 return getFirstRowColumn(context, uri, projection, selection, selectionArgs,
707 public static Integer getFirstRowInt(Context context, Uri uri, String[] projection,
710 return getFirstRowColumn(context, uri, projection, selection, selectionArgs,
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java832 public Cursor query(final Uri uri, String[] projection, in query() argument
849 if (projection != null || selection != null || sort != null) { in query()
859 if (projection == null) { in query()
860 projection = sAppReadableColumnsArray.clone(); in query()
863 for (int i = 0; i < projection.length; ++i) { in query()
864 if (!sAppReadableColumnsSet.contains(projection[i]) && in query()
865 !downloadManagerColumnsList.contains(projection[i])) { in query()
867 "column " + projection[i] + " is not allowed in queries"); in query()
872 for (int i = 0; i < projection.length; i++) { in query()
873 final String newColumn = sColumnsMap.get(projection[i]); 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/Email/src/com/android/email/provider/
DContentCache.java474 public Cursor putCursor(Cursor c, String id, String[] projection, CacheToken token) { in putCursor() argument
479 return putCursorImpl(c, id, projection, token); in putCursor()
481 public synchronized Cursor putCursorImpl(Cursor c, String id, String[] projection, in putCursorImpl() argument
491 if (c != null && Arrays.equals(projection, mBaseProjection) && !sLockCache) { in putCursorImpl()
515 public synchronized Cursor getCachedCursor(String id, String[] projection) { in getCachedCursor() argument
520 if (projection == mBaseProjection) { in getCachedCursor()
523 return getMatrixCursor(id, projection); in getCachedCursor()
537 private MatrixCursor getMatrixCursor(String id, String[] projection) { in getMatrixCursor() argument
538 return getMatrixCursor(id, projection, null); in getMatrixCursor()
541 private MatrixCursor getMatrixCursor(String id, String[] projection, in getMatrixCursor() argument
[all …]
DAttachmentProvider.java243 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
247 if (projection == null) { in query()
248 projection = in query()
278 MatrixCursor ret = new MatrixCursor(projection); in query()
279 Object[] values = new Object[projection.length]; in query()
280 for (int i = 0, count = projection.length; i < count; i++) { in query()
281 String column = projection[i]; in query()
/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/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/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPicasaSource.java109 String[] projection = {PICASA_ID, PICASA_URL, PICASA_ROTATION, PICASA_ALBUM_ID}; in openCursor() local
117 projection, selection, null, null); in openCursor()
178 String[] projection = {PICASA_ID, PICASA_URL, PICASA_ROTATION, PICASA_ALBUM_ID}; in findImages() local
221 projection, selection.toString(), null, null); in findImages()
260 String[] projection = {PICASA_ACCOUNT}; in resolveAccount() local
267 projection, null, null, null); in resolveAccount()
290 String[] projection = {PICASA_ID, PICASA_ALBUM_TYPE, PICASA_ALBUM_UPDATED, in resolveAlbumIds() local
301 projection, selection, null, order); in resolveAlbumIds()
334 String[] projection = {PICASA_ID, PICASA_TITLE, PICASA_THUMB, PICASA_ALBUM_TYPE, in findAlbums() local
342 projection, null, null, null); in findAlbums()
DLocalSource.java62 String[] projection = {MediaStore.Images.Media.DATA, MediaStore.Images.Media.BUCKET_ID, in findAlbums() local
66 projection, null, null, null); in findAlbums()
119 String[] projection = {MediaStore.Images.Media.DATA, MediaStore.Images.Media.ORIENTATION, in openCursor() local
124 projection, selection, null, null); in openCursor()
173 String[] projection = {MediaStore.Images.Media.DATA, MediaStore.Images.Media.ORIENTATION, in findImages() local
192 projection, selection, null, null); in findImages()
/packages/apps/Email/src/com/android/email/activity/
DShortcutPickerFragment.java119 public AccountPickerLoader(Context context, Uri uri, String[] projection, String selection, in AccountPickerLoader() argument
121 super(context, uri, projection, selection, selectionArgs, sortOrder); in AccountPickerLoader()
236 public MailboxPickerLoader(Context context, Uri uri, String[] projection, String selection, in MailboxPickerLoader() argument
238 super(context, uri, projection, selection, selectionArgs, sortOrder); in MailboxPickerLoader()
378 final String[] projection; in onCreateLoader() local
382 projection = EAS_PROJECTION; in onCreateLoader()
385 projection = IMAP_PROJECTION; in onCreateLoader()
394 context, Mailbox.CONTENT_URI, projection, selection, in onCreateLoader()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseContactsProvider2Test.java534 protected Cursor queryContact(long contactId, String[] projection) { in queryContact() argument
536 projection, null, null, null); in queryContact()
618 final String[] projection = new String[] { in assertStructuredName() local
623 Cursor c = mResolver.query(uri, projection, Data.MIMETYPE + "='" in assertStructuredName()
995 String[] projection) { in assertSelection() argument
1017 … Cursor c = mResolver.query(uri, projection, sb.toString(), selectionArgs.toArray(new String[0]), in assertSelection()
1146 String[] projection = new String[values.size()]; in buildProjection() local
1148 for (int i = 0; i < projection.length; i++) { in buildProjection()
1149 projection[i] = iter.next().getKey(); in buildProjection()
1151 return projection; in buildProjection()
[all …]
/packages/apps/Gallery2/tests/src/com/android/photos/data/
DPhotoProviderTest.java89 String[] projection = { in setUp() local
92 Cursor cursor = db.query(Metadata.TABLE, projection, null, null, null, null, null); in setUp()
252 String[] projection = { in testUpdate() local
255 Cursor cursor = mResolver.query(albumUri, projection, null, null, null); in testUpdate()
273 projection = new String[] { in testUpdate()
281 cursor = mResolver.query(Metadata.CONTENT_URI, projection, WHERE_METADATA, selectionArgs, in testUpdate()
293 cursor = mResolver.query(Metadata.CONTENT_URI, projection, WHERE_METADATA, selectionArgs, in testUpdate()
303 cursor = mResolver.query(Metadata.CONTENT_URI, projection, WHERE_METADATA, selectionArgs, in testUpdate()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalAlbum.java172 String[] projection; in getMediaItemById() local
176 projection = LocalImage.PROJECTION; in getMediaItemById()
180 projection = LocalVideo.PROJECTION; in getMediaItemById()
186 Cursor cursor = resolver.query(baseUri, projection, "_id BETWEEN ? AND ?", in getMediaItemById()
224 String[] projection, int id) { in getItemCursor() argument
225 return resolver.query(uri, projection, "_id=?", in getItemCursor()
/packages/apps/Browser/src/com/android/browser/provider/
DBrowserProvider2.java877 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
969 query = qb.buildQuery(projection, where, null, null, sortOrder, null); in query()
981 String bookmarksBarQuery = qb.buildQuery(projection, in query()
993 String otherBookmarksQuery = qb.buildQuery(projection, in query()
1058 return mSyncHelper.query(db, projection, selection, selectionArgs, sortOrder); in query()
1066 return mSyncHelper.query(db, projection, selectionWithId, selectionArgs, sortOrder); in query()
1086 && projection == null) { in query()
1087 projection = Browser.HISTORY_PROJECTION; in query()
1089 String[] args = createCombinedQuery(uri, projection, qb); in query()
1126 Cursor cursor = qb.query(db, projection, selection, selectionArgs, groupBy, in query()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java303 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
342 if (projection == null) { in query()
344 } else if (projection.length == 0) { in query()
347 for (int i = 0; i < projection.length; ++i) { in query()
351 sb.append(projection[i]); in query()
377 Cursor ret = qb.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
/packages/apps/Exchange/tests/src/com/android/exchange/provider/
DMockProvider.java139 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
141 if (selection != null || selectionArgs != null || sortOrder != null || projection == null) { in query()
165 MatrixCursor cursor = new MatrixCursor(projection, 1); in query()
167 Object[] rowValues = new Object[projection.length]; in query()
169 for (String column: projection) { in query()
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/
DMockProvider.java139 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
141 if (selection != null || selectionArgs != null || sortOrder != null || projection == null) { in query()
165 MatrixCursor cursor = new MatrixCursor(projection, 1); in query()
167 Object[] rowValues = new Object[projection.length]; in query()
169 for (String column: projection) { in query()

12345