Searched refs:another (Results 1 - 14 of 14) 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/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.java83 public int compareTo(LocaleInfo another) { argument
84 return sCollator.compare(this.label, another.label);
/frameworks/base/core/java/android/preference/
H A DPreference.java1066 * @param another The Preference to compare to this one.
1067 * @return 0 if the same; less than 0 if this Preference sorts ahead of <var>another</var>;
1068 * greater than 0 if this Preference sorts after <var>another</var>.
1070 public int compareTo(Preference another) { argument
1072 || (mOrder == DEFAULT_ORDER && another.mOrder != DEFAULT_ORDER)) {
1074 return mOrder - another.mOrder;
1077 } else if (another.mTitle == null) {
1081 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/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.java6545 public int compareTo(ViewLocationHolder another) { argument
6547 if (another == null) {
6550 if (getClass() != another.getClass()) {
6554 if (mLocation.bottom - another.mLocation.top <= 0) {
6558 if (mLocation.top - another.mLocation.bottom >= 0) {
6563 final int leftDifference = mLocation.left - another.mLocation.left;
6569 final int rightDifference = mLocation.right - another.mLocation.right;
6576 final int topDiference = mLocation.top - another.mLocation.top;
6581 final int heightDiference = mLocation.height() - another.mLocation.height();
6586 final int widthDiference = mLocation.width() - another
[all...]

Completed in 319 milliseconds