Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_hardware_SensorManager.cpp165 translateNativeSensorToJavaSensor(JNIEnv *env, jobject sensor, const Sensor& nativeSensor) { in translateNativeSensorToJavaSensor() argument
174 jstring name = env->NewStringUTF(nativeSensor.getName().string()); in translateNativeSensorToJavaSensor()
175 jstring vendor = env->NewStringUTF(nativeSensor.getVendor().string()); in translateNativeSensorToJavaSensor()
177 env->NewStringUTF(nativeSensor.getRequiredPermission().string()); in translateNativeSensorToJavaSensor()
181 env->SetIntField(sensor, sensorOffsets.version, nativeSensor.getVersion()); in translateNativeSensorToJavaSensor()
182 env->SetIntField(sensor, sensorOffsets.handle, nativeSensor.getHandle()); in translateNativeSensorToJavaSensor()
183 env->SetFloatField(sensor, sensorOffsets.range, nativeSensor.getMaxValue()); in translateNativeSensorToJavaSensor()
184 env->SetFloatField(sensor, sensorOffsets.resolution, nativeSensor.getResolution()); in translateNativeSensorToJavaSensor()
185 env->SetFloatField(sensor, sensorOffsets.power, nativeSensor.getPowerUsage()); in translateNativeSensorToJavaSensor()
186 env->SetIntField(sensor, sensorOffsets.minDelay, nativeSensor.getMinDelay()); in translateNativeSensorToJavaSensor()
[all …]