Home
last modified time | relevance | path

Searched refs:phoneProfile (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothBondedDevicesPreferenceController.java197 LocalBluetoothProfile phoneProfile = null; in setButtonsCheckedAndListeners() local
201 phoneProfile = profile; in setButtonsCheckedAndListeners()
206 LocalBluetoothProfile finalPhoneProfile = phoneProfile; in setButtonsCheckedAndListeners()
234 if (phoneProfile == null || !isConnected || mHasUxRestriction) { in setButtonsCheckedAndListeners()
241 boolean phoneEnabled = phoneProfile.isEnabled(cachedDevice.getDevice()); in setButtonsCheckedAndListeners()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DPairedBluetoothDevices.java185 LocalBluetoothProfile phoneProfile = getProfile(device, in onNotifyChange() local
190 if (phoneProfile != null && mediaProfile != null in onNotifyChange()
191 && !phoneProfile.isEnabled(device.getDevice()) in onNotifyChange()
193 phoneProfile.setEnabled(device.getDevice(), true); in onNotifyChange()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/
DPairedBluetoothDevicesTest.java440 LocalBluetoothProfile phoneProfile = mock(LocalBluetoothProfile.class); in addBluetoothDevice() local
442 when(phoneProfile.getProfileId()).thenReturn(BluetoothProfile.HEADSET_CLIENT); in addBluetoothDevice()
444 when(phoneProfile.isEnabled(any())).thenReturn(phoneEnabled); in addBluetoothDevice()
446 when(cachedDevice.getProfiles()).thenReturn(Arrays.asList(phoneProfile, mediaProfile)); in addBluetoothDevice()