Lines Matching refs:STATE_ON

144      * {@link #STATE_ON},
154 * {@link #STATE_ON},
161 @IntDef({STATE_OFF, STATE_TURNING_ON, STATE_ON, STATE_TURNING_OFF, STATE_BLE_TURNING_ON,
172 * clients should wait for {@link #STATE_ON} before attempting to
179 public static final int STATE_ON = 12;
212 case STATE_ON: return "ON";
499 * works in Bluetooth state STATE_ON
512 * works in Bluetooth state STATE_ON
700 * <code>getBluetoothState() == STATE_ON</code>
721 * <p>This returns true if current state is either STATE_ON or STATE_BLE_ON
730 return (state == BluetoothAdapter.STATE_ON || state == BluetoothAdapter.STATE_BLE_ON);
739 * <p> If the Adapter state is STATE_ON, This would unregister the existance of
748 * #STATE_ON} to {@link #STATE_TURNING_OFF}, and some time
764 if (state == BluetoothAdapter.STATE_ON || state == BluetoothAdapter.STATE_BLE_ON) {
836 * {@link #STATE_ON},
877 * {@link #STATE_ON},
905 if (getLeState() == STATE_ON)
932 * #STATE_ON}. If this call returns false then there was an
964 * #STATE_ON} to {@link #STATE_TURNING_OFF}, and some time
966 * #STATE_ON}. If this call returns false then there was an
1061 if (getState() != STATE_ON) return null;
1079 * <p>If Bluetooth state is not {@link #STATE_ON}, this API
1081 * wait for {@link #ACTION_STATE_CHANGED} with {@link #STATE_ON}
1089 if (getState() != STATE_ON) return false;
1109 * <p>If Bluetooth state is not {@link #STATE_ON}, this API
1111 * wait for {@link #ACTION_STATE_CHANGED} with {@link #STATE_ON}
1119 if (getState() != STATE_ON) return SCAN_MODE_NONE;
1143 * <p>If Bluetooth state is not {@link #STATE_ON}, this API
1145 * wait for {@link #ACTION_STATE_CHANGED} with {@link #STATE_ON}
1160 if (getState() != STATE_ON) return false;
1174 if (getState() != STATE_ON) return false;
1181 if (getState() != STATE_ON) return -1;
1195 if (getState() != STATE_ON) return;
1247 * <p>If Bluetooth state is not {@link #STATE_ON}, this API
1249 * wait for {@link #ACTION_STATE_CHANGED} with {@link #STATE_ON}
1256 if (getState() != STATE_ON) return false;
1277 * <p>If Bluetooth state is not {@link #STATE_ON}, this API
1279 * wait for {@link #ACTION_STATE_CHANGED} with {@link #STATE_ON}
1286 if (getState() != STATE_ON) return false;
1309 * <p>If Bluetooth state is not {@link #STATE_ON}, this API
1311 * wait for {@link #ACTION_STATE_CHANGED} with {@link #STATE_ON}
1318 if (getState() != STATE_ON) return false;
1336 if (getState() != STATE_ON) return false;
1575 * <p>If Bluetooth state is not {@link #STATE_ON}, this API
1577 * wait for {@link #ACTION_STATE_CHANGED} with {@link #STATE_ON}
1584 if (getState() != STATE_ON) {
1644 if (getState() != STATE_ON) return BluetoothAdapter.STATE_DISCONNECTED;
1671 if (getState() != STATE_ON) return BluetoothProfile.STATE_DISCONNECTED;