/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | UIProviderValidator.java | 37 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/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | MmsSmsProvider.java | 320 public Cursor query(Uri uri, String[] projection, in query() argument 336 cursor = getCompleteConversations(projection, selection, sortOrder, smsTable, in query() 348 projection, selection, selectionArgs, sortOrder); in query() 351 projection, selection, sortOrder, smsTable, pduTable); in query() 355 cursor = getConversationMessages(uri.getPathSegments().get(1), projection, in query() 360 uri.getPathSegments().get(1), projection, selection, in query() 365 uri.getPathSegments().get(1), projection, selection, in query() 370 uri.getPathSegments().get(2), projection, selection, sortOrder, smsTable, in query() 407 || projection != null) { in query() 449 || projection != null) { in query() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/database/ |
D | NoNullCursorAsyncQueryHandler.java | 36 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/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/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadStorageProvider.java | 80 private static String[] resolveRootProjection(String[] projection) { in resolveRootProjection() argument 81 return projection != null ? projection : DEFAULT_ROOT_PROJECTION; in resolveRootProjection() 84 private static String[] resolveDocumentProjection(String[] projection) { in resolveDocumentProjection() argument 85 return projection != null ? projection : DEFAULT_DOCUMENT_PROJECTION; in resolveDocumentProjection() 98 public Cursor queryRoots(String[] projection) throws FileNotFoundException { in queryRoots() argument 99 final MatrixCursor result = new MatrixCursor(resolveRootProjection(projection)); in queryRoots() 177 public Cursor queryDocument(String docId, String[] projection) throws FileNotFoundException { in queryDocument() argument 179 return mArchiveHelper.queryDocument(docId, projection); in queryDocument() 182 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in queryDocument() 207 public Cursor queryChildDocuments(String docId, String[] projection, String sortOrder) in queryChildDocuments() argument [all …]
|
D | DownloadProvider.java | 866 private Cursor queryCleared(Uri uri, String[] projection, String selection, in queryCleared() argument 870 return query(uri, projection, selection, selectionArgs, sort); in queryCleared() 880 public Cursor query(final Uri uri, String[] projection, in query() argument 897 if (projection != null || selection != null || sort != null) { in query() 907 if (projection == null) { in query() 908 projection = sAppReadableColumnsArray.clone(); in query() 911 for (int i = 0; i < projection.length; ++i) { in query() 912 if (!sAppReadableColumnsSet.contains(projection[i]) && in query() 913 !downloadManagerColumnsList.contains(projection[i])) { in query() 915 "column " + projection[i] + " is not allowed in queries"); in query() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
D | DeletedContactUtil.java | 36 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()
|
D | RawContactUtil.java | 45 long rawContactId, String[] projection) { in queryByRawContactId() argument 48 Cursor cursor = resolver.query(uri, projection, null, null, null); in queryByRawContactId() 58 String[] projection) { in queryByContactId() argument 60 Cursor cursor = resolver.query(uri, projection, null, null, null); in queryByContactId() 74 String[] projection = new String[]{ in queryContactIdByRawContactId() local 78 projection); in queryContactIdByRawContactId()
|
D | ContactUtil.java | 45 String[] projection = new String[]{ in recordExistsForContactId() local 49 Cursor cursor = resolver.query(uri, projection, null, null, null); in recordExistsForContactId() 57 String[] projection = new String[]{ in queryContactLastUpdatedTimestamp() local 62 Cursor cursor = resolver.query(uri, projection, null, null, null); in queryContactLastUpdatedTimestamp()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | GlobalSearchSupport.java | 86 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 …]
|
D | ContactsProvider2.java | 5479 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 5481 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query() 5485 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 5488 Log.v(TAG, "query: uri=" + uri + " projection=" + Arrays.toString(projection) + in query() 5501 return createEmptyCursor(uri, projection); in query() 5506 return mProfileProvider.query(uri, projection, selection, selectionArgs, sortOrder, in query() 5514 return queryDirectoryIfNecessary(uri, projection, selection, selectionArgs, sortOrder, in query() 5523 private Cursor queryDirectoryIfNecessary(Uri uri, String[] projection, String selection, in queryDirectoryIfNecessary() argument 5532 final Cursor cursor = queryLocal(uri, projection, selection, selectionArgs, sortOrder, in queryDirectoryIfNecessary() 5537 return queryDirectoryAuthority(uri, projection, selection, selectionArgs, sortOrder, in queryDirectoryIfNecessary() [all …]
|
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/ |
D | MockContentProvider.java | 68 public Query withProjection(String... projection) { in withProjection() argument 69 mProjection = projection; in withProjection() 73 public Query withDefaultProjection(String... projection) { in withDefaultProjection() argument 74 mDefaultProjection = projection; in withDefaultProjection() 124 public boolean equals(Uri uri, String[] projection, String selection, in equals() argument 130 if (!mAnyProjection && !Arrays.equals(projection, mProjection)) { in equals() 149 public Cursor getResult(String[] projection) { in getResult() argument 152 columnNames = projection; in getResult() 163 Object[] columns = new Object[projection.length]; in getResult() 164 for (int i = 0; i < projection.length; i++) { in getResult() [all …]
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | Utility.java | 563 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/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | TelephonyBackupAgentTest.java | 220 public Cursor query(Uri uri, String[] projection, String selection, in setUp() 224 if (projection != null) { in setUp() 225 fakeCursor.setProjection(projection); in setUp() 616 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 710 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 769 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 778 return new FakeCursor(table, projection); in query() 780 assertEquals(1, projection.length); in query() 781 assertEquals(Telephony.Threads.ARCHIVED, projection[0]); in query() 788 return new FakeCursor(table, projection); in query() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | ProfileAndContactsLoader.java | 56 public void setProjection(String[] projection) { in setProjection() argument 57 super.setProjection(projection); in setProjection() 58 mProjection = projection; in setProjection() 62 public void setLoadExtraContactsFirst(Uri uri, String[] projection) { in setLoadExtraContactsFirst() argument 64 mExtraProjection = projection; in setLoadExtraContactsFirst() 69 public void setLoadExtraContactsLast(Uri uri, String[] projection, String selection, in setLoadExtraContactsLast() argument 72 mExtraProjection = projection; in setLoadExtraContactsLast()
|
/packages/apps/Gallery2/src/com/android/gallery3d/provider/ |
D | GalleryProvider.java | 114 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/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/ |
D | BluetoothMapIMProvider.java | 291 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 …]
|
D | BluetoothMapEmailProvider.java | 486 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/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
D | UserDictionaryProvider.java | 149 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 171 return getEmptyCursorOrThrow(projection); in query() 184 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, orderBy); in query() 348 private static Cursor getEmptyCursorOrThrow(String[] projection) { in getEmptyCursorOrThrow() argument 349 if (projection != null) { in getEmptyCursorOrThrow() 350 for (String column : projection) { in getEmptyCursorOrThrow() 357 projection = new String[columnCount]; in getEmptyCursorOrThrow() 359 projection[i] = sDictProjectionMap.keyAt(i); in getEmptyCursorOrThrow() 363 return new MatrixCursor(projection, 0); in getEmptyCursorOrThrow()
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | ContentCache.java | 475 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 …]
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
D | PhotoProvider.java | 308 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/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | EnterpriseContactsCursorWrapperTest.java | 33 final String[] projection = new String[] { in testWrappedResults() local 55 final MatrixCursor c = new MatrixCursor(projection); in testWrappedResults() 58 Cursor rewritten = new EnterpriseContactsCursorWrapper(c, projection, in testWrappedResults() 62 assertEquals(projection.length, rewritten.getColumnCount()); in testWrappedResults() 179 rewritten = new EnterpriseContactsCursorWrapper(c, projection, new int[] {0, 1}, null); in testWrappedResults() 181 assertEquals(projection.length, rewritten.getColumnCount()); in testWrappedResults()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PicasaSource.java | 107 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()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | AsyncDbTask.java | 99 public AsyncQueryTask(ContentResolver contentResolver, Uri uri, String[] projection, in AsyncQueryTask() argument 103 mProjection = projection; in AsyncQueryTask() 176 public AsyncQueryListTask(ContentResolver contentResolver, Uri uri, String[] projection, in AsyncQueryListTask() argument 178 super(contentResolver, uri, projection, selection, selectionArgs, orderBy); in AsyncQueryListTask() 219 public AsyncQueryItemTask(ContentResolver contentResolver, Uri uri, String[] projection, in AsyncQueryItemTask() argument 221 super(contentResolver, uri, projection, selection, selectionArgs, orderBy); in AsyncQueryItemTask()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | FrequentContactsCursorQueryData.java | 40 String[] projection, String selection, String[] selectionArgs, String sortOrder) { in FrequentContactsCursorLoader() argument 41 super(bindingId, context, uri, projection, selection, selectionArgs, sortOrder); in FrequentContactsCursorLoader() 102 public FrequentContactsCursorQueryData(Context context, String[] projection, in FrequentContactsCursorQueryData() argument 105 super(context, Contacts.CONTENT_STREQUENT_URI, projection, selection, selectionArgs, in FrequentContactsCursorQueryData()
|