/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
H A D | UIProviderValidator.java | 35 * Validates and returns the projection that can be used for an account query. 37 public static String[] validateAccountProjection(String[] projection) { argument 38 return getValidProjection(projection, UIProvider.ACCOUNTS_PROJECTION); 42 * Validates and returns the projection that can be used for a folder query. 44 public static String[] validateFolderProjection(String[] projection) { argument 45 return getValidProjection(projection, UIProvider.FOLDERS_PROJECTION); 49 * Validates and returns the projection that can be used for a account cookie query. 51 public static String[] validateAccountCookieProjection(String[] projection) { argument 52 return getValidProjection(projection, UIProvider.ACCOUNT_COOKIE_PROJECTION); 56 * Validates and returns the projection tha 58 validateConversationProjection(String[] projection) argument 65 validateMessageProjection(String[] projection) argument 72 validateAttachmentProjection(String[] projection) argument 95 isValidProjection(String[] projection, Set<String> validColumns) argument [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/database/ |
H A D | NoNullCursorAsyncQueryHandler.java | 36 public void startQuery(int token, Object cookie, Uri uri, String[] projection, String selection, argument 38 final CookieWithProjection projectionCookie = new CookieWithProjection(cookie, projection); 39 super.startQuery(token, projectionCookie, uri, projection, selection, selectionArgs, 50 cursor = new EmptyCursor(projectionCookie.projection); 58 * Class to add projection to an existing cookie. 62 public final String[] projection; field in class:NoNullCursorAsyncQueryHandler.CookieWithProjection 64 public CookieWithProjection(Object cookie, String[] projection) { argument 66 this.projection = projection;
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
H A D | DeletedContactUtil.java | 36 String[] projection = new String[]{ 40 Cursor cursor = resolver.query(uri, projection, null, null, null); 48 String[] projection = new String[] { 51 Cursor cursor = resolver.query(URI, projection, null, null, null); 64 public static List<String[]> query(ContentResolver resolver, String[] projection) { argument 65 Cursor cursor = resolver.query(URI, projection, null, null, null); 74 public static List<String[]> querySinceTimestamp(ContentResolver resolver, String[] projection, argument 78 Cursor cursor = resolver.query(URI, projection, selection, args, null);
|
H A D | ContactUtil.java | 45 String[] projection = new String[]{ 49 Cursor cursor = resolver.query(uri, projection, null, null, null); 57 String[] projection = new String[]{ 62 Cursor cursor = resolver.query(uri, projection, null, null, null);
|
H A D | RawContactUtil.java | 44 long rawContactId, String[] projection) { 47 Cursor cursor = resolver.query(uri, projection, null, null, null); 57 String[] projection) { 59 Cursor cursor = resolver.query(uri, projection, null, null, null); 73 String[] projection = new String[]{ 77 projection); 43 queryByRawContactId(ContentResolver resolver, long rawContactId, String[] projection) argument 56 queryByContactId(ContentResolver resolver, long contactId, String[] projection) argument
|
H A D | CommonDatabaseUtils.java | 99 * the provided projection. 101 * @param projection array of column names 103 * @return array of values, in the correct order as defined by the projection 105 public static Object[] getArrayFromContentValues(ContentValues values, String[] projection) { argument 106 final Object[] result = new Object[projection.length]; 107 for (int i = 0; i < projection.length; i++) { 108 result[i] = values.get(projection[i]);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
H A D | BoundCursorLoader.java | 33 final String[] projection, final String selection, final String[] selectionArgs, 35 super(context, uri, projection, selection, selectionArgs, sortOrder); 32 BoundCursorLoader(final String bindingId, final Context context, final Uri uri, final String[] projection, final String selection, final String[] selectionArgs, final String sortOrder) argument
|
H A D | FrequentContactsCursorQueryData.java | 40 String[] projection, String selection, String[] selectionArgs, String sortOrder) { 41 super(bindingId, context, uri, projection, selection, selectionArgs, sortOrder); 102 public FrequentContactsCursorQueryData(Context context, String[] projection, argument 105 super(context, Contacts.CONTENT_STREQUENT_URI, projection, selection, selectionArgs, 39 FrequentContactsCursorLoader(String bindingId, Context context, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
|
H A D | CursorQueryData.java | 44 public CursorQueryData(final Context context, final Uri uri, final String[] projection, argument 48 mProjection = projection;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/provider/ |
H A D | SharedImageProvider.java | 86 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { argument 91 if (projection == null) { 92 projection = new String[] { 105 MatrixCursor cursor = new MatrixCursor(projection); 106 Object[] columns = new Object[projection.length]; 107 for (int i = 0; i < projection.length; i++) { 108 if (projection[i].equalsIgnoreCase(BaseColumns._ID)) { 110 } else if (projection[i].equalsIgnoreCase(MediaStore.MediaColumns.DATA)) { 112 } else if (projection[i].equalsIgnoreCase(OpenableColumns.DISPLAY_NAME)) { 114 } else if (projection[ [all...] |
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/ |
H A D | MockContentProvider.java | 67 public Query withProjection(String... projection) { argument 68 mProjection = projection; 72 public Query withDefaultProjection(String... projection) { argument 73 mDefaultProjection = projection; 123 public boolean equals(Uri uri, String[] projection, String selection, argument 129 if (!mAnyProjection && !equals(projection, mProjection)) { 178 public Cursor getResult(String[] projection) { argument 181 columnNames = projection; 192 Object[] columns = new Object[projection.length]; 193 for (int i = 0; i < projection 249 query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 308 queryToString(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument [all...] |
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/mock/ |
H A D | SimpleMockContentProvider.java | 35 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { argument
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | JoinContactLoader.java | 75 public void setProjection(String[] projection) { argument 76 super.setProjection(projection); 77 this.mProjection = projection;
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | GlobalSearchSupport.java | 86 public ArrayList<?> asList(String[] projection) { argument 100 if (projection == null) { 112 for (int i = 0; i < projection.length; i++) { 113 addColumnValue(list, projection[i]); 182 public Cursor handleSearchSuggestionsQuery(SQLiteDatabase db, Uri uri, String[] projection, argument 185 projection == null ? SEARCH_SUGGESTIONS_COLUMNS : projection); 193 cursor, db, projection, selection, searchClause, limit, cancellationSignal); 209 public Cursor handleSearchShortcutRefresh(SQLiteDatabase db, String[] projection, argument 218 projection 224 addSearchSuggestionsBasedOnFilter(MatrixCursor cursor, SQLiteDatabase db, String[] projection, String selection, String filter, String limit, CancellationSignal cancellationSignal) argument [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | ProfileAndContactsLoader.java | 47 public void setProjection(String[] projection) { argument 48 super.setProjection(projection); 49 mProjection = projection;
|
/packages/apps/Settings/src/com/android/settings/search/ |
H A D | SettingsSearchIndexablesProvider.java | 47 public Cursor queryXmlResources(String[] projection) { argument 65 public Cursor queryRawData(String[] projection) { argument 71 public Cursor queryNonIndexableKeys(String[] projection) { argument
|
/packages/services/Telephony/src/com/android/phone/ |
H A D | PhoneSearchIndexablesProvider.java | 51 public Cursor queryXmlResources(String[] projection) { argument 69 public Cursor queryRawData(String[] projection) { argument 74 public Cursor queryNonIndexableKeys(String[] projection) { argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/provider/ |
H A D | GalleryProvider.java | 114 public Cursor query(Uri uri, String[] projection, argument 126 projection, selection, selectionArgs, sortOrder); 135 private Cursor queryPicasaItem(MediaObject image, String[] projection, argument 137 if (projection == null) projection = SUPPORTED_PICASA_COLUMNS; 138 Object[] columnValues = new Object[projection.length]; 143 for (int i = 0, n = projection.length; i < n; ++i) { 144 String column = projection[i]; 167 MatrixCursor cursor = new MatrixCursor(projection);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | SqlInjectionDetectionTest.java | 97 private void assertQueryValid(final Uri uri, final String[] projection, argument 99 final Cursor c = mResolver.query(uri, projection, selection, null, sortOrder); 104 final String[] projection, final String selection, final String sortOrder) { 108 final Cursor c = mResolver.query(uri, projection, selection, null, sortOrder); 103 assertQueryThrows(Class<T> exception, final Uri uri, final String[] projection, final String selection, final String sortOrder) argument
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadStorageProvider.java | 76 private static String[] resolveRootProjection(String[] projection) { argument 77 return projection != null ? projection : DEFAULT_ROOT_PROJECTION; 80 private static String[] resolveDocumentProjection(String[] projection) { argument 81 return projection != null ? projection : DEFAULT_DOCUMENT_PROJECTION; 94 public Cursor queryRoots(String[] projection) throws FileNotFoundException { argument 95 final MatrixCursor result = new MatrixCursor(resolveRootProjection(projection)); 154 public Cursor queryDocument(String docId, String[] projection) throws FileNotFoundException { argument 155 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); 178 queryChildDocuments(String docId, String[] projection, String sortOrder) argument 200 queryChildDocumentsForManage( String parentDocumentId, String[] projection, String sortOrder) argument 223 queryRecentDocuments(String rootId, String[] projection) argument [all...] |
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
H A D | MmsSmsProvider.java | 60 * requested in the projection for a query. Its value is either "mms" 319 public Cursor query(Uri uri, String[] projection, argument 335 cursor = getCompleteConversations(projection, selection, sortOrder, smsTable, 347 projection, selection, selectionArgs, sortOrder); 350 projection, selection, sortOrder, smsTable, pduTable); 354 cursor = getConversationMessages(uri.getPathSegments().get(1), projection, 359 uri.getPathSegments().get(1), projection, selection, 364 uri.getPathSegments().get(1), projection, selection, 369 uri.getPathSegments().get(2), projection, selection, sortOrder, smsTable, 406 || projection ! 734 handleNullMessageProjection( String[] projection) argument 743 handleNullThreadsProjection( String[] projection) argument 759 getSimpleConversations(String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 781 getDraftThread(String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument 841 getConversations(String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument 894 getFirstLockedMessage(String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument 937 getCompleteConversations(String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument 951 makeProjectionWithDateAndThreadId( String[] projection, int dateMultiple) argument 967 getConversationMessages( String threadIdString, String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument 1003 getMessagesByPhoneNumber( String phoneNumber, String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument 1052 getConversationById( String threadIdString, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 1091 getUndeliveredMessages( String[] projection, String selection, String[] selectionArgs, String sortOrder, String smsTable, String pduTable) argument 1148 makeProjectionWithNormalizedDate( String[] projection, int dateMultiple) argument 1158 buildConversationQuery(String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/data/ |
H A D | FilmstripContentQueries.java | 55 * @param projection the columns to extract 62 Uri contentUri, String[] projection, long minimumId, String orderBy, 67 Cursor cursor = contentResolver.query(contentUri, projection, 61 forCameraPath(ContentResolver contentResolver, Uri contentUri, String[] projection, long minimumId, String orderBy, CursorToFilmstripItemFactory<I> factory) argument
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | AccountLoadCallbacks.java | 39 final String[] projection = UIProvider.ACCOUNTS_PROJECTION; 41 return new ObjectCursorLoader<Account>(mContext, mAccountUri, projection, factory);
|
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
H A D | UserDictionaryProvider.java | 148 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument 170 return getEmptyCursorOrThrow(projection); 183 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, orderBy); 347 private static Cursor getEmptyCursorOrThrow(String[] projection) { argument 348 if (projection != null) { 349 for (String column : projection) { 356 projection = new String[columnCount]; 358 projection[i] = sDictProjectionMap.keyAt(i); 362 return new MatrixCursor(projection, 0);
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
H A D | QueryService.java | 58 final String projection = intent.getStringExtra(EXTRA_PROJECTION); 63 Log.i(TAG, "Projection: " + projection); 67 Cursor c = getContentResolver().query(uri, parseProjection(projection), selection, null,
|