Lines Matching refs:mService
41 private BluetoothHeadset mService;
64 mService = (BluetoothHeadset) proxy;
66 List<BluetoothDevice> deviceList = mService.getConnectedDevices();
114 if (mService == null) return false;
115 List<BluetoothDevice> sinks = mService.getConnectedDevices();
121 return mService.connect(device);
125 if (mService == null) return false;
126 List<BluetoothDevice> deviceList = mService.getConnectedDevices();
133 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) {
134 mService.setPriority(device, BluetoothProfile.PRIORITY_ON);
136 return mService.disconnect(device);
144 if (mService == null) return BluetoothProfile.STATE_DISCONNECTED;
145 List<BluetoothDevice> deviceList = mService.getConnectedDevices();
149 return mService.getConnectionState(device);
157 if (mService == null) return false;
158 return mService.getPriority(device) > BluetoothProfile.PRIORITY_OFF;
162 if (mService == null) return BluetoothProfile.PRIORITY_OFF;
163 return mService.getPriority(device);
167 if (mService == null) return;
169 if (mService.getPriority(device) < BluetoothProfile.PRIORITY_ON) {
170 mService.setPriority(device, BluetoothProfile.PRIORITY_ON);
173 mService.setPriority(device, BluetoothProfile.PRIORITY_OFF);
178 if (mService == null) return new ArrayList<BluetoothDevice>(0);
179 return mService.getDevicesMatchingConnectionStates(
217 if (mService != null) {
220 mService);
221 mService = null;