Home
last modified time | relevance | path

Searched refs:HeadsetService (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetStateMachineTest.java79 @Mock private HeadsetService mHeadsetService;
174 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectedToConnecting_Connect()
191 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectedToConnecting_StackConnected()
208 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectedToConnecting_StackConnecting()
242 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_ConnectingToDisconnected_StackDisconnected()
260 eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_ConnectingToDisconnected_Timeout()
303 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_ConnectingToConnected_StackSlcConnected()
325 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectingToDisconnected_StackDisconnected()
344 eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectingToDisconnected_Timeout()
366 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectingToConnected_StackSlcCconnected()
[all …]
DHeadsetServiceAndStateMachineTest.java95 private HeadsetService mHeadsetService;
218 mOriginalVrTimeoutMs = HeadsetService.sStartVrTimeoutMs; in setUp()
219 HeadsetService.sStartVrTimeoutMs = START_VR_TIMEOUT_MILLIS; in setUp()
220 TestUtils.startService(mServiceRule, HeadsetService.class); in setUp()
221 mHeadsetService = HeadsetService.getHeadsetService(); in setUp()
244 TestUtils.stopService(mServiceRule, HeadsetService.class); in tearDown()
245 HeadsetService.sStartVrTimeoutMs = mOriginalVrTimeoutMs; in tearDown()
247 mHeadsetService = HeadsetService.getHeadsetService(); in tearDown()
266 Assert.assertEquals(mHeadsetService, HeadsetService.getHeadsetService()); in testGetHeadsetService()
DHeadsetServiceTest.java73 private HeadsetService mHeadsetService;
145 TestUtils.startService(mServiceRule, HeadsetService.class); in setUp()
146 mHeadsetService = HeadsetService.getHeadsetService(); in setUp()
160 TestUtils.stopService(mServiceRule, HeadsetService.class); in tearDown()
161 mHeadsetService = HeadsetService.getHeadsetService(); in tearDown()
177 Assert.assertEquals(mHeadsetService, HeadsetService.getHeadsetService()); in testGetHeadsetService()
DHeadsetPhoneStateTest.java55 @Mock private HeadsetService mHeadsetService;
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java90 public class HeadsetService extends ProfileService { class
124 private static HeadsetService sHeadsetService;
414 private volatile HeadsetService mService;
416 BluetoothHeadsetBinder(HeadsetService svc) { in BluetoothHeadsetBinder()
425 private HeadsetService getService() { in getService()
426 final HeadsetService service = mService; in getService()
444 HeadsetService service = getService(); in connect()
453 HeadsetService service = getService(); in disconnect()
462 HeadsetService service = getService(); in getConnectedDevices()
471 HeadsetService service = getService(); in getDevicesMatchingConnectionStates()
[all …]
DHeadsetObjectsFactory.java74 HeadsetService headsetService, AdapterService adapterService, in makeStateMachine()
95 public HeadsetSystemInterface makeSystemInterface(HeadsetService service) { in makeSystemInterface()
DHeadsetPhoneState.java48 private final HeadsetService mHeadsetService;
74 HeadsetPhoneState(HeadsetService headsetService) { in HeadsetPhoneState()
DHeadsetStateMachine.java131 private final HeadsetService mHeadsetService;
170 HeadsetService headsetService, AdapterService adapterService, in HeadsetStateMachine()
197 HeadsetService headsetService, AdapterService adapterService, in make()
307 HeadsetService.BLUETOOTH_PERM); in broadcastConnectionState()
326 HeadsetService.BLUETOOTH_PERM); in broadcastAudioState()
1503 mHeadsetService.sendBroadcastAsUser(intent, UserHandle.ALL, HeadsetService.BLUETOOTH_PERM); in broadcastVendorSpecificEventIntent()
1957 mHeadsetService.sendBroadcast(intent, HeadsetService.BLUETOOTH_PERM); in sendIndicatorIntent()
DHeadsetSystemInterface.java51 private final HeadsetService mHeadsetService;
78 HeadsetSystemInterface(HeadsetService headsetService) { in HeadsetSystemInterface()
DHeadsetNativeInterface.java60 HeadsetService service = HeadsetService.getHeadsetService(); in sendMessageToService()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DServiceFactory.java22 import com.android.bluetooth.hfp.HeadsetService;
33 public HeadsetService getHeadsetService() { in getHeadsetService()
34 return HeadsetService.getHeadsetService(); in getHeadsetService()
DPhonePolicy.java40 import com.android.bluetooth.hfp.HeadsetService;
259 HeadsetService headsetService = mFactory.getHeadsetService(); in processInitProfilePriorities()
355 HeadsetService hsService = mFactory.getHeadsetService(); in handleAllProfilesDisconnected()
436 final HeadsetService hsService = mFactory.getHeadsetService(); in autoConnectHeadset()
481 HeadsetService hsService = mFactory.getHeadsetService(); in processConnectOtherProfiles()
DConfig.java35 import com.android.bluetooth.hfp.HeadsetService;
68 new ProfileConfig(HeadsetService.class, R.bool.profile_supported_hs_hfp,
DBondStateMachine.java35 import com.android.bluetooth.hfp.HeadsetService;
535 HeadsetService headsetService = HeadsetService.getHeadsetService(); in clearProfilePriority()
DSilenceDeviceManager.java34 import com.android.bluetooth.hfp.HeadsetService;
269 HeadsetService headsetService = mFactory.getHeadsetService(); in handleSilenceDeviceStateChanged()
DActiveDeviceManager.java40 import com.android.bluetooth.hfp.HeadsetService;
441 final HeadsetService headsetService = mFactory.getHeadsetService(); in setHfpActiveDevice()
DAdapterService.java90 import com.android.bluetooth.hfp.HeadsetService;
232 private HeadsetService mHeadsetService;
1028 mHeadsetService = HeadsetService.getHeadsetService(); in initProfileServices()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DSilenceDeviceManagerTest.java38 import com.android.bluetooth.hfp.HeadsetService;
64 @Mock private HeadsetService mHeadsetService;
DActiveDeviceManagerTest.java39 import com.android.bluetooth.hfp.HeadsetService;
65 @Mock private HeadsetService mHeadsetService;
DPhonePolicyTest.java37 import com.android.bluetooth.hfp.HeadsetService;
65 @Mock private HeadsetService mHeadsetService;