Home
last modified time | relevance | path

Searched refs:MediaItemType (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaItem.java37 @MediaItemType
42 MediaItemType.TYPE_DEVICE,
43 MediaItemType.TYPE_GROUP_DIVIDER,
44 MediaItemType.TYPE_PAIR_NEW_DEVICE})
45 public @interface MediaItemType { annotation in MediaItem
57 return new MediaItem(device, device.getName(), MediaItemType.TYPE_DEVICE); in createDeviceMediaItem()
66 /* device */ null, /* title */ null, MediaItemType.TYPE_PAIR_NEW_DEVICE); in createPairNewDeviceMediaItem()
74 return new MediaItem(/* device */ null, title, MediaItemType.TYPE_GROUP_DIVIDER); in createGroupDividerMediaItem()
78 @Nullable MediaDevice device, @Nullable String title, @MediaItemType int type) { in MediaItem()
89 public static int getMediaLayoutId(@MediaItemType int mediaItemType) { in getMediaLayoutId()
[all …]
DMediaOutputAdapter.java77 case MediaItem.MediaItemType.TYPE_GROUP_DIVIDER: in onCreateViewHolder()
79 case MediaItem.MediaItemType.TYPE_PAIR_NEW_DEVICE: in onCreateViewHolder()
80 case MediaItem.MediaItemType.TYPE_DEVICE: in onCreateViewHolder()
97 case MediaItem.MediaItemType.TYPE_GROUP_DIVIDER: in onBindViewHolder()
100 case MediaItem.MediaItemType.TYPE_PAIR_NEW_DEVICE: in onBindViewHolder()
103 case MediaItem.MediaItemType.TYPE_DEVICE: in onBindViewHolder()
129 return MediaItem.MediaItemType.TYPE_GROUP_DIVIDER; in getItemViewType()
DMediaOutputController.java684 == MediaItem.MediaItemType.TYPE_GROUP_DIVIDER) { in buildMediaItems()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
DMediaOutputControllerTest.java533 if (item.getMediaItemType() == MediaItem.MediaItemType.TYPE_GROUP_DIVIDER) { in advanced_categorizeMediaItems_withSuggestedDevice_verifyDeviceListSize()