Home
last modified time | relevance | path

Searched refs:getConnectionPolicy (Results 1 – 25 of 29) 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.java286 hidService.getConnectionPolicy(device) in processInitProfilePriorities()
295 headsetService.getConnectionPolicy(device) in processInitProfilePriorities()
303 a2dpService.getConnectionPolicy(device) in processInitProfilePriorities()
310 panService.getConnectionPolicy(device) in processInitProfilePriorities()
319 BluetoothUuid.HEARING_AID) && (hearingAidService.getConnectionPolicy(device) in processInitProfilePriorities()
448 int a2dpConnectionPolicy = a2dpService.getConnectionPolicy(device); in autoConnectA2dp()
465 int headsetConnectionPolicy = hsService.getConnectionPolicy(device); in autoConnectHeadset()
514 if (!mHeadsetRetrySet.contains(device) && (hsService.getConnectionPolicy(device) in processConnectOtherProfiles()
524 if (!mA2dpRetrySet.contains(device) && (a2dpService.getConnectionPolicy(device) in processConnectOtherProfiles()
537 if (panConnDevList.isEmpty() && (panService.getConnectionPolicy(device) in processConnectOtherProfiles()
DAdapterService.java1027 if (mA2dpService != null && mA2dpService.getConnectionPolicy(device) in isAnyProfileEnabled()
1031 if (mA2dpSinkService != null && mA2dpSinkService.getConnectionPolicy(device) in isAnyProfileEnabled()
1035 if (mHeadsetService != null && mHeadsetService.getConnectionPolicy(device) in isAnyProfileEnabled()
1039 if (mHeadsetClientService != null && mHeadsetClientService.getConnectionPolicy(device) in isAnyProfileEnabled()
1043 if (mMapClientService != null && mMapClientService.getConnectionPolicy(device) in isAnyProfileEnabled()
1047 if (mHidHostService != null && mHidHostService.getConnectionPolicy(device) in isAnyProfileEnabled()
1051 if (mPanService != null && mPanService.getConnectionPolicy(device) in isAnyProfileEnabled()
1055 if (mPbapClientService != null && mPbapClientService.getConnectionPolicy(device) in isAnyProfileEnabled()
1059 if (mHearingAidService != null && mHearingAidService.getConnectionPolicy(device) in isAnyProfileEnabled()
1083 BluetoothProfile.A2DP, device) && mA2dpService.getConnectionPolicy(device) in connectEnabledProfiles()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachineTest.java131 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in testIncomingPriorityReject()
162 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in testIncomingPriorityAccept()
208 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in testIncomingTimeout()
251 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in testInBandRingtone()
389 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in runSupportedVendorAtCommand()
432 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in runUnsupportedVendorAtCommand()
477 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in runSupportedVendorEvent()
534 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in runUnsupportedVendorEvent()
583 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in testVoiceRecognitionStateChange()
637 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in testSendBIEVCommand()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkService.java269 public int getConnectionPolicy(BluetoothDevice device, AttributionSource source) { in getConnectionPolicy() method in A2dpSinkService.A2dpSinkServiceBinder
275 return service.getConnectionPolicy(device); in getConnectionPolicy()
320 if (getConnectionPolicy(device) == BluetoothProfile.CONNECTION_POLICY_FORBIDDEN) { in connect()
464 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in A2dpSinkService
DA2dpSinkStateMachine.java176 if (mService.getConnectionPolicy(mDevice) in processStackEvent()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPbapClientService.java317 public int getConnectionPolicy(BluetoothDevice device, AttributionSource source) { in getConnectionPolicy() method in PbapClientService.BluetoothPbapClientBinder
323 return service.getConnectionPolicy(device); in getConnectionPolicy()
357 if (getConnectionPolicy(device) <= BluetoothProfile.CONNECTION_POLICY_FORBIDDEN) { in connect()
492 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in PbapClientService
/packages/apps/Bluetooth/src/com/android/bluetooth/le_audio/
DLeAudioService.java208 if (getConnectionPolicy(device) == BluetoothProfile.CONNECTION_POLICY_FORBIDDEN) { in connect()
629 int connectionPolicy = getConnectionPolicy(device); in okToConnect()
692 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in LeAudioService
818 public int getConnectionPolicy(BluetoothDevice device, AttributionSource source) { in getConnectionPolicy() method in LeAudioService.BluetoothLeAudioBinder
824 return service.getConnectionPolicy(device); in getConnectionPolicy()
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidService.java248 if (getConnectionPolicy(device) == BluetoothProfile.CONNECTION_POLICY_FORBIDDEN) { in connect()
383 int connectionPolicy = getConnectionPolicy(device); in okToConnect()
523 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in HearingAidService
957 public int getConnectionPolicy(BluetoothDevice device, AttributionSource source) { in getConnectionPolicy() method in HearingAidService.BluetoothHearingAidBinder
963 return service.getConnectionPolicy(device); in getConnectionPolicy()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMapClientService.java111 if (getConnectionPolicy(device) == BluetoothProfile.CONNECTION_POLICY_FORBIDDEN) { in connect()
279 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in MapClientService
567 public int getConnectionPolicy(BluetoothDevice device, AttributionSource source) { in getConnectionPolicy() method in MapClientService.Binder
573 return service.getConnectionPolicy(device); in getConnectionPolicy()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java250 if (getConnectionPolicy(device) == BluetoothProfile.CONNECTION_POLICY_FORBIDDEN) { in connect()
376 int connectionPolicy = getConnectionPolicy(device); in okToConnect()
661 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in A2dpService
1351 return service.getConnectionPolicy(device); in getPriority()
1355 public int getConnectionPolicy(BluetoothDevice device, AttributionSource source) { in getConnectionPolicy() method in A2dpService.BluetoothA2dpBinder
1362 return service.getConnectionPolicy(device); in getConnectionPolicy()
DA2dpStateMachine.java777 " getConnectionPolicy: " + mA2dpService.getConnectionPolicy(mDevice)); in dump()
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidHostService.java418 public int getConnectionPolicy(BluetoothDevice device, AttributionSource source) { in getConnectionPolicy() method in HidHostService.BluetoothHidHostBinder
425 return service.getConnectionPolicy(device); in getConnectionPolicy()
530 if (getConnectionPolicy(device) == BluetoothHidHost.CONNECTION_POLICY_FORBIDDEN) { in connect()
633 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in HidHostService
905 int connectionPolicy = getConnectionPolicy(device); in okToConnect()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java536 return service.getConnectionPolicy(device); in getPriority()
540 public int getConnectionPolicy(BluetoothDevice device, AttributionSource source) { in getConnectionPolicy() method in HeadsetService.BluetoothHeadsetBinder
547 return service.getConnectionPolicy(device); in getConnectionPolicy()
764 if (getConnectionPolicy(device) == BluetoothProfile.CONNECTION_POLICY_FORBIDDEN) { in connect()
940 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in HeadsetService
1831 int connectionPolicy = getConnectionPolicy(device); in okToAcceptConnection()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java310 public int getConnectionPolicy(BluetoothDevice device, AttributionSource source) { in getConnectionPolicy() method in HeadsetClientService.BluetoothHeadsetClientBinder
316 return service.getConnectionPolicy(device); in getConnectionPolicy()
562 if (getConnectionPolicy(device) == BluetoothProfile.CONNECTION_POLICY_FORBIDDEN) { in connect()
680 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in HeadsetClientService
DHeadsetClientStateMachine.java977 + mService.getConnectionPolicy(device) + " bondState=" in processConnectionEvent()
1909 int connectionPolicy = mService.getConnectionPolicy(device); in okToConnect()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java646 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in SapService
1043 public int getConnectionPolicy(BluetoothDevice device, AttributionSource source) { in getConnectionPolicy() method in SapService.SapBinder
1049 return service.getConnectionPolicy(device); in getConnectionPolicy()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioServiceTest.java211 .isEqualTo(mService.getConnectionPolicy(mLeftDevice)); in testGetSetPriority()
217 .isEqualTo(mService.getConnectionPolicy(mLeftDevice)); in testGetSetPriority()
223 .isEqualTo(mService.getConnectionPolicy(mLeftDevice)); in testGetSetPriority()
/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.java647 int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in BluetoothMapService
1334 public int getConnectionPolicy(BluetoothDevice device, AttributionSource source) { in getConnectionPolicy() method in BluetoothMapService.BluetoothMapBinder
1340 return service.getConnectionPolicy(device); in getConnectionPolicy()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java268 mA2dpService.getConnectionPolicy(mTestDevice)); in testGetPriority()
274 mA2dpService.getConnectionPolicy(mTestDevice)); in testGetPriority()
280 mA2dpService.getConnectionPolicy(mTestDevice)); in testGetPriority()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java225 mService.getConnectionPolicy(mLeftDevice)); in testGetSetPriority()
231 mService.getConnectionPolicy(mLeftDevice)); in testGetSetPriority()
237 mService.getConnectionPolicy(mLeftDevice)); in testGetSetPriority()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothBondedDevicesPreferenceControllerTest.java345 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in BluetoothBondedDevicesPreferenceControllerTest.TestLocalBluetoothProfile
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsProfilesControllerTest.java134 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in BluetoothDetailsProfilesControllerTest.FakeBluetoothProfile
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapService.java523 public int getConnectionPolicy(BluetoothDevice device) { in getConnectionPolicy() method in BluetoothPbapService

12