Loading core/java/android/view/Surface.java +1 −2 Original line number Original line Diff line number Diff line Loading @@ -233,7 +233,6 @@ public class Surface implements Parcelable { private native void nativeDestroy(); private native void nativeDestroy(); private native boolean nativeIsValid(); private native boolean nativeIsValid(); private native int nativeGetIdentity(); private native boolean nativeIsConsumerRunningBehind(); private native boolean nativeIsConsumerRunningBehind(); private native Canvas nativeLockCanvas(Rect dirty); private native Canvas nativeLockCanvas(Rect dirty); Loading Loading @@ -725,7 +724,7 @@ public class Surface implements Parcelable { @Override @Override public String toString() { public String toString() { return "Surface(name=" + mName + ", identity=" + nativeGetIdentity() + ")"; return "Surface(name=" + mName + ")"; } } private static void checkHeadless() { private static void checkHeadless() { Loading core/jni/android_view_Surface.cpp +0 −16 Original line number Original line Diff line number Diff line Loading @@ -336,20 +336,6 @@ static jboolean nativeIsValid(JNIEnv* env, jobject surfaceObj) { return Surface::isValid(surface) ? JNI_TRUE : JNI_FALSE; return Surface::isValid(surface) ? JNI_TRUE : JNI_FALSE; } } static jint nativeGetIdentity(JNIEnv* env, jobject surfaceObj) { sp<SurfaceControl> control(getSurfaceControl(env, surfaceObj)); if (control != NULL) { return jint(control->getIdentity()); } sp<Surface> surface(getSurface(env, surfaceObj)); if (surface != NULL) { return jint(surface->getIdentity()); } return -1; } static jboolean nativeIsConsumerRunningBehind(JNIEnv* env, jobject surfaceObj) { static jboolean nativeIsConsumerRunningBehind(JNIEnv* env, jobject surfaceObj) { sp<Surface> surface(getSurface(env, surfaceObj)); sp<Surface> surface(getSurface(env, surfaceObj)); if (!Surface::isValid(surface)) { if (!Surface::isValid(surface)) { Loading Loading @@ -820,8 +806,6 @@ static JNINativeMethod gSurfaceMethods[] = { (void*)nativeDestroy }, (void*)nativeDestroy }, {"nativeIsValid", "()Z", {"nativeIsValid", "()Z", (void*)nativeIsValid }, (void*)nativeIsValid }, {"nativeGetIdentity", "()I", (void*)nativeGetIdentity }, {"nativeIsConsumerRunningBehind", "()Z", {"nativeIsConsumerRunningBehind", "()Z", (void*)nativeIsConsumerRunningBehind }, (void*)nativeIsConsumerRunningBehind }, {"nativeLockCanvas", "(Landroid/graphics/Rect;)Landroid/graphics/Canvas;", {"nativeLockCanvas", "(Landroid/graphics/Rect;)Landroid/graphics/Canvas;", Loading Loading
core/java/android/view/Surface.java +1 −2 Original line number Original line Diff line number Diff line Loading @@ -233,7 +233,6 @@ public class Surface implements Parcelable { private native void nativeDestroy(); private native void nativeDestroy(); private native boolean nativeIsValid(); private native boolean nativeIsValid(); private native int nativeGetIdentity(); private native boolean nativeIsConsumerRunningBehind(); private native boolean nativeIsConsumerRunningBehind(); private native Canvas nativeLockCanvas(Rect dirty); private native Canvas nativeLockCanvas(Rect dirty); Loading Loading @@ -725,7 +724,7 @@ public class Surface implements Parcelable { @Override @Override public String toString() { public String toString() { return "Surface(name=" + mName + ", identity=" + nativeGetIdentity() + ")"; return "Surface(name=" + mName + ")"; } } private static void checkHeadless() { private static void checkHeadless() { Loading
core/jni/android_view_Surface.cpp +0 −16 Original line number Original line Diff line number Diff line Loading @@ -336,20 +336,6 @@ static jboolean nativeIsValid(JNIEnv* env, jobject surfaceObj) { return Surface::isValid(surface) ? JNI_TRUE : JNI_FALSE; return Surface::isValid(surface) ? JNI_TRUE : JNI_FALSE; } } static jint nativeGetIdentity(JNIEnv* env, jobject surfaceObj) { sp<SurfaceControl> control(getSurfaceControl(env, surfaceObj)); if (control != NULL) { return jint(control->getIdentity()); } sp<Surface> surface(getSurface(env, surfaceObj)); if (surface != NULL) { return jint(surface->getIdentity()); } return -1; } static jboolean nativeIsConsumerRunningBehind(JNIEnv* env, jobject surfaceObj) { static jboolean nativeIsConsumerRunningBehind(JNIEnv* env, jobject surfaceObj) { sp<Surface> surface(getSurface(env, surfaceObj)); sp<Surface> surface(getSurface(env, surfaceObj)); if (!Surface::isValid(surface)) { if (!Surface::isValid(surface)) { Loading Loading @@ -820,8 +806,6 @@ static JNINativeMethod gSurfaceMethods[] = { (void*)nativeDestroy }, (void*)nativeDestroy }, {"nativeIsValid", "()Z", {"nativeIsValid", "()Z", (void*)nativeIsValid }, (void*)nativeIsValid }, {"nativeGetIdentity", "()I", (void*)nativeGetIdentity }, {"nativeIsConsumerRunningBehind", "()Z", {"nativeIsConsumerRunningBehind", "()Z", (void*)nativeIsConsumerRunningBehind }, (void*)nativeIsConsumerRunningBehind }, {"nativeLockCanvas", "(Landroid/graphics/Rect;)Landroid/graphics/Canvas;", {"nativeLockCanvas", "(Landroid/graphics/Rect;)Landroid/graphics/Canvas;", Loading