Home | History | Annotate | Download | only in bluetooth

Lines Matching refs:service

39  * Public API for controlling the Bluetooth Headset Service. This includes both
43 * Service via IPC.
47 * {@link BluetoothAdapter#closeProfileProxy} to close the service connection.
338 if (VDBG) Log.d(TAG, "Unbinding service...");
344 if (VDBG) Log.d(TAG, "Binding service...");
399 * Close the connection to the backing service.
444 final IBluetoothHeadset service = mService;
445 if (service != null && isEnabled() && isValidDevice(device)) {
447 return service.connect(device);
453 if (service == null) Log.w(TAG, "Proxy not attached to service");
486 final IBluetoothHeadset service = mService;
487 if (service != null && isEnabled() && isValidDevice(device)) {
489 return service.disconnect(device);
495 if (service == null) Log.w(TAG, "Proxy not attached to service");
505 final IBluetoothHeadset service = mService;
506 if (service != null && isEnabled()) {
508 return service.getConnectedDevices();
514 if (service == null) Log.w(TAG, "Proxy not attached to service");
524 final IBluetoothHeadset service = mService;
525 if (service != null && isEnabled()) {
527 return service.getDevicesMatchingConnectionStates(states);
533 if (service == null) Log.w(TAG, "Proxy not attached to service");
543 final IBluetoothHeadset service = mService;
544 if (service != null && isEnabled() && isValidDevice(device)) {
546 return service.getConnectionState(device);
552 if (service == null) Log.w(TAG, "Proxy not attached to service");
575 final IBluetoothHeadset service = mService;
576 if (service != null && isEnabled() && isValidDevice(device)) {
582 return service.setPriority(device, priority);
588 if (service == null) Log.w(TAG, "Proxy not attached to service");
607 final IBluetoothHeadset service = mService;
608 if (service != null && isEnabled() && isValidDevice(device)) {
610 return service.getPriority(device);
616 if (service == null) Log.w(TAG, "Proxy not attached to service");
643 final IBluetoothHeadset service = mService;
644 if (service != null && isEnabled() && isValidDevice(device)) {
646 return service.startVoiceRecognition(device);
651 if (service == null) Log.w(TAG, "Proxy not attached to service");
671 final IBluetoothHeadset service = mService;
672 if (service != null && isEnabled() && isValidDevice(device)) {
674 return service.stopVoiceRecognition(device);
679 if (service == null) Log.w(TAG, "Proxy not attached to service");
693 final IBluetoothHeadset service = mService;
694 if (service != null && isEnabled() && isValidDevice(device)) {
696 return service.isAudioConnected(device);
701 if (service == null) Log.w(TAG, "Proxy not attached to service");
724 final IBluetoothHeadset service = mService;
725 if (service != null && !isDisabled()) {
727 return service.getAudioState(device);
732 Log.w(TAG, "Proxy not attached to service");
750 final IBluetoothHeadset service = mService;
751 if (service != null && isEnabled()) {
753 service.setAudioRouteAllowed(allowed);
758 Log.w(TAG, "Proxy not attached to service");
771 final IBluetoothHeadset service = mService;
772 if (service != null && isEnabled()) {
774 return service.getAudioRouteAllowed();
779 Log.w(TAG, "Proxy not attached to service");
794 final IBluetoothHeadset service = mService;
795 if (service != null && isEnabled()) {
797 service.setForceScoAudio(forced);
802 Log.w(TAG, "Proxy not attached to service");
818 final IBluetoothHeadset service = mService;
819 if (service != null && isEnabled()) {
821 return service.isAudioOn();
826 if (service == null) Log.w(TAG, "Proxy not attached to service");
850 final IBluetoothHeadset service = mService;
851 if (service != null && isEnabled()) {
853 return service.connectAudio();
858 Log.w(TAG, "Proxy not attached to service");
876 final IBluetoothHeadset service = mService;
877 if (service != null && isEnabled()) {
879 return service.disconnectAudio();
884 Log.w(TAG, "Proxy not attached to service");
914 final IBluetoothHeadset service = mService;
915 if (service != null && isEnabled()) {
917 return service.startScoUsingVirtualVoiceCall();
922 Log.w(TAG, "Proxy not attached to service");
943 final IBluetoothHeadset service = mService;
944 if (service != null && isEnabled()) {
946 return service.stopScoUsingVirtualVoiceCall();
951 Log.w(TAG, "Proxy not attached to service");
967 final IBluetoothHeadset service = mService;
968 if (service != null && isEnabled()) {
970 service.phoneStateChanged(numActive, numHeld, callState, number, type);
975 Log.w(TAG, "Proxy not attached to service");
987 final IBluetoothHeadset service = mService;
988 if (service != null && isEnabled()) {
990 service.clccResponse(index, direction, status, mode, mpty, number, type);
995 Log.w(TAG, "Proxy not attached to service");
1026 final IBluetoothHeadset service = mService;
1027 if (service != null && isEnabled() && isValidDevice(device)) {
1029 return service.sendVendorSpecificResultCode(device, command, arg);
1034 if (service == null) {
1035 Log.w(TAG, "Proxy not attached to service");
1067 final IBluetoothHeadset service = mService;
1068 if (service != null && isEnabled() && (device == null || isValidDevice(device))) {
1070 return service.setActiveDevice(device);
1075 if (service == null) {
1076 Log.w(TAG, "Proxy not attached to service");
1096 final IBluetoothHeadset service = mService;
1097 if (service != null && isEnabled()) {
1099 return service.getActiveDevice();
1104 if (service == null) {
1105 Log.w(TAG, "Proxy not attached to service");
1122 final IBluetoothHeadset service = mService;
1123 if (service != null && isEnabled()) {
1125 return service.isInbandRingingEnabled();
1130 if (service == null) {
1131 Log.w(TAG, "Proxy not attached to service");
1150 public void onServiceConnected(ComponentName className, IBinder service) {
1152 mService = IBluetoothHeadset.Stub.asInterface(Binder.allowBlocking(service));