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.setPreferred(profilePref.getCachedDevice().getDevice(), isChecked);
64 Preference profilePref = preferenceGroup.findPreference(profile.toString()); in updateState() local
65 if (profilePref == null) { in updateState()
66 profilePref = new BluetoothDeviceProfilePreference(getContext(), profile, in updateState()
68 profilePref.setOnPreferenceChangeListener(mProfileChangeListener); in updateState()
69 preferenceGroup.addPreference(profilePref); in updateState()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDetailsProfilesController.java98 private void refreshProfilePreference(SwitchPreference profilePref, in refreshProfilePreference() argument
101 profilePref.setEnabled(!mCachedDevice.isBusy()); in refreshProfilePreference()
103 profilePref.setChecked(device.getMessageAccessPermission() in refreshProfilePreference()
106 profilePref.setChecked(device.getPhonebookAccessPermission() in refreshProfilePreference()
109 profilePref.setChecked(profile.getConnectionStatus(device) == in refreshProfilePreference()
112 profilePref.setChecked(profile.isPreferred(device)); in refreshProfilePreference()
179 SwitchPreference profilePref = (SwitchPreference) preference; in onPreferenceClick() local
180 if (profilePref.isChecked()) { in onPreferenceClick()
185 refreshProfilePreference(profilePref, profile); in onPreferenceClick()