Searched refs:profilePref (Results 1 – 2 of 2) sorted by relevance
39 BluetoothDeviceProfilePreference profilePref =41 LocalBluetoothProfile profile = profilePref.getProfile();42 profile.setEnabled(profilePref.getCachedDevice().getDevice(), isChecked);59 Preference profilePref = preferenceGroup.findPreference(profile.toString()); in updateState() local60 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()
98 private void refreshProfilePreference(SwitchPreference profilePref, in refreshProfilePreference() argument101 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.isEnabled(device)); in refreshProfilePreference()177 SwitchPreference profilePref = (SwitchPreference) preference; in onPreferenceClick() local178 if (profilePref.isChecked()) { in onPreferenceClick()183 refreshProfilePreference(profilePref, profile); in onPreferenceClick()