Home
last modified time | relevance | path

Searched refs:another (Results 1 – 25 of 56) sorted by relevance

123

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DMediaDevice.java132 public int compareTo(MediaDevice another) { in compareTo() argument
134 if (isConnected() ^ another.isConnected()) { in compareTo()
145 } else if (another.mType == MediaDeviceType.TYPE_PHONE_DEVICE) { in compareTo()
151 } else if (another.isCarKitDevice()) { in compareTo()
158 } else if (TextUtils.equals(lastSelectedDevice, another.getId())) { in compareTo()
162 if ((mConnectedRecord != another.mConnectedRecord) in compareTo()
163 && (another.mConnectedRecord > 0 || mConnectedRecord > 0)) { in compareTo()
164 return (another.mConnectedRecord - mConnectedRecord); in compareTo()
168 if (mType == another.mType) { in compareTo()
170 final String s2 = another.getName(); in compareTo()
[all …]
/frameworks/base/core/java/android/util/
DRational.java470 public int compareTo(Rational another) { in compareTo() argument
471 checkNotNull(another, "another must not be null"); in compareTo()
473 if (equals(another)) { in compareTo()
477 } else if (another.isNaN()) { // the other NaN is greater than this non-NaN value in compareTo()
479 } else if (isPosInf() || another.isNegInf()) { in compareTo()
481 } else if (isNegInf() || another.isPosInf()) { in compareTo()
488 long thisNumerator = ((long)mNumerator) * another.mDenominator; // long to avoid overflow in compareTo()
489 long otherNumerator = ((long)another.mNumerator) * mDenominator; // long to avoid overflow in compareTo()
/frameworks/base/core/java/android/net/
DNetworkIdentity.java224 public int compareTo(NetworkIdentity another) { in compareTo() argument
225 int res = Integer.compare(mType, another.mType); in compareTo()
227 res = Integer.compare(mSubType, another.mSubType); in compareTo()
229 if (res == 0 && mSubscriberId != null && another.mSubscriberId != null) { in compareTo()
230 res = mSubscriberId.compareTo(another.mSubscriberId); in compareTo()
232 if (res == 0 && mNetworkId != null && another.mNetworkId != null) { in compareTo()
233 res = mNetworkId.compareTo(another.mNetworkId); in compareTo()
236 res = Boolean.compare(mRoaming, another.mRoaming); in compareTo()
239 res = Boolean.compare(mMetered, another.mMetered); in compareTo()
242 res = Boolean.compare(mDefaultNetwork, another.mDefaultNetwork); in compareTo()
DNetworkPolicy.java189 public int compareTo(NetworkPolicy another) { in compareTo() argument
190 if (another == null || another.limitBytes == LIMIT_DISABLED) { in compareTo()
194 if (limitBytes == LIMIT_DISABLED || another.limitBytes < limitBytes) { in compareTo()
DNetworkStats.java386 public void add(Entry another) { in add() argument
387 this.rxBytes += another.rxBytes; in add()
388 this.rxPackets += another.rxPackets; in add()
389 this.txBytes += another.txBytes; in add()
390 this.txPackets += another.txPackets; in add()
391 this.operations += another.operations; in add()
731 public @NonNull NetworkStats add(@NonNull NetworkStats another) { in add() argument
733 ret.combineAllValues(another); in add()
741 public void combineAllValues(@NonNull NetworkStats another) { in combineAllValues() argument
743 for (int i = 0; i < another.size; i++) { in combineAllValues()
[all …]
/frameworks/base/core/java/android/hardware/input/
DKeyboardLayout.java145 public int compareTo(KeyboardLayout another) { in compareTo() argument
148 int result = Integer.compare(another.mPriority, mPriority); in compareTo()
150 result = mLabel.compareToIgnoreCase(another.mLabel); in compareTo()
153 result = mCollection.compareToIgnoreCase(another.mCollection); in compareTo()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DAppItem.java66 public int compareTo(AppItem another) { in compareTo() argument
67 int comparison = Integer.compare(category, another.category); in compareTo()
69 comparison = Long.compare(another.total, total); in compareTo()
/frameworks/base/core/java/com/android/internal/util/
DCharSequences.java121 public static int compareToIgnoreCase(CharSequence me, CharSequence another) {
123 int myLen = me.length(), anotherLen = another.length();
129 - Character.toLowerCase(another.charAt(anotherPos++))) != 0) {
/frameworks/base/services/core/java/com/android/server/net/
DNetworkIdentitySet.java164 public int compareTo(NetworkIdentitySet another) { in compareTo() argument
166 if (another.isEmpty()) return 1; in compareTo()
169 final NetworkIdentity anotherIdent = another.iterator().next(); in compareTo()
DNetworkStatsCollection.java403 public void recordCollection(NetworkStatsCollection another) { in recordCollection() argument
404 for (int i = 0; i < another.mStats.size(); i++) { in recordCollection()
405 final Key key = another.mStats.keyAt(i); in recordCollection()
406 final NetworkStatsHistory value = another.mStats.valueAt(i); in recordCollection()
783 public int compareTo(Key another) { in compareTo() argument
785 if (ident != null && another.ident != null) { in compareTo()
786 res = ident.compareTo(another.ident); in compareTo()
789 res = Integer.compare(uid, another.uid); in compareTo()
792 res = Integer.compare(set, another.set); in compareTo()
795 res = Integer.compare(tag, another.tag); in compareTo()
/frameworks/rs/script_api/
Drs_convert.spec20 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.
/frameworks/compile/slang/tests/F_foreach_from_kernel/
Dstderr.txt.expect1 foreach_from_kernel.rscript:13:3: error: Invalid kernel launch call made from inside another kernel.
/frameworks/base/services/tests/rescueparty/
Dhow_to_run.txt5 # In another terminal:
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDevice.java704 public int compareTo(CachedBluetoothDevice another) { in compareTo() argument
706 int comparison = (another.isConnected() ? 1 : 0) - (isConnected() ? 1 : 0); in compareTo()
710 comparison = (another.getBondState() == BluetoothDevice.BOND_BONDED ? 1 : 0) - in compareTo()
715 comparison = (another.mJustDiscovered ? 1 : 0) - (mJustDiscovered ? 1 : 0); in compareTo()
719 comparison = another.mRssi - mRssi; in compareTo()
723 return getName().compareTo(another.getName()); in compareTo()
/frameworks/base/core/java/android/preference/
DPreference.java1290 public int compareTo(Preference another) { in compareTo() argument
1291 if (mOrder != another.mOrder) { in compareTo()
1293 return mOrder - another.mOrder; in compareTo()
1294 } else if (mTitle == another.mTitle) { in compareTo()
1299 } else if (another.mTitle == null) { in compareTo()
1303 return CharSequences.compareToIgnoreCase(mTitle, another.mTitle); in compareTo()
/frameworks/base/core/proto/android/telecomm/
Denums.proto66 * Indicates that a call is currently connected to another party and a communication channel is
195 * on another device where the call was ringing.
200 * Disconnected because the call was pulled from the current device to another device.
/frameworks/base/core/proto/android/app/
Denums.proto64 // Process is hosting a service bound by the system or another foreground app.
95 // Process is being cached for later use and is a client of another cached
/frameworks/hardware/interfaces/cameraservice/service/2.0/
Dtypes.hal30 * Camera is in use by another app and cannot be used exclusively.
/frameworks/base/core/proto/android/service/
Drestricted_image.proto55 // Metadata about the image. Typically this has another proto schema,
/frameworks/base/core/java/android/widget/
DExpandableListConnector.java911 public int compareTo(GroupMetadata another) { in compareTo() argument
912 if (another == null) { in compareTo()
916 return gPos - another.gPos; in compareTo()
/frameworks/base/media/java/android/media/
DUtils.java68 Range<T>[] intersectSortedDistinctRanges(Range<T>[] one, Range<T>[] another) { in intersectSortedDistinctRanges() argument
71 for (Range<T> range: another) { in intersectSortedDistinctRanges()
/frameworks/base/core/java/com/android/internal/app/
DLocalePicker.java91 public int compareTo(LocaleInfo another) { in compareTo() argument
92 return sCollator.compare(this.label, another.label); in compareTo()
/frameworks/hardware/interfaces/bufferhub/1.0/
DIBufferClient.hal24 * another IBufferClient via IBufferHub::import function.
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DEventLogTags.logtags15 ## keyguardOccluded: 1: Keyguard active, but another activity is occluding it
/frameworks/rs/script_api/include/
Drs_quaternion.rsh145 * Creates a quaternion from its four components or from another quaternion.
225 * rsQuaternionMultiply: Multiply a quaternion by a scalar or another quaternion
227 * Multiplies a quaternion by a scalar or by another quaternion, e.g

123