/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | BluetoothRestrictionTest.java | 45 private BluetoothAdapter mBluetoothAdapter; field in BluetoothRestrictionTest 52 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in setUp() 53 if (mBluetoothAdapter == null) { in setUp() 56 int state = mBluetoothAdapter.getConnectionState(); in setUp() 57 Log.d(TAG, "BluetoothAdapter: " + mBluetoothAdapter in setUp() 58 + " enabled: " + mBluetoothAdapter.isEnabled() in setUp() 73 if (mBluetoothAdapter == null) { in testEnableBluetoothFailsWhenDisallowed() 88 if (mBluetoothAdapter == null) { in testBluetoothGetsDisabledAfterRestrictionSet() 103 if (mBluetoothAdapter == null) { in testEnableBluetoothSucceedsAfterRestrictionRemoved() 127 if (mBluetoothAdapter == null) { in disable() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | DevicePickerActivity.java | 56 private BluetoothAdapter mBluetoothAdapter; field in DevicePickerActivity 105 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() 106 if (mBluetoothAdapter.isEnabled()) { in onCreate() 130 if (mBluetoothAdapter.isDiscovering()) { in scan() 131 mBluetoothAdapter.cancelDiscovery(); in scan() 133 mBluetoothAdapter.startDiscovery(); in scan() 138 Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices(); in populatePairedDevices() 147 if (mBluetoothAdapter != null) { in onDestroy() 148 mBluetoothAdapter.cancelDiscovery(); in onDestroy() 173 if (mBluetoothAdapter != null) { in onItemClick() [all …]
|
D | BluetoothToggleActivity.java | 47 private BluetoothAdapter mBluetoothAdapter; field in BluetoothToggleActivity 67 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() 72 mToggleButton.setChecked(mBluetoothAdapter.isEnabled()); in onCreate() 134 mToggleButton.setChecked(mBluetoothAdapter.isEnabled()); in onReceive()
|
D | ConnectionAccessClientActivity.java | 41 private BluetoothAdapter mBluetoothAdapter; field in ConnectionAccessClientActivity 72 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() 73 if (!mBluetoothAdapter.isEnabled()) { in onCreate() 114 BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(mDeviceAddress); in startChartService()
|
D | HidHostActivity.java | 39 BluetoothAdapter mBluetoothAdapter; field in HidHostActivity 55 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() 102 BluetoothDevice bluetoothDevice = mBluetoothAdapter.getRemoteDevice(mDeviceAddress); in connectToDevice()
|
D | ConnectionAccessServerActivity.java | 48 private BluetoothAdapter mBluetoothAdapter; field in ConnectionAccessServerActivity 83 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() 84 if (mBluetoothAdapter.isEnabled()) { in onCreate() 115 if (mBluetoothAdapter.getScanMode() != in makeDiscoverable()
|
D | BleAdvertiserService.java | 101 private BluetoothAdapter mBluetoothAdapter; field in BleAdvertiserService 119 mBluetoothAdapter = mBluetoothManager.getAdapter(); in onCreate() 120 mAdvertiser = mBluetoothAdapter.getBluetoothLeAdvertiser(); in onCreate() 198 if (mBluetoothAdapter != null && !mBluetoothAdapter.isMultipleAdvertisementSupported()) { in handleIntent()
|
D | BleAdvertisingSetTestActivity.java | 84 private BluetoothAdapter mBluetoothAdapter; field in BleAdvertisingSetTestActivity 119 if (!mBluetoothAdapter.isEnabled()) { in onCreate() 122 mBluetoothAdapter.enable(); in onCreate() 123 mAdvertiser = mBluetoothAdapter.getBluetoothLeAdvertiser(); in onCreate() 141 mBluetoothAdapter.disable(); in onCreate() 165 mBluetoothAdapter = mBluetoothManager.getAdapter(); in onCreate() 166 mAdvertiser = mBluetoothAdapter.getBluetoothLeAdvertiser(); in onCreate() 247 if (!mBluetoothAdapter.isLePeriodicAdvertisingSupported()) { in testPeriodicAdvertising()
|
D | BleConnectionPriorityClientService.java | 82 private BluetoothAdapter mBluetoothAdapter; field in BleConnectionPriorityClientService 106 mBluetoothAdapter = mBluetoothManager.getAdapter(); in onCreate() 107 mScanner = mBluetoothAdapter.getBluetoothLeScanner(); in onCreate() 203 Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices(); 309 if (!mBluetoothAdapter.isEnabled()) { in startScan()
|
D | MessageTestActivity.java | 61 private BluetoothAdapter mBluetoothAdapter; field in MessageTestActivity 138 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() 143 if (mBluetoothAdapter.isEnabled()) { in onCreate() 182 BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(mDeviceAddress); in startChatService() 188 if (mBluetoothAdapter.getScanMode() != in makeDiscoverable()
|
D | HidDeviceActivity.java | 52 private BluetoothAdapter mBluetoothAdapter; field in HidDeviceActivity 118 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() 119 mBluetoothAdapter.getProfileProxy(getApplicationContext(), mProfileListener, in onCreate() 197 if (mBluetoothAdapter.getScanMode() != in makeDiscoverable()
|
D | BleCocClientService.java | 138 private BluetoothAdapter mBluetoothAdapter; field in BleCocClientService 167 mBluetoothAdapter = mBluetoothManager.getAdapter(); in onCreate() 168 mScanner = mBluetoothAdapter.getBluetoothLeScanner(); in onCreate() 176 if (!mBluetoothAdapter.isEnabled()) { in onStartCommand() 385 Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices();
|
D | BleEncryptedClientService.java | 112 private BluetoothAdapter mBluetoothAdapter; field in BleEncryptedClientService 140 mBluetoothAdapter = mBluetoothManager.getAdapter(); in onCreate() 142 mScanner = mBluetoothAdapter.getBluetoothLeScanner(); in onCreate() 175 if (!mBluetoothAdapter.isEnabled()) { in onStartCommand()
|
D | BleClientService.java | 320 private BluetoothAdapter mBluetoothAdapter; field in BleClientService 366 mBluetoothAdapter = mBluetoothManager.getAdapter(); in onCreate() 367 mScanner = mBluetoothAdapter.getBluetoothLeScanner(); in onCreate() 377 if (!mBluetoothAdapter.isEnabled()) { in onStartCommand() 1105 Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices();
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarProjectionManagerTest.java | 85 private BluetoothAdapter mBluetoothAdapter; field in CarProjectionManagerTest 158 ShellIdentityUtils.invokeWithShellPermissions(() -> mBluetoothAdapter.enable()); in waitForAdapterState() 160 ShellIdentityUtils.invokeWithShellPermissions(() -> mBluetoothAdapter.disable()); in waitForAdapterState() 164 while (desiredState != mBluetoothAdapter.getState()) { in waitForAdapterState() 209 mBluetoothAdapter.getProfileProxy(mContext, profileServiceListener, A2DP_SINK); in waitForProfileConnected() 239 mBluetoothAdapter = mBluetoothManager.getAdapter(); in setUp() 240 mBluetoothDevice = mBluetoothAdapter.getRemoteDevice(BT_DEVICE_ADDRESS); in setUp() 259 assertTrue(mBluetoothAdapter.isEnabled()); in setUp() 275 assertNotNull(mBluetoothAdapter); in testIsBluetoothProfileInhibited_default_isNotInhibited() 289 assertNotNull(mBluetoothAdapter); in testIsBluetoothProfileInhibited_inhibitRequested_isInhibited() [all …]
|
D | CarBluetoothTest.java | 68 private BluetoothAdapter mBluetoothAdapter; field in CarBluetoothTest 139 ShellIdentityUtils.invokeWithShellPermissions(() -> mBluetoothAdapter.enable()); in waitForAdapterState() 141 ShellIdentityUtils.invokeWithShellPermissions(() -> mBluetoothAdapter.disable()); in waitForAdapterState() 145 while (desiredState != mBluetoothAdapter.getState()) { in waitForAdapterState() 237 mBluetoothAdapter.getProfileProxy(mContext, new ProfileServiceListener(), profile); in waitForProfileConnections() 320 mBluetoothAdapter = mBluetoothManager.getAdapter(); in setUp() 338 assertTrue(mBluetoothAdapter.isEnabled()); in setUp() 362 assertNotNull(mBluetoothAdapter); in testRequiredBluetoothProfilesExist()
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BluetoothGattServerTest.java | 60 private BluetoothAdapter mBluetoothAdapter; field in BluetoothGattServerTest 74 mBluetoothAdapter = mContext.getSystemService(BluetoothManager.class).getAdapter(); in setUp() 75 assertTrue(BTAdapterUtils.enableAdapter(mBluetoothAdapter, mContext)); in setUp() 93 if (mBluetoothAdapter != null && mBluetoothGattServer != null) { in tearDown() 98 mBluetoothAdapter = null; in tearDown() 158 BluetoothDevice testDevice = mBluetoothAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in readPhy() 166 BluetoothDevice testDevice = mBluetoothAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in setPreferredPhy() 176 BluetoothDevice testDevice = mBluetoothAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in notifyCharacteristicChanged_withValueOverMaxLength()
|
D | BasicBluetoothGattTest.java | 57 private BluetoothAdapter mBluetoothAdapter; field in BasicBluetoothGattTest 69 mBluetoothAdapter = context.getSystemService(BluetoothManager.class).getAdapter(); in setUp() 70 if (!mBluetoothAdapter.isEnabled()) { in setUp() 71 assertTrue(BTAdapterUtils.enableAdapter(mBluetoothAdapter, context)); in setUp() 73 mBluetoothDevice = mBluetoothAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in setUp()
|
D | ScanFilterTest.java | 75 private BluetoothAdapter mBluetoothAdapter; field in ScanFilterTest 94 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in setUp() 95 if (mBluetoothAdapter == null) { in setUp() 102 BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(DEVICE_MAC); in setUp() 345 () -> mBluetoothAdapter.getOffloadedTransportDiscoveryDataScanSupported(), in builderSetTransportBlockFilter() 349 if (mBluetoothAdapter.getOffloadedTransportDiscoveryDataScanSupported() in builderSetTransportBlockFilter()
|
D | BluetoothLeScanTest.java | 80 private BluetoothAdapter mBluetoothAdapter; field in BluetoothLeScanTest 95 mBluetoothAdapter = manager.getAdapter(); in setUp() 96 if (!mBluetoothAdapter.isEnabled()) { in setUp() 97 assertTrue(BTAdapterUtils.enableAdapter(mBluetoothAdapter, mContext)); in setUp() 99 mScanner = mBluetoothAdapter.getBluetoothLeScanner(); in setUp() 414 return mBluetoothAdapter.isOffloadedScanBatchingSupported(); in isBleBatchScanSupported()
|
/cts/hostsidetests/multidevices/bluetooth/snippet/ |
D | BluetoothGattMultiDevicesServer.java | 41 private BluetoothAdapter mBluetoothAdapter; field in BluetoothGattMultiDevicesServer 46 mBluetoothAdapter = manager.getAdapter(); in BluetoothGattMultiDevicesServer() 60 var bluetoothLeAdvertiser = mBluetoothAdapter.getBluetoothLeAdvertiser(); in createAndAdvertiseServer() 74 var bluetoothLeAdvertiser = mBluetoothAdapter.getBluetoothLeAdvertiser(); in createAndAdvertiseIsolatedServer()
|
D | BluetoothGattMultiDevicesClient.java | 43 private BluetoothAdapter mBluetoothAdapter; field in BluetoothGattMultiDevicesClient 74 mBluetoothAdapter = manager.getAdapter(); in BluetoothGattMultiDevicesClient() 80 var scanner = mBluetoothAdapter.getBluetoothLeScanner(); in connect()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/presence/ |
D | BleRssiPrecisionActivity.java | 73 private BluetoothAdapter mBluetoothAdapter; field in BleRssiPrecisionActivity 111 mBluetoothAdapter = bluetoothManager.getAdapter(); in onCreate() 245 if (!mBluetoothAdapter.isEnabled()) { in checkBluetoothEnabled()
|
D | BleRxTxOffsetPrecisionActivity.java | 79 private BluetoothAdapter mBluetoothAdapter; field in BleRxTxOffsetPrecisionActivity 126 mBluetoothAdapter = bluetoothManager.getAdapter(); in onCreate() 335 if (!mBluetoothAdapter.isEnabled()) { in checkBluetoothEnabled()
|
/cts/tests/tests/telephony/current/src/android/telephony/satellite/cts/ |
D | SatelliteManagerTestBase.java | 92 protected BluetoothAdapter mBluetoothAdapter = null; field in SatelliteManagerTestBase 1206 if (mBTExpectedState == mBluetoothAdapter.isEnabled()) { in onReceive() 1254 if (mBTExpectedState == mBluetoothAdapter.isEnabled()) { in waitUntilOnBTStateChanged()
|