Searched refs:mCategoryByKeyMap (Results 1 – 2 of 2) sorted by relevance
/packages/apps/Settings/tests/unit/src/com/android/settings/dashboard/ |
D | CategoryManagerTest.java | 55 private Map<String, DashboardCategory> mCategoryByKeyMap; field in CategoryManagerTest 65 mCategoryByKeyMap = new HashMap<>(); in setUp() 81 mCategoryByKeyMap.put(CategoryKey.CATEGORY_ACCOUNT, category); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForNewKeys() 85 mCategoryManager.backwardCompatCleanupForCategory(mTileByComponentCache, mCategoryByKeyMap); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForNewKeys() 87 assertThat(mCategoryByKeyMap.size()).isEqualTo(1); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForNewKeys() 88 assertThat(mCategoryByKeyMap.get(CategoryKey.CATEGORY_ACCOUNT)).isNotNull(); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForNewKeys() 100 mCategoryByKeyMap.put(CategoryKey.CATEGORY_ACCOUNT, category1); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForMixedKeys() 101 mCategoryByKeyMap.put(oldCategory, category2); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForMixedKeys() 105 mCategoryManager.backwardCompatCleanupForCategory(mTileByComponentCache, mCategoryByKeyMap); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForMixedKeys() 107 assertThat(mCategoryByKeyMap.size()).isEqualTo(2); in backwardCompatCleanupForCategory_shouldNotChangeCategoryForMixedKeys() [all …]
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
D | CategoryManager.java | 53 private final Map<String, DashboardCategory> mCategoryByKeyMap; field in CategoryManager 66 mCategoryByKeyMap = new ArrayMap<>(); in CategoryManager() 74 return mCategoryByKeyMap.get(categoryKey); in getTilesByCategory() 142 final boolean firstLoading = mCategoryByKeyMap.isEmpty(); in tryInitCategories() 146 mCategoryByKeyMap.clear(); in tryInitCategories() 149 mCategoryByKeyMap.put(category.key, category); in tryInitCategories() 151 backwardCompatCleanupForCategory(mTileByComponentCache, mCategoryByKeyMap); in tryInitCategories() 152 sortCategories(context, mCategoryByKeyMap); in tryInitCategories() 153 filterDuplicateTiles(mCategoryByKeyMap); in tryInitCategories()
|