/frameworks/base/core/java/com/android/internal/util/ |
H A D | CharSequences.java | 114 * @param another The other CharSequence. 117 public static int compareToIgnoreCase(CharSequence me, CharSequence another) { argument 119 int myLen = me.length(), anotherLen = another.length(); 125 - Character.toLowerCase(another.charAt(anotherPos++))) != 0) {
|
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkIdentitySet.java | 125 public int compareTo(NetworkIdentitySet another) { argument 127 if (another.isEmpty()) return 1; 130 final NetworkIdentity anotherIdent = another.iterator().next();
|
H A D | NetworkStatsCollection.java | 290 public void recordCollection(NetworkStatsCollection another) { argument 291 for (int i = 0; i < another.mStats.size(); i++) { 292 final Key key = another.mStats.keyAt(i); 293 final NetworkStatsHistory value = another.mStats.valueAt(i); 644 public int compareTo(Key another) { argument 646 if (ident != null && another.ident != null) { 647 res = ident.compareTo(another.ident); 650 res = Integer.compare(uid, another.uid); 653 res = Integer.compare(set, another.set); 656 res = Integer.compare(tag, another [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | AppItem.java | 66 public int compareTo(AppItem another) { argument 67 int comparison = Integer.compare(category, another.category); 69 comparison = Long.compare(another.total, total);
|
/frameworks/base/core/java/android/hardware/input/ |
H A D | KeyboardLayout.java | 145 public int compareTo(KeyboardLayout another) { argument 148 int result = Integer.compare(another.mPriority, mPriority); 150 result = mLabel.compareToIgnoreCase(another.mLabel); 153 result = mCollection.compareToIgnoreCase(another.mCollection);
|
/frameworks/base/core/java/android/net/ |
H A D | NetworkIdentity.java | 202 public int compareTo(NetworkIdentity another) { argument 203 int res = Integer.compare(mType, another.mType); 205 res = Integer.compare(mSubType, another.mSubType); 207 if (res == 0 && mSubscriberId != null && another.mSubscriberId != null) { 208 res = mSubscriberId.compareTo(another.mSubscriberId); 210 if (res == 0 && mNetworkId != null && another.mNetworkId != null) { 211 res = mNetworkId.compareTo(another.mNetworkId); 214 res = Boolean.compare(mRoaming, another.mRoaming); 217 res = Boolean.compare(mMetered, another.mMetered);
|
H A D | NetworkPolicy.java | 145 public int compareTo(NetworkPolicy another) { argument 146 if (another == null || another.limitBytes == LIMIT_DISABLED) { 150 if (limitBytes == LIMIT_DISABLED || another.limitBytes < limitBytes) {
|
H A D | NetworkStats.java | 153 public void add(Entry another) { argument 154 this.rxBytes += another.rxBytes; 155 this.rxPackets += another.rxPackets; 156 this.txBytes += another.txBytes; 157 this.txPackets += another.txPackets; 158 this.operations += another.operations; 399 * Combine all values from another {@link NetworkStats} into this object. 401 public void combineAllValues(NetworkStats another) { argument 403 for (int i = 0; i < another.size; i++) { 404 entry = another [all...] |
/frameworks/base/core/java/android/util/ |
H A D | Rational.java | 210 * <p>Compare this Rational to another object and see if they are equal.</p> 212 * <p>A Rational object can only be equal to another Rational object (comparing against any 215 * <p>A Rational object is considered equal to another Rational object if and only if one of 234 * @param obj a reference to another object 458 * @param another the rational to be compared 463 * @throws NullPointerException if {@code another} was {@code null} 466 public int compareTo(Rational another) { argument 467 checkNotNull(another, "another must not be null"); 469 if (equals(another)) { [all...] |
/frameworks/base/media/java/android/media/ |
H A D | Utils.java | 55 * @param another another sorted set of non-intersecting ranges in ascending order 59 Range<T>[] intersectSortedDistinctRanges(Range<T>[] one, Range<T>[] another) { argument 62 for (Range<T> range: another) {
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | LocalePicker.java | 83 public int compareTo(LocaleInfo another) { argument 84 return sCollator.compare(this.label, another.label);
|
/frameworks/base/core/java/android/widget/ |
H A D | ExpandableListConnector.java | 560 * another class's method unless we have to (so do a subtraction) 911 public int compareTo(GroupMetadata another) { argument 912 if (another == null) { 916 return gPos - another.gPos;
|
H A D | ActivityChooserModel.java | 921 public int compareTo(ActivityResolveInfo another) { argument 922 return Float.floatToIntBits(another.weight) - Float.floatToIntBits(weight);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
H A D | CachedBluetoothDevice.java | 643 public int compareTo(CachedBluetoothDevice another) { argument 645 int comparison = (another.isConnected() ? 1 : 0) - (isConnected() ? 1 : 0); 649 comparison = (another.getBondState() == BluetoothDevice.BOND_BONDED ? 1 : 0) - 654 comparison = (another.mVisible ? 1 : 0) - (mVisible ? 1 : 0); 658 comparison = another.mRssi - mRssi; 662 return mName.compareTo(another.mName);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ActivityChooserModel.java | 897 public int compareTo(ActivityResolveInfo another) { argument 898 return Float.floatToIntBits(another.weight) - Float.floatToIntBits(weight);
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
H A D | FusedPrintersProvider.java | 560 // Cannot start a loader while starting another, hence delay this loader 782 public int compareTo(PrinterRecord another) { argument 783 return Float.floatToIntBits(another.weight) - Float.floatToIntBits(weight);
|
/frameworks/base/core/java/android/preference/ |
H A D | Preference.java | 1110 * @param another The Preference to compare to this one. 1111 * @return 0 if the same; less than 0 if this Preference sorts ahead of <var>another</var>; 1112 * greater than 0 if this Preference sorts after <var>another</var>. 1115 public int compareTo(Preference another) { argument 1116 if (mOrder != another.mOrder) { 1118 return mOrder - another.mOrder; 1119 } else if (mTitle == another.mTitle) { 1124 } else if (another.mTitle == null) { 1128 return CharSequences.compareToIgnoreCase(mTitle, another.mTitle);
|
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
H A D | Preference.java | 1024 * @param another The Preference to compare to this one. 1025 * @return 0 if the same; less than 0 if this Preference sorts ahead of <var>another</var>; 1026 * greater than 0 if this Preference sorts after <var>another</var>. 1029 public int compareTo(@NonNull Preference another) { argument 1030 if (mOrder != another.mOrder) { 1032 return mOrder - another.mOrder; 1033 } else if (mTitle == another.mTitle) { 1038 } else if (another.mTitle == null) { 1042 return mTitle.toString().compareToIgnoreCase(another.mTitle.toString());
|
/frameworks/base/core/java/android/view/ |
H A D | ViewGroup.java | 7858 public int compareTo(ViewLocationHolder another) { argument 7860 if (another == null) { 7866 if (mLocation.bottom - another.mLocation.top <= 0) { 7870 if (mLocation.top - another.mLocation.bottom >= 0) { 7877 final int leftDifference = mLocation.left - another.mLocation.left; 7882 final int rightDifference = mLocation.right - another.mLocation.right; 7888 final int topDifference = mLocation.top - another.mLocation.top; 7893 final int heightDiference = mLocation.height() - another.mLocation.height(); 7898 final int widthDiference = mLocation.width() - another.mLocation.width(); 7904 return mView.getAccessibilityViewId() - another [all...] |