Searched refs:another (Results 1 - 13 of 13) sorted by relevance

/frameworks/base/core/java/android/hardware/input/
H A DKeyboardLayout.java96 public int compareTo(KeyboardLayout another) { argument
97 int result = mLabel.compareToIgnoreCase(another.mLabel);
99 result = mCollection.compareToIgnoreCase(another.mCollection);
/frameworks/base/core/java/com/android/internal/util/
H A DCharSequences.java114 * @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 DNetworkPolicy.java135 public int compareTo(NetworkPolicy another) { argument
136 if (another == null || another.limitBytes == LIMIT_DISABLED) {
140 if (limitBytes == LIMIT_DISABLED || another.limitBytes < limitBytes) {
H A DNetworkStats.java116 public void add(Entry another) { argument
117 this.rxBytes += another.rxBytes;
118 this.rxPackets += another.rxPackets;
119 this.txBytes += another.txBytes;
120 this.txPackets += another.txPackets;
121 this.operations += another.operations;
324 * Combine all values from another {@link NetworkStats} into this object.
326 public void combineAllValues(NetworkStats another) { argument
328 for (int i = 0; i < another.size; i++) {
329 entry = another
[all...]
/frameworks/base/core/tests/coretests/src/android/net/http/
H A DHttpResponseCacheTest.java58 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 DLocalePicker.java83 public int compareTo(LocaleInfo another) { argument
84 return sCollator.compare(this.label, another.label);
/frameworks/base/services/java/com/android/server/net/
H A DNetworkStatsCollection.java227 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/core/java/android/preference/
H A DPreference.java1068 * @param another The Preference to compare to this one.
1069 * @return 0 if the same; less than 0 if this Preference sorts ahead of <var>another</var>;
1070 * greater than 0 if this Preference sorts after <var>another</var>.
1072 public int compareTo(Preference another) { argument
1074 || (mOrder == DEFAULT_ORDER && another.mOrder != DEFAULT_ORDER)) {
1076 return mOrder - another.mOrder;
1077 } else if (mTitle == another.mTitle) {
1082 } else if (another.mTitle == null) {
1086 return CharSequences.compareToIgnoreCase(mTitle, another.mTitle);
/frameworks/base/core/java/android/widget/
H A DExpandableListConnector.java560 * 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 DActivityChooserModel.java912 public int compareTo(ActivityResolveInfo another) { argument
913 return Float.floatToIntBits(another.weight) - Float.floatToIntBits(weight);
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/
H A DFusedPrintersProvider.java375 public int compareTo(PrinterRecord another) { argument
376 return Float.floatToIntBits(another.weight) - Float.floatToIntBits(weight);
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DActivityChooserModel.java912 public int compareTo(ActivityResolveInfo another) { argument
913 return Float.floatToIntBits(another.weight) - Float.floatToIntBits(weight);
/frameworks/base/core/java/android/view/
H A DViewGroup.java6670 public int compareTo(ViewLocationHolder another) { argument
6672 if (another == null) {
6675 if (getClass() != another.getClass()) {
6679 if (mLocation.bottom - another.mLocation.top <= 0) {
6683 if (mLocation.top - another.mLocation.bottom >= 0) {
6688 final int leftDifference = mLocation.left - another.mLocation.left;
6694 final int rightDifference = mLocation.right - another.mLocation.right;
6701 final int topDiference = mLocation.top - another.mLocation.top;
6706 final int heightDiference = mLocation.height() - another.mLocation.height();
6711 final int widthDiference = mLocation.width() - another
[all...]

Completed in 273 milliseconds