Home
last modified time | relevance | path

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

12345678910>>...13

/packages/services/Car/evs/sampleDriver/
DConfigManagerUtil.cpp32 if (!trimmed.compare("BRIGHTNESS")) { in convertToEvsCameraParam()
34 } else if (!trimmed.compare("CONTRAST")) { in convertToEvsCameraParam()
36 } else if (!trimmed.compare("AUTOGAIN")) { in convertToEvsCameraParam()
38 } else if (!trimmed.compare("GAIN")) { in convertToEvsCameraParam()
40 } else if (!trimmed.compare("AUTO_WHITE_BALANCE")) { in convertToEvsCameraParam()
42 } else if (!trimmed.compare("WHITE_BALANCE_TEMPERATURE")) { in convertToEvsCameraParam()
44 } else if (!trimmed.compare("SHARPNESS")) { in convertToEvsCameraParam()
46 } else if (!trimmed.compare("AUTO_EXPOSURE")) { in convertToEvsCameraParam()
48 } else if (!trimmed.compare("ABSOLUTE_EXPOSURE")) { in convertToEvsCameraParam()
50 } else if (!trimmed.compare("ABSOLUTE_FOCUS")) { in convertToEvsCameraParam()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/sorting/
DSortingCursorWrapper.java215 int compare = 0; in binarySort() local
218 compare = -1; in binarySort()
220 compare = 1; in binarySort()
226 compare = Shared.compareToIgnoreCaseNullable(lhs, rhs); in binarySort()
229 compare = -Shared.compareToIgnoreCaseNullable(lhs, rhs); in binarySort()
238 if (compare == 0) { in binarySort()
239 compare = pivotId.compareTo(ids[mid]); in binarySort()
242 if (compare < 0) { in binarySort()
296 int compare = 0; in binarySort() local
299 compare = -1; in binarySort()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/data/
DCity.java138 public int compare(City c1, City c2) { in compare() method in City.UtcOffsetComparator
139 int result = mDelegate1.compare(c1, c2); in compare()
142 result = mDelegate2.compare(c1, c2); in compare()
161 public int compare(City c1, City c2) { in compare() method in City.UtcOffsetIndexComparator
164 return Integer.compare(utcOffset1, utcOffset2); in compare()
185 public int compare(City c1, City c2) { in compare() method in City.NameComparator
186 int result = mDelegate.compare(c1, c2); in compare()
189 result = mNameCollator.compare(c1.getPhoneticName(), c2.getPhoneticName()); in compare()
210 public int compare(City c1, City c2) { in compare() method in City.NameIndexComparator
211 int result = Integer.compare(c1.getIndex(), c2.getIndex()); in compare()
[all …]
DTimer.java394 public int compare(Timer timer1, Timer timer2) {
395 return Integer.compare(timer2.getId(), timer1.getId());
416 public int compare(Timer timer1, Timer timer2) {
420 int order = Integer.compare(stateIndex1, stateIndex2);
424 order = Long.compare(timer1.getLength(), timer2.getLength());
426 order = Long.compare(timer1.getRemainingTime(), timer2.getRemainingTime());
/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/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/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/apps/Settings/src/com/android/settings/datetime/timezone/
DRegionZonePicker.java146 public int compare(TimeZoneInfo tzi1, TimeZoneInfo tzi2) { in compare() method in RegionZonePicker.TimeZoneInfoComparator
147 int result = Integer.compare(tzi1.getTimeZone().getOffset(mNow.getTime()), in compare()
150 result = Integer.compare(tzi1.getTimeZone().getRawOffset(), in compare()
154 result = mCollator.compare(tzi1.getExemplarLocation(), tzi2.getExemplarLocation()); in compare()
157 result = mCollator.compare(tzi1.getGenericName(), tzi2.getGenericName()); in compare()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datetime/timezone/
DRegionZonePicker.java146 public int compare(TimeZoneInfo tzi1, TimeZoneInfo tzi2) { in compare() method in RegionZonePicker.TimeZoneInfoComparator
147 int result = Integer.compare(tzi1.getTimeZone().getOffset(mNow.getTime()), in compare()
150 result = Integer.compare(tzi1.getTimeZone().getRawOffset(), in compare()
154 result = mCollator.compare(tzi1.getExemplarLocation(), tzi2.getExemplarLocation()); in compare()
157 result = mCollator.compare(tzi1.getGenericName(), tzi2.getGenericName()); in compare()
/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/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/Launcher3/src/com/android/launcher3/model/
DModelUtils.java57 (lhs, rhs) -> Integer.compare(lhs.container, rhs.container)); in filterCurrentWorkspaceItems()
96 return Integer.compare(lr, rr); in sortWorkspaceItemsSpatially()
100 return Integer.compare(lhs.screenId, rhs.screenId); in sortWorkspaceItemsSpatially()
111 return Integer.compare(lhs.container, rhs.container); in sortWorkspaceItemsSpatially()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUsageStatsActivity.java67 public final int compare(UsageStats a, UsageStats b) { in compare() method in UsageStatsActivity.AppNameComparator
76 public final int compare(UsageStats a, UsageStats b) { in compare() method in UsageStatsActivity.LastTimeUsedComparator
78 return Long.compare(b.getLastTimeUsed(), a.getLastTimeUsed()); in compare()
84 public final int compare(UsageStats a, UsageStats b) { in compare() method in UsageStatsActivity.UsageTimeComparator
85 return Long.compare(b.getTotalTimeInForeground(), a.getTotalTimeInForeground()); in compare()
/packages/apps/Settings/src/com/android/settings/
DUsageStatsActivity.java67 public final int compare(UsageStats a, UsageStats b) { in compare() method in UsageStatsActivity.AppNameComparator
76 public final int compare(UsageStats a, UsageStats b) { in compare() method in UsageStatsActivity.LastTimeUsedComparator
78 return Long.compare(b.getLastTimeUsed(), a.getLastTimeUsed()); in compare()
84 public final int compare(UsageStats a, UsageStats b) { in compare() method in UsageStatsActivity.UsageTimeComparator
85 return Long.compare(b.getTotalTimeInForeground(), a.getTotalTimeInForeground()); in compare()
/packages/apps/Contacts/src/com/android/contacts/model/
DSimContact.java242 public int compare(SimContact lhs, SimContact rhs) { in compareByPhoneThenName()
244 .compare(lhs.mPhone, rhs.mPhone) in compareByPhoneThenName()
245 .compare(lhs.mName, rhs.mName, Ordering.<String>natural().nullsFirst()) in compareByPhoneThenName()
254 public int compare(SimContact lhs, SimContact rhs) {
256 return Long.compare(lhs.mId, rhs.mId);
/packages/apps/Test/connectivity/sl4n/rapidjson/
DCHANGELOG.md76 [Unreleased]: https://github.com/miloyip/rapidjson/compare/v1.0.2...HEAD
77 [1.0.2]: https://github.com/miloyip/rapidjson/compare/v1.0.1...v1.0.2
78 [1.0.1]: https://github.com/miloyip/rapidjson/compare/v1.0.0...v1.0.1
79 [1.0.0]: https://github.com/miloyip/rapidjson/compare/v1.0-beta...v1.0.0
/packages/services/Car/watchdog/server/src/
DProcStat.cpp121 if (!lines[i].compare(0, 4, "cpu ")) { in getProcStatLocked()
128 } else if (!lines[i].compare(0, 6, "procs_")) { in getProcStatLocked()
129 if (!lines[i].compare(0, 13, "procs_running")) { in getProcStatLocked()
138 } else if (!lines[i].compare(0, 13, "procs_blocked")) { in getProcStatLocked()
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DRecordingTask.java69 public int compare(RecordingTask lhs, RecordingTask rhs) {
70 return Long.compare(lhs.getEndTimeMs(), rhs.getEndTimeMs());
78 public int compare(RecordingTask lhs, RecordingTask rhs) {
79 return Long.compare(lhs.getScheduleId(), rhs.getScheduleId());
87 public int compare(RecordingTask lhs, RecordingTask rhs) {
88 return Long.compare(lhs.getPriority(), rhs.getPriority());
/packages/apps/TV/src/com/android/tv/data/
DChannelNumber.java52 if (compare(lhs, rhs) == 0) { in equivalent()
158 public static int compare(String lhs, String rhs) { in compare() method in ChannelNumber
163 return StringUtils.compare(lhs, rhs); in compare()
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DPsipData.java793 ret = StringUtils.compare(mTitleText, item.getTitleText()); in compareTo()
809 ret = StringUtils.compare(mContentRating, item.getContentRating()); in compareTo()
815 ret = StringUtils.compare(mBroadcastGenre, item.getBroadcastGenre()); in compareTo()
820 ret = StringUtils.compare(mCanonicalGenre, item.getCanonicalGenre()); in compareTo()
826 return StringUtils.compare(mDescription, item.getDescription()); in compareTo()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DSortedArrayAdapter.java171 if (mComparator.compare(old, item) == 0) { in change()
213 if (mComparator.compare(r, item) <= 0) { in findInsertPosition()
226 int compareResult = mComparator.compare(item, r); in findInsertPositionBinary()
/packages/modules/ArtPrebuilt/iorap/test/src/IorapTestApp/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/packages/apps/Car/tests/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/packages/inputmethods/LatinIME/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...

12345678910>>...13