Lines Matching refs:env

141 static jint android_view_VelocityTracker_nativeInitialize(JNIEnv* env, jclass clazz,
144 ScopedUtfChars strategy(env, strategyStr);
150 static void android_view_VelocityTracker_nativeDispose(JNIEnv* env, jclass clazz, jint ptr) {
155 static void android_view_VelocityTracker_nativeClear(JNIEnv* env, jclass clazz, jint ptr) {
160 static void android_view_VelocityTracker_nativeAddMovement(JNIEnv* env, jclass clazz, jint ptr,
162 const MotionEvent* event = android_view_MotionEvent_getNativePtr(env, eventObj);
172 static void android_view_VelocityTracker_nativeComputeCurrentVelocity(JNIEnv* env, jclass clazz,
178 static jfloat android_view_VelocityTracker_nativeGetXVelocity(JNIEnv* env, jclass clazz,
186 static jfloat android_view_VelocityTracker_nativeGetYVelocity(JNIEnv* env, jclass clazz,
194 static jboolean android_view_VelocityTracker_nativeGetEstimator(JNIEnv* env, jclass clazz,
200 jfloatArray xCoeffObj = jfloatArray(env->GetObjectField(outEstimatorObj,
202 jfloatArray yCoeffObj = jfloatArray(env->GetObjectField(outEstimatorObj,
205 env->SetFloatArrayRegion(xCoeffObj, 0, VelocityTracker::Estimator::MAX_DEGREE + 1,
207 env->SetFloatArrayRegion(yCoeffObj, 0, VelocityTracker::Estimator::MAX_DEGREE + 1,
209 env->SetIntField(outEstimatorObj, gEstimatorClassInfo.degree, estimator.degree);
210 env->SetFloatField(outEstimatorObj, gEstimatorClassInfo.confidence, estimator.confidence);
246 var = env->FindClass(className); \
250 var = env->GetFieldID(clazz, fieldName, fieldDescriptor); \
253 int register_android_view_VelocityTracker(JNIEnv* env) {
254 int res = jniRegisterNativeMethods(env, "android/view/VelocityTracker",