/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowSensorManager.java | 61 public void addSensor(int sensorType, Sensor sensor) { in addSensor() argument 62 checkNotNull(sensor); in addSensor() 63 sensorMap.put(sensorType, sensor); in addSensor() 67 public void addSensor(Sensor sensor) { in addSensor() argument 68 checkNotNull(sensor); in addSensor() 69 sensorMap.put(sensor.getType(), sensor); in addSensor() local 72 public void removeSensor(Sensor sensor) { in removeSensor() argument 73 checkNotNull(sensor); in removeSensor() 74 sensorMap.get(sensor.getType()).remove(sensor); in removeSensor() 101 SensorEventListener listener, Sensor sensor, int rate, Handler handler) { in registerListener() argument [all …]
|
D | ShadowSensor.java | 25 Sensor sensor = Shadow.newInstanceOf(Sensor.class); in newInstance() local 26 reflector(_Sensor_.class, sensor).setTypeCompat(type); in newInstance() 27 return sensor; in newInstance()
|
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowSensorTest.java | 19 Sensor sensor = ShadowSensor.newInstance(Sensor.TYPE_ACCELEROMETER); in getType() local 20 assertThat(sensor.getType()).isEqualTo(Sensor.TYPE_ACCELEROMETER); in getType() 26 Sensor sensor = ShadowSensor.newInstance(Sensor.TYPE_ACCELEROMETER); in getStringType() local 27 assertThat(sensor.getStringType()).isEqualTo(Sensor.STRING_TYPE_ACCELEROMETER); in getStringType() 32 Sensor sensor = ShadowSensor.newInstance(Sensor.TYPE_PROXIMITY); in getMaximumRange() local 33 assertThat(sensor.getMaximumRange()).isEqualTo(0f); in getMaximumRange() 34 Shadows.shadowOf(sensor).setMaximumRange(5f); in getMaximumRange() 35 assertThat(sensor.getMaximumRange()).isEqualTo(5f); in getMaximumRange() 40 Sensor sensor = ShadowSensor.newInstance(Sensor.TYPE_ACCELEROMETER); in getMinDelay() local 41 assertThat(sensor.getMinDelay()).isEqualTo(0); in getMinDelay() [all …]
|
D | ShadowSensorManagerTest.java | 74 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); in registerListener() local 75 sensorManager.registerListener(listener, sensor, SensorManager.SENSOR_DELAY_NORMAL); in registerListener() 131 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); in shouldSendSensorEventToSingleRegisteredListener() local 132 sensorManager.registerListener(listener, sensor, SensorManager.SENSOR_DELAY_NORMAL); in shouldSendSensorEventToSingleRegisteredListener() 146 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); in shouldSendSensorEventToMultipleRegisteredListeners() local 147 sensorManager.registerListener(listener1, sensor, SensorManager.SENSOR_DELAY_NORMAL); in shouldSendSensorEventToMultipleRegisteredListeners() 148 sensorManager.registerListener(listener2, sensor, SensorManager.SENSOR_DELAY_NORMAL); in shouldSendSensorEventToMultipleRegisteredListeners() 167 Sensor sensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER); in shouldNotCauseConcurrentModificationExceptionSendSensorEvent() local 168 sensorManager.registerListener(listener1, sensor, SensorManager.SENSOR_DELAY_NORMAL); in shouldNotCauseConcurrentModificationExceptionSendSensorEvent() 202 assertThat(event.sensor).isNotNull(); in shouldCreateSensorEventWithValueArrayAndSensorType() [all …]
|
/external/chromiumos-config/proto/chromiumos/config/api/ |
D | proximity_config.proto | 13 // Define which antenna(s) the proximity sensor protects. 28 // An empty message indicating that proximity sensor(s) are used, 35 // Proximity sensor channel: i.e.: 0,1, 3, 3_comb. 38 // Proximity sensor hardware gain. 41 // Proximity sensor falling threshold. 44 // Proximity sensor falling hysteresis. 47 // Proximity sensor rising threshold. 50 // Proximity sensor rising hysteresis. 56 // Proximity sensor sampling frequency. 59 // Proximity sensor falling threshold period (debounce). [all …]
|
D | component.proto | 234 // absence of an ambient light sensor controlling the display backlight. 238 // absence of an ambient light sensor controlling the display backlight. 244 // of an ambient light sensor controlling the display backlight. 248 // an ambient light sensor controlling the display backlight. 253 // ambient light sensor value. Steps should be in increasing order. 406 // A single step in an ambient light sensor configuration table. Each step 408 // sensor value at which the next or previous step should be considered. 411 // The ALS sensor value below which the previous step should be considered. 416 // The ALS sensor value above which the following step should be
|
/external/pigweed/pw_sensor/py/ |
D | docs.rst | 9 - **Configure Sensors**: Update the sensor configurations to match your 11 a YAML sensor description. 17 for Pigweed sensor drivers. 26 sensor using the `metadata_schema.json`_ format, e.g.: 51 or a Zephyr header of definitions describing the sensor. 54 Describing a sensor 56 When describing a sensor from the user's perspective, there are 3 primary points 76 *compatible* descriptor allows us to have a unique identifier for each sensor. 77 Next, we need a way to describe a sensor in a platform and language agnostic 82 Currently, pw_sensor supports 2 types of sensor buses: i2c and spi. Each sensor [all …]
|
/external/coreboot/src/ec/google/wilco/acpi/ |
D | dptf.asl | 10 /* Read requested temperature sensor */ 17 /* Set sensor ID */ 37 /* Set sensor ID */ 40 /* Set LOW trip point for this sensor */ 58 /* Set sensor ID */ 61 /* Set HIGH trip point for this sensor */ 78 /* Set sensor ID */ 90 * Handle sensor trip events 105 /* DPTF will Notify sensor devices */ 109 /* Clear current sensor number */ [all …]
|
/external/pigweed/pw_sensor/ |
D | docs.rst | 19 of a sensor to be declared once and shared across multiple languages or runtimes. 23 them and use them in our language-specific sensor code. 25 Here's an example sensor definition YAML file for a custom sensor made by a 26 company called "MyOrg" with a part ID "MyPaRt12345". This sensor supports 48 Now that we have our sensor spec in a YAML file we can use it in our C++ code: 54 Compiling one or more sensor YAML files into a header is done by a call to 59 load("@pigweed//pw_sensor:sensor.bzl", "pw_sensor_library") 84 Compiling one or more sensor YAML files into a header is done by a call to 89 import("$dir_pw_sensor/sensor.gni") 113 Compiling one or more sensor YAML files into a header is done by a call to [all …]
|
/external/perfetto/test/trace_processor/diff_tests/parser/parsing/ |
D | android_log_msgs.out | 24 "@ 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/pigweed/docs/showcases/sense/tutorial/ |
D | factory.rst | 95 the **BME688** sensor. 175 Setting LTR559 sensor to proximity mode. 179 Getting initial sensor readings 188 >>> Fully cover the LIGHT sensor 190 Reading sensor - 28992.00, 29440.00, 29248.00, 29088.00, 29056.00 199 >>> Fully uncover the LIGHT sensor 209 Setting LTR559 sensor to ambient mode. 213 Getting initial sensor readings 222 >>> Cover the LIGHT sensor with your finger 236 Testing gas resistance in the BME688 sensor. [all …]
|
/external/pigweed/seed/ |
D | 0119.rst | 18 This SEED proposes that Pigweed provide a full end-to-end sensor solution, 25 Sensors are part of nearly every embedded device. However, sensor drivers and 27 sensor drivers using various bus APIs. This results in drivers and applications 34 Introducing a standard sensor driver interface will allow Pigweed users to 38 A second layer of a sensor framework will then be introduced. This secondary 41 sensor. It will also be compatible with Android's `CHRE`_. 60 sensor drivers and APIs meet the needs of Pigweed applications. 70 implementations may call down to an already implemented sensor driver of the 73 implementation will actually perform remote calls to a sensor on another SoC 78 that the Pigweed provided sensor framework will then mux all the [all …]
|
D | 0120.rst | 18 This SEED details the configuration aspect of both sensors and the sensor 21 API. As such, the ``Configuration`` is a part of both layers for the sensor 27 sensor only supports 1 configuration. 28 * The sensor framework (a layer above the ``Sensor`` driver) has the concept of 29 a ``Connection``. You can open multiple connections to the same sensor and the 53 Making sensor drivers configurable lends to the reusability of the driver. 54 Additionally, each ``Connection`` in the sensor framework should be able to 190 sensor's desired configuration and pass it to ``Sensor::SetConfiguration()``. 192 the desired configuration. The second option is to first query the sensor's 276 to the driver, while in the case of the ``Connection``, the sensor framework [all …]
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
D | SensorManagerFacade.java | 152 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/coreboot/src/mainboard/google/link/acpi/ |
D | thermal.asl | 37 // Check for sensor not calibrated 42 // Check for sensor not present 47 // Check for sensor not powered 52 // Check for sensor bad reading 111 // Check for sensor not present 116 // Check for sensor not powered 121 // Check for sensor bad reading
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/thermal/tsens_read/ |
D | format | 10 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_threshold_hit/ |
D | format | 10 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/ |
D | format | 10 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_seed_N2F62_3.10.49/events/thermal/tsens_read/ |
D | format | 10 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_seed_N2F62_3.10.49/events/thermal/tsens_threshold_hit/ |
D | format | 10 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/ |
D | format | 10 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/coreboot/src/mainboard/google/slippy/acpi/ |
D | thermal.asl | 69 // Check for sensor not calibrated 74 // Check for sensor not present 79 // Check for sensor not powered 84 // Check for sensor bad reading
|
/external/coreboot/src/mainboard/google/skyrim/variants/winterhold/include/variant/acpi/ |
D | dtts.asl | 32 // AMB sensor trigger point 40 // AMB sensor release point 89 // AMB sensor trigger point 95 // AMB sensor release point
|
/external/autotest/server/site_tests/power_BrightnessResetAfterReboot/ |
D | control | 21 1. Checks that ambient light sensor exists if specified in powerd prefs. 27 -Ambient light sensor does not exist even though specified in powerd prefs. 32 Note: for devices with ambient light sensor, test will allow for a small change
|
/external/coreboot/src/mainboard/google/auron/acpi/ |
D | thermal.asl | 58 // Check for sensor not calibrated 63 // Check for sensor not present 68 // Check for sensor not powered 73 // Check for sensor bad reading
|