Home
last modified time | relevance | path

Searched refs:SensorManagerPlugin (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
DAsyncSensorManager.java35 import com.android.systemui.plugins.SensorManagerPlugin;
53 implements PluginListener<SensorManagerPlugin> {
60 private final List<SensorManagerPlugin> mPlugins;
81 pluginManager.addPluginListener(this, SensorManagerPlugin.class, in AsyncSensorManager()
175 public boolean registerPluginListener(SensorManagerPlugin.Sensor sensor, in registerPluginListener()
176 SensorManagerPlugin.SensorEventListener listener) { in registerPluginListener()
195 public void unregisterPluginListener(SensorManagerPlugin.Sensor sensor, in unregisterPluginListener()
196 SensorManagerPlugin.SensorEventListener listener) { in unregisterPluginListener()
234 public void onPluginConnected(SensorManagerPlugin plugin, Context pluginContext) { in onPluginConnected()
239 public void onPluginDisconnected(SensorManagerPlugin plugin) { in onPluginDisconnected()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DSensorManagerPlugin.java27 @ProvidesInterface(action = SensorManagerPlugin.ACTION, version = SensorManagerPlugin.VERSION)
28 public interface SensorManagerPlugin extends Plugin { interface
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeSensors.java19 import static com.android.systemui.plugins.SensorManagerPlugin.Sensor.TYPE_WAKE_DISPLAY;
20 import static com.android.systemui.plugins.SensorManagerPlugin.Sensor.TYPE_WAKE_LOCK_SCREEN;
48 import com.android.systemui.plugins.SensorManagerPlugin;
160 new SensorManagerPlugin.Sensor(TYPE_WAKE_DISPLAY), in DozeSensors()
168 new SensorManagerPlugin.Sensor(TYPE_WAKE_LOCK_SCREEN), in DozeSensors()
483 class PluginSensor extends TriggerSensor implements SensorManagerPlugin.SensorEventListener {
485 final SensorManagerPlugin.Sensor mPluginSensor;
488 PluginSensor(SensorManagerPlugin.Sensor sensor, String setting, boolean configured, in PluginSensor()
495 PluginSensor(SensorManagerPlugin.Sensor sensor, String setting, boolean configured, in PluginSensor()
530 private String triggerEventToString(SensorManagerPlugin.SensorEvent event) { in triggerEventToString()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeSensorsTest.java19 import static com.android.systemui.plugins.SensorManagerPlugin.Sensor.TYPE_WAKE_LOCK_SCREEN;
47 import com.android.systemui.plugins.SensorManagerPlugin;
88 private SensorManagerPlugin.SensorEventListener mWakeLockScreenListener;
116 mWakeLockScreenListener.onSensorChanged(mock(SensorManagerPlugin.SensorEvent.class)); in testSensorDebounce()
123 mWakeLockScreenListener.onSensorChanged(mock(SensorManagerPlugin.SensorEvent.class)); in testSensorDebounce()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
DAsyncSensorManagerTest.java33 import com.android.systemui.plugins.SensorManagerPlugin;
98 eq(SensorManagerPlugin.class), eq(true) /* allowMultiple */); in registersPlugin_whenLoaded()