Lines Matching defs:displayToken

40     private static native Bitmap nativeScreenshot(IBinder displayToken,
43 private static native void nativeScreenshot(IBinder displayToken, Surface consumer,
68 private static native void nativeDestroyDisplay(IBinder displayToken);
70 IBinder displayToken, long nativeSurfaceObject);
72 IBinder displayToken, int layerStack);
74 IBinder displayToken, int orientation,
77 private static native void nativeSetDisplaySize(IBinder displayToken, int width, int height);
79 IBinder displayToken);
80 private static native int nativeGetActiveConfig(IBinder displayToken);
81 private static native boolean nativeSetActiveConfig(IBinder displayToken, int id);
83 IBinder displayToken, int mode);
527 public static void setDisplayPowerMode(IBinder displayToken, int mode) {
528 if (displayToken == null) {
529 throw new IllegalArgumentException("displayToken must not be null");
531 nativeSetDisplayPowerMode(displayToken, mode);
534 public static SurfaceControl.PhysicalDisplayInfo[] getDisplayConfigs(IBinder displayToken) {
535 if (displayToken == null) {
536 throw new IllegalArgumentException("displayToken must not be null");
538 return nativeGetDisplayConfigs(displayToken);
541 public static int getActiveConfig(IBinder displayToken) {
542 if (displayToken == null) {
543 throw new IllegalArgumentException("displayToken must not be null");
545 return nativeGetActiveConfig(displayToken);
548 public static boolean setActiveConfig(IBinder displayToken, int id) {
549 if (displayToken == null) {
550 throw new IllegalArgumentException("displayToken must not be null");
552 return nativeSetActiveConfig(displayToken, id);
555 public static void setDisplayProjection(IBinder displayToken,
557 if (displayToken == null) {
558 throw new IllegalArgumentException("displayToken must not be null");
566 nativeSetDisplayProjection(displayToken, orientation,
571 public static void setDisplayLayerStack(IBinder displayToken, int layerStack) {
572 if (displayToken == null) {
573 throw new IllegalArgumentException("displayToken must not be null");
575 nativeSetDisplayLayerStack(displayToken, layerStack);
578 public static void setDisplaySurface(IBinder displayToken, Surface surface) {
579 if (displayToken == null) {
580 throw new IllegalArgumentException("displayToken must not be null");
585 nativeSetDisplaySurface(displayToken, surface.mNativeObject);
588 nativeSetDisplaySurface(displayToken, 0);
592 public static void setDisplaySize(IBinder displayToken, int width, int height) {
593 if (displayToken == null) {
594 throw new IllegalArgumentException("displayToken must not be null");
600 nativeSetDisplaySize(displayToken, width, height);
610 public static void destroyDisplay(IBinder displayToken) {
611 if (displayToken == null) {
612 throw new IllegalArgumentException("displayToken must not be null");
614 nativeDestroyDisplay(displayToken);
704 IBinder displayToken = SurfaceControl.getBuiltInDisplay(
706 return nativeScreenshot(displayToken, sourceCrop, width, height,
724 IBinder displayToken = SurfaceControl.getBuiltInDisplay(
726 return nativeScreenshot(displayToken, new Rect(), width, height, 0, 0, true,
734 throw new IllegalArgumentException("displayToken must not be null");