Home
last modified time | relevance | path

Searched refs:item2 (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Car/Launcher/docklib/tests/src/com/android/car/docklib/data/
DDockAppItemTest.kt36 val item2: DockAppItem = TestUtils.createAppItem(id = id) in compareAppItems_equal() constant
38 assertThat(item1).isEqualTo(item2) in compareAppItems_equal()
45 val item2: DockAppItem = TestUtils.createAppItem(id = id, app = "2") in compareAppItems_notEqual_differentApps() constant
47 assertThat(item1).isNotEqualTo(item2) in compareAppItems_notEqual_differentApps()
54 val item2: DockAppItem = TestUtils.createAppItem(id = id, name = "2") in compareAppItems_notEqual_differentNames() constant
56 assertThat(item1).isNotEqualTo(item2) in compareAppItems_notEqual_differentNames()
63 val item2: DockAppItem = TestUtils.createAppItem(id = id, type = DockAppItem.Type.STATIC) in compareAppItems_notEqual_differentStates() constant
65 assertThat(item1).isNotEqualTo(item2) in compareAppItems_notEqual_differentStates()
76 val item2: DockAppItem = TestUtils.createAppItem(id = id, icon = icon2) in compareAppItems_notEqual_differentIcons() constant
78 assertThat(item1).isNotEqualTo(item2) in compareAppItems_notEqual_differentIcons()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/
DSelectionTest.java70 final Item item2 = generateFakeImageItem("2"); in testAddSelectedItem_orderedSelection() local
73 mSelection.addSelectedItem(item2); in testAddSelectedItem_orderedSelection()
75 assertThat(mSelection.getSelectedItemOrder(item2).getValue().intValue()).isEqualTo(2); in testAddSelectedItem_orderedSelection()
100 final Item item2 = generateFakeImageItem("2"); in testDeleteSelectedItem_orderedSelection() local
104 mSelection.addSelectedItem(item2); in testDeleteSelectedItem_orderedSelection()
108 assertThat(mSelection.getSelectedItemOrder(item2).getValue().intValue()).isEqualTo(2); in testDeleteSelectedItem_orderedSelection()
113 assertThat(mSelection.getSelectedItemOrder(item2).getValue().intValue()).isEqualTo(1); in testDeleteSelectedItem_orderedSelection()
118 assertThat(mSelection.getSelectedItemOrder(item2).getValue().intValue()).isEqualTo(1); in testDeleteSelectedItem_orderedSelection()
129 final Item item2 = generateFakeImageItem("2"); in testGetSelectedItems_orderedSelection() local
133 mSelection.addSelectedItem(item2); in testGetSelectedItems_orderedSelection()
[all …]
/packages/modules/Bluetooth/system/common/
Dleaky_bonded_queue_unittest.cc51 MockItem* item2 = new MockItem(2); in TEST() local
59 queue->Enqueue(item2); in TEST()
70 ITEM_EQ(item2_2, item2); in TEST()
87 MockItem* item2 = new MockItem(2); in TEST() local
98 queue->Enqueue(item2); in TEST()
102 EXPECT_CALL(*item2, Destruct()).Times(1); in TEST()
121 MockItem* item2 = new MockItem(2); in TEST() local
132 queue->Enqueue(item2); in TEST()
138 ITEM_EQ(item2_2, item2); in TEST()
139 EXPECT_CALL(*item2, Destruct()).Times(1); in TEST()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/
DAppFilterItemTest.java40 final AppFilterItem item2 = new AppFilterItem( in equals_sameContent_true() local
50 assertThat(item).isEqualTo(item2); in equals_sameContent_true()
57 final AppFilterItem item2 = new AppFilterItem( in compare_sameContent_return0() local
63 assertThat(item.compareTo(item2)).isEqualTo(0); in compare_sameContent_return0()
64 assertThat(item2.compareTo(item)).isEqualTo(0); in compare_sameContent_return0()
76 final AppFilterItem item2 = new AppFilterItem( in compare_differentFilter_returnFilterDiff() local
80 assertThat(item.compareTo(item2)).isNotEqualTo(0); in compare_differentFilter_returnFilterDiff()
86 final AppFilterItem item2 = AppFilterRegistry.getInstance().get(FILTER_APPS_ENABLED); in hash_differentItem_differentHash() local
88 assertThat(item.hashCode()).isNotEqualTo(item2.hashCode()); in hash_differentItem_differentHash()
/packages/services/Iwlan/src/com/google/android/iwlan/epdg/
DEpdgSaProposal.java210 protected int compareTransformPriority(Set<Integer> transformGroup, int item1, int item2) { in compareTransformPriority() argument
211 return getIndexOf(transformGroup, item1) - getIndexOf(transformGroup, item2); in compareTransformPriority()
225 Pair<Integer, Integer> item2) { in compareEncryptionTransformPriority() argument
226 return item1.first.equals(item2.first) in compareEncryptionTransformPriority()
227 ? getIndexOf(keyLens, item1.second) - getIndexOf(keyLens, item2.second) in compareEncryptionTransformPriority()
228 : getIndexOf(algos, item1.first) - getIndexOf(algos, item2.first); in compareEncryptionTransformPriority()
235 (item1, item2) -> in getDhGroups()
236 compareTransformPriority(VALID_DH_GROUPS, item1, item2)) in getDhGroups()
252 (item1, item2) -> in getIntegrityAlgos()
253 compareTransformPriority(VALID_INTEGRITY_ALGOS, item1, item2)) in getIntegrityAlgos()
[all …]
DEpdgIkeSaProposal.java44 (item1, item2) -> in getPrfAlgos()
45 compareTransformPriority(VALID_PRF_ALGOS, item1, item2)) in getPrfAlgos()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/model/
DItemTest.java217 final Item item2 = generateJpegItem(id2, dateTaken2, generationModified2); in testCompareTo_differentDateTaken() local
219 assertThat(item1.compareTo(item2)).isEqualTo(-1); in testCompareTo_differentDateTaken()
220 assertThat(item2.compareTo(item1)).isEqualTo(1); in testCompareTo_differentDateTaken()
232 final Item item2 = generateJpegItem(id2, dateTaken, generationModified); in testCompareTo_sameDateTaken() local
234 assertThat(item1.compareTo(item2)).isEqualTo(-1); in testCompareTo_sameDateTaken()
235 assertThat(item2.compareTo(item1)).isEqualTo(1); in testCompareTo_sameDateTaken()
238 assertThat(item2.compareTo(item2)).isEqualTo(0); in testCompareTo_sameDateTaken()
243 assertThat(item2SameValues.compareTo(item2)).isEqualTo(0); in testCompareTo_sameDateTaken()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/timezone/
DBaseTimeZoneInfoPickerTest.java70 BaseTimeZoneAdapter.AdapterItem item2 = adapter.getDataItem(1); in createAdapter_matchTimeZoneInfoAndOrder() local
71 Truth.assertThat(item2.getTitle().toString()).isEqualTo("New York"); in createAdapter_matchTimeZoneInfoAndOrder()
72 Truth.assertThat(item2.getSummary().toString()).isEqualTo("Eastern Time (GMT-05:00)"); in createAdapter_matchTimeZoneInfoAndOrder()
73 Truth.assertThat(item2.getCurrentTime()) in createAdapter_matchTimeZoneInfoAndOrder()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DFinancedDeviceLandingActivity.java98 final ViewGroup item2 = layout.findViewById(R.id.item2); in initializeUi() local
103 setupItem(item2, R.string.financed_restrict_device_subheader_title, in initializeUi()
DProvisioningActivityBridgeImpl.java186 ViewGroup item2 = layout.findViewById(R.id.item2); in setupTransitionAnimationHelper() local
193 header, description, item1, item2, drawable, drawableContainer, space1, in setupTransitionAnimationHelper()
DTransitionAnimationHelper.java313 ViewGroup item2, LottieAnimationView animationView, ViewGroup imageContainer,
318 this.mItem2 = requireNonNull(item2);
/packages/services/Car/packages/CarManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DCarProvisioningActivityBridgeImpl.java154 ViewGroup item2 = activity.findViewById(R.id.item2); in setupTransitionAnimationHelper() local
161 header, description, item1, item2, drawable, drawableContainer, in setupTransitionAnimationHelper()
/packages/services/Car/car_product/distant_display/apps/CarDistantDisplaySystemUI/src/com/android/systemui/car/distantdisplay/common/
DDistantDisplayController.java230 DistantDisplayQcItem item2 = new DistantDisplayQcItem.Builder() in getControls() local
236 items.add(item2); in getControls()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDataManager.java94 public int compare(MediaItem item1, MediaItem item2) { in compare() argument
95 return -Utils.compare(item1.getDateInMs(), item2.getDateInMs()); in compare()
DTimeClustering.java88 public int compare(SmallItem item1, SmallItem item2) { in compare() argument
89 return -Utils.compare(item1.dateInMs, item2.dateInMs); in compare()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
DProvisioningActivityTest.java446 onView(withId(R.id.item2)).check(matches(not(isDisplayed()))); in testInitializeUi_deviceOwnerPermissionGrantOptOut()
469 onView(allOf(withId(R.id.sud_items_title), withParent(withId(R.id.item2)))) in testInitializeUi_deviceOwnerDefault()
472 onView(allOf(withId(R.id.sud_items_summary), withParent(withId(R.id.item2)))) in testInitializeUi_deviceOwnerDefault()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DSelectFromListWizardFragment.java334 public boolean areItemsTheSame(ListItem item1, ListItem item2) { in VerticalListAdapter()
335 return item1.equals(item2); in VerticalListAdapter()
/packages/modules/Bluetooth/system/profile/avrcp/tests/
Davrcp_device_test.cc1050 ListItem item2 = {ListItem::FOLDER, info2, SongInfo()}; in TEST_F() local
1053 std::vector<ListItem> list0 = {item0, item1, item2, item3}; in TEST_F()
1083 ListItem item2 = {ListItem::FOLDER, info2, SongInfo()}; in TEST_F() local
1086 std::vector<ListItem> list1 = {item2, item3, item4}; in TEST_F()
/packages/services/Telephony/tests/src/com/android/phone/
DSimPhonebookProviderTest.java611 Cursor item2 = mResolver.query(SimRecords.getItemUri(1, ElementaryFiles.EF_ADN, 3), in query_itemUri_returnsCorrectRow() argument
622 assertThat(item2).hasSingleRow(1, ElementaryFiles.EF_ADN, 3, "Name@Adn1[3]", in query_itemUri_returnsCorrectRow()