Searched refs:phoneProfile (Results 1 – 3 of 3) sorted by relevance
197 LocalBluetoothProfile phoneProfile = null; in setButtonsCheckedAndListeners() local201 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()
185 LocalBluetoothProfile phoneProfile = getProfile(device, in onNotifyChange() local190 if (phoneProfile != null && mediaProfile != null in onNotifyChange()191 && !phoneProfile.isEnabled(device.getDevice()) in onNotifyChange()193 phoneProfile.setEnabled(device.getDevice(), true); in onNotifyChange()
440 LocalBluetoothProfile phoneProfile = mock(LocalBluetoothProfile.class); in addBluetoothDevice() local442 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()