Home
last modified time | relevance | path

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

12345678910>>...12

/aosp12/system/core/libutils/
H A DString16_test.cpp56 String16 another = tmp; in TEST() local
63 String16 another(std::move(tmp)); in TEST() local
114 String16 another = tmp; in TEST() local
123 String16 another(std::move(tmp)); in TEST() local
171 String16 another(u"nonstatic"); in TEST() local
172 another = tmp; in TEST()
179 String16 another(std::move(tmp)); in TEST() local
190 String16 another(tmp); in TEST() local
191 EXPECT_TRUE(another.size() == 0); in TEST()
195 String16 another("abcdef"); in TEST() local
[all …]
/aosp12/packages/apps/Settings/src/com/android/settings/vpn2/
H A DLegacyVpnPreference.java60 LegacyVpnPreference another = (LegacyVpnPreference) preference; in compareTo() local
62 if ((result = another.mState - mState) == 0 && in compareTo()
63 (result = mProfile.name.compareToIgnoreCase(another.mProfile.name)) == 0 && in compareTo()
64 (result = mProfile.type - another.mProfile.type) == 0) { in compareTo()
65 result = mProfile.key.compareTo(another.mProfile.key); in compareTo()
70 AppPreference another = (AppPreference) preference; in compareTo() local
71 if (mState != STATE_CONNECTED && another.getState() == AppPreference.STATE_CONNECTED) { in compareTo()
H A DAppPreference.java125 AppPreference another = (AppPreference) preference; in compareTo() local
127 if ((result = another.mState - mState) == 0 && in compareTo()
128 (result = mName.compareToIgnoreCase(another.mName)) == 0 && in compareTo()
129 (result = mPackageName.compareTo(another.mPackageName)) == 0) { in compareTo()
130 result = mUserId - another.mUserId; in compareTo()
135 LegacyVpnPreference another = (LegacyVpnPreference) preference; in compareTo() local
136 return -another.compareTo(this); in compareTo()
/aosp12/frameworks/base/core/java/android/net/
H A DNetworkIdentity.java231 public int compareTo(NetworkIdentity another) { in compareTo() argument
232 int res = Integer.compare(mType, another.mType); in compareTo()
234 res = Integer.compare(mSubType, another.mSubType); in compareTo()
236 if (res == 0 && mSubscriberId != null && another.mSubscriberId != null) { in compareTo()
237 res = mSubscriberId.compareTo(another.mSubscriberId); in compareTo()
239 if (res == 0 && mNetworkId != null && another.mNetworkId != null) { in compareTo()
240 res = mNetworkId.compareTo(another.mNetworkId); in compareTo()
243 res = Boolean.compare(mRoaming, another.mRoaming); in compareTo()
246 res = Boolean.compare(mMetered, another.mMetered); in compareTo()
249 res = Boolean.compare(mDefaultNetwork, another.mDefaultNetwork); in compareTo()
[all …]
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
H A DMediaDevice.java323 public int compareTo(MediaDevice another) { in compareTo() argument
325 if (isConnected() ^ another.isConnected()) { in compareTo()
333 if (mType == another.mType) { in compareTo()
337 } else if (another.isFastPairDevice()) { in compareTo()
344 } else if (another.isCarKitDevice()) { in compareTo()
353 } else if (TextUtils.equals(lastSelectedDevice, another.getId())) { in compareTo()
357 if ((mConnectedRecord != another.mConnectedRecord) in compareTo()
358 && (another.mConnectedRecord > 0 || mConnectedRecord > 0)) { in compareTo()
359 return (another.mConnectedRecord - mConnectedRecord); in compareTo()
365 final String s2 = another.getName(); in compareTo()
[all …]
/aosp12/frameworks/base/core/java/android/util/
H A DRational.java472 public int compareTo(Rational another) { in compareTo() argument
473 checkNotNull(another, "another must not be null"); in compareTo()
475 if (equals(another)) { in compareTo()
479 } else if (another.isNaN()) { // the other NaN is greater than this non-NaN value in compareTo()
481 } else if (isPosInf() || another.isNegInf()) { in compareTo()
483 } else if (isNegInf() || another.isPosInf()) { in compareTo()
490 long thisNumerator = ((long)mNumerator) * another.mDenominator; // long to avoid overflow in compareTo()
491 long otherNumerator = ((long)another.mNumerator) * mDenominator; // long to avoid overflow in compareTo()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/
H A DSignedLongLong.java70 public int compareTo(SignedLongLong another) { in compareTo() argument
71 if (mMostSigBits == another.mMostSigBits) { in compareTo()
72 if (mLeastSigBits == another.mLeastSigBits) { in compareTo()
75 if (mLeastSigBits < another.mLeastSigBits) { in compareTo()
80 if (mMostSigBits < another.mMostSigBits) { in compareTo()
/aosp12/system/libufdt/utils/tests/data/
H A Dmkdtimg.cfg11 id=/:another_board_id # override with another path
14 rev=0x201 # override with another value
17 custom0=0xdef # override with another value
20 custom0=0xdee # override with another value
H A Dmkdtboimg.cfg11 id=0xddccbbaa # override with another path
16 rev=0x201 # override with another value
19 flags=0xd01 # override with another value, do zlib compression
22 flags=0xd02 # override with another value, do gzip compression
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/
H A DPersistentSystemFontConfigTest.java64 PersistentSystemFontConfig.Config another = new PersistentSystemFontConfig.Config(); in testWriteRead() local
65 PersistentSystemFontConfig.loadFromXml(bais, another); in testWriteRead()
67 assertThat(another.lastModifiedMillis).isEqualTo(expectedModifiedDate); in testWriteRead()
68 assertThat(another.updatedFontDirs).containsExactly("~~abc", "~~def"); in testWriteRead()
69 assertThat(another.fontFamilies).containsExactly(fontFamily); in testWriteRead()
/aosp12/packages/apps/Settings/src/com/android/settings/accounts/
H A DProviderEntry.java30 public int compareTo(ProviderEntry another) { in compareTo() argument
34 if (another.name == null) { in compareTo()
37 return CharSequences.compareToIgnoreCase(name, another.name); in compareTo()
/aosp12/frameworks/base/core/java/android/hardware/input/
H A 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()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
H A DBluetoothDevicePreference.java146 public int compareTo(@NonNull Preference another) { in compareTo() argument
147 if (!(another instanceof BluetoothDevicePreference)) { in compareTo()
149 return super.compareTo(another); in compareTo()
153 .compareTo(((BluetoothDevicePreference) another).mCachedDevice); in compareTo()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A 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()
/aosp12/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DBluetoothDevicePreference.java245 public int compareTo(Preference another) { in compareTo() argument
246 if (!(another instanceof BluetoothDevicePreference)) { in compareTo()
248 return super.compareTo(another); in compareTo()
254 .compareTo(((BluetoothDevicePreference) another).mCachedDevice); in compareTo()
256 return mCurrentTime > ((BluetoothDevicePreference) another).mCurrentTime ? 1 : -1; in compareTo()
258 return super.compareTo(another); in compareTo()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapFolderElement.java407 public int compareTo(BluetoothMapFolderElement another) { in compareTo() argument
408 if (another == null) { in compareTo()
411 int ret = mName.compareToIgnoreCase(another.mName); in compareTo()
414 ret = mSubFolders.size() - another.mSubFolders.size(); in compareTo()
419 another.mSubFolders.get(subfolder.getName()); in compareTo()
437 + " another.mSubFolders.size(): " + another.mSubFolders.size()); in compareTo()
442 Log.i(TAG, "mName: " + mName + " another.mName: " + another.mName); in compareTo()
/aosp12/packages/apps/Settings/src/com/android/settings/datausage/
H A DCycleAdapter.java209 final CycleItem another = (CycleItem) o; in equals() local
210 return start == another.start && end == another.end; in equals()
216 public int compareTo(CycleItem another) { in compareTo() argument
217 return Long.compare(start, another.start); in compareTo()
/aosp12/packages/apps/TV/src/com/android/tv/data/
H A DChannelNumber.java83 public int compareTo(@NonNull ChannelNumber another) { in compareTo() argument
87 int opponentMajor = Integer.parseInt(another.majorNumber); in compareTo()
88 int opponentMinor = another.hasDelimiter ? Integer.parseInt(another.minorNumber) : 0; in compareTo()
/aosp12/frameworks/base/core/java/com/android/internal/util/
H A 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) {
/aosp12/packages/apps/TV/tuner/src/com/android/tv/tuner/dvb/
H A DDvbDeviceAccessor.java219 public int compareTo(@NonNull DvbDeviceInfoWrapper another) { in compareTo() argument
220 if (getAdapterId() != another.getAdapterId()) { in compareTo()
221 return getAdapterId() - another.getAdapterId(); in compareTo()
223 return getDeviceId() - another.getDeviceId(); in compareTo()
/aosp12/frameworks/base/
H A DOWNERS.md58 # Complete include of top-level owners from another repo
60 # Partial include of top-level owners from another repo
64 # Complete include of subdirectory owners from another repo
66 # Partial include of subdirectory owners from another repo
/aosp12/packages/apps/TV/common/src/com/android/tv/common/customization/
H A DCustomAction.java50 public int compareTo(@NonNull CustomAction another) { in compareTo() argument
51 return mPositionPriority - another.mPositionPriority; in compareTo()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DControlPoint.java55 public int compareTo(Object another) { in compareTo() argument
56 ControlPoint p = (ControlPoint) another; in compareTo()
/aosp12/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkIdentitySet.java173 public int compareTo(NetworkIdentitySet another) { in compareTo() argument
175 if (another.isEmpty()) return 1; in compareTo()
178 final NetworkIdentity anotherIdent = another.iterator().next(); in compareTo()
/aosp12/system/bt/gd/hci/facade/
H A Dle_initiator_address_facade.cc90 AddressWithType another = address_manager_->GetAnotherAddress(); in GetAnotherAddress() local
92 bluetooth_address->set_address(another.GetAddress().ToString()); in GetAnotherAddress()
93 …response->set_type(static_cast<::bluetooth::facade::BluetoothAddressTypeEnum>(another.GetAddressTy… in GetAnotherAddress()

12345678910>>...12