Lines Matching defs:env

142 static jlong android_view_VelocityTracker_nativeInitialize(JNIEnv* env, jclass clazz,
145 ScopedUtfChars strategy(env, strategyStr);
151 static void android_view_VelocityTracker_nativeDispose(JNIEnv* env, jclass clazz, jlong ptr) {
156 static void android_view_VelocityTracker_nativeClear(JNIEnv* env, jclass clazz, jlong ptr) {
161 static void android_view_VelocityTracker_nativeAddMovement(JNIEnv* env, jclass clazz, jlong ptr,
163 const MotionEvent* event = android_view_MotionEvent_getNativePtr(env, eventObj);
173 static void android_view_VelocityTracker_nativeComputeCurrentVelocity(JNIEnv* env, jclass clazz,
179 static jfloat android_view_VelocityTracker_nativeGetXVelocity(JNIEnv* env, jclass clazz,
187 static jfloat android_view_VelocityTracker_nativeGetYVelocity(JNIEnv* env, jclass clazz,
195 static jboolean android_view_VelocityTracker_nativeGetEstimator(JNIEnv* env, jclass clazz,
201 jfloatArray xCoeffObj = jfloatArray(env->GetObjectField(outEstimatorObj,
203 jfloatArray yCoeffObj = jfloatArray(env->GetObjectField(outEstimatorObj,
206 env->SetFloatArrayRegion(xCoeffObj, 0, VelocityTracker::Estimator::MAX_DEGREE + 1,
208 env->SetFloatArrayRegion(yCoeffObj, 0, VelocityTracker::Estimator::MAX_DEGREE + 1,
210 env->SetIntField(outEstimatorObj, gEstimatorClassInfo.degree, estimator.degree);
211 env->SetFloatField(outEstimatorObj, gEstimatorClassInfo.confidence, estimator.confidence);
246 int register_android_view_VelocityTracker(JNIEnv* env) {
247 int res = RegisterMethodsOrDie(env, "android/view/VelocityTracker", gVelocityTrackerMethods,
250 jclass clazz = FindClassOrDie(env, "android/view/VelocityTracker$Estimator");
252 gEstimatorClassInfo.xCoeff = GetFieldIDOrDie(env, clazz, "xCoeff", "[F");
253 gEstimatorClassInfo.yCoeff = GetFieldIDOrDie(env, clazz, "yCoeff", "[F");
254 gEstimatorClassInfo.degree = GetFieldIDOrDie(env, clazz, "degree", "I");
255 gEstimatorClassInfo.confidence = GetFieldIDOrDie(env, clazz, "confidence", "F");