Home
last modified time | relevance | path

Searched refs:projection (Results 1 – 25 of 400) sorted by relevance

12345678910>>...16

/aosp12/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/enterprise/
H A DCrossProfileCalendarHelperTest.java39 final String[] projection = new String[]{ in testProjectionNotInAllowedList_throwErrorForCalendars() local
44 mHelper.getCalibratedProjection(projection, Calendars.CONTENT_URI); in testProjectionNotInAllowedList_throwErrorForCalendars()
52 final String[] projection = new String[] { in testProjectionNotInAllowedList_throwErrorForEvents() local
57 mHelper.getCalibratedProjection(projection, Events.CONTENT_URI); in testProjectionNotInAllowedList_throwErrorForEvents()
65 final String[] projection = new String[] { in testProjectionNotInAllowedList_throwErrorForInstances() local
70 mHelper.getCalibratedProjection(projection, Instances.CONTENT_URI); in testProjectionNotInAllowedList_throwErrorForInstances()
78 final String[] projection = mHelper.getCalibratedProjection(null, Calendars.CONTENT_URI); in testNoProjection_getFullAllowedListProjectionForCalendars() local
79 final Set<String> projectionSet = new ArraySet<String>(Arrays.asList(projection)); in testNoProjection_getFullAllowedListProjectionForCalendars()
85 final String[] projection = mHelper.getCalibratedProjection(null, Events.CONTENT_URI); in testNoProjection_getFullAllowedListProjectionForEvents() local
86 final Set<String> projectionSet = new ArraySet<String>(Arrays.asList(projection)); in testNoProjection_getFullAllowedListProjectionForEvents()
[all …]
/aosp12/frameworks/base/services/core/java/com/android/server/media/projection/
H A DMediaProjectionManagerService.java17 package com.android.server.media.projection;
33 import android.media.projection.IMediaProjection;
173 mProjectionGrant = projection; in startProjectionLocked()
174 dispatchStart(projection); in startProjectionLocked()
180 dispatchStop(projection); in stopProjectionLocked()
293 MediaProjection projection; in createProjection() local
306 projection.uid, projection.packageName, AppOpsManager.MODE_ALLOWED); in createProjection()
311 return projection; in createProjection()
317 projection.asBinder()); in isValidMediaProjection()
659 if (projection == null) { in dispatchStart()
[all …]
/aosp12/packages/apps/Contacts/src/com/android/contacts/database/
H A DNoNullCursorAsyncQueryHandler.java36 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()
/aosp12/frameworks/base/packages/Shell/src/com/android/shell/
H A DBugreportStorageProvider.java60 public Cursor queryRoots(String[] projection) throws FileNotFoundException { in queryRoots() argument
61 final MatrixCursor result = new MatrixCursor(resolveRootProjection(projection)); in queryRoots()
73 String parentDocumentId, String[] projection, String sortOrder) in queryChildDocuments() argument
75 final Cursor c = super.queryChildDocuments(parentDocumentId, projection, sortOrder); in queryChildDocuments()
84 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
87 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in queryDocument()
91 return super.queryDocument(documentId, projection); in queryDocument()
111 private static String[] resolveRootProjection(String[] projection) { in resolveRootProjection() argument
112 return projection != null ? projection : DEFAULT_ROOT_PROJECTION; in resolveRootProjection()
115 private static String[] resolveDocumentProjection(String[] projection) { in resolveDocumentProjection() argument
[all …]
/aosp12/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
H A DDeletedContactUtil.java36 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()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/provider/
H A DSharedImageProvider.java86 …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()
/aosp12/packages/apps/Dialer/java/com/android/contacts/common/database/
H A DNoNullCursorAsyncQueryHandler.java45 String[] projection, in startQuery() argument
54 final CookieWithProjection projectionCookie = new CookieWithProjection(cookie, projection); in startQuery()
55 super.startQuery(token, projectionCookie, uri, projection, selection, selectionArgs, orderBy); in startQuery()
65 cursor = new EmptyCursor(projectionCookie.projection); in onQueryComplete()
97 public final String[] projection; field in NoNullCursorAsyncQueryHandler.CookieWithProjection
99 public CookieWithProjection(Object cookie, String[] projection) { in CookieWithProjection() argument
101 this.projection = projection; in CookieWithProjection()
/aosp12/frameworks/base/media/java/android/media/projection/
H A DIMediaProjectionManager.aidl17 package android.media.projection;
19 import android.media.projection.IMediaProjection;
20 import android.media.projection.IMediaProjectionCallback;
21 import android.media.projection.IMediaProjectionWatcherCallback;
22 import android.media.projection.MediaProjectionInfo;
31 boolean isValidMediaProjection(IMediaProjection projection); in isValidMediaProjection() argument
/aosp12/packages/apps/Traceur/src/com/android/traceur/
H A DStorageProvider.java75 public Cursor queryRoots(String[] projection) throws FileNotFoundException { in queryRoots() argument
76 final MatrixCursor result = new MatrixCursor(resolveRootProjection(projection)); in queryRoots()
100 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
102 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in queryDocument()
126 String parentDocumentId, String[] projection, String sortOrder) in queryChildDocuments() argument
128 Cursor result = super.queryChildDocuments(parentDocumentId, projection, sortOrder); in queryChildDocuments()
151 private static String[] resolveRootProjection(String[] projection) { in resolveRootProjection() argument
152 return projection != null ? projection : DEFAULT_ROOT_PROJECTION; in resolveRootProjection()
155 private static String[] resolveDocumentProjection(String[] projection) { in resolveDocumentProjection() argument
156 return projection != null ? projection : DEFAULT_DOCUMENT_PROJECTION; in resolveDocumentProjection()
/aosp12/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
H A DMmsSmsProvider.java324 public Cursor query(Uri uri, String[] projection, in query() argument
421 || projection != null) { in query()
463 || projection != null) { in query()
753 String[] projection) { in handleNullMessageProjection() argument
754 return projection == null ? UNION_COLUMNS : projection; in handleNullMessageProjection()
762 String[] projection) { in handleNullThreadsProjection() argument
763 return projection == null ? THREADS_COLUMNS : projection; in handleNullThreadsProjection()
970 String[] projection, int dateMultiple) { in makeProjectionWithDateAndThreadId() argument
971 int projectionSize = projection.length; in makeProjectionWithDateAndThreadId()
977 result[i + 2] = projection[i]; in makeProjectionWithDateAndThreadId()
[all …]
/aosp12/packages/services/Telephony/src/com/android/phone/
H A DSimPhonebookProvider.java150 if (projection == null || allowed.containsAll(Arrays.asList(projection))) { in validateProjection()
253 projection); in query()
258 projection); in query()
281 if (projection == null) { in queryElementaryFiles()
304 if (projection == null) { in queryElementaryFilesItem()
317 return new MatrixCursor(projection, 0); in queryElementaryFilesItem()
362 if (projection == null) { in querySimRecords()
363 projection = SIM_RECORDS_ALL_COLUMNS; in querySimRecords()
379 for (String column : projection) { in querySimRecords()
416 if (projection == null) { in querySimRecordsItem()
[all …]
/aosp12/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
H A DAudioStore.java83 String[] projection = { in load() local
107 String[] projection = { in load() local
141 String[] projection = { in load() local
188 String[] projection = { in load() local
212 String[] projection = { in load() local
244 String[] projection = { in loadData() local
289 String[] projection = { MediaStore.Audio.Artists.ARTIST }; in loadData() local
318 String[] projection = { in loadData() local
363 String[] projection = { MediaStore.Audio.Genres.NAME }; in loadData() local
392 String[] projection = { MediaStore.Audio.Playlists.NAME }; in loadData() local
[all …]
/aosp12/packages/providers/TvProvider/tests/src/com/android/providers/tv/
H A DColumnFilterTest.java83 String[] projection = new String[]{ in testQueryChannel() local
88 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testQueryChannel()
98 String[] projection = new String[]{ in testQueryChannel_count() local
101 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testQueryChannel_count()
117 String[] projection = new String[] { in testQueryChannelWithNoValidColumn() local
120 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testQueryChannelWithNoValidColumn()
129 String[] projection = new String[] { in testInsertAndQueryChannel() local
134 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testInsertAndQueryChannel()
147 String[] projection = new String[] { in testUpdateChannel() local
152 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testUpdateChannel()
/aosp12/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DGlobalSearchSupport.java86 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()
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()
225 String[] projection, String selection, String filter, String limit, in addSearchSuggestionsBasedOnFilter() argument
[all …]
/aosp12/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
H A DInspectorProvider.java68 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
72 MatrixCursor c = createDocCursor(projection); in queryDocument()
77 MatrixCursor c = createDocCursor(projection); in queryDocument()
94 public Cursor queryChildDocuments(String s, String[] projection, String s1) in queryChildDocuments() argument
98 MatrixCursor c = createDocCursor(projection); in queryChildDocuments()
106 MatrixCursor c = createDocCursor(projection); in queryChildDocuments()
114 MatrixCursor c = createDocCursor(projection); in queryChildDocuments()
121 MatrixCursor c = createDocCursor(projection); in queryChildDocuments()
H A DPagingProvider.java47 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
49 MatrixCursor c = createDocCursor(projection); in queryDocument()
56 String parentDocumentId, String[] projection, String sortOrder) in queryChildDocuments() argument
63 String parentDocumentId, String[] projection, Bundle queryArgs) in queryChildDocuments() argument
68 MatrixCursor c = createDocCursor(projection); in queryChildDocuments()
/aosp12/frameworks/native/cmds/surfacereplayer/replayer/trace_creator/
H A Dtrace_creator.py156 projection(change)
263 def projection(change): function
264 change.projection.orientation = input("Enter orientation: ")
266 change.projection.viewport.left, \
267 change.projection.viewport.top, \
268 change.projection.viewport.right,\
269 change.projection.viewport.bottom = rectangle()
271 change.projection.frame.left, \
272 change.projection.frame.top, \
273 change.projection.frame.right,\
[all …]
/aosp12/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/archives/
H A DResourcesProvider.java78 public Cursor queryRoots(String[] projection) throws FileNotFoundException { in queryRoots() argument
79 final MatrixCursor result = new MatrixCursor(projection != null ? projection in queryRoots()
90 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
92 final MatrixCursor result = new MatrixCursor(projection != null ? projection in queryDocument()
110 String parentDocumentId, String[] projection, String sortOrder) in queryChildDocuments() argument
116 final MatrixCursor result = new MatrixCursor(projection != null ? projection in queryChildDocuments()
/aosp12/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
H A DTestDocumentsProvider.java93 private static String[] resolveRootProjection(String[] projection) { in resolveRootProjection() argument
95 return projection != null ? projection : DEFAULT_ROOT_PROJECTION; in resolveRootProjection()
98 private static String[] resolveDocumentProjection(String[] projection) { in resolveDocumentProjection() argument
100 return projection != null ? projection : DEFAULT_DOCUMENT_PROJECTION; in resolveDocumentProjection()
112 public Cursor queryRoots(String[] projection) throws FileNotFoundException { in queryRoots() argument
132 final MatrixCursor result = new MatrixCursor(resolveRootProjection(projection)); in queryRoots()
145 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
150 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in queryDocument()
225 String parentDocumentId, String[] projection, String sortOrder) in queryChildDocuments() argument
236 CloudCursor result = new CloudCursor(resolveDocumentProjection(projection)); in queryChildDocuments()
[all …]
/aosp12/frameworks/base/media/java/android/media/
H A DAudioPlaybackCaptureConfiguration.java24 import android.media.projection.MediaProjection;
79 MediaProjection projection) { in AudioPlaybackCaptureConfiguration() argument
81 mProjection = projection; in AudioPlaybackCaptureConfiguration()
158 public Builder(@NonNull MediaProjection projection) { in Builder() argument
159 Preconditions.checkNotNull(projection); in Builder()
161 Preconditions.checkArgument(projection.getProjection().canProjectAudio(), in Builder()
166 mProjection = projection; in Builder()
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
H A DArchivesProvider.java91 public Cursor queryRoots(String[] projection) { in queryRoots() argument
93 return new MatrixCursor(projection != null ? projection : DEFAULT_ROOTS_PROJECTION); in queryRoots()
97 public Cursor queryChildDocuments(String documentId, @Nullable String[] projection, in queryChildDocuments() argument
105 return loader.get().queryChildDocuments(documentId, projection, sortOrder); in queryChildDocuments()
109 projection != null ? projection : Archive.DEFAULT_PROJECTION); in queryChildDocuments()
134 @Nullable String[] projection, @Nullable String sortOrder) in queryChildDocumentsForManage() argument
137 return queryChildDocuments(parentDocumentId, projection, sortOrder); in queryChildDocumentsForManage()
184 public Cursor queryDocument(String documentId, @Nullable String[] projection) in queryDocument() argument
200 projection != null ? projection : Archive.DEFAULT_PROJECTION); in queryDocument()
211 return loader.get().queryDocument(documentId, projection); in queryDocument()
/aosp12/frameworks/base/services/people/java/com/android/server/people/data/
H A DContactsQueryHelper.java68 final String[] projection = new String[] { in querySince() local
73 return queryContact(Contacts.CONTENT_URI, projection, selection, selectionArgs); in querySince()
107 final String[] projection = new String[] { in queryWithUri() local
109 return queryContact(uri, projection, /* selection= */ null, /* selectionArgs= */ null); in queryWithUri()
112 private boolean queryContact(@NonNull Uri uri, @NonNull String[] projection, in queryContact() argument
119 uri, projection, selection, selectionArgs, /* sortOrder= */ null)) { in queryContact() argument
160 String[] projection = new String[] { in queryPhoneNumber() local
165 ContactsContract.CommonDataKinds.Phone.CONTENT_URI, projection, selection, in queryPhoneNumber() argument
/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
H A DMockContentProvider.java80 public Query withProjection(String... projection) { in withProjection() argument
81 mProjection = projection; in withProjection()
85 public Query withDefaultProjection(String... projection) { in withDefaultProjection() argument
86 mDefaultProjection = projection; in withDefaultProjection()
136 public boolean equals(Uri uri, String[] projection, String selection, in equals() argument
146 if (!mAnyProjection && !Arrays.equals(projection, mProjection)) { in equals()
165 public Cursor getResult(String[] projection) { in getResult() argument
168 columnNames = projection != null ? projection : mDefaultProjection; in getResult()
530 return query.getResult(projection); in query()
642 if (projection != null) { in queryToString()
[all …]
/aosp12/frameworks/base/core/java/android/provider/
H A DDocumentsProvider.java472 public Cursor queryRecentDocuments(String rootId, String[] projection) in queryRecentDocuments() argument
509 Cursor c = queryRecentDocuments(rootId, projection); in queryRecentDocuments()
528 public abstract Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
573 String parentDocumentId, String[] projection, String sortOrder) in queryChildDocuments() argument
619 parentDocumentId, projection, getSortClause(queryArgs)); in queryChildDocuments()
721 projection); in querySearchDocuments()
875 public final Cursor query(Uri uri, String[] projection, String selection, in query() argument
893 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
915 return queryRoots(projection); in query()
924 return queryDocument(getDocumentId(uri), projection); in query()
[all …]
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/provider/
H A DGalleryProvider.java114 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()

12345678910>>...16