Home
last modified time | relevance | path

Searched refs:mHeadsetProfile (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/
DHfpClientConnection.java37 private BluetoothHeadsetClient mHeadsetProfile; field in HfpClientConnection
54 mHeadsetProfile = client; in HfpClientConnection()
71 mHeadsetProfile = client; in HfpClientConnection()
73 if (mHeadsetProfile == null) { in HfpClientConnection()
77 mCurrentCall = mHeadsetProfile.dial(mDevice, number.getSchemeSpecificPart()); in HfpClientConnection()
90 mClientHasEcc = HfpClientConnectionService.hasHfpClientEcc(mHeadsetProfile, mDevice); in finishInitializing()
106 mHeadsetProfile = null; in onHfpDisconnected()
124 mHeadsetProfile.enterPrivateMode(mDevice, mCurrentCall.getId()); in enterPrivateMode()
211 mHeadsetProfile.sendDTMF(mDevice, (byte) c); in onPlayDtmfTone()
222 mHeadsetProfile.terminateCall(mDevice, mCurrentCall); in onDisconnect()
[all …]
DHfpClientConference.java29 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()
DHfpClientDeviceBlock.java51 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()
DHfpClientConnectionService.java56 private BluetoothHeadsetClient mHeadsetProfile; field in HfpClientConnectionService
135 if (mHeadsetProfile != null) { in onDestroy()
136 mAdapter.closeProfileProxy(BluetoothProfile.HEADSET_CLIENT, mHeadsetProfile); in onDestroy()
276 mHeadsetProfile = (BluetoothHeadsetClient) proxy;
278 List<BluetoothDevice> devices = mHeadsetProfile.getConnectedDevices();
299 mHeadsetProfile = null;
312 HfpClientDeviceBlock block = new HfpClientDeviceBlock(this, device, mHeadsetProfile); in createBlockForDevice()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DHandsFreeProfileOutputPreferenceControllerTest.java93 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 …]
DAudioOutputSwitchPreferenceControllerTest.java100 private HeadsetProfile mHeadsetProfile; field in AudioOutputSwitchPreferenceControllerTest
136 when(mLocalBluetoothProfileManager.getHeadsetProfile()).thenReturn(mHeadsetProfile); in setUp()
262 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice()
280 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice()
298 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices()
314 when(mHeadsetProfile.getActiveDevice()).thenReturn(mBluetoothDevice); in findActiveHearingAidDevice_noActiveDevice_returnNull()
368 when(mHeadsetProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in getConnectedHfpDevices_oneConnectedHfpDevice_shouldAddDeviceToList()
385 when(mHeadsetProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in getConnectedHfpDevices_moreThanOneConnectedHfpDevice_shouldAddDeviceToList()