Lines Matching refs:projection

149     private static void validateProjection(Set<String> allowed, String[] projection) {  in validateProjection()  argument
150 if (projection == null || allowed.containsAll(Arrays.asList(projection))) { in validateProjection()
153 Set<String> invalidColumns = new LinkedHashSet<>(Arrays.asList(projection)); in validateProjection()
240 public Cursor query(@NonNull Uri uri, @Nullable String[] projection, @Nullable Bundle queryArgs, in query() argument
250 return queryElementaryFiles(projection); in query()
253 projection); in query()
255 return querySimRecords(PhonebookArgs.forSimRecords(uri, queryArgs), projection); in query()
258 projection); in query()
266 public Cursor query(@NonNull Uri uri, @Nullable String[] projection, @Nullable String selection, in query() argument
274 public Cursor query(@NonNull Uri uri, @Nullable String[] projection, @Nullable String selection, in query() argument
279 private Cursor queryElementaryFiles(String[] projection) { in queryElementaryFiles() argument
280 validateProjection(ELEMENTARY_FILES_COLUMNS_SET, projection); in queryElementaryFiles()
281 if (projection == null) { in queryElementaryFiles()
282 projection = ELEMENTARY_FILES_ALL_COLUMNS; in queryElementaryFiles()
285 MatrixCursor result = new MatrixCursor(projection); in queryElementaryFiles()
296 return new MatrixCursor(projection, 0); in queryElementaryFiles()
302 private Cursor queryElementaryFilesItem(PhonebookArgs args, String[] projection) { in queryElementaryFilesItem() argument
303 validateProjection(ELEMENTARY_FILES_COLUMNS_SET, projection); in queryElementaryFilesItem()
304 if (projection == null) { in queryElementaryFilesItem()
305 projection = ELEMENTARY_FILES_ALL_COLUMNS; in queryElementaryFilesItem()
308 MatrixCursor result = new MatrixCursor(projection); in queryElementaryFilesItem()
317 return new MatrixCursor(projection, 0); in queryElementaryFilesItem()
359 private Cursor querySimRecords(PhonebookArgs args, String[] projection) { in querySimRecords() argument
360 validateProjection(SIM_RECORDS_COLUMNS_SET, projection); in querySimRecords()
362 if (projection == null) { in querySimRecords()
363 projection = SIM_RECORDS_ALL_COLUMNS; in querySimRecords()
368 return new MatrixCursor(projection, 0); in querySimRecords()
370 MatrixCursor result = new MatrixCursor(projection, records.size()); in querySimRecords()
379 for (String column : projection) { in querySimRecords()
414 private Cursor querySimRecordsItem(PhonebookArgs args, String[] projection) { in querySimRecordsItem() argument
415 validateProjection(SIM_RECORDS_COLUMNS_SET, projection); in querySimRecordsItem()
416 if (projection == null) { in querySimRecordsItem()
417 projection = SIM_RECORDS_ALL_COLUMNS; in querySimRecordsItem()
422 MatrixCursor result = new MatrixCursor(projection, 1); in querySimRecordsItem()