Home
last modified time | relevance | path

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

1234567891011

/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/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/tests/coretests/src/android/net/http/
DHttpResponseCacheTest.java58 HttpResponseCache another = HttpResponseCache.install(cacheDir, 10 * 1024 * 1024); in testSecondEquivalentInstallDoesNothing() local
59 assertSame(first, another); in testSecondEquivalentInstallDoesNothing()
64 HttpResponseCache another = HttpResponseCache.install(cacheDir, 8 * 1024 * 1024); in testInstallClosesPreviouslyInstalled() local
65 assertNotSame(first, another); in testInstallClosesPreviouslyInstalled()
/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/core/java/android/net/
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.java121 public void add(Entry another) { in add() argument
122 this.rxBytes += another.rxBytes; in add()
123 this.rxPackets += another.rxPackets; in add()
124 this.txBytes += another.txBytes; in add()
125 this.txPackets += another.txPackets; in add()
126 this.operations += another.operations; in add()
353 public void combineAllValues(NetworkStats another) { in combineAllValues() argument
355 for (int i = 0; i < another.size; i++) { in combineAllValues()
356 entry = another.getValues(i, entry); in combineAllValues()
/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/base/docs/html/training/basics/intents/
Dindex.jd37 To take the user from one activity to another, your app must use an {@link
49 interactions with other apps, such as start another app, receive a result from that app, and
59 <dd>Shows how to start another activity and receive a result from the activity.</dd>
Dresult.jd31 <p>Starting another activity doesn't have to be one-way. You can also start another activity and
41 sends the result as another {@link android.content.Intent} object. Your activity receives it 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/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/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.java1104 public int compareTo(Preference another) { in compareTo() argument
1105 if (mOrder != another.mOrder) { in compareTo()
1107 return mOrder - another.mOrder; in compareTo()
1108 } else if (mTitle == another.mTitle) { in compareTo()
1113 } else if (another.mTitle == null) { in compareTo()
1117 return CharSequences.compareToIgnoreCase(mTitle, another.mTitle); in compareTo()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsCollection.java227 public void recordCollection(NetworkStatsCollection another) { in recordCollection() argument
228 for (Map.Entry<Key, NetworkStatsHistory> entry : another.mStats.entrySet()) { in recordCollection()
530 public int compareTo(Key another) { in compareTo() argument
531 return Integer.compare(uid, another.uid); in compareTo()
/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/graphics/opengl/
Dmotion.jd42 <p>In this lesson, you take another step forward into using OpenGL ES by learning how to add motion
48 <p>Rotating a drawing object with OpenGL ES 2.0 is relatively simple. You create another
/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()
/frameworks/base/docs/html/training/wearables/apps/
Dpackaging.jd100 if you are using another IDE or another method of building.
144 <p>Android Studio doesn't compress your APK by default, but if you are using another build process,
/frameworks/base/docs/html/training/wearables/notifications/
Dstacks.jd58 <p>Later on, when you create another notification, specify
76 notification visible at the top. You can order notifications in another fashion by calling
116 You can use this style, another one defined in {@link android.support.v4.app.NotificationCompat},
/frameworks/base/media/java/android/media/
DUtils.java61 Range<T>[] intersectSortedDistinctRanges(Range<T>[] one, Range<T>[] another) { in intersectSortedDistinctRanges() argument
64 for (Range<T> range: another) { in intersectSortedDistinctRanges()
/frameworks/base/docs/html/training/sharing/
Dindex.jd26 already exists in another application?</p>
/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()

1234567891011