Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/search/
DStringMatcherUtility.java114 private final Collator mCollator; field in StringMatcherUtility.StringMatcher
119 mCollator = Collator.getInstance(); in StringMatcher()
120 mCollator.setStrength(Collator.PRIMARY); in StringMatcher()
121 mCollator.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in StringMatcher()
128 switch (mCollator.compare(query, target)) { in matches()
136 return mCollator.compare(query + MAX_UNICODE, target) > -1; in matches()
/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DRegionZonePicker.java136 private Collator mCollator; field in RegionZonePicker.TimeZoneInfoComparator
141 mCollator = collator; in TimeZoneInfoComparator()
154 result = mCollator.compare(tzi1.getExemplarLocation(), tzi2.getExemplarLocation()); in compare()
157 result = mCollator.compare(tzi1.getGenericName(), tzi2.getGenericName()); in compare()
DRegionSearchPicker.java179 private final Collator mCollator; field in RegionSearchPicker.RegionInfoComparator
182 mCollator = collator; in RegionInfoComparator()
187 return mCollator.compare(r1.getTitle(), r2.getTitle()); in compare()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
DAutoManagePermissionsFragment.java48 private Collator mCollator; field in AutoManagePermissionsFragment
58 mCollator = Collator.getInstance( in onCreate()
116 groups.sort((x, y) -> mCollator.compare(x.getLabel(), y.getLabel())); in updatePermissionsUi()
DAutoPermissionAppsFragment.java74 private Collator mCollator; field in AutoPermissionAppsFragment
90 mCollator = Collator.getInstance( in onCreate()
212 int result = mCollator.compare(x.getLabel(), y.getLabel()); in onPermissionsLoaded()
DAutoAppPermissionsFragment.java67 private Collator mCollator; field in AutoAppPermissionsFragment
106 mCollator = Collator.getInstance( in onCreate()
195 groups.sort((x, y) -> mCollator.compare(x.getLabel(), y.getLabel())); in updatePreferences()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DManagePermissionsFragment.java50 private Collator mCollator; field in ManagePermissionsFragment
61 mCollator = Collator.getInstance( in onCreate()
150 mCollator.compare(lhs.getTitle().toString(), rhs.getTitle().toString()), in updatePermissionsUi()
DAllAppPermissionsFragment.java68 private Collator mCollator; field in AllAppPermissionsFragment
119 mCollator = Collator.getInstance( in onCreate()
222 return mCollator.compare(lhs.getTitle().toString(), rhs.getTitle().toString()); in comparePreferences()
DAppPermissionGroupsFragment.java121 private Collator mCollator; field in AppPermissionGroupsFragment
180 mCollator = Collator.getInstance( in onCreate()
583 groupLabels.sort(mCollator); in setAutoRevokeToggleState()
599 return mCollator.compare(lhs.getTitle().toString(), in comparePreferences()
DPermissionAppsFragment.java122 private Collator mCollator; field in PermissionAppsFragment
136 mCollator = Collator.getInstance( in onCreate()
478 int result = mCollator.compare(lhs.getTitle().toString(), in comparePreference()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DLabelComparator.java27 private final Collator mCollator = Collator.getInstance(); field in LabelComparator
44 return mCollator.compare(titleA, titleB); in compare()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactRecipientAdapter.java248 private final Collator mCollator; field in ContactRecipientAdapter.ContactFilter.RecipientEntryComparator
251 mCollator = Collator.getInstance(Locale.getDefault()); in RecipientEntryComparator()
252 mCollator.setStrength(Collator.PRIMARY); in RecipientEntryComparator()
274 final int displayNameCompare = mCollator.compare(lhs.getDisplayName(), in compare()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetItemComparator.java32 private final Collator mCollator = Collator.getInstance(); field in WidgetItemComparator
44 int labelCompare = mCollator.compare(a.label, b.label); in compare()
/packages/wallpapers/LivePicker/src/com/android/wallpaper/livepicker/
DLiveWallpaperListAdapter.java162 final Collator mCollator; in doInBackground()
165 mCollator = Collator.getInstance(); in doInBackground()
169 return mCollator.compare(info1.loadLabel(packageManager), in doInBackground()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/incident/
DPendingList.java106 private Collator mCollator; field in PendingList.Updater
116 mCollator = Collator.getInstance( in Updater()
163 return mCollator.compare(a.label, b.label); in updateState()
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DContact.java211 private Collator mCollator; field in Contact
691 if (mCollator == null || mLocale == null || !mLocale.equals(currentLocale)) { in compareNames()
692 mCollator = Collator.getInstance(currentLocale); in compareNames()
695 return mCollator.compare(name == null ? "" : name, otherName == null ? "" : otherName); in compareNames()
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenRuleSelectionDialog.java214 private final Collator mCollator = Collator.getInstance();
218 int byAppName = mCollator.compare(lhs.packageLabel, rhs.packageLabel);
222 return mCollator.compare(lhs.title, rhs.title);
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
DLiveWallpaperInfo.java90 final Collator mCollator = Collator.getInstance(); in doInBackground()
93 return mCollator.compare(info1.loadLabel(pm), info2.loadLabel(pm)); in doInBackground()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DAppPicker.java144 private final Collator mCollator = Collator.getInstance(); in onCreateActions()
148 return mCollator.compare(a.getTitle(), b.getTitle()); in onCreateActions()
/packages/apps/Settings/src/com/android/settings/
DAppWidgetLoader.java161 Collator mCollator = Collator.getInstance(); in getItems()
164 return mCollator.compare(lhs.getLabel(), rhs.getLabel()); in getItems()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/pictureinpicture/
DPictureInPictureSettings.java69 private final Collator mCollator = Collator.getInstance(); field in PictureInPictureSettings.AppComparator
82 int nameCmp = mCollator.compare(sa.toString(), sb.toString()); in compare()
/packages/apps/Dialer/java/com/android/contacts/common/model/account/
DAccountType.java486 private final Collator mCollator = Collator.getInstance(); field in AccountType.DisplayLabelComparator
499 return mCollator.compare(getDisplayLabel(lhs), getDisplayLabel(rhs)); in compare()
/packages/apps/Contacts/src/com/android/contacts/model/account/
DAccountType.java519 private final Collator mCollator = Collator.getInstance(); field in AccountType.DisplayLabelComparator
532 return mCollator.compare(getDisplayLabel(lhs), getDisplayLabel(rhs)); in compare()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DLiveWallpaperInfo.java300 final Collator mCollator = Collator.getInstance(); in getAllOnDevice()
304 return mCollator.compare(info1.loadLabel(pm), info2.loadLabel(pm)); in getAllOnDevice()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/
DAppPermissionGroup.java97 private final Collator mCollator; field in AppPermissionGroup
455 mCollator = Collator.getInstance( in AppPermissionGroup()
1314 final int result = mCollator.compare(mLabel.toString(), another.mLabel.toString());