Lines Matching defs:Mode
72 enum Mode {
73 // The regular operating mode where any application can register/unregister/call flush on
76 // This mode is only used for testing purposes. Not all HALs support this mode. In this
77 // mode, the HAL ignores the sensor data provided by physical sensors and accepts the data
78 // that is injected from the SensorService as if it were the real sensor data. This mode
80 // Step Counter and Step Detector etc. Typically in this mode, there will be a client
86 // This mode is used only for testing sensors. Each sensor can be tested in isolation with
89 // in NORMAL mode. When this mode is first activated, all active sensors from all connections
90 // are disabled. Calling flush() will return an error. In this mode, only the requests from
93 // NORMAL mode again, all sensors that were previously registered to are activated with the
105 // 1) Put SensorService in RESTRICTED mode with packageName .cts. If it is already in
106 // restricted mode it is treated as a NO_OP (and packageName is NOT changed).
109 // 2) Put SensorService in DATA_INJECTION mode with packageName .xts. If it is already in
110 // data_injection mode it is treated as a NO_OP (and packageName is NOT changed).
113 // 3) Reset sensorservice back to NORMAL mode.
377 // If SensorService is operating in RESTRICTED mode, only select whitelisted packages are
382 // Reset the state of SensorService to NORMAL mode.
407 Mode mCurrentOperatingMode;
408 // This packagaName is set when SensorService is in RESTRICTED or DATA_INJECTION mode. Only