/packages/services/Car/cpp/evs/sampleDriver/ |
D | ConfigManagerUtil.cpp | 32 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/ |
D | SortingCursorWrapper.java | 215 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/ |
D | City.kt | 102 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/GeoTZ/s2storage/src/test/java/com/android/timezone/location/storage/s2/ |
D | S2LevelRangeTest.java | 127 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/apps/TV/tests/common/src/com/android/tv/testing/ |
D | ComparatorTester.java | 134 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/ |
D | ApplicationStateComponentTest.java | 89 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/apps/TV/src/com/android/tv/dvr/ui/browse/ |
D | DvrBrowseFragment.java | 117 .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/ |
D | ChannelNumberTest.java | 103 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/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | UtilsTest.java | 126 assertEquals(-1, Utils.compare(-1, 1)); in testCompare() 127 assertEquals(0, Utils.compare(0, 0)); in testCompare() 128 assertEquals(1, Utils.compare(1, -1)); in testCompare() 130 assertEquals(-1, Utils.compare(null, 0)); in testCompare() 131 assertEquals(0, Utils.compare(null, null)); in testCompare() 132 assertEquals(1, Utils.compare(0, null)); in testCompare()
|
/packages/modules/GeoTZ/s2storage/src/readonly/java/com/android/timezone/location/storage/table/packed/read/ |
D | PackedTableReader.java | 194 int compareResult = entryMatcher.compare(entryKey, entryValue); in binarySearch() 296 int compare = entryMatcher.compare(key, getLongValue()); in findNearbyEntry() local 297 if (compare == 0) { in findNearbyEntry() 302 if (compare < 0) { in findNearbyEntry() 371 return (key, value) -> entryMatcher.compare(key, (int) value); in convertToLongValueEntryMatcher()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | WidgetItemComparator.java | 35 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/ |
D | RegionZonePicker.java | 146 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/ |
D | AlbumDataAdapter.java | 113 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/services/Car/cpp/watchdog/server/src/ |
D | ProcStat.cpp | 106 if (!lines[i].compare(0, 4, "cpu ")) { in getProcStatLocked() 113 } else if (!lines[i].compare(0, 6, "procs_")) { in getProcStatLocked() 114 if (!lines[i].compare(0, 13, "procs_running")) { in getProcStatLocked() 123 } else if (!lines[i].compare(0, 13, "procs_blocked")) { in getProcStatLocked()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | TvTrackInfoUtils.java | 86 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) {
|
D | CompositeComparator.java | 31 public int compare(T lhs, T rhs) { in compare() method in CompositeComparator 33 int result = comparator.compare(lhs, rhs); in compare()
|
/packages/apps/Settings/src/com/android/settings/ |
D | UsageStatsActivity.java | 67 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/ |
D | SimContact.java | 242 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.mRecordNumber, rhs.mRecordNumber);
|
/packages/modules/StatsD/statsd/src/ |
D | StatsService.cpp | 298 if (!utf8Args[0].compare(String8("config"))) { in handleShellCommand() 302 if (!utf8Args[0].compare(String8("print-uid-map"))) { in handleShellCommand() 306 if (!utf8Args[0].compare(String8("dump-report"))) { in handleShellCommand() 310 if (!utf8Args[0].compare(String8("pull-source")) && argc > 1) { in handleShellCommand() 314 if (!utf8Args[0].compare(String8("send-broadcast"))) { in handleShellCommand() 318 if (!utf8Args[0].compare(String8("print-stats"))) { in handleShellCommand() 322 if (!utf8Args[0].compare(String8("meminfo"))) { in handleShellCommand() 326 if (!utf8Args[0].compare(String8("write-to-disk"))) { in handleShellCommand() 330 if (!utf8Args[0].compare(String8("log-app-breadcrumb"))) { in handleShellCommand() 334 if (!utf8Args[0].compare(String8("log-binary-push"))) { in handleShellCommand() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/ |
D | CHANGELOG.md | 76 [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/apps/Launcher3/src/com/android/launcher3/model/ |
D | ModelUtils.java | 65 (lhs, rhs) -> Integer.compare(lhs.container, rhs.container)); in filterCurrentWorkspaceItems() 104 return Integer.compare(lr, rr); in sortWorkspaceItemsSpatially() 108 return Integer.compare(lhs.screenId, rhs.screenId); in sortWorkspaceItemsSpatially() 119 return Integer.compare(lhs.container, rhs.container); in sortWorkspaceItemsSpatially()
|
/packages/apps/TV/src/com/android/tv/dvr/recorder/ |
D | RecordingTask.java | 69 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/ |
D | ChannelNumber.java | 52 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/src/com/android/tv/dvr/ui/ |
D | SortedArrayAdapter.java | 171 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/apps/TV/tuner/src/com/android/tv/tuner/data/ |
D | PsipData.java | 793 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()
|