/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 | 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 | HidHostActivity.java | 39 BluetoothAdapter mBluetoothAdapter; field in HidHostActivity 55 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() 102 BluetoothDevice bluetoothDevice = mBluetoothAdapter.getRemoteDevice(mDeviceAddress); in connectToDevice()
|
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 | 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 | HidDeviceActivity.java | 52 private BluetoothAdapter mBluetoothAdapter; field in HidDeviceActivity 111 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate() 112 mBluetoothAdapter.getProfileProxy(getApplicationContext(), mProfileListener, in onCreate() 190 if (mBluetoothAdapter.getScanMode() != in makeDiscoverable()
|
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 81 mBluetoothAdapter = manager.getAdapter(); in setUp() 83 if (!BTAdapterUtils.enableAdapter(mBluetoothAdapter, mContext)) { in setUp() 85 assertTrue(mBluetoothAdapter.isEnabled()); in setUp() 92 mIsHearingAidSupported = mBluetoothAdapter.getProfileProxy(getContext(), in setUp() 102 if (!BTAdapterUtils.disableAdapter(mBluetoothAdapter, mContext)) { in tearDown() 104 assertTrue(mBluetoothAdapter.isEnabled()); in tearDown() 134 BluetoothDevice device = mBluetoothAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in test_getConnectionState() 227 assertTrue(BTAdapterUtils.disableAdapter(mBluetoothAdapter, mContext)); in test_getConnectionStateChangedIntent() 230 assertTrue(BTAdapterUtils.enableAdapter(mBluetoothAdapter, mContext)); in test_getConnectionStateChangedIntent() [all …]
|
D | BluetoothLeScanTest.java | 69 private BluetoothAdapter mBluetoothAdapter; field in BluetoothLeScanTest 81 mBluetoothAdapter = manager.getAdapter(); in setUp() 82 if (!mBluetoothAdapter.isEnabled()) { in setUp() 83 assertTrue(BTAdapterUtils.enableAdapter(mBluetoothAdapter, mContext)); in setUp() 85 mScanner = mBluetoothAdapter.getBluetoothLeScanner(); in setUp() 104 assertTrue(BTAdapterUtils.disableAdapter(mBluetoothAdapter, mContext)); in tearDown() 390 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()
|