Loading core/java/android/view/SurfaceControl.java +9 −0 Original line number Diff line number Diff line Loading @@ -167,6 +167,7 @@ public class SurfaceControl implements Parcelable { InputWindowHandle handle); private static native void nativeTransferTouchFocus(long transactionObj, IBinder fromToken, IBinder toToken); private static native boolean nativeGetProtectedContentSupport(); private final CloseGuard mCloseGuard = CloseGuard.get(); private String mName; Loading Loading @@ -1729,6 +1730,14 @@ public class SurfaceControl implements Parcelable { return nativeCaptureLayers(layerHandleToken, sourceCrop, frameScale); } /** * Returns whether protected content is supported in GPU composition. * @hide */ public static boolean getProtectedContentSupport() { return nativeGetProtectedContentSupport(); } /** * @hide */ Loading core/jni/android_view_SurfaceControl.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -660,6 +660,10 @@ static void nativeSetDisplayPowerMode(JNIEnv* env, jclass clazz, jobject tokenOb if (t.duration() > 100ms) ALOGD("Excessive delay in setPowerMode()"); } static jboolean nativeGetProtectedContentSupport(JNIEnv* env, jclass) { return static_cast<jboolean>(SurfaceComposerClient::getProtectedContentSupport()); } static jboolean nativeClearContentFrameStats(JNIEnv* env, jclass clazz, jlong nativeObject) { SurfaceControl* const ctrl = reinterpret_cast<SurfaceControl *>(nativeObject); status_t err = ctrl->clearLayerFrameStats(); Loading Loading @@ -1028,6 +1032,8 @@ static const JNINativeMethod sSurfaceControlMethods[] = { (void*)nativeGetAnimationFrameStats }, {"nativeSetDisplayPowerMode", "(Landroid/os/IBinder;I)V", (void*)nativeSetDisplayPowerMode }, {"nativeGetProtectedContentSupport", "()Z", (void*)nativeGetProtectedContentSupport }, {"nativeDeferTransactionUntil", "(JJLandroid/os/IBinder;J)V", (void*)nativeDeferTransactionUntil }, {"nativeDeferTransactionUntilSurface", "(JJJJ)V", Loading Loading
core/java/android/view/SurfaceControl.java +9 −0 Original line number Diff line number Diff line Loading @@ -167,6 +167,7 @@ public class SurfaceControl implements Parcelable { InputWindowHandle handle); private static native void nativeTransferTouchFocus(long transactionObj, IBinder fromToken, IBinder toToken); private static native boolean nativeGetProtectedContentSupport(); private final CloseGuard mCloseGuard = CloseGuard.get(); private String mName; Loading Loading @@ -1729,6 +1730,14 @@ public class SurfaceControl implements Parcelable { return nativeCaptureLayers(layerHandleToken, sourceCrop, frameScale); } /** * Returns whether protected content is supported in GPU composition. * @hide */ public static boolean getProtectedContentSupport() { return nativeGetProtectedContentSupport(); } /** * @hide */ Loading
core/jni/android_view_SurfaceControl.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -660,6 +660,10 @@ static void nativeSetDisplayPowerMode(JNIEnv* env, jclass clazz, jobject tokenOb if (t.duration() > 100ms) ALOGD("Excessive delay in setPowerMode()"); } static jboolean nativeGetProtectedContentSupport(JNIEnv* env, jclass) { return static_cast<jboolean>(SurfaceComposerClient::getProtectedContentSupport()); } static jboolean nativeClearContentFrameStats(JNIEnv* env, jclass clazz, jlong nativeObject) { SurfaceControl* const ctrl = reinterpret_cast<SurfaceControl *>(nativeObject); status_t err = ctrl->clearLayerFrameStats(); Loading Loading @@ -1028,6 +1032,8 @@ static const JNINativeMethod sSurfaceControlMethods[] = { (void*)nativeGetAnimationFrameStats }, {"nativeSetDisplayPowerMode", "(Landroid/os/IBinder;I)V", (void*)nativeSetDisplayPowerMode }, {"nativeGetProtectedContentSupport", "()Z", (void*)nativeGetProtectedContentSupport }, {"nativeDeferTransactionUntil", "(JJLandroid/os/IBinder;J)V", (void*)nativeDeferTransactionUntil }, {"nativeDeferTransactionUntilSurface", "(JJJJ)V", Loading