Searched refs:nativeSensor (Results 1 – 1 of 1) sorted by relevance
/frameworks/base/core/jni/ |
D | android_hardware_SensorManager.cpp | 154 translateNativeSensorToJavaSensor(JNIEnv *env, jobject sensor, const Sensor& nativeSensor) { in translateNativeSensorToJavaSensor() argument 163 jstring name = getJavaInternedString(env, nativeSensor.getName()); in translateNativeSensorToJavaSensor() 164 jstring vendor = getJavaInternedString(env, nativeSensor.getVendor()); in translateNativeSensorToJavaSensor() 166 getJavaInternedString(env, nativeSensor.getRequiredPermission()); in translateNativeSensorToJavaSensor() 170 env->SetIntField(sensor, sensorOffsets.version, nativeSensor.getVersion()); in translateNativeSensorToJavaSensor() 171 env->SetIntField(sensor, sensorOffsets.handle, nativeSensor.getHandle()); in translateNativeSensorToJavaSensor() 172 env->SetFloatField(sensor, sensorOffsets.range, nativeSensor.getMaxValue()); in translateNativeSensorToJavaSensor() 173 env->SetFloatField(sensor, sensorOffsets.resolution, nativeSensor.getResolution()); in translateNativeSensorToJavaSensor() 174 env->SetFloatField(sensor, sensorOffsets.power, nativeSensor.getPowerUsage()); in translateNativeSensorToJavaSensor() 175 env->SetIntField(sensor, sensorOffsets.minDelay, nativeSensor.getMinDelay()); in translateNativeSensorToJavaSensor() [all …]
|