Home
last modified time | relevance | path

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

123

/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothDeviceTest.java19 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 …]
DBluetoothLeBroadcastTest.java19 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 …]
DBluetoothA2dpTest.java19 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 …]
DBluetoothServerSocketTest.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
48 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setUp()
59 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in tearDown()
DLeL2capSocketTest.java18 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()
DBluetoothHeadsetTest.java19 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()
DBluetoothHapClientTest.java19 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()
DBluetoothLeScanTest.java92 .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()
DDistanceMeasurementSessionTest.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
70 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in setUp()
DBluetoothGattServerTest.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
73 mUIAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setUp()
90 mUIAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in tearDown()
DBluetoothCsipSetCoordinatorTest.java19 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()
DBluetoothConfigTest.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
65 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setUp()
99 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in profileEnabledValueInList()
DBluetoothHidHostTest.java19 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()
DChannelSoundingParamsTest.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
75 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in setUp()
162 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT); in enforceConnectAndPrivileged()
DBluetoothLeBroadcastSubgroupSettingsTest.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
63 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT); in setUp()
DBluetoothAdapterTest.java19 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()
DBluetoothLeAudioTest.java19 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()
DBluetoothCddTest.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
59 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED, in setUp()
DBluetoothPanTest.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
82 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT); in setUp()
193 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED, in setAndCheckBluetoothTethering()
DDistanceMeasurementMethodTest.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
60 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in setUp()
DBluetoothLeAudioContentMetadataTest.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
75 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT); in setUp()
DBluetoothLeAudioCodecConfigMetadataTest.java19 import static android.Manifest.permission.BLUETOOTH_CONNECT;
78 TestUtils.adoptPermissionAsShellUid(BLUETOOTH_CONNECT); in setUp()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dbluetooth-current.txt6 …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/
DBluetooth.java23 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/
DMediaRouter2DeviceTestWithModifyAudioRouting.java85 assertThat(mContext.checkCallingOrSelfPermission(Manifest.permission.BLUETOOTH_CONNECT)) in getSystemController_withModifyAudioRouting_returnsDeviceRoute()
103 assertThat(mContext.checkCallingOrSelfPermission(Manifest.permission.BLUETOOTH_CONNECT)) in getRoutes_withModifyAudioRouting_returnsDeviceRoute()

123