Home
last modified time | relevance | path

Searched refs:Item (Results 1 – 25 of 139) sorted by relevance

123456

/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/
DSortedListTest.java39 SortedList<Item> mList;
44 private SortedList.Callback<Item> mCallback;
45 InsertedCallback<Item> mInsertedCallback;
46 ChangedCallback<Item> mChangedCallback;
48 private Comparator<? super Item> sItemComparator = new Comparator<Item>() {
50 public int compare(Item o1, Item o2) {
67 mCallback = new SortedList.Callback<Item>() { in setUp()
69 public int compare(Item o1, Item o2) { in setUp()
100 public boolean areContentsTheSame(Item oldItem, Item newItem) { in setUp()
105 public boolean areItemsTheSame(Item item1, Item item2) { in setUp()
[all …]
DDiffUtilTest.java45 private List<Item> mBefore = new ArrayList<>();
46 private List<Item> mAfter = new ArrayList<>();
272 List<Item> applied = applyUpdates(mBefore, DiffUtil.calculateDiff(mCallback, false)); in testDisableMoveDetection()
321 List<Item> applied = applyUpdates(mBefore, result); in check()
329 mBefore.add(new Item(false)); in initWithSize()
342 private void assertEquals(List<Item> applied, List<Item> after) { in assertEquals()
348 Item item = applied.get(i); in assertEquals()
362 private List<Item> applyUpdates(List<Item> before, DiffUtil.DiffResult result) { in applyUpdates()
363 final List<Item> target = new ArrayList<>(); in applyUpdates()
369 target.add(i + position, new Item(true)); in applyUpdates()
[all …]
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/util/
DSortedListActivity.java51 new Item("buy milk"), new Item("wash the car"), in onCreate()
52 new Item("wash the dishes")); in onCreate()
63 mAdapter.addItem(new Item(text)); in onCreate()
74 SortedList<Item> mData;
76 public SortedListAdapter(LayoutInflater layoutInflater, Item... items) { in SortedListAdapter()
78 mData = new SortedList<Item>(Item.class, new SortedListAdapterCallback<Item>(this) { in SortedListAdapter()
80 public int compare(Item t0, Item t1) { in SortedListAdapter()
97 public boolean areContentsTheSame(Item oldItem, in SortedListAdapter()
98 Item newItem) { in SortedListAdapter()
103 public boolean areItemsTheSame(Item item1, Item item2) { in SortedListAdapter()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DItem.java28 public class Item implements Parcelable { class
36 public Item(int id, String text) { in Item() method in Item
40 public Item(int id, String text, Bitmap icon) { in Item() method in Item
46 public Item(Parcel in) { in Item() method in Item
64 public static final Parcelable.Creator<Item> CREATOR = new Parcelable.Creator<Item>() {
66 public Item createFromParcel(Parcel in) {
67 return new Item(in);
71 public Item[] newArray(int size) {
72 return new Item[size];
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/
DOpReorderTest.java47 List<Item> mAddedItems = new ArrayList<Item>();
48 List<Item> mRemovedItems = new ArrayList<Item>();
79 mAddedItems = new ArrayList<Item>(); in cleanState()
80 mRemovedItems = new ArrayList<Item>(); in cleanState()
82 Item.idCounter = 0; in cleanState()
310 List<Item> items = new ArrayList<Item>(itemCount); in process()
312 items.add(Item.create()); in process()
314 List<Item> clones = new ArrayList<Item>(itemCount); in process()
316 clones.add(Item.clone(items.get(i))); in process()
323 List<Item> originalAdded = mAddedItems; in process()
[all …]
DAdapterHelperTest.java62 private List<TestAdapter.Item> mPreLayoutItems;
77 mPreLayoutItems = new ArrayList<TestAdapter.Item>(); in cleanState()
938 TestAdapter.Item item = mPreProcessClone.mItems.get(i); in preProcess()
970 TestAdapter.Item item = a1.mItems.get(i); in assertAdaptersEqual()
1027 TestAdapter.Item item = mTestAdapter.mItems.get(i); in rm()
1050 List<Item> mItems;
1054 Queue<Item> mPendingAdded;
1057 mItems = new ArrayList<Item>(); in TestAdapter()
1059 mPendingAdded = new LinkedList<Item>(); in TestAdapter()
1061 mItems.add(new Item()); in TestAdapter()
[all …]
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
DItemTest.java30 import com.android.setupwizardlib.items.Item;
41 Item item = new Item(); in testOnBindView()
65 Item item = new Item(); in testSingleLineItem()
78 Item item = new Item(); in testProperties()
97 Item item = new Item(); in testDefaultValues()
111 Item item = new Item(); in testHierarchyImplementation()
123 Item item = new Item(); in testVisible()
DItemGroupTest.java22 import com.android.setupwizardlib.items.Item;
27 public static final Item CHILD_1 = new Item();
28 public static final Item CHILD_2 = new Item();
29 public static final Item CHILD_3 = new Item();
30 public static final Item CHILD_4 = new Item();
DItemInflaterTest.java22 import com.android.setupwizardlib.items.Item;
43 Item child0 = (Item) itemGroup.getItemAt(0); in testInflate()
44 Item child1 = (Item) itemGroup.getItemAt(1); in testInflate()
DItemAdapterTest.java22 import com.android.setupwizardlib.items.Item;
32 private Item[] mItems = new Item[5];
39 Item item = new Item(); in setUp()
/frameworks/base/core/java/android/content/
DClipData.java167 final ArrayList<Item> mItems;
188 public static class Item { class in ClipData
195 public Item(Item other) { in Item() method in ClipData.Item
205 public Item(CharSequence text) { in Item() method in ClipData.Item
218 public Item(CharSequence text, String htmlText) { in Item() method in ClipData.Item
228 public Item(Intent intent) { in Item() method in ClipData.Item
238 public Item(Uri uri) { in Item() method in ClipData.Item
249 public Item(CharSequence text, Intent intent, Uri uri) { in Item() method in ClipData.Item
262 public Item(CharSequence text, String htmlText, Intent intent, Uri uri) { in Item() method in ClipData.Item
653 public ClipData(CharSequence label, String[] mimeTypes, Item item) { in ClipData()
[all …]
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DBrowseAnimationFragment.java40 static class Item { class in BrowseAnimationFragment
44 Item(String text, OnItemViewClickedListener action) { in Item() method in BrowseAnimationFragment.Item
87 Item createRandomItem() { in createRandomItem()
91 return new Item("Remove Item before", new OnItemViewClickedListener() { in createRandomItem()
106 return new Item("Remove Item after", new OnItemViewClickedListener() { in createRandomItem()
121 return new Item("Remove Item", new OnItemViewClickedListener() { in createRandomItem()
134 return new Item("Remove all Items", new OnItemViewClickedListener() { in createRandomItem()
144 return new Item("add item before", new OnItemViewClickedListener() { in createRandomItem()
157 return new Item("add item after", new OnItemViewClickedListener() { in createRandomItem()
170 return new Item("add random items before", in createRandomItem()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/
DSettingsDrawerAdapter.java33 private final ArrayList<Item> mItems = new ArrayList<>();
45 Item tile = new Item(); in updateCategories()
50 Item category = new Item(); in updateCategories()
56 tile = new Item(); in updateCategories()
93 Item item = mItems.get(position); in getView()
117 private static class Item { class in SettingsDrawerAdapter
/frameworks/opt/setupwizard/library/full-support/test/src/com/android/setupwizardlib/test/
DRecyclerItemAdapterTest.java22 import com.android.setupwizardlib.items.Item;
32 private Item[] mItems = new Item[5];
39 Item item = new Item(); in setUp()
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
DTabLayoutPreselectedUsage.java141 final Item item = (Item) object; in getItemPosition()
155 Item item = new Item(); in instantiateItem()
163 final Item item = (Item) object; in isViewFromObject()
174 final Item item = (Item) object; in destroyItem()
178 private static class Item { class in TabLayoutPreselectedUsage.CheesePagerAdapter
DTabLayoutUsage.java160 final Item item = (Item) object; in getItemPosition()
174 Item item = new Item(); in instantiateItem()
182 final Item item = (Item) object; in isViewFromObject()
193 final Item item = (Item) object; in destroyItem()
197 private static class Item { class in TabLayoutUsage.CheesePagerAdapter
/frameworks/compile/slang/tests/P_reduce_general_result/
DScriptField_MyStruct.java.expect31 static public class Item {
36 Item() {
41 private Item mItemArray[];
111 private void copyToArrayLocal(Item i, FieldPacker fp) {
117 private void copyToArray(Item i, int index) {
123 public synchronized void set(Item i, int index, boolean copyNow) {
124 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
135 public synchronized Item get(int index) {
142 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
143 if (mItemArray[index] == null) mItemArray[index] = new Item();
[all …]
/frameworks/compile/slang/tests/P_reduce_general_input/
DScriptField_MyStruct.java.expect31 static public class Item {
36 Item() {
41 private Item mItemArray[];
111 private void copyToArrayLocal(Item i, FieldPacker fp) {
117 private void copyToArray(Item i, int index) {
123 public synchronized void set(Item i, int index, boolean copyNow) {
124 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
135 public synchronized Item get(int index) {
142 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
143 if (mItemArray[index] == null) mItemArray[index] = new Item();
[all …]
/frameworks/compile/slang/tests/P_reduce_general_inputs/
DScriptField_MyStruct.java.expect31 static public class Item {
36 Item() {
41 private Item mItemArray[];
111 private void copyToArrayLocal(Item i, FieldPacker fp) {
117 private void copyToArray(Item i, int index) {
123 public synchronized void set(Item i, int index, boolean copyNow) {
124 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
135 public synchronized Item get(int index) {
142 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */];
143 if (mItemArray[index] == null) mItemArray[index] = new Item();
[all …]
/frameworks/base/tests/MusicBrowserDemo/src/com/example/android/musicbrowserdemo/
DAppListFragment.java45 private List<Item> mItems;
59 final Item item = mItems.get(position); in onListItemClick()
76 private static class Item { class in AppListFragment
80 Item(String l, ComponentName c) { in Item() method in AppListFragment.Item
103 mItems.add(new Item(ri.loadLabel(pm).toString(), new ComponentName( in Adapter()
115 public Item getItem(int position) { in getItem()
136 final Item item = mItems.get(position); in getView()
DBrowserListFragment.java53 private List<Item> mItems = new ArrayList();
58 private static class Item { class in BrowserListFragment
61 Item(MediaBrowser.MediaItem m) { in Item() method in BrowserListFragment.Item
102 final Item item = mItems.get(position); in onListItemClick()
139 mItems.add(new Item(children.get(i)));
178 public Item getItem(int position) { in getItem()
199 final Item item = mItems.get(position); in getView()
/frameworks/av/media/libstagefright/foundation/
DAMessage.cpp89 Item *item = &mItems[i]; in clear()
97 void AMessage::freeItemValue(Item *item) { in freeItemValue()
180 void AMessage::Item::setName(const char *name, size_t len) { in setName()
186 AMessage::Item *AMessage::allocateItem(const char *name) { in allocateItem()
189 Item *item; in allocateItem()
204 const AMessage::Item *AMessage::findItem( in findItem()
208 const Item *item = &mItems[i]; in findItem()
218 const Item *item = &mItems[i]; in findAsFloat()
249 Item *item = allocateItem(name); \
256 const Item *item = findItem(name, kType##NAME); \
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DCastTile.java32 import com.android.systemui.qs.QSDetailItems.Item;
236 Item[] items = null; in updateItems()
241 final Item item = new Item(); in updateItems()
247 items = new Item[] { item }; in updateItems()
256 items = new Item[devices.size()]; in updateItems()
261 final Item item = new Item(); in updateItems()
276 public void onDetailItemClick(Item item) { in onDetailItemClick()
284 public void onDetailItemDisconnect(Item item) { in onDetailItemDisconnect()
/frameworks/base/tools/aapt2/
DValueVisitor.h32 virtual void visitItem(Item* value) {} in visitItem()
80 for (std::unique_ptr<Item>& item : array->items) { in visitSubValues()
86 for (std::unique_ptr<Item>& item : plural->values) { in visitSubValues()
122 struct DynCastVisitor<Item> : public RawValueVisitor {
123 Item* value = nullptr;
125 void visitItem(Item* item) override {
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DBaseLinearLayoutManagerTest.java189 public void assertRectSetsNotEqual(String message, Map<Item, Rect> before, in assertRectSetsNotEqual() argument
190 Map<Item, Rect> after, boolean strictItemEquality) { in assertRectSetsNotEqual()
200 public void assertRectSetsEqual(String message, Map<Item, Rect> before, Map<Item, Rect> after) { in assertRectSetsEqual() argument
204 public void assertRectSetsEqual(String message, Map<Item, Rect> before, Map<Item, Rect> after, in assertRectSetsEqual() argument
209 for (Map.Entry<Item, Rect> entry : before.entrySet()) { in assertRectSetsEqual()
213 for (Map.Entry<Item, Rect> entry : after.entrySet()) { in assertRectSetsEqual()
219 for (Map.Entry<Item, Rect> entry : before.entrySet()) { in assertRectSetsEqual()
220 final Item beforeItem = entry.getKey(); in assertRectSetsEqual()
227 for (Map.Entry<Item, Rect> afterEntry : after.entrySet()) { in assertRectSetsEqual()
228 final Item afterItem = afterEntry.getKey(); in assertRectSetsEqual()
[all …]

123456