Searched refs:mRecentAppsCategory (Results 1 – 2 of 2) sorted by relevance
71 PreferenceCategory mRecentAppsCategory; field in AppsPreferenceController129 mRecentAppsCategory.setVisible(true); in refreshUi()134 mRecentAppsCategory.setVisible(false); in refreshUi()167 mRecentAppsCategory = screen.findPreference(KEY_RECENT_APPS_CATEGORY); in initPreferences()171 mRecentAppsCategory.setVisible(false); in initPreferences()178 if (mRecentAppsCategory != null) { in displayRecentApps()180 final int prefCount = mRecentAppsCategory.getPreferenceCount(); in displayRecentApps()182 final Preference pref = mRecentAppsCategory.getPreference(i); in displayRecentApps()220 mRecentAppsCategory.addPreference(pref); in displayRecentApps()226 mRecentAppsCategory.removePreference(unusedPref); in displayRecentApps()
74 private PreferenceCategory mRecentAppsCategory; field in AppsPreferenceControllerTest85 mRecentAppsCategory = spy(new PreferenceCategory(context)); in setUp()89 when(mScreen.findPreference(KEY_RECENT_APPS_CATEGORY)).thenReturn(mRecentAppsCategory); in setUp()96 mController.mRecentAppsCategory = mRecentAppsCategory; in setUp()114 assertThat(mRecentAppsCategory.isVisible()).isFalse(); in displayPreference_noRecentApps_showAllAppsInfo()122 doReturn(true).when(mRecentAppsCategory).addPreference(any()); in displayPreference_hasRecentApps_showRecentApps()129 assertThat(mRecentAppsCategory.isVisible()).isTrue(); in displayPreference_hasRecentApps_showRecentApps()138 mController.updateState(mRecentAppsCategory); in updateState_shouldRefreshUi()