Home
last modified time | relevance | path

Searched refs:BLUETOOTH_CONNECT (Results 1 – 25 of 47) sorted by relevance

12

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetStateMachineTest.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
175 mIntentArgument.capture(), eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_DisconnectedToConnecting_Connect()
193 mIntentArgument.capture(), eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_DisconnectedToConnecting_StackConnected()
211 mIntentArgument.capture(), eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_DisconnectedToConnecting_StackConnecting()
246 mIntentArgument.capture(), eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_ConnectingToDisconnected_StackDisconnected()
265 eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_ConnectingToDisconnected_Timeout()
309 mIntentArgument.capture(), eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_ConnectingToConnected_StackSlcConnected()
332 mIntentArgument.capture(), eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_DisconnectingToDisconnected_StackDisconnected()
352 eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_DisconnectingToDisconnected_Timeout()
375 mIntentArgument.capture(), eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_DisconnectingToConnected_StackSlcCconnected()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DRemoteDevicesTest.java3 import static android.Manifest.permission.BLUETOOTH_CONNECT;
91 Assert.assertEquals(BLUETOOTH_CONNECT, mStringArgument.getValue()); in testUpdateBatteryLevel_normalSequence()
107 Assert.assertEquals(BLUETOOTH_CONNECT, mStringArgument.getValue()); in testUpdateBatteryLevel_normalSequence()
175 Assert.assertEquals(BLUETOOTH_CONNECT, mStringArgument.getValue()); in testResetBatteryLevel_testResetAfterUpdate()
190 Assert.assertEquals(BLUETOOTH_CONNECT, mStringArgument.getValue()); in testResetBatteryLevel_testResetAfterUpdate()
206 Assert.assertEquals(BLUETOOTH_CONNECT, mStringArgument.getValue()); in testResetBatteryLevel_testResetAfterUpdate()
223 Assert.assertEquals(BLUETOOTH_CONNECT, mStringArgument.getValue()); in testResetBatteryLevelOnHeadsetStateChange()
240 Assert.assertEquals(BLUETOOTH_CONNECT, mStringArgument.getValue()); in testResetBatteryLevelOnHeadsetStateChange()
251 Assert.assertEquals(BLUETOOTH_CONNECT, mStringArgument.getValue()); in testResetBatteryLevelOnHeadsetStateChange()
268 Assert.assertEquals(BLUETOOTH_CONNECT, mStringArgument.getValue()); in testResetBatteryLevel_testAclStateChangeCallback()
[all …]
DSilenceDeviceManagerTest.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
123 eq(BLUETOOTH_CONNECT), any(Bundle.class)); in testSetGetDeviceSilenceConnectedCase()
135 eq(BLUETOOTH_CONNECT), any(Bundle.class)); in testSetGetDeviceSilenceConnectedCase()
149 eq(BLUETOOTH_CONNECT), any(Bundle.class)); in testSetGetDeviceSilenceConnectedCase()
163 eq(BLUETOOTH_CONNECT), any(Bundle.class)); in testSetGetDeviceSilenceDisconnectedCase()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/
DMapClientStateMachineTest.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
179 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testStateTransitionFromConnectingToDisconnected()
200 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testStateTransitionFromConnectingToConnected()
222 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testStateTransitionFromConnectedWithMasDisconnected()
230 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testStateTransitionFromConnectedWithMasDisconnected()
251 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testReceiveEmptyEvent()
275 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testSetMessageStatus()
301 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testDisconnect()
308 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testDisconnect()
327 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testDisconnectTimeout()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java2146 @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
2457 @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
2472 @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
2617 @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
2632 @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
2646 @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
2661 @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
2676 @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
2698 @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
2719 @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DRemoteDevices.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
336 sAdapterService.sendBroadcast(intent, BLUETOOTH_CONNECT, in setAlias()
415 sAdapterService.sendBroadcast(intent, BLUETOOTH_CONNECT, in sendUuidIntent()
501 sAdapterService.sendBroadcast(intent, BLUETOOTH_CONNECT, in sendBatteryLevelChangedBroadcast()
558 sAdapterService.sendBroadcast(intent, BLUETOOTH_CONNECT, in devicePropertyChangedCallback()
582 sAdapterService.sendBroadcast(intent, BLUETOOTH_CONNECT, in devicePropertyChangedCallback()
683 sAdapterService.sendBroadcast(intent, BLUETOOTH_CONNECT, in aclStateChangeCallback()
716 sAdapterService.sendBroadcast(intent, BLUETOOTH_CONNECT, in aclStateChangeCallback()
DProfileService.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
166 if (checkCallingOrSelfPermission(BLUETOOTH_CONNECT) in onStartCommand()
DAdapterProperties.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
698 mService.sendBroadcastAsUser(intent, UserHandle.ALL, BLUETOOTH_CONNECT, in sendConnectionStateChange()
862 BLUETOOTH_CONNECT, Utils.getTempAllowlistBroadcastOptions()); in adapterPropertyChangedCallback()
872 BLUETOOTH_CONNECT, Utils.getTempAllowlistBroadcastOptions()); in adapterPropertyChangedCallback()
DSilenceDeviceManager.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
290 mAdapterService.sendBroadcastAsUser(intent, UserHandle.ALL, BLUETOOTH_CONNECT, in broadcastSilenceStateChange()
DBondStateMachine.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
374 mAdapterService.sendOrderedBroadcast(intent, BLUETOOTH_CONNECT, in sendDisplayPinIntent()
441 mAdapterService.sendBroadcastAsUser(intent, UserHandle.ALL, BLUETOOTH_CONNECT, in sendIntent()
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidHostService.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
346 @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
833 sendBroadcastAsUser(intent, UserHandle.ALL, BLUETOOTH_CONNECT, in broadcastConnectionState()
842 sendBroadcast(intent, BLUETOOTH_CONNECT, Utils.getTempAllowlistBroadcastOptions()); in broadcastHandshake()
850 sendBroadcast(intent, BLUETOOTH_CONNECT, Utils.getTempAllowlistBroadcastOptions()); in broadcastProtocolMode()
862 sendBroadcast(intent, BLUETOOTH_CONNECT, Utils.getTempAllowlistBroadcastOptions()); in broadcastReport()
870 sendBroadcast(intent, BLUETOOTH_CONNECT, Utils.getTempAllowlistBroadcastOptions()); in broadcastVirtualUnplugStatus()
878 sendBroadcast(intent, BLUETOOTH_CONNECT, Utils.getTempAllowlistBroadcastOptions()); in broadcastIdleTime()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java36 import static android.Manifest.permission.BLUETOOTH_CONNECT;
359 mService.sendBroadcast(intent, BLUETOOTH_CONNECT, Utils.getTempAllowlistBroadcastOptions()); in sendCallChangedIntent()
1381 mService.sendBroadcast(intent, BLUETOOTH_CONNECT, in processMessage()
1401 mService.sendBroadcast(intent, BLUETOOTH_CONNECT, in processMessage()
1411 mService.sendBroadcast(intent, BLUETOOTH_CONNECT, in processMessage()
1421 mService.sendBroadcast(intent, BLUETOOTH_CONNECT, in processMessage()
1431 mService.sendBroadcast(intent, BLUETOOTH_CONNECT, in processMessage()
1512 mService.sendBroadcast(intent, BLUETOOTH_CONNECT, in processMessage()
1521 mService.sendBroadcast(intent, BLUETOOTH_CONNECT, in processMessage()
1556 mService.sendBroadcast(intent, BLUETOOTH_CONNECT, in broadcastVoiceRecognitionStateChanged()
[all …]
DVendorCommandResponseProcessor.java23 import static android.Manifest.permission.BLUETOOTH_CONNECT;
167 mService.sendBroadcast(intent, BLUETOOTH_CONNECT, Utils.getTempAllowlistBroadcastOptions()); in broadcastVendorSpecificEventIntent()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/
DBluetoothConnectionPermissionChecker.java32 return mActivity.checkSelfPermission(Manifest.permission.BLUETOOTH_CONNECT) in isPermissionGranted()
49 }).launch(Manifest.permission.BLUETOOTH_CONNECT); in requestPermission()
/packages/apps/Bluetooth/src/com/android/bluetooth/
DUtils.java22 import static android.Manifest.permission.BLUETOOTH_CONNECT;
477 @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
479 return checkPermissionForPreflight(context, BLUETOOTH_CONNECT); in checkConnectPermissionForPreflight()
491 @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
494 return checkPermissionForDataDelivery(context, BLUETOOTH_CONNECT, in checkConnectPermissionForDataDelivery()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java3 import static android.Manifest.permission.BLUETOOTH_CONNECT;
400 sendBroadcast(intent, BLUETOOTH_CONNECT, in run()
529 sendBroadcast(intent, BLUETOOTH_CONNECT, Utils.getTempAllowlistBroadcastOptions()); in setState()
769 sendBroadcast(intent, BLUETOOTH_CONNECT); in sendCancelUserConfirmationIntent()
924 @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapService.java35 import static android.Manifest.permission.BLUETOOTH_CONNECT;
373 sendBroadcast(intent, BLUETOOTH_CONNECT, in handleMessage()
662 @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
799 this.sendOrderedBroadcast(intent, BLUETOOTH_CONNECT, in checkOrGetPhonebookPermission()
DPbapStateMachine.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
167 BLUETOOTH_CONNECT, Utils.getTempAllowlistBroadcastOptions()); in broadcastConnectionState()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStateMachine.java18 import static android.Manifest.permission.BLUETOOTH_CONNECT;
314 mService.sendBroadcast(intent, BLUETOOTH_CONNECT, Utils.getTempAllowlistBroadcastOptions()); in onConnectionStateChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapService.java18 import static android.Manifest.permission.BLUETOOTH_CONNECT;
380 sendBroadcast(intent, BLUETOOTH_CONNECT, in handleMessage()
522 sendBroadcast(intent, BLUETOOTH_CONNECT, Utils.getTempAllowlistBroadcastOptions()); in setState()
937 sendOrderedBroadcast(intent, BLUETOOTH_CONNECT, in onConnect()
1208 @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMceStateMachine.java43 import static android.Manifest.permission.BLUETOOTH_CONNECT;
242 mService.sendBroadcast(intent, BLUETOOTH_CONNECT, Utils.getTempAllowlistBroadcastOptions()); in onConnectionStateChanged()
758 mService.sendBroadcast(intent, BLUETOOTH_CONNECT); in processSetMessageStatus()
768 mService.sendBroadcast(intent, BLUETOOTH_CONNECT); in processSetMessageStatus()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPbapClientStateMachine.java58 import static android.Manifest.permission.BLUETOOTH_CONNECT;
348 mService.sendBroadcast(intent, BLUETOOTH_CONNECT, Utils.getTempAllowlistBroadcastOptions()); in onConnectionStateChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpStateMachine.java48 import static android.Manifest.permission.BLUETOOTH_CONNECT;
688 mA2dpService.sendBroadcast(intent, BLUETOOTH_CONNECT, in broadcastConnectionState()
700 mA2dpService.sendBroadcast(intent, BLUETOOTH_CONNECT, in broadcastAudioState()
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
254 @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT)
645 sendBroadcast(intent, BLUETOOTH_CONNECT); in handlePanDeviceStateChange()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachineTest.java18 import static android.Manifest.permission.BLUETOOTH_CONNECT;
205 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in setUpConnectedState()
366 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testDisconnectInternal()
395 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testControlOnly()
424 mIntentArgument.capture(), eq(BLUETOOTH_CONNECT), in testBrowsingOnly()

12