OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mSensorManager
(Results
1 - 25
of
30
) sorted by null
1
2
/cts/tests/tests/hardware/src/android/hardware/cts/
SensorTest.java
39
private SensorManager
mSensorManager
;
47
mSensorManager
= (SensorManager) getContext().getSystemService(Context.SENSOR_SERVICE);
52
Sensor sensor =
mSensorManager
.getDefaultSensor(i);
67
List<Sensor> sensors =
mSensorManager
.getSensorList(Sensor.TYPE_ALL);
69
Sensor sensor =
mSensorManager
.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
80
sensor =
mSensorManager
.getDefaultSensor(Sensor.TYPE_STEP_COUNTER);
91
sensor =
mSensorManager
.getDefaultSensor(Sensor.TYPE_STEP_DETECTOR);
102
sensor =
mSensorManager
.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
113
sensor =
mSensorManager
.getDefaultSensor(Sensor.TYPE_ORIENTATION);
120
sensor =
mSensorManager
.getDefaultSensor(Sensor.TYPE_TEMPERATURE)
[
all
...]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
AccelerometerTestActivity.java
37
private SensorManager
mSensorManager
;
45
mSensorManager
= (SensorManager) getApplicationContext().getSystemService(
60
mSensorManager
.unregisterListener(mListener);
68
mSensorManager
.registerListener(mListener,
mSensorManager
.getSensorList(
GyroscopeTestActivity.java
60
private SensorManager
mSensorManager
;
86
mSensorManager
= (SensorManager) getSystemService(SENSOR_SERVICE);
87
mSensor =
mSensorManager
.getDefaultSensor(Sensor.TYPE_GYROSCOPE);
160
if (!
mSensorManager
.registerListener(mSensorListener, mSensor,
169
mSensorManager
.unregisterListener(mSensorListener, mSensor);
/development/samples/ApiDemos/src/com/example/android/apis/os/
TriggerSensors.java
69
private SensorManager
mSensorManager
;
77
if (mSigMotion != null &&
mSensorManager
.requestTriggerSensor(mListener, mSigMotion))
86
if (mSigMotion != null)
mSensorManager
.cancelTriggerSensor(mListener, mSigMotion);
99
mSensorManager
= (SensorManager)getSystemService(SENSOR_SERVICE);
100
mSigMotion =
mSensorManager
.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION);
110
if (mSigMotion != null)
mSensorManager
.cancelTriggerSensor(mListener, mSigMotion);
Sensors.java
51
private SensorManager
mSensorManager
;
217
mSensorManager
= (SensorManager) getSystemService(SENSOR_SERVICE);
225
mSensorManager
.registerListener(mGraphView,
226
mSensorManager
.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),
228
mSensorManager
.registerListener(mGraphView,
229
mSensorManager
.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD),
231
mSensorManager
.registerListener(mGraphView,
232
mSensorManager
.getDefaultSensor(Sensor.TYPE_ORIENTATION),
238
mSensorManager
.unregisterListener(mGraphView);
RotationVectorDemo.java
44
private SensorManager
mSensorManager
;
52
mSensorManager
= (SensorManager)getSystemService(SENSOR_SERVICE);
88
mRotationVectorSensor =
mSensorManager
.getDefaultSensor(
102
mSensorManager
.registerListener(this, mRotationVectorSensor, 10000);
107
mSensorManager
.unregisterListener(this);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
MotionSensor.java
36
private SensorManager
mSensorManager
= null;
54
mSensorManager
= (SensorManager)getContext().getApplicationContext()
56
mSensor =
mSensorManager
.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION);
59
mSensorManager
.registerListener(this, mSensor, SensorManager.SENSOR_DELAY_UI);
64
mSensorManager
.unregisterListener(this);
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/
Balls.java
54
private SensorManager
mSensorManager
;
77
mSensorManager
= (SensorManager) getSystemService(SENSOR_SERVICE);
87
mSensorManager
.registerListener(this,
88
mSensorManager
.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),
106
mSensorManager
.unregisterListener(this);
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
SensorTest.java
32
private SensorManager
mSensorManager
;
140
mSensorManager
= (SensorManager)getSystemService(Context.SENSOR_SERVICE);
141
mSensor =
mSensorManager
.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
144
if (false) Log.d(TAG, "create " +
mSensorManager
);
150
mSensorManager
.registerListener(mListener, mSensor, SensorManager.SENSOR_DELAY_FASTEST);
151
if (false) Log.d(TAG, "resume " +
mSensorManager
);
156
mSensorManager
.unregisterListener(mListener);
158
if (false) Log.d(TAG, "stop " +
mSensorManager
);