/frameworks/base/core/java/android/hardware/input/ |
H A D | KeyboardLayout.java | 100 public int compareTo(KeyboardLayout another) { argument 103 int result = Integer.compare(another.mPriority, mPriority); 105 result = mLabel.compareToIgnoreCase(another.mLabel); 108 result = mCollection.compareToIgnoreCase(another.mCollection);
|
/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/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/core/java/android/net/ |
H A D | NetworkPolicy.java | 135 public int compareTo(NetworkPolicy another) { argument 136 if (another == null || another.limitBytes == LIMIT_DISABLED) { 140 if (limitBytes == LIMIT_DISABLED || another.limitBytes < limitBytes) {
|
H A D | NetworkStats.java | 121 public void add(Entry another) { argument 122 this.rxBytes += another.rxBytes; 123 this.rxPackets += another.rxPackets; 124 this.txBytes += another.txBytes; 125 this.txPackets += another.txPackets; 126 this.operations += another.operations; 351 * Combine all values from another {@link NetworkStats} into this object. 353 public void combineAllValues(NetworkStats another) { argument 355 for (int i = 0; i < another.size; i++) { 356 entry = another [all...] |
/frameworks/base/core/tests/coretests/src/android/net/http/ |
H A D | HttpResponseCacheTest.java | 58 HttpResponseCache another = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); 59 assertSame(first, another); 64 HttpResponseCache another = HttpResponseCache.install(cacheDir, 8 * 1024 * 1024); 65 assertNotSame(first, another);
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | LocalePicker.java | 81 public int compareTo(LocaleInfo another) { argument 82 return sCollator.compare(this.label, another.label);
|
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkStatsCollection.java | 227 public void recordCollection(NetworkStatsCollection another) { argument 228 for (Map.Entry<Key, NetworkStatsHistory> entry : another.mStats.entrySet()) { 530 public int compareTo(Key another) { argument 531 return Integer.compare(uid, another.uid);
|
/frameworks/base/media/java/android/media/ |
H A D | Utils.java | 57 * @param another another sorted set of non-intersecting ranges in ascending order 61 Range<T>[] intersectSortedDistinctRanges(Range<T>[] one, Range<T>[] another) { argument 64 for (Range<T> range: another) {
|
/frameworks/base/core/java/android/preference/ |
H A D | Preference.java | 1099 * @param another The Preference to compare to this one. 1100 * @return 0 if the same; less than 0 if this Preference sorts ahead of <var>another</var>; 1101 * greater than 0 if this Preference sorts after <var>another</var>. 1104 public int compareTo(Preference another) { argument 1105 if (mOrder != another.mOrder) { 1107 return mOrder - another.mOrder; 1108 } else if (mTitle == another.mTitle) { 1113 } else if (another.mTitle == null) { 1117 return CharSequences.compareToIgnoreCase(mTitle, another.mTitle);
|
/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 | 920 public int compareTo(ActivityResolveInfo another) { argument 921 return Float.floatToIntBits(another.weight) - Float.floatToIntBits(weight);
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
H A D | FusedPrintersProvider.java | 495 public int compareTo(PrinterRecord another) { argument 496 return Float.floatToIntBits(another.weight) - Float.floatToIntBits(weight);
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | ActivityChooserModel.java | 900 public int compareTo(ActivityResolveInfo another) { argument 901 return Float.floatToIntBits(another.weight) - Float.floatToIntBits(weight);
|
/frameworks/base/core/java/android/view/ |
H A D | ViewGroup.java | 7185 public int compareTo(ViewLocationHolder another) { argument 7187 if (another == null) { 7193 if (mLocation.bottom - another.mLocation.top <= 0) { 7197 if (mLocation.top - another.mLocation.bottom >= 0) { 7204 final int leftDifference = mLocation.left - another.mLocation.left; 7209 final int rightDifference = mLocation.right - another.mLocation.right; 7215 final int topDifference = mLocation.top - another.mLocation.top; 7220 final int heightDiference = mLocation.height() - another.mLocation.height(); 7225 final int widthDiference = mLocation.width() - another.mLocation.width(); 7231 return mView.getAccessibilityViewId() - another [all...] |