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;
70 pluginManager.addPluginListener(this, SensorManagerPlugin.class, in AsyncSensorManager()
164 public boolean registerPluginListener(SensorManagerPlugin.Sensor sensor, in registerPluginListener()
165 SensorManagerPlugin.SensorEventListener listener) { in registerPluginListener()
184 public void unregisterPluginListener(SensorManagerPlugin.Sensor sensor, in unregisterPluginListener()
185 SensorManagerPlugin.SensorEventListener listener) { in unregisterPluginListener()
223 public void onPluginConnected(SensorManagerPlugin plugin, Context pluginContext) { in onPluginConnected()
228 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.java23 import static com.android.systemui.plugins.SensorManagerPlugin.Sensor.TYPE_WAKE_DISPLAY;
24 import static com.android.systemui.plugins.SensorManagerPlugin.Sensor.TYPE_WAKE_LOCK_SCREEN;
52 import com.android.systemui.plugins.SensorManagerPlugin;
254 new SensorManagerPlugin.Sensor(TYPE_WAKE_DISPLAY), in DozeSensors()
264 new SensorManagerPlugin.Sensor(TYPE_WAKE_LOCK_SCREEN), in DozeSensors()
776 class PluginSensor extends TriggerSensor implements SensorManagerPlugin.SensorEventListener {
778 final SensorManagerPlugin.Sensor mPluginSensor;
781 PluginSensor(SensorManagerPlugin.Sensor sensor, String setting, boolean configured, in PluginSensor()
787 PluginSensor(SensorManagerPlugin.Sensor sensor, String setting, boolean configured, in PluginSensor()
822 private String triggerEventToString(SensorManagerPlugin.SensorEvent event) { in triggerEventToString()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
DAsyncSensorManagerTest.java32 import com.android.systemui.plugins.SensorManagerPlugin;
99 eq(SensorManagerPlugin.class), eq(true) /* allowMultiple */); in registersPlugin_whenLoaded()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeSensorsTest.java23 import static com.android.systemui.plugins.SensorManagerPlugin.Sensor.TYPE_WAKE_LOCK_SCREEN;
54 import com.android.systemui.plugins.SensorManagerPlugin;
116 private SensorManagerPlugin.SensorEventListener mWakeLockScreenListener;
154 mWakeLockScreenListener.onSensorChanged(mock(SensorManagerPlugin.SensorEvent.class)); in testSensorDebounce()
161 mWakeLockScreenListener.onSensorChanged(mock(SensorManagerPlugin.SensorEvent.class)); in testSensorDebounce()