Lines Matching refs:mService
41 private BluetoothSap mService;
63 mService = (BluetoothSap) proxy;
65 List<BluetoothDevice> deviceList = mService.getConnectedDevices();
113 if (mService == null) return false;
114 List<BluetoothDevice> sinks = mService.getConnectedDevices();
117 mService.disconnect(sink);
120 return mService.connect(device);
124 if (mService == null) return false;
125 List<BluetoothDevice> deviceList = mService.getConnectedDevices();
127 if (mService.getPriority(device) > BluetoothProfile.PRIORITY_ON) {
128 mService.setPriority(device, BluetoothProfile.PRIORITY_ON);
130 return mService.disconnect(device);
137 if (mService == null) return BluetoothProfile.STATE_DISCONNECTED;
138 List<BluetoothDevice> deviceList = mService.getConnectedDevices();
141 ? mService.getConnectionState(device)
146 if (mService == null) return false;
147 return mService.getPriority(device) > BluetoothProfile.PRIORITY_OFF;
151 if (mService == null) return BluetoothProfile.PRIORITY_OFF;
152 return mService.getPriority(device);
156 if (mService == null) return;
158 if (mService.getPriority(device) < BluetoothProfile.PRIORITY_ON) {
159 mService.setPriority(device, BluetoothProfile.PRIORITY_ON);
162 mService.setPriority(device, BluetoothProfile.PRIORITY_OFF);
167 if (mService == null) return new ArrayList<BluetoothDevice>(0);
168 return mService.getDevicesMatchingConnectionStates(
206 if (mService != null) {
209 mService);
210 mService = null;