/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BluetoothDeviceTest.java | 19 import static android.Manifest.permission.BLUETOOTH_CONNECT; 103 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setUp() 198 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in getConnectionHandle() 220 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in getBatteryLevel() 235 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in isBondingInitiatedLocally() 261 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setPin() 284 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in cancelBondProcess() 297 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in createBond() 317 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in createBondOutOfBand() 328 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in getUuids() [all …]
|
D | BluetoothLeBroadcastTest.java | 19 import static android.Manifest.permission.BLUETOOTH_CONNECT; 225 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in setUp() 324 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT); in registerCallbackNoPermission() 357 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in registerCallbackNoPermission() 513 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT); in startBroadcastWithoutPrivilegedPermission() 520 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in startBroadcastWithoutPrivilegedPermission() 577 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT); in startBroadcastGroupWithoutPrivilegedPermission() 584 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in startBroadcastGroupWithoutPrivilegedPermission() 616 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT); in updateBroadcastWithoutPrivilegedPermission() 622 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in updateBroadcastWithoutPrivilegedPermission() [all …]
|
D | BluetoothA2dpTest.java | 19 import static android.Manifest.permission.BLUETOOTH_CONNECT; 91 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setUp() 207 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in getSupportedCodecTypes() 227 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in getCodecStatus() 267 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setOptionalCodecsEnabled() 273 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in getConnectionPolicy() 293 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in setConnectionPolicy() 315 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in getDynamicBufferSupport() 332 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in getBufferConstraints() 345 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in setBufferLengthMillis() [all …]
|
D | BluetoothServerSocketTest.java | 19 import static android.Manifest.permission.BLUETOOTH_CONNECT; 48 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setUp() 59 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in tearDown()
|
D | LeL2capSocketTest.java | 18 import static android.Manifest.permission.BLUETOOTH_CONNECT; 63 try (var p = Permissions.withPermissions(BLUETOOTH_CONNECT)) { in openInsecureLeL2capServerSocket() 75 try (var p = Permissions.withPermissions(BLUETOOTH_CONNECT)) { in openSecureLeL2capServerSocket()
|
D | BluetoothHeadsetTest.java | 19 import static android.Manifest.permission.BLUETOOTH_CONNECT; 84 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setUp() 311 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in getAudioState() 330 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in connectAudio() 346 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in disconnectAudio() 362 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in startScoUsingVirtualVoiceCall() 372 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in stopScoUsingVirtualVoiceCall() 382 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in isInbandRingingEnabled() 393 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in setGetAudioRouteAllowed()
|
D | BluetoothHapClientTest.java | 19 import static android.Manifest.permission.BLUETOOTH_CONNECT; 84 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in setUp() 281 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in setGetConnectionPolicy() 302 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT); in registerUnregisterCallback() 313 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT); in registerCallbackNoPermission() 322 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in registerCallbackNoPermission()
|
D | BluetoothLeScanTest.java | 92 .adoptShellPermissionIdentity(android.Manifest.permission.BLUETOOTH_CONNECT); in setUp() 144 android.Manifest.permission.BLUETOOTH_CONNECT, in scanFilter() 173 android.Manifest.permission.BLUETOOTH_CONNECT, in scanFromSourceWithoutFilters() 195 android.Manifest.permission.BLUETOOTH_CONNECT, in scanFromSourceWithFilters() 306 android.Manifest.permission.BLUETOOTH_CONNECT, in batchScan() 341 android.Manifest.permission.BLUETOOTH_CONNECT, in startScanPendingIntent_nullnull() 365 android.Manifest.permission.BLUETOOTH_CONNECT, in startScanPendingIntent()
|
D | DistanceMeasurementSessionTest.java | 19 import static android.Manifest.permission.BLUETOOTH_CONNECT; 70 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in setUp()
|
D | BluetoothGattServerTest.java | 19 import static android.Manifest.permission.BLUETOOTH_CONNECT; 73 mUIAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setUp() 90 mUIAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in tearDown()
|
D | BluetoothCsipSetCoordinatorTest.java | 19 import static android.Manifest.permission.BLUETOOTH_CONNECT; 129 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in setUp() 240 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in getGroupUuidMapByDevice() 268 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in lockUnlockGroup() 317 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in getAllGroupIds()
|
D | BluetoothConfigTest.java | 19 import static android.Manifest.permission.BLUETOOTH_CONNECT; 65 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setUp() 99 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in profileEnabledValueInList()
|
D | BluetoothHidHostTest.java | 19 import static android.Manifest.permission.BLUETOOTH_CONNECT; 68 private static final String[] DEFAULT_PERMISSIONS = {BLUETOOTH_CONNECT}; 268 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setPreferredTransportTest() 283 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in setPreferredTransportTest()
|
D | ChannelSoundingParamsTest.java | 19 import static android.Manifest.permission.BLUETOOTH_CONNECT; 75 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in setUp() 162 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT); in enforceConnectAndPrivileged()
|
D | BluetoothLeBroadcastSubgroupSettingsTest.java | 19 import static android.Manifest.permission.BLUETOOTH_CONNECT; 63 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT); in setUp()
|
D | BluetoothAdapterTest.java | 19 import static android.Manifest.permission.BLUETOOTH_CONNECT; 110 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setUp() 269 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in getProfileConnectionState() 366 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in isDistanceMeasurementSupported() 416 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in discoverableTimeout() 462 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in getUuids() 516 try (var p = Permissions.withPermissions(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED)) { in registerBluetoothConnectionCallback() 555 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in clearBluetooth() 763 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in preferredAudioProfileCallbacks() 815 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in bluetoothQualityReportReadyCallbacks()
|
D | BluetoothLeAudioTest.java | 19 import static android.Manifest.permission.BLUETOOTH_CONNECT; 142 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in setUp() 283 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in registerCallbackNoPermission() 428 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT); in getGroupId() 433 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in getGroupId()
|
D | BluetoothCddTest.java | 19 import static android.Manifest.permission.BLUETOOTH_CONNECT; 59 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED, in setUp()
|
D | BluetoothPanTest.java | 19 import static android.Manifest.permission.BLUETOOTH_CONNECT; 82 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT); in setUp() 193 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED, in setAndCheckBluetoothTethering()
|
D | DistanceMeasurementMethodTest.java | 19 import static android.Manifest.permission.BLUETOOTH_CONNECT; 60 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in setUp()
|
D | BluetoothLeAudioContentMetadataTest.java | 19 import static android.Manifest.permission.BLUETOOTH_CONNECT; 75 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT); in setUp()
|
D | BluetoothLeAudioCodecConfigMetadataTest.java | 19 import static android.Manifest.permission.BLUETOOTH_CONNECT; 78 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT); in setUp()
|
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/ |
D | bluetooth-current.txt | 6 …method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public java.util.List<an… 7 …method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public int getConnection… 8 …method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public java.util.List<an… 10 …method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean isA2dpPla… 11 …field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final Strin… 12 …field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final Strin… 21 …method @Deprecated @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boole… 22 …method @Deprecated @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boole… 26 …method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public java.util.Set<and… 30 …method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public int getMaxConnect… [all …]
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/bluetooth/ |
D | Bluetooth.java | 23 import static com.android.bedstead.permissions.CommonPermissions.BLUETOOTH_CONNECT; 75 .withPermission(BLUETOOTH_CONNECT, in enable() 101 .withPermission(BLUETOOTH_CONNECT, in disable()
|
/cts/hostsidetests/media/app/MediaRouterWithModifyAudioRoutingApp/src/android/media/router/cts/modifyaudioroutingapp/ |
D | MediaRouter2DeviceTestWithModifyAudioRouting.java | 85 assertThat(mContext.checkCallingOrSelfPermission(Manifest.permission.BLUETOOTH_CONNECT)) in getSystemController_withModifyAudioRouting_returnsDeviceRoute() 103 assertThat(mContext.checkCallingOrSelfPermission(Manifest.permission.BLUETOOTH_CONNECT)) in getRoutes_withModifyAudioRouting_returnsDeviceRoute()
|