Lines Matching refs:mService
41 private BluetoothHeadset mService;
64 mService = (BluetoothHeadset) proxy;
67 List<BluetoothDevice> deviceList = mService.getConnectedDevices();
114 if (mService == null) return false;
115 List<BluetoothDevice> sinks = mService.getConnectedDevices();
118 mService.disconnect(sink);
121 return mService.connect(device);
125 if (mService == null) return false;
126 List<BluetoothDevice> deviceList = mService.getConnectedDevices();
129 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) {
130 mService.setPriority(device, BluetoothProfile.PRIORITY_ON);
132 return mService.disconnect(device);
139 if (mService == null) return BluetoothProfile.STATE_DISCONNECTED;
140 List<BluetoothDevice> deviceList = mService.getConnectedDevices();
143 ? mService.getConnectionState(device)
148 if (mService == null) return false;
149 return mService.getPriority(device) > BluetoothProfile.PRIORITY_OFF;
153 if (mService == null) return BluetoothProfile.PRIORITY_OFF;
154 return mService.getPriority(device);
158 if (mService == null) return;
160 if (mService.getPriority(device) < BluetoothProfile.PRIORITY_ON) {
161 mService.setPriority(device, BluetoothProfile.PRIORITY_ON);
164 mService.setPriority(device, BluetoothProfile.PRIORITY_OFF);
169 if (mService == null) return new ArrayList<BluetoothDevice>(0);
170 return mService.getDevicesMatchingConnectionStates(
208 if (mService != null) {
211 mService);
212 mService = null;