OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:sensorManager
(Results
1 - 9
of
9
) sorted by null
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
SensorManagerTest.java
7
import android.hardware.
SensorManager
;
21
private
SensorManager
sensorManager
;
26
sensorManager
= (
SensorManager
) Robolectric.application.getSystemService(Context.SENSOR_SERVICE);
27
shadow = shadowOf(
sensorManager
);
32
sensorManager
= null;
45
Sensor sensor =
sensorManager
.getDefaultSensor(
SensorManager
.SENSOR_ACCELEROMETER);
46
sensorManager
.registerListener(listener, sensor, SensorManager.SENSOR_DELAY_NORMAL)
[
all
...]
/packages/apps/Dialer/src/com/android/dialer/
ProximitySensorManager.java
23
import android.hardware.
SensorManager
;
72
private final
SensorManager
mSensorManager;
89
public ProximitySensorEventListener(
SensorManager
sensorManager
, Sensor proximitySensor,
91
mSensorManager =
sensorManager
;
158
mSensorManager.registerListener(this, mProximitySensor,
SensorManager
.SENSOR_DELAY_UI);
186
SensorManager
sensorManager
=
187
(
SensorManager
) context.getSystemService(Context.SENSOR_SERVICE);
188
Sensor proximitySensor =
sensorManager
.getDefaultSensor(Sensor.TYPE_PROXIMITY)
[
all
...]
/development/ndk/platforms/android-9/samples/native-activity/jni/
main.c
47
ASensorManager*
sensorManager
;
244
engine.
sensorManager
= ASensorManager_getInstance();
245
engine.accelerometerSensor = ASensorManager_getDefaultSensor(engine.
sensorManager
,
247
engine.sensorEventQueue = ASensorManager_createEventQueue(engine.
sensorManager
,
/external/webrtc/src/modules/audio_processing/test/android/apmtest/jni/
main.c
47
ASensorManager*
sensorManager
;
244
engine.
sensorManager
= ASensorManager_getInstance();
245
engine.accelerometerSensor = ASensorManager_getDefaultSensor(engine.
sensorManager
,
247
engine.sensorEventQueue = ASensorManager_createEventQueue(engine.
sensorManager
,
/frameworks/base/services/java/com/android/server/power/
WirelessChargerDetector.java
22
import android.hardware.
SensorManager
;
92
private static final double MIN_GRAVITY =
SensorManager
.GRAVITY_EARTH - 1.0f;
93
private static final double MAX_GRAVITY =
SensorManager
.GRAVITY_EARTH + 1.0f;
97
private final
SensorManager
mSensorManager;
133
public WirelessChargerDetector(
SensorManager
sensorManager
,
135
mSensorManager =
sensorManager
;
138
mGravitySensor =
sensorManager
.getDefaultSensor(Sensor.TYPE_GRAVITY);
212
SensorManager
.SENSOR_DELAY_UI)) {
DisplayPowerController.java
31
import android.hardware.
SensorManager
;
188
private final
SensorManager
mSensorManager;
347
LightsService lights, TwilightService twilight,
SensorManager
sensorManager
,
359
mSensorManager =
sensorManager
;
[
all
...]
PowerManagerService.java
38
import android.hardware.
SensorManager
;
435
SensorManager
sensorManager
= new SystemSensorManager(mContext, mHandler.getLooper());
446
mContext, mNotifier, mLightsService, twilight,
sensorManager
,
450
mWirelessChargerDetector = new WirelessChargerDetector(
sensorManager
,
[
all
...]
/frameworks/base/core/java/android/hardware/
LegacySensorManager.java
38
private final
SensorManager
mSensorManager;
44
public LegacySensorManager(
SensorManager
sensorManager
) {
45
mSensorManager =
sensorManager
;
47
synchronized (
SensorManager
.class) {
75
result |=
SensorManager
.SENSOR_ACCELEROMETER;
78
result |=
SensorManager
.SENSOR_MAGNETIC_FIELD;
81
result |=
SensorManager
.SENSOR_ORIENTATION
82
|
SensorManager
.SENSOR_ORIENTATION_RAW;
94
result = registerLegacyListener(
SensorManager
.SENSOR_ACCELEROMETER
[
all
...]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
PowerUsageSummary.java
26
import android.hardware.
SensorManager
;
439
SensorManager
sensorManager
= (
SensorManager
)getActivity().getSystemService(
575
List<Sensor> sensorList =
sensorManager
.getSensorList(
[
all
...]
Completed in 690 milliseconds