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

/frameworks/base/wifi/java/android/net/wifi/passpoint/
H A DWifiPasspointPolicy.java281 public int compareTo(WifiPasspointPolicy another) { argument
283 Log.d(TAG, "another:" + another);
285 if (another == null) {
287 } else if (this.mIsHomeSp == true && another.isHomeSp() == false) {
289 Log.d(TAG, "compare HomeSP first, this is HomeSP, another isn't");
291 } else if ((this.mIsHomeSp == true && another.isHomeSp() == true)) {
294 if (this.mCredentialPriority < another.getCredentialPriority()) {
297 } else if (this.mCredentialPriority == another.getCredentialPriority()) {
300 if (this.mName.compareTo(another
[all...]
H A DWifiPasspointCredential.java631 public int compareTo(WifiPasspointCredential another) { argument
634 if (mCrednetialPriority < another.mCrednetialPriority) {
636 } else if (mCrednetialPriority == another.mCrednetialPriority) {
637 return this.mType.compareTo(another.mType);
/frameworks/base/core/java/android/hardware/input/
H A DKeyboardLayout.java100 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/net/
H A DNetworkIdentity.java189 public int compareTo(NetworkIdentity another) { argument
190 int res = Integer.compare(mType, another.mType);
192 res = Integer.compare(mSubType, another.mSubType);
194 if (res == 0 && mSubscriberId != null && another.mSubscriberId != null) {
195 res = mSubscriberId.compareTo(another.mSubscriberId);
197 if (res == 0 && mNetworkId != null && another.mNetworkId != null) {
198 res = mNetworkId.compareTo(another.mNetworkId);
201 res = Boolean.compare(mRoaming, another.mRoaming);
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.java130 public void add(Entry another) { argument
131 this.rxBytes += another.rxBytes;
132 this.rxPackets += another.rxPackets;
133 this.txBytes += another.txBytes;
134 this.txPackets += another.txPackets;
135 this.operations += another.operations;
360 * Combine all values from another {@link NetworkStats} into this object.
362 public void combineAllValues(NetworkStats another) { argument
364 for (int i = 0; i < another.size; i++) {
365 entry = another
[all...]
/frameworks/base/core/java/android/util/
H A DRational.java210 * <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 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/services/core/java/com/android/server/net/
H A DNetworkIdentitySet.java98 public int compareTo(NetworkIdentitySet another) { argument
100 if (another.isEmpty()) return 1;
103 final NetworkIdentity anotherIdent = another.iterator().next();
H A DNetworkStatsCollection.java264 public void recordCollection(NetworkStatsCollection another) { argument
265 for (int i = 0; i < another.mStats.size(); i++) {
266 final Key key = another.mStats.keyAt(i);
267 final NetworkStatsHistory value = another.mStats.valueAt(i);
624 public int compareTo(Key another) { argument
626 if (ident != null && another.ident != null) {
627 res = ident.compareTo(another.ident);
630 res = Integer.compare(uid, another.uid);
633 res = Integer.compare(set, another.set);
636 res = Integer.compare(tag, another
[all...]
/frameworks/rs/api/
H A Drs_convert.spec20 The functions below convert from a numerical vector type to another, of from one color
21 representation to another.
34 Converts a vector from one numerical type to another. The conversion are done entry per entry.
H A Drs_quaternion.spec126 Creates a quaternion from its four components or from another quaternion.
195 summary: Multiply a quaternion by a scalar or another quaternion
197 Multiplies a quaternion by a scalar or by another quaternion, e.g
H A Drs_matrix.spec191 Set the elements of a matrix from an array of floats or from another matrix.
366 summary: Multiply a matrix by a vector or another matrix
H A Drs_math.spec434 summary: Copies the sign of a number to another
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DCachedBluetoothDevice.java643 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/preference/src/android/support/v7/preference/
H A DPreference.java991 * @param another The Preference to compare to this one.
992 * @return 0 if the same; less than 0 if this Preference sorts ahead of <var>another</var>;
993 * greater than 0 if this Preference sorts after <var>another</var>.
996 public int compareTo(@NonNull Preference another) { argument
997 if (mOrder != another.mOrder) {
999 return mOrder - another.mOrder;
1000 } else if (mTitle == another.mTitle) {
1005 } else if (another.mTitle == null) {
1009 return mTitle.toString().compareToIgnoreCase(another.mTitle.toString());
/frameworks/base/core/java/com/android/internal/app/
H A DLocalePicker.java81 public int compareTo(LocaleInfo another) { argument
82 return sCollator.compare(this.label, another.label);
/frameworks/base/media/java/android/media/
H A DUtils.java55 * @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/android/preference/
H A DPreference.java1110 * @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/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.java921 public int compareTo(ActivityResolveInfo another) { argument
922 return Float.floatToIntBits(another.weight) - Float.floatToIntBits(weight);
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
H A DFusedPrintersProvider.java486 public int compareTo(PrinterRecord another) { argument
487 return Float.floatToIntBits(another.weight) - Float.floatToIntBits(weight);
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DActivityChooserModel.java899 public int compareTo(ActivityResolveInfo another) { argument
900 return Float.floatToIntBits(another.weight) - Float.floatToIntBits(weight);
/frameworks/base/core/java/android/view/
H A DViewGroup.java7678 public int compareTo(ViewLocationHolder another) { argument
7680 if (another == null) {
7686 if (mLocation.bottom - another.mLocation.top <= 0) {
7690 if (mLocation.top - another.mLocation.bottom >= 0) {
7697 final int leftDifference = mLocation.left - another.mLocation.left;
7702 final int rightDifference = mLocation.right - another.mLocation.right;
7708 final int topDifference = mLocation.top - another.mLocation.top;
7713 final int heightDiference = mLocation.height() - another.mLocation.height();
7718 final int widthDiference = mLocation.width() - another.mLocation.width();
7724 return mView.getAccessibilityViewId() - another
[all...]

Completed in 462 milliseconds