Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/bluetooth/
DDeviceProfilesSettings.java251 private void onProfileClicked(LocalBluetoothProfile profile, CheckBox profilePref) { in onProfileClicked() argument
254 if (KEY_PBAP_SERVER.equals(profilePref.getTag())) { in onProfileClicked()
259 profilePref.setChecked(newPermission == CachedBluetoothDevice.ACCESS_ALLOWED); in onProfileClicked()
263 if (!profilePref.isChecked()) { in onProfileClicked()
265 profilePref.setChecked(true); in onProfileClicked()
282 refreshProfilePreference(profilePref, profile); in onProfileClicked()
333 CheckBox profilePref = findProfile(profile.toString()); in refreshProfiles() local
334 if (profilePref == null) { in refreshProfiles()
335 profilePref = createProfilePreference(profile); in refreshProfiles()
336 mProfileContainer.addView(profilePref); in refreshProfiles()
[all …]
DBluetoothDetailsProfilesController.java95 private void refreshProfilePreference(SwitchPreference profilePref, in refreshProfilePreference() argument
98 profilePref.setEnabled(!mCachedDevice.isBusy()); in refreshProfilePreference()
100 profilePref.setChecked(mCachedDevice.getMessagePermissionChoice() in refreshProfilePreference()
103 profilePref.setChecked(mCachedDevice.getPhonebookPermissionChoice() in refreshProfilePreference()
106 profilePref.setChecked(profile.getConnectionStatus(device) == in refreshProfilePreference()
109 profilePref.setChecked(profile.isPreferred(device)); in refreshProfilePreference()
133 SwitchPreference profilePref) { in enableProfile() argument
150 SwitchPreference profilePref) { in disableProfile() argument
179 SwitchPreference profilePref = (SwitchPreference) preference; in onPreferenceClick() local
181 if (profilePref.isChecked()) { in onPreferenceClick()
[all …]