/frameworks/base/core/java/android/util/ |
D | Rational.java | 466 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/ |
D | NetworkIdentity.java | 202 public int compareTo(NetworkIdentity another) { in compareTo() argument 203 int res = Integer.compare(mType, another.mType); in compareTo() 205 res = Integer.compare(mSubType, another.mSubType); in compareTo() 207 if (res == 0 && mSubscriberId != null && another.mSubscriberId != null) { in compareTo() 208 res = mSubscriberId.compareTo(another.mSubscriberId); in compareTo() 210 if (res == 0 && mNetworkId != null && another.mNetworkId != null) { in compareTo() 211 res = mNetworkId.compareTo(another.mNetworkId); in compareTo() 214 res = Boolean.compare(mRoaming, another.mRoaming); in compareTo() 217 res = Boolean.compare(mMetered, another.mMetered); in compareTo()
|
D | NetworkPolicy.java | 145 public int compareTo(NetworkPolicy another) { in compareTo() argument 146 if (another == null || another.limitBytes == LIMIT_DISABLED) { in compareTo() 150 if (limitBytes == LIMIT_DISABLED || another.limitBytes < limitBytes) { in compareTo()
|
D | NetworkStats.java | 153 public void add(Entry another) { in add() argument 154 this.rxBytes += another.rxBytes; in add() 155 this.rxPackets += another.rxPackets; in add() 156 this.txBytes += another.txBytes; in add() 157 this.txPackets += another.txPackets; in add() 158 this.operations += another.operations; in add() 401 public void combineAllValues(NetworkStats another) { in combineAllValues() argument 403 for (int i = 0; i < another.size; i++) { in combineAllValues() 404 entry = another.getValues(i, entry); in combineAllValues()
|
/frameworks/base/core/java/android/hardware/input/ |
D | KeyboardLayout.java | 145 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/ |
D | AppItem.java | 66 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/ |
D | CharSequences.java | 117 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/ |
D | NetworkIdentitySet.java | 125 public int compareTo(NetworkIdentitySet another) { in compareTo() argument 127 if (another.isEmpty()) return 1; in compareTo() 130 final NetworkIdentity anotherIdent = another.iterator().next(); in compareTo()
|
D | NetworkStatsCollection.java | 290 public void recordCollection(NetworkStatsCollection another) { in recordCollection() argument 291 for (int i = 0; i < another.mStats.size(); i++) { in recordCollection() 292 final Key key = another.mStats.keyAt(i); in recordCollection() 293 final NetworkStatsHistory value = another.mStats.valueAt(i); in recordCollection() 644 public int compareTo(Key another) { in compareTo() argument 646 if (ident != null && another.ident != null) { in compareTo() 647 res = ident.compareTo(another.ident); in compareTo() 650 res = Integer.compare(uid, another.uid); in compareTo() 653 res = Integer.compare(set, another.set); in compareTo() 656 res = Integer.compare(tag, another.tag); in compareTo()
|
/frameworks/base/docs/html/training/secure-file-sharing/ |
D | index.jd | 30 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/ |
D | index.jd | 45 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/ |
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.
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDevice.java | 643 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/ |
D | index.jd | 38 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/compile/slang/tests/F_foreach_from_kernel/ |
D | stderr.txt.expect | 1 foreach_from_kernel.rs:13:3: error: Invalid kernel launch call made from inside another kernel.
|
/frameworks/base/docs/html/training/improving-layouts/ |
D | reusing-layouts.jd | 41 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 <include/>} tag), the
|
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
D | Preference.java | 1029 public int compareTo(@NonNull Preference another) { in compareTo() argument 1030 if (mOrder != another.mOrder) { in compareTo() 1032 return mOrder - another.mOrder; in compareTo() 1033 } else if (mTitle == another.mTitle) { in compareTo() 1038 } else if (another.mTitle == null) { in compareTo() 1042 return mTitle.toString().compareToIgnoreCase(another.mTitle.toString()); in compareTo()
|
/frameworks/base/core/java/android/preference/ |
D | Preference.java | 1115 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/ |
D | index.jd | 4 …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/ |
D | index.jd | 52 <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.
|
D | send-files.jd | 30 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/ |
D | relative.jd | 22 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/ |
D | audio-focus.jd | 109 <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 165 another app easier to hear without totally disrupting the audio from your own application.</p>
|
/frameworks/base/docs/html/training/wearables/notifications/ |
D | stacks.jd | 60 <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/docs/html/training/graphics/opengl/ |
D | motion.jd | 42 <p>In this lesson, you take another step forward into using OpenGL ES by learning how to add motion 49 another transformation matrix (a rotation matrix) and then combine it with your projection and
|