Home
last modified time | relevance | path

Searched refs:mHapClientService (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hap/
DHapClientStateMachineTest.java67 @Mock private HapClientService mHapClientService; field in HapClientStateMachineTest
86 mHapClientService, in setUp()
119 doReturn(allow).when(mHapClientService).okToConnect(any(BluetoothDevice.class)); in allowConnection()
135 verify(mHapClientService, after(TIMEOUT_MS).never()) in testIncomingPolicyReject()
157 verify(mHapClientService, timeout(TIMEOUT_MS).times(1)) in testIncomingPolicyAccept()
178 verify(mHapClientService, timeout(TIMEOUT_MS).times(2)) in testIncomingPolicyAccept()
202 verify(mHapClientService, timeout(TIMEOUT_MS).times(1)) in testOutgoingTimeout()
215 verify(mHapClientService, timeout(HapClientStateMachine.sConnectTimeoutMs * 2).times(2)) in testOutgoingTimeout()
248 verify(mHapClientService, timeout(TIMEOUT_MS).times(1)) in testIncomingTimeout()
261 verify(mHapClientService, timeout(HapClientStateMachine.sConnectTimeoutMs * 2).times(2)) in testIncomingTimeout()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterService.java310 private HapClientService mHapClientService; field in AdapterService
1814 if (mHapClientService != null in isAllProfilesUnknown()
1815 && mHapClientService.getConnectionPolicy(device) in isAllProfilesUnknown()
1925 if (mHapClientService != null in connectEnabledProfiles()
1927 && mHapClientService.getConnectionPolicy(device) in connectEnabledProfiles()
1930 mHapClientService.connect(device); in connectEnabledProfiles()
1993 mHapClientService = HapClientService.getHapClientService(); in initProfileServices()
5341 if (mHapClientService != null in connectAllSupportedProfiles()
5355 if (mHapClientService != null && isProfileSupported(device, BluetoothProfile.HAP_CLIENT)) { in connectAllSupportedProfiles()
5357 mHapClientService.setConnectionPolicy( in connectAllSupportedProfiles()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioServiceTest.java137 @Mock private HapClientService mHapClientService; field in LeAudioServiceTest
217 mService.mHapClientService = mHapClientService; in setUp()
221 when(mServiceFactory.getHapClientService()).thenReturn(mHapClientService); in setUp()
1198 when(mHapClientService.setConnectionPolicy(any(), anyInt())).thenReturn(true); in testSetConnectionPolicy()
1212 verify(mHapClientService, times(1)) in testSetConnectionPolicy()
1252 verify(mHapClientService, times(1)) in testSetConnectionPolicy()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/
DLeAudioService.java205 @VisibleForTesting HapClientService mHapClientService; field in LeAudioService
4078 if (mHapClientService == null) { in setLeAudioGattClientProfilesPolicy()
4079 mHapClientService = mServiceFactory.getHapClientService(); in setLeAudioGattClientProfilesPolicy()
4081 if (mHapClientService != null) { in setLeAudioGattClientProfilesPolicy()
4082 mHapClientService.setConnectionPolicy(device, connectionPolicy); in setLeAudioGattClientProfilesPolicy()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DPhonePolicyTest.java90 @Mock private HapClientService mHapClientService; field in PhonePolicyTest
112 doReturn(mHapClientService).when(mServiceFactory).getHapClientService(); in setUp()