Home
last modified time | relevance | path

Searched refs:Item (Results 1 – 25 of 131) 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 …]
/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];
DMenu.java31 public List<Item> items;
44 items = new ArrayList<Item>(); in Menu()
61 items = new ArrayList<Item>(); in Menu()
64 Item item = in.readParcelable(null); in Menu()
/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/base/core/java/android/content/
DClipData.java167 final ArrayList<Item> mItems;
188 public static class Item { class in ClipData
197 public Item(CharSequence text) { in Item() method in ClipData.Item
210 public Item(CharSequence text, String htmlText) { in Item() method in ClipData.Item
220 public Item(Intent intent) { in Item() method in ClipData.Item
230 public Item(Uri uri) { in Item() method in ClipData.Item
241 public Item(CharSequence text, Intent intent, Uri uri) { in Item() method in ClipData.Item
254 public Item(CharSequence text, String htmlText, Intent intent, Uri uri) { in Item() method in ClipData.Item
645 public ClipData(CharSequence label, String[] mimeTypes, Item item) { in ClipData()
651 mItems = new ArrayList<Item>(); in ClipData()
[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/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/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_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_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()
222 Item *item = allocateItem(name); \
229 const Item *item = findItem(name, kType##NAME); \
248 Item *item = allocateItem(name); in BASIC_TYPE()
[all …]
/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 {
DResourceValues.h119 struct Item : public Value { struct
123 virtual Item* clone(StringPool* newPool) const override = 0;
136 struct BaseItem : public Item {
274 bool matches(const Item* item, DiagMessage* outMsg) const;
280 std::unique_ptr<Item> value;
298 std::vector<std::unique_ptr<Item>> items;
315 std::array<std::unique_ptr<Item>, Count> values;
/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()
DBluetoothTile.java35 import com.android.systemui.qs.QSDetailItems.Item;
246 ArrayList<Item> items = new ArrayList<Item>(); in updateItems()
251 final Item item = new Item(); in updateItems()
267 mItems.setItems(items.toArray(new Item[items.size()])); in updateItems()
271 public void onDetailItemClick(Item item) { in onDetailItemClick()
281 public void onDetailItemDisconnect(Item item) { in onDetailItemDisconnect()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DBaseLinearLayoutManagerTest.java173 public void assertRectSetsNotEqual(String message, Map<Item, Rect> before, in assertRectSetsNotEqual() argument
174 Map<Item, Rect> after, boolean strictItemEquality) { in assertRectSetsNotEqual()
184 public void assertRectSetsEqual(String message, Map<Item, Rect> before, Map<Item, Rect> after) { in assertRectSetsEqual() argument
188 public void assertRectSetsEqual(String message, Map<Item, Rect> before, Map<Item, Rect> after, in assertRectSetsEqual() argument
193 for (Map.Entry<Item, Rect> entry : before.entrySet()) { in assertRectSetsEqual()
197 for (Map.Entry<Item, Rect> entry : after.entrySet()) { in assertRectSetsEqual()
203 for (Map.Entry<Item, Rect> entry : before.entrySet()) { in assertRectSetsEqual()
204 final Item beforeItem = entry.getKey(); in assertRectSetsEqual()
211 for (Map.Entry<Item, Rect> afterEntry : after.entrySet()) { in assertRectSetsEqual()
212 final Item afterItem = afterEntry.getKey(); in assertRectSetsEqual()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSDetailItems.java57 private Item[] mItems;
126 public void setItems(Item[] items) { in setItems()
140 private void handleSetItems(Item[] items) { in handleSetItems()
175 final Item item = mItems[position]; in getView()
230 handleSetItems((Item[]) msg.obj); in handleMessage()
239 public static class Item { class in QSDetailItems
249 void onDetailItemClick(Item item); in onDetailItemClick()
250 void onDetailItemDisconnect(Item item); in onDetailItemDisconnect()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRootsFragment.java191 Item item = mAdapter.getItem(position);
213 final Item item = mAdapter.getItem(position);
223 private static abstract class Item { class in RootsFragment
226 public Item(int layoutId) { in Item() method in RootsFragment.Item
243 private static class RootItem extends Item {
273 private static class SpacerItem extends Item {
284 private static class AppItem extends Item {
307 private static class RootsAdapter extends ArrayAdapter<Item> {
378 final Item item = getItem(position); in getView()
394 final Item item = getItem(position); in getItemViewType()

123456