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.java47 BluetoothDeviceProfilePreference profilePref =
49 LocalBluetoothProfile profile = profilePref.getProfile();
50 profile.setEnabled(profilePref.getCachedDevice().getDevice(), isChecked);
76 Preference profilePref = preferenceGroup.findPreference(profile.toString()); in updateState() local
77 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()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDetailsProfilesController.java165 private void refreshProfilePreference(TwoStatePreference profilePref, in refreshProfilePreference() argument
175 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 …]