/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/packages/SettingsLib/src/com/android/settingslib/ |
H A D | AppItem.java | 66 public int compareTo(AppItem another) { argument 67 int comparison = Integer.compare(category, another.category); 69 comparison = Long.compare(another.total, total);
|
/frameworks/base/core/java/android/net/ |
H A D | NetworkIdentity.java | 235 public int compareTo(NetworkIdentity another) { argument 236 int res = Integer.compare(mType, another.mType); 238 res = Integer.compare(mSubType, another.mSubType); 240 if (res == 0 && mSubscriberId != null && another.mSubscriberId != null) { 241 res = mSubscriberId.compareTo(another.mSubscriberId); 243 if (res == 0 && mNetworkId != null && another.mNetworkId != null) { 244 res = mNetworkId.compareTo(another.mNetworkId); 247 res = Boolean.compare(mRoaming, another.mRoaming); 250 res = Boolean.compare(mMetered, another.mMetered); 253 res = Boolean.compare(mDefaultNetwork, another [all...] |
H A D | NetworkPolicy.java | 178 public int compareTo(NetworkPolicy another) { argument 179 if (another == null || another.limitBytes == LIMIT_DISABLED) { 183 if (limitBytes == LIMIT_DISABLED || another.limitBytes < limitBytes) {
|
H A D | NetworkStats.java | 198 public void add(Entry another) { argument 199 this.rxBytes += another.rxBytes; 200 this.rxPackets += another.rxPackets; 201 this.txBytes += another.txBytes; 202 this.txPackets += another.txPackets; 203 this.operations += another.operations; 480 * Combine all values from another {@link NetworkStats} into this object. 482 public void combineAllValues(NetworkStats another) { argument 484 for (int i = 0; i < another.size; i++) { 485 entry = 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/hardware/input/ |
H A D | KeyboardLayout.java | 145 public int compareTo(KeyboardLayout another) { argument 148 int result = Integer.compare(another.mPriority, mPriority); 150 result = mLabel.compareToIgnoreCase(another.mLabel); 153 result = mCollection.compareToIgnoreCase(another.mCollection);
|
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkIdentitySet.java | 164 public int compareTo(NetworkIdentitySet another) { argument 166 if (another.isEmpty()) return 1; 169 final NetworkIdentity anotherIdent = another.iterator().next();
|
H A D | NetworkStatsCollection.java | 427 public void recordCollection(NetworkStatsCollection another) { argument 428 for (int i = 0; i < another.mStats.size(); i++) { 429 final Key key = another.mStats.keyAt(i); 430 final NetworkStatsHistory value = another.mStats.valueAt(i); 807 public int compareTo(Key another) { argument 809 if (ident != null && another.ident != null) { 810 res = ident.compareTo(another.ident); 813 res = Integer.compare(uid, another.uid); 816 res = Integer.compare(set, another.set); 819 res = Integer.compare(tag, another [all...] |
/frameworks/rs/script_api/ |
H A D | rs_convert.spec | 20 The functions below convert from a numerical vector type to another, or 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 D | rs_quaternion.spec | 132 Creates a quaternion from its four components or from another quaternion. 205 summary: Multiply a quaternion by a scalar or another quaternion 207 Multiplies a quaternion by a scalar or by another quaternion, e.g
|
H A D | rs_matrix.spec | 219 Set the elements of a matrix from an array of floats or from another matrix. 394 summary: Multiply a matrix by a vector or another matrix
|
H A D | rs_math.spec | 590 summary: Copies the sign of a number to another
|
/frameworks/support/app-toolkit/core-testing/src/androidTest/java/androidx/arch/core/executor/testing/ |
H A D | CountingTaskExecutorRuleTest.java | 85 LatchRunnable another = runOnIO(); 89 another.startAndFinish();
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | LocalePicker.java | 83 public int compareTo(LocaleInfo another) { argument 84 return sCollator.compare(this.label, another.label);
|
/frameworks/support/jetifier/jetifier/processor/src/test/resources/changeDetectionTest/ |
H A D | testPreference.class | ... Preference) android.support.v7.preference.Preference another
final void setOnPreferenceChangeInternalListener (android.support.v7.preference ... |
/frameworks/base/core/java/android/preference/ |
H A D | Preference.java | 1256 * @param another The Preference to compare to this one. 1257 * @return 0 if the same; less than 0 if this Preference sorts ahead of <var>another</var>; 1258 * greater than 0 if this Preference sorts after <var>another</var>. 1261 public int compareTo(Preference another) { argument 1262 if (mOrder != another.mOrder) { 1264 return mOrder - another.mOrder; 1265 } else if (mTitle == another.mTitle) { 1270 } else if (another.mTitle == null) { 1274 return CharSequences.compareToIgnoreCase(mTitle, another.mTitle);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
H A D | CachedBluetoothDevice.java | 790 public int compareTo(CachedBluetoothDevice another) { argument 792 int comparison = (another.isConnected() ? 1 : 0) - (isConnected() ? 1 : 0); 796 comparison = (another.getBondState() == BluetoothDevice.BOND_BONDED ? 1 : 0) - 801 comparison = (another.mJustDiscovered ? 1 : 0) - (mJustDiscovered ? 1 : 0); 805 comparison = another.mRssi - mRssi; 809 return mName.compareTo(another.mName);
|
/frameworks/support/preference/src/main/java/androidx/preference/ |
H A D | Preference.java | 1178 * @param another The Preference to compare to this one. 1179 * @return 0 if the same; less than 0 if this Preference sorts ahead of <var>another</var>; 1180 * greater than 0 if this Preference sorts after <var>another</var>. 1183 public int compareTo(@NonNull Preference another) { argument 1184 if (mOrder != another.mOrder) { 1186 return mOrder - another.mOrder; 1187 } else if (mTitle == another.mTitle) { 1192 } else if (another.mTitle == null) { 1196 return mTitle.toString().compareToIgnoreCase(another.mTitle.toString());
|
/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 | 921 public int compareTo(ActivityResolveInfo another) { argument 922 return Float.floatToIntBits(another.weight) - Float.floatToIntBits(weight);
|
/frameworks/base/media/java/android/media/ |
H A D | Utils.java | 64 * @param another another sorted set of non-intersecting ranges in ascending order 68 Range<T>[] intersectSortedDistinctRanges(Range<T>[] one, Range<T>[] another) { argument 71 for (Range<T> range: another) {
|
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/ |
H A D | ActivityChooserModel.java | 897 public int compareTo(ActivityResolveInfo another) { argument 898 return Float.floatToIntBits(another.weight) - Float.floatToIntBits(weight);
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
H A D | FusedPrintersProvider.java | 560 // Cannot start a loader while starting another, hence delay this loader 782 public int compareTo(PrinterRecord another) { argument 783 return Float.floatToIntBits(another.weight) - Float.floatToIntBits(weight);
|
/frameworks/base/core/java/android/view/ |
H A D | ViewGroup.java | 837 * Clears the default-focus chain from {@param child} up to the first parent which has another 8602 public int compareTo(ViewLocationHolder another) { argument 8604 if (another == null) { 8608 int boundsResult = compareBoundsOfTree(this, another); 8615 return mView.getAccessibilityViewId() - another.mView.getAccessibilityViewId();
|