/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/ |
D | ComparableUtils.java | 44 final ToIntBiFunction<T, T> compareTo, final Function<T, String> name) { in assertAscendingOrdering() argument 49 compareTo.applyAsInt(x, y) < 0); in assertAscendingOrdering() 62 final ToIntBiFunction<T, T> compareTo, final Function<T, String> name) { 66 compareTo.applyAsInt(x, y) == 0); 87 final ToIntBiFunction<T, T> compareTo, final Function<T, String> name) { 91 compareTo.applyAsInt(x, x) == 0); 95 Integer.signum(compareTo.applyAsInt(x, y)), 96 -Integer.signum(compareTo.applyAsInt(y, x))); 99 if (compareTo.applyAsInt(x, y) > 0 && compareTo.applyAsInt(y, z) > 0) { 103 compareTo.applyAsInt(x, z) > 0); [all …]
|
D | InputMethodPreferenceTest.java | 58 (x, y) -> x.compareTo(y, COLLATOR), in testComparableOrdering() 70 (x, y) -> x.compareTo(y, COLLATOR), in testComparableEquality() 79 (x, y) -> x.compareTo(y, COLLATOR), in testComparableEquality() 103 (x, y) -> x.compareTo(y, COLLATOR), in testComparableContracts()
|
D | InputMethodSubtypePreferenceTest.java | 68 (x, y) -> x.compareTo(y, COLLATOR), in testComparableOrdering() 76 (x, y) -> x.compareTo(y, COLLATOR), in testComparableEquality() 94 (x, y) -> x.compareTo(y, COLLATOR), in testComparableContracts()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/ |
D | EuiccSpecVersionTest.java | 50 assertEquals(0, ver1.compareTo(ver2)); in testCompareTo() 51 assertEquals(0, ver2.compareTo(ver1)); in testCompareTo() 58 assertEquals(-1, ver1.compareTo(ver2)); in testCompareTo() 59 assertEquals(1, ver2.compareTo(ver1)); in testCompareTo() 64 assertEquals(-1, ver1.compareTo(ver2)); in testCompareTo() 65 assertEquals(1, ver2.compareTo(ver1)); in testCompareTo() 70 assertEquals(-1, ver1.compareTo(ver2)); in testCompareTo() 71 assertEquals(1, ver2.compareTo(ver1)); in testCompareTo() 76 assertEquals(-1, ver1.compareTo(ver2)); in testCompareTo() 77 assertEquals(1, ver2.compareTo(ver1)); in testCompareTo() [all …]
|
/frameworks/base/core/java/android/util/ |
D | Range.java | 59 if (lower.compareTo(upper) > 0) { in Range() 115 boolean gteLower = value.compareTo(mLower) >= 0; in contains() 116 boolean lteUpper = value.compareTo(mUpper) <= 0; in contains() 135 boolean gteLower = range.mLower.compareTo(mLower) >= 0; in contains() 136 boolean lteUpper = range.mUpper.compareTo(mUpper) <= 0; in contains() 177 if (value.compareTo(mLower) < 0) { in clamp() 179 } else if (value.compareTo(mUpper) > 0) { in clamp() 208 int cmpLower = range.mLower.compareTo(mLower); in intersect() 209 int cmpUpper = range.mUpper.compareTo(mUpper); in intersect() 241 int cmpLower = lower.compareTo(mLower); in intersect() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowConfigurationTests.java | 134 assertEquals(0, config1.compareTo(config2)); in testConfigurationCompareTo() 135 assertEquals(0, winConfig1.compareTo(winConfig2)); in testConfigurationCompareTo() 139 assertNotEquals(0, config1.compareTo(config2)); in testConfigurationCompareTo() 140 assertNotEquals(0, winConfig1.compareTo(winConfig2)); in testConfigurationCompareTo() 145 assertNotEquals(0, config1.compareTo(config2)); in testConfigurationCompareTo() 146 assertNotEquals(0, winConfig1.compareTo(winConfig2)); in testConfigurationCompareTo() 151 assertNotEquals(0, config1.compareTo(config2)); in testConfigurationCompareTo() 152 assertNotEquals(0, winConfig1.compareTo(winConfig2)); in testConfigurationCompareTo() 156 assertEquals(-1, config1.compareTo(blankConfig)); in testConfigurationCompareTo() 157 assertEquals(-1, winConfig1.compareTo(blankWinConfig)); in testConfigurationCompareTo() [all …]
|
/frameworks/libs/net/common/tests/unit/src/com/android/testutils/ |
D | DeviceInfoUtilsTest.java | 86 assertEquals(0, v1.compareTo(v2)); in testVersion() 87 assertEquals(-1, v1.compareTo(v3)); in testVersion() 88 assertEquals(1, v3.compareTo(v1)); in testVersion() 89 assertEquals(-1, v1.compareTo(v4)); in testVersion() 90 assertEquals(1, v4.compareTo(v1)); in testVersion() 91 assertEquals(-1, v1.compareTo(v5)); in testVersion() 92 assertEquals(1, v5.compareTo(v1)); in testVersion()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | HalVersion.java | 41 public int compareTo(HalVersion ver) { in compareTo() method in HalVersion 64 return ((o instanceof HalVersion) && (o == this || compareTo((HalVersion) o) == 0)); in equals() 71 return compareTo(ver) > 0; in greater() 78 return compareTo(ver) < 0; in less()
|
/frameworks/base/sax/java/android/sax/ |
D | Children.java | 45 && current.uri.compareTo(uri) == 0 in getOrCreate() 46 && current.localName.compareTo(localName) == 0) { in getOrCreate() 75 && current.uri.compareTo(uri) == 0 in get() 76 && current.localName.compareTo(localName) == 0) { in get()
|
/frameworks/libs/net/common/framework/com/android/net/module/util/ |
D | IpRange.java | 58 if (addrToBigInteger(startAddr.getAddress()).compareTo( in IpRange() 185 return addrToBigInteger(mStartAddr).compareTo(addrToBigInteger(other.mStartAddr)) <= 0 in containsRange() 186 && addrToBigInteger(mEndAddr).compareTo(addrToBigInteger(other.mEndAddr)) >= 0; in containsRange() 197 return addrToBigInteger(mStartAddr).compareTo(addrToBigInteger(other.mEndAddr)) <= 0 in overlapsRange() 198 && addrToBigInteger(other.mStartAddr).compareTo(addrToBigInteger(mEndAddr)) <= 0; in overlapsRange()
|
/frameworks/base/telephony/java/android/telephony/emergency/ |
D | EmergencyNumber.java | 561 public int compareTo(@NonNull EmergencyNumber emergencyNumber) { in compareTo() method in EmergencyNumber 568 } else if (this.getNumber().compareTo(emergencyNumber.getNumber()) != 0) { in compareTo() 569 return this.getNumber().compareTo(emergencyNumber.getNumber()); in compareTo() 570 } else if (this.getCountryIso().compareTo(emergencyNumber.getCountryIso()) != 0) { in compareTo() 571 return this.getCountryIso().compareTo(emergencyNumber.getCountryIso()); in compareTo() 572 } else if (this.getMnc().compareTo(emergencyNumber.getMnc()) != 0) { in compareTo() 573 return this.getMnc().compareTo(emergencyNumber.getMnc()); in compareTo() 578 } else if (this.getEmergencyUrns().toString().compareTo( in compareTo() 580 return this.getEmergencyUrns().toString().compareTo( in compareTo()
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | VariationalKMeansQuantizer.java | 96 KMeans.Mean compareTo = optimalMeans.get(j); in quantize() local 97 float[] compareToCentroid = compareTo.getCentroid(); in quantize() 101 optimalMeans.remove(compareTo); in quantize() 102 current.getItems().addAll(compareTo.getItems()); in quantize()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ApexSystemServiceInfo.java | 51 public int compareTo(ApexSystemServiceInfo other) { in compareTo() method in ApexSystemServiceInfo 53 return mName.compareTo(other.mName); in compareTo()
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunk/ |
D | ChunkHashTest.java | 76 int result = chunkHash.compareTo(equalChunkHash); in testCompareTo_whenEqual_returnsZero() 86 int result = chunkHash1.compareTo(chunkHash2); in testCompareTo_whenArgumentGreater_returnsNegative() 96 int result = chunkHash2.compareTo(chunkHash1); in testCompareTo_whenArgumentSmaller_returnsPositive()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/people/ |
D | PeopleNotificationIdentifier.kt | 46 fun compareTo( in getPeopleNotificationType() method 83 override fun compareTo( in compareTo() method in com.android.systemui.statusbar.notification.people.PeopleNotificationIdentifierImpl 88 return b.compareTo(a) in compareTo()
|
/frameworks/layoutlib/bridge/tests/src/com/android/ide/common/resources/deprecated/ |
D | ResourceItem.java | 59 public int compareTo(com.android.ide.common.resources.deprecated.ResourceItem other) { in compareTo() method in ResourceItem 60 return mName.compareTo(other.mName); in compareTo()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | CameraErrorCollector.java | 239 msg, expected, actual), actual.compareTo(expected) > 0); in expectGreater() 253 msg, expected, actual), actual.compareTo(expected) >= 0); in expectGreaterOrEqual() 267 msg, expected, actual), actual.compareTo(expected) < 0); in expectLess() 281 msg, expected, actual), actual.compareTo(expected) <= 0); in expectLessOrEqual() 342 min.toString()), value.compareTo(min) >= 0); in expectValuesGreaterOrEqual() 372 value.compareTo(max)<= 0 && value.compareTo(min) >= 0); in expectValuesInRange() 420 value.compareTo(max)<= 0 && value.compareTo(min) >= 0); in expectInRange() 618 int compareResult = array[i + 1].compareTo(array[i]); in checkArrayMonotonicityAndNotAllEqual() 629 array[0].compareTo(array[array.length - 1]) != 0); in checkArrayMonotonicityAndNotAllEqual()
|
/frameworks/base/media/java/android/media/ |
D | Utils.java | 66 if (lhs.getUpper().compareTo(rhs.getLower()) < 0) { in sortDistinctRanges() 68 } else if (lhs.getLower().compareTo(rhs.getUpper()) > 0) { in sortDistinctRanges() 89 one[ix].getUpper().compareTo(range.getLower()) < 0) { in intersectSortedDistinctRanges() 93 one[ix].getUpper().compareTo(range.getUpper()) < 0) { in intersectSortedDistinctRanges() 100 if (one[ix].getLower().compareTo(range.getUpper()) <= 0) { in intersectSortedDistinctRanges() 121 if (lhs.getUpper().compareTo(rhs.getLower()) < 0) { in binarySearchDistinctRanges() 123 } else if (lhs.getLower().compareTo(rhs.getUpper()) > 0) { in binarySearchDistinctRanges()
|
/frameworks/base/tools/preload/ |
D | LoadedClass.java | 122 public int compareTo(LoadedClass o) { in compareTo() method in LoadedClass 123 return name.compareTo(o.name); in compareTo()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/location/ |
D | HandlerThreadingDomainTest.java | 151 assertTrue(actualExecutionDelay.compareTo(executionDelay) >= 0); in postDelayed() 156 assertTrue(postDuration.compareTo(executionDelay) < 0); in postDelayed() 160 assertTrue(delayBeforeExecuted.compareTo(executionDelay) >= 0); in postDelayed() 185 assertTrue(waitDuration.compareTo(workDuration) >= 0); in postAndWait()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/ |
D | InputMethodSubtypeSwitchingControllerTest.java | 437 assertTrue(item1 + " has the same order of itself", item1.compareTo(item1) == 0); in testImeSubtypeListComparator() 442 assertTrue(item1 + " is less than " + item2, item1.compareTo(item2) < 0); in testImeSubtypeListComparator() 443 assertTrue(item2 + " is greater than " + item1, item2.compareTo(item1) > 0); in testImeSubtypeListComparator() 454 assertTrue(nonSystemLocale1.compareTo(nonSystemLocale2) == 0); in testImeSubtypeListComparator() 455 assertTrue(nonSystemLocale2.compareTo(nonSystemLocale1) == 0); in testImeSubtypeListComparator() 465 assertTrue(ime1.compareTo(ime2) < 0); in testImeSubtypeListComparator() 466 assertTrue(ime2.compareTo(ime1) > 0); in testImeSubtypeListComparator()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/ |
D | InputMethodSubtypePreference.java | 70 public int compareTo(final Preference rhs, final Collator collator) { in compareTo() method in InputMethodSubtypePreference 98 return super.compareTo(rhs); in compareTo()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | HeadsUpManagerTest.java | 170 assertThat(ongoingCall.compareTo(activeRemoteInput)).isLessThan(0); in testAlertEntryCompareTo_ongoingCallLessThanActiveRemoteInput() 171 assertThat(activeRemoteInput.compareTo(ongoingCall)).isGreaterThan(0); in testAlertEntryCompareTo_ongoingCallLessThanActiveRemoteInput() 192 assertThat(incomingCall.compareTo(activeRemoteInput)).isLessThan(0); in testAlertEntryCompareTo_incomingCallLessThanActiveRemoteInput() 193 assertThat(activeRemoteInput.compareTo(incomingCall)).isGreaterThan(0); in testAlertEntryCompareTo_incomingCallLessThanActiveRemoteInput()
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZoneInfo.java | 252 public int compareTo(TimeZoneInfo other) { in compareTo() method in TimeZoneInfo 267 int diff = this.mCountry.compareTo(other.mCountry); in compareTo() 276 return this.mDisplayName.compareTo(other.mDisplayName); in compareTo() 278 return this.mTz.getDisplayName(Locale.getDefault()).compareTo( in compareTo()
|
/frameworks/base/core/java/android/service/notification/ |
D | NotifyingApp.java | 121 public int compareTo(NotifyingApp o) { in compareTo() method in NotifyingApp 124 return getPackage().compareTo(o.getPackage()); in compareTo()
|