Home
last modified time | relevance | path

Searched refs:sensor (Results 1 – 25 of 115) sorted by relevance

12345

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowSensorManagerTest.java63 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); in registerListener() local
64 sensorManager.registerListener(listener, sensor, SensorManager.SENSOR_DELAY_NORMAL); in registerListener()
95 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); in shouldSendSensorEventToSingleRegisteredListener() local
96 sensorManager.registerListener(listener, sensor, SensorManager.SENSOR_DELAY_NORMAL); in shouldSendSensorEventToSingleRegisteredListener()
110 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); in shouldSendSensorEventToMultipleRegisteredListeners() local
111 sensorManager.registerListener(listener1, sensor, SensorManager.SENSOR_DELAY_NORMAL); in shouldSendSensorEventToMultipleRegisteredListeners()
112 sensorManager.registerListener(listener2, sensor, SensorManager.SENSOR_DELAY_NORMAL); in shouldSendSensorEventToMultipleRegisteredListeners()
125 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); in shouldNotSendSensorEventIfNoRegisteredListeners() local
156 Sensor sensor = ShadowSensor.newInstance(Sensor.TYPE_ACCELEROMETER); in getSensor_shouldBeConfigurable() local
157 shadowOf(sensorManager).addSensor(sensor); in getSensor_shouldBeConfigurable()
[all …]
DShadowSensorTest.java18 Sensor sensor = ShadowSensor.newInstance(Sensor.TYPE_ACCELEROMETER); in getType() local
19 assertThat(sensor.getType()).isEqualTo(Sensor.TYPE_ACCELEROMETER); in getType()
25 Sensor sensor = ShadowSensor.newInstance(Sensor.TYPE_ACCELEROMETER); in getStringType() local
26 assertThat(sensor.getStringType()).isEqualTo(Sensor.STRING_TYPE_ACCELEROMETER); in getStringType()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowSensorManager.java42 public void addSensor(int sensorType, Sensor sensor) { in addSensor() argument
43 sensorMap.put(sensorType, sensor); in addSensor()
47 public void addSensor(Sensor sensor) { in addSensor() argument
48 sensorMap.put(sensor.getType(), sensor); in addSensor() local
59 SensorEventListener listener, Sensor sensor, int rate, Handler handler) { in registerListener() argument
60 return registerListener(listener, sensor, rate); in registerListener()
64 protected boolean registerListener(SensorEventListener listener, Sensor sensor, int rate) { in registerListener() argument
75 protected void unregisterListener(SensorEventListener listener, Sensor sensor) { in unregisterListener() argument
DShadowSensor.java19 Sensor sensor = Shadow.newInstanceOf(Sensor.class); in newInstance() local
21 Shadow.directlyOn(sensor, Sensor.class, "setType", ClassParameter.from(int.class, type)); in newInstance()
23 ReflectionHelpers.setField(Sensor.class, sensor, "mType", type); in newInstance()
25 return sensor; in newInstance()
/external/perfetto/test/trace_processor/
Dandroid_log_msgs.out24 "@ 1507.130: [VSC] Request sensor 65537, sample_duration 14 ms, report_duration 64 ms",1
25 "@ 1507.131: [VSC] Stopping sensor events for sensor 131074",1
28 "@ 1508.133: [VSC] Stopping sensor events for sensor 65537",1
29 "@ 1508.134: [VSC] Request sensor 65544, sample_duration 42 ms, report_duration 42 ms",1
/external/autotest/client/site_tests/hardware_Thermal/
Dcontrol7 PURPOSE = 'Ensure the temp sensor is working.'
8 CRITERIA = 'Fails if the temp sensor is not in reasonable range.'
15 This is a hardware test for temp sensor. The test uses mosys to read temp
16 sensor value and check it's in reasonable range.
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DSensorManagerFacade.java152 for (Sensor sensor : mSensorManager.getSensorList(Sensor.TYPE_ALL)) { in startSensingTimed()
153 mSensorManager.registerListener(mSensorListener, sensor, in startSensingTimed()
158 for (Sensor sensor : mSensorManager.getSensorList(Sensor.TYPE_ACCELEROMETER)) { in startSensingTimed()
159 mSensorManager.registerListener(mSensorListener, sensor, in startSensingTimed()
164 for (Sensor sensor : mSensorManager.getSensorList(Sensor.TYPE_MAGNETIC_FIELD)) { in startSensingTimed()
165 mSensorManager.registerListener(mSensorListener, sensor, in startSensingTimed()
170 for (Sensor sensor : mSensorManager.getSensorList(Sensor.TYPE_LIGHT)) { in startSensingTimed()
171 mSensorManager.registerListener(mSensorListener, sensor, in startSensingTimed()
289 public void onAccuracyChanged(Sensor sensor, int accuracy) { in onAccuracyChanged() argument
306 switch (event.sensor.getType()) { in onSensorChanged()
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/thermal/tsens_threshold_hit/
Dformat10 field:unsigned int sensor; offset:12; size:4; signed:0;
12 print fmt: "temp=%lu sensor=tsens_tz_sensor%u", REC->temp, REC->sensor
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/thermal/tsens_threshold_hit/
Dformat10 field:unsigned int sensor; offset:16; size:4; signed:0;
12 print fmt: "temp=%lu sensor=tsens_tz_sensor%u", REC->temp, REC->sensor
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/thermal/tsens_threshold_clear/
Dformat10 field:unsigned int sensor; offset:12; size:4; signed:0;
12 print fmt: "temp=%lu sensor=tsens_tz_sensor%u", REC->temp, REC->sensor
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/thermal/tsens_threshold_clear/
Dformat10 field:unsigned int sensor; offset:16; size:4; signed:0;
12 print fmt: "temp=%lu sensor=tsens_tz_sensor%u", REC->temp, REC->sensor
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/thermal/tsens_read/
Dformat10 field:unsigned int sensor; offset:16; size:4; signed:0;
12 print fmt: "temp=%lu sensor=tsens_tz_sensor%u", REC->temp, REC->sensor
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/thermal/tsens_read/
Dformat10 field:unsigned int sensor; offset:12; size:4; signed:0;
12 print fmt: "temp=%lu sensor=tsens_tz_sensor%u", REC->temp, REC->sensor
/external/autotest/client/site_tests/hardware_LightSensor/
Dcontrol9 Fails if the light sensor kernel module is not loaded, or its sys files
19 This tests the interface provided by the light sensor kernel module for
21 light-to-digital converters (ie, light sensor chips).
/external/u-boot/arch/arm/dts/
Drk3288-thermal.dtsi14 /* sensor ID */
23 /* sensor ID */
63 /* sensor ID */
Dbcm2835.dtsi31 /* enable thermal sensor with the correct compatible property set */
Domap3-cpu-thermal.dtsi18 /* sensor ID */
/external/u-boot/doc/device-tree-bindings/thermal/
Drockchip-thermal.txt15 - #thermal-sensor-cells : Should be 1. See ./thermal.txt for a description.
32 #thermal-sensor-cells = <1>;
44 /* sensor ID */
Dti_soc_thermal.txt4 and a temperature sensor feature that are gathered in the band
5 gap voltage and temperature sensor (VBGAPTS) module. The band
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
DAppRTCProximitySensor.java92 public final void onAccuracyChanged(Sensor sensor, int accuracy) { in onAccuracyChanged() argument
94 AppRTCUtils.assertIsTrue(sensor.getType() == Sensor.TYPE_PROXIMITY); in onAccuracyChanged()
103 AppRTCUtils.assertIsTrue(event.sensor.getType() == Sensor.TYPE_PROXIMITY); in onSensorChanged()
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/
DOrientationSensorExampleActivity.java170 for (Sensor sensor : sensorMgr.getSensorList(Sensor.TYPE_ORIENTATION)) { in onCreate()
171 if (sensor.getType() == Sensor.TYPE_ORIENTATION) { in onCreate()
172 orSensor = sensor; in onCreate()
246 public void onAccuracyChanged(Sensor sensor, int i) { in onAccuracyChanged() argument
/external/u-boot/drivers/thermal/
DKconfig12 bool "Temperature sensor driver for Freescale i.MX SoCs"
21 bool "Temperature sensor driver for TI dra7xx SOCs"
/external/libxcam/modules/isp/
Disp_config_translator.cpp40 IspConfigTranslator::IspConfigTranslator (SmartPtr<SensorDescriptor> &sensor) in IspConfigTranslator() argument
41 : _sensor (sensor) in IspConfigTranslator()
/external/walt/docs/usage/
DWALT_usage.md141 …* Position WALT with the screen sensor looking at the screen (the light sensor recessed into the l…
143 …. The orange LED on the Teensy will also blink every time the bottom light sensor detects a change.
184 …llides with the glass. The copper tip is grounded and triggers the touch sensor. The stylus spring…
238 … beam hits the WALT optical sensor looking sideways. A green LED (marked D3) will light up wheneve…
241 …* The green counter in the top right corner counts how many times the laser sensor changed state. …
/external/libxcam/tests/
Dtest-xcamsrc-camera.sh3 gst-launch-1.0 xcamsrc sensor-id=3 capture-mode=1 io-mode=4 ! video/x-raw, format=NV12, width=1920,…

12345