Searched refs:mediaProfile (Results 1 – 3 of 3) sorted by relevance
198 LocalBluetoothProfile mediaProfile = null; in setButtonsCheckedAndListeners() local203 mediaProfile = profile; in setButtonsCheckedAndListeners()207 LocalBluetoothProfile finalMediaProfile = mediaProfile; in setButtonsCheckedAndListeners()253 if (mediaProfile == null || !isConnected || mHasUxRestriction) { in setButtonsCheckedAndListeners()260 boolean mediaEnabled = mediaProfile.isEnabled(cachedDevice.getDevice()); in setButtonsCheckedAndListeners()
187 LocalBluetoothProfile mediaProfile = getProfile(device, BluetoothProfile.A2DP_SINK); in onNotifyChange() local190 if (phoneProfile != null && mediaProfile != null in onNotifyChange()192 && !mediaProfile.isEnabled(device.getDevice())) { in onNotifyChange()194 mediaProfile.setEnabled(device.getDevice(), true); in onNotifyChange()
441 LocalBluetoothProfile mediaProfile = mock(LocalBluetoothProfile.class); in addBluetoothDevice() local443 when(mediaProfile.getProfileId()).thenReturn(BluetoothProfile.A2DP_SINK); in addBluetoothDevice()445 when(mediaProfile.isEnabled(any())).thenReturn(mediaEnabled); in addBluetoothDevice()446 when(cachedDevice.getProfiles()).thenReturn(Arrays.asList(phoneProfile, mediaProfile)); in addBluetoothDevice()