/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/aggregation/ |
D | PriorityAggregationDataComparisonTest.java | 29 .compareTo(createStepsData(10, 20, 20, 100, 10))) in testCompareTwoIntervals_orderByPriority() 32 assertThat(createStepsData(10, 20, 15, 10, 1).compareTo(createStepsData(10, 20, 20, 1, 10))) in testCompareTwoIntervals_orderByPriority() 38 assertThat(createStepsData(10, 20, 15, 1, 1).compareTo(createStepsData(10, 20, 20, 1, 10))) in testCompareTwoIntervals_samePriority_orderByLastModified() 41 assertThat(createStepsData(10, 20, 15, 1, 10).compareTo(createStepsData(10, 20, 20, 1, 1))) in testCompareTwoIntervals_samePriority_orderByLastModified() 50 assertThat(data1.getStartTimestamp().compareTo(data2.getStartTimestamp())).isLessThan(0); in testCompareTimestamps_orderByTime() 51 assertThat(data1.getStartTimestamp().compareTo(data2.getStartTimestamp())).isLessThan(0); in testCompareTimestamps_orderByTime() 52 assertThat(data2.getStartTimestamp().compareTo(data1.getEndTimestamp())).isLessThan(0); in testCompareTimestamps_orderByTime() 53 assertThat(data1.getEndTimestamp().compareTo(data2.getStartTimestamp())).isGreaterThan(0); in testCompareTimestamps_orderByTime() 54 assertThat(data2.getStartTimestamp().compareTo(data1.getStartTimestamp())).isGreaterThan(0); in testCompareTimestamps_orderByTime() 61 assertThat(data2.getStartTimestamp().compareTo(border)).isLessThan(0); in testCompareTimestamps_orderByTime() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/util/ |
D | UnsignedLongTest.java | 47 assertTrue(ULONG_LONG.compareTo(ULONG_STR) == 0); in testCompareTo_equal() 48 assertTrue(LARGE.compareTo(new UnsignedLong("9223372036854775808")) == 0); in testCompareTo_equal() 53 assertTrue(ULONG_LONG.compareTo(new UnsignedLong(3L)) < 0); in testCompareTo_smaller() 54 assertTrue(ULONG_LONG.compareTo(LARGE) < 0); in testCompareTo_smaller() 55 assertTrue(LARGE.compareTo(LARGER) < 0); in testCompareTo_smaller() 60 assertTrue(ULONG_LONG.compareTo(new UnsignedLong(1L)) > 0); 61 assertTrue(LARGE.compareTo(ULONG_LONG) > 0); 62 assertTrue(LARGER.compareTo(LARGE) > 0);
|
/packages/modules/Connectivity/staticlibs/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()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/manageapplications/ |
D | AppFilterItemTest.java | 62 assertThat(item.compareTo(item)).isEqualTo(0); in compare_sameContent_return0() 63 assertThat(item.compareTo(item2)).isEqualTo(0); in compare_sameContent_return0() 64 assertThat(item2.compareTo(item)).isEqualTo(0); in compare_sameContent_return0() 70 assertThat(item.compareTo(null)).isEqualTo(1); in compare_toNull_return1() 80 assertThat(item.compareTo(item2)).isNotEqualTo(0); in compare_differentFilter_returnFilterDiff()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/ |
D | TimeInterval.java | 34 public int compareTo(TimeInterval interval) { in compareTo() method in TimeInterval 35 if (getStartTime().compareTo(interval.getStartTime()) != 0) { in compareTo() 36 return getStartTime().compareTo(interval.getStartTime()); in compareTo() 38 return getEndTime().compareTo(interval.getEndTime()); in compareTo()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/ |
D | SignedLongLongTest.java | 41 assertThat(value.compareTo(sameValue)).isEqualTo(0); in compareTo_sameValue_returnsZero() 53 assertThat(value.compareTo(biggerValue)).isEqualTo(-1); in compareTo_biggerLeastSigBits_returnsMinusOne() 65 assertThat(value.compareTo(smallerValue)).isEqualTo(1); in compareTo_smallerLeastSigBits_returnsOne() 77 assertThat(value.compareTo(biggerValue)).isEqualTo(-1); in compareTo_biggerMostSigBits_returnsMinusOne() 89 assertThat(value.compareTo(smallerValue)).isEqualTo(1); in compareTo_smallerMostSigBits_returnsOne()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/ |
D | WifiP2pPeerTest.java | 64 assertThat(mPreference.compareTo(mOtherWifiP2pPeer)).isEqualTo(0); in compareTo_withSameDeviceName_shouldBeZero() 73 assertThat(mPreference.compareTo(mOtherWifiP2pPeer)).isNotEqualTo(0); in compareTo_withDifferentDeviceName_shouldNotZero() 82 assertThat(mPreference.compareTo(mOtherWifiP2pPeer)).isEqualTo(0); in compareTo_withSameDeviceAddress_shouldBeZero() 91 assertThat(mPreference.compareTo(mOtherWifiP2pPeer)).isEqualTo(1); in compareTo_withLowerDeviceStatus_shouldBeOne() 100 assertThat(mPreference.compareTo(fakePreference)).isEqualTo(1); in compareTo_withNotPeerParameter_shouldBeOne()
|
/packages/modules/Connectivity/staticlibs/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()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/ |
D | BluetoothMapFolderElementTest.java | 139 assertThat(mTestFolderElement.compareTo(null)).isEqualTo(1); in compareTo_withNull_returnsOne() 144 assertThat(mTestFolderElement.compareTo(mParentFolderElement)).isEqualTo(4); in compareTo_withDifferentName_returnsCharacterDifference() 154 assertThat(mTestFolderElement.compareTo(folderElementWithSameSubFolders)).isEqualTo(0); in compareTo_withSameSubFolders_returnsZero() 166 assertThat(mTestFolderElement.compareTo(folderElementWithDifferentSubFoldersSize)) in compareTo_withDifferentSubFoldersSize_returnsSizeDifference() 180 assertThat(mTestFolderElement.compareTo(folderElementWithDifferentSubFoldersTree)) in compareTo_withDifferentSubFolderTree_returnsCompareToRecursively()
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | AppPreference.java | 124 public int compareTo(Preference preference) { in compareTo() method in AppPreference 130 (result = mPackageName.compareTo(another.mPackageName)) == 0) { in compareTo() 137 return -another.compareTo(this); in compareTo() 139 return super.compareTo(preference); in compareTo()
|
D | LegacyVpnPreference.java | 58 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()
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | NewestFirstComparator.java | 64 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/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/units/ |
D | PressureTest.java | 55 assertThat(Pressure1.compareTo(Pressure2)).isEqualTo(0); in testCompare() 56 assertThat(Pressure1.compareTo(Pressure3)).isEqualTo(-1); in testCompare() 57 assertThat(Pressure3.compareTo(Pressure1)).isEqualTo(1); in testCompare()
|
D | TemperatureTest.java | 54 assertThat(Temperature1.compareTo(Temperature2)).isEqualTo(0); in testCompare() 55 assertThat(Temperature1.compareTo(Temperature3)).isEqualTo(-1); in testCompare() 56 assertThat(Temperature3.compareTo(Temperature1)).isEqualTo(1); in testCompare()
|
D | VelocityTest.java | 54 assertThat(Velocity1.compareTo(Velocity2)).isEqualTo(0); in testCompare() 55 assertThat(Velocity1.compareTo(Velocity3)).isEqualTo(-1); in testCompare() 56 assertThat(Velocity3.compareTo(Velocity1)).isEqualTo(1); in testCompare()
|
D | LengthTest.java | 54 assertThat(Length1.compareTo(Length2)).isEqualTo(0); in testCompare() 55 assertThat(Length1.compareTo(Length3)).isEqualTo(-1); in testCompare() 56 assertThat(Length3.compareTo(Length1)).isEqualTo(1); in testCompare()
|
D | TemperatureDeltaTest.java | 54 assertThat(TemperatureDelta1.compareTo(TemperatureDelta2)).isEqualTo(0); in testCompare() 55 assertThat(TemperatureDelta1.compareTo(TemperatureDelta3)).isEqualTo(-1); in testCompare() 56 assertThat(TemperatureDelta3.compareTo(TemperatureDelta1)).isEqualTo(1); in testCompare()
|
D | VolumeTest.java | 54 assertThat(Volume1.compareTo(Volume2)).isEqualTo(0); in testCompare() 55 assertThat(Volume1.compareTo(Volume3)).isEqualTo(-1); in testCompare() 56 assertThat(Volume3.compareTo(Volume1)).isEqualTo(1); in testCompare()
|
D | PercentageTest.java | 54 assertThat(Percentage1.compareTo(Percentage2)).isEqualTo(0); in testCompare() 55 assertThat(Percentage1.compareTo(Percentage3)).isEqualTo(-1); in testCompare() 56 assertThat(Percentage3.compareTo(Percentage1)).isEqualTo(1); in testCompare()
|
D | MassTest.java | 54 assertThat(Mass1.compareTo(Mass2)).isEqualTo(0); in testCompare() 55 assertThat(Mass1.compareTo(Mass3)).isEqualTo(-1); in testCompare() 56 assertThat(Mass3.compareTo(Mass1)).isEqualTo(1); in testCompare()
|
D | PowerTest.java | 54 assertThat(Power1.compareTo(Power2)).isEqualTo(0); in testCompare() 55 assertThat(Power1.compareTo(Power3)).isEqualTo(-1); in testCompare() 56 assertThat(Power3.compareTo(Power1)).isEqualTo(1); in testCompare()
|
D | BloodGlucoseTest.java | 56 assertThat(bloodGlucose1.compareTo(bloodGlucose2)).isEqualTo(0); in testCompare() 57 assertThat(bloodGlucose1.compareTo(bloodGlucose3)).isEqualTo(-1); in testCompare() 58 assertThat(bloodGlucose3.compareTo(bloodGlucose1)).isEqualTo(1); in testCompare()
|
D | EnergyTest.java | 54 assertThat(Energy1.compareTo(Energy2)).isEqualTo(0); in testCompare() 55 assertThat(Energy1.compareTo(Energy3)).isEqualTo(-1); in testCompare() 56 assertThat(Energy3.compareTo(Energy1)).isEqualTo(1); in testCompare()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/ |
D | BluetoothDevicePreferenceTest.java | 258 when(mCachedDevice.compareTo(otherDevice)).thenReturn(1); in compareTo_sameType_usesDeviceCompareTo() 259 when(otherDevice.compareTo(mCachedDevice)).thenReturn(-1); in compareTo_sameType_usesDeviceCompareTo() 261 assertThat(mPreference.compareTo(otherPreference)).isEqualTo(1); in compareTo_sameType_usesDeviceCompareTo() 262 assertThat(otherPreference.compareTo(mPreference)).isEqualTo(-1); in compareTo_sameType_usesDeviceCompareTo() 271 assertThat(mPreference.compareTo(otherPreference)).isEqualTo(-1); in compareTo_differentType_fallsBackToDefaultCompare() 272 verify(mCachedDevice, never()).compareTo(any()); in compareTo_differentType_fallsBackToDefaultCompare()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/data/model/ |
D | ItemTest.java | 219 assertThat(item1.compareTo(item2)).isEqualTo(-1); in testCompareTo_differentDateTaken() 220 assertThat(item2.compareTo(item1)).isEqualTo(1); in testCompareTo_differentDateTaken() 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()
|