Home
last modified time | relevance | path

Searched refs:BLUETOOTH_PERM (Results 1 – 25 of 35) sorted by relevance

12

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetStateMachineTest.java170 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectedToConnecting_Connect()
187 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectedToConnecting_StackConnected()
204 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectedToConnecting_StackConnecting()
238 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_ConnectingToDisconnected_StackDisconnected()
256 eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_ConnectingToDisconnected_Timeout()
299 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_ConnectingToConnected_StackSlcConnected()
321 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectingToDisconnected_StackDisconnected()
340 eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectingToDisconnected_Timeout()
362 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectingToConnected_StackSlcCconnected()
381 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_ConnectedToDisconnecting_Disconnect()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterService.java128 static final String BLUETOOTH_PERM = android.Manifest.permission.BLUETOOTH; field in AdapterService
1756 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in isEnabled()
1761 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getState()
1800 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getAddress()
1809 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getUuids()
1815 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getName()
1896 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getScanMode()
1902 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in setScanMode()
1911 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDiscoverableTimeout()
1917 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in setDiscoverableTimeout()
[all …]
DRemoteDevices.java307 sAdapterService.sendBroadcast(intent, AdapterService.BLUETOOTH_PERM); in setAlias()
459 sAdapterService.sendBroadcast(intent, AdapterService.BLUETOOTH_PERM); in sendBatteryLevelChangedBroadcast()
515 sAdapterService.sendBroadcast(intent, sAdapterService.BLUETOOTH_PERM); in devicePropertyChangedCallback()
538 sAdapterService.sendBroadcast(intent, sAdapterService.BLUETOOTH_PERM); in devicePropertyChangedCallback()
592 AdapterService.BLUETOOTH_PERM, pkg.getPermission() in deviceFoundCallback()
625 sAdapterService.sendBroadcast(intent, sAdapterService.BLUETOOTH_PERM); in aclStateChangeCallback()
656 sAdapterService.sendBroadcast(intent, sAdapterService.BLUETOOTH_PERM); in aclStateChangeCallback()
DAdapterProperties.java624 mService.sendBroadcastAsUser(intent, UserHandle.ALL, AdapterService.BLUETOOTH_PERM); in sendConnectionStateChange()
786 AdapterService.BLUETOOTH_PERM); in adapterPropertyChangedCallback()
797 AdapterService.BLUETOOTH_PERM); in adapterPropertyChangedCallback()
817 mService.sendBroadcast(intent, AdapterService.BLUETOOTH_PERM); in adapterPropertyChangedCallback()
937 mService.sendBroadcast(intent, AdapterService.BLUETOOTH_PERM); in discoveryStateChangeCallback()
942 mService.sendBroadcast(intent, AdapterService.BLUETOOTH_PERM); in discoveryStateChangeCallback()
DProfileService.java43 public static final String BLUETOOTH_PERM = android.Manifest.permission.BLUETOOTH; field in ProfileService
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DRemoteDevicesTest.java88 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue()); in testUpdateBatteryLevel_normalSequence()
104 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue()); in testUpdateBatteryLevel_normalSequence()
171 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue()); in testResetBatteryLevel_testResetAfterUpdate()
186 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue()); in testResetBatteryLevel_testResetAfterUpdate()
201 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue()); in testResetBatteryLevel_testResetAfterUpdate()
217 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue()); in testResetBatteryLevelOnHeadsetStateChange()
234 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue()); in testResetBatteryLevelOnHeadsetStateChange()
245 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue()); in testResetBatteryLevelOnHeadsetStateChange()
261 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue()); in testResetBatteryLevel_testAclStateChangeCallback()
281 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, in testResetBatteryLevel_testAclStateChangeCallback()
[all …]
DSilenceDeviceManagerTest.java121 eq(AdapterService.BLUETOOTH_PERM)); in testSetGetDeviceSilenceConnectedCase()
133 eq(AdapterService.BLUETOOTH_PERM)); in testSetGetDeviceSilenceConnectedCase()
147 eq(AdapterService.BLUETOOTH_PERM)); in testSetGetDeviceSilenceConnectedCase()
161 eq(AdapterService.BLUETOOTH_PERM)); in testSetGetDeviceSilenceDisconnectedCase()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java504 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
517 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
531 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState()
556 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in startVoiceRecognition()
571 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in stopVoiceRecognition()
629 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in holdCall()
647 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in acceptCall()
685 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in rejectCall()
704 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in terminateCall()
724 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in enterPrivateMode()
[all …]
DHeadsetClientStateMachine.java265 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in sendCallChangedIntent()
1322 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1341 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1350 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1359 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1368 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1378 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1449 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1457 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1761 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in broadcastAudioState()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java1860 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
1902 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in registerScanner()
1926 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in unregisterScanner()
2175 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in registerClient()
2185 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in unregisterClient()
2196 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in clientConnect()
2206 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in clientDisconnect()
2217 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in clientSetPreferredPhy()
2234 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in clientReadPhy()
2265 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java754 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
774 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
802 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState()
822 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getPriority()
828 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in startVoiceRecognition()
904 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in stopVoiceRecognition()
935 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in isAudioOn()
940 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in isAudioConnected()
951 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getAudioState()
969 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getAudioRouteAllowed()
[all …]
DHeadsetStateMachine.java303 HeadsetService.BLUETOOTH_PERM); in broadcastConnectionState()
321 HeadsetService.BLUETOOTH_PERM); in broadcastAudioState()
1475 mHeadsetService.sendBroadcastAsUser(intent, UserHandle.ALL, HeadsetService.BLUETOOTH_PERM); in broadcastVendorSpecificEventIntent()
1920 mHeadsetService.sendBroadcast(intent, HeadsetService.BLUETOOTH_PERM); in sendIndicatorIntent()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java290 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
372 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
420 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState()
611 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getActiveDevice()
655 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in isA2dpPlaying()
677 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getCodecStatus()
706 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in setCodecConfigPreference()
739 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in enableOptionalCodecs()
770 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in disableOptionalCodecs()
941 sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in updateAndBroadcastActiveDevice()
[all …]
DA2dpStateMachine.java684 mA2dpService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in broadcastConnectionState()
696 mA2dpService.sendBroadcast(intent, A2dpService.BLUETOOTH_PERM); in broadcastAudioState()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/
DMapClientStateMachineTest.java129 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testStateTransitionFromConnectingToDisconnected()
149 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testStateTransitionFromConnectingToConnected()
167 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testReceiveEmptyEvent()
180 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in setupSdpRecordReceipt()
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidHostService.java473 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in connect()
490 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in disconnect()
506 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
745 sendBroadcastAsUser(intent, UserHandle.ALL, BLUETOOTH_PERM); in broadcastConnectionState()
753 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastHandshake()
761 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastProtocolMode()
773 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastReport()
781 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastVirtualUnplugStatus()
789 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastIdleTime()
DHidDeviceService.java629 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getUserAppName()
705 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState()
713 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
837 sendBroadcast(intent, BLUETOOTH_PERM); in setAndBroadcastConnectionState()
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/
DPanService.java321 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in connect()
332 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in disconnect()
419 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
426 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
587 sendBroadcast(intent, BLUETOOTH_PERM); in handlePanDeviceStateChange()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachineTest.java125 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testDisconnect()
150 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testControlOnly()
177 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testBrowsingOnly()
502 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in setUpConnectedState()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPbapClientService.java337 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
343 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
363 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapService.java120 static final String BLUETOOTH_PERM = android.Manifest.permission.BLUETOOTH; field in BluetoothPbapService
421 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState()
436 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
446 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidService.java317 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices()
377 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
435 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState()
641 sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in reportActiveDevice()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java523 sendBroadcast(intent, BLUETOOTH_PERM); in setState()
726 sendBroadcast(intent, BLUETOOTH_PERM); in sendCancelUserConfirmationIntent()
734 sendBroadcast(timeoutIntent, BLUETOOTH_PERM); in sendShutdownMessage()
880 mService.enforceCallingOrSelfPermission(BLUETOOTH_PERM, in getService()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapService.java93 private static final String BLUETOOTH_PERM = android.Manifest.permission.BLUETOOTH; field in BluetoothMapService
508 sendBroadcast(intent, BLUETOOTH_PERM); in setState()
961 sendBroadcast(timeoutIntent, BLUETOOTH_PERM); in sendShutdownMessage()
1142 mService.enforceCallingOrSelfPermission(BLUETOOTH_PERM, in getService()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMapClientService.java56 private static final String BLUETOOTH_PERM = android.Manifest.permission.BLUETOOTH; field in MapClientService
402 mService.enforceCallingOrSelfPermission(BLUETOOTH_PERM, in getService()

12