Home
last modified time | relevance | path

Searched refs:media (Results 1 – 25 of 1074) sorted by relevance

12345678910>>...43

/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/loader/
DTmaMediaMetadataReader.java17 package com.android.car.media.testmediaapp.loader;
19 import static android.support.v4.media.MediaMetadataCompat.METADATA_KEY_ADVERTISEMENT;
20 import static android.support.v4.media.MediaMetadataCompat.METADATA_KEY_ALBUM;
21 import static android.support.v4.media.MediaMetadataCompat.METADATA_KEY_ALBUM_ART;
22 import static android.support.v4.media.MediaMetadataCompat.METADATA_KEY_ALBUM_ARTIST;
23 import static android.support.v4.media.MediaMetadataCompat.METADATA_KEY_ALBUM_ART_URI;
24 import static android.support.v4.media.MediaMetadataCompat.METADATA_KEY_ART;
25 import static android.support.v4.media.MediaMetadataCompat.METADATA_KEY_ARTIST;
26 import static android.support.v4.media.MediaMetadataCompat.METADATA_KEY_ART_URI;
27 import static android.support.v4.media.MediaMetadataCompat.METADATA_KEY_AUTHOR;
[all …]
DTmaMediaItemReader.java17 package com.android.car.media.testmediaapp.loader;
19 import static android.support.v4.media.MediaBrowserCompat.MediaItem.FLAG_BROWSABLE;
20 import static android.support.v4.media.MediaBrowserCompat.MediaItem.FLAG_PLAYABLE;
22 import static com.android.car.media.testmediaapp.TmaMediaEvent.INSTANT_PLAYBACK;
23 import static com.android.car.media.testmediaapp.loader.TmaLoaderUtils.enumNamesToValues;
24 import static com.android.car.media.testmediaapp.loader.TmaLoaderUtils.getArray;
25 import static com.android.car.media.testmediaapp.loader.TmaLoaderUtils.getEnum;
26 import static com.android.car.media.testmediaapp.loader.TmaLoaderUtils.getEnumArray;
27 import static com.android.car.media.testmediaapp.loader.TmaLoaderUtils.getInt;
28 import static com.android.car.media.testmediaapp.loader.TmaLoaderUtils.getString;
[all …]
DTmaMediaEventReader.java17 package com.android.car.media.testmediaapp.loader;
19 import static com.android.car.media.testmediaapp.loader.TmaLoaderUtils.enumNamesToValues;
20 import static com.android.car.media.testmediaapp.loader.TmaLoaderUtils.getEnum;
21 import static com.android.car.media.testmediaapp.loader.TmaLoaderUtils.getInt;
22 import static com.android.car.media.testmediaapp.loader.TmaLoaderUtils.getString;
26 import com.android.car.media.testmediaapp.TmaMediaEvent;
27 import com.android.car.media.testmediaapp.TmaMediaEvent.Action;
28 import com.android.car.media.testmediaapp.TmaMediaEvent.EventState;
29 import com.android.car.media.testmediaapp.TmaMediaEvent.ResolutionIntent;
30 import com.android.car.media.testmediaapp.TmaMediaEvent.StateErrorCode;
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/
DTmaMediaEvent.java17 package com.android.car.media.testmediaapp;
19 import static android.support.v4.media.session.PlaybackStateCompat.ERROR_CODE_ACTION_ABORTED;
20 import static android.support.v4.media.session.PlaybackStateCompat.ERROR_CODE_APP_ERROR;
21 import static android.support.v4.media.session.PlaybackStateCompat.ERROR_CODE_AUTHENTICATION_EXPIRE…
22 import static android.support.v4.media.session.PlaybackStateCompat.ERROR_CODE_CONCURRENT_STREAM_LIM…
23 import static android.support.v4.media.session.PlaybackStateCompat.ERROR_CODE_CONTENT_ALREADY_PLAYI…
24 import static android.support.v4.media.session.PlaybackStateCompat.ERROR_CODE_END_OF_QUEUE;
25 import static android.support.v4.media.session.PlaybackStateCompat.ERROR_CODE_NOT_AVAILABLE_IN_REGI…
26 import static android.support.v4.media.session.PlaybackStateCompat.ERROR_CODE_NOT_SUPPORTED;
27 import static android.support.v4.media.session.PlaybackStateCompat.ERROR_CODE_PARENTAL_CONTROL_REST…
[all …]
DTmaPlayer.java17 package com.android.car.media.testmediaapp;
19 import static android.media.AudioManager.AUDIOFOCUS_GAIN;
20 import static android.media.AudioManager.AUDIOFOCUS_REQUEST_GRANTED;
21 import static android.support.v4.media.session.PlaybackStateCompat.ACTION_PAUSE;
22 import static android.support.v4.media.session.PlaybackStateCompat.ACTION_PLAY;
23 import static android.support.v4.media.session.PlaybackStateCompat.ACTION_PLAY_FROM_MEDIA_ID;
24 import static android.support.v4.media.session.PlaybackStateCompat.ACTION_PREPARE;
25 import static android.support.v4.media.session.PlaybackStateCompat.ACTION_SEEK_TO;
26 import static android.support.v4.media.session.PlaybackStateCompat.ACTION_SKIP_TO_NEXT;
27 import static android.support.v4.media.session.PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS;
[all …]
DTmaBrowser.java16 package com.android.car.media.testmediaapp;
18 import static com.android.car.media.testmediaapp.prefs.TmaEnumPrefs.TmaBrowseNodeType.LEAF_CHILDREN;
19 import static com.android.car.media.testmediaapp.prefs.TmaEnumPrefs.TmaBrowseNodeType.QUEUE_ONLY;
20 import static com.android.car.media.testmediaapp.prefs.TmaEnumPrefs.TmaLoginEventOrder.PLAYBACK_STA…
26 import android.media.AudioManager;
29 import android.support.v4.media.MediaBrowserCompat.MediaItem;
30 import android.support.v4.media.session.MediaSessionCompat;
31 import android.support.v4.media.session.PlaybackStateCompat;
36 import androidx.media.MediaBrowserServiceCompat;
37 import androidx.media.session.MediaButtonReceiver;
[all …]
/packages/providers/MediaProvider/
DAndroid.bp35 "framework-media.stubs.module_lib",
64 certificate: "media",
67 aaptflags: ["--custom-package com.android.providers.media"],
81 required: ["preinstalled-packages-com.android.providers.media.module.xml"],
101 "src/com/android/providers/media/DatabaseHelper.java",
102 "src/com/android/providers/media/util/BackgroundThread.java",
103 "src/com/android/providers/media/util/DatabaseUtils.java",
104 "src/com/android/providers/media/util/FileUtils.java",
105 "src/com/android/providers/media/util/ForegroundThread.java",
106 "src/com/android/providers/media/util/HandlerExecutor.java",
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DMetrics.java17 package com.android.providers.media.util;
19 import static com.android.providers.media.MediaProviderStatsLog.MEDIA_CONTENT_DELETED;
20 import static com.android.providers.media.MediaProviderStatsLog.MEDIA_PROVIDER_IDLE_MAINTENANCE_FIN…
21 import static com.android.providers.media.MediaProviderStatsLog.MEDIA_PROVIDER_PERMISSION_REQUESTED;
22 import static com.android.providers.media.MediaProviderStatsLog.MEDIA_PROVIDER_PERMISSION_REQUESTED…
23 import static com.android.providers.media.MediaProviderStatsLog.MEDIA_PROVIDER_PERMISSION_REQUESTED…
24 import static com.android.providers.media.MediaProviderStatsLog.MEDIA_PROVIDER_SCAN_OCCURRED;
25 import static com.android.providers.media.MediaProviderStatsLog.MEDIA_PROVIDER_SCAN_OCCURRED__VOLUM…
26 import static com.android.providers.media.MediaProviderStatsLog.MEDIA_PROVIDER_SCAN_OCCURRED__VOLUM…
27 import static com.android.providers.media.MediaProviderStatsLog.MEDIA_PROVIDER_SCAN_OCCURRED__VOLUM…
[all …]
DExifUtils.java17 package com.android.providers.media.util;
19 import static android.media.ExifInterface.TAG_DATETIME;
20 import static android.media.ExifInterface.TAG_DATETIME_DIGITIZED;
21 import static android.media.ExifInterface.TAG_DATETIME_ORIGINAL;
22 import static android.media.ExifInterface.TAG_GPS_DATESTAMP;
23 import static android.media.ExifInterface.TAG_GPS_TIMESTAMP;
24 import static android.media.ExifInterface.TAG_OFFSET_TIME;
25 import static android.media.ExifInterface.TAG_OFFSET_TIME_DIGITIZED;
26 import static android.media.ExifInterface.TAG_OFFSET_TIME_ORIGINAL;
27 import static android.media.ExifInterface.TAG_SUBSEC_TIME;
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DAudioAutoStartActivity.java24 import static android.car.media.CarAudioManager.AUDIO_FEATURE_DYNAMIC_ROUTING;
25 import static android.media.AudioManager.AUDIOFOCUS_GAIN;
26 import static android.media.AudioManager.AUDIOFOCUS_GAIN_TRANSIENT;
27 import static android.media.AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE;
28 import static android.media.AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK;
29 import static android.media.AudioManager.AUDIOFOCUS_LOSS;
30 import static android.media.AudioManager.AUDIOFOCUS_LOSS_TRANSIENT;
31 import static android.media.AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK;
32 import static android.media.AudioManager.AUDIOFOCUS_REQUEST_DELAYED;
33 import static android.media.AudioManager.AUDIOFOCUS_REQUEST_FAILED;
[all …]
/packages/apps/TV/tuner/src/com/google/android/exoplayer/
DMediaFormatUtil.java31 public static MediaFormat createMediaFormat(android.media.MediaFormat format) { in createMediaFormat()
32 String mimeType = format.getString(android.media.MediaFormat.KEY_MIME); in createMediaFormat()
33 String language = getOptionalStringV16(format, android.media.MediaFormat.KEY_LANGUAGE); in createMediaFormat()
35 getOptionalIntegerV16(format, android.media.MediaFormat.KEY_MAX_INPUT_SIZE); in createMediaFormat()
36 int width = getOptionalIntegerV16(format, android.media.MediaFormat.KEY_WIDTH); in createMediaFormat()
37 int height = getOptionalIntegerV16(format, android.media.MediaFormat.KEY_HEIGHT); in createMediaFormat()
40 getOptionalIntegerV16(format, android.media.MediaFormat.KEY_CHANNEL_COUNT); in createMediaFormat()
41 int sampleRate = getOptionalIntegerV16(format, android.media.MediaFormat.KEY_SAMPLE_RATE); in createMediaFormat()
53 format.containsKey(android.media.MediaFormat.KEY_DURATION) in createMediaFormat()
54 ? format.getLong(android.media.MediaFormat.KEY_DURATION) in createMediaFormat()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioPlayer.java19 import static android.media.AudioManager.AUDIOFOCUS_GAIN;
20 import static android.media.AudioManager.AUDIOFOCUS_GAIN_TRANSIENT;
21 import static android.media.AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE;
22 import static android.media.AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK;
23 import static android.media.AudioManager.AUDIOFOCUS_LOSS;
24 import static android.media.AudioManager.AUDIOFOCUS_LOSS_TRANSIENT;
25 import static android.media.AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK;
26 import static android.media.AudioManager.AUDIOFOCUS_REQUEST_DELAYED;
27 import static android.media.AudioManager.AUDIOFOCUS_REQUEST_FAILED;
28 import static android.media.AudioManager.AUDIOFOCUS_REQUEST_GRANTED;
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DPermissionUtilsTest.java17 package com.android.providers.media.util;
34 import static com.android.providers.media.util.PermissionUtils.checkAppOpRequestInstallPackagesForS…
35 import static com.android.providers.media.util.PermissionUtils.checkIsLegacyStorageGranted;
36 import static com.android.providers.media.util.PermissionUtils.checkNoIsolatedStorageGranted;
37 import static com.android.providers.media.util.PermissionUtils.checkPermissionAccessMediaLocation;
38 import static com.android.providers.media.util.PermissionUtils.checkPermissionAccessMtp;
39 import static com.android.providers.media.util.PermissionUtils.checkPermissionDelegator;
40 import static com.android.providers.media.util.PermissionUtils.checkPermissionInstallPackages;
41 import static com.android.providers.media.util.PermissionUtils.checkPermissionManageMedia;
42 import static com.android.providers.media.util.PermissionUtils.checkPermissionManager;
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/audio_util/mockable/
DMediaController.java23 import android.media.MediaDescription;
24 import android.media.MediaMetadata;
25 import android.media.Rating;
26 import android.media.session.MediaSession;
27 import android.media.session.PlaybackState;
43 @NonNull public android.media.session.MediaController mDelegate;
44 public android.media.session.MediaController.TransportControls mTransportDelegate;
47 MediaController(@NonNull android.media.session.MediaController delegate) { in MediaController()
54 mDelegate = new android.media.session.MediaController(context, token); in MediaController()
59 public android.media.session.MediaController getWrappedInstance() { in getWrappedInstance()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowAudioManager.java19 import static android.media.AudioManager.STREAM_ACCESSIBILITY;
20 import static android.media.AudioManager.STREAM_ALARM;
21 import static android.media.AudioManager.STREAM_DTMF;
22 import static android.media.AudioManager.STREAM_MUSIC;
23 import static android.media.AudioManager.STREAM_NOTIFICATION;
24 import static android.media.AudioManager.STREAM_RING;
25 import static android.media.AudioManager.STREAM_SYSTEM;
26 import static android.media.AudioManager.STREAM_VOICE_CALL;
30 import android.media.AudioDeviceCallback;
31 import android.media.AudioManager;
/packages/apps/Car/Media/src/com/android/car/media/browse/
DBrowseViewHolder.java17 package com.android.car.media.browse;
31 import com.android.car.media.MediaAppConfig;
32 import com.android.car.media.common.MediaItemMetadata;
55 mTitle = itemView.findViewById(com.android.car.media.R.id.title); in BrowseViewHolder()
56 mSubtitle = itemView.findViewById(com.android.car.media.R.id.subtitle); in BrowseViewHolder()
57 mAlbumArt = itemView.findViewById(com.android.car.media.R.id.thumbnail); in BrowseViewHolder()
58 mContainer = itemView.findViewById(com.android.car.media.R.id.item_container); in BrowseViewHolder()
59 mRightArrow = itemView.findViewById(com.android.car.media.R.id.right_arrow); in BrowseViewHolder()
61 com.android.car.media.R.id.download_icon_with_title); in BrowseViewHolder()
63 com.android.car.media.R.id.explicit_icon_with_title); in BrowseViewHolder()
[all …]
DBrowseItemViewType.java17 package com.android.car.media.browse;
26 HEADER(com.android.car.media.R.layout.media_browse_header_item),
28 GRID_ITEM(com.android.car.media.R.layout.media_browse_grid_item, 1),
30 ICON_GRID_ITEM(com.android.car.media.R.layout.media_browse_grid_icons_item, 1),
32 LIST_ITEM(com.android.car.media.R.layout.media_browse_list_item),
34 ICON_LIST_ITEM(com.android.car.media.R.layout.media_browse_list_icons_item),
37 SPACER(com.android.car.media.R.layout.media_browse_spacer);
/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java17 package com.android.providers.media;
25 import static com.android.providers.media.util.PermissionUtils.checkAppOpRequestInstallPackagesForS…
26 import static com.android.providers.media.util.PermissionUtils.checkIsLegacyStorageGranted;
27 import static com.android.providers.media.util.PermissionUtils.checkPermissionAccessMtp;
28 import static com.android.providers.media.util.PermissionUtils.checkPermissionDelegator;
29 import static com.android.providers.media.util.PermissionUtils.checkPermissionInstallPackages;
30 import static com.android.providers.media.util.PermissionUtils.checkPermissionManager;
31 import static com.android.providers.media.util.PermissionUtils.checkPermissionReadAudio;
32 import static com.android.providers.media.util.PermissionUtils.checkPermissionReadImages;
33 import static com.android.providers.media.util.PermissionUtils.checkPermissionReadStorage;
[all …]
/packages/apps/TV/tuner/sampletunertvinput/src/com/android/tv/samples/sampletunertvinput/
DSampleTunerTvInputService.java3 import static android.media.tv.TvInputManager.VIDEO_UNAVAILABLE_REASON_UNKNOWN;
6 import android.media.MediaCodec;
7 import android.media.MediaCodec.BufferInfo;
8 import android.media.MediaFormat;
9 import android.media.tv.tuner.dvr.DvrPlayback;
10 import android.media.tv.tuner.dvr.DvrSettings;
11 import android.media.tv.tuner.filter.AvSettings;
12 import android.media.tv.tuner.filter.Filter;
13 import android.media.tv.tuner.filter.FilterCallback;
14 import android.media.tv.tuner.filter.FilterEvent;
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioPolicyVolumeCallbackTest.java19 import static android.car.media.CarAudioManager.PRIMARY_AUDIO_ZONE;
20 import static android.media.AudioManager.ADJUST_LOWER;
21 import static android.media.AudioManager.ADJUST_MUTE;
22 import static android.media.AudioManager.ADJUST_RAISE;
23 import static android.media.AudioManager.ADJUST_SAME;
24 import static android.media.AudioManager.ADJUST_TOGGLE_MUTE;
25 import static android.media.AudioManager.ADJUST_UNMUTE;
26 import static android.media.AudioManager.FLAG_FROM_KEY;
27 import static android.media.AudioManager.FLAG_SHOW_UI;
38 import android.media.AudioManager;
[all …]
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/sdp/
DSimpleSdpMessage.java125 public abstract ImmutableList<SdpMedia> media();
143 if (media().isEmpty()) {
147 return OptionalInt.of(media().get(0).port());
151 if (media().isEmpty()) {
155 return Optional.ofNullable(media().get(0).attributes().get("path"));
168 for (SdpMedia media : media()) {
169 builder.append(media.encode());
189 public Builder addMedia(SdpMedia media) {
190 mediaBuilder().add(media);
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/phone/
DTmaLauncherActivity.java1 package com.android.car.media.testmediaapp.phone;
6 import android.support.v4.media.MediaBrowserCompat;
7 import android.support.v4.media.session.MediaControllerCompat;
8 import android.support.v4.media.session.MediaSessionCompat;
13 import com.android.car.media.testmediaapp.MediaKeys;
14 import com.android.car.media.testmediaapp.TmaBrowser;
15 import com.android.car.media.testmediaapp.prefs.TmaPrefsActivity;
16 import com.android.car.media.testmediaapp.R;
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DEpgTestData.java37 public static final androidx.tvprovider.media.tv.Channel CHANNEL_10 =
38 new androidx.tvprovider.media.tv.Channel.Builder()
43 public static final androidx.tvprovider.media.tv.Channel CHANNEL_11 =
44 new androidx.tvprovider.media.tv.Channel.Builder()
48 public static final androidx.tvprovider.media.tv.Channel CHANNEL_90_2 =
49 new androidx.tvprovider.media.tv.Channel.Builder()
171 androidx.tvprovider.media.tv.Channel... channels) { in toTvChannels()
174 new Function<androidx.tvprovider.media.tv.Channel, Channel>() { in toTvChannels()
176 public Channel apply(androidx.tvprovider.media.tv.Channel original) { in toTvChannels()
182 public static Channel toTvChannel(androidx.tvprovider.media.tv.Channel original) {
/packages/services/Car/tests/carservice_test/src/android/media/tests/
DAudioPolicyTest.java17 package android.media.tests;
23 import android.media.AudioAttributes;
24 import android.media.AudioFormat;
25 import android.media.AudioManager;
26 import android.media.AudioPatch;
27 import android.media.AudioPort;
28 import android.media.audiopolicy.AudioMix;
29 import android.media.audiopolicy.AudioMixingRule;
30 import android.media.audiopolicy.AudioPolicy;
/packages/providers/MediaProvider/tests/src/com/android/providers/media/
DPermissionActivityTest.java17 package com.android.providers.media;
28 import static com.android.providers.media.PermissionActivity.VERB_FAVORITE;
29 import static com.android.providers.media.PermissionActivity.VERB_TRASH;
30 import static com.android.providers.media.PermissionActivity.VERB_UNFAVORITE;
31 import static com.android.providers.media.PermissionActivity.VERB_WRITE;
32 import static com.android.providers.media.PermissionActivity.shouldShowActionDialog;
33 import static com.android.providers.media.util.PermissionUtils.checkPermissionAccessMediaLocation;
34 import static com.android.providers.media.util.PermissionUtils.checkPermissionManageMedia;
35 import static com.android.providers.media.util.PermissionUtils.checkPermissionManager;
36 import static com.android.providers.media.util.PermissionUtils.checkPermissionReadStorage;
[all …]

12345678910>>...43