Home
last modified time | relevance | path

Searched refs:compare (Results 1 – 25 of 426) sorted by relevance

12345678910>>...18

/packages/services/Car/cpp/evs/sampleDriver/hidl/
DConfigManagerUtil.cpp31 if (!trimmed.compare("BRIGHTNESS")) { in convertToEvsCameraParam()
33 } else if (!trimmed.compare("CONTRAST")) { in convertToEvsCameraParam()
35 } else if (!trimmed.compare("AUTOGAIN")) { in convertToEvsCameraParam()
37 } else if (!trimmed.compare("GAIN")) { in convertToEvsCameraParam()
39 } else if (!trimmed.compare("AUTO_WHITE_BALANCE")) { in convertToEvsCameraParam()
41 } else if (!trimmed.compare("WHITE_BALANCE_TEMPERATURE")) { in convertToEvsCameraParam()
43 } else if (!trimmed.compare("SHARPNESS")) { in convertToEvsCameraParam()
45 } else if (!trimmed.compare("AUTO_EXPOSURE")) { in convertToEvsCameraParam()
47 } else if (!trimmed.compare("ABSOLUTE_EXPOSURE")) { in convertToEvsCameraParam()
49 } else if (!trimmed.compare("ABSOLUTE_FOCUS")) { in convertToEvsCameraParam()
[all …]
/packages/services/Car/cpp/evs/sampleDriver/aidl/src/
DConfigManagerUtil.cpp34 if (!trimmed.compare("BRIGHTNESS")) { in convertToEvsCameraParam()
36 } else if (!trimmed.compare("CONTRAST")) { in convertToEvsCameraParam()
38 } else if (!trimmed.compare("AUTOGAIN")) { in convertToEvsCameraParam()
40 } else if (!trimmed.compare("GAIN")) { in convertToEvsCameraParam()
42 } else if (!trimmed.compare("AUTO_WHITE_BALANCE")) { in convertToEvsCameraParam()
44 } else if (!trimmed.compare("WHITE_BALANCE_TEMPERATURE")) { in convertToEvsCameraParam()
46 } else if (!trimmed.compare("SHARPNESS")) { in convertToEvsCameraParam()
48 } else if (!trimmed.compare("AUTO_EXPOSURE")) { in convertToEvsCameraParam()
50 } else if (!trimmed.compare("ABSOLUTE_EXPOSURE")) { in convertToEvsCameraParam()
52 } else if (!trimmed.compare("ABSOLUTE_FOCUS")) { in convertToEvsCameraParam()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortingCursorWrapper.java203 int compare = 0; in binarySort() local
206 compare = -1; in binarySort()
208 compare = 1; in binarySort()
214 compare = Shared.compareToIgnoreCaseNullable(lhs, rhs); in binarySort()
217 compare = -Shared.compareToIgnoreCaseNullable(lhs, rhs); in binarySort()
226 if (compare == 0) { in binarySort()
227 compare = pivotId.compareTo(ids[mid]); in binarySort()
230 if (compare < 0) { in binarySort()
284 int compare = 0; in binarySort() local
287 compare = -1; in binarySort()
[all …]
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/policy/capabilities/
DCapability.kt28 else -> compare(other) == Comparison.Equivalent in isEquivalent()
38 fun isLessStrict(other: Capability) = compare(other) == Comparison.LessStrict in isLessStrict()
39 fun isSameOrLessStrict(other: Capability) = compare(other) != Comparison.Stricter in isLessStrict()
40 fun isStricter(other: Capability) = compare(other) == Comparison.Stricter in isLessStrict()
41 fun isSameOrStricter(other: Capability) = compare(other) != Comparison.LessStrict in isLessStrict()
43 fun compare(other: Capability): Comparison { in isLessStrict() method
46 is Persistence -> compare(other as Persistence) in isLessStrict()
47 is Encryption -> compare(other as Encryption) in isLessStrict()
48 is Ttl -> compare(other as Ttl) in isLessStrict()
49 is Queryable -> compare(other as Queryable) in isLessStrict()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/data/
DCity.kt102 override fun compare(c1: City, c2: City): Int { in compare() method in com.android.deskclock.data.City.UtcOffsetComparator
103 var result = mDelegate1.compare(c1, c2) in compare()
106 result = mDelegate2.compare(c1, c2) in compare()
122 override fun compare(c1: City, c2: City): Int { in compare() method in com.android.deskclock.data.City.UtcOffsetIndexComparator
142 override fun compare(c1: City, c2: City): Int { in compare() method in com.android.deskclock.data.City.NameComparator
143 var result = mDelegate.compare(c1, c2) in compare()
146 result = mNameCollator.compare(c1.phoneticName, c2.phoneticName) in compare()
163 override fun compare(c1: City, c2: City): Int { in compare() method in com.android.deskclock.data.City.NameIndexComparator
167 result = mNameCollator.compare(c1.indexString, c2.indexString) in compare()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/model/
DAbstractResolverComparatorTest.java53 assertEquals("Pinned ranks over unpinned", -1, comparator.compare(r1, r2)); in testPinned()
54 assertEquals("Unpinned ranks under pinned", 1, comparator.compare(r2, r1)); in testPinned()
70 assertEquals("Both pinned should rank alphabetically", -1, comparator.compare(r1, r2)); in testBothPinned()
84 assertEquals("PromoteToFirst ranks over non-cemented", -1, comparator.compare(r1, r2)); in testPromoteToFirst()
85 assertEquals("Non-cemented ranks under PromoteToFirst", 1, comparator.compare(r2, r1)); in testPromoteToFirst()
100 assertEquals("PromoteToFirst ranks over pinned", -1, comparator.compare(r1, r2)); in testPromoteToFirstOverPinned()
101 assertEquals("Pinned ranks under PromoteToFirst", 1, comparator.compare(r2, r1)); in testPromoteToFirstOverPinned()
121 public int compare(ResolveInfo lhs, ResolveInfo rhs) { in getTestComparator()
/packages/apps/TV/tests/common/src/com/android/tv/testing/
DComparatorTester.java134 private int compare(Object a, Object b) { in compare() method in ComparatorTester
139 compareValue = comparator.compare(a, b); in compare()
159 .that(Integer.signum(compare(reference, other))) in doTestEquivalanceGroupOrdering()
161 Integer.signum(Ints.compare(referenceIndex, otherIndex))); in doTestEquivalanceGroupOrdering()
180 .isEqualTo(compare(reference, other) == 0); in doTestEqualsCompatibility()
191 compare(obj, null); in testNullCompare()
203 compare(obj, ICanNotBeCompared.INSTANCE); in testClassCast()
/packages/apps/Settings/tests/componenttests/src/com/android/settingslib/applications/
DApplicationStateComponentTest.java89 assertThat(ApplicationsState.ALPHA_COMPARATOR.compare(entry1, entry2)).isEqualTo(-1); in test_all_apps_sorting_alpha()
90 assertThat(ApplicationsState.ALPHA_COMPARATOR.compare(entry2, entry3)).isEqualTo(1); in test_all_apps_sorting_alpha()
91 assertThat(ApplicationsState.ALPHA_COMPARATOR.compare(entry3, entry2)).isEqualTo(-1); in test_all_apps_sorting_alpha()
92 assertThat(ApplicationsState.ALPHA_COMPARATOR.compare(entry3, entry3)).isEqualTo(0); in test_all_apps_sorting_alpha()
93 assertThat(ApplicationsState.ALPHA_COMPARATOR.compare(entry1, entry3)).isEqualTo(-1); in test_all_apps_sorting_alpha()
94 assertThat(ApplicationsState.ALPHA_COMPARATOR.compare(entry4, entry5)).isEqualTo(-1); in test_all_apps_sorting_alpha()
95 assertThat(ApplicationsState.ALPHA_COMPARATOR.compare(entry5, entry3)).isEqualTo(1); in test_all_apps_sorting_alpha()
/packages/modules/GeoTZ/s2storage/src/test/java/com/android/storage/s2/
DS2LevelRangeTest.java127 assertEquals(0, S2LevelRange.COMPARATOR.compare(lowRange, lowRange)); in startCellIdComparator()
128 assertEquals(-1, S2LevelRange.COMPARATOR.compare(lowRange, midRange)); in startCellIdComparator()
129 assertEquals(-1, S2LevelRange.COMPARATOR.compare(lowRange, highRange)); in startCellIdComparator()
130 assertEquals(1, S2LevelRange.COMPARATOR.compare(midRange, lowRange)); in startCellIdComparator()
131 assertEquals(0, S2LevelRange.COMPARATOR.compare(midRange, midRange)); in startCellIdComparator()
132 assertEquals(-1, S2LevelRange.COMPARATOR.compare(midRange, highRange)); in startCellIdComparator()
133 assertEquals(1, S2LevelRange.COMPARATOR.compare(highRange, lowRange)); in startCellIdComparator()
134 assertEquals(1, S2LevelRange.COMPARATOR.compare(highRange, midRange)); in startCellIdComparator()
135 assertEquals(0, S2LevelRange.COMPARATOR.compare(highRange, highRange)); in startCellIdComparator()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkIdentitySetTest.kt55 assertEquals(0, NetworkIdentitySet.compare(NetworkIdentitySet(), NetworkIdentitySet())) in testCompare()
61 assertEquals(-1, NetworkIdentitySet.compare(NetworkIdentitySet(), identSet1)) in testCompare()
62 assertEquals(1, NetworkIdentitySet.compare(identSet1, NetworkIdentitySet())) in testCompare()
63 assertEquals(0, NetworkIdentitySet.compare(identSet1, identSet1)) in testCompare()
64 assertEquals(-1, NetworkIdentitySet.compare(identSet1, identSet2)) in testCompare()
/packages/apps/TV/tests/robotests/src/com/android/tv/data/
DChannelNumberTest.java103 assertThat(ChannelNumber.compare(null, null)).isEqualTo(0); in compare_null_null()
108 assertThat(ChannelNumber.compare("1", "1")).isEqualTo(0); in compare_1_1()
114 assertThat(ChannelNumber.compare(null, "1")).isLessThan(0); in compare_null_1()
119 assertThat(ChannelNumber.compare("abcd", "1")).isLessThan(0); in compare_abcd_1()
124 assertThat(ChannelNumber.compare(".4", "1")).isLessThan(0); in compare_dash1_1()
129 assertThat(ChannelNumber.compare("1", null)).isGreaterThan(0); in compare_1_null()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetItemComparator.java35 public int compare(WidgetItem a, WidgetItem b) { in compare() method in WidgetItemComparator
44 int labelCompare = mCollator.compare(a.label, b.label); in compare()
54 ? Integer.compare(a.spanY, b.spanY) in compare()
55 : Integer.compare(thisArea, otherArea); in compare()
/packages/modules/Bluetooth/system/bta/le_audio/broadcaster/
Dbroadcast_configuration_provider.cc35 if (!options->compare("lc3_stereo_48_1_2")) return lc3_stereo_48_1_2; in GetBroadcastConfig()
36 if (!options->compare("lc3_stereo_48_2_2")) return lc3_stereo_48_2_2; in GetBroadcastConfig()
37 if (!options->compare("lc3_stereo_48_3_2")) return lc3_stereo_48_3_2; in GetBroadcastConfig()
38 if (!options->compare("lc3_stereo_48_4_2")) return lc3_stereo_48_4_2; in GetBroadcastConfig()
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DDvrBrowseFragment.java117 .compare((RecordedProgram) lhs, (RecordedProgram) rhs);
133 .compare((ScheduledRecording) lhs, (ScheduledRecording) rhs);
150 .compare((ScheduledRecording) lhs, (ScheduledRecording) rhs);
154 int compare =
155 Long.compare(
159 return compare == 0 ? 1 : compare;
167 .compare((RecordedProgram) lhs, (RecordedProgram) rhs);
171 int compare =
172 Long.compare(
176 return compare == 0 ? -1 : compare;
[all …]
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DDeviceInfoUtils.java54 int res = Integer.compare(this.major, other.major); in compareTo()
56 res = Integer.compare(this.minor, other.minor); in compareTo()
59 res = Integer.compare(this.sub, other.sub); in compareTo()
133 return Integer.compare(v1.second, v2.second); in compareMajorMinorVersion()
135 return Integer.compare(v1.first, v2.first); in compareMajorMinorVersion()
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/storage/table/packed/read/
DPackedTableReader.java203 int compareResult = entryMatcher.compare(entryKey, entryValue); in binarySearch()
305 int compare = entryMatcher.compare(key, getLongValue()); in findNearbyEntry() local
306 if (compare == 0) { in findNearbyEntry()
311 if (compare < 0) { in findNearbyEntry()
380 return (key, value) -> entryMatcher.compare(key, (int) value); in convertToLongValueEntryMatcher()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/aggregation/
DAggregationRecordData.java145 return Integer.compare(mPriority, o.getPriority()); in compareTo()
150 return Long.compare(getLastModifiedTime(), o.getLastModifiedTime()); in compareTo()
154 return Long.compare(getStartTime(), o.getStartTime()); in compareTo()
158 return Long.compare(getEndTime(), o.getEndTime()); in compareTo()
161 return Double.compare( in compareTo()
/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DRegionZonePicker.java149 public int compare(TimeZoneInfo tzi1, TimeZoneInfo tzi2) { in compare() method in RegionZonePicker.TimeZoneInfoComparator
150 int result = Integer.compare(tzi1.getTimeZone().getOffset(mNow.getTime()), in compare()
153 result = Integer.compare(tzi1.getTimeZone().getRawOffset(), in compare()
157 result = mCollator.compare(tzi1.getExemplarLocation(), tzi2.getExemplarLocation()); in compare()
160 result = mCollator.compare(tzi1.getGenericName(), tzi2.getGenericName()); in compare()
/packages/services/Car/cpp/watchdog/server/src/
DProcStatCollector.cpp132 if (!lines[i].compare(0, 4, "cpu ")) { in getProcStatLocked()
139 } else if (!lines[i].compare(0, 4, "ctxt")) { in getProcStatLocked()
147 } else if (!lines[i].compare(0, 6, "procs_")) { in getProcStatLocked()
148 if (!lines[i].compare(0, 13, "procs_running")) { in getProcStatLocked()
157 } else if (!lines[i].compare(0, 13, "procs_blocked")) { in getProcStatLocked()
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkIdentity.java322 public static int compare(@NonNull NetworkIdentity left, @NonNull NetworkIdentity right) { in compare() method in NetworkIdentity
324 int res = Integer.compare(left.mType, right.mType); in compare()
326 res = Integer.compare(left.mRatType, right.mRatType); in compare()
335 res = Boolean.compare(left.mRoaming, right.mRoaming); in compare()
338 res = Boolean.compare(left.mMetered, right.mMetered); in compare()
341 res = Boolean.compare(left.mDefaultNetwork, right.mDefaultNetwork); in compare()
344 res = Integer.compare(left.mOemManaged, right.mOemManaged); in compare()
347 res = Integer.compare(left.mSubId, right.mSubId); in compare()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DUtilsTest.java140 assertEquals(-1, Utils.compare(-1, 1)); in testCompare()
141 assertEquals(0, Utils.compare(0, 0)); in testCompare()
142 assertEquals(1, Utils.compare(1, -1)); in testCompare()
144 assertEquals(-1, Utils.compare(null, 0)); in testCompare()
145 assertEquals(0, Utils.compare(null, null)); in testCompare()
146 assertEquals(1, Utils.compare(0, null)); in testCompare()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DAlbumDataAdapter.java113 public int compare(PhotoSource.AlbumData a, PhotoSource.AlbumData b) { in compare() method in AlbumDataAdapter.AccountComparator
115 return recency.compare(a, b); in compare()
152 public int compare(PhotoSource.AlbumData a, PhotoSource.AlbumData b) { in compare() method in AlbumDataAdapter.RecencyComparator
154 return title.compare(a, b); in compare()
163 public int compare(PhotoSource.AlbumData a, PhotoSource.AlbumData b) { in compare() method in AlbumDataAdapter.TitleComparator
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/junit/
DMethodSorter.java34 public int compare(Method m1, Method m2) {
40 return NAME_ASCENDING.compare(m1, m2);
48 public int compare(Method m1, Method m2) {
/packages/apps/TV/src/com/android/tv/util/
DTvTrackInfoUtils.java86 return Integer.compare(rhsLangIndex, lhsLangIndex); in createComparator()
95 return Boolean.compare(lhs.getId().equals(id), rhs.getId().equals(id)); in createComparator()
97 return Boolean.compare(lhsCountMatch, rhsCountMatch); in createComparator()
99 return Integer.compare(lhs.getAudioChannelCount(), rhs.getAudioChannelCount()); in createComparator()
134 if (comparator.compare(track, best) > 0) {
/packages/apps/Contacts/src/com/android/contacts/model/
DSimContact.java238 public int compare(SimContact lhs, SimContact rhs) { in compareByPhoneThenName()
240 .compare(lhs.mPhone, rhs.mPhone) in compareByPhoneThenName()
241 .compare(lhs.mName, rhs.mName, Ordering.<String>natural().nullsFirst()) in compareByPhoneThenName()
250 public int compare(SimContact lhs, SimContact rhs) {
252 return Long.compare(lhs.mRecordNumber, rhs.mRecordNumber);

12345678910>>...18