Home
last modified time | relevance | path

Searched refs:another (Results 1 – 25 of 70) sorted by relevance

123

/packages/apps/Settings/src/com/android/settings/vpn2/
DLegacyVpnPreference.java60 LegacyVpnPreference another = (LegacyVpnPreference) preference; in compareTo() local
62 if ((result = another.mState - mState) == 0 && in compareTo()
63 (result = mProfile.name.compareToIgnoreCase(another.mProfile.name)) == 0 && in compareTo()
64 (result = mProfile.type - another.mProfile.type) == 0) { in compareTo()
65 result = mProfile.key.compareTo(another.mProfile.key); in compareTo()
70 AppPreference another = (AppPreference) preference; in compareTo() local
71 if (mState != STATE_CONNECTED && another.getState() == AppPreference.STATE_CONNECTED) { in compareTo()
DAppPreference.java125 AppPreference another = (AppPreference) preference; in compareTo() local
127 if ((result = another.mState - mState) == 0 && in compareTo()
128 (result = mName.compareToIgnoreCase(another.mName)) == 0 && in compareTo()
129 (result = mPackageName.compareTo(another.mPackageName)) == 0) { in compareTo()
130 result = mUserId - another.mUserId; in compareTo()
135 LegacyVpnPreference another = (LegacyVpnPreference) preference; in compareTo() local
136 return -another.compareTo(this); in compareTo()
/packages/apps/Bluetooth/src/com/android/bluetooth/
DSignedLongLong.java70 public int compareTo(SignedLongLong another) { in compareTo() argument
71 if (mMostSigBits == another.mMostSigBits) { in compareTo()
72 if (mLeastSigBits == another.mLeastSigBits) { in compareTo()
75 if (mLeastSigBits < another.mLeastSigBits) { in compareTo()
80 if (mMostSigBits < another.mMostSigBits) { in compareTo()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapFolderElement.java407 public int compareTo(BluetoothMapFolderElement another) { in compareTo() argument
408 if (another == null) { in compareTo()
411 int ret = mName.compareToIgnoreCase(another.mName); in compareTo()
414 ret = mSubFolders.size() - another.mSubFolders.size(); in compareTo()
419 another.mSubFolders.get(subfolder.getName()); in compareTo()
437 + " another.mSubFolders.size(): " + another.mSubFolders.size()); in compareTo()
442 Log.i(TAG, "mName: " + mName + " another.mName: " + another.mName); in compareTo()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDevicePreference.java245 public int compareTo(Preference another) { in compareTo() argument
246 if (!(another instanceof BluetoothDevicePreference)) { in compareTo()
248 return super.compareTo(another); in compareTo()
254 .compareTo(((BluetoothDevicePreference) another).mCachedDevice); in compareTo()
256 return mCurrentTime > ((BluetoothDevicePreference) another).mCurrentTime ? 1 : -1; in compareTo()
258 return super.compareTo(another); in compareTo()
/packages/apps/Settings/src/com/android/settings/datausage/
DCycleAdapter.java209 final CycleItem another = (CycleItem) o; in equals() local
210 return start == another.start && end == another.end; in equals()
216 public int compareTo(CycleItem another) { in compareTo() argument
217 return Long.compare(start, another.start); in compareTo()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothDevicePreference.java147 public int compareTo(@NonNull Preference another) { in compareTo() argument
148 if (!(another instanceof BluetoothDevicePreference)) { in compareTo()
150 return super.compareTo(another); in compareTo()
154 .compareTo(((BluetoothDevicePreference) another).mCachedDevice); in compareTo()
/packages/apps/Settings/src/com/android/settings/accounts/
DProviderEntry.java30 public int compareTo(ProviderEntry another) { in compareTo() argument
34 if (another.name == null) { in compareTo()
37 return CharSequences.compareToIgnoreCase(name, another.name); in compareTo()
/packages/apps/TV/src/com/android/tv/data/
DChannelNumber.java83 public int compareTo(@NonNull ChannelNumber another) { in compareTo() argument
87 int opponentMajor = Integer.parseInt(another.majorNumber); in compareTo()
88 int opponentMinor = another.hasDelimiter ? Integer.parseInt(another.minorNumber) : 0; in compareTo()
/packages/apps/TV/tuner/src/com/android/tv/tuner/dvb/
DDvbDeviceAccessor.java219 public int compareTo(@NonNull DvbDeviceInfoWrapper another) { in compareTo() argument
220 if (getAdapterId() != another.getAdapterId()) { in compareTo()
221 return getAdapterId() - another.getAdapterId(); in compareTo()
223 return getDeviceId() - another.getDeviceId(); in compareTo()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DContactListFilter.java191 public int compareTo(ContactListFilter another) { in compareTo() argument
192 int res = accountName.compareTo(another.accountName); in compareTo()
197 res = accountType.compareTo(another.accountType); in compareTo()
202 return filterType - another.filterType; in compareTo()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLookupKey.java42 public int compareTo(LookupKeySegment another) { in compareTo() argument
43 if (contactId > another.contactId) { in compareTo()
46 if (contactId < another.contactId) { in compareTo()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListFilter.java184 public int compareTo(ContactListFilter another) { in compareTo() argument
185 int res = accountName.compareTo(another.accountName); in compareTo()
190 res = accountType.compareTo(another.accountType); in compareTo()
195 return filterType - another.filterType; in compareTo()
/packages/apps/TV/common/src/com/android/tv/common/customization/
DCustomAction.java50 public int compareTo(@NonNull CustomAction another) { in compareTo() argument
51 return mPositionPriority - another.mPositionPriority; in compareTo()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DControlPoint.java55 public int compareTo(Object another) { in compareTo() argument
56 ControlPoint p = (ControlPoint) another; in compareTo()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DDateBucket.java60 public int compareTo(DateBucket another) { in compareTo() argument
61 return this.date.compareTo(another.date); in compareTo()
DIngestObjectInfo.java60 public int compareTo(IngestObjectInfo another) { in compareTo() argument
61 long diff = getDateCreated() - another.getDateCreated(); in compareTo()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DFace.java62 public int compareTo(Face another) { in compareTo() argument
63 return mName.compareTo(another.mName); in compareTo()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DMatchScore.java140 public int compareTo(MatchScore another) { in compareTo() argument
141 return another.getScore() - getScore(); in compareTo()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/legacy/
DPermissionGroup.java89 public int compareTo(PermissionGroup another) { in compareTo() argument
90 return mLabel.toString().compareTo(another.mLabel.toString()); in compareTo()
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/matchers/
DViewMatchers.java70 public static Matcher<View> isDisplayedAnd(Matcher<View> another) {
71 return allOf(isDisplayed(), another);
/packages/apps/Contacts/src/com/android/contacts/
DSplitAggregateView.java144 public int compareTo(RawContactInfo another) { in compareTo() argument
146 String thatAccount = another.accountType != null ? another.accountType : ""; in compareTo()
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DPsipData.java95 PsipSection another = (PsipSection) obj; in equals() local
96 return mTableId == another.getTableId() in equals()
97 && mTableIdExtension == another.getTableIdExtension() in equals()
98 && mSectionNumber == another.getSectionNumber(); in equals()
DCea708Data.java127 public int compareTo(@NonNull CcPacket another) { in compareTo() argument
128 return Long.compare(pts, another.pts); in compareTo()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DGridSizeMigrationTaskV2.java735 public int compareTo(DbEntry another) { in compareTo() argument
736 if (screenId != another.screenId) { in compareTo()
737 return Integer.compare(screenId, another.screenId); in compareTo()
739 if (cellY != another.cellY) { in compareTo()
740 return -Integer.compare(cellY, another.cellY); in compareTo()
742 return Integer.compare(cellX, another.cellX); in compareTo()

123