OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:sensorManager
(Results
1 - 10
of
10
) 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
...]
/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
,
/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
...]
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/
SensorCtsHelper.java
20
import android.hardware.
SensorManager
;
247
SensorManager
sensorManager
= getSensorManager(context);
248
Sensor sensor =
sensorManager
.getDefaultSensor(sensorType);
259
SensorManager
sensorManager
= getSensorManager(context);
260
List<Sensor> sensors =
sensorManager
.getSensorList(sensorType);
354
* Get the
SensorManager
.
356
* @throws IllegalStateException if the
SensorManager
is not present in the system.
358
private static
SensorManager
getSensorManager(Context context)
[
all
...]
/developers/build/prebuilts/gradle/BatchStepSensor/BatchStepSensorSample/src/main/java/com/example/android/batchstepsensor/
BatchStepSensorFragment.java
24
import android.hardware.
SensorManager
;
250
SensorManager
sensorManager
=
251
(
SensorManager
) getActivity().getSystemService(Activity.SENSOR_SERVICE);
253
Sensor sensor =
sensorManager
.getDefaultSensor(sensorType);
257
final boolean batchMode =
sensorManager
.registerListener(
258
mListener, sensor,
SensorManager
.SENSOR_DELAY_NORMAL, maxdelay);
286
SensorManager
sensorManager
=
287
(
SensorManager
) getActivity().getSystemService(Activity.SENSOR_SERVICE)
[
all
...]
/developers/samples/android/sensors/BatchStepSensor/BatchStepSensorSample/src/main/java/com/example/android/batchstepsensor/
BatchStepSensorFragment.java
24
import android.hardware.
SensorManager
;
250
SensorManager
sensorManager
=
251
(
SensorManager
) getActivity().getSystemService(Activity.SENSOR_SERVICE);
253
Sensor sensor =
sensorManager
.getDefaultSensor(sensorType);
257
final boolean batchMode =
sensorManager
.registerListener(
258
mListener, sensor,
SensorManager
.SENSOR_DELAY_NORMAL, maxdelay);
286
SensorManager
sensorManager
=
287
(
SensorManager
) getActivity().getSystemService(Activity.SENSOR_SERVICE)
[
all
...]
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
DeviceMotionAndOrientation.java
11
import android.hardware.
SensorManager
;
195
// On some Samsung devices
SensorManager
.getRotationMatrixFromVector
220
* to the world's coordinate system, as e.g. computed by {@see
SensorManager
.getRotationMatrix}.
245
* a 3x3 rotation matrix {@see
SensorManager
.getRotationMatrix}.
300
SensorManager
.getRotationMatrixFromVector(deviceRotationMatrix, rotationVector);
314
SensorManager
sensorManager
= (
SensorManager
) WeakContext.getSystemService(
316
if (
sensorManager
!= null) {
317
mSensorManagerProxy = new SensorManagerProxyImpl(
sensorManager
);
[
all
...]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
BatteryStatsHelper.java
29
import android.hardware.
SensorManager
;
365
SensorManager
sensorManager
= (
SensorManager
) mActivity.getSystemService(
518
List<Sensor> sensorList =
sensorManager
.getSensorList(
[
all
...]
/frameworks/base/services/java/com/android/server/power/
PowerManagerService.java
39
import android.hardware.
SensorManager
;
440
SensorManager
sensorManager
= new SystemSensorManager(mContext, mHandler.getLooper());
451
mContext, mNotifier, mLightsService, twilight,
sensorManager
,
455
mWirelessChargerDetector = new WirelessChargerDetector(
sensorManager
,
[
all
...]
Completed in 1374 milliseconds