Lines Matching refs:Mode
94 enum Mode {
95 // The regular operating mode where any application can register/unregister/call flush on
98 // This mode is only used for testing purposes. Not all HALs support this mode. In this mode,
100 // injected from the SensorService as if it were the real sensor data. This mode is primarily
102 // Step Detector etc. Typically in this mode, there will be a client (a
108 // This mode is used only for testing sensors. Each sensor can be tested in isolation with
111 // in NORMAL mode. When this mode is first activated, all active sensors from all connections
112 // are disabled. Calling flush() will return an error. In this mode, only the requests from
115 // NORMAL mode again, all sensors that were previously registered to are activated with the
126 // 1) Put SensorService in RESTRICTED mode with packageName .cts. If it is already in
127 // restricted mode it is treated as a NO_OP (and packageName is NOT changed).
131 // 2) Put SensorService in DATA_INJECTION mode with packageName .xts. If it is already in
132 // data_injection mode it is treated as a NO_OP (and packageName is NOT changed).
136 // 3) Reset sensorservice back to NORMAL mode.
202 // If SensorService is operating in RESTRICTED mode, only select whitelisted packages are
207 // Reset the state of SensorService to NORMAL mode.
240 Mode mCurrentOperatingMode;
242 // This packagaName is set when SensorService is in RESTRICTED or DATA_INJECTION mode. Only