/packages/apps/Bluetooth/src/com/android/bluetooth/audio_util/helpers/ |
D | Metadata.java | 80 private Metadata mMetadata = new Metadata(); field in Metadata.Builder 87 mMetadata.mediaId = id; in setMediaId() 110 mMetadata.mediaId = data.getString(MediaMetadata.METADATA_KEY_MEDIA_ID); in fromMediaMetadata() 113 mMetadata.title = data.getString(MediaMetadata.METADATA_KEY_TITLE); in fromMediaMetadata() 116 mMetadata.artist = data.getString(MediaMetadata.METADATA_KEY_ARTIST); in fromMediaMetadata() 119 mMetadata.album = data.getString(MediaMetadata.METADATA_KEY_ALBUM); in fromMediaMetadata() 122 mMetadata.trackNum = "" + data.getLong(MediaMetadata.METADATA_KEY_TRACK_NUMBER); in fromMediaMetadata() 125 mMetadata.numTracks = "" + data.getLong(MediaMetadata.METADATA_KEY_NUM_TRACKS); in fromMediaMetadata() 128 mMetadata.genre = data.getString(MediaMetadata.METADATA_KEY_GENRE); in fromMediaMetadata() 131 mMetadata.duration = "" + data.getLong(MediaMetadata.METADATA_KEY_DURATION); in fromMediaMetadata() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/ |
D | MediaViewTest.java | 43 private Bundle mMetadata; field in MediaViewTest 58 mMetadata = new Bundle(); in setUp() 59 TestMetadata.populateExifData(mMetadata); in setUp() 60 TestMetadata.populateVideoData(mMetadata); in setUp() 61 TestMetadata.populateAudioData(mMetadata); in setUp() 72 Bundle exif = mMetadata.getBundle(DocumentsContract.METADATA_EXIF); in testShowExifData() 98 mMetadata.putBundle(DocumentsContract.METADATA_EXIF, data); in testShowExifData_PartialGpsTags() 99 MediaView.showExifData(mTable, mResources, TestEnv.FILE_JPG, mMetadata, null, mGeo); in testShowExifData_PartialGpsTags() 113 mMetadata.putBundle(DocumentsContract.METADATA_EXIF, data); in testShowExifData_PartialDimensionTags() 114 MediaView.showExifData(mTable, mResources, TestEnv.FILE_JPG, mMetadata, null, mGeo); in testShowExifData_PartialDimensionTags() [all …]
|
D | InspectorControllerTest.java | 105 mDataSupplier.mMetadata = new Bundle(); in setUp() 106 TestMetadata.populateExifData(mDataSupplier.mMetadata); in setUp() 258 mDataSupplier.mMetadata = null; // sorry, no results sucka! in testMetadata_notDisplayedWhenNotReturned() 425 private @Nullable Bundle mMetadata; field in InspectorControllerTest.TestDataSupplier 434 callback.accept(mMetadata); in getDocumentMetadata()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/photo/ |
D | MetadataFuture.java | 33 private final SettableFuture<TotalCaptureResultProxy> mMetadata; field in MetadataFuture 36 mMetadata = SettableFuture.create(); in MetadataFuture() 42 mMetadata.set(new AndroidTotalCaptureResultProxy(result)); in onCompleted() 49 mMetadata.cancel(true); in onFailed() 51 mMetadata.setException(new IllegalStateException("CaptureFailure.REASON_ERROR!")); in onFailed() 56 return mMetadata; in getMetadata()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/ |
D | MetadataLoader.java | 42 private @Nullable Bundle mMetadata; field in MetadataLoader 63 if (mMetadata != null) { in onStartLoading() 64 deliverResult(mMetadata); in onStartLoading() 66 if (takeContentChanged() || mMetadata == null) { in onStartLoading() 76 mMetadata = metadata; in deliverResult() 98 mMetadata = null; in onReset()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
D | ImageCaptureManager.java | 147 private TotalCaptureResult mMetadata = null; field in ImageCaptureManager.CapturedImage 164 mMetadata = null; in reset() 172 return mImage != null && mMetadata != null; in isComplete() 204 if (mMetadata != null) { in addMetadata() 208 mMetadata = metadata; in addMetadata() 216 return mMetadata; in tryGetMetadata() 226 if (mMetadata != null) { in tryGetTimestamp() 227 return mMetadata.get(TotalCaptureResult.SENSOR_TIMESTAMP); in tryGetTimestamp() 310 mMetadata = new ConcurrentHashMap<CaptureResult.Key<?>, Pair<Long, Object>>(); field in ImageCaptureManager 431 Pair<Long, Object> oldEntry = mMetadata.get(key); in updateMetadataChangeListeners() [all …]
|
/packages/apps/Car/Launcher/tests/src/com/android/car/carlauncher/homescreen/audio/ |
D | MediaViewModelTest.java | 70 private MediaItemMetadata mMetadata; field in MediaViewModelTest 110 when(mMetadata.getArtist()).thenReturn(ARTIST_NAME); in changeSourceAndMetadata_updatesModel() 111 when(mMetadata.getTitle()).thenReturn(SONG_TITLE); in changeSourceAndMetadata_updatesModel() 114 mLiveMetadata.setValue(mMetadata); in changeSourceAndMetadata_updatesModel() 147 when(mMetadata.getArtist()).thenReturn(ARTIST_NAME); in changeMetadataOnly_doesNotCallPresenter() 148 when(mMetadata.getTitle()).thenReturn(SONG_TITLE); in changeMetadataOnly_doesNotCallPresenter() 150 mLiveMetadata.setValue(mMetadata); in changeMetadataOnly_doesNotCallPresenter()
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/ |
D | PlaybackViewModel.java | 134 private final MutableLiveData<MediaItemMetadata> mMetadata = dataOf(null); field in PlaybackViewModel 180 return mMetadata; in getMetadata() 323 mMetadata.setValue(item); in onMetadataChanged() 367 private final MediaMetadataCompat mMetadata; field in PlaybackViewModel.PlaybackStateWrapper 373 mMetadata = metadata; in PlaybackStateWrapper() 380 return mState.getState() != PlaybackStateCompat.STATE_NONE && ((mMetadata != null) || ( in shouldDisplay() 430 return mMetadata == null ? 0 : in getMaxProgress() 431 mMetadata.getLong(MediaMetadataCompat.METADATA_KEY_DURATION); in getMaxProgress() 547 if (mMetadata != null) { in getRatingAction() 548 RatingCompat rating = mMetadata.getRating( in getRatingAction()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/imagesaver/ |
D | MetadataImage.java | 29 private final ListenableFuture<TotalCaptureResultProxy> mMetadata; field in MetadataImage 39 mMetadata = metadata; in MetadataImage() 46 return mMetadata; in getMetadata()
|