Searched refs:profilePref (Results 1 – 2 of 2) sorted by relevance
47 BluetoothDeviceProfilePreference profilePref =49 LocalBluetoothProfile profile = profilePref.getProfile();50 profile.setEnabled(profilePref.getCachedDevice().getDevice(), isChecked);76 Preference profilePref = preferenceGroup.findPreference(profile.toString()); in updateState() local77 if (profilePref == null) { in updateState()78 profilePref = new BluetoothDeviceProfilePreference(getContext(), profile, in updateState()80 profilePref.setOnPreferenceChangeListener(mProfileChangeListener); in updateState()82 setClickableWhileDisabled(profilePref, /* clickable= */ true, p -> in updateState()86 preferenceGroup.addPreference(profilePref); in updateState()
165 private void refreshProfilePreference(TwoStatePreference profilePref, in refreshProfilePreference() argument175 profilePref.setEnabled(!isBusy); in refreshProfilePreference()179 profilePref.setEnabled(false); in refreshProfilePreference()181 profilePref.setEnabled(!mCachedDevice.isBusy()); in refreshProfilePreference()185 profilePref.setVisible(mIsLeAudioToggleEnabled); in refreshProfilePreference()189 profilePref.setChecked(device.getMessageAccessPermission() in refreshProfilePreference()192 profilePref.setChecked(device.getPhonebookAccessPermission() in refreshProfilePreference()194 profilePref.setSummary(profile.getSummaryResourceForDevice(mCachedDevice.getDevice())); in refreshProfilePreference()196 profilePref.setChecked(profile.getConnectionStatus(device) == in refreshProfilePreference()199 profilePref.setChecked(profile.isEnabled(device)); in refreshProfilePreference()[all …]