Home
last modified time | relevance | path

Searched refs:getConnectionPolicy (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DPhonePolicyTest.java111 when(mHeadsetService.getConnectionPolicy(device)) in testProcessInitProfilePriorities()
115 when(mA2dpService.getConnectionPolicy(device)) in testProcessInitProfilePriorities()
156 when(mHeadsetService.getConnectionPolicy(bondedDevice)).thenReturn( in testAdapterOnAutoConnect()
158 when(mA2dpService.getConnectionPolicy(bondedDevice)).thenReturn( in testAdapterOnAutoConnect()
191 when(mHeadsetService.getConnectionPolicy(connectionOrder.get(0))).thenReturn( in testDisconnectNoAutoConnect()
193 when(mHeadsetService.getConnectionPolicy(connectionOrder.get(1))).thenReturn( in testDisconnectNoAutoConnect()
195 when(mHeadsetService.getConnectionPolicy(connectionOrder.get(2))).thenReturn( in testDisconnectNoAutoConnect()
197 when(mHeadsetService.getConnectionPolicy(connectionOrder.get(3))).thenReturn( in testDisconnectNoAutoConnect()
273 when(mHeadsetService.getConnectionPolicy(bondedDevices[0])).thenReturn( in testReconnectOnPartialConnect()
275 when(mA2dpService.getConnectionPolicy(bondedDevices[0])).thenReturn( in testReconnectOnPartialConnect()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DPhonePolicy.java267 hidService.getConnectionPolicy(device) in processInitProfilePriorities()
276 headsetService.getConnectionPolicy(device) in processInitProfilePriorities()
284 a2dpService.getConnectionPolicy(device) in processInitProfilePriorities()
291 panService.getConnectionPolicy(device) in processInitProfilePriorities()
300 BluetoothUuid.HEARING_AID) && (hearingAidService.getConnectionPolicy(device) in processInitProfilePriorities()
425 int a2dpConnectionPolicy = a2dpService.getConnectionPolicy(device); in autoConnectA2dp()
441 int headsetConnectionPolicy = hsService.getConnectionPolicy(device); in autoConnectHeadset()
486 if (!mHeadsetRetrySet.contains(device) && (hsService.getConnectionPolicy(device) in processConnectOtherProfiles()
496 if (!mA2dpRetrySet.contains(device) && (a2dpService.getConnectionPolicy(device) in processConnectOtherProfiles()
509 if (panConnDevList.isEmpty() && (panService.getConnectionPolicy(device) in processConnectOtherProfiles()
DAdapterService.java893 if (mA2dpService != null && mA2dpService.getConnectionPolicy(device) in isAnyProfileEnabled()
897 if (mA2dpSinkService != null && mA2dpSinkService.getConnectionPolicy(device) in isAnyProfileEnabled()
901 if (mHeadsetService != null && mHeadsetService.getConnectionPolicy(device) in isAnyProfileEnabled()
905 if (mHeadsetClientService != null && mHeadsetClientService.getConnectionPolicy(device) in isAnyProfileEnabled()
909 if (mMapClientService != null && mMapClientService.getConnectionPolicy(device) in isAnyProfileEnabled()
913 if (mHidHostService != null && mHidHostService.getConnectionPolicy(device) in isAnyProfileEnabled()
917 if (mPanService != null && mPanService.getConnectionPolicy(device) in isAnyProfileEnabled()
921 if (mPbapClientService != null && mPbapClientService.getConnectionPolicy(device) in isAnyProfileEnabled()
925 if (mHearingAidService != null && mHearingAidService.getConnectionPolicy(device) in isAnyProfileEnabled()
945 BluetoothProfile.A2DP, device) && mA2dpService.getConnectionPolicy(device) in connectEnabledProfiles()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachineTest.java130 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in testIncomingPriorityReject()
160 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in testIncomingPriorityAccept()
206 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in testIncomingTimeout()
248 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in testInBandRingtone()
385 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in runSupportedVendorAtCommand()
428 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in runUnsupportedVendorAtCommand()
473 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in runSupportedVendorEvent()
530 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in runUnsupportedVendorEvent()
579 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in testVoiceRecognitionStateChange()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkService.java228 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in A2dpSinkService.A2dpSinkServiceBinder
233 return service.getConnectionPolicy(device); in getConnectionPolicy()
274 if (getConnectionPolicy(device) == BluetoothProfile.CONNECTION_POLICY_FORBIDDEN) { in connect()
417 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in A2dpSinkService
DA2dpSinkStateMachine.java172 if (mService.getConnectionPolicy(mDevice) in processStackEvent()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPbapClientService.java309 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in PbapClientService.BluetoothPbapClientBinder
314 return service.getConnectionPolicy(device); in getConnectionPolicy()
347 if (getConnectionPolicy(device) <= BluetoothProfile.CONNECTION_POLICY_FORBIDDEN) { in connect()
482 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in PbapClientService
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidService.java242 if (getConnectionPolicy(device) == BluetoothProfile.CONNECTION_POLICY_FORBIDDEN) { in connect()
375 int connectionPolicy = getConnectionPolicy(device); in okToConnect()
515 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in HearingAidService
943 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in HearingAidService.BluetoothHearingAidBinder
948 return service.getConnectionPolicy(device); in getConnectionPolicy()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMapClientService.java109 if (getConnectionPolicy(device) == BluetoothProfile.CONNECTION_POLICY_FORBIDDEN) { in connect()
274 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in MapClientService
559 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in MapClientService.Binder
564 return service.getConnectionPolicy(device); in getConnectionPolicy()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java246 if (getConnectionPolicy(device) == BluetoothProfile.CONNECTION_POLICY_FORBIDDEN) { in connect()
374 int connectionPolicy = getConnectionPolicy(device); in okToConnect()
673 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in A2dpService
1299 return service.getConnectionPolicy(device); in getPriority()
1303 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in A2dpService.BluetoothA2dpBinder
1309 return service.getConnectionPolicy(device); in getConnectionPolicy()
DA2dpStateMachine.java773 " getConnectionPolicy: " + mA2dpService.getConnectionPolicy(mDevice)); in dump()
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidHostService.java406 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in HidHostService.BluetoothHidHostBinder
412 return service.getConnectionPolicy(device); in getConnectionPolicy()
514 if (getConnectionPolicy(device) == BluetoothHidHost.CONNECTION_POLICY_FORBIDDEN) { in connect()
617 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in HidHostService
890 int connectionPolicy = getConnectionPolicy(device); in okToConnect()
DHidDeviceService.java693 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in HidDeviceService
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java514 return service.getConnectionPolicy(device); in getPriority()
518 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in HeadsetService.BluetoothHeadsetBinder
524 return service.getConnectionPolicy(device); in getConnectionPolicy()
714 if (getConnectionPolicy(device) == BluetoothProfile.CONNECTION_POLICY_FORBIDDEN) { in connect()
893 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in HeadsetService
1783 int connectionPolicy = getConnectionPolicy(device); in okToAcceptConnection()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java275 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in HeadsetClientService.BluetoothHeadsetClientBinder
280 return service.getConnectionPolicy(device); in getConnectionPolicy()
491 if (getConnectionPolicy(device) == BluetoothProfile.CONNECTION_POLICY_FORBIDDEN) { in connect()
615 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in HeadsetClientService
DHeadsetClientStateMachine.java881 + mService.getConnectionPolicy(device) + " bondState=" in processConnectionEvent()
1785 int connectionPolicy = mService.getConnectionPolicy(device); in okToConnect()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java638 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in SapService
1030 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in SapService.SapBinder
1035 return service.getConnectionPolicy(device); in getConnectionPolicy()
/packages/apps/Nfc/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java237 if (mHeadset.getConnectionPolicy(mDevice) == in nextStepInit()
241 if (mA2dp.getConnectionPolicy(mDevice) == in nextStepInit()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapService.java637 int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in BluetoothMapService
1318 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in BluetoothMapService.BluetoothMapBinder
1323 return service.getConnectionPolicy(device); in getConnectionPolicy()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java224 mService.getConnectionPolicy(mLeftDevice)); in testGetSetPriority()
230 mService.getConnectionPolicy(mLeftDevice)); in testGetSetPriority()
236 mService.getConnectionPolicy(mLeftDevice)); in testGetSetPriority()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java267 mA2dpService.getConnectionPolicy(mTestDevice)); in testGetPriority()
273 mA2dpService.getConnectionPolicy(mTestDevice)); in testGetPriority()
279 mA2dpService.getConnectionPolicy(mTestDevice)); in testGetPriority()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsProfilesControllerTest.java132 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in BluetoothDetailsProfilesControllerTest.FakeBluetoothProfile
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapService.java518 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in BluetoothPbapService
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java470 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in PanService
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetStateMachineTest.java119 when(mHeadsetService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in setUp()

12