Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetStateMachineTest.java75 @Mock private HeadsetService mHeadsetService;
170 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectedToConnecting_Connect()
187 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectedToConnecting_StackConnected()
204 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectedToConnecting_StackConnecting()
238 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_ConnectingToDisconnected_StackDisconnected()
256 eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_ConnectingToDisconnected_Timeout()
299 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_ConnectingToConnected_StackSlcConnected()
321 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectingToDisconnected_StackDisconnected()
340 eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectingToDisconnected_Timeout()
362 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()
162 TestUtils.stopService(mServiceRule, HeadsetService.class); in tearDown()
163 mHeadsetService = HeadsetService.getHeadsetService(); in tearDown()
179 Assert.assertEquals(mHeadsetService, HeadsetService.getHeadsetService()); in testGetHeadsetService()
DHeadsetPhoneStateTest.java54 @Mock private HeadsetService mHeadsetService;
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java87 public class HeadsetService extends ProfileService { class
119 private static HeadsetService sHeadsetService;
405 private volatile HeadsetService mService;
407 BluetoothHeadsetBinder(HeadsetService svc) { in BluetoothHeadsetBinder()
416 private HeadsetService getService() { in getService()
417 final HeadsetService service = mService; in getService()
435 HeadsetService service = getService(); in connect()
444 HeadsetService service = getService(); in disconnect()
453 HeadsetService service = getService(); in getConnectedDevices()
462 HeadsetService service = getService(); in getDevicesMatchingConnectionStates()
[all …]
DHeadsetObjectsFactory.java74 HeadsetService headsetService, AdapterService adapterService, in makeStateMachine()
95 public HeadsetSystemInterface makeSystemInterface(HeadsetService service) { in makeSystemInterface()
DHeadsetSystemInterface.java44 private final HeadsetService mHeadsetService;
71 HeadsetSystemInterface(HeadsetService headsetService) { in HeadsetSystemInterface()
DHeadsetStateMachine.java128 private final HeadsetService mHeadsetService;
167 HeadsetService headsetService, AdapterService adapterService, in HeadsetStateMachine()
194 HeadsetService headsetService, AdapterService adapterService, in make()
303 HeadsetService.BLUETOOTH_PERM); in broadcastConnectionState()
321 HeadsetService.BLUETOOTH_PERM); in broadcastAudioState()
1475 mHeadsetService.sendBroadcastAsUser(intent, UserHandle.ALL, HeadsetService.BLUETOOTH_PERM); in broadcastVendorSpecificEventIntent()
1920 mHeadsetService.sendBroadcast(intent, HeadsetService.BLUETOOTH_PERM); in sendIndicatorIntent()
DHeadsetPhoneState.java52 private final HeadsetService mHeadsetService;
80 HeadsetPhoneState(HeadsetService headsetService) { in HeadsetPhoneState()
DHeadsetNativeInterface.java60 HeadsetService service = HeadsetService.getHeadsetService(); in sendMessageToService()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DPhonePolicy.java38 import com.android.bluetooth.hfp.HeadsetService;
231 HeadsetService headsetService = mFactory.getHeadsetService(); in processInitProfilePriorities()
290 HeadsetService hsService = mFactory.getHeadsetService(); in processProfileStateChanged()
335 HeadsetService hsService = mFactory.getHeadsetService(); in handleAllProfilesDisconnected()
415 final HeadsetService hsService = mFactory.getHeadsetService(); in autoConnectHeadset()
460 HeadsetService hsService = mFactory.getHeadsetService(); in processConnectOtherProfiles()
502 HeadsetService hsService = mFactory.getHeadsetService(); in setAutoConnectForHeadset()
537 HeadsetService hsService = mFactory.getHeadsetService(); in removeAutoConnectFromHeadset()
DServiceFactory.java22 import com.android.bluetooth.hfp.HeadsetService;
33 public HeadsetService getHeadsetService() { in getHeadsetService()
34 return HeadsetService.getHeadsetService(); in getHeadsetService()
DConfig.java34 import com.android.bluetooth.hfp.HeadsetService;
67 new ProfileConfig(HeadsetService.class, R.bool.profile_supported_hs_hfp,
DBondStateMachine.java35 import com.android.bluetooth.hfp.HeadsetService;
534 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()
/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.java36 import com.android.bluetooth.hfp.HeadsetService;
63 @Mock private HeadsetService mHeadsetService;