Home
last modified time | relevance | path

Searched refs:sensorInfo (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/hardware/
DSensor.java937 public Sensor(InputSensorInfo sensorInfo) { in Sensor() argument
938 this.mName = sensorInfo.getName(); in Sensor()
939 this.mVendor = sensorInfo.getVendor(); in Sensor()
940 this.mVersion = sensorInfo.getVersion(); in Sensor()
941 this.mHandle = sensorInfo.getHandle(); in Sensor()
942 this.mType = sensorInfo.getType(); in Sensor()
943 this.mMaxRange = sensorInfo.getMaxRange(); in Sensor()
944 this.mResolution = sensorInfo.getResolution(); in Sensor()
945 this.mPower = sensorInfo.getPower(); in Sensor()
946 this.mMinDelay = sensorInfo.getMinDelay(); in Sensor()
[all …]
/frameworks/native/services/inputflinger/reader/mapper/
DSensorInputMapper.cpp85 info->addSensorInfo(sensor.sensorInfo); in populateDeviceInfo()
101 dump += StringPrintf(INDENT5 "maxRange: %f\n", sensor.sensorInfo.maxRange); in dump()
102 dump += StringPrintf(INDENT5 "power: %f\n", sensor.sensorInfo.power); in dump()
205 InputDeviceSensorInfo sensorInfo(identifier.name, std::to_string(identifier.vendor), in createSensor() local
219 sensorInfo.flags |= (reportingMode & REPORTING_MODE_MASK) << REPORTING_MODE_SHIFT; in createSensor()
222 tryGetProperty(prefix + ".maxDelay", sensorInfo.maxDelay); in createSensor()
224 tryGetProperty(prefix + ".minDelay", sensorInfo.minDelay); in createSensor()
226 tryGetProperty(prefix + ".power", sensorInfo.power); in createSensor()
228 tryGetProperty(prefix + ".fifoReservedEventCount", sensorInfo.fifoReservedEventCount); in createSensor()
230 tryGetProperty(prefix + ".fifoMaxEventCount", sensorInfo.fifoMaxEventCount); in createSensor()
[all …]
DSensorInputMapper.h83 explicit Sensor(const InputDeviceSensorInfo& sensorInfo) : sensorInfo(sensorInfo) { in Sensor()
92 InputDeviceSensorInfo sensorInfo; member
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputManagerService.cpp2188 jobject sensorInfo = env->NewObject(gInputSensorInfo.clazz, gInputSensorInfo.init, ""); in createInputSensorInfo() local
2190 if (sensorInfo != NULL) { in createInputSensorInfo()
2191 env->SetObjectField(sensorInfo, gInputSensorInfo.name, name); in createInputSensorInfo()
2192 env->SetObjectField(sensorInfo, gInputSensorInfo.vendor, vendor); in createInputSensorInfo()
2193 env->SetIntField(sensorInfo, gInputSensorInfo.version, version); in createInputSensorInfo()
2194 env->SetIntField(sensorInfo, gInputSensorInfo.handle, handle); in createInputSensorInfo()
2195 env->SetFloatField(sensorInfo, gInputSensorInfo.maxRange, maxRange); in createInputSensorInfo()
2196 env->SetFloatField(sensorInfo, gInputSensorInfo.resolution, resolution); in createInputSensorInfo()
2197 env->SetFloatField(sensorInfo, gInputSensorInfo.power, power); in createInputSensorInfo()
2198 env->SetIntField(sensorInfo, gInputSensorInfo.minDelay, minDelay); in createInputSensorInfo()
[all …]