/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/viewmodel/ |
D | CategoryOrganiserTest.java | 27 import com.android.providers.media.photopicker.data.model.Category; 44 List<Category> inputCategoryList = new ArrayList() { in test_categoryOrder_meetsRequirements() 46 add(new Category( in test_categoryOrder_meetsRequirements() 49 add(new Category( in test_categoryOrder_meetsRequirements() 52 add(new Category( in test_categoryOrder_meetsRequirements() 55 add(new Category( in test_categoryOrder_meetsRequirements() 58 add(new Category( in test_categoryOrder_meetsRequirements() 61 add(new Category( in test_categoryOrder_meetsRequirements() 64 add(new Category( in test_categoryOrder_meetsRequirements() 67 add(new Category( in test_categoryOrder_meetsRequirements() [all …]
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/ |
D | SharedLog.java | 44 private enum Category { enum in SharedLog 120 Log.e(mTag, record(Category.ERROR, e.toString())); in e() 129 Log.e(mTag, record(Category.ERROR, msg)); in e() 143 Log.e(mTag, record(Category.ERROR, msg + ": " + exception.getMessage()), exception); in e() 152 Log.i(mTag, record(Category.NONE, msg)); in i() 161 Log.w(mTag, record(Category.WARN, msg)); in w() 170 Log.v(mTag, record(Category.VERBOSE, msg)); in v() 180 Log.wtf(mTag, record(Category.TERRIBLE, msg)); in wtf() 195 Log.wtf(mTag, record(Category.TERRIBLE, msg + ": " + exception.getMessage()), exception); in wtf() 209 record(Category.NONE, msg); in log() [all …]
|
/packages/apps/WallpaperPicker2/tests/common/src/com/android/wallpaper/testing/ |
D | TestCategoryProvider.java | 20 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() 112 public List<Category> getTestCategories() { in getTestCategories()
|
D | FakeDefaultCategoryFactory.kt | 22 import com.android.wallpaper.model.Category 56 override fun getCategoryModel(context: Context, category: Category): CategoryModel { in getCategoryModel() 65 private fun createCommonCategoryData(category: Category): CommonCategoryData { in createCommonCategoryData() 74 category: Category, in createCollectionsCategoryData() 88 private fun createImageCategoryData(category: Category): ImageCategoryData? { in createImageCategoryData() 96 private fun createThirdPartyCategoryData(category: Category): ThirdPartyCategoryData? { in createThirdPartyCategoryData()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCardManagerTest.java | 238 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/providers/MediaProvider/src/com/android/providers/media/photopicker/data/model/ |
D | Category.java | 50 public class Category { class 52 public static final Category DEFAULT = new Category(); 53 public static final Category EMPTY_VIEW = new Category("EMPTY_VIEW"); 64 private Category() { in Category() method in Category 68 private Category(String id) { in Category() method in Category 72 public Category(String id, String authority, String displayName, Uri coverUri, int itemCount, in Category() method in Category 137 public static Category fromBundle(@NonNull Bundle bundle) { in fromBundle() 138 return new Category(bundle.getString(AlbumColumns.ID), in fromBundle() 149 public static Category fromCursor(@NonNull Cursor cursor, @NonNull UserId userId) { in fromCursor() 167 return new Category(getCursorString(cursor, AlbumColumns.ID), in fromCursor()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | WallpaperPickerDelegate.java | 35 import com.android.wallpaper.model.Category; 183 public void onCategoryReceived(Category category) { in updateThirdPartyCategories() 195 Category oldCategory = findThirdPartyCategory(packageName); in updateThirdPartyCategories() 199 public void onCategoryReceived(Category category) { in updateThirdPartyCategories() 215 private Category findThirdPartyCategory(String packageName) { in findThirdPartyCategory() 218 Category category = mCategoryProvider.getCategory(i); in findThirdPartyCategory() 230 Category oldLiveWallpapersCategory = mCategoryProvider.getCategory( in updateLiveWallpapersCategories() 241 public void onCategoryReceived(Category category) { in updateLiveWallpapersCategories() 247 Category liveWallpapersCategory = in updateLiveWallpapersCategories() 271 public void onCategoryReceived(Category category) { in prefetchCategories() [all …]
|
D | CategorySelectorFragment.java | 55 import com.android.wallpaper.model.Category; 102 void show(Category category); in show() 131 private ArrayList<Category> mCategories = new ArrayList<>(); 135 private ArrayList<Category> mCreativeCategories = new ArrayList<>(); 223 void addCategory(Category category, boolean loading) { in addCategory() 275 void removeCategory(Category category) { in removeCategory() 290 void updateCategory(Category category) { in updateCategory() 354 private Category mCategory; 417 private void bindCategory(Category category) { in bindCategory() 537 private ArrayList<Category> mCategories = new ArrayList<>(); [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | DefaultCategoryProvider.java | 31 import com.android.wallpaper.model.Category; 78 protected static List<Category> sSystemCategories; 81 protected ArrayList<Category> mCategories; 100 for (Category category : mCategories) { in fetchCategories() 121 public Category getCategory(int index) { in getCategory() 129 public Category getCategory(String collectionId) { in getCategory() 130 Category category; in getCategory() 174 private static Category getMyPhotosCategory(Context context) { in getMyPhotosCategory() 195 public void onCategoryReceived(Category category) { in doFetch() 218 protected static class FetchCategoriesTask extends AsyncTask<Void, Category, Void> { [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/ |
D | WearPermissionAppsHelper.kt | 25 import com.android.permissioncontroller.permission.ui.Category in <lambda>() 53 categorizedApps: Map<Category, List<Pair<String, UserHandle>>>, in <lambda>() 67 for (category in Category.values()) { in <lambda>() 68 if (category == Category.ALLOWED && isStorageAndLessThanT) { in <lambda>() 69 val allowedList = categorizedApps[Category.ALLOWED] in <lambda>() 117 category: Category, in <lambda>() 147 category: Category, in <lambda>() 157 category == Category.ALLOWED, in <lambda>() 158 category == Category.ALLOWED_FOREGROUND, in <lambda>() 159 category == Category.DENIED in <lambda>() [all …]
|
D | WearPermissionAppsScreen.kt | 32 import com.android.permissioncontroller.permission.ui.Category 138 Category.ALLOWED.categoryName -> in getCategoryString() 144 Category.ALLOWED_FOREGROUND.categoryName -> R.string.allowed_foreground_header in getCategoryString() 145 Category.ASK.categoryName -> R.string.ask_header in getCategoryString() 146 Category.DENIED.categoryName -> R.string.denied_header in getCategoryString() 154 Category.ALLOWED.categoryName, 155 Category.ALLOWED_FOREGROUND.categoryName, 156 Category.ASK.categoryName, 157 Category.DENIED.categoryName
|
D | WearAppPermissionGroupsHelper.kt | 37 import com.android.permissioncontroller.permission.ui.Category in <lambda>() 79 val grantedTypes: MutableMap<String, Category> = HashMap() in <lambda>() 139 category: Category?, in <lambda>() 156 private fun getGrantSummary(category: Category?, groupUiInfo: GroupUiInfo): Int? { in <lambda>() 160 Category.ALLOWED -> in <lambda>() 166 Category.ASK -> return R.string.ask_header in <lambda>() 167 Category.DENIED -> return R.string.denied_header in <lambda>()
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/util/ |
D | CategoryOrganiserUtils.java | 25 import com.android.providers.media.photopicker.data.model.Category; 42 public static void getReorganisedCategoryList(List<Category> categoryList) { in getReorganisedCategoryList() 62 private static int getPriority(Category category) { in getPriority() 72 static class CategoryComparator implements java.util.Comparator<Category> { 74 public int compare(Category category1, Category category2) { in compare()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/ |
D | AppPermissionGroupsViewModel.kt | 52 import com.android.permissioncontroller.permission.ui.Category in <lambda>() 139 SmartUpdateMediatorLiveData<@JvmSuppressWildcards Map<Category, List<GroupUiInfo>>>() { in <lambda>() 176 val groupGrantStates = mutableMapOf<Category, MutableList<GroupUiInfo>>() in <lambda>() 177 groupGrantStates[Category.ALLOWED] = mutableListOf() in <lambda>() 178 groupGrantStates[Category.ASK] = mutableListOf() in <lambda>() 179 groupGrantStates[Category.DENIED] = mutableListOf() in <lambda>() 197 groupGrantStates[Category.ALLOWED]!!.add( in <lambda>() 218 groupGrantStates[Category.ALLOWED]!!.add( in <lambda>() 223 groupGrantStates[Category.ALLOWED]!!.add( in <lambda>() 227 groupGrantStates[Category.ALLOWED]!!.add( in <lambda>() [all …]
|
D | PermissionAppsViewModel.kt | 53 import com.android.permissioncontroller.permission.ui.Category in <lambda>() 167 @kotlin.jvm.JvmSuppressWildcards Map<Category, List<Pair<String, UserHandle>>> in <lambda>() 206 val categoryMap = mutableMapOf<Category, MutableList<Pair<String, UserHandle>>>() in <lambda>() 209 categoryMap[Category.ALLOWED] = mutableListOf() in <lambda>() 210 categoryMap[Category.ALLOWED_FOREGROUND] = mutableListOf() in <lambda>() 211 categoryMap[Category.ASK] = mutableListOf() in <lambda>() 212 categoryMap[Category.DENIED] = mutableListOf() in <lambda>() 248 PermGrantState.PERMS_ALLOWED -> Category.ALLOWED in <lambda>() 249 PermGrantState.PERMS_ALLOWED_FOREGROUND_ONLY -> Category.ALLOWED_FOREGROUND in <lambda>() 250 PermGrantState.PERMS_ALLOWED_ALWAYS -> Category.ALLOWED in <lambda>() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/ |
D | AlbumsTabAdapter.java | 30 import com.android.providers.media.photopicker.data.model.Category; 78 final Category category = (Category) getAdapterItem(position); in onBindMediaItemViewHolder() 85 return getAdapterItem(position) instanceof Category; in isItemTypeMediaItem() 88 void updateCategoryList(@NonNull List<Category> categoryList) { in updateCategoryList() 93 void onAlbumClick(@NonNull Category category, int position); in onAlbumClick()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/ |
D | Category.java | 30 public abstract class Category { class 45 public Category(String title, String collectionId, int priority) { in Category() method in Category 60 public Category(String title, String collectionId, int priority, boolean isDownloadable, in Category() method in Category 208 if (!(obj instanceof Category)) return false; in equals() 210 return TextUtils.equals(getCollectionId(), ((Category) obj).getCollectionId()); in equals()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
D | SettingsContextualCardProvider.java | 39 .setCardCategory(ContextualCard.Category.IMPORTANT) in getContextualCards() 45 .setCardCategory(ContextualCard.Category.IMPORTANT) in getContextualCards() 53 .setCardCategory(ContextualCard.Category.DEFAULT) in getContextualCards() 59 .setCardCategory(ContextualCard.Category.DEFAULT) in getContextualCards() 65 .setCardCategory(ContextualCard.Category.IMPORTANT) in getContextualCards()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/converter/category/ |
D | DefaultCategoryFactory.kt | 21 import com.android.wallpaper.model.Category in <lambda>() 40 override fun getCategoryModel(context: Context, category: Category): CategoryModel { in <lambda>() 50 private fun getCommonCategoryData(category: Category): CommonCategoryData { in <lambda>() 75 private fun getImageCategoryData(category: Category, context: Context): ImageCategoryData? { in <lambda>() 84 private fun getThirdPartyCategoryData(category: Category): ThirdPartyCategoryData? { in <lambda>()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/ |
D | ItemsProviderTest.java | 66 import com.android.providers.media.photopicker.data.model.Category; 440 final Cursor res = mItemsProvider.getAllItems(Category.DEFAULT, in testGetItems() 471 final Cursor res = mItemsProvider.getAllItems(Category.DEFAULT, in testGetItems_canceledBeforeQuery_ThrowsImmediately() 489 mItemsProvider.getLocalItems(Category.DEFAULT, in testGetLocalItems_canceledBeforeQuery_ThrowsImmediately() 537 final Cursor res = mItemsProvider.getAllItems(Category.DEFAULT, in testGetItems_withLimit() 568 final Cursor res = mItemsProvider.getAllItems(Category.DEFAULT, in testGetItems_withPagination_sameDateModified() 594 final Cursor res2 = mItemsProvider.getAllItems(Category.DEFAULT, in testGetItems_withPagination_sameDateModified() 631 final Cursor res = mItemsProvider.getAllItems(Category.DEFAULT, in testGetItems_withPagination_differentTimeModified() 655 final Cursor res2 = mItemsProvider.getAllItems(Category.DEFAULT, in testGetItems_withPagination_differentTimeModified() 696 final Cursor res = mItemsProvider.getAllItems(Category.DEFAULT, in testGetItems_nonMedia() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/ |
D | AutoAppPermissionsFragment.java | 54 import com.android.permissioncontroller.permission.ui.Category; 74 private static final String KEY_ALLOWED_PERMISSIONS_GROUP = Category.ALLOWED.getCategoryName(); 75 private static final String KEY_DENIED_PERMISSIONS_GROUP = Category.DENIED.getCategoryName(); 214 Map<Category, List<AppPermissionGroupsViewModel.GroupUiInfo>> groupMap) { in updatePreferences() 237 for (Category grantCategory : groupMap.keySet()) { in updatePreferences() 238 if (Category.ASK.equals(grantCategory)) { in updatePreferences() 244 if (grantCategory.equals(Category.ALLOWED_FOREGROUND)) { in updatePreferences() 245 category = findPreference(Category.ALLOWED.getCategoryName()); in updatePreferences() 328 private void setNoPermissionPreference(PreferenceCategory category, Category grantCategory, in setNoPermissionPreference() 331 empty.setKey(getString(grantCategory.equals(Category.DENIED) in setNoPermissionPreference()
|
D | AutoPermissionAppsFragment.java | 21 import static com.android.permissioncontroller.permission.ui.Category.ALLOWED; 22 import static com.android.permissioncontroller.permission.ui.Category.ALLOWED_FOREGROUND; 23 import static com.android.permissioncontroller.permission.ui.Category.ASK; 24 import static com.android.permissioncontroller.permission.ui.Category.DENIED; 25 import static com.android.permissioncontroller.permission.ui.Category.STORAGE_FOOTER; 48 import com.android.permissioncontroller.permission.ui.Category; 165 private void onPackagesLoaded(Map<Category, List<Pair<String, UserHandle>>> categories) { in onPackagesLoaded() argument 215 for (Category grantCategory : categories.keySet()) { in onPackagesLoaded()
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/viewmodel/ |
D | PickerViewModel.java | 87 import com.android.providers.media.photopicker.data.model.Category; 147 private MutableLiveData<List<Category>> mCategoryList; 174 private Category mCurrentCategory; 503 final List<Category> categoryList = new ArrayList<>(); in resetAllContentInCurrentProfile() 504 categoryList.add(Category.EMPTY_VIEW); in resetAllContentInCurrentProfile() 630 List<Item> newPageItemList = loadItems(Category.DEFAULT, userId, pagingParameters); in loadItemsAsync() 650 private List<Item> loadItems(Category category, UserId userId, in loadItems() 768 loadItemsDataForPreSelection(Category.DEFAULT, userId, in getItemDataForUris() 776 private void loadItemsDataForPreSelection(Category category, UserId userId, in loadItemsDataForPreSelection() 827 private Cursor fetchItems(Category category, UserId userId, in fetchItems() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/ |
D | AppPermissionGroupsFragment.java | 26 import static com.android.permissioncontroller.permission.ui.Category.STORAGE_FOOTER; 73 import com.android.permissioncontroller.permission.ui.Category; 295 private void updatePreferences(Map<Category, List<GroupUiInfo>> groupMap) { in updatePreferences() argument 322 findPreference(Category.ALLOWED_FOREGROUND.getCategoryName()).setVisible(false); in updatePreferences() 329 for (Category grantCategory : groupMap.keySet()) { in updatePreferences() 335 if (grantCategory.equals(Category.ALLOWED_FOREGROUND)) { in updatePreferences() 337 category = findPreference(Category.ALLOWED.getCategoryName()); in updatePreferences() 340 if (grantCategory.equals(Category.ASK)) { in updatePreferences() 408 int noPermsStringRes = grantCategory.equals(Category.DENIED) in updatePreferences() 498 Category.ALLOWED.getCategoryName()); in setAutoRevokeToggleState() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/classifier/ |
D | OnDeviceClassifier.java | 45 import org.tensorflow.lite.support.label.Category; 179 List<Category> classifications; in getAppClassificationTopics() 193 classifications.sort(Comparator.comparing(Category::getScore).reversed()); in getAppClassificationTopics() 213 private static boolean isAboveThreshold(Category category, float classifierThresholdValue) { in isAboveThreshold() 219 private static int convertCategoryLabelToTopicId(Category category) { in convertCategoryLabelToTopicId()
|