Home | History | Annotate | Download | only in com.example.android.bluetoothlegatt

Lines Matching defs:mBluetoothGatt

48     private BluetoothGatt mBluetoothGatt;
82 mBluetoothGatt.discoverServices());
220 && mBluetoothGatt != null) {
221 Log.d(TAG, "Trying to use an existing mBluetoothGatt for connection.");
222 if (mBluetoothGatt.connect()) {
237 mBluetoothGatt = device.connectGatt(this, false, mGattCallback);
251 if (mBluetoothAdapter == null || mBluetoothGatt == null) {
255 mBluetoothGatt.disconnect();
263 if (mBluetoothGatt == null) {
266 mBluetoothGatt.close();
267 mBluetoothGatt = null;
278 if (mBluetoothAdapter == null || mBluetoothGatt == null) {
282 mBluetoothGatt.readCharacteristic(characteristic);
293 if (mBluetoothAdapter == null || mBluetoothGatt == null) {
297 mBluetoothGatt.setCharacteristicNotification(characteristic, enabled);
304 mBluetoothGatt.writeDescriptor(descriptor);
315 if (mBluetoothGatt == null) return null;
317 return mBluetoothGatt.getServices();