/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachineTest.java | 174 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectedToConnecting_Connect() 191 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectedToConnecting_StackConnected() 208 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectedToConnecting_StackConnecting() 242 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_ConnectingToDisconnected_StackDisconnected() 260 eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_ConnectingToDisconnected_Timeout() 303 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_ConnectingToConnected_StackSlcConnected() 325 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectingToDisconnected_StackDisconnected() 344 eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectingToDisconnected_Timeout() 366 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_DisconnectingToConnected_StackSlcCconnected() 385 mIntentArgument.capture(), eq(UserHandle.ALL), eq(HeadsetService.BLUETOOTH_PERM)); in testStateTransition_ConnectedToDisconnecting_Disconnect() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | RemoteDevicesTest.java | 88 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() 279 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, in testResetBatteryLevel_testAclStateChangeCallback() [all …]
|
D | SilenceDeviceManagerTest.java | 121 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/ |
D | HeadsetClientService.java | 526 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices() 539 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates() 562 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState() 622 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in startVoiceRecognition() 637 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in stopVoiceRecognition() 695 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in holdCall() 713 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in acceptCall() 751 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in rejectCall() 770 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in terminateCall() 790 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in enterPrivateMode() [all …]
|
D | HeadsetClientStateMachine.java | 265 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in sendCallChangedIntent() 1265 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage() 1284 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage() 1293 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage() 1302 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage() 1311 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage() 1391 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage() 1399 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage() 1433 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in broadcastVoiceRecognitionStateChanged() 1694 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in broadcastAudioState() [all …]
|
D | VendorCommandResponseProcessor.java | 165 mService.sendBroadcast(intent, HeadsetClientService.BLUETOOTH_PERM); in broadcastVendorSpecificEventIntent()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/ |
D | MapClientStateMachineTest.java | 130 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testStateTransitionFromConnectingToDisconnected() 150 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testStateTransitionFromConnectingToConnected() 171 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testStateTransitionFromConnectedWithMasDisconnected() 178 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testStateTransitionFromConnectedWithMasDisconnected() 198 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testReceiveEmptyEvent() 221 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testSetMessageStatus() 230 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in setupSdpRecordReceipt()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | GattService.java | 1864 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates() 1906 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in registerScanner() 1930 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in unregisterScanner() 2191 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in registerClient() 2201 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in unregisterClient() 2212 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in clientConnect() 2222 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in clientDisconnect() 2233 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in clientSetPreferredPhy() 2250 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in clientReadPhy() 2281 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetService.java | 792 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices() 812 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates() 840 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState() 899 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in startVoiceRecognition() 974 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in stopVoiceRecognition() 1005 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in isAudioOn() 1010 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in isAudioConnected() 1021 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getAudioState() 1039 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getAudioRouteAllowed() 1189 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getActiveDevice() [all …]
|
D | HeadsetStateMachine.java | 307 HeadsetService.BLUETOOTH_PERM); in broadcastConnectionState() 326 HeadsetService.BLUETOOTH_PERM); in broadcastAudioState() 1503 mHeadsetService.sendBroadcastAsUser(intent, UserHandle.ALL, HeadsetService.BLUETOOTH_PERM); in broadcastVendorSpecificEventIntent() 1957 mHeadsetService.sendBroadcast(intent, HeadsetService.BLUETOOTH_PERM); in sendIndicatorIntent()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpService.java | 310 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices() 391 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates() 439 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState() 615 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getActiveDevice() 694 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in isA2dpPlaying() 716 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getCodecStatus() 745 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in setCodecConfigPreference() 777 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in enableOptionalCodecs() 808 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in disableOptionalCodecs() 1009 sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in updateAndBroadcastActiveDevice() [all …]
|
D | A2dpStateMachine.java | 685 mA2dpService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in broadcastConnectionState() 697 mA2dpService.sendBroadcast(intent, A2dpService.BLUETOOTH_PERM); in broadcastAudioState()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | RemoteDevices.java | 307 sAdapterService.sendBroadcast(intent, AdapterService.BLUETOOTH_PERM); in setAlias() 470 sAdapterService.sendBroadcast(intent, AdapterService.BLUETOOTH_PERM); in sendBatteryLevelChangedBroadcast() 526 sAdapterService.sendBroadcast(intent, sAdapterService.BLUETOOTH_PERM); in devicePropertyChangedCallback() 549 sAdapterService.sendBroadcast(intent, sAdapterService.BLUETOOTH_PERM); in devicePropertyChangedCallback() 603 AdapterService.BLUETOOTH_PERM, pkg.getPermission() in deviceFoundCallback() 636 sAdapterService.sendBroadcast(intent, sAdapterService.BLUETOOTH_PERM); in aclStateChangeCallback() 668 sAdapterService.sendBroadcast(intent, sAdapterService.BLUETOOTH_PERM); in aclStateChangeCallback()
|
D | AdapterProperties.java | 625 mService.sendBroadcastAsUser(intent, UserHandle.ALL, AdapterService.BLUETOOTH_PERM); in sendConnectionStateChange() 787 AdapterService.BLUETOOTH_PERM); in adapterPropertyChangedCallback() 798 AdapterService.BLUETOOTH_PERM); in adapterPropertyChangedCallback() 818 mService.sendBroadcast(intent, AdapterService.BLUETOOTH_PERM); in adapterPropertyChangedCallback() 929 mService.sendBroadcast(intent, AdapterService.BLUETOOTH_PERM); in discoveryStateChangeCallback() 934 mService.sendBroadcast(intent, AdapterService.BLUETOOTH_PERM); in discoveryStateChangeCallback()
|
D | BluetoothSocketManagerBinder.java | 30 private static final String BLUETOOTH_PERM = android.Manifest.permission.BLUETOOTH; field in BluetoothSocketManagerBinder 84 mService.enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in enforceBluetoothAndActiveUser()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pan/ |
D | PanService.java | 349 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in connect() 364 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in disconnect() 396 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in isTetheringOn() 485 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates() 652 sendBroadcast(intent, BLUETOOTH_PERM); in handlePanDeviceStateChange()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/ |
D | HidHostService.java | 819 sendBroadcastAsUser(intent, UserHandle.ALL, BLUETOOTH_PERM); in broadcastConnectionState() 827 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastHandshake() 835 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastProtocolMode() 847 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastReport() 855 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastVirtualUnplugStatus() 863 sendBroadcast(intent, BLUETOOTH_PERM); in broadcastIdleTime()
|
D | HidDeviceService.java | 714 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getUserAppName() 801 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState() 809 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates() 933 sendBroadcast(intent, BLUETOOTH_PERM); in setAndBroadcastConnectionState()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/ |
D | HearingAidService.java | 333 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices() 392 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates() 459 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState() 579 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getActiveDevices() 690 sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in reportActiveDevice()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
D | PbapClientService.java | 389 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices() 395 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates() 424 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectionState()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/ |
D | SapService.java | 523 sendBroadcast(intent, BLUETOOTH_PERM); in setState() 759 sendBroadcast(intent, BLUETOOTH_PERM); in sendCancelUserConfirmationIntent() 767 sendBroadcast(timeoutIntent, BLUETOOTH_PERM); in sendShutdownMessage() 921 mService.enforceCallingOrSelfPermission(BLUETOOTH_PERM, in getService()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | BluetoothPbapService.java | 122 static final String BLUETOOTH_PERM = android.Manifest.permission.BLUETOOTH; field in BluetoothPbapService 448 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getConnectedDevices() 458 enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); in getDevicesMatchingConnectionStates()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerStateMachineTest.java | 165 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testDisconnect() 199 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testControlOnly() 231 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in testBrowsingOnly() 913 mIntentArgument.capture(), eq(ProfileService.BLUETOOTH_PERM)); in setUpConnectedState()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapService.java | 98 private static final String BLUETOOTH_PERM = android.Manifest.permission.BLUETOOTH; field in BluetoothMapService 514 sendBroadcast(intent, BLUETOOTH_PERM); in setState() 1020 sendBroadcast(timeoutIntent, BLUETOOTH_PERM); in sendShutdownMessage() 1201 mService.enforceCallingOrSelfPermission(BLUETOOTH_PERM, in getService()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/ |
D | MapClientService.java | 58 private static final String BLUETOOTH_PERM = android.Manifest.permission.BLUETOOTH; field in MapClientService 465 mService.enforceCallingOrSelfPermission(BLUETOOTH_PERM, in getService()
|