Home
last modified time | relevance | path

Searched refs:connectionPolicy (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/core/java/android/bluetooth/
DBluetoothPbapClient.java280 @ConnectionPolicy int connectionPolicy) { in setConnectionPolicy() argument
282 log("setConnectionPolicy(" + device + ", " + connectionPolicy + ")"); in setConnectionPolicy()
286 if (connectionPolicy != BluetoothProfile.CONNECTION_POLICY_FORBIDDEN in setConnectionPolicy()
287 && connectionPolicy != BluetoothProfile.CONNECTION_POLICY_ALLOWED) { in setConnectionPolicy()
291 return service.setConnectionPolicy(device, connectionPolicy); in setConnectionPolicy()
DBluetoothPbap.java298 @ConnectionPolicy int connectionPolicy) { in setConnectionPolicy() argument
299 if (DBG) log("setConnectionPolicy(" + device + ", " + connectionPolicy + ")"); in setConnectionPolicy()
304 if (connectionPolicy != BluetoothProfile.CONNECTION_POLICY_FORBIDDEN in setConnectionPolicy()
305 && connectionPolicy != BluetoothProfile.CONNECTION_POLICY_ALLOWED) { in setConnectionPolicy()
308 return service.setConnectionPolicy(device, connectionPolicy); in setConnectionPolicy()
DBluetoothPan.java271 @ConnectionPolicy int connectionPolicy) { in setConnectionPolicy() argument
272 if (DBG) log("setConnectionPolicy(" + device + ", " + connectionPolicy + ")"); in setConnectionPolicy()
277 if (connectionPolicy != BluetoothProfile.CONNECTION_POLICY_FORBIDDEN in setConnectionPolicy()
278 && connectionPolicy != BluetoothProfile.CONNECTION_POLICY_ALLOWED) { in setConnectionPolicy()
281 return service.setConnectionPolicy(device, connectionPolicy); in setConnectionPolicy()
DBluetoothSap.java332 @ConnectionPolicy int connectionPolicy) { in setConnectionPolicy() argument
333 if (DBG) log("setConnectionPolicy(" + device + ", " + connectionPolicy + ")"); in setConnectionPolicy()
336 if (connectionPolicy != BluetoothProfile.CONNECTION_POLICY_FORBIDDEN in setConnectionPolicy()
337 && connectionPolicy != BluetoothProfile.CONNECTION_POLICY_ALLOWED) { in setConnectionPolicy()
341 return service.setConnectionPolicy(device, connectionPolicy); in setConnectionPolicy()
DBluetoothA2dpSink.java301 @ConnectionPolicy int connectionPolicy) { in setConnectionPolicy() argument
302 if (DBG) log("setConnectionPolicy(" + device + ", " + connectionPolicy + ")"); in setConnectionPolicy()
305 if (connectionPolicy != BluetoothProfile.CONNECTION_POLICY_FORBIDDEN in setConnectionPolicy()
306 && connectionPolicy != BluetoothProfile.CONNECTION_POLICY_ALLOWED) { in setConnectionPolicy()
310 return service.setConnectionPolicy(device, connectionPolicy); in setConnectionPolicy()
DBluetoothMap.java351 @ConnectionPolicy int connectionPolicy) { in setConnectionPolicy() argument
352 if (DBG) log("setConnectionPolicy(" + device + ", " + connectionPolicy + ")"); in setConnectionPolicy()
355 if (connectionPolicy != BluetoothProfile.CONNECTION_POLICY_FORBIDDEN in setConnectionPolicy()
356 && connectionPolicy != BluetoothProfile.CONNECTION_POLICY_ALLOWED) { in setConnectionPolicy()
360 return service.setConnectionPolicy(device, connectionPolicy); in setConnectionPolicy()
DBluetoothHearingAid.java380 @ConnectionPolicy int connectionPolicy) { in setConnectionPolicy() argument
381 if (DBG) log("setConnectionPolicy(" + device + ", " + connectionPolicy + ")"); in setConnectionPolicy()
387 if (connectionPolicy != BluetoothProfile.CONNECTION_POLICY_FORBIDDEN in setConnectionPolicy()
388 && connectionPolicy != BluetoothProfile.CONNECTION_POLICY_ALLOWED) { in setConnectionPolicy()
391 return service.setConnectionPolicy(device, connectionPolicy); in setConnectionPolicy()
DBluetoothMapClient.java317 @ConnectionPolicy int connectionPolicy) { in setConnectionPolicy() argument
318 if (DBG) Log.d(TAG, "setConnectionPolicy(" + device + ", " + connectionPolicy + ")"); in setConnectionPolicy()
321 if (connectionPolicy != BluetoothProfile.CONNECTION_POLICY_FORBIDDEN in setConnectionPolicy()
322 && connectionPolicy != BluetoothProfile.CONNECTION_POLICY_ALLOWED) { in setConnectionPolicy()
326 return service.setConnectionPolicy(device, connectionPolicy); in setConnectionPolicy()
DBluetoothHidDevice.java711 @ConnectionPolicy int connectionPolicy) { in setConnectionPolicy() argument
712 log("setConnectionPolicy(" + device + ", " + connectionPolicy + ")"); in setConnectionPolicy()
717 if (connectionPolicy != BluetoothProfile.CONNECTION_POLICY_FORBIDDEN in setConnectionPolicy()
718 && connectionPolicy != BluetoothProfile.CONNECTION_POLICY_ALLOWED) { in setConnectionPolicy()
721 return service.setConnectionPolicy(device, connectionPolicy); in setConnectionPolicy()
DBluetoothHidHost.java426 @ConnectionPolicy int connectionPolicy) { in setConnectionPolicy() argument
427 if (DBG) log("setConnectionPolicy(" + device + ", " + connectionPolicy + ")"); in setConnectionPolicy()
433 if (connectionPolicy != BluetoothProfile.CONNECTION_POLICY_FORBIDDEN in setConnectionPolicy()
434 && connectionPolicy != BluetoothProfile.CONNECTION_POLICY_ALLOWED) { in setConnectionPolicy()
438 return service.setConnectionPolicy(device, connectionPolicy); in setConnectionPolicy()
DBluetoothA2dp.java486 @ConnectionPolicy int connectionPolicy) { in setConnectionPolicy() argument
487 if (DBG) log("setConnectionPolicy(" + device + ", " + connectionPolicy + ")"); in setConnectionPolicy()
492 if (connectionPolicy != BluetoothProfile.CONNECTION_POLICY_FORBIDDEN in setConnectionPolicy()
493 && connectionPolicy != BluetoothProfile.CONNECTION_POLICY_ALLOWED) { in setConnectionPolicy()
496 return service.setConnectionPolicy(device, connectionPolicy); in setConnectionPolicy()
DBluetoothHeadsetClient.java591 @ConnectionPolicy int connectionPolicy) { in setConnectionPolicy() argument
592 if (DBG) log("setConnectionPolicy(" + device + ", " + connectionPolicy + ")"); in setConnectionPolicy()
596 if (connectionPolicy != BluetoothProfile.CONNECTION_POLICY_FORBIDDEN in setConnectionPolicy()
597 && connectionPolicy != BluetoothProfile.CONNECTION_POLICY_ALLOWED) { in setConnectionPolicy()
601 return service.setConnectionPolicy(device, connectionPolicy); in setConnectionPolicy()
DBluetoothHeadset.java608 @ConnectionPolicy int connectionPolicy) { in setConnectionPolicy() argument
609 if (DBG) log("setConnectionPolicy(" + device + ", " + connectionPolicy + ")"); in setConnectionPolicy()
612 if (connectionPolicy != BluetoothProfile.CONNECTION_POLICY_FORBIDDEN in setConnectionPolicy()
613 && connectionPolicy != BluetoothProfile.CONNECTION_POLICY_ALLOWED) { in setConnectionPolicy()
617 return service.setConnectionPolicy(device, connectionPolicy); in setConnectionPolicy()
DBluetoothAdapter.java3542 public static int connectionPolicyToPriority(@ConnectionPolicy int connectionPolicy) { in connectionPolicyToPriority() argument
3543 switch(connectionPolicy) { in connectionPolicyToPriority()