Home
last modified time | relevance | path

Searched refs:ListItem (Results 1 – 9 of 9) 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/audio_util/helpers/
DListItem.java19 public 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.java146 public static List<ListItem> cloneList(List<ListItem> list) { in cloneList()
147 List<ListItem> clone = new ArrayList<ListItem>(list.size()); in cloneList()
148 for (ListItem item : list) clone.add(item.clone()); in cloneList()
/packages/apps/Bluetooth/src/com/android/bluetooth/audio_util/
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(mContext, item)));
448 mBrowseCallback.run(STATUS_LOOKUP_ERROR, id, new ArrayList<ListItem>());
DMediaPlayerList.java121 void run(String parentId, List<ListItem> items); in run()
183 (int status, String mediaId, List<ListItem> results) -> { in init()
393 ArrayList<ListItem> playerList = new ArrayList<ListItem>(); in getFolderItemsMediaPlayerList()
401 playerList.add(new ListItem(playerFolder)); in getFolderItemsMediaPlayerList()
422 cb.run(mediaId, new ArrayList<ListItem>()); in getFolderItems()
458 cb.run(mediaId, new ArrayList<ListItem>()); in getFolderItems()
463 for (ListItem item : results) { in getFolderItems()
474 cb.run(mediaId, new ArrayList<ListItem>()); in getFolderItems()
DBrowsablePlayerConnector.java146 (int status, String mediaId, List<ListItem> results) -> { in BrowsablePlayerConnector()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpNativeInterface.java24 import com.android.bluetooth.audio_util.ListItem;
171 void getFolderItemsResponse(String parentId, List<ListItem> items) { in getFolderItemsResponse()
266 private native void getFolderItemsResponseNative(String parentId, List<ListItem> list); in getFolderItemsResponseNative()
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_avrcp_target.cpp731 callback.Run(std::vector<ListItem>()); in getFolderItemsResponseNative()
742 callback.Run(std::vector<ListItem>()); in getFolderItemsResponseNative()
754 std::vector<ListItem> ret_list; in getFolderItemsResponseNative()
762 ListItem temp = {ListItem::FOLDER, in getFolderItemsResponseNative()
769 ListItem temp = {ListItem::SONG, FolderInfo(), in getFolderItemsResponseNative()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/audio_util/
DBrowserPlayerWrapperTest.java66 @Captor ArgumentCaptor<List<ListItem>> mWrapperBrowseCb;
381 List<ListItem> item_list = mWrapperBrowseCb.getValue(); in testGetFolderItems()
384 ListItem item = item_list.get(i); in testGetFolderItems()