Home
last modified time | relevance | path

Searched refs:profilePref (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothDeviceProfilesPreferenceController.java39 BluetoothDeviceProfilePreference profilePref =
41 LocalBluetoothProfile profile = profilePref.getProfile();
42 profile.setEnabled(profilePref.getCachedDevice().getDevice(), isChecked);
59 Preference profilePref = preferenceGroup.findPreference(profile.toString()); in updateState() local
60 if (profilePref == null) { in updateState()
61 profilePref = new BluetoothDeviceProfilePreference(getContext(), profile, in updateState()
63 profilePref.setOnPreferenceChangeListener(mProfileChangeListener); in updateState()
64 preferenceGroup.addPreference(profilePref); in updateState()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDetailsProfilesController.java104 private void refreshProfilePreference(SwitchPreference profilePref, in refreshProfilePreference() argument
107 profilePref.setEnabled(!mCachedDevice.isBusy()); in refreshProfilePreference()
109 profilePref.setChecked(device.getMessageAccessPermission() in refreshProfilePreference()
112 profilePref.setChecked(device.getPhonebookAccessPermission() in refreshProfilePreference()
115 profilePref.setChecked(profile.getConnectionStatus(device) == in refreshProfilePreference()
118 profilePref.setChecked(profile.isEnabled(device)); in refreshProfilePreference()
183 SwitchPreference profilePref = (SwitchPreference) preference; in onPreferenceClick() local
184 if (profilePref.isChecked()) { in onPreferenceClick()
189 refreshProfilePreference(profilePref, profile); in onPreferenceClick()