Home
last modified time | relevance | path

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

123456

/packages/apps/ExactCalculator/src/com/android/calculator2/
DUnifiedReal.java386 if (CR.valueOf(intScaled).compareTo(scaled.abs()) > 0) { in toStringTruncated()
389 check(CR.valueOf(intScaled).compareTo(scaled.abs()) < 0); in toStringTruncated()
446 || crValue().compareTo(u.crValue(), DEFAULT_COMPARE_TOLERANCE) != 0;
454 public int compareTo(UnifiedReal u) {
458 return signum * mRatFactor.compareTo(u.mRatFactor);
460 return crValue().compareTo(u.crValue()); // Can also diverge.
467 public int compareTo(UnifiedReal u, int a) {
469 return compareTo(u);
471 return crValue().compareTo(u.crValue(), a);
479 return compareTo(ZERO, a);
[all …]
DBoundedRational.java190 public int compareTo(BoundedRational r) { in compareTo() method in BoundedRational
193 return mNum.multiply(r.mDen).compareTo(r.mNum.multiply(mDen)) * mDen.signum() in compareTo()
202 return compareTo(r) == 0; in equals()
/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/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/Settings/src/com/android/settings/bluetooth/
DBluetoothDevicePreference.java180 public int compareTo(Preference another) { in compareTo() method in BluetoothDevicePreference
183 return super.compareTo(another); in compareTo()
187 .compareTo(((BluetoothDevicePreference) another).mCachedDevice); 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/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/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/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/PackageInstaller/src/com/android/packageinstaller/permission/model/
DPermissionApps.java386 public int compareTo(PermissionApp another) { in compareTo() method in PermissionApps.PermissionApp
387 final int result = mLabel.compareTo(another.mLabel); in compareTo()
390 return getKey().compareTo(another.getKey()); in compareTo()
DPermissionGroup.java70 public int compareTo(PermissionGroup another) { in compareTo() method in PermissionGroup
71 return mLabel.toString().compareTo(another.mLabel.toString()); 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/Contacts/src/com/android/contacts/list/
DContactListFilter.java177 public int compareTo(ContactListFilter another) { in compareTo() method in ContactListFilter
178 int res = accountName.compareTo(another.accountName); in compareTo()
183 res = accountType.compareTo(another.accountType); in compareTo()
/packages/services/Telecomm/src/com/android/server/telecom/
DTelephonyUtil.java105 retval = pkg1.compareTo(pkg2); in sortSimPhoneAccounts()
112 retval = label1.compareTo(label2); in sortSimPhoneAccounts()
/packages/apps/TV/src/com/android/tv/tuner/tvinput/
DTunerRecordingSessionWorker.java160 if (mChannel == null || mChannel.compareTo(channel) != 0) { in onChannelDetected()
168 if (mChannel == null || mChannel.compareTo(channel) != 0) { in onEventDetected()
426 if (mChannel == null || channel == null || mChannel.compareTo(channel) != 0 in updateCaptionTracks()
432 || mCurrenProgram != null && mCurrenProgram.compareTo(currentProgram) == 0) { in updateCaptionTracks()
/packages/apps/TV/src/com/android/tv/data/
DChannelNumber.java66 public int compareTo(@NonNull ChannelNumber another) { in compareTo() method in ChannelNumber
153 return lhsNumber.compareTo(rhsNumber); in compare()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DDownloadsFilePreferenceTest.java92 assertThat(preference.compareTo(otherPreference)).isGreaterThan(0); in compareTo_biggerFileSortsAhead()
106 assertThat(preference.compareTo(otherPreference)).isLessThan(0); in compareTo_fallbackToFileName()
/packages/apps/Car/Dialer/src/com/android/car/dialer/
DContactEntry.java86 public int compareTo(ContactEntry strequentContactEntry) { in compareTo() method in ContactEntry
146 return one.compareTo(two); in compare()
/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()

123456