Home
last modified time | relevance | path

Searched refs:metadata (Results 1 – 25 of 59) sorted by relevance

123

/packages/apps/Car/Stream/src/com/android/car/stream/media/
DMediaPlaybackMonitor.java142 public void onMetadataChanged(@Nullable MediaMetadata metadata) { in onMetadataChanged() argument
146 if (metadata == null) { in onMetadataChanged()
151 Log.d(TAG, "received " + metadata.getDescription()); in onMetadataChanged()
159 if (!MediaUtils.isSameMediaDescription(metadata.getDescription(), currentDescription)) { in onMetadataChanged()
161 mMediaStatusUpdateHandler.obtainMessage(MSG_UPDATE_METADATA, metadata); in onMetadataChanged()
166 Bitmap newBitmap = metadata.getDescription().getIconBitmap(); in onMetadataChanged()
226 private void extractMetadata(MediaMetadata metadata) { in extractMetadata() argument
227 if (metadata == mMetadata) { in extractMetadata()
233 mMetadata = metadata; in extractMetadata()
234 MediaDescription description = metadata.getDescription(); in extractMetadata()
[all …]
DMediaStateManager.java57 void onMetadataChanged(@Nullable MediaMetadata metadata); in onMetadataChanged() argument
212 public void onMetadataChanged(@Nullable final MediaMetadata metadata) {
217 Log.d(TAG, "onMetadataChanged(" + metadata + ")");
220 listener.onMetadataChanged(metadata);
/packages/apps/Camera2/src/com/android/camera/util/
DCaptureDataSerializer.java57 public static String toString(String title, CaptureRequest metadata) { in toString() argument
59 dumpMetadata(title, metadata, writer); in toString()
67 public static void toFile(String title, CameraMetadata<?> metadata, File file) { in toFile() argument
71 if (metadata instanceof CaptureRequest) { in toFile()
72 dumpMetadata(title, (CaptureRequest) metadata, writer); in toFile()
73 } else if (metadata instanceof CaptureResult) { in toFile()
74 dumpMetadata(title, (CaptureResult) metadata, writer); in toFile()
78 + metadata.getClass().getName()); in toFile()
90 private static void dumpMetadata(final String title, final CaptureRequest metadata, in dumpMetadata() argument
95 List<CaptureRequest.Key<?>> keys = metadata.getKeys(); in dumpMetadata()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/photo/zsl/
DAcceptableZslImageFilter.java42 public boolean apply(TotalCaptureResultProxy metadata) { in apply() argument
44 result &= isLensStationary(metadata); in apply()
46 result &= isAFAcceptable(metadata); in apply()
49 result &= isAEAcceptable(metadata); in apply()
54 private boolean isLensStationary(TotalCaptureResultProxy metadata) { in isLensStationary() argument
55 Integer lensState = metadata.get(CaptureResult.LENS_STATE); in isLensStationary()
68 private boolean isAEAcceptable(TotalCaptureResultProxy metadata) { in isAEAcceptable() argument
69 Integer aeState = metadata.get(CaptureResult.CONTROL_AE_STATE); in isAEAcceptable()
84 private boolean isAFAcceptable(TotalCaptureResultProxy metadata) { in isAFAcceptable() argument
85 Integer afState = metadata.get(CaptureResult.CONTROL_AF_STATE); in isAFAcceptable()
DZslImageCaptureCommand.java126 TotalCaptureResultProxy metadata = null; in tryGetZslImage() local
134 metadata = metadataFuture.get(); in tryGetZslImage()
156 return new Pair<>(imageToSave, metadata); in tryGetZslImage()
/packages/apps/TV/src/com/android/tv/util/
DUtils.java533 StringBuilder metadata = new StringBuilder(); in getMultiAudioString() local
538 metadata.append(context.getString(R.string.multi_audio_channel_mono)); in getMultiAudioString()
541 metadata.append(context.getString(R.string.multi_audio_channel_stereo)); in getMultiAudioString()
544 metadata.append(context.getString(R.string.multi_audio_channel_surround_6)); in getMultiAudioString()
547 metadata.append(context.getString(R.string.multi_audio_channel_surround_8)); in getMultiAudioString()
551 metadata.append(context.getString(R.string.multi_audio_channel_suffix, in getMultiAudioString()
562 if (metadata.length() > 0) { in getMultiAudioString()
563 metadata.append(", "); in getMultiAudioString()
567 metadata.append(integerPart); in getMultiAudioString()
569 metadata.append("."); in getMultiAudioString()
[all …]
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DImageToProcess.java33 public final ListenableFuture<TotalCaptureResultProxy> metadata; field in ImageToProcess
46 ListenableFuture<TotalCaptureResultProxy> metadata, Rect crop) { in ImageToProcess() argument
49 this.metadata = metadata; in ImageToProcess()
61 ListenableFuture<TotalCaptureResultProxy> metadata) { in ImageToProcess() argument
62 this(proxy, imageRotation, metadata, new Rect(0, 0, proxy.getWidth(), proxy.getHeight())); in ImageToProcess()
/packages/apps/Contacts/src/com/android/contacts/editor/
DPickRawContactDialogFragment.java155 public static PickRawContactDialogFragment getInstance(RawContactsMetadata metadata) { in getInstance() argument
158 args.putParcelable(ARGS_RAW_CONTACTS_METADATA, metadata); in getInstance()
174 final RawContactsMetadata metadata = args.getParcelable(ARGS_RAW_CONTACTS_METADATA); in onCreateDialog() local
175 if (metadata == null) { in onCreateDialog()
180 mAdapter = new RawContactAccountListAdapter(getContext(), metadata); in onCreateDialog()
181 if (metadata.showReadOnly) { in onCreateDialog()
184 if (!metadata.isUserProfile) { in onCreateDialog()
194 metadata.contactId); in onCreateDialog()
/packages/apps/Car/Media/src/com/android/car/media/
DMediaPlaybackFragment.java193 mMetadata = v.findViewById(R.id.metadata); in onCreateView()
324 MediaMetadata metadata = mMediaPlaybackModel.getMetadata(); in onPlaybackStateChanged() local
369 if (metadata == null) { in onPlaybackStateChanged()
376 public void onMetadataChanged(@Nullable MediaMetadata metadata) { in onMetadataChanged() argument
380 + (metadata == null ? "<< NULL >>" : metadata.getDescription().toString())); in onMetadataChanged()
382 if (metadata == null) { in onMetadataChanged()
390 mCurrentTrack = metadata.getDescription(); in onMetadataChanged()
391 Bitmap icon = getMetadataBitmap(metadata); in onMetadataChanged()
399 Uri iconUri = getMetadataIconUri(metadata); in onMetadataChanged()
433 mSeekBar.setMax((int) metadata.getLong(MediaMetadata.METADATA_KEY_DURATION)); in onMetadataChanged()
[all …]
DMediaPlaybackModel.java90 void onMetadataChanged(@Nullable MediaMetadata metadata); in onMetadataChanged() argument
114 public void onMetadataChanged(@Nullable MediaMetadata metadata) {} in onMetadataChanged() argument
377 public void onMetadataChanged(final MediaMetadata metadata) {
379 notifyListeners((listener) -> listener.onMetadataChanged(metadata));
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DPlayer.java324 MediaMetadata metadata = mDataModel.getMetadata(current.getDescription().getMediaId()); in startPlayback() local
328 play(path, metadata); in startPlayback()
461 MediaMetadata metadata = mDataModel.getMetadata(next.getMediaId()); in playCurrentQueueIndex() local
463 play(path, metadata); in playCurrentQueueIndex()
466 private void play(String path, MediaMetadata metadata) throws IOException { in play() argument
468 Log.d(TAG, "play path=" + path + " metadata=" + metadata); in play()
476 if (metadata != null) { in play()
477 mSession.setMetadata(metadata); in play()
552 MediaMetadata metadata = mDataModel.getMetadata(description.getMediaId()); in onSkipToQueueItem() local
555 play(path, metadata); in onSkipToQueueItem()
DDataModel.java155 MediaMetadata.Builder metadata = new MediaMetadata.Builder(); in getMetadata() local
168 metadata.putString(MediaMetadata.METADATA_KEY_TITLE, in getMetadata()
170 metadata.putString(MediaMetadata.METADATA_KEY_ARTIST, in getMetadata()
172 metadata.putString(MediaMetadata.METADATA_KEY_ALBUM, in getMetadata()
174 metadata.putLong(MediaMetadata.METADATA_KEY_DURATION, in getMetadata()
187 metadata.putString(MediaMetadata.METADATA_KEY_ALBUM_ART_URI, albumArt); in getMetadata()
198 return metadata.build(); in getMetadata()
/packages/apps/Car/Radio/src/com/android/car/radio/
DRadioBackgroundScanner.java169 RadioMetadata metadata = info.getMetadata(); in onProgramInfoChanged() local
173 if (metadata != null) { in onProgramInfoChanged()
174 onMetadataChanged(metadata); in onProgramInfoChanged()
186 public void onMetadataChanged(RadioMetadata metadata) { in onMetadataChanged() argument
187 if (metadata == null) { in onMetadataChanged()
191 String stationInfo = metadata.getString(RadioMetadata.METADATA_KEY_RDS_PS); in onMetadataChanged()
DRadioService.java775 public void onMetadataChanged(RadioMetadata metadata) { in onMetadataChanged() argument
777 Log.d(TAG, "onMetadataChanged(); metadata: " + metadata); in onMetadataChanged()
781 updateMetadata(metadata); in onMetadataChanged()
881 private void updateMetadata(RadioMetadata metadata) { in updateMetadata() argument
882 if (metadata != null) { in updateMetadata()
883 mCurrentChannelInfo = metadata.getString(RadioMetadata.METADATA_KEY_RDS_PS); in updateMetadata()
884 mCurrentArtist = metadata.getString(RadioMetadata.METADATA_KEY_ARTIST); in updateMetadata()
885 mCurrentSongTitle = metadata.getString(RadioMetadata.METADATA_KEY_TITLE); in updateMetadata()
DPresetsViewHolder.java115 String metadata = preset.getRds() == null ? null : preset.getRds().getProgramService(); in bindPreset() local
117 if (TextUtils.isEmpty(metadata)) { in bindPreset()
123 mPresetItemMetadata.setText(metadata.trim()); in bindPreset()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAddressedMediaPlayer.java132 MediaMetadata metadata = mediaController.getMetadata(); in getNowPlayingList() local
165 MediaMetadata metadata = controller.getMetadata(); in getCurrentQueueItem() local
166 if (metadata == null) { in getCurrentQueueItem()
168 metadata = (new MediaMetadata.Builder()).build(); in getCurrentQueueItem()
172 MediaDescription desc = metadata.getDescription(); in getCurrentQueueItem()
180 bob.setExtras(fillBundle(metadata, desc.getExtras())); in getCurrentQueueItem()
187 private Bundle fillBundle(MediaMetadata metadata, Bundle currentExtras) { in fillBundle() argument
188 if (metadata == null) { in fillBundle()
199 if (current == null) bundle.putString(key, metadata.getString(key)); in fillBundle()
205 if (!bundle.containsKey(key)) bundle.putLong(key, metadata.getLong(key)); in fillBundle()
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/
DInstrumentClusterController.java439 public void onMetadataChanged(MediaMetadata metadata) { in onMetadataChanged() argument
441 Log.d(TAG, "onMetadataChanged: " + metadata); in onMetadataChanged()
443 MediaData data = MediaData.createFromMetadata(metadata); in onMetadataChanged()
505 private MediaData(MediaMetadata metadata) { in MediaData() argument
506 MediaDescription mediaDescription = metadata.getDescription(); in MediaData()
510 duration = metadata.getLong(MediaMetadata.METADATA_KEY_DURATION); in MediaData()
513 static MediaData createFromMetadata(MediaMetadata metadata) { in createFromMetadata() argument
514 return metadata == null ? null : new MediaData(metadata); in createFromMetadata()
DMediaStateMonitor.java110 private void onMetadataChanged(MediaMetadata metadata) { in onMetadataChanged() argument
111 mListener.onMetadataChanged(metadata); in onMetadataChanged()
116 void onMetadataChanged(MediaMetadata metadata); in onMetadataChanged() argument
136 public void onMetadataChanged(MediaMetadata metadata) { in onMetadataChanged() argument
139 service.onMetadataChanged(metadata); in onMetadataChanged()
/packages/apps/Camera2/src/com/android/camera/data/
DPanoramaMetadataLoader.java33 Metadata metadata) { in loadPanoramaMetadata() argument
42 metadata.setPanorama(true); in loadPanoramaMetadata()
43 metadata.setPanorama360(panoramaMetadata.mIsPanorama360); in loadPanoramaMetadata()
44 metadata.setUsePanoramaViewer(panoramaMetadata.mUsePanoramaViewer); in loadPanoramaMetadata()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/radio/
DRadioTestFragment.java86 public void onMetadataChanged(RadioMetadata metadata) {
87 addLog(Log.INFO, "Radio tuner metadata changed. metadata:" + metadata);
88 if (metadata == null) {
93 mArtist = metadata.getString(RadioMetadata.METADATA_KEY_ARTIST);
94 mSong = metadata.getString(RadioMetadata.METADATA_KEY_TITLE);
95 mStation = metadata.getString(RadioMetadata.METADATA_KEY_RDS_PI);
/packages/apps/Settings/src/com/android/settings/dashboard/
DDashboardFeatureProviderImpl.java131 final Bundle metadata = tile.metaData; in bindPreferenceToTile() local
134 if (metadata != null) { in bindPreferenceToTile()
135 clsName = metadata.getString(SettingsActivity.META_DATA_KEY_FRAGMENT_CLASS); in bindPreferenceToTile()
136 action = metadata.getString(META_DATA_KEY_INTENT_ACTION); in bindPreferenceToTile()
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/metadatasynchronizer/
DMetadataPoolImpl.java89 public void update(@Nonnull TotalCaptureResultProxy metadata) { in update() argument
90 long timestamp = metadata.get(CaptureResult.SENSOR_TIMESTAMP); in update()
92 future.set(metadata); in update()
/packages/apps/Settings/src/com/android/settings/accounts/
DUserAndAccountDashboardFragment.java81 final Bundle metadata = tile.metaData; in displayTile() local
82 if (metadata != null) { in displayTile()
83 return metadata.getString(METADATA_IA_ACCOUNT) == null; in displayTile()
DAccountDetailDashboardFragment.java121 final Bundle metadata = tile.metaData; in displayTile() local
122 if (metadata == null) { in displayTile()
125 return mAccountType.equals(metadata.getString(METADATA_IA_ACCOUNT)); in displayTile()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DEnableDisablePreference.java90 final Bundle metadata = ri.activityInfo.metaData; in getHomePackages() local
91 if (metadata != null) { in getHomePackages()
92 final String metaPkg = metadata.getString(ActivityManager.META_HOME_ALTERNATE); in getHomePackages()

123