Home
last modified time | relevance | path

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

12

/packages/apps/Settings/src/com/android/settings/vpn2/
DLegacyVpnPreference.java57 LegacyVpnPreference another = (LegacyVpnPreference) preference; in compareTo() local
59 if ((result = another.mState - mState) == 0 && in compareTo()
60 (result = mProfile.name.compareToIgnoreCase(another.mProfile.name)) == 0 && in compareTo()
61 (result = mProfile.type - another.mProfile.type) == 0) { in compareTo()
62 result = mProfile.key.compareTo(another.mProfile.key); in compareTo()
67 AppPreference another = (AppPreference) preference; in compareTo() local
68 if (mState != STATE_CONNECTED && another.getState() == AppPreference.STATE_CONNECTED) { in compareTo()
DAppPreference.java101 AppPreference another = (AppPreference) preference; in compareTo() local
103 if ((result = another.mState - mState) == 0 && in compareTo()
104 (result = mName.compareToIgnoreCase(another.mName)) == 0 && in compareTo()
105 (result = mPackageName.compareTo(another.mPackageName)) == 0) { in compareTo()
106 result = mUserId - another.mUserId; in compareTo()
111 LegacyVpnPreference another = (LegacyVpnPreference) preference; in compareTo() local
112 return -another.compareTo(this); in compareTo()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DWidgetItem.java53 public int compareTo(WidgetItem another) { in compareTo() argument
63 boolean otherWorkProfile = !sMyUserHandle.equals(another.user); in compareTo()
68 int labelCompare = sCollator.compare(label, another.label); in compareTo()
76 int otherArea = another.spanX * another.spanY; in compareTo()
78 ? Integer.compare(spanY, another.spanY) in compareTo()
DGridSizeMigrationTask.java836 public int compareTo(DbEntry another) {
838 if (another.itemType == Favorites.ITEM_TYPE_APPWIDGET) {
839 return another.spanY * another.spanX - spanX * spanY;
843 } else if (another.itemType == Favorites.ITEM_TYPE_APPWIDGET) {
847 return Float.compare(another.weight, weight);
/packages/apps/Bluetooth/src/com/android/bluetooth/
DSignedLongLong.java68 public int compareTo(SignedLongLong another) { in compareTo() argument
69 if(mMostSigBits == another.mMostSigBits) { in compareTo()
70 if(mLeastSigBits == another.mLeastSigBits) { in compareTo()
73 if(mLeastSigBits < another.mLeastSigBits) { in compareTo()
78 if(mMostSigBits < another.mMostSigBits) { in compareTo()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapFolderElement.java376 public int compareTo(BluetoothMapFolderElement another) { in compareTo() argument
377 if(another == null) return 1; in compareTo()
378 int ret = mName.compareToIgnoreCase(another.mName); in compareTo()
381 ret = mSubFolders.size() - another.mSubFolders.size(); in compareTo()
386 another.mSubFolders.get(subfolder.getName()); in compareTo()
399 " another.mSubFolders.size(): " + another.mSubFolders.size()); in compareTo()
402 if(D) Log.i(TAG, "mName: " + mName + " another.mName: " + another.mName); in compareTo()
/packages/apps/Settings/src/com/android/settings/datausage/
DCycleAdapter.java179 final CycleItem another = (CycleItem) o; in equals() local
180 return start == another.start && end == another.end; in equals()
186 public int compareTo(CycleItem another) { in compareTo() argument
187 return Long.compare(start, another.start); in compareTo()
/packages/apps/TV/src/com/android/tv/data/
DChannelNumber.java66 public int compareTo(@NonNull ChannelNumber another) { in compareTo() argument
70 int opponentMajor = Integer.parseInt(another.majorNumber); in compareTo()
71 int opponentMinor = another.hasDelimiter in compareTo()
72 ? Integer.parseInt(another.minorNumber) : 0; in compareTo()
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/cards/
DCardView.java353 public int compareTo(CardView another) { in compareTo() argument
354 int res = this.getPriority() - another.getPriority(); in compareTo()
357 res = this.mLastUpdated > another.mLastUpdated ? -1 : 1; in compareTo()
359 Log.d(TAG, "Found card with the same priority: " + this + " and " + another + "," in compareTo()
361 + ", another.mLastUpdated:" + another.mLastUpdated + ", res: " + res); in compareTo()
/packages/apps/TV/src/com/android/tv/tuner/
DDvbDeviceAccessor.java209 public int compareTo(@NonNull DvbDeviceInfoWrapper another) { in compareTo() argument
210 if (getAdapterId() != another.getAdapterId()) { in compareTo()
211 return getAdapterId() - another.getAdapterId(); in compareTo()
213 return getDeviceId() - another.getDeviceId(); in compareTo()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDevicePreference.java180 public int compareTo(Preference another) { in compareTo() argument
181 if (!(another instanceof BluetoothDevicePreference)) { in compareTo()
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() 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/apps/Settings/src/com/android/settings/inputmethod/
DPhysicalKeyboardFragment.java438 public int compareTo(@NonNull Keyboards another) { in compareTo() argument
439 return mCollator.compare(mDeviceInfo.mDeviceName, another.mDeviceInfo.mDeviceName); in compareTo()
516 KeyboardInfoPreference another = (KeyboardInfoPreference) object; in compareTo() local
517 int result = compare(mImeName, another.mImeName); in compareTo()
519 result = compare(mImSubtypeName, another.mImSubtypeName); in compareTo()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListFilter.java177 public int compareTo(ContactListFilter another) { in compareTo() argument
178 int res = accountName.compareTo(another.accountName); in compareTo()
183 res = accountType.compareTo(another.accountType); in compareTo()
188 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/TV/src/com/android/tv/tuner/data/
DPsipData.java98 PsipSection another = (PsipSection) obj; in equals() local
99 return mTableId == another.getTableId() in equals()
100 && mTableIdExtension == another.getTableIdExtension() in equals()
101 && mSectionNumber == another.getSectionNumber(); in equals()
/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/UnifiedEmail/src/com/android/mail/ui/
DFolderSelectorAdapter.java79 public int compareTo(FolderRow another) { in compareTo() argument
81 if (equals(another)) { in compareTo()
84 return mFolder.name.compareToIgnoreCase(another.mFolder.name); in compareTo()
/packages/apps/TV/src/com/android/tv/customization/
DCustomAction.java53 public int compareTo(@NonNull CustomAction another) { in compareTo() argument
54 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()
/packages/apps/Settings/src/com/android/settings/accounts/
DChooseAccountActivity.java93 public int compareTo(ProviderEntry another) { in compareTo() argument
97 if (another.name == null) { in compareTo()
100 return CharSequences.compareToIgnoreCase(name, another.name); in compareTo()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/
DPermissionApps.java386 public int compareTo(PermissionApp another) { in compareTo() argument
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() argument
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() argument
63 return mName.compareTo(another.mName); in compareTo()

12