/developers/demos/JustForUs/justforus/src/main/java/com/example/android/justforus/ |
D | AssetProvider.java | 131 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/ |
D | MyCloudProvider.java | 105 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/ |
D | MyCloudProvider.java | 105 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/ |
D | TvContractUtils.java | 74 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/ |
D | README.md | 13 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/ |
D | ImageProvider.java | 87 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/ |
D | ImageProvider.java | 87 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/ |
D | ImageProvider.kt | 53 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/ |
D | ImageProvider.kt | 53 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/ |
D | SimpleTvInputService.java | 89 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/ |
D | LocationDbHelper.java | 108 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/ |
D | LocationDbHelper.java | 108 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/ |
D | ScreenCaptureFragment.java | 24 import android.media.projection.MediaProjection; 25 import android.media.projection.MediaProjectionManager;
|
/developers/samples/android/media/ScreenCapture/Application/src/main/java/com/example/android/screencapture/ |
D | ScreenCaptureFragment.java | 24 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/ |
D | AssetProvider.java | 64 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/ |
D | AssetProvider.java | 64 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/ |
D | AssetProvider.java | 119 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
|
/developers/samples/android/common/src/java/com/example/android/common/assetprovider/ |
D | AssetProvider.java | 119 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/ |
D | FeedProvider.java | 92 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/ |
D | FeedProvider.java | 92 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/ |
D | WeatherDataProvider.java | 83 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/ |
D | VideoContentProvider.java | 70 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/ |
D | RecommendationBuilder.java | 207 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
|