Home
last modified time | relevance | path

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

/developers/demos/JustForUs/justforus/src/main/java/com/example/android/justforus/
DAssetProvider.java131 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
140 if (projection == null) { in query()
141 projection = new String[]{ in query()
147 MatrixCursor matrixCursor = new MatrixCursor(projection, 1); in query()
148 Object[] row = new Object[projection.length]; in query()
149 for (int col = 0; col < projection.length; col++) { in query()
150 if (OpenableColumns.DISPLAY_NAME.equals(projection[col])) { in query()
152 } else if (OpenableColumns.SIZE.equals(projection[col])) { in query()
/developers/samples/android/content/documentsUi/StorageProvider/Application/src/main/java/com/example/android/storageprovider/
DMyCloudProvider.java105 public Cursor queryRoots(String[] projection) throws FileNotFoundException { in queryRoots() argument
111 final MatrixCursor result = new MatrixCursor(resolveRootProjection(projection)); in queryRoots()
154 public Cursor queryRecentDocuments(String rootId, String[] projection) in queryRecentDocuments() argument
163 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in queryRecentDocuments()
206 public Cursor querySearchDocuments(String rootId, String query, String[] projection) in querySearchDocuments() argument
211 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in querySearchDocuments()
260 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
265 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in queryDocument()
273 public Cursor queryChildDocuments(String parentDocumentId, String[] projection, in queryChildDocuments() argument
280 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in queryChildDocuments()
[all …]
/developers/build/prebuilts/gradle/StorageProvider/Application/src/main/java/com/example/android/storageprovider/
DMyCloudProvider.java105 public Cursor queryRoots(String[] projection) throws FileNotFoundException { in queryRoots() argument
111 final MatrixCursor result = new MatrixCursor(resolveRootProjection(projection)); in queryRoots()
154 public Cursor queryRecentDocuments(String rootId, String[] projection) in queryRecentDocuments() argument
163 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in queryRecentDocuments()
206 public Cursor querySearchDocuments(String rootId, String query, String[] projection) in querySearchDocuments() argument
211 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in querySearchDocuments()
260 public Cursor queryDocument(String documentId, String[] projection) in queryDocument() argument
265 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in queryDocument()
273 public Cursor queryChildDocuments(String parentDocumentId, String[] projection, in queryChildDocuments() argument
280 final MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in queryChildDocuments()
[all …]
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/
DTvContractUtils.java74 String[] projection = {Channels._ID, Channels.COLUMN_ORIGINAL_NETWORK_ID}; in updateChannels() local
78 cursor = resolver.query(channelsUri, projection, null, null, null); in updateChannels()
133 String[] projection = { TvContract.Channels._ID }; in getChannelCount() local
137 cursor = resolver.query(uri, projection, null, null, null); in getChannelCount()
156 String[] projection = { in buildChannelMap() local
164 cursor = resolver.query(uri, projection, null, null, null); in buildChannelMap()
187 String[] projection = {Programs.COLUMN_END_TIME_UTC_MILLIS}; in getLastProgramEndTimeMillis() local
191 cursor = resolver.query(uri, projection, null, null, null); in getLastProgramEndTimeMillis()
212 String[] projection = { Programs.COLUMN_START_TIME_UTC_MILLIS, in getProgramPlaybackInfo() local
219 cursor = resolver.query(uri, projection, null, null, null); in getProgramPlaybackInfo()
/developers/build/prebuilts/gradle/ScreenCapture/
DREADME.md13 To start media projection, you need to get an instance of [MediaProjection][1]. For this, you have
21 [1]: https://developer.android.com/reference/android/media/projection/MediaProjection.html
22 [2]: https://developer.android.com/reference/android/media/projection/MediaProjectionManager.html#c…
23 [3]: https://developer.android.com/reference/android/media/projection/MediaProjectionManager.html#g…
24 [4]: https://developer.android.com/reference/android/media/projection/MediaProjection.html#createVi…
/developers/samples/android/content/documentsUi/ContentProviderPaging/app/src/main/java/com/example/android/contentproviderpaging/
DImageProvider.java87 public Cursor query(Uri uri, String[] projection, Bundle queryArgs, in query() argument
98 MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in query()
169 private static String[] resolveDocumentProjection(String[] projection) { in resolveDocumentProjection() argument
170 return projection != null ? projection : ImageContract.PROJECTION_ALL; in resolveDocumentProjection()
/developers/build/prebuilts/gradle/ContentProviderPaging/app/src/main/java/com/example/android/contentproviderpaging/
DImageProvider.java87 public Cursor query(Uri uri, String[] projection, Bundle queryArgs, in query() argument
98 MatrixCursor result = new MatrixCursor(resolveDocumentProjection(projection)); in query()
169 private static String[] resolveDocumentProjection(String[] projection) { in resolveDocumentProjection() argument
170 return projection != null ? projection : ImageContract.PROJECTION_ALL; in resolveDocumentProjection()
/developers/build/prebuilts/gradle/ContentProviderPaging/kotlinApp/app/src/main/kotlin/com.example.android.contentproviderpaging/
DImageProvider.kt53 override fun query(uri: Uri, projection: Array<String>?, queryArgs: Bundle, in query()
63 val result = MatrixCursor(resolveDocumentProjection(projection)) in query()
227 private fun resolveDocumentProjection(projection: Array<String>?): Array<String> { in resolveDocumentProjection()
228 return projection ?: ImageContract.PROJECTION_ALL in resolveDocumentProjection()
/developers/samples/android/content/documentsUi/ContentProviderPaging/kotlinApp/app/src/main/kotlin/com.example.android.contentproviderpaging/
DImageProvider.kt53 override fun query(uri: Uri, projection: Array<String>?, queryArgs: Bundle, in query()
63 val result = MatrixCursor(resolveDocumentProjection(projection)) in query()
227 private fun resolveDocumentProjection(projection: Array<String>?): Array<String> { in resolveDocumentProjection()
228 return projection ?: ImageContract.PROJECTION_ALL in resolveDocumentProjection()
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/simple/
DSimpleTvInputService.java89 String[] projection = {TvContract.Channels.COLUMN_SERVICE_ID}; in onTune() local
93 cursor = getContentResolver().query(channelUri, projection, null, null, null); in onTune()
/developers/build/prebuilts/gradle/SpeedTracker/Application/src/main/java/com/example/android/wearable/speedtracker/db/
DLocationDbHelper.java108 String[] projection = { in read() local
121 projection, // The columns to return in read()
/developers/samples/android/wearable/wear/SpeedTracker/Application/src/main/java/com/example/android/wearable/speedtracker/db/
DLocationDbHelper.java108 String[] projection = { in read() local
121 projection, // The columns to return in read()
/developers/build/prebuilts/gradle/ScreenCapture/Application/src/main/java/com/example/android/screencapture/
DScreenCaptureFragment.java24 import android.media.projection.MediaProjection;
25 import android.media.projection.MediaProjectionManager;
/developers/samples/android/media/ScreenCapture/Application/src/main/java/com/example/android/screencapture/
DScreenCaptureFragment.java24 import android.media.projection.MediaProjection;
25 import android.media.projection.MediaProjectionManager;
/developers/samples/android/content/ShareActionProvider/Application/src/main/java/com/example/android/shareactionprovider/content/
DAssetProvider.java64 public Cursor query(@NonNull Uri uri, String[] projection, String selection, in query() argument
/developers/build/prebuilts/gradle/ShareActionProvider/Application/src/main/java/com/example/android/shareactionprovider/content/
DAssetProvider.java64 public Cursor query(@NonNull Uri uri, String[] projection, String selection, in query() argument
/developers/build/prebuilts/gradle/BeamLargeFiles/Application/src/main/java/com/example/android/common/assetprovider/
DAssetProvider.java119 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
/developers/samples/android/common/src/java/com/example/android/common/assetprovider/
DAssetProvider.java119 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
/developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/provider/
DFeedProvider.java92 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
106 Cursor c = builder.query(db, projection, sortOrder); in query()
/developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/provider/
DFeedProvider.java92 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
106 Cursor c = builder.query(db, projection, sortOrder); in query()
/developers/samples/android/content/WidgetData/Application/src/main/java/com/example/android/widgetdata/
DWeatherDataProvider.java83 public synchronized Cursor query(Uri uri, String[] projection, String selection, in query() argument
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/data/
DVideoContentProvider.java70 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/recommendation/
DRecommendationBuilder.java207 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument