Home
last modified time | relevance | path

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

123456

/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
DBluetoothMapUtilsTest.java67 0 == value.compareTo(expected)); in testXBtUid()
78 0 == value.compareTo(expected)); in testXBtUid()
87 0 == value.compareTo(expected)); in testXBtUid()
96 0 == value.compareTo(expected)); in testXBtUid()
105 0 == value.compareTo(expected)); in testXBtUid()
/packages/apps/Settings/src/com/android/settings/vpn2/
DAppPreference.java99 public int compareTo(Preference preference) { in compareTo() method in AppPreference
105 (result = mPackageName.compareTo(another.mPackageName)) == 0) { in compareTo()
112 return -another.compareTo(this); in compareTo()
114 return super.compareTo(preference); in compareTo()
DLegacyVpnPreference.java55 public int compareTo(Preference preference) { in compareTo() method in LegacyVpnPreference
62 result = mProfile.key.compareTo(another.mProfile.key); in compareTo()
74 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/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/TV/tests/common/src/com/android/tv/testing/
DComparableTester.java87 + " is <0", true, leftItem.compareTo(rightItem) < 0); in assertLess()
102 + " is >0", true, leftItem.compareTo(rightItem) > 0); in assertMore()
111 Assert.assertEquals(lhs + " compareTo " + rhs, 0, lhs.compareTo(rhs)); in assertZero()
/packages/apps/ExactCalculator/tests/src/com/android/calculator2/
DBRTest.java36 check(x.CRValue().compareTo(y, TEST_PREC) == 0, s); in checkEq()
95 if (x.compareTo(BoundedRational.THIRTY) <= 0 in checkBR()
96 && x.compareTo(BoundedRational.MINUS_THIRTY) >= 0) { in checkBR()
102 if (x.compareTo(BoundedRational.ONE) <= 0 in checkBR()
103 && x.compareTo(BoundedRational.MINUS_ONE) >= 0) { in checkBR()
/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/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/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DScanResultComparator.java70 return security1.compareTo(security2); in compare()
72 return result1.SSID.compareTo(result2.SSID); in compare()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/
DPermissionGroup.java52 public int compareTo(PermissionGroup another) { in compareTo() method in PermissionGroup
53 return mLabel.toString().compareTo(another.mLabel.toString()); in compareTo()
DPermissionApps.java367 public int compareTo(PermissionApp another) { in compareTo() method in PermissionApps.PermissionApp
368 final int result = mLabel.compareTo(another.mLabel); in compareTo()
371 return getKey().compareTo(another.getKey()); in compareTo()
/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/ExactCalculator/src/com/android/calculator2/
DBoundedRational.java154 public int compareTo(BoundedRational r) { in compareTo() method in BoundedRational
157 return mNum.multiply(r.mDen).compareTo(r.mNum.multiply(mDen)) * mDen.signum() in compareTo()
166 return compareTo(r) == 0; in equals()
310 if (r.mNum.abs().compareTo(r.mDen.abs()) > 0) { in checkAsinDomain()
406 if (r_BI.abs().compareTo(BigInteger.ONE) > 0) { in degreeAtan()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DInputMethodSubtypePreference.java60 int compareTo(final Preference rhs, final Collator collator) { in compareTo() method in InputMethodSubtypePreference
91 return super.compareTo(rhs); in compareTo()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactListFilter.java110 public int compareTo(ContactListFilter another) { in compareTo() method in ContactListFilter
111 int res = accountName.compareTo(another.accountName); in compareTo()
116 res = accountType.compareTo(another.accountType); in compareTo()
/packages/apps/TV/src/com/android/tv/data/
DChannelNumber.java65 public int compareTo(@NonNull ChannelNumber another) { in compareTo() method in ChannelNumber
128 return lhsNumber.compareTo(rhsNumber); in compare()
/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()
/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/TvSettings/Settings/src/com/android/tv/settings/system/
DTimeZoneFragment.java135 final int firstResult = zone1.offset.compareTo(zone2.offset); in compare()
139 return zone1.getTitle().toString().compareTo(zone2.getTitle().toString()); in compare()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DInCallContactInteractions.java164 if (hours.first.compareTo(currentTime) <= 0 in constructHoursInfo()
165 && currentTime.compareTo(hours.second) < 0) { in constructHoursInfo()
175 if (currentTime.compareTo(hours.second) > 0) { in constructHoursInfo()
/packages/apps/Settings/src/com/android/settings/datausage/
DCycleAdapter.java55 if (item.compareTo(target) >= 0) { in findNearestPosition()
183 public int compareTo(CycleItem another) { in compareTo() method in CycleAdapter.CycleItem
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DWordProperty.java153 public int compareTo(final WordProperty w) { in compareTo() method in WordProperty
156 return mWord.compareTo(w.mWord); in compareTo()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DAlbumDataAdapter.java137 return a.account.compareTo(b.account); in compare()
164 return a.title.compareTo(b.title); in compare()
/packages/apps/Settings/src/com/android/settings/
DTrustAgentSettings.java67 public int compareTo(AgentInfo other) { in compareTo() method in TrustAgentSettings.AgentInfo
68 return component.compareTo(other.component); in compareTo()

123456