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()
104 private void refreshProfilePreference(SwitchPreference profilePref, in refreshProfilePreference() argument107 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() local184 if (profilePref.isChecked()) { in onPreferenceClick()189 refreshProfilePreference(profilePref, profile); in onPreferenceClick()