OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef COMPONENTS_PROXIMITY_AUTH_SCREENLOCK_STATE_H | |
6 #define COMPONENTS_PROXIMITY_AUTH_SCREENLOCK_STATE_H | |
7 | |
8 namespace proximity_auth { | |
9 | |
10 // Possible states of the proximity auth feature. | |
Tim Song
2015/04/30 23:16:56
nit: I would rephrase this to say "possible states
Ilya Sherman
2015/05/01 22:33:28
Done.
| |
11 enum class ScreenlockState { | |
12 // Proximity-based authentication is not enabled, or the screen is not | |
13 // locked. | |
14 INACTIVE, | |
15 // Bluetooth is not on. | |
16 NO_BLUETOOTH, | |
17 // The local device is in process of turning on Bluetooth. | |
18 BLUETOOTH_CONNECTING, | |
19 // No phones eligible to unlock the local device can be found. | |
20 NO_PHONE, | |
21 // A phone eligible to unlock the local device is found, but cannot be | |
22 // authenticated. | |
23 PHONE_NOT_AUTHENTICATED, | |
24 // A phone eligible to unlock the local device is found, but it's locked. | |
25 PHONE_LOCKED, | |
26 // A phone eligible to unlock the local device is found, but it does not have | |
27 // a lock screen enabled. | |
28 PHONE_NOT_LOCKABLE, | |
29 // An enabled phone is found, but it is not allowed to unlock the local device | |
30 // because it does not support reporting its lock screen state. | |
31 PHONE_UNSUPPORTED, | |
32 // A phone eligible to unlock the local device is found, but its received | |
33 // signal strength is too low, i.e. the phone is roughly more than 30 feet | |
34 // away, and therefore is not allowed to unlock the device. | |
35 RSSI_TOO_LOW, | |
36 // A phone eligible to unlock the local device is found, but the local | |
37 // device's transmission power is too high, indicating that the phone is | |
38 // (probably) more than 1 foot away, and therefore is not allowed to unlock | |
39 // the device. | |
40 TX_POWER_TOO_HIGH, | |
41 // A phone eligible to unlock the local device is found; but (a) the phone is | |
42 // locked, and (b) the local device's transmission power is too high, | |
43 // indicating that the phone is (probably) more than 1 foot away, and | |
44 // therefore is not allowed to unlock the device. | |
45 PHONE_LOCKED_AND_TX_POWER_TOO_HIGH, | |
46 // The local device can be unlocked using proximity-based authentication. | |
47 AUTHENTICATED, | |
48 }; | |
49 | |
50 } // namespace proximity_auth | |
51 | |
52 #endif // COMPONENTS_PROXIMITY_AUTH_SCREENLOCK_STATE_H | |
OLD | NEW |