/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/ |
D | SortedListTest.java | 39 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 …]
|
D | DiffUtilTest.java | 44 private List<Item> mBefore = new ArrayList<>(); 45 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/ |
D | SortedListActivity.java | 52 new Item("buy milk"), new Item("wash the car"), in onCreate() 53 new Item("wash the dishes")); in onCreate() 64 mAdapter.addItem(new Item(text)); in onCreate() 75 SortedList<Item> mData; 77 public SortedListAdapter(LayoutInflater layoutInflater, Item... items) { in SortedListAdapter() 79 mData = new SortedList<Item>(Item.class, new SortedListAdapterCallback<Item>(this) { in SortedListAdapter() 81 public int compare(Item t0, Item t1) { in SortedListAdapter() 98 public boolean areContentsTheSame(Item oldItem, in SortedListAdapter() 99 Item newItem) { in SortedListAdapter() 104 public boolean areItemsTheSame(Item item1, Item item2) { in SortedListAdapter() [all …]
|
/frameworks/support/paging/common/src/test/java/android/arch/paging/ |
D | TiledPagedListTest.java | 41 private static final ArrayList<Item> ITEMS = new ArrayList<>(); 45 ITEMS.add(new Item(i)); in ITEMS.add() 52 private static class Item { class in TiledPagedListTest 53 private Item(int position) { in Item() method in TiledPagedListTest.Item 68 private static class TestTiledSource extends TiledDataSource<Item> { 75 public List<Item> loadRange(int startPosition, int count) { in loadRange() 81 private void verifyRange(PageArrayList<Item> list, Integer... loadedPages) { in verifyRange() 92 private TiledPagedList<Item> createTiledPagedList(int loadPosition) { in createTiledPagedList() 96 private TiledPagedList<Item> createTiledPagedList(int loadPosition, int prefetchDistance) { in createTiledPagedList() 109 TiledPagedList<Item> pagedList = createTiledPagedList(0); in initialLoad() [all …]
|
D | ContiguousPagedListTest.java | 53 private static final ArrayList<Item> ITEMS = new ArrayList<>(); 57 ITEMS.add(new Item(i)); in ITEMS.add() 62 private static class Item { class in ContiguousPagedListTest 63 private Item(int position) { in Item() method in ContiguousPagedListTest.Item 77 private class TestSource extends PositionalDataSource<Item> { 87 private List<Item> getClampedRange(int startInc, int endExc, boolean reverse) { in getClampedRange() 90 List<Item> list = ITEMS.subList(startInc, endExc); in getClampedRange() 99 public List<Item> loadAfter(int startIndex, int pageSize) { in loadAfter() 105 public List<Item> loadBefore(int startIndex, int pageSize) { in loadBefore() 110 private void verifyRange(int start, int count, NullPaddedList<Item> actual) { in verifyRange() [all …]
|
/frameworks/support/paging/integration-tests/testapp/src/main/java/android/arch/paging/integration/testapp/ |
D | Item.java | 25 class Item { class 31 Item(int id, String text, int bgColor) { in Item() method in Item 42 Item item = (Item) o; in equals() 48 static final DiffCallback<Item> DIFF_CALLBACK = new DiffCallback<Item>() { 50 public boolean areContentsTheSame(@NonNull Item oldItem, @NonNull Item newItem) { 55 public boolean areItemsTheSame(@NonNull Item oldItem, @NonNull Item newItem) {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | Item.java | 28 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/ |
D | OpReorderTest.java | 49 List<Item> mAddedItems = new ArrayList<Item>(); 50 List<Item> mRemovedItems = new ArrayList<Item>(); 81 mAddedItems = new ArrayList<Item>(); in cleanState() 82 mRemovedItems = new ArrayList<Item>(); in cleanState() 84 Item.idCounter = 0; in cleanState() 312 List<Item> items = new ArrayList<Item>(itemCount); in process() 314 items.add(Item.create()); in process() 316 List<Item> clones = new ArrayList<Item>(itemCount); in process() 318 clones.add(Item.clone(items.get(i))); in process() 325 List<Item> originalAdded = mAddedItems; in process() [all …]
|
/frameworks/compile/slang/tests/P_struct_field/ |
D | ScriptField_Outer.java.expect | 34 static public class Item { 36 ScriptField_InnerOne.Item innerOneA; 38 ScriptField_InnerOne.Item innerOneB; 39 ScriptField_InnerTwo.Item[] innerTwo3; 40 ScriptField_InnerTwo.Item[] innerTwo2; 41 ScriptField_InnerOne.Item[] innerOne4; 42 ScriptField_InnerOne.Item innerOneC; 44 Item() { 45 innerOneA = new ScriptField_InnerOne.Item(); 46 innerOneB = new ScriptField_InnerOne.Item(); [all …]
|
D | ScriptField_InnerTwo.java.expect | 34 static public class Item { 37 ScriptField_InnerOne.Item innerOne; 39 Item() { 40 innerOne = new ScriptField_InnerOne.Item(); 45 private Item mItemArray[]; 116 private void copyToArrayLocal(Item i, FieldPacker fp) { 124 private void copyToArray(Item i, int index) { 130 public synchronized void set(Item i, int index, boolean copyNow) { 131 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */]; 142 public synchronized Item get(int index) { [all …]
|
D | ScriptField_InnerOne.java.expect | 34 static public class Item { 40 Item() { 45 private Item mItemArray[]; 115 private void copyToArrayLocal(Item i, FieldPacker fp) { 121 private void copyToArray(Item i, int index) { 127 public synchronized void set(Item i, int index, boolean copyNow) { 128 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */]; 139 public synchronized Item get(int index) { 146 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */]; 147 if (mItemArray[index] == null) mItemArray[index] = new Item(); [all …]
|
/frameworks/base/core/java/android/content/ |
D | ClipData.java | 173 final ArrayList<Item> mItems; 194 public static class Item { class in ClipData 201 public Item(Item other) { in Item() method in ClipData.Item 211 public Item(CharSequence text) { in Item() method in ClipData.Item 224 public Item(CharSequence text, String htmlText) { in Item() method in ClipData.Item 234 public Item(Intent intent) { in Item() method in ClipData.Item 244 public Item(Uri uri) { in Item() method in ClipData.Item 255 public Item(CharSequence text, Intent intent, Uri uri) { in Item() method in ClipData.Item 268 public Item(CharSequence text, String htmlText, Intent intent, Uri uri) { in Item() method in ClipData.Item 677 public ClipData(CharSequence label, String[] mimeTypes, Item item) { in ClipData() [all …]
|
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
D | BrowseAnimationFragment.java | 41 static class Item { class in BrowseAnimationFragment 45 Item(String text, OnItemViewClickedListener action) { in Item() method in BrowseAnimationFragment.Item 88 Item createRandomItem() { in createRandomItem() 92 return new Item("Remove Item before", new OnItemViewClickedListener() { in createRandomItem() 107 return new Item("Remove Item after", new OnItemViewClickedListener() { in createRandomItem() 122 return new Item("Remove Item", new OnItemViewClickedListener() { in createRandomItem() 135 return new Item("Remove all Items", new OnItemViewClickedListener() { in createRandomItem() 145 return new Item("add item before", new OnItemViewClickedListener() { in createRandomItem() 158 return new Item("add item after", new OnItemViewClickedListener() { in createRandomItem() 171 return new Item("add random items before", in createRandomItem() [all …]
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | ItemTest.java | 41 import com.android.setupwizardlib.items.Item; 70 Item item = new Item(); in testOnBindView() 94 Item item = new Item(); in testSingleLineItem() 107 Item item = new Item(); in testProperties() 139 Item item = new Item(); in testDefaultValues() 153 Item item = new Item(); in testHierarchyImplementation() 165 Item item = new Item(); in testVisible()
|
D | ItemInflaterTest.java | 26 import com.android.setupwizardlib.items.Item; 52 Item child0 = (Item) itemGroup.getItemAt(0); in testInflate() 53 Item child1 = (Item) itemGroup.getItemAt(1); in testInflate()
|
/frameworks/compile/slang/tests/P_reflection3264_divergent_support/ |
D | ScriptField_DivergentNest.java.expect | 31 static public class Item { 34 ScriptField_Divergent.Item d; 37 Item() { 38 d = new ScriptField_Divergent.Item(); 43 private Item mItemArray[]; 121 private void copyToArrayLocal(Item i, FieldPacker fp) { 133 private void copyToArray(Item i, int index) { 139 public synchronized void set(Item i, int index, boolean copyNow) { 140 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */]; 151 public synchronized Item get(int index) { [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | UT_struct_field.java | 32 private ScriptField_InnerOne.Item makeInnerOne() { in makeInnerOne() 33 ScriptField_InnerOne.Item innerOne = new ScriptField_InnerOne.Item(); in makeInnerOne() 40 private ScriptField_InnerTwo.Item makeInnerTwo() { in makeInnerTwo() 41 ScriptField_InnerTwo.Item innerTwo = new ScriptField_InnerTwo.Item(); in makeInnerTwo() 51 ScriptField_Outer.Item outer = new ScriptField_Outer.Item(); in run()
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | UT_struct_field.java | 34 private ScriptField_InnerOne.Item makeInnerOne() { in makeInnerOne() 35 ScriptField_InnerOne.Item innerOne = new ScriptField_InnerOne.Item(); in makeInnerOne() 42 private ScriptField_InnerTwo.Item makeInnerTwo() { in makeInnerTwo() 43 ScriptField_InnerTwo.Item innerTwo = new ScriptField_InnerTwo.Item(); in makeInnerTwo() 53 ScriptField_Outer.Item outer = new ScriptField_Outer.Item(); in run()
|
/frameworks/compile/slang/tests/P_reflection3264_divergent/ |
D | ScriptField_DivergentNest.java.expect | 34 static public class Item { 37 ScriptField_Divergent.Item d; 40 Item() { 41 d = new ScriptField_Divergent.Item(); 46 private Item mItemArray[]; 124 private void copyToArrayLocal(Item i, FieldPacker fp) { 136 private void copyToArray(Item i, int index) { 142 public synchronized void set(Item i, int index, boolean copyNow) { 143 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */]; 154 public synchronized Item get(int index) { [all …]
|
D | ScriptField_NonDivergent.java.expect | 34 static public class Item { 39 Item() { 44 private Item mItemArray[]; 113 private void copyToArrayLocal(Item i, FieldPacker fp) { 118 private void copyToArray(Item i, int index) { 124 public synchronized void set(Item i, int index, boolean copyNow) { 125 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */]; 136 public synchronized Item get(int index) { 143 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */]; 144 if (mItemArray[index] == null) mItemArray[index] = new Item(); [all …]
|
/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/ |
D | TabLayoutUsage.java | 160 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
|
D | TabLayoutPreselectedUsage.java | 141 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
|
/frameworks/compile/slang/tests/P_reduce_general_input/ |
D | ScriptField_MyStruct.java.expect | 34 static public class Item { 39 Item() { 44 private Item mItemArray[]; 114 private void copyToArrayLocal(Item i, FieldPacker fp) { 120 private void copyToArray(Item i, int index) { 126 public synchronized void set(Item i, int index, boolean copyNow) { 127 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */]; 138 public synchronized Item get(int index) { 145 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */]; 146 if (mItemArray[index] == null) mItemArray[index] = new Item(); [all …]
|
/frameworks/compile/slang/tests/P_reduce_general_inputs/ |
D | ScriptField_MyStruct.java.expect | 34 static public class Item { 39 Item() { 44 private Item mItemArray[]; 114 private void copyToArrayLocal(Item i, FieldPacker fp) { 120 private void copyToArray(Item i, int index) { 126 public synchronized void set(Item i, int index, boolean copyNow) { 127 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */]; 138 public synchronized Item get(int index) { 145 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */]; 146 if (mItemArray[index] == null) mItemArray[index] = new Item(); [all …]
|
/frameworks/compile/slang/tests/P_reduce_general_result/ |
D | ScriptField_MyStruct.java.expect | 34 static public class Item { 39 Item() { 44 private Item mItemArray[]; 114 private void copyToArrayLocal(Item i, FieldPacker fp) { 120 private void copyToArray(Item i, int index) { 126 public synchronized void set(Item i, int index, boolean copyNow) { 127 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */]; 138 public synchronized Item get(int index) { 145 if (mItemArray == null) mItemArray = new Item[getType().getX() /* count */]; 146 if (mItemArray[index] == null) mItemArray[index] = new Item(); [all …]
|