Searched refs:enableSwitchPreference (Results 1 – 1 of 1) sorted by relevance
79 enableSwitchPreference(getPreference(), /* enabled= */ mIsPowerOn); in BluetoothStateSwitchPreferenceController()100 enableSwitchPreference(preference, /* enabled= */ false); in handlePreferenceChanged()179 enableSwitchPreference(getPreference(), /* enabled= */ false); in handleStateChanged()183 enableSwitchPreference(getPreference(), /* enabled= */ !isUserRestricted()); in handleStateChanged()187 enableSwitchPreference(getPreference(), /* enabled= */ false); in handleStateChanged()192 enableSwitchPreference(getPreference(), /* enabled= */ !isUserRestricted()); in handleStateChanged()205 private void enableSwitchPreference(ColoredSwitchPreference preference, boolean enabled) { in enableSwitchPreference() method in BluetoothStateSwitchPreferenceController