Home
last modified time | relevance | path

Searched refs:mBluetoothManager (Results 1 – 16 of 16) sorted by relevance

/cts/hostsidetests/multidevices/bluetooth/snippet/
DBluetoothGattMultiDevicesSnippet.java34 private BluetoothManager mBluetoothManager; field in BluetoothGattMultiDevicesSnippet
38 mBluetoothManager = mContext.getSystemService(BluetoothManager.class); in BluetoothGattMultiDevicesSnippet()
45 mGattServer = new BluetoothGattMultiDevicesServer(mContext, mBluetoothManager); in reset()
46 mGattClient = new BluetoothGattMultiDevicesClient(mContext, mBluetoothManager); in reset()
69 mBluetoothManager.getAdapter().enable(); in enableBluetooth()
74 mBluetoothManager.getAdapter().disable(); in disableBluetooth()
79 return mBluetoothManager.getAdapter().isEnabled(); in isBluetoothOn()
DBluetoothGattMultiDevicesServer.java40 private BluetoothManager mBluetoothManager; field in BluetoothGattMultiDevicesServer
45 mBluetoothManager = manager; in BluetoothGattMultiDevicesServer()
51 mBluetoothManager.openGattServer(mContext, new BluetoothGattServerCallback() {}); in createGattServer()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleConnectionPriorityServerService.java61 private BluetoothManager mBluetoothManager; field in BleConnectionPriorityServerService
77 mBluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE); in onCreate()
78 mAdvertiser = mBluetoothManager.getAdapter().getBluetoothLeAdvertiser(); in onCreate()
79 mGattServer = mBluetoothManager.openGattServer(this, mCallbacks); in onCreate()
83 if (!mBluetoothManager.getAdapter().isEnabled()) { in onCreate()
DBleAdvertiserService.java100 private BluetoothManager mBluetoothManager; field in BleAdvertiserService
118 mBluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE); in onCreate()
119 mBluetoothAdapter = mBluetoothManager.getAdapter(); in onCreate()
121 mGattServer = mBluetoothManager.openGattServer(getApplicationContext(), in onCreate()
DBleCocServerService.java164 private BluetoothManager mBluetoothManager; field in BleCocServerService
208 mBluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE); in onCreate()
209 mAdvertiser = mBluetoothManager.getAdapter().getBluetoothLeAdvertiser(); in onCreate()
210 mGattServer = mBluetoothManager.openGattServer(this, mCallbacks); in onCreate()
217 if (!mBluetoothManager.getAdapter().isEnabled()) { in onCreate()
262 if (mBluetoothManager.getAdapter().isEnabled() && (mChatService == null)) { in startServerTest()
266 if (mBluetoothManager.getAdapter().isEnabled() && (mAdvertiser != null)) { in startServerTest()
450 mBluetoothManager.getAdapter().getBondedDevices();
DBleEncryptedServerService.java95 private BluetoothManager mBluetoothManager; field in BleEncryptedServerService
110 mBluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE); in onCreate()
111 mAdvertiser = mBluetoothManager.getAdapter().getBluetoothLeAdvertiser(); in onCreate()
112 mGattServer = mBluetoothManager.openGattServer(this, mCallbacks); in onCreate()
119 if (!mBluetoothManager.getAdapter().isEnabled()) { in onCreate()
DBleScannerService.java78 private BluetoothManager mBluetoothManager; field in BleScannerService
93 mBluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE); in onCreate()
94 mAdapter = mBluetoothManager.getAdapter(); in onCreate()
DBleConnectionPriorityClientService.java81 private BluetoothManager mBluetoothManager; field in BleConnectionPriorityClientService
105 mBluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE); in onCreate()
106 mBluetoothAdapter = mBluetoothManager.getAdapter(); in onCreate()
DBleServerService.java222 private BluetoothManager mBluetoothManager; field in BleServerService
255 mBluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE); in onCreate()
256 mAdvertiser = mBluetoothManager.getAdapter().getBluetoothLeAdvertiser(); in onCreate()
257 mGattServer = mBluetoothManager.openGattServer(this, mCallbacks); in onCreate()
267 if (!mBluetoothManager.getAdapter().isEnabled()) { in onCreate()
320 if (mBluetoothManager.getAdapter().isEnabled() && (mAdvertiser != null)) { in onStartCommand()
907 mBluetoothManager.getAdapter().getBondedDevices();
DBleEncryptedClientService.java111 private BluetoothManager mBluetoothManager; field in BleEncryptedClientService
139 mBluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE); in onCreate()
140 mBluetoothAdapter = mBluetoothManager.getAdapter(); in onCreate()
DBleAdvertisingSetTestActivity.java83 private BluetoothManager mBluetoothManager; field in BleAdvertisingSetTestActivity
164 mBluetoothManager = getSystemService(BluetoothManager.class); in onCreate()
165 mBluetoothAdapter = mBluetoothManager.getAdapter(); in onCreate()
DBleCocClientService.java137 private BluetoothManager mBluetoothManager; field in BleCocClientService
166 mBluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE); in onCreate()
167 mBluetoothAdapter = mBluetoothManager.getAdapter(); in onCreate()
DBleClientService.java319 private BluetoothManager mBluetoothManager; field in BleClientService
365 mBluetoothManager = (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE); in onCreate()
366 mBluetoothAdapter = mBluetoothManager.getAdapter(); in onCreate()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothGattServerTest.java62 private BluetoothManager mBluetoothManager; field in BluetoothGattServerTest
76 mBluetoothManager = mContext.getSystemService(BluetoothManager.class); in setUp()
78 mBluetoothGattServer = mBluetoothManager.openGattServer(mContext, in setUp()
/cts/tests/tests/car/src/android/car/cts/
DCarProjectionManagerTest.java84 private BluetoothManager mBluetoothManager; field in CarProjectionManagerTest
238 mBluetoothManager = mContext.getSystemService(BluetoothManager.class); in setUp()
239 mBluetoothAdapter = mBluetoothManager.getAdapter(); in setUp()
DCarBluetoothTest.java67 private BluetoothManager mBluetoothManager; field in CarBluetoothTest
318 mBluetoothManager = (BluetoothManager) mContext.getSystemService( in setUp()
320 mBluetoothAdapter = mBluetoothManager.getAdapter(); in setUp()