Home
last modified time | relevance | path

Searched refs:mBluetoothAdapter (Results 1 – 7 of 7) sorted by relevance

/development/samples/browseable/BluetoothAdvertisements/src/com.example.android.bluetoothadvertisements/
DMainActivity.java34 private BluetoothAdapter mBluetoothAdapter; field in MainActivity
44 mBluetoothAdapter = ((BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE)) in onCreate()
48 if (mBluetoothAdapter != null) { in onCreate()
51 if (mBluetoothAdapter.isEnabled()) { in onCreate()
54 if (mBluetoothAdapter.isMultipleAdvertisementSupported()) { in onCreate()
88 if (mBluetoothAdapter.isMultipleAdvertisementSupported()) { in onActivityResult()
116 scannerFragment.setBluetoothAdapter(mBluetoothAdapter); in setupFragments()
DAdvertiserService.java94 BluetoothAdapter mBluetoothAdapter = mBluetoothManager.getAdapter(); in initialize() local
95 if (mBluetoothAdapter != null) { in initialize()
96 mBluetoothLeAdvertiser = mBluetoothAdapter.getBluetoothLeAdvertiser(); in initialize()
DScannerFragment.java54 private BluetoothAdapter mBluetoothAdapter; field in ScannerFragment
70 this.mBluetoothAdapter = btAdapter; in setBluetoothAdapter()
71 mBluetoothLeScanner = mBluetoothAdapter.getBluetoothLeScanner(); in setBluetoothAdapter()
/development/samples/browseable/BluetoothLeGatt/src/com.example.android.bluetoothlegatt/
DDeviceScanActivity.java46 private BluetoothAdapter mBluetoothAdapter; field in DeviceScanActivity
71 mBluetoothAdapter = bluetoothManager.getAdapter(); in onCreate()
74 if (mBluetoothAdapter == null) { in onCreate()
117 if (!mBluetoothAdapter.isEnabled()) { in onResume()
118 if (!mBluetoothAdapter.isEnabled()) { in onResume()
155 mBluetoothAdapter.stopLeScan(mLeScanCallback); in onListItemClick()
168 mBluetoothAdapter.stopLeScan(mLeScanCallback); in scanLeDevice()
174 mBluetoothAdapter.startLeScan(mLeScanCallback); in scanLeDevice()
177 mBluetoothAdapter.stopLeScan(mLeScanCallback); in scanLeDevice()
DBluetoothLeService.java46 private BluetoothAdapter mBluetoothAdapter; field in BluetoothLeService
193 mBluetoothAdapter = mBluetoothManager.getAdapter(); in initialize()
194 if (mBluetoothAdapter == null) { in initialize()
213 if (mBluetoothAdapter == null || address == null) { in connect()
230 final BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(address); in connect()
251 if (mBluetoothAdapter == null || mBluetoothGatt == null) { in disconnect()
278 if (mBluetoothAdapter == null || mBluetoothGatt == null) { in readCharacteristic()
293 if (mBluetoothAdapter == null || mBluetoothGatt == null) { in setCharacteristicNotification()
/development/samples/browseable/BluetoothChat/src/com.example.android.bluetoothchat/
DBluetoothChatFragment.java82 private BluetoothAdapter mBluetoothAdapter = null; field in BluetoothChatFragment
94 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate()
97 if (mBluetoothAdapter == null) { in onCreate()
110 if (!mBluetoothAdapter.isEnabled()) { in onStart()
194 if (mBluetoothAdapter.getScanMode() != in ensureDiscoverable()
368 BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(address); in connectDevice()
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/
DBluetoothChat.java79 private BluetoothAdapter mBluetoothAdapter = null; field in BluetoothChat
93 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate()
96 if (mBluetoothAdapter == null) { in onCreate()
110 if (!mBluetoothAdapter.isEnabled()) { in onStart()
188 if (mBluetoothAdapter.getScanMode() != in ensureDiscoverable()
324 BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(address); in connectDevice()