Home
last modified time | relevance | path

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

/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/BluetoothHDP/src/com/example/bluetooth/health/
DBluetoothHDPService.java93 private BluetoothAdapter mBluetoothAdapter; field in BluetoothHDPService
147 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate()
148 if (mBluetoothAdapter == null || !mBluetoothAdapter.isEnabled()) { in onCreate()
154 if (!mBluetoothAdapter.getProfileProxy(this, mBluetoothServiceListener, in onCreate()
DBluetoothHDPActivity.java67 private BluetoothAdapter mBluetoothAdapter; field in BluetoothHDPActivity
131 mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); in onCreate()
132 if (mBluetoothAdapter == null) { in onCreate()
169 (BluetoothDevice[]) mBluetoothAdapter.getBondedDevices().toArray( in onCreate()
233 if (!mBluetoothAdapter.isEnabled()) { in onStart()
/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()