/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/audio_util/ |
D | MetadataTest.java | 243 Image image, Metadata metadata) { in assertMetadata() argument 244 assertThat(metadata.mediaId).isEqualTo(mediaId); in assertMetadata() 245 assertThat(metadata.title).isEqualTo(title); in assertMetadata() 246 assertThat(metadata.artist).isEqualTo(artist); in assertMetadata() 247 assertThat(metadata.album).isEqualTo(album); in assertMetadata() 248 assertThat(metadata.trackNum).isEqualTo(trackNum); in assertMetadata() 249 assertThat(metadata.numTracks).isEqualTo(numTracks); in assertMetadata() 250 assertThat(metadata.genre).isEqualTo(genre); in assertMetadata() 251 assertThat(metadata.duration).isEqualTo(duration); in assertMetadata() 252 assertThat(metadata.image).isEqualTo(image); in assertMetadata() [all …]
|
D | ImageTest.java | 193 MediaMetadata metadata = in testCreateImageFromMediaMetadataWithArt() local 195 Image artwork = new Image(mMockContext, metadata); in testCreateImageFromMediaMetadataWithArt() 207 MediaMetadata metadata = in testCreateImageFromMediaMetadataWithAlbumArt() local 209 Image artwork = new Image(mMockContext, metadata); in testCreateImageFromMediaMetadataWithAlbumArt() 221 MediaMetadata metadata = in testCreateImageFromMediaMetadataWithDisplayIcon() local 223 Image artwork = new Image(mMockContext, metadata); in testCreateImageFromMediaMetadataWithDisplayIcon() 235 MediaMetadata metadata = in testCreateImageFromMediaMetadataWithArtUri() local 237 Image artwork = new Image(mMockContext, metadata); in testCreateImageFromMediaMetadataWithArtUri() 249 MediaMetadata metadata = in testCreateImageFromMediaMetadataWithAlbumArtUri() local 251 Image artwork = new Image(mMockContext, metadata); in testCreateImageFromMediaMetadataWithAlbumArtUri() [all …]
|
/packages/modules/StatsD/lib/libstatspull/tests/ |
D | pull_atom_metadata_test.cpp | 29 AStatsManager_PullAtomMetadata* metadata = AStatsManager_PullAtomMetadata_obtain(); in TEST() local 30 EXPECT_EQ(AStatsManager_PullAtomMetadata_getCoolDownMillis(metadata), DEFAULT_COOL_DOWN_MILLIS); in TEST() 31 EXPECT_EQ(AStatsManager_PullAtomMetadata_getTimeoutMillis(metadata), DEFAULT_TIMEOUT_MILLIS); in TEST() 32 EXPECT_EQ(AStatsManager_PullAtomMetadata_getNumAdditiveFields(metadata), 0); in TEST() 33 AStatsManager_PullAtomMetadata_release(metadata); in TEST() 38 AStatsManager_PullAtomMetadata* metadata = AStatsManager_PullAtomMetadata_obtain(); in TEST() local 39 AStatsManager_PullAtomMetadata_setTimeoutMillis(metadata, timeoutMillis); in TEST() 40 EXPECT_EQ(AStatsManager_PullAtomMetadata_getCoolDownMillis(metadata), DEFAULT_COOL_DOWN_MILLIS); in TEST() 41 EXPECT_EQ(AStatsManager_PullAtomMetadata_getTimeoutMillis(metadata), timeoutMillis); in TEST() 42 EXPECT_EQ(AStatsManager_PullAtomMetadata_getNumAdditiveFields(metadata), 0); in TEST() [all …]
|
/packages/modules/StatsD/framework/test/src/android/app/ |
D | PullAtomMetadataTest.java | 35 PullAtomMetadata metadata = new PullAtomMetadata.Builder().build(); in testEmpty() local 36 assertThat(metadata.getTimeoutMillis()).isEqualTo(StatsManager.DEFAULT_TIMEOUT_MILLIS); in testEmpty() 37 assertThat(metadata.getCoolDownMillis()).isEqualTo(StatsManager.DEFAULT_COOL_DOWN_MILLIS); in testEmpty() 38 assertThat(metadata.getAdditiveFields()).isNull(); in testEmpty() 44 PullAtomMetadata metadata = in testSetTimeoutMillis() local 46 assertThat(metadata.getTimeoutMillis()).isEqualTo(timeoutMillis); in testSetTimeoutMillis() 47 assertThat(metadata.getCoolDownMillis()).isEqualTo(StatsManager.DEFAULT_COOL_DOWN_MILLIS); in testSetTimeoutMillis() 48 assertThat(metadata.getAdditiveFields()).isNull(); in testSetTimeoutMillis() 54 PullAtomMetadata metadata = in testSetCoolDownMillis() local 56 assertThat(metadata.getTimeoutMillis()).isEqualTo(StatsManager.DEFAULT_TIMEOUT_MILLIS); in testSetCoolDownMillis() [all …]
|
/packages/modules/StatsD/lib/libstatspull/ |
D | stats_pull_atom_callback.cpp | 59 AStatsManager_PullAtomMetadata* metadata = new AStatsManager_PullAtomMetadata(); in AStatsManager_PullAtomMetadata_obtain() local 60 metadata->cool_down_millis = DEFAULT_COOL_DOWN_MILLIS; in AStatsManager_PullAtomMetadata_obtain() 61 metadata->timeout_millis = DEFAULT_TIMEOUT_MILLIS; in AStatsManager_PullAtomMetadata_obtain() 62 metadata->additive_fields = std::vector<int32_t>(); in AStatsManager_PullAtomMetadata_obtain() 63 return metadata; in AStatsManager_PullAtomMetadata_obtain() 66 void AStatsManager_PullAtomMetadata_release(AStatsManager_PullAtomMetadata* metadata) { in AStatsManager_PullAtomMetadata_release() argument 67 delete metadata; in AStatsManager_PullAtomMetadata_release() 70 void AStatsManager_PullAtomMetadata_setCoolDownMillis(AStatsManager_PullAtomMetadata* metadata, in AStatsManager_PullAtomMetadata_setCoolDownMillis() argument 72 metadata->cool_down_millis = cool_down_millis; in AStatsManager_PullAtomMetadata_setCoolDownMillis() 75 int64_t AStatsManager_PullAtomMetadata_getCoolDownMillis(AStatsManager_PullAtomMetadata* metadata) { in AStatsManager_PullAtomMetadata_getCoolDownMillis() argument [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/ |
D | SliceTester.java | 67 final SliceMetadata metadata = SliceMetadata.from(context, slice); in testSettingsIntentSlice() local 69 final long sliceTTL = metadata.getExpiry(); in testSettingsIntentSlice() 76 final List<SliceAction> toggles = metadata.getToggles(); in testSettingsIntentSlice() 79 final PendingIntent primaryPendingIntent = metadata.getPrimaryAction().getAction(); in testSettingsIntentSlice() 83 assertThat(metadata.getTitle()).isEqualTo(sliceData.getTitle()); in testSettingsIntentSlice() 85 assertKeywords(metadata, sliceData); in testSettingsIntentSlice() 99 final SliceMetadata metadata = SliceMetadata.from(context, slice); in testSettingsToggleSlice() local 105 final List<SliceAction> toggles = metadata.getToggles(); in testSettingsToggleSlice() 108 final long sliceTTL = metadata.getExpiry(); in testSettingsToggleSlice() 121 final PendingIntent primaryPendingIntent = metadata.getPrimaryAction().getAction(); in testSettingsToggleSlice() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/testutils/ |
D | SliceTester.java | 66 final SliceMetadata metadata = SliceMetadata.from(context, slice); in testSettingsIntentSlice() local 68 final long sliceTTL = metadata.getExpiry(); in testSettingsIntentSlice() 75 final List<SliceAction> toggles = metadata.getToggles(); in testSettingsIntentSlice() 78 final PendingIntent primaryPendingIntent = metadata.getPrimaryAction().getAction(); in testSettingsIntentSlice() 82 assertThat(metadata.getTitle()).isEqualTo(sliceData.getTitle()); in testSettingsIntentSlice() 84 assertKeywords(metadata, sliceData); in testSettingsIntentSlice() 98 final SliceMetadata metadata = SliceMetadata.from(context, slice); in testSettingsToggleSlice() local 104 final List<SliceAction> toggles = metadata.getToggles(); in testSettingsToggleSlice() 107 final long sliceTTL = metadata.getExpiry(); in testSettingsToggleSlice() 120 final PendingIntent primaryPendingIntent = metadata.getPrimaryAction().getAction(); in testSettingsToggleSlice() [all …]
|
/packages/modules/StatsD/statsd/src/ |
D | metadata_util.cpp | 26 void writeValueToProto(metadata::FieldValue* metadataFieldValue, const Value& value) { in writeValueToProto() 55 metadata::MetricDimensionKey* metadataMetricKey) { in writeMetricDimensionKeyToMetadataDimensionKey() 57 metadata::FieldValue* metadataFieldValue = metadataMetricKey->add_dimension_key_in_what(); in writeMetricDimensionKeyToMetadataDimensionKey() 58 metadata::Field* metadataField = metadataFieldValue->mutable_field(); in writeMetricDimensionKeyToMetadataDimensionKey() 65 metadata::FieldValue* metadataFieldValue = metadataMetricKey->add_state_values_key(); in writeMetricDimensionKeyToMetadataDimensionKey() 66 metadata::Field* metadataField = metadataFieldValue->mutable_field(); in writeMetricDimensionKeyToMetadataDimensionKey() 74 const RepeatedPtrField<metadata::FieldValue>& repeatedFieldValueList, in writeFieldValuesFromMetadata() 76 for (const metadata::FieldValue& metadataFieldValue : repeatedFieldValueList) { in writeFieldValuesFromMetadata() 80 case metadata::FieldValue::ValueCase::kValueInt: in writeFieldValuesFromMetadata() 83 case metadata::FieldValue::ValueCase::kValueLong: in writeFieldValuesFromMetadata() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/ |
D | PreferenceXmlParserUtilsTest.java | 181 List<Bundle> metadata = PreferenceXmlParserUtils.extractMetadata(mContext, in extractMetadata_shouldContainKeyAndControllerName() local 185 assertThat(metadata).isNotEmpty(); in extractMetadata_shouldContainKeyAndControllerName() 186 for (Bundle bundle : metadata) { in extractMetadata_shouldContainKeyAndControllerName() 196 List<Bundle> metadata = PreferenceXmlParserUtils.extractMetadata(mContext, in extractMetadata_requestTitle_shouldContainTitle() local 198 for (Bundle bundle : metadata) { in extractMetadata_requestTitle_shouldContainTitle() 207 List<Bundle> metadata = PreferenceXmlParserUtils.extractMetadata(mContext, in extractMetadata_requestSummary_shouldContainSummary() local 209 for (Bundle bundle : metadata) { in extractMetadata_requestSummary_shouldContainSummary() 218 List<Bundle> metadata = PreferenceXmlParserUtils.extractMetadata(mContext, in extractMetadata_requestIcon_shouldContainIcon() local 220 for (Bundle bundle : metadata) { in extractMetadata_requestIcon_shouldContainIcon() 229 List<Bundle> metadata = PreferenceXmlParserUtils.extractMetadata(mContext, in extractMetadata_requestPrefType_shouldContainPrefType() local [all …]
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | CaptureDataSerializer.java | 57 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/modules/Virtualization/compos/src/ |
D | pvm_exec.rs | 49 fn spawn_fd_server(metadata: &Metadata, debuggable: bool) -> Result<Minijail> { in spawn_fd_server() 57 for metadata in &metadata.input_fd_annotations { in spawn_fd_server() 59 args.push(metadata.fd.to_string()); in spawn_fd_server() 60 inheritable_fds.push(metadata.fd); in spawn_fd_server() 62 for metadata in &metadata.output_fd_annotations { in spawn_fd_server() 64 args.push(metadata.fd.to_string()); in spawn_fd_server() 65 inheritable_fds.push(metadata.fd); in spawn_fd_server() 88 metadata: Metadata, field 139 metadata: Metadata { input_fd_annotations, output_fd_annotations }, in parse_args() 146 let Config { args, metadata, debuggable } = parse_args()?; in main() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpItemTest.java | 479 MediaMetadataCompat metadata = item.toMediaMetadata(); in avrcpMediaItem_toMediaMetadata() local 481 Assert.assertEquals(UUID, metadata.getString(MediaMetadataCompat.METADATA_KEY_MEDIA_ID)); in avrcpMediaItem_toMediaMetadata() 483 metadata.getString(MediaMetadataCompat.METADATA_KEY_DISPLAY_TITLE)); in avrcpMediaItem_toMediaMetadata() 484 Assert.assertEquals(title, metadata.getString(MediaMetadataCompat.METADATA_KEY_TITLE)); in avrcpMediaItem_toMediaMetadata() 485 Assert.assertEquals(artist, metadata.getString(MediaMetadataCompat.METADATA_KEY_ARTIST)); in avrcpMediaItem_toMediaMetadata() 486 Assert.assertEquals(album, metadata.getString(MediaMetadataCompat.METADATA_KEY_ALBUM)); in avrcpMediaItem_toMediaMetadata() 488 metadata.getLong(MediaMetadataCompat.METADATA_KEY_TRACK_NUMBER)); in avrcpMediaItem_toMediaMetadata() 490 metadata.getLong(MediaMetadataCompat.METADATA_KEY_NUM_TRACKS)); in avrcpMediaItem_toMediaMetadata() 491 Assert.assertEquals(genre, metadata.getString(MediaMetadataCompat.METADATA_KEY_GENRE)); in avrcpMediaItem_toMediaMetadata() 493 metadata.getLong(MediaMetadataCompat.METADATA_KEY_DURATION)); in avrcpMediaItem_toMediaMetadata() [all …]
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | WatchdogPerfService.cpp | 590 WatchdogPerfService::EventMetadata* metadata) { in processCollectionEvent() argument 597 if (mCurrCollectionEvent != metadata->eventType) { in processCollectionEvent() 598 ALOGW("Skipping %s event on collection event %s", toString(metadata->eventType), in processCollectionEvent() 603 ALOGD("Processing %s collection event", toString(metadata->eventType)); in processCollectionEvent() 605 if (metadata->interval < kMinEventInterval) { in processCollectionEvent() 608 << std::chrono::duration_cast<std::chrono::seconds>(metadata->interval).count() in processCollectionEvent() 609 << " seconds for " << toString(metadata->eventType) in processCollectionEvent() 614 if (const auto result = collectLocked(metadata); !result.ok()) { in processCollectionEvent() 615 return Error() << toString(metadata->eventType) << " collection failed: " << result.error(); in processCollectionEvent() 617 metadata->lastUptime += metadata->interval.count(); in processCollectionEvent() [all …]
|
/packages/apps/Camera2/src/com/android/camera/one/v2/photo/zsl/ |
D | AcceptableZslImageFilter.java | 42 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()
|
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/utils/ |
D | JsonMetadataReader.java | 62 Map<String, DTCMetadata> metadata = new HashMap<>(); in readDTCsFromJson() local 65 metadata.put(dtc, DTCMetadata.buildFromJson(metadataMapping.getJSONObject(dtc))); in readDTCsFromJson() 70 return metadata; in readDTCsFromJson() 83 Map<String, String> metadata = new HashMap<>(); in readECUsFromJson() local 86 metadata.put(address, metadataMapping.getString(address)); in readECUsFromJson() 92 return metadata; in readECUsFromJson() 136 Map<String, SensorMetadata> metadata = JsonMetadataReader.readSensorsFromJson(in); in readSensorIndexFromJson() local 142 if (metadata.containsKey(f.getName())) { in readSensorIndexFromJson() 144 metadataMap.put((Integer) f.get(sensorIndexClass), metadata.get(f.getName())); in readSensorIndexFromJson() 165 Map<String, SensorMetadata> metadata = new HashMap<>(); in readSensorsFromJson() local [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/ |
D | DatabaseManager.java | 208 Metadata metadata = mMetadataCache.get(address); in bondStateChanged() local 209 if (metadata != null) { in bondStateChanged() 211 deleteDatabase(metadata); in bondStateChanged() 550 Metadata metadata = mMetadataCache.get(address); in setConnection() local 551 metadata.last_active_time = MetadataDatabase.sCurrentConnectionNumber++; in setConnection() 555 metadata.is_active_a2dp_device = true; in setConnection() 559 + metadata.last_active_time); in setConnection() 560 updateDatabase(metadata); in setConnection() 582 Metadata metadata = mMetadataCache.get(address); in setDisconnection() local 583 if (metadata.is_active_a2dp_device) { in setDisconnection() [all …]
|
/packages/apps/TV/src/com/android/tv/util/ |
D | TvTrackInfoUtils.java | 165 StringBuilder metadata = new StringBuilder(); 170 metadata.append(context.getString(R.string.multi_audio_channel_mono)); 173 metadata.append(context.getString(R.string.multi_audio_channel_stereo)); 176 metadata.append(context.getString(R.string.multi_audio_channel_surround_6)); 179 metadata.append(context.getString(R.string.multi_audio_channel_surround_8)); 183 metadata.append( 200 if (metadata.length() > 0) { 201 metadata.append(", "); 205 metadata.append(integerPart); 207 metadata.append("."); [all …]
|
/packages/modules/StatsD/lib/libstatspull/include/ |
D | stats_pull_atom_callback.h | 45 void AStatsManager_PullAtomMetadata_release(AStatsManager_PullAtomMetadata* metadata); 52 void AStatsManager_PullAtomMetadata_setCoolDownMillis(AStatsManager_PullAtomMetadata* metadata, 58 int64_t AStatsManager_PullAtomMetadata_getCoolDownMillis(AStatsManager_PullAtomMetadata* metadata); 64 void AStatsManager_PullAtomMetadata_setTimeoutMillis(AStatsManager_PullAtomMetadata* metadata, 70 int64_t AStatsManager_PullAtomMetadata_getTimeoutMillis(AStatsManager_PullAtomMetadata* metadata); 79 void AStatsManager_PullAtomMetadata_setAdditiveFields(AStatsManager_PullAtomMetadata* metadata, 87 AStatsManager_PullAtomMetadata* metadata); 97 void AStatsManager_PullAtomMetadata_getAdditiveFields(AStatsManager_PullAtomMetadata* metadata, 155 void AStatsManager_setPullAtomCallback(int32_t atom_tag, AStatsManager_PullAtomMetadata* metadata,
|
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/ |
D | MetadataUtils.java | 32 static boolean hasGeoCoordinates(@Nullable Bundle metadata) { in hasGeoCoordinates() argument 33 if (metadata == null) { in hasGeoCoordinates() 36 return hasVideoCoordinates(metadata.getBundle(Shared.METADATA_KEY_VIDEO)) in hasGeoCoordinates() 37 || hasExifGpsFields(metadata.getBundle(DocumentsContract.METADATA_EXIF)); in hasGeoCoordinates() 52 static float[] getGeoCoordinates(Bundle metadata) { in getGeoCoordinates() argument 53 assert hasGeoCoordinates(metadata); in getGeoCoordinates() 54 checkNotNull(metadata); in getGeoCoordinates() 56 Bundle bundle = metadata.getBundle(DocumentsContract.METADATA_EXIF); in getGeoCoordinates() 61 bundle = metadata.getBundle(Shared.METADATA_KEY_VIDEO); in getGeoCoordinates() 67 throw new IllegalArgumentException("Invalid metadata bundle: " + metadata); in getGeoCoordinates()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
D | AvrcpTargetService.java | 90 boolean metadata = !Objects.equals(mCurrentData.metadata, data.metadata); in run() 95 Log.d(TAG, "onMediaUpdated: track_changed=" + metadata in run() 100 mNativeInterface.sendMediaUpdate(metadata, state, queue); in run() 368 Metadata metadata = mMediaPlayerList.getCurrentSongInfo(); in getCurrentSongInfo() local 369 if (mAvrcpCoverArtService != null && metadata.image != null) { in getCurrentSongInfo() 370 String imageHandle = mAvrcpCoverArtService.storeImage(metadata.image); in getCurrentSongInfo() 371 if (imageHandle != null) metadata.image.setImageHandle(imageHandle); in getCurrentSongInfo() 373 return metadata; in getCurrentSongInfo() 398 for (Metadata metadata : nowPlayingList) { in getNowPlayingList() 399 if (metadata.mediaId == currentMediaId) { in getNowPlayingList() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/ |
D | DarkThemeSliceTest.java | 133 final SliceMetadata metadata = SliceMetadata.from(mContext, mediaSlice); in getSlice_batterySaver_returnErrorSlice() local 134 assertThat(metadata.isErrorSlice()).isTrue(); in getSlice_batterySaver_returnErrorSlice() 142 final SliceMetadata metadata = SliceMetadata.from(mContext, mediaSlice); in getSlice_notAvailable_returnErrorSlice() local 143 assertThat(metadata.isErrorSlice()).isTrue(); in getSlice_notAvailable_returnErrorSlice() 157 final SliceMetadata metadata = SliceMetadata.from(mContext, mediaSlice); in getSlice_newSession_notAvailable_returnErrorSlice() local 158 assertThat(metadata.isErrorSlice()).isTrue(); in getSlice_newSession_notAvailable_returnErrorSlice() 179 final SliceMetadata metadata = SliceMetadata.from(mContext, mediaSlice); in getSlice_sliceNotClicked_notAvailable_returnErrorSlice() local 180 assertThat(metadata.isErrorSlice()).isTrue(); in getSlice_sliceNotClicked_notAvailable_returnErrorSlice() 207 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_isAvailable_showTitleSubtitle() local 208 assertThat(metadata.getTitle()).isEqualTo( in getSlice_isAvailable_showTitleSubtitle() [all …]
|
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/homescreen/audio/ |
D | MediaViewModel.java | 178 MediaItemMetadata metadata = mPlaybackViewModel.getMetadata().getValue(); in updateMetadata() local 179 if (metadata == null) { in updateMetadata() 182 mSongTitle = metadata.getTitle(); in updateMetadata() 183 mArtistName = metadata.getArtist(); in updateMetadata() 184 mAlbumArtBinder.setImage(mContext, metadata.getArtworkKey()); in updateMetadata() 198 MediaItemMetadata metadata = mPlaybackViewModel.getMetadata().getValue(); in metadataChanged() local 199 if (metadata == null && (mSongTitle != null || mArtistName != null)) { in metadataChanged() 202 if (metadata != null && (mSongTitle != metadata.getTitle() in metadataChanged() 203 || mArtistName != metadata.getArtist())) { in metadataChanged()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/ |
D | MediaOutputIndicatorSliceTest.java | 145 final SliceMetadata metadata = SliceMetadata.from(mContext, mediaSlice); in getSlice_withConnectedDevice_verifyMetadata() local 147 assertThat(metadata.getTitle()).isEqualTo(mContext.getString( in getSlice_withConnectedDevice_verifyMetadata() 150 assertThat(metadata.getSubtitle()).isEqualTo(TEST_DEVICE_1_NAME); in getSlice_withConnectedDevice_verifyMetadata() 151 assertThat(metadata.isErrorSlice()).isFalse(); in getSlice_withConnectedDevice_verifyMetadata() 161 final SliceMetadata metadata = SliceMetadata.from(mContext, mediaSlice); in getSlice_noConnectedDevice_returnErrorSlice() local 163 assertThat(metadata.isErrorSlice()).isTrue(); in getSlice_noConnectedDevice_returnErrorSlice() 175 final SliceMetadata metadata = SliceMetadata.from(mContext, mediaSlice); in getSlice_audioModeIsInCommunication_returnErrorSlice() local 177 assertThat(metadata.isErrorSlice()).isTrue(); in getSlice_audioModeIsInCommunication_returnErrorSlice() 189 final SliceMetadata metadata = SliceMetadata.from(mContext, mediaSlice); in getSlice_audioModeIsRingtone_returnErrorSlice() local 191 assertThat(metadata.isErrorSlice()).isTrue(); in getSlice_audioModeIsRingtone_returnErrorSlice() [all …]
|
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
D | ImageToProcess.java | 33 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/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/ |
D | LiveDataActivity.java | 65 SensorMetadata metadata = mMetadataProcessing.getFloatMetadata(i); in processSensorInfoIntoWrapper() local 66 if (metadata != null) { in processSensorInfoIntoWrapper() 67 Log.d(TAG, "Float metadata" + metadata.toString()); in processSensorInfoIntoWrapper() 68 sensorData.add(metadata.toLiveDataWrapper(sensor_value)); in processSensorInfoIntoWrapper() 79 SensorMetadata metadata = mMetadataProcessing.getIntegerMetadata(i); in processSensorInfoIntoWrapper() local 80 if (metadata != null) { in processSensorInfoIntoWrapper() 81 Log.d(TAG, "Sensor metadata" + metadata.toString()); in processSensorInfoIntoWrapper() 82 sensorData.add(metadata.toLiveDataWrapper(sensor_value)); in processSensorInfoIntoWrapper()
|