Searched refs:KEY_HIDE_SYSTEM (Results 1 – 3 of 3) sorted by relevance
/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | AppListFragment.java | 33 protected static final String KEY_HIDE_SYSTEM = field in AppListFragment 41 if (KEY_HIDE_SYSTEM.equals(key)) { 42 mHideSystem = sharedPreferences.getBoolean(KEY_HIDE_SYSTEM, 54 mHideSystem = savedInstanceState.getBoolean(KEY_HIDE_SYSTEM, in onCreate() 56 mSharedPreferences.edit().putBoolean(KEY_HIDE_SYSTEM, mHideSystem).apply(); in onCreate() 58 mSharedPreferences.edit().putBoolean(KEY_HIDE_SYSTEM, true).apply(); in onCreate() 88 outState.putBoolean(KEY_HIDE_SYSTEM, mHideSystem); in onSaveInstanceState()
|
D | HideSystemSwitchPreferenceController.java | 51 mSharedPreferences.edit().putBoolean(AppListFragment.KEY_HIDE_SYSTEM, checked).apply(); in handlePreferenceChanged() 61 return mSharedPreferences.getBoolean(AppListFragment.KEY_HIDE_SYSTEM, in getSharedPreferenceHidden()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/ |
D | HideSystemSwitchPreferenceControllerTest.java | 77 mSharedPreferences.edit().putBoolean(AppListFragment.KEY_HIDE_SYSTEM, true).apply(); in onStart_sharedPreferenceTrue_switchChecked() 87 mSharedPreferences.edit().putBoolean(AppListFragment.KEY_HIDE_SYSTEM, false).apply(); in onStart_sharedPreferenceFalse_switchUnchecked() 97 mSharedPreferences.edit().putBoolean(AppListFragment.KEY_HIDE_SYSTEM, true).apply(); in onPreferenceClicked_sharedPreferenceToggled() 103 assertThat(mSharedPreferences.getBoolean(AppListFragment.KEY_HIDE_SYSTEM, in onPreferenceClicked_sharedPreferenceToggled() 107 assertThat(mSharedPreferences.getBoolean(AppListFragment.KEY_HIDE_SYSTEM, in onPreferenceClicked_sharedPreferenceToggled()
|