Home
last modified time | relevance | path

Searched refs:ListItem (Results 1 – 10 of 10) sorted by relevance

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DSelectFromListWizardFragment.java63 public static class ListItemComparator implements Comparator<ListItem> {
65 public int compare(ListItem o1, ListItem o2) { in compare()
112 public static class ListItem implements Parcelable { class in SelectFromListWizardFragment
120 public ListItem(String name, int iconResource) { in ListItem() method in SelectFromListWizardFragment.ListItem
128 public ListItem(ScanResult scanResult) { in ListItem() method in SelectFromListWizardFragment.ListItem
173 public static Parcelable.Creator<ListItem> CREATOR = new Parcelable.Creator<ListItem>() {
176 public ListItem createFromParcel(Parcel source) {
179 return new ListItem(source.readString(), source.readInt());
181 return new ListItem(scanResult);
186 public ListItem[] newArray(int size) {
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/helpers/
DListItem.java19 class ListItem implements Cloneable { class
24 ListItem(Folder f) { in ListItem() method in ListItem
29 ListItem(Metadata s) { in ListItem() method in ListItem
35 public ListItem clone() { in clone()
37 return new ListItem(folder.clone()); in clone()
39 return new ListItem(song.clone()); in clone()
DUtil.java224 public static List<ListItem> cloneList(List<ListItem> list) { in cloneList()
225 List<ListItem> clone = new ArrayList<ListItem>(list.size()); in cloneList()
226 for (ListItem item : list) clone.add(item.clone()); in cloneList()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DBrowsedPlayerWrapper.java59 void run(int status, String mediaId, List<ListItem> results); in run()
95 LinkedHashMap<String, List<ListItem>> mCachedFolders =
96 new LinkedHashMap<String, List<ListItem>>(NUM_CACHED_FOLDERS) {
98 protected boolean removeEldestEntry(Map.Entry<String, List<ListItem>> eldest) {
256 cb.run(status, "", new ArrayList<ListItem>());
415 ArrayList<ListItem> return_list = new ArrayList<ListItem>();
430 return_list.add(new ListItem(f));
432 return_list.add(new ListItem(Util.toMetadata(item)));
448 mBrowseCallback.run(STATUS_LOOKUP_ERROR, id, new ArrayList<ListItem>());
DMediaPlayerList.java120 void run(String parentId, List<ListItem> items); in run()
186 (int status, String mediaId, List<ListItem> results) -> { in init()
376 ArrayList<ListItem> playerList = new ArrayList<ListItem>(); in getFolderItemsMediaPlayerList()
384 playerList.add(new ListItem(playerFolder)); in getFolderItemsMediaPlayerList()
422 cb.run(mediaId, new ArrayList<ListItem>()); in getFolderItems()
427 for (ListItem item : results) { in getFolderItems()
438 cb.run(mediaId, new ArrayList<ListItem>()); in getFolderItems()
DAvrcpNativeInterface.java151 void getFolderItemsResponse(String parentId, List<ListItem> items) { in getFolderItemsResponse()
244 private native void getFolderItemsResponseNative(String parentId, List<ListItem> list); in getFolderItemsResponseNative()
DBrowsablePlayerConnector.java146 (int status, String mediaId, List<ListItem> results) -> { in BrowsablePlayerConnector()
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_avrcp_target.cpp660 callback.Run(std::vector<ListItem>()); in getFolderItemsResponseNative()
671 callback.Run(std::vector<ListItem>()); in getFolderItemsResponseNative()
683 std::vector<ListItem> ret_list; in getFolderItemsResponseNative()
690 ListItem temp = {ListItem::FOLDER, in getFolderItemsResponseNative()
697 ListItem temp = { in getFolderItemsResponseNative()
698 ListItem::SONG, FolderInfo(), in getFolderItemsResponseNative()
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
DDeviceListFragment.java34 import androidx.car.widget.ListItem;
247 public ListItem get(int position) { in get()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/newavrcp/
DBrowserPlayerWrapperTest.java50 @Captor ArgumentCaptor<List<ListItem>> mWrapperBrowseCb;
263 List<ListItem> item_list = mWrapperBrowseCb.getValue(); in testGetFolderItems()