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.java115 public void add(Entry another) { argument
116 this.rxBytes += another.rxBytes;
117 this.rxPackets += another.rxPackets;
118 this.txBytes += another.txBytes;
119 this.txPackets += another.txPackets;
120 this.operations += another.operations;
311 * Combine all values from another {@link NetworkStats} into this object.
313 public void combineAllValues(NetworkStats another) { argument
315 for (int i = 0; i < another.size; i++) {
316 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/tests/DumpRenderTree2/src/com/android/dumprendertree2/
H A DAbstractResult.java80 public int compareTo(AbstractResult another) { argument
81 return getRelativePath().compareTo(another.getRelativePath());
/frameworks/base/core/java/com/android/internal/app/
H A DLocalePicker.java78 public int compareTo(LocaleInfo another) { argument
79 return sCollator.compare(this.label, another.label);
/frameworks/base/core/java/android/preference/
H A DPreference.java1065 * @param another The Preference to compare to this one.
1066 * @return 0 if the same; less than 0 if this Preference sorts ahead of <var>another</var>;
1067 * greater than 0 if this Preference sorts after <var>another</var>.
1069 public int compareTo(Preference another) { argument
1071 || (mOrder == DEFAULT_ORDER && another.mOrder != DEFAULT_ORDER)) {
1073 return mOrder - another.mOrder;
1076 } else if (another.mTitle == null) {
1080 return CharSequences.compareToIgnoreCase(mTitle, another.mTitle);
/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/tests/DumpRenderTree2/src/com/android/dumprendertree2/ui/
H A DDirListActivity.java133 public int compareTo(ListItem another) { argument
134 return mRelativePath.compareTo(another.getRelativePath());
/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/core/java/android/view/
H A DViewGroup.java6285 public int compareTo(ViewLocationHolder another) { argument
6287 if (another == null) {
6290 if (getClass() != another.getClass()) {
6294 if (mLocation.bottom - another.mLocation.top <= 0) {
6298 if (mLocation.top - another.mLocation.bottom >= 0) {
6303 final int leftDifference = mLocation.left - another.mLocation.left;
6309 final int rightDifference = mLocation.right - another.mLocation.right;
6316 final int topDiference = mLocation.top - another.mLocation.top;
6321 final int heightDiference = mLocation.height() - another.mLocation.height();
6326 final int widthDiference = mLocation.width() - another
[all...]

Completed in 1838 milliseconds