/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachineTest.java | 75 @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 …]
|
D | HeadsetServiceAndStateMachineTest.java | 95 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()
|
D | HeadsetServiceTest.java | 73 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()
|
D | HeadsetPhoneStateTest.java | 54 @Mock private HeadsetService mHeadsetService;
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetService.java | 87 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 …]
|
D | HeadsetObjectsFactory.java | 74 HeadsetService headsetService, AdapterService adapterService, in makeStateMachine() 95 public HeadsetSystemInterface makeSystemInterface(HeadsetService service) { in makeSystemInterface()
|
D | HeadsetSystemInterface.java | 44 private final HeadsetService mHeadsetService; 71 HeadsetSystemInterface(HeadsetService headsetService) { in HeadsetSystemInterface()
|
D | HeadsetStateMachine.java | 128 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()
|
D | HeadsetPhoneState.java | 52 private final HeadsetService mHeadsetService; 80 HeadsetPhoneState(HeadsetService headsetService) { in HeadsetPhoneState()
|
D | HeadsetNativeInterface.java | 60 HeadsetService service = HeadsetService.getHeadsetService(); in sendMessageToService()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | PhonePolicy.java | 38 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()
|
D | ServiceFactory.java | 22 import com.android.bluetooth.hfp.HeadsetService; 33 public HeadsetService getHeadsetService() { in getHeadsetService() 34 return HeadsetService.getHeadsetService(); in getHeadsetService()
|
D | Config.java | 34 import com.android.bluetooth.hfp.HeadsetService; 67 new ProfileConfig(HeadsetService.class, R.bool.profile_supported_hs_hfp,
|
D | BondStateMachine.java | 35 import com.android.bluetooth.hfp.HeadsetService; 534 HeadsetService headsetService = HeadsetService.getHeadsetService(); in clearProfilePriority()
|
D | SilenceDeviceManager.java | 34 import com.android.bluetooth.hfp.HeadsetService; 269 HeadsetService headsetService = mFactory.getHeadsetService(); in handleSilenceDeviceStateChanged()
|
D | ActiveDeviceManager.java | 40 import com.android.bluetooth.hfp.HeadsetService; 441 final HeadsetService headsetService = mFactory.getHeadsetService(); in setHfpActiveDevice()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | SilenceDeviceManagerTest.java | 38 import com.android.bluetooth.hfp.HeadsetService; 64 @Mock private HeadsetService mHeadsetService;
|
D | ActiveDeviceManagerTest.java | 39 import com.android.bluetooth.hfp.HeadsetService; 65 @Mock private HeadsetService mHeadsetService;
|
D | PhonePolicyTest.java | 36 import com.android.bluetooth.hfp.HeadsetService; 63 @Mock private HeadsetService mHeadsetService;
|