Home
last modified time | relevance | path

Searched refs:compareTo (Results 1 – 25 of 190) sorted by relevance

12345678

/packages/apps/Car/libs/car-telephony-common/tests/robotests/src/com/android/car/telephony/common/
DContactTest.java104 int compareResult = mNullName.compareTo(mNullName); in compareTo_TwoNullStrings_Equal()
110 int compareResult = mEmptyName.compareTo(mEmptyName); in compareTo_TwoEmptyStrings_Equal()
116 int compareResult = mLetterName1.compareTo(mLetterName2); in compareTo_TwoLetterStrings_Larger()
122 int compareResult = mDigitName1.compareTo(mDigitName2); in compareTo_TwoDigitStrings_Smaller()
128 int compareResult = mLetterName1.compareTo(mDigitName1); in compareTo_LetterAndDigitStrings_Smaller()
134 int compareResult = mLetterName1.compareTo(mSpecCharName); in compareTo_LetterAndSpecialCharStrings_Smaller()
140 int compareResult = mLetterName1.compareTo(mEmptyName); in compareTo_LetterAndEmptyStrings_Smaller()
146 int compareResult = mLetterName1.compareTo(mNullName); in compareTo_LetterAndNullStrings_Smaller()
152 int compareResult = mDigitName1.compareTo(mSpecCharName); in compareTo_DigitAndSpecialCharStrings_Smaller()
158 int compareResult = mDigitName1.compareTo(mEmptyName); in compareTo_DigitAndEmptyStrings_Smaller()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/
DAppFilterItemTest.java61 assertThat(item.compareTo(item)).isEqualTo(0); in compare_sameContent_return0()
62 assertThat(item.compareTo(item2)).isEqualTo(0); in compare_sameContent_return0()
63 assertThat(item2.compareTo(item)).isEqualTo(0); in compare_sameContent_return0()
69 assertThat(item.compareTo(null)).isEqualTo(1); in compare_toNull_return1()
79 assertThat(item.compareTo(item2)).isNotEqualTo(0); in compare_differentFilter_returnFilterDiff()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothDevicePreferenceTest.java202 when(mCachedDevice.compareTo(otherDevice)).thenReturn(1); in compareTo_sameType_usesDeviceCompareTo()
203 when(otherDevice.compareTo(mCachedDevice)).thenReturn(-1); in compareTo_sameType_usesDeviceCompareTo()
205 assertThat(mPreference.compareTo(otherPreference)).isEqualTo(1); in compareTo_sameType_usesDeviceCompareTo()
206 assertThat(otherPreference.compareTo(mPreference)).isEqualTo(-1); in compareTo_sameType_usesDeviceCompareTo()
215 assertThat(mPreference.compareTo(otherPreference)).isEqualTo(-1); in compareTo_differentType_fallsBackToDefaultCompare()
216 verify(mCachedDevice, never()).compareTo(any()); in compareTo_differentType_fallsBackToDefaultCompare()
/packages/apps/Settings/src/com/android/settings/vpn2/
DAppPreference.java100 public int compareTo(Preference preference) { in compareTo() method in AppPreference
106 (result = mPackageName.compareTo(another.mPackageName)) == 0) { in compareTo()
113 return -another.compareTo(this); in compareTo()
115 return super.compareTo(preference); in compareTo()
DLegacyVpnPreference.java58 public int compareTo(Preference preference) { in compareTo() method in LegacyVpnPreference
65 result = mProfile.key.compareTo(another.mProfile.key); in compareTo()
77 return super.compareTo(preference); in compareTo()
DAppVpnInfo.java23 public int compareTo(Object other) { in compareTo() method in AppVpnInfo
26 int result = packageName.compareTo(that.packageName); in compareTo()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/
DAppPreference.java100 public int compareTo(Preference preference) { in compareTo() method in AppPreference
106 (result = mPackageName.compareTo(another.mPackageName)) == 0) { in compareTo()
113 return -another.compareTo(this); in compareTo()
115 return super.compareTo(preference); in compareTo()
DLegacyVpnPreference.java58 public int compareTo(Preference preference) { in compareTo() method in LegacyVpnPreference
65 result = mProfile.key.compareTo(another.mProfile.key); in compareTo()
77 return super.compareTo(preference); in compareTo()
DAppVpnInfo.java23 public int compareTo(Object other) { in compareTo() method in AppVpnInfo
26 int result = packageName.compareTo(that.packageName); in compareTo()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUxRestrictionsConfigurationTest.java288 assertTrue(s1.compareTo(s2) < 0); in testSpeedRangeComparison_DifferentMin()
289 assertTrue(s2.compareTo(s1) > 0); in testSpeedRangeComparison_DifferentMin()
297 assertTrue(s1.compareTo(s2) == 0); in testSpeedRangeComparison_SameMin()
305 assertTrue(s1.compareTo(s2) < 0); in testSpeedRangeComparison_SameMinDifferentMax()
306 assertTrue(s2.compareTo(s1) > 0); in testSpeedRangeComparison_SameMinDifferentMax()
314 assertTrue(s1.compareTo(s2) < 0); in testSpeedRangeComparison_MaxSpeed()
315 assertTrue(s2.compareTo(s1) > 0); in testSpeedRangeComparison_MaxSpeed()
326 assertTrue(s1.compareTo(s2) == 0); in testSpeedRangeEquals()
/packages/apps/Camera2/src/com/android/camera/data/
DNewestFirstComparator.java64 cmp = d1Data.getTitle().compareTo(d2Data.getTitle()); in compare()
74 return v1.compareTo(v2) * -1; in compareDate()
86 return mNow.compareTo(date) < 0; in isFuture()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothDevicePreference.java109 public int compareTo(@NonNull Preference another) { in compareTo() method in BluetoothDevicePreference
112 return super.compareTo(another); in compareTo()
116 .compareTo(((BluetoothDevicePreference) another).mCachedDevice); in compareTo()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DComparableTester.java91 leftItem.compareTo(rightItem) < 0); in assertLess()
114 leftItem.compareTo(rightItem) > 0); in assertMore()
123 Assert.assertEquals(lhs + " compareTo " + rhs, 0, lhs.compareTo(rhs)); in assertZero()
/packages/apps/Contacts/src/com/android/contacts/editor/
DRawContactDeltaComparator.java84 value = type1.accountType.compareTo(type2.accountType); in compare()
99 value = type1.dataSet.compareTo(type2.dataSet); in compare()
115 value = oneAccount.compareTo(twoAccount); in compare()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothDevicePreference.java194 public int compareTo(Preference another) { in compareTo() method in BluetoothDevicePreference
197 return super.compareTo(another); in compareTo()
201 .compareTo(((BluetoothDevicePreference) another).mCachedDevice); in compareTo()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDevicePreference.java197 public int compareTo(Preference another) { in compareTo() method in BluetoothDevicePreference
200 return super.compareTo(another); in compareTo()
204 .compareTo(((BluetoothDevicePreference) another).mCachedDevice); in compareTo()
/packages/apps/Settings/src/com/android/settings/security/trustagent/
DTrustAgentInfo.java54 public int compareTo(TrustAgentInfo other) { in compareTo() method in TrustAgentInfo
55 return mComponentName.compareTo(other.getComponentName()); in compareTo()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/property/
DPropertyInfo.java52 public int compareTo(PropertyInfo propertyInfo) { in compareTo() method in PropertyInfo
53 return mName.compareTo(propertyInfo.mName); in compareTo()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DContactListFilter.java191 public int compareTo(ContactListFilter another) { in compareTo() method in ContactListFilter
192 int res = accountName.compareTo(another.accountName); in compareTo()
197 res = accountType.compareTo(another.accountType); in compareTo()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DDateBucket.java60 public int compareTo(DateBucket another) { in compareTo() method in DateBucket
61 return this.date.compareTo(another.date); in compareTo()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DDownloadsFilePreference.java55 public int compareTo(Preference other) { in compareTo() method in DownloadsFilePreference
67 comparison = file.compareTo(otherFile); in compareTo()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAppInfoComparator.java52 result = a.componentName.compareTo(b.componentName); in compare()
62 return aUserSerial.compareTo(bUserSerial); in compare()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DFace.java62 public int compareTo(Face another) { in compareTo() method in Face
63 return mName.compareTo(another.mName); in compareTo()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/
DPermissionGroup.java86 public int compareTo(PermissionGroup another) { in compareTo() method in PermissionGroup
87 return mLabel.toString().compareTo(another.mLabel.toString()); in compareTo()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DFolderSelectorAdapter.java79 public int compareTo(FolderRow another) { in compareTo() method in FolderSelectorAdapter.FolderRow
173 public int compareTo(TreeNode o) { in compareTo() method in FolderSelectorAdapter.TreeNode
176 return mWrappedObject.compareTo(o.mWrappedObject); in compareTo()

12345678