Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DContextualCardManagerTest.java238 ContextualCardProto.ContextualCard.Category.STICKY_VALUE, 1.02f)); in sortCards_hasStickyCards_stickyShouldAlwaysBeTheLast()
240 ContextualCardProto.ContextualCard.Category.STICKY_VALUE, 1.01f)); in sortCards_hasStickyCards_stickyShouldAlwaysBeTheLast()
242 ContextualCardProto.ContextualCard.Category.SUGGESTION_VALUE, 0.01f)); in sortCards_hasStickyCards_stickyShouldAlwaysBeTheLast()
481 ContextualCardProto.ContextualCard.Category.IMPORTANT_VALUE, in getCardsWithViewType_noSuggestionCards_shouldNotHaveHalfCards()
482 ContextualCardProto.ContextualCard.Category.IMPORTANT_VALUE, in getCardsWithViewType_noSuggestionCards_shouldNotHaveHalfCards()
483 ContextualCardProto.ContextualCard.Category.IMPORTANT_VALUE, in getCardsWithViewType_noSuggestionCards_shouldNotHaveHalfCards()
484 ContextualCardProto.ContextualCard.Category.IMPORTANT_VALUE, in getCardsWithViewType_noSuggestionCards_shouldNotHaveHalfCards()
485 ContextualCardProto.ContextualCard.Category.IMPORTANT_VALUE in getCardsWithViewType_noSuggestionCards_shouldNotHaveHalfCards()
501 ContextualCardProto.ContextualCard.Category.IMPORTANT_VALUE, in getCardsWithViewType_oneSuggestionCards_shouldNotHaveHalfCards()
502 ContextualCardProto.ContextualCard.Category.IMPORTANT_VALUE, in getCardsWithViewType_oneSuggestionCards_shouldNotHaveHalfCards()
[all …]
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/
DTestCategoryProvider.java20 import com.android.wallpaper.model.Category;
33 private final List<Category> mCategories;
36 Category category1 = new ImageCategory( in TestCategoryProvider()
44 Category category2 = new com.android.wallpaper.testing.TestWallpaperCategory( in TestCategoryProvider()
59 List<Category> categories = getTestCategories(); in fetchCategories()
60 for (Category category : categories) { in fetchCategories()
74 public Category getCategory(int index) { in getCategory()
79 public Category getCategory(String collectionId) { in getCategory()
80 Category category; in getCategory()
107 public List<Category> getTestCategories() { in getTestCategories()
/packages/modules/NetworkStack/common/moduleutils/src/android/net/util/
DSharedLog.java41 private enum Category { enum in SharedLog
106 Log.e(mTag, record(Category.ERROR, e.toString())); in e()
115 Log.e(mTag, record(Category.ERROR, msg)); in e()
129 Log.e(mTag, record(Category.ERROR, msg + ": " + exception.getMessage()), exception); in e()
138 Log.i(mTag, record(Category.NONE, msg)); in i()
147 Log.w(mTag, record(Category.WARN, msg)); in w()
160 record(Category.NONE, msg); in log()
179 record(Category.MARK, msg); in mark()
182 private String record(Category category, String msg) { in record()
188 private String logLine(Category category, String msg) { in logLine()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DPermissionAppsViewModel.kt37 import com.android.permissioncontroller.permission.ui.Category in <lambda>()
85 Map<Category, List<Pair<String, UserHandle>>>>() { in <lambda>()
123 val categoryMap = mutableMapOf<Category, MutableList<Pair<String, UserHandle>>>() in <lambda>()
126 categoryMap[Category.ALLOWED] = mutableListOf() in <lambda>()
127 categoryMap[Category.ALLOWED_FOREGROUND] = mutableListOf() in <lambda>()
128 categoryMap[Category.ASK] = mutableListOf() in <lambda>()
129 categoryMap[Category.DENIED] = mutableListOf() in <lambda>()
160 PermGrantState.PERMS_ALLOWED -> Category.ALLOWED in <lambda>()
161 PermGrantState.PERMS_ALLOWED_FOREGROUND_ONLY -> Category.ALLOWED_FOREGROUND in <lambda>()
162 PermGrantState.PERMS_ALLOWED_ALWAYS -> Category.ALLOWED in <lambda>()
[all …]
DAppPermissionGroupsViewModel.kt46 import com.android.permissioncontroller.permission.ui.Category in <lambda>()
98 Map<Category, List<GroupUiInfo>>>() { in <lambda>()
138 val groupGrantStates = mutableMapOf<Category, in <lambda>()
140 groupGrantStates[Category.ALLOWED] = mutableListOf() in <lambda>()
141 groupGrantStates[Category.ASK] = mutableListOf() in <lambda>()
142 groupGrantStates[Category.DENIED] = mutableListOf() in <lambda>()
153 groupGrantStates[Category.ALLOWED]!!.add( in <lambda>()
168 groupGrantStates[Category.ALLOWED]!!.add( in <lambda>()
172 Category.ALLOWED]!!.add(GroupUiInfo(groupName, isSystem, in <lambda>()
175 Category.ALLOWED]!!.add(GroupUiInfo(groupName, isSystem, in <lambda>()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DWallpaperPickerDelegate.java34 import com.android.wallpaper.model.Category;
181 public void onCategoryReceived(Category category) { in updateThirdPartyCategories()
193 Category oldCategory = findThirdPartyCategory(packageName); in updateThirdPartyCategories()
197 public void onCategoryReceived(Category category) { in updateThirdPartyCategories()
213 private Category findThirdPartyCategory(String packageName) { in findThirdPartyCategory()
216 Category category = mCategoryProvider.getCategory(i); in findThirdPartyCategory()
228 Category oldLiveWallpapersCategory = mCategoryProvider.getCategory( in updateLiveWallpapersCategories()
239 public void onCategoryReceived(Category category) { in updateLiveWallpapersCategories()
245 Category liveWallpapersCategory = in updateLiveWallpapersCategories()
269 public void onCategoryReceived(Category category) { in prefetchCategories()
[all …]
DCategorySelectorFragment.java48 import com.android.wallpaper.model.Category;
93 void show(Category category); in show()
122 private ArrayList<Category> mCategories = new ArrayList<>();
195 void addCategory(Category category, boolean loading) { in addCategory()
223 void removeCategory(Category category) { in removeCategory()
231 void updateCategory(Category category) { in updateCategory()
281 private Category mCategory;
342 private void bindCategory(Category category) { in bindCategory()
435 private List<Category> mCategories;
437 private CategoryAdapter(List<Category> categories) { in CategoryAdapter()
[all …]
DTopLevelPickerActivity.java54 import com.android.wallpaper.model.Category;
337 Category category = (Category) tab.getTag(); in initializeDesktop()
348 Category category = (Category) tab.getTag(); in initializeDesktop()
682 Category category = mDelegate.getCategoryProvider().getCategory(i); in populateCategoryTabs()
828 if (((Category) tabToSelect.getTag()).isEnumerable()) { in reselectLastTab()
835 Category category = mDelegate.findCategoryForCollectionId(collectionId); in showCategoryDesktop()
DCustomizationPickerActivity.java36 import com.android.wallpaper.model.Category;
225 public void show(Category category) { in show()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultCategoryProvider.java31 import com.android.wallpaper.model.Category;
77 protected static List<Category> sSystemCategories;
80 protected ArrayList<Category> mCategories;
99 for (Category category : mCategories) { in fetchCategories()
120 public Category getCategory(int index) { in getCategory()
128 public Category getCategory(String collectionId) { in getCategory()
129 Category category; in getCategory()
163 public void onCategoryReceived(Category category) { in doFetch()
186 protected static class FetchCategoriesTask extends AsyncTask<Void, Category, Void> {
282 protected List<Category> getSystemCategories() { in getSystemCategories()
[all …]
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DSettingsContextualCardProvider.java39 .setCardCategory(ContextualCard.Category.IMPORTANT) in getContextualCards()
45 .setCardCategory(ContextualCard.Category.IMPORTANT) in getContextualCards()
51 .setCardCategory(ContextualCard.Category.IMPORTANT) in getContextualCards()
57 .setCardCategory(ContextualCard.Category.IMPORTANT) in getContextualCards()
65 .setCardCategory(ContextualCard.Category.DEFAULT) in getContextualCards()
71 .setCardCategory(ContextualCard.Category.DEFAULT) in getContextualCards()
77 .setCardCategory(ContextualCard.Category.IMPORTANT) in getContextualCards()
DContextualCardsDiffCallback.java19 import static com.android.settings.intelligence.ContextualCardProto.ContextualCard.Category.IMPORTA…
20 import static com.android.settings.intelligence.ContextualCardProto.ContextualCard.Category.STICKY_…
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DCategory.java30 public abstract class Category { class
42 public Category(String title, String collectionId, int priority) { in Category() method in Category
162 if (!(obj instanceof Category)) return false; in equals()
164 return TextUtils.equals(getCollectionId(), ((Category) obj).getCollectionId()); in equals()
DCategoryProvider.java47 Category getCategory(int index); in getCategory()
56 Category getCategory(String collectionId); in getCategory()
DWallpaperCategory.java37 public class WallpaperCategory extends Category {
199 public Category buildPlaceholder() { in buildPlaceholder()
DCategoryReceiver.java28 public void onCategoryReceived(Category category); in onCategoryReceived()
DPlaceholderCategory.java27 public class PlaceholderCategory extends Category {
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DAppPermissionGroupsFragment.java72 import com.android.permissioncontroller.permission.ui.Category;
308 private void updatePreferences(Map<Category, List<GroupUiInfo>> groupMap) { in updatePreferences() argument
333 findPreference(Category.ALLOWED_FOREGROUND.getCategoryName()).setVisible(false); in updatePreferences()
337 for (Category grantCategory : groupMap.keySet()) { in updatePreferences()
343 if (grantCategory.equals(Category.ALLOWED_FOREGROUND)) { in updatePreferences()
345 category = findPreference(Category.ALLOWED.getCategoryName()); in updatePreferences()
348 if (grantCategory.equals(Category.ASK)) { in updatePreferences()
497 int noPermsStringRes = grantCategory.equals(Category.DENIED) in updatePreferences()
576 Category.ALLOWED.getCategoryName()); in setAutoRevokeToggleState()
640 PreferenceCategory allowed = findPreference(Category.ALLOWED.getCategoryName()); in logAppPermissionGroupsFragmentView()
[all …]
DPermissionAppsFragment.java25 import static com.android.permissioncontroller.permission.ui.Category.ALLOWED;
26 import static com.android.permissioncontroller.permission.ui.Category.ALLOWED_FOREGROUND;
27 import static com.android.permissioncontroller.permission.ui.Category.ASK;
28 import static com.android.permissioncontroller.permission.ui.Category.DENIED;
65 import com.android.permissioncontroller.permission.ui.Category;
268 private void onPackagesLoaded(Map<Category, List<Pair<String, UserHandle>>> categories) { in onPackagesLoaded() argument
315 for (Category grantCategory : categories.keySet()) { in onPackagesLoaded()
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DPackageItemInfo.java33 public @interface Category{} annotation in PackageItemInfo
45 @Category public final int category;
51 public PackageItemInfo(String packageName, @Category int category) { in PackageItemInfo()
/packages/apps/Settings/protos/
Dcontextual_card_list.proto16 enum Category { enum
31 optional Category card_category = 4;
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/
DIndividualPickerActivity.java35 import com.android.wallpaper.model.Category;
67 private Category mCategory;
93 public void onCategoryReceived(Category category) { in onCreate()
/packages/apps/Settings/tests/unit/src/com/android/settings/homepage/contextualcards/
DContextualCardsDiffCallbackTest.java18 import static com.android.settings.intelligence.ContextualCardProto.ContextualCard.Category.IMPORTA…
19 import static com.android.settings.intelligence.ContextualCardProto.ContextualCard.Category.STICKY_…
/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/model/
DWidgetsModel.java293 @PackageItemInfo.Category public final int mCategory;
305 WidgetPackageOrCategoryKey(@PackageItemInfo.Category int category, UserHandle user) { in WidgetPackageOrCategoryKey()
310 @PackageItemInfo.Category int category, UserHandle user) { in WidgetPackageOrCategoryKey()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/
DCategory.kt23 enum class Category(val categoryName: String) { class

12