/packages/apps/Contacts/tests/src/com/android/contacts/tests/mocks/ |
D | MockContentProvider.java | 67 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/apps/Gallery2/src/com/android/gallery3d/filtershow/provider/ |
D | SharedImageProvider.java | 86 …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/TelephonyProvider/src/com/android/providers/telephony/ |
D | MmsSmsProvider.java | 293 public Cursor query(Uri uri, String[] projection, in query() argument 299 cursor = getCompleteConversations(projection, selection, sortOrder); in query() 310 projection, selection, selectionArgs, sortOrder); in query() 313 projection, selection, sortOrder); in query() 317 cursor = getConversationMessages(uri.getPathSegments().get(1), projection, in query() 322 uri.getPathSegments().get(1), projection, selection, in query() 327 uri.getPathSegments().get(1), projection, selection, in query() 332 uri.getPathSegments().get(2), projection, selection, sortOrder); in query() 368 || projection != null) { in query() 409 || projection != null) { in query() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/provider/ |
D | GalleryProvider.java | 116 public Cursor query(Uri uri, String[] projection, in query() argument 128 projection, selection, selectionArgs, sortOrder); in query() 131 projection, selection, selectionArgs, sortOrder); in query() 140 private Cursor queryMtpItem(MtpImage image, String[] projection, in queryMtpItem() argument 142 Object[] columnValues = new Object[projection.length]; in queryMtpItem() 143 for (int i = 0, n = projection.length; i < n; ++i) { in queryMtpItem() 144 String column = projection[i]; in queryMtpItem() 157 MatrixCursor cursor = new MatrixCursor(projection); in queryMtpItem() 162 private Cursor queryPicasaItem(MediaObject image, String[] projection, in queryPicasaItem() argument 164 if (projection == null) projection = SUPPORTED_PICASA_COLUMNS; in queryPicasaItem() [all …]
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/provider/ |
D | ExchangeDirectoryProvider.java | 94 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/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | GlobalSearchSupport.java | 85 public ArrayList<?> asList(String[] projection) { in asList() argument 99 if (projection == null) { in asList() 111 for (int i = 0; i < projection.length; i++) { in asList() 112 addColumnValue(list, projection[i]); in asList() 182 SQLiteDatabase db, Uri uri, String[] projection, String limit) { in handleSearchSuggestionsQuery() argument 184 projection == null ? SEARCH_SUGGESTIONS_COLUMNS : projection); in handleSearchSuggestionsQuery() 192 cursor, db, projection, selection, searchClause, limit); in handleSearchSuggestionsQuery() 208 public Cursor handleSearchShortcutRefresh(SQLiteDatabase db, String[] projection, in handleSearchShortcutRefresh() argument 217 projection == null ? SEARCH_SUGGESTIONS_COLUMNS : projection); in handleSearchShortcutRefresh() 219 db, projection, ContactsColumns.CONCRETE_ID + "=" + contactId, filter, null); in handleSearchShortcutRefresh() [all …]
|
D | ContactsProvider2.java | 4750 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 4752 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query() 4756 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 4759 Log.v(TAG, "query: uri=" + uri + " projection=" + Arrays.toString(projection) + in query() 4772 return mProfileProvider.query(uri, projection, selection, selectionArgs, sortOrder, in query() 4781 queryLocal(uri, projection, selection, selectionArgs, sortOrder, -1, in query() 4785 queryLocal(uri, projection, selection, selectionArgs, sortOrder, in query() 4789 queryLocal(uri, projection, selection, selectionArgs, sortOrder, in query() 4817 if (projection == null) { in query() 4818 projection = getDefaultProjection(uri); in query() [all …]
|
D | ProfileProvider.java | 76 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 78 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query() 82 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 85 return mDelegate.queryLocal(uri, projection, selection, selectionArgs, sortOrder, -1, in query()
|
/packages/apps/Email/src/com/android/email/data/ |
D | ThrottlingCursorLoader.java | 37 public ThrottlingCursorLoader(Context context, Uri uri, String[] projection, String selection, in ThrottlingCursorLoader() argument 39 this(context, uri, projection, selection, selectionArgs, sortOrder, in ThrottlingCursorLoader() 44 public ThrottlingCursorLoader(Context context, Uri uri, String[] projection, String selection, in ThrottlingCursorLoader() argument 46 super(context, uri, projection, selection, selectionArgs, sortOrder); in ThrottlingCursorLoader()
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | JoinContactLoader.java | 71 public void setProjection(String[] projection) { in setProjection() argument 72 super.setProjection(projection); in setProjection() 73 this.mProjection = projection; in setProjection()
|
D | ProfileAndContactsLoader.java | 47 public void setProjection(String[] projection) { in setProjection() argument 48 super.setProjection(projection); in setProjection() 49 mProjection = projection; in setProjection()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | SqlInjectionDetectionTest.java | 95 private void assertQueryValid(final Uri uri, final String[] projection, in assertQueryValid() argument 97 final Cursor c = mResolver.query(uri, projection, selection, null, sortOrder); in assertQueryValid() 102 final String[] projection, final String selection, final String sortOrder) { in assertQueryThrows() argument 106 final Cursor c = mResolver.query(uri, projection, selection, null, sortOrder); in assertQueryThrows()
|
/packages/apps/Email/src/com/android/email/provider/ |
D | ContentCache.java | 474 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 …]
|
D | AttachmentProvider.java | 243 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/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | Utility.java | 658 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/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/ |
D | MockProvider.java | 139 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/tests/src/com/android/exchange/provider/ |
D | MockProvider.java | 139 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/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadProvider.java | 822 public Cursor query(final Uri uri, String[] projection, in query() argument 839 if (projection != null || selection != null || sort != null) { in query() 849 if (projection == null) { in query() 850 projection = sAppReadableColumnsArray.clone(); in query() 853 for (int i = 0; i < projection.length; ++i) { in query() 854 if (!sAppReadableColumnsSet.contains(projection[i]) && in query() 855 !downloadManagerColumnsList.contains(projection[i])) { in query() 857 "column " + projection[i] + " is not allowed in queries"); in query() 862 for (int i = 0; i < projection.length; i++) { in query() 863 final String newColumn = sColumnsMap.get(projection[i]); in query() [all …]
|
/packages/apps/Email/src/com/android/email/activity/ |
D | ShortcutPickerFragment.java | 119 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/apps/Contacts/tests/src/com/android/contacts/tests/ |
D | QueryService.java | 58 final String projection = intent.getStringExtra(EXTRA_PROJECTION); in onHandleIntent() local 63 Log.i(TAG, "Projection: " + projection); in onHandleIntent() 67 Cursor c = getContentResolver().query(uri, parseProjection(projection), selection, null, in onHandleIntent()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | LocalAlbum.java | 169 String[] projection; in getMediaItemById() local 173 projection = LocalImage.PROJECTION; in getMediaItemById() 177 projection = LocalVideo.PROJECTION; in getMediaItemById() 183 Cursor cursor = resolver.query(baseUri, projection, "_id BETWEEN ? AND ?", in getMediaItemById() 221 String[] projection, int id) { in getItemCursor() argument 222 return resolver.query(uri, projection, "_id=?", in getItemCursor()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PicasaSource.java | 119 String[] projection = {PICASA_ID, PICASA_URL, PICASA_ROTATION, PICASA_ALBUM_ID}; in findImages() local 163 projection, selection.toString(), null, null); in findImages() 213 String[] projection = {PICASA_ACCOUNT}; in resolveAccount() local 220 projection, null, null, null); in resolveAccount() 243 String[] projection = {PICASA_ID, PICASA_ALBUM_TYPE, PICASA_ALBUM_UPDATED, in resolveAlbumIds() local 254 projection, selection, null, order); in resolveAlbumIds() 289 String[] projection = {PICASA_ID, PICASA_TITLE, PICASA_THUMB, PICASA_ALBUM_TYPE, in findAlbums() local 297 projection, null, null, null); in findAlbums()
|
D | LocalSource.java | 62 String[] projection = {MediaStore.Images.Media.DATA, MediaStore.Images.Media.BUCKET_ID, in findAlbums() local 66 projection, null, null, null); in findAlbums() 121 String[] projection = {MediaStore.Images.Media.DATA, MediaStore.Images.Media.ORIENTATION, in findImages() local 140 projection, selection, null, null); in findImages()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/ |
D | DumpFileProvider.java | 90 final String[] projection = (inProjection != null) ? inProjection in query() local 93 final MatrixCursor c = new MatrixCursor(projection); in query() 99 final String column = projection[i]; in query()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppProvider.java | 303 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()
|