Home | History | Annotate | Download | only in bluetooth

Lines Matching refs:mService

164         private BluetoothA2dp mService;
168 mService = new BluetoothA2dp(localManager.getContext());
173 return mService.getNonDisconnectedSinks();
178 Set<BluetoothDevice> sinks = mService.getNonDisconnectedSinks();
181 mService.disconnectSink(sink);
184 return mService.connectSink(device);
190 if (mService.getSinkPriority(device) > BluetoothA2dp.PRIORITY_ON) {
191 mService.setSinkPriority(device, BluetoothA2dp.PRIORITY_ON);
193 return mService.disconnectSink(device);
198 return convertState(mService.getSinkState(device));
214 return mService.getSinkPriority(device) > BluetoothA2dp.PRIORITY_OFF;
219 return mService.getSinkPriority(device);
225 if (mService.getSinkPriority(device) < BluetoothA2dp.PRIORITY_ON) {
226 mService.setSinkPriority(device, BluetoothA2dp.PRIORITY_ON);
229 mService.setSinkPriority(device, BluetoothA2dp.PRIORITY_OFF);
257 private BluetoothHeadset mService;
262 mService = new BluetoothHeadset(localManager.getContext(), this);
273 BluetoothDevice device = mService.getCurrentHeadset();
288 BluetoothDevice device = mService.getCurrentHeadset();
300 mService.disconnectHeadset();
301 return mService.connectHeadset(device);
306 if (mService.getCurrentHeadset().equals(device)) {
308 if (mService.getPriority(device) > BluetoothHeadset.PRIORITY_ON) {
309 mService.setPriority(device, BluetoothHeadset.PRIORITY_ON);
311 return mService.disconnectHeadset();
319 BluetoothDevice currentDevice = mService.getCurrentHeadset();
321 ? convertState(mService.getState())
338 return mService.getPriority(device) > BluetoothHeadset.PRIORITY_OFF;
343 return mService.getPriority(device);
349 if (mService.getPriority(device) < BluetoothHeadset.PRIORITY_ON) {
350 mService.setPriority(device, BluetoothHeadset.PRIORITY_ON);
353 mService.setPriority(device, BluetoothHeadset.PRIORITY_OFF);