/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 | 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/ContactsCommon/src/com/android/contacts/common/list/ |
H A D | ProfileAndContactsLoader.java | 56 public void setProjection(String[] projection) { argument 57 super.setProjection(projection); 58 mProjection = projection; 62 public void setLoadExtraContactsFirst(Uri uri, String[] projection) { argument 64 mExtraProjection = projection; 69 public void setLoadExtraContactsLast(Uri uri, String[] projection, String selection, argument 72 mExtraProjection = 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/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/Settings/src/com/android/settings/search/ |
H A D | SettingsSearchIndexablesProvider.java | 46 public Cursor queryXmlResources(String[] projection) { argument 64 public Cursor queryRawData(String[] projection) { argument 70 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/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/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/TelephonyProvider/src/com/android/providers/telephony/ |
H A D | MmsSmsProvider.java | 60 * requested in the projection for a query. Its value is either "mms" 320 public Cursor query(Uri uri, String[] projection, argument 336 cursor = getCompleteConversations(projection, selection, sortOrder, smsTable, 348 projection, selection, selectionArgs, sortOrder); 351 projection, selection, sortOrder, smsTable, pduTable); 355 cursor = getConversationMessages(uri.getPathSegments().get(1), projection, 360 uri.getPathSegments().get(1), projection, selection, 365 uri.getPathSegments().get(1), projection, selection, 370 uri.getPathSegments().get(2), projection, selection, sortOrder, smsTable, 407 || projection ! 735 handleNullMessageProjection( String[] projection) argument 744 handleNullThreadsProjection( String[] projection) argument 760 getSimpleConversations(String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 782 getDraftThread(String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument 842 getConversations(String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument 895 getFirstLockedMessage(String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument 938 getCompleteConversations(String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument 952 makeProjectionWithDateAndThreadId( String[] projection, int dateMultiple) argument 968 getConversationMessages( String threadIdString, String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument 1004 getMessagesByPhoneNumber( String phoneNumber, String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument 1053 getConversationById( String threadIdString, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 1092 getUndeliveredMessages( String[] projection, String selection, String[] selectionArgs, String sortOrder, String smsTable, String pduTable) argument 1149 makeProjectionWithNormalizedDate( String[] projection, int dateMultiple) argument 1159 buildConversationQuery(String[] projection, String selection, String sortOrder, String smsTable, String pduTable) argument [all...] |
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadStorageProvider.java | 89 private static String[] resolveRootProjection(String[] projection) { argument 90 return projection != null ? projection : DEFAULT_ROOT_PROJECTION; 93 private static String[] resolveDocumentProjection(String[] projection) { argument 94 return projection != null ? projection : DEFAULT_DOCUMENT_PROJECTION; 107 public Cursor queryRoots(String[] projection) throws FileNotFoundException { argument 108 final MatrixCursor result = new MatrixCursor(resolveRootProjection(projection)); 186 public Cursor queryDocument(String docId, String[] projection) throws FileNotFoundException { argument 188 return mArchiveHelper.queryDocument(docId, projection); 219 queryChildDocuments(String docId, String[] projection, String sortOrder) argument 249 queryChildDocumentsForManage( String parentDocumentId, String[] projection, String sortOrder) argument 279 queryRecentDocuments(String rootId, String[] projection) argument 465 DownloadsCursor(String[] projection, ContentResolver resolver) 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/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/ |
H A D | MockContentProvider.java | 68 public Query withProjection(String... projection) { argument 69 mProjection = projection; 73 public Query withDefaultProjection(String... projection) { argument 74 mDefaultProjection = projection; 124 public boolean equals(Uri uri, String[] projection, String selection, argument 130 if (!mAnyProjection && !Arrays.equals(projection, mProjection)) { 149 public Cursor getResult(String[] projection) { argument 152 columnNames = projection; 163 Object[] columns = new Object[projection.length]; 164 for (int i = 0; i < projection 476 query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 598 queryToString(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument [all...] |
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
H A D | UserDictionaryProvider.java | 149 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument 171 return getEmptyCursorOrThrow(projection); 184 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, orderBy); 348 private static Cursor getEmptyCursorOrThrow(String[] projection) { argument 349 if (projection != null) { 350 for (String column : projection) { 357 projection = new String[columnCount]; 359 projection[i] = sDictProjectionMap.keyAt(i); 363 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,
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/ |
H A D | FakeCursor.java | 33 public FakeCursor(final String[] projection, final String[] columnNames, argument 38 mProjection = new ArrayList<Integer>(projection.length); 39 for (final String column : projection) {
|