Home
last modified time | relevance | path

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

12345

/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DSliceTester.java67 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/robotests/src/com/android/settings/core/
DPreferenceXmlParserUtilsTest.java179 List<Bundle> metadata = PreferenceXmlParserUtils.extractMetadata(mContext, in extractMetadata_shouldContainKeyAndControllerName() local
183 assertThat(metadata).isNotEmpty(); in extractMetadata_shouldContainKeyAndControllerName()
184 for (Bundle bundle : metadata) { in extractMetadata_shouldContainKeyAndControllerName()
194 List<Bundle> metadata = PreferenceXmlParserUtils.extractMetadata(mContext, in extractMetadata_requestTitle_shouldContainTitle() local
196 for (Bundle bundle : metadata) { in extractMetadata_requestTitle_shouldContainTitle()
205 List<Bundle> metadata = PreferenceXmlParserUtils.extractMetadata(mContext, in extractMetadata_requestSummary_shouldContainSummary() local
207 for (Bundle bundle : metadata) { in extractMetadata_requestSummary_shouldContainSummary()
216 List<Bundle> metadata = PreferenceXmlParserUtils.extractMetadata(mContext, in extractMetadata_requestIcon_shouldContainIcon() local
218 for (Bundle bundle : metadata) { in extractMetadata_requestIcon_shouldContainIcon()
227 List<Bundle> metadata = PreferenceXmlParserUtils.extractMetadata(mContext, in extractMetadata_requestPrefType_shouldContainPrefType() local
[all …]
/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/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DNotificationChannelSliceTest.java125 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_hasSuggestedApp_shouldHaveNotificationChannelTitle() local
126 assertThat(metadata.getTitle()).isEqualTo( in getSlice_hasSuggestedApp_shouldHaveNotificationChannelTitle()
169 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_noRecentlyInstalledApp_shouldHaveNoSuggestedAppTitle() local
170 assertThat(metadata.getTitle()).isEqualTo(mContext.getString(R.string.no_suggested_app)); in getSlice_noRecentlyInstalledApp_shouldHaveNoSuggestedAppTitle()
182 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_noMultiChannelApp_shouldHaveNoSuggestedAppTitle() local
183 assertThat(metadata.getTitle()).isEqualTo(mContext.getString(R.string.no_suggested_app)); in getSlice_noMultiChannelApp_shouldHaveNoSuggestedAppTitle()
196 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_insufficientNotificationSentCount_shouldHaveNoSuggestedAppTitle() local
197 assertThat(metadata.getTitle()).isEqualTo(mContext.getString(R.string.no_suggested_app)); in getSlice_insufficientNotificationSentCount_shouldHaveNoSuggestedAppTitle()
208 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_isSystemApp_shouldHaveNoSuggestedAppTitle() local
209 assertThat(metadata.getTitle()).isEqualTo(mContext.getString(R.string.no_suggested_app)); in getSlice_isSystemApp_shouldHaveNoSuggestedAppTitle()
[all …]
DBluetoothDevicesSliceTest.java110 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_hasBluetoothDevices_shouldHaveBluetoothDevicesTitle() local
111 assertThat(metadata.getTitle()).isEqualTo(mContext.getString(R.string.bluetooth_devices)); in getSlice_hasBluetoothDevices_shouldHaveBluetoothDevicesTitle()
152 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_noBluetoothDevices_shouldHaveNoBluetoothDevicesTitle() local
153 assertThat(metadata.getTitle()).isEqualTo( in getSlice_noBluetoothDevices_shouldHaveNoBluetoothDevicesTitle()
176 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_exceedDefaultRowCount_shouldContainDefaultCountInSubTitle() local
177 assertThat(metadata.getSubtitle()).isEqualTo( in getSlice_exceedDefaultRowCount_shouldContainDefaultCountInSubTitle()
/packages/apps/TV/src/com/android/tv/util/
DTvTrackInfoUtils.java138 StringBuilder metadata = new StringBuilder();
143 metadata.append(context.getString(R.string.multi_audio_channel_mono));
146 metadata.append(context.getString(R.string.multi_audio_channel_stereo));
149 metadata.append(context.getString(R.string.multi_audio_channel_surround_6));
152 metadata.append(context.getString(R.string.multi_audio_channel_surround_8));
156 metadata.append(
173 if (metadata.length() > 0) {
174 metadata.append(", ");
178 metadata.append(integerPart);
180 metadata.append(".");
[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()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DMetadataUtils.java32 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()
DInspectorController.java201 private void onDocumentMetadataLoaded(DocumentInfo doc, @Nullable Bundle metadata) { in onDocumentMetadataLoaded() argument
202 if (metadata == null) { in onDocumentMetadataLoaded()
207 if (MetadataUtils.hasGeoCoordinates(metadata)) { in onDocumentMetadataLoaded()
208 float[] coords = MetadataUtils.getGeoCoordinates(metadata); in onDocumentMetadataLoaded()
217 mMedia.accept(doc, metadata, geoClickListener); in onDocumentMetadataLoaded()
220 mDebugView.accept(metadata); in onDocumentMetadataLoaded()
359 void accept(DocumentInfo info, Bundle metadata, @Nullable Runnable geoClickListener); in accept() argument
372 void accept(Bundle metadata); in accept() argument
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DMediaItemMetadata.java94 public MediaItemMetadata(@NonNull MediaMetadataCompat metadata) { in MediaItemMetadata() argument
95 this(metadata.getDescription(), null, false, false, in MediaItemMetadata()
96 metadata.getString(MediaMetadataCompat.METADATA_KEY_ALBUM), in MediaItemMetadata()
97 metadata.getString(MediaMetadataCompat.METADATA_KEY_ARTIST)); in MediaItemMetadata()
229 @NonNull MediaItemMetadata metadata) { in getPlaceholderDrawable() argument
235 int titleHash = (metadata.getTitle() != null) ? metadata.getTitle().hashCode() : 0; in getPlaceholderDrawable()
260 public static void updateImageView(Context context, @Nullable MediaItemMetadata metadata, in updateImageView() argument
264 if (metadata == null) { in updateImageView()
272 Bitmap image = metadata.getAlbumArtBitmap(); in updateImageView()
280 Uri imageUri = metadata.getAlbumArtUri(); in updateImageView()
[all …]
DMetadataController.java94 metadata -> { in MetadataController()
95 if (metadata == null) { in MetadataController()
102 CharSequence titleName = metadata.getTitle(); in MetadataController()
110 CharSequence artistName = metadata.getArtist(); in MetadataController()
116 metadata.getAlbumArt(playbackViewModel.getApplication(), in MetadataController()
125 metadata)); in MetadataController()
174 (metadata, progress) -> metadata != null in MetadataController()
175 && !TextUtils.isEmpty(metadata.getAlbumTitle()) && progress.hasTime()) in MetadataController()
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/
DMediaOutputIndicatorSliceTest.java131 final SliceMetadata metadata = SliceMetadata.from(mContext, mediaSlice); in getSlice_noActiveDevice_verifyDefaultName() local
132 assertThat(metadata.getTitle()).isEqualTo(mContext.getText(R.string.media_output_title)); in getSlice_noActiveDevice_verifyDefaultName()
133 assertThat(metadata.getSubtitle()).isEqualTo(mContext.getText( in getSlice_noActiveDevice_verifyDefaultName()
144 final SliceMetadata metadata = SliceMetadata.from(mContext, mediaSlice); in getSlice_A2dpDeviceActive_verifyName() local
145 assertThat(metadata.getTitle()).isEqualTo(mContext.getText(R.string.media_output_title)); in getSlice_A2dpDeviceActive_verifyName()
146 assertThat(metadata.getSubtitle()).isEqualTo(TEST_A2DP_DEVICE_NAME); in getSlice_A2dpDeviceActive_verifyName()
157 final SliceMetadata metadata = SliceMetadata.from(mContext, mediaSlice); in getSlice_HADeviceActive_verifyName() local
158 assertThat(metadata.getTitle()).isEqualTo(mContext.getText(R.string.media_output_title)); in getSlice_HADeviceActive_verifyName()
159 assertThat(metadata.getSubtitle()).isEqualTo(TEST_HAP_DEVICE_NAME); in getSlice_HADeviceActive_verifyName()
/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/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DContextualWifiSliceTest.java112 final SliceMetadata metadata = SliceMetadata.from(mContext, wifiSlice); in getWifiSlice_previousDisplayed_hasActiveConnection_shouldHaveTitleAndToggle() local
113 assertThat(metadata.getTitle()).isEqualTo(mContext.getString(R.string.wifi_settings)); in getWifiSlice_previousDisplayed_hasActiveConnection_shouldHaveTitleAndToggle()
115 final List<SliceAction> toggles = metadata.getToggles(); in getWifiSlice_previousDisplayed_hasActiveConnection_shouldHaveTitleAndToggle()
118 final SliceAction primaryAction = metadata.getPrimaryAction(); in getWifiSlice_previousDisplayed_hasActiveConnection_shouldHaveTitleAndToggle()
131 final SliceMetadata metadata = SliceMetadata.from(mContext, wifiSlice); in getWifiSlice_isCaptivePortal_shouldHaveTitleAndToggle() local
132 assertThat(metadata.getTitle()).isEqualTo(mContext.getString(R.string.wifi_settings)); in getWifiSlice_isCaptivePortal_shouldHaveTitleAndToggle()
134 final List<SliceAction> toggles = metadata.getToggles(); in getWifiSlice_isCaptivePortal_shouldHaveTitleAndToggle()
137 final SliceAction primaryAction = metadata.getPrimaryAction(); in getWifiSlice_isCaptivePortal_shouldHaveTitleAndToggle()
/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/Settings/tests/robotests/src/com/android/settings/slices/
DSliceBuilderUtilsTest.java421 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in buildIntentSlice_noIconPassed_returnsSliceWithIcon() local
422 final SliceAction primaryAction = metadata.getPrimaryAction(); in buildIntentSlice_noIconPassed_returnsSliceWithIcon()
440 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in buildDisabledDependentSlice_noIconPassed_returnsSliceWithIcon() local
441 final SliceAction primaryAction = metadata.getPrimaryAction(); in buildDisabledDependentSlice_noIconPassed_returnsSliceWithIcon()
455 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in buildToggleSlice_noIconPassed_returnsSliceWithIcon() local
456 final SliceAction primaryAction = metadata.getPrimaryAction(); in buildToggleSlice_noIconPassed_returnsSliceWithIcon()
469 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in buildSliderSlice_noIconPassed_returnsSliceWithIcon() local
470 final SliceAction primaryAction = metadata.getPrimaryAction(); in buildSliderSlice_noIconPassed_returnsSliceWithIcon()
522 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in buildUnavailableSlice_customizeSubtitle_returnsSliceWithCustomizedSubtitle() local
523 assertThat(metadata.getSubtitle()).isEqualTo(subtitleOfUnavailableSlice); in buildUnavailableSlice_customizeSubtitle_returnsSliceWithCustomizedSubtitle()
[all …]
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_avrcp_target.cpp230 jboolean metadata, jboolean state, in sendMediaUpdateNative() argument
239 mServiceCallbacks->SendMediaUpdate(metadata == JNI_TRUE, state == JNI_TRUE, in sendMediaUpdateNative()
320 static SongInfo getSongInfoFromJavaObj(JNIEnv* env, jobject metadata) { in getSongInfoFromJavaObj() argument
323 if (metadata == nullptr) return info; in getSongInfoFromJavaObj()
325 jclass class_metadata = env->GetObjectClass(metadata); in getSongInfoFromJavaObj()
343 jstring jstr = (jstring)env->GetObjectField(metadata, field_mediaId); in getSongInfoFromJavaObj()
351 jstr = (jstring)env->GetObjectField(metadata, field_title); in getSongInfoFromJavaObj()
360 jstr = (jstring)env->GetObjectField(metadata, field_artist); in getSongInfoFromJavaObj()
369 jstr = (jstring)env->GetObjectField(metadata, field_album); in getSongInfoFromJavaObj()
378 jstr = (jstring)env->GetObjectField(metadata, field_trackNum); in getSongInfoFromJavaObj()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/deviceinfo/
DDeviceInfoSliceTest.java76 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_hasSubscriptionInfo_shouldBeCorrectSliceContent() local
77 assertThat(metadata.getTitle()).isEqualTo(mContext.getString(R.string.device_info_label)); in getSlice_hasSubscriptionInfo_shouldBeCorrectSliceContent()
79 final SliceAction primaryAction = metadata.getPrimaryAction(); in getSlice_hasSubscriptionInfo_shouldBeCorrectSliceContent()
92 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_hasNoSubscriptionInfo_shouldShowUnknown() local
93 assertThat(metadata.getTitle()).isEqualTo(mContext.getString(R.string.device_info_label)); in getSlice_hasNoSubscriptionInfo_shouldShowUnknown()
DDataUsageSliceTest.java88 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_hasSim_shouldBeCorrectSliceContent() local
89 assertThat(metadata.getTitle()).isEqualTo( in getSlice_hasSim_shouldBeCorrectSliceContent()
92 final SliceAction primaryAction = metadata.getPrimaryAction(); in getSlice_hasSim_shouldBeCorrectSliceContent()
104 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in getSlice_hasNoSim_shouldShowNoSimCard() local
105 assertThat(metadata.getTitle()).isEqualTo( in getSlice_hasNoSim_shouldShowNoSimCard()
/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/apps/Bluetooth/src/com/android/bluetooth/avrcp/helpers/
DMediaData.java30 public Metadata metadata; field in MediaData
33 metadata = m; in MediaData()
49 if (!Objects.equals(metadata, u.metadata)) { in equals()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DWifiCallingSliceHelperTest.java305 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in testWifiCallingSettingsUnavailableSlice() local
308 final List<SliceAction> toggles = metadata.getToggles(); in testWifiCallingSettingsUnavailableSlice()
313 metadata.getPrimaryAction().getAction(); in testWifiCallingSettingsUnavailableSlice()
323 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in testWifiCallingSettingsToggleSlice() local
325 final List<SliceAction> toggles = metadata.getToggles(); in testWifiCallingSettingsToggleSlice()
337 final PendingIntent primaryPendingIntent = metadata.getPrimaryAction().getAction(); in testWifiCallingSettingsToggleSlice()
349 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in testWifiCallingPreferenceSlice() local
352 final List<SliceAction> toggles = metadata.getToggles(); in testWifiCallingPreferenceSlice()
357 metadata.getPrimaryAction().getAction(); in testWifiCallingPreferenceSlice()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DMediaPlayerWrapper.java104 newWrapper.mCurrentData.metadata = Util.toMetadata(newWrapper.getMetadata()); in wrap()
378 public void onMetadataChanged(@Nullable MediaMetadata metadata) { in onMetadataChanged() argument
387 + Util.toMetadata(metadata)); in onMetadataChanged()
390 if (!Objects.equals(metadata, getMetadata())) { in onMetadataChanged()
402 if (Objects.equals(metadata, mCurrentData.metadata)) { in onMetadataChanged()
526 sb.append(" Song: " + mCurrentData.metadata + "\n"); in toString()
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationSliceTest.java41 final SliceMetadata metadata = SliceMetadata.from(mContext, LocationSlice); in getLocationSlice_correctSliceContent() local
42 assertThat(metadata.getTitle()).isEqualTo( in getLocationSlice_correctSliceContent()
45 final List<SliceAction> toggles = metadata.getToggles(); in getLocationSlice_correctSliceContent()
48 final SliceAction primaryAction = metadata.getPrimaryAction(); in getLocationSlice_correctSliceContent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DEnhanced4gLteSliceHelperTest.java180 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in testEnhanced4gLteSettingsUnavailableSlice() local
183 final List<SliceAction> toggles = metadata.getToggles(); in testEnhanced4gLteSettingsUnavailableSlice()
188 metadata.getPrimaryAction().getAction(); in testEnhanced4gLteSettingsUnavailableSlice()
197 final SliceMetadata metadata = SliceMetadata.from(mContext, slice); in testEnhanced4gLteSettingsToggleSlice() local
199 final List<SliceAction> toggles = metadata.getToggles(); in testEnhanced4gLteSettingsToggleSlice()
211 final PendingIntent primaryPendingIntent = metadata.getPrimaryAction().getAction(); in testEnhanced4gLteSettingsToggleSlice()

12345