Searched refs:firstItem (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/view/src/android/view/cts/ |
D | MenuItemTest.java | 70 MenuItem firstItem = mMenu.getItem(0); in testAccessIconTint() local 75 assertEquals(Color.WHITE, firstItem.getIconTintList().getDefaultColor()); in testAccessIconTint() 76 assertNull(firstItem.getIconTintMode()); in testAccessIconTint() 85 firstItem.setIconTintList(colors); in testAccessIconTint() 86 firstItem.setIconTintMode(PorterDuff.Mode.XOR); in testAccessIconTint() 89 assertSame(colors, firstItem.getIconTintList()); in testAccessIconTint() 90 assertEquals(PorterDuff.Mode.XOR, firstItem.getIconTintMode()); in testAccessIconTint() 93 mInstrumentation.runOnMainSync(() -> firstItem.setIcon(R.drawable.icon_yellow)); in testAccessIconTint() 95 assertSame(colors, firstItem.getIconTintList()); in testAccessIconTint() 96 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 | 222 RemoteViews firstItem = new RemoteViews(PACKAGE_NAME, R.layout.textview_singleline); in testBuilder_viewTypeCountUnspecified() local 226 .addItem(3 /* id */, firstItem) in testBuilder_viewTypeCountUnspecified() 233 assertSame(firstItem, items.getItemView(0)); in testBuilder_viewTypeCountUnspecified() 243 RemoteViews firstItem = new RemoteViews(PACKAGE_NAME, R.layout.textview_singleline); in testBuilder_viewTypeCountSpecified() local 246 .addItem(3 /* id */, firstItem) in testBuilder_viewTypeCountSpecified() 256 RemoteViews firstItem = new RemoteViews(PACKAGE_NAME, R.layout.textview_singleline); in testBuilder_repeatedIdsAndLayouts() local 261 .addItem(42 /* id */, firstItem) in testBuilder_repeatedIdsAndLayouts() 270 assertSame(firstItem, items.getItemView(0)); in testBuilder_repeatedIdsAndLayouts()
|