Searched refs:firstItem (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/view/src/android/view/cts/ |
D | MenuItemTest.java | 81 MenuItem firstItem = mMenu.getItem(0); in testAccessIconTint() local 86 assertEquals(Color.WHITE, firstItem.getIconTintList().getDefaultColor()); in testAccessIconTint() 87 assertNull(firstItem.getIconTintMode()); in testAccessIconTint() 96 firstItem.setIconTintList(colors); in testAccessIconTint() 97 firstItem.setIconTintMode(PorterDuff.Mode.XOR); in testAccessIconTint() 100 assertSame(colors, firstItem.getIconTintList()); in testAccessIconTint() 101 assertEquals(PorterDuff.Mode.XOR, firstItem.getIconTintMode()); in testAccessIconTint() 104 mInstrumentation.runOnMainSync(() -> firstItem.setIcon(R.drawable.icon_yellow)); in testAccessIconTint() 106 assertSame(colors, firstItem.getIconTintList()); in testAccessIconTint() 107 assertEquals(PorterDuff.Mode.XOR, firstItem.getIconTintMode()); in testAccessIconTint() [all …]
|
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/ |
D | DataFormatter.java | 165 Object firstItem = list.get(0); in addArg() local 166 if (firstItem instanceof String) { in addArg() 168 } else if (firstItem instanceof Parcelable) { in addArg() 170 } else if (firstItem instanceof byte[]) { in addArg() 174 + ": " + firstItem); in addArg() 225 Object firstItem = set.iterator().next(); in addArg() local 226 if (firstItem instanceof String) { in addArg() 230 + index + ": " + firstItem); in addArg()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | RemoteViewsFixedCollectionAdapterTest.java | 231 RemoteViews firstItem = new RemoteViews(PACKAGE_NAME, R.layout.textview_singleline); in testBuilder_viewTypeCountUnspecified() local 235 .addItem(3 /* id */, firstItem) in testBuilder_viewTypeCountUnspecified() 242 assertSame(firstItem, items.getItemView(0)); in testBuilder_viewTypeCountUnspecified() 252 RemoteViews firstItem = new RemoteViews(PACKAGE_NAME, R.layout.textview_singleline); in testBuilder_viewTypeCountSpecified() local 255 .addItem(3 /* id */, firstItem) in testBuilder_viewTypeCountSpecified() 265 RemoteViews firstItem = new RemoteViews(PACKAGE_NAME, R.layout.textview_singleline); in testBuilder_repeatedIdsAndLayouts() local 270 .addItem(42 /* id */, firstItem) in testBuilder_repeatedIdsAndLayouts() 279 assertSame(firstItem, items.getItemView(0)); in testBuilder_repeatedIdsAndLayouts()
|