| /development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/ |
| BatchStepSensorFragment.java | 21 import android.hardware.Sensor; 84 // List of timestamps when sensor events occurred 89 // pointer to next entry in sensor event list 94 // Value of the step counter sensor when the listener was registered. 102 // When a listener is registered, the batch sensor delay in microseconds 135 * higher and has a step counter and step detector sensor. 172 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_COUNTER); 175 registerEventListener(BATCH_LATENCY_5s, Sensor.TYPE_STEP_COUNTER); 178 registerEventListener(BATCH_LATENCY_10s, Sensor.TYPE_STEP_COUNTER); 183 registerEventListener(BATCH_LATENCY_0, Sensor.TYPE_STEP_DETECTOR) 257 Sensor sensor = sensorManager.getDefaultSensor(sensorType); local 468 String sensor = "-"; local [all...] |
| /frameworks/base/core/java/android/hardware/ |
| LegacySensorManager.java | 31 * Helper class for implementing the legacy sensor manager API. 72 final List<Sensor> fullList = mSensorManager.getFullSensorList(); 73 for (Sensor i : fullList) { 75 case Sensor.TYPE_ACCELEROMETER: 78 case Sensor.TYPE_MAGNETIC_FIELD: 81 case Sensor.TYPE_ORIENTATION: 96 Sensor.TYPE_ACCELEROMETER, listener, sensors, rate) || result; 98 Sensor.TYPE_MAGNETIC_FIELD, listener, sensors, rate) || result; 100 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result; 102 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result 114 Sensor sensor = mSensorManager.getDefaultSensor(type); local 166 Sensor sensor = mSensorManager.getDefaultSensor(type); local [all...] |
| SystemSensorManager.java | 45 * Sensor manager implementation that communicates with the built-in 59 Sensor sensor, int index); 60 private static native void nativeGetDynamicSensors(long nativeInstance, List<Sensor> list); 79 private final ArrayList<Sensor> mFullSensorsList = new ArrayList<>(); 80 private List<Sensor> mFullDynamicSensorsList = new ArrayList<>(); 83 private final HashMap<Integer, Sensor> mHandleToSensor = new HashMap<>(); 91 // Dynamic Sensor callbacks 116 // initialize the sensor list 118 Sensor sensor = new Sensor() local 121 mHandleToSensor.put(sensor.getHandle(), sensor); local 686 Sensor sensor = mManager.mHandleToSensor.get(handle); local 805 final Sensor sensor = mManager.mHandleToSensor.get(handle); local 841 final Sensor sensor = mManager.mHandleToSensor.get(handle); local 857 final Sensor sensor = mManager.mHandleToSensor.get(handle); local 900 final Sensor sensor = mManager.mHandleToSensor.get(handle); local [all...] |
| /hardware/invensense/65xx/libsensors_iio/software/core/mllite/ |
| results_holder.c | 43 long geomag_compass_correction[4]; /**< quaternion going from accel quaternion to geomag sensor fusion */ 54 struct inv_sensor_cal_t *sensor; member in struct:results_t 349 * @param[in] sensor_cal New sensor data to process. 354 rh.sensor = sensor_cal;
|
| /packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/ |
| SensorsTestFragment.java | 17 package com.google.android.car.kitchensink.sensor; 53 private static final String TAG = "CAR.SENSOR.KS"; 72 Log.v(TAG, "New car sensor event: " + event); 128 for (Integer sensor : supportedSensors) { 129 mSensorManager.registerListener(mOnSensorChangedListener, sensor,
|
| /system/chre/platform/slpi/see/ |
| platform_sensor.cc | 24 #include "chre_api/chre/sensor.h" 26 #include "chre/core/sensor.h" 42 // sensor discovery. 61 //! A struct to facilitate sensor discovery 67 //! The list of SEE platform sensor data types that CHRE intends to support. 81 * Obtains the sensor type given the specified data type and whether the sensor 127 // Remove all requests if it's a one-shot sensor and only after data has been 140 * @param sensorHandle The handle of the sensor. 163 Sensor *sensor = EventLoopManagerSingleton::get()->getSensorRequestManager( local 306 Sensor sensor; local 367 SuidAttr sensor = { local [all...] |
| /cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
| PowerTestHostLink.java | 22 import android.hardware.Sensor; 203 final String REQUEST_SENSOR_ON = "SENSOR ON "; 204 final String REQUEST_SENSOR_OFF = "SENSOR OFF"; 205 final String REQUEST_SENSOR_AVAILABILITY = "SENSOR? "; 212 final String sensor = request.substring(REQUEST_SENSOR_AVAILABILITY.length()); local 213 final int sensorId = getSensorId(sensor); 331 Log.e(TAG, "Unknown sensor in request: " + sensorName); 337 Log.e(TAG, "Improperly formatted command received on setting sensor state"); 347 sensorId = Sensor.TYPE_ACCELEROMETER; 349 sensorId = Sensor.TYPE_AMBIENT_TEMPERATURE [all...] |
| /frameworks/base/core/jni/ |
| android_hardware_SensorManager.cpp | 28 #include <sensor/Sensor.h> 29 #include <sensor/SensorEventQueue.h> 30 #include <sensor/SensorManager.h> 91 //android.hardware.Sensor 94 MakeGlobalRefOrDie(_env, FindClassOrDie(_env, "android/hardware/Sensor")); 154 translateNativeSensorToJavaSensor(JNIEnv *env, jobject sensor, const Sensor& nativeSensor) { 157 if (sensor == NULL) { 158 // Sensor sensor = new Sensor() 224 jobject sensor = translateNativeSensorToJavaSensor(env, NULL, nativeList[i]); local [all...] |
| /frameworks/native/include/android/ |
| sensor.h | 18 * @addtogroup Sensor 23 * @file sensor.h 46 * Structures and functions to receive and process sensor events in 68 /* (Keep in sync with hardware/sensors-base.h and Sensor.java.) */ 71 * Sensor types. 79 * Invalid sensor type. Returned by {@link ASensor_getType} as error value. 110 * The light sensor value is returned in SI lux units. 116 * The pressure sensor value is returned in hPa (millibar). 123 * The proximity sensor which turns the screen off and back on during calls is the 124 * wake-up proximity sensor. Implement wake-up proximity sensor before implementin 312 int32_t sensor; member in struct:AMetaDataEvent 356 int32_t sensor; member in struct:ASensorEvent [all...] |
| /hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
| results_holder.c | 38 long geomag_compass_correction[4]; /**< quaternion going from accel quaternion to geomag sensor fusion */
49 struct inv_sensor_cal_t *sensor;
member in struct:results_t 447 * @param[in] sensor_cal New sensor data to process.
452 rh.sensor = sensor_cal;
|
| /cts/tests/sensor/src/android/hardware/cts/ |
| SensorTest.java | 26 import android.hardware.Sensor; 68 private Sensor mTriggerSensor; 69 private List<Sensor> mSensorList; 70 private List<Sensor> mAndroidSensorList; 82 mSensorList = mSensorManager.getSensorList(Sensor.TYPE_ALL); 91 for (Sensor s : mSensorList) { 92 if (s.getType() < Sensor.TYPE_DEVICE_PRIVATE_BASE) { 125 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER) local 287 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_SIGNIFICANT_MOTION); local 299 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local 403 Sensor sensor = null; local 439 Sensor sensor = null; local [all...] |
| SingleSensorTests.java | 20 import android.hardware.Sensor; 41 * For each sensor that reports continuously, it takes a set of samples. The test suite verifies 42 * that the event ordering, frequency, and jitter pass for the collected sensor events. It 43 * additionally tests that the mean, standard deviation, and magnitude are correct for the sensor 46 * The event ordering test verifies the ordering of the sampled data reported by the Sensor under 47 * test. This test is used to guarantee that sensor data is reported in the order it occurs, and 51 * if the sensor sampled data is not timestamped at the hardware level. Or events sampled at high 54 * The frequency test verifies that the sensor under test can sample and report data at the maximum 57 * susceptible to errors if the sensor is not capable to sample data at the maximum rate it 58 * supports, or the sensor events are not timestamped at the hardware level 124 Sensor sensor = sensorManager.getDefaultSensor(entry.getKey()); local [all...] |
| /hardware/interfaces/sensors/1.0/vts/functional/ |
| VtsHalSensorsV1_0TargetTest.cpp | 24 #include <hardware/sensors.h> // for sensor type strings 67 // set sensor event collection status 99 // In case framework just stopped for test and there is sensor events in the pipe, 147 // stop each sensor individually 148 step = "stop each sensor"; 413 constexpr size_t kMaxSize = 128*1024*1024; // sensor test should not need more than 128M 578 static bool isDirectReportRateSupported(SensorInfo sensor, RateLevel rate); 579 static bool isDirectChannelTypeSupported(SensorInfo sensor, SharedMemType type); 596 // If activating a sensor, add the handle in a set so that when test fails it can be turned off. 598 // check the return value of deactivation. Deactivating a sensor more than once does not hav 966 SensorInfo sensor = defaultSensorByType(type); local 1096 SensorInfo sensor = defaultSensorByType(type); local 1210 SensorInfo sensor = defaultSensorByType(type); local 1300 SensorInfo sensor = defaultSensorByType(type); local [all...] |
| /hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/ |
| stress_iio.c | 700 void get_sensor_data(char *d, short *sensor) 705 sensor[i] = *(short *)(d + 2 + i * 2); 712 short sensor[3]; local 790 get_sensor_data(dptr, sensor); 792 printf("PRESSURE:%d, %lld\n", (sensor[1] << 16) + (unsigned short)sensor[2], *(long long *)dptr); 798 get_sensor_data(dptr, sensor); 800 printf("A:%d, %d, %d, %lld\n", sensor[0], sensor[1], sensor[2], *(long long *)dptr) [all...] |
| /system/chre/platform/slpi/smgr/ |
| platform_sensor.cc | 32 #include "chre_api/chre/sensor.h" 34 #include "chre/core/sensor.h" 51 // As SMGR doesn't support passive sensor request, it's now implemented on the 56 // 1. A sensor status monitor is added in addSensorMonitor() to receive the 57 // SNS_SMGR_SENSOR_STATUS_MONITOR_IND_V02 message the first time a sensor is 65 // 2) If the request is allowed, a QMI request to add the sensor request is 66 // made. Otherwise, a QMI request to remove the sensor request is made to 69 // 3) The merged mode of a sensor is the strongest mode of all sensor 70 // requests of the same sensor ID, with active > passive > off 321 Sensor sensor; local 696 const Sensor *sensor = EventLoopManagerSingleton::get() local 1148 const Sensor *sensor = EventLoopManagerSingleton::get() local 1223 Sensor *sensor = EventLoopManagerSingleton::get()->getSensorRequestManager() local 1266 const Sensor *sensor = EventLoopManagerSingleton::get() local 1292 const Sensor *sensor = EventLoopManagerSingleton::get() local [all...] |
| /cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
| ItsService.java | 39 import android.hardware.Sensor; 199 public Sensor sensor; field in class:ItsService.MySensorEvent 205 // For capturing motion sensor traces. 207 private Sensor mAccelSensor = null; 208 private Sensor mMagSensor = null; 209 private Sensor mGyroSensor = null; 246 mAccelSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 247 mMagSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD); 248 mGyroSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE) [all...] |
| /device/google/contexthub/firmware/os/core/ |
| hostIntf.c | 99 // sensorType matching struct SensorInfo (because the sensor can have a 535 static void resetBuffer(struct ActiveSensor *sensor) 537 sensor->discard = true; 538 sensor->buffer.length = 0; 539 memset(&sensor->buffer.firstSample, 0x00, sizeof(struct SensorFirstSample)); 549 struct ActiveSensor *sensor = NULL; local 553 sensor = mActiveSensorTable + mSensorList[sensorType - 1]; 555 return sensor; 562 struct ActiveSensor *sensor; local 567 sensor = getActiveSensorByType(buffer->sensType) 636 struct ActiveSensor *sensor = getActiveSensorByType(buffer->sensType); local 1383 struct ActiveSensor *sensor = getActiveSensorByType(cmd->sensType); local 1543 struct ActiveSensor *sensor = getActiveSensorByType(evtType & 0xFF); local [all...] |
| /device/google/contexthub/sensorhal/ |
| hubconnection.cpp | 55 #define NANOHUB_LOCK_DIR "/data/vendor/sensor/nanohub_lock" 106 static bool isWakeEvent(int32_t sensor) 108 switch (sensor) { 281 // enable hall sensor for folio 315 // Set main thread to SCHED_FIFO to lower sensor event latency when system is under load 582 sensors_event_t *HubConnection::initEv(sensors_event_t *ev, uint64_t timestamp, uint32_t type, uint32_t sensor) 588 ev->sensor = sensor; 593 ssize_t HubConnection::decrementIfWakeEventLocked(int32_t sensor) 595 if (isWakeEvent(sensor)) { 1138 uint32_t type, sensor, bias, currSensor; local [all...] |
| /external/libxcam/modules/isp/ |
| aiq_handler.cpp | 270 /* 185 sensor code : DB = 160 : 48 */ 536 struct atomisp_exposure sensor; local 539 xcam_mem_clear (sensor); 540 sensor.integration_time[0] = _result.sensor_exp_param.coarse_integration_time; 541 sensor.integration_time[1] = _result.sensor_exp_param.fine_integration_time; 542 sensor.gain[0] = _result.sensor_exp_param.analog_gain_code_global; 543 sensor.gain[1] = _result.sensor_exp_param.digital_gain_global; 544 result->set_isp_config (sensor); [all...] |
| /frameworks/native/services/sensorservice/ |
| SensorService.cpp | 31 #include <sensor/SensorEventQueue.h> 67 * - what about a gyro-corrected magnetic-field sensor? 68 * - run mag sensor from time to time to force calibration 69 * - gravity sensor length is wrong (=> drift in linear-acc sensor) 104 ALOGW("Can't generate HMAC key; dynamic sensor getId() will be wrong."); 121 ALOGW("Unable to write HMAC key; dynamic sensor getId() will change " 129 // Set main thread to SCHED_FIFO to lower sensor event latency when system is under load 232 // counts for each sensor. 235 [&batchingSupported] (const Sensor& s) -> bool 894 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); local 903 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); local 993 Sensor sensor = initialSensorList[i]; local 1262 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); local 1443 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); local 1516 sp<SensorInterface> sensor = getSensorInterfaceFromHandle(handle); local [all...] |
| /hardware/libhardware/include/hardware/ |
| sensors.h | 44 * introduction to and detailed descriptions of Android sensor types: 59 * Sensor handle is greater than 0 and less than INT32_MAX. 62 * Defined values below are kept for code compatibility. Note sensor handle can be as large as 94 * See sensor types for more details on what sensors should require this 100 * sensor flags legacy names 110 * Mask and shift for reporting mode sensor flags defined above. 117 * Mask and shift for data_injection mode sensor flags defined above. 123 * Mask and shift for dynamic sensor flag. 129 * Mask and shift for sensor additional information support. 137 * Previously, the type of a sensor measuring local magnetic field is name 252 int32_t sensor; member in struct:meta_data_event 262 const struct sensor_t * sensor; \/\/ should be NULL if connected == false member in struct:dynamic_sensor_meta_event 302 int32_t sensor; member in struct:sensors_event_t [all...] |
| /packages/apps/Dialer/java/com/android/incallui/ |
| InCallActivity.java | 780 ProximitySensor sensor = InCallPresenter.getInstance().getProximitySensor(); local 781 if (sensor != null) { 782 sensor.onDialpadVisible(show); [all...] |
| /device/google/contexthub/firmware/os/drivers/st_lsm6dsm/ |
| st_lsm6dsm.c | 94 #define LSM6DSM_ONE_SAMPLE_BYTE 6 /* One sample of triaxial sensor is expressed on 6 byte */ 95 #define LSM6DSM_TEMP_SAMPLE_BYTE 2 /* One sample of temperature sensor is expressed on 2 byte */ 104 #define LSM6DSM_SYNC_DELTA_INTERVAL 100000000ULL /* Sensor timestamp is synced with MCU every #n deltatime [ns] */ 378 /* LSM6DSM_CTRL1_XL_BASE: accelerometer sensor register default settings */ 388 /* LSM6DSM_CTRL2_G_BASE: gyroscope sensor register default settings */ 4433 struct LSM6DSMSensor *sensor; local [all...] |
| /frameworks/base/core/java/com/android/internal/os/ |
| BatteryStatsImpl.java | 8281 Uid.Sensor sensor = mSensorStats.valueAt(ise); local 8584 Uid.Sensor sensor = new Sensor(mBsi, this, sensorNumber); local [all...] |
| /prebuilts/misc/common/robolectric/3.1.1/lib/ |
| shadows-core-v23-3.1.1.jar | |