Lines Matching defs:action
67 * Wrapper class to allow queuing of BLE actions. The BLE stack allows only one action to be
77 public BleAction(BluetoothGattCharacteristic characteristic, int action) {
78 mAction = action;
159 * Writes to a {@link BluetoothGattCharacteristic} if possible, or queues the action until
169 * Reads a {@link BluetoothGattCharacteristic} if possible, or queues the read action until
201 private void processAction(BleAction action) {
204 mBleActionQueue.add(action);
208 mBleActionQueue.add(action);
217 private void executeAction(BleAction action) {
218 if (action == null) {
223 Log.d(TAG, "Executing BLE Action type: " + action.getAction());
226 int actionType = action.getAction();
229 mBtGatt.writeCharacteristic(action.getCharacteristic());
232 mBtGatt.readCharacteristic(action.getCharacteristic());