/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | BluetoothRestrictionTest.java | 39 private BluetoothAdapter mBluetoothAdapter; field in BluetoothRestrictionTest 45 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in setUp() 57 if (mBluetoothAdapter == null) { in testEnableBluetoothFailsWhenDisallowed() 68 assertFalse(mBluetoothAdapter.enable()); in testEnableBluetoothFailsWhenDisallowed() 72 if (mBluetoothAdapter == null) { in testBluetoothGetsDisabledAfterRestrictionSet() 87 if (mBluetoothAdapter == null) { in testEnableBluetoothSucceedsAfterRestrictionRemoved() 113 if (mBluetoothAdapter == null) { in testOppDisabledWhenRestrictionSet() 147 if (mBluetoothAdapter == null) in disable() 151 if (mBluetoothAdapter.getState() == BluetoothAdapter.STATE_OFF) { in disable() 152 assertFalse(mBluetoothAdapter.isEnabled()); in disable() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | DevicePickerActivity.java | 54 private BluetoothAdapter mBluetoothAdapter; field in DevicePickerActivity 103 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() 104 if (mBluetoothAdapter.isEnabled()) { in onCreate() 128 if (mBluetoothAdapter.isDiscovering()) { in scan() 129 mBluetoothAdapter.cancelDiscovery(); in scan() 131 mBluetoothAdapter.startDiscovery(); in scan() 136 Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices(); in populatePairedDevices() 145 if (mBluetoothAdapter != null) { in onDestroy() 146 mBluetoothAdapter.cancelDiscovery(); in onDestroy() 171 if (mBluetoothAdapter != null) { in onItemClick() [all …]
|
D | BluetoothToggleActivity.java | 46 private BluetoothAdapter mBluetoothAdapter; field in BluetoothToggleActivity 71 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() 76 mToggleButton.setChecked(mBluetoothAdapter.isEnabled()); in onCreate() 111 if (!mBluetoothAdapter.disable()) { in disableBluetooth() 146 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 | ConnectionAccessServerActivity.java | 47 private BluetoothAdapter mBluetoothAdapter; field in ConnectionAccessServerActivity 82 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() 83 if (mBluetoothAdapter.isEnabled()) { in onCreate() 114 if (mBluetoothAdapter.getScanMode() != in makeDiscoverable()
|
D | HidHostActivity.java | 39 BluetoothAdapter mBluetoothAdapter; field in HidHostActivity 55 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() 102 BluetoothDevice bluetoothDevice = mBluetoothAdapter.getRemoteDevice(mDeviceAddress); in connectToDevice()
|
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 | HidDeviceActivity.java | 51 private BluetoothAdapter mBluetoothAdapter; field in HidDeviceActivity 110 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() 111 mBluetoothAdapter.getProfileProxy(getApplicationContext(), mProfileListener, in onCreate() 179 if (mBluetoothAdapter.getScanMode() != in makeDiscoverable()
|
D | MessageTestActivity.java | 59 private BluetoothAdapter mBluetoothAdapter; field in MessageTestActivity 136 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() 141 if (mBluetoothAdapter.isEnabled()) { in onCreate() 180 BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(mDeviceAddress); in startChatService() 186 if (mBluetoothAdapter.getScanMode() != in makeDiscoverable()
|
D | BleConnectionPriorityClientService.java | 103 private BluetoothAdapter mBluetoothAdapter; field in BleConnectionPriorityClientService 128 mBluetoothAdapter = mBluetoothManager.getAdapter(); in onCreate() 129 mScanner = mBluetoothAdapter.getBluetoothLeScanner(); in onCreate() 337 Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices(); 406 if (!mBluetoothAdapter.isEnabled()) { in startScan()
|
D | BleCocClientService.java | 142 private BluetoothAdapter mBluetoothAdapter; field in BleCocClientService 169 mBluetoothAdapter = mBluetoothManager.getAdapter(); in onCreate() 170 mScanner = mBluetoothAdapter.getBluetoothLeScanner(); in onCreate() 178 if (!mBluetoothAdapter.isEnabled()) { in onStartCommand() 388 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 | 286 private BluetoothAdapter mBluetoothAdapter; field in BleClientService 319 mBluetoothAdapter = mBluetoothManager.getAdapter(); in onCreate() 320 mScanner = mBluetoothAdapter.getBluetoothLeScanner(); in onCreate() 330 if (!mBluetoothAdapter.isEnabled()) { in onStartCommand() 916 Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices();
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | HearingAidProfileTest.java | 62 private BluetoothAdapter mBluetoothAdapter; field in HearingAidProfileTest 90 mBluetoothAdapter = manager.getAdapter(); in setUp() 105 assertTrue(mBluetoothAdapter.isEnabled()); in setUp() 110 mIsHearingAidSupported = mBluetoothAdapter.getProfileProxy(getContext(), in setUp() 122 assertTrue(mBluetoothAdapter.isEnabled()); in tearDown() 154 BluetoothDevice device = mBluetoothAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in test_getConnectionState() 300 if (mBluetoothAdapter.isEnabled()) return true; in enableAdapter() 302 mBluetoothAdapter.enable(); in enableAdapter() 306 while (!mBluetoothAdapter.isEnabled()) { in enableAdapter() 319 if (!mBluetoothAdapter.isEnabled()) { in enableAdapter() [all …]
|
D | BluetoothLeScanTest.java | 70 private BluetoothAdapter mBluetoothAdapter; field in BluetoothLeScanTest 82 mBluetoothAdapter = manager.getAdapter(); in setUp() 83 if (!mBluetoothAdapter.isEnabled()) { in setUp() 86 mBluetoothAdapter.enable(); in setUp() 89 mScanner = mBluetoothAdapter.getBluetoothLeScanner(); in setUp() 108 mBluetoothAdapter.disable(); in tearDown() 410 return mBluetoothAdapter.isOffloadedScanBatchingSupported(); in isBleBatchScanSupported()
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarBluetoothTest.java | 60 private BluetoothAdapter mBluetoothAdapter; field in CarBluetoothTest 131 mBluetoothAdapter.enable(); in waitForAdapterState() 133 mBluetoothAdapter.disable(); in waitForAdapterState() 137 while (desiredState != mBluetoothAdapter.getState()) { in waitForAdapterState() 229 mBluetoothAdapter.getProfileProxy(mContext, new ProfileServiceListener(), profile); in waitForProfileConnections() 315 mBluetoothAdapter = mBluetoothManager.getAdapter(); in setUp() 333 assertTrue(mBluetoothAdapter.isEnabled()); in setUp() 357 assertNotNull(mBluetoothAdapter); in testRequiredBluetoothProfilesExist()
|