Home
last modified time | relevance | path

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

12345678910>>...13

/frameworks/base/wifi/java/android/net/wifi/passpoint/
DWifiPasspointPolicy.java281 public int compareTo(WifiPasspointPolicy another) { in compareTo() argument
283 Log.d(TAG, "another:" + another); in compareTo()
285 if (another == null) { in compareTo()
287 } else if (this.mIsHomeSp == true && another.isHomeSp() == false) { in compareTo()
291 } else if ((this.mIsHomeSp == true && another.isHomeSp() == true)) { in compareTo()
294 if (this.mCredentialPriority < another.getCredentialPriority()) { in compareTo()
297 } else if (this.mCredentialPriority == another.getCredentialPriority()) { in compareTo()
300 if (this.mName.compareTo(another.mName) != 0) { in compareTo()
301 Log.d(TAG, "compare mName return:" + this.mName.compareTo(another.mName)); in compareTo()
302 return this.mName.compareTo(another.mName); in compareTo()
[all …]
DWifiPasspointCredential.java631 public int compareTo(WifiPasspointCredential another) { in compareTo() argument
634 if (mCrednetialPriority < another.mCrednetialPriority) { in compareTo()
636 } else if (mCrednetialPriority == another.mCrednetialPriority) { in compareTo()
637 return this.mType.compareTo(another.mType); in compareTo()
/frameworks/base/core/java/android/util/
DRational.java466 public int compareTo(Rational another) { in compareTo() argument
467 checkNotNull(another, "another must not be null"); in compareTo()
469 if (equals(another)) { in compareTo()
473 } else if (another.isNaN()) { // the other NaN is greater than this non-NaN value in compareTo()
475 } else if (isPosInf() || another.isNegInf()) { in compareTo()
477 } else if (isNegInf() || another.isPosInf()) { in compareTo()
484 long thisNumerator = ((long)mNumerator) * another.mDenominator; // long to avoid overflow in compareTo()
485 long otherNumerator = ((long)another.mNumerator) * mDenominator; // long to avoid overflow in compareTo()
/frameworks/base/core/java/android/net/
DNetworkIdentity.java189 public int compareTo(NetworkIdentity another) { in compareTo() argument
190 int res = Integer.compare(mType, another.mType); in compareTo()
192 res = Integer.compare(mSubType, another.mSubType); in compareTo()
194 if (res == 0 && mSubscriberId != null && another.mSubscriberId != null) { in compareTo()
195 res = mSubscriberId.compareTo(another.mSubscriberId); in compareTo()
197 if (res == 0 && mNetworkId != null && another.mNetworkId != null) { in compareTo()
198 res = mNetworkId.compareTo(another.mNetworkId); in compareTo()
201 res = Boolean.compare(mRoaming, another.mRoaming); in compareTo()
DNetworkPolicy.java135 public int compareTo(NetworkPolicy another) { in compareTo() argument
136 if (another == null || another.limitBytes == LIMIT_DISABLED) { in compareTo()
140 if (limitBytes == LIMIT_DISABLED || another.limitBytes < limitBytes) { in compareTo()
DNetworkStats.java130 public void add(Entry another) { in add() argument
131 this.rxBytes += another.rxBytes; in add()
132 this.rxPackets += another.rxPackets; in add()
133 this.txBytes += another.txBytes; in add()
134 this.txPackets += another.txPackets; in add()
135 this.operations += another.operations; in add()
362 public void combineAllValues(NetworkStats another) { in combineAllValues() argument
364 for (int i = 0; i < another.size; i++) { in combineAllValues()
365 entry = another.getValues(i, entry); in combineAllValues()
/frameworks/base/core/java/android/hardware/input/
DKeyboardLayout.java100 public int compareTo(KeyboardLayout another) { in compareTo() argument
103 int result = Integer.compare(another.mPriority, mPriority); in compareTo()
105 result = mLabel.compareToIgnoreCase(another.mLabel); in compareTo()
108 result = mCollection.compareToIgnoreCase(another.mCollection); in compareTo()
/frameworks/base/core/java/com/android/internal/util/
DCharSequences.java117 public static int compareToIgnoreCase(CharSequence me, CharSequence another) {
119 int myLen = me.length(), anotherLen = another.length();
125 - Character.toLowerCase(another.charAt(anotherPos++))) != 0) {
/frameworks/base/services/core/java/com/android/server/net/
DNetworkIdentitySet.java98 public int compareTo(NetworkIdentitySet another) { in compareTo() argument
100 if (another.isEmpty()) return 1; in compareTo()
103 final NetworkIdentity anotherIdent = another.iterator().next(); in compareTo()
DNetworkStatsCollection.java264 public void recordCollection(NetworkStatsCollection another) { in recordCollection() argument
265 for (int i = 0; i < another.mStats.size(); i++) { in recordCollection()
266 final Key key = another.mStats.keyAt(i); in recordCollection()
267 final NetworkStatsHistory value = another.mStats.valueAt(i); in recordCollection()
624 public int compareTo(Key another) { in compareTo() argument
626 if (ident != null && another.ident != null) { in compareTo()
627 res = ident.compareTo(another.ident); in compareTo()
630 res = Integer.compare(uid, another.uid); in compareTo()
633 res = Integer.compare(set, another.set); in compareTo()
636 res = Integer.compare(tag, another.tag); in compareTo()
/frameworks/base/docs/html/training/secure-file-sharing/
Dindex.jd30 Apps often have a need to offer one or more of their files to another app. For example, an image
36 In all cases, the only secure way to offer a file from your app to another app is to send the
51 This class explains how to securely share files from your app to another app using content URIs
63 Learn how to offer a file to another app by generating a content URI for the file,
68 Learn how to request a file shared by another app, receive the content URI for the file,
/frameworks/base/docs/html/training/basics/activity-lifecycle/
Dindex.jd45 action that starts another activity or switches to another app, the system calls another set of
51 you might pause the video and terminate the network connection when the user switches to another
/frameworks/rs/api/
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.
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDevice.java643 public int compareTo(CachedBluetoothDevice another) { in compareTo() argument
645 int comparison = (another.isConnected() ? 1 : 0) - (isConnected() ? 1 : 0); in compareTo()
649 comparison = (another.getBondState() == BluetoothDevice.BOND_BONDED ? 1 : 0) - in compareTo()
654 comparison = (another.mVisible ? 1 : 0) - (mVisible ? 1 : 0); in compareTo()
658 comparison = another.mRssi - mRssi; in compareTo()
662 return mName.compareTo(another.mName); in compareTo()
/frameworks/base/docs/html/training/basics/intents/
Dindex.jd38 To take the user from one activity to another, your app must use an {@link
50 interactions with other apps, such as start another app, receive a result from that app, and
60 <dd>Shows how to start another activity and receive a result from the activity.</dd>
/frameworks/support/v7/preference/src/android/support/v7/preference/
DPreference.java996 public int compareTo(@NonNull Preference another) { in compareTo() argument
997 if (mOrder != another.mOrder) { in compareTo()
999 return mOrder - another.mOrder; in compareTo()
1000 } else if (mTitle == another.mTitle) { in compareTo()
1005 } else if (another.mTitle == null) { in compareTo()
1009 return mTitle.toString().compareToIgnoreCase(another.mTitle.toString()); in compareTo()
/frameworks/base/docs/html/training/improving-layouts/
Dreusing-layouts.jd41 to embed another layout inside the current layout.</p>
121 when including one layout within another. For example, if your main layout is a vertical {@link
124 own root view. However, using another {@link android.widget.LinearLayout} as the root for the
148 <p>Now, when you include this layout in another layout (using the {@code &lt;include/&gt;} tag), the
/frameworks/base/core/java/android/preference/
DPreference.java1115 public int compareTo(Preference another) { in compareTo() argument
1116 if (mOrder != another.mOrder) { in compareTo()
1118 return mOrder - another.mOrder; in compareTo()
1119 } else if (mTitle == another.mTitle) { in compareTo()
1124 } else if (another.mTitle == null) { in compareTo()
1128 return CharSequences.compareToIgnoreCase(mTitle, another.mTitle); in compareTo()
/frameworks/base/docs/html/guide/practices/app-design/
Dindex.jd4 …e and how to use them. Later, you learn the nuances of the platform. Put another way: first you le…
13 qualities at one time or another. However, each platform achieves them in
/frameworks/base/docs/html/training/beam-files/
Dindex.jd52 <dd>Learn how to set up your app to send files to another device.</dd>
58 Learn how to set up your app to receive files sent by another device.
Dsend-files.jd30 This lesson shows you how to design your app to send large files to another device using
131 >android:minSdkVersion</a></code> to another value as necessary, and test for the platform
198 to send files to another NFC-enabled device. In this callback method, return an array of
223 * Create content URIs as needed to share with another device
271 To transfer one or more files to another NFC-enabled device, get a file URI (a URI with a
/frameworks/base/docs/html/guide/topics/ui/layout/
Drelative.jd22 the left-of or below another view) or in positions relative to the parent {@link
37 make one below another, centered in the screen, centered left, and so on. By default, all child
68 references another view in the layout against which the view should be positioned.</p>
/frameworks/base/docs/html/training/managing-audio/
Daudio-focus.jd109 <p>Whenever another app requests audio focus as described above, its choice between permanent and
116 <p>If your app can request audio focus, it follows that it will in turn lose that focus when another
131 <p>If the audio focus loss is permanent, it’s assumed that another application is now being used to
164 another app easier to hear without totally disrupting the audio from your own application.</p>
/frameworks/base/docs/html/training/wearables/notifications/
Dstacks.jd60 <p>Later on, when you create another notification, specify
78 notification visible at the top. You can order notifications in another fashion by calling
118 You can use this style, another one defined in {@link android.support.v4.app.NotificationCompat},
/frameworks/base/core/java/com/android/internal/app/
DLocalePicker.java81 public int compareTo(LocaleInfo another) { in compareTo() argument
82 return sCollator.compare(this.label, another.label); in compareTo()

12345678910>>...13