Searched refs:mHeadsetProfile (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/ |
D | HfpClientConnection.java | 37 private BluetoothHeadsetClient mHeadsetProfile; field in HfpClientConnection 53 mHeadsetProfile = client; in HfpClientConnection() 70 mHeadsetProfile = client; in HfpClientConnection() 72 if (mHeadsetProfile == null) { in HfpClientConnection() 76 mCurrentCall = mHeadsetProfile.dial(mDevice, number.getSchemeSpecificPart()); in HfpClientConnection() 89 mClientHasEcc = HfpClientConnectionService.hasHfpClientEcc(mHeadsetProfile, mDevice); in finishInitializing() 105 mHeadsetProfile = null; in onHfpDisconnected() 123 mHeadsetProfile.enterPrivateMode(mDevice, mCurrentCall.getId()); in enterPrivateMode() 210 mHeadsetProfile.sendDTMF(mDevice, (byte) c); in onPlayDtmfTone() 221 mHeadsetProfile.terminateCall(mDevice, mCurrentCall); in onDisconnect() [all …]
|
D | HfpClientConference.java | 29 private BluetoothHeadsetClient mHeadsetProfile; field in HfpClientConference 35 mHeadsetProfile = client; in HfpClientConference() 46 mHeadsetProfile.terminateCall(mDevice, null); in onDisconnect() 65 mHeadsetProfile.holdCall(mDevice); in onHold() 71 mHeadsetProfile.acceptCall(mDevice, BluetoothHeadsetClient.CALL_ACCEPT_HOLD); in onUnhold() 77 if (mHeadsetProfile != null) { in onPlayDtmfTone() 78 mHeadsetProfile.sendDTMF(mDevice, (byte) c); in onPlayDtmfTone() 90 mHeadsetProfile.acceptCall(mDevice, BluetoothHeadsetClient.CALL_ACCEPT_NONE); in onConnectionAdded()
|
D | HfpClientDeviceBlock.java | 51 private BluetoothHeadsetClient mHeadsetProfile; field in HfpClientDeviceBlock 66 mHeadsetProfile = headsetProfile; in HfpClientDeviceBlock() 69 if (mHeadsetProfile != null) { in HfpClientDeviceBlock() 70 List<BluetoothHeadsetClientCall> calls = mHeadsetProfile.getCurrentCalls(mDevice); in HfpClientDeviceBlock() 125 mHeadsetProfile); in onConference() 236 if (mHeadsetProfile == null) { in buildConnection() 253 connection = new HfpClientConnection(mConnServ, mDevice, mHeadsetProfile, call); in buildConnection() 255 connection = new HfpClientConnection(mConnServ, mDevice, mHeadsetProfile, number); in buildConnection() 294 mHeadsetProfile); in updateConferenceableConnections()
|
D | HfpClientConnectionService.java | 56 private BluetoothHeadsetClient mHeadsetProfile; field in HfpClientConnectionService 135 if (mHeadsetProfile != null) { in onDestroy() 136 mAdapter.closeProfileProxy(BluetoothProfile.HEADSET_CLIENT, mHeadsetProfile); in onDestroy() 271 mHeadsetProfile = (BluetoothHeadsetClient) proxy; 273 List<BluetoothDevice> devices = mHeadsetProfile.getConnectedDevices(); 294 mHeadsetProfile = null; 307 HfpClientDeviceBlock block = new HfpClientDeviceBlock(this, device, mHeadsetProfile); in createBlockForDevice()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/ |
D | HandsFreeProfileOutputPreferenceControllerTest.java | 93 private HeadsetProfile mHeadsetProfile; field in HandsFreeProfileOutputPreferenceControllerTest 128 when(mLocalBluetoothProfileManager.getHeadsetProfile()).thenReturn(mHeadsetProfile); in setUp() 181 verify(mHeadsetProfile, never()).setActiveDevice(mLeftBluetoothHapDevice); in setActiveBluetoothDevice_btDeviceWithHisyncId_shouldSetBtDeviceActive() 194 verify(mHeadsetProfile).setActiveDevice(mBluetoothDevice); in setActiveBluetoothDevice_btDeviceWithoutHisyncId_shouldSetBtDeviceActive() 209 verify(mHeadsetProfile).setActiveDevice(null); in setActiveBluetoothDevice_setNull_shouldSetNullToBothProfiles() 223 verify(mHeadsetProfile, times(0)).setActiveDevice(any(BluetoothDevice.class)); in setActiveBluetoothDevice_inNormalMode_shouldNotSetActiveDeviceToHeadsetProfile() 251 when(mHeadsetProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in updateState_oneHeadsetsAvailableAndActivated_shouldSetDeviceName() 252 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in updateState_oneHeadsetsAvailableAndActivated_shouldSetDeviceName() 273 when(mHeadsetProfile.getConnectedDevices()).thenReturn(connectedDevices); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName() 274 when(mHeadsetProfile.getActiveDevice()).thenReturn(mSecondBluetoothDevice); in updateState_moreThanOneHfpBtDevicesAreAvailable_shouldSetActivatedDeviceName() [all …]
|
D | AudioOutputSwitchPreferenceControllerTest.java | 103 private HeadsetProfile mHeadsetProfile; field in AudioOutputSwitchPreferenceControllerTest 139 when(mLocalBluetoothProfileManager.getHeadsetProfile()).thenReturn(mHeadsetProfile); in setUp() 264 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice() 282 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice() 300 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices() 316 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_noActiveDevice_returnNull() 370 when(mHeadsetProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in getConnectedHfpDevices_oneConnectedHfpDevice_shouldAddDeviceToList() 387 when(mHeadsetProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in getConnectedHfpDevices_moreThanOneConnectedHfpDevice_shouldAddDeviceToList()
|