public void setBlurMaskSurface(SurfaceControl maskSurface) { checkNotReleased(); if (maskSurface != null) { maskSurface.checkNotReleased(); } nativeSetBlurMaskSurface(mNativeObject, maskSurface == null ? 0 : maskSurface.mNativeObject); }
public void setTransparent(boolean isTransparent) { checkNotReleased(); if (isTransparent) { nativeSetFlags(mNativeObject, SURFACE_TRANSPARENT, SURFACE_TRANSPARENT); } else { nativeSetFlags(mNativeObject, 0, SURFACE_TRANSPARENT); } }
/** * Sets the opacity of the surface. Setting the flag is equivalent to creating the Surface with * the {@link #OPAQUE} flag. */ public void setOpaque(boolean isOpaque) { checkNotReleased(); if (isOpaque) { nativeSetFlags(mNativeObject, SURFACE_OPAQUE, SURFACE_OPAQUE); } else { nativeSetFlags(mNativeObject, 0, SURFACE_OPAQUE); } }
public void setWindowCrop(Rect crop) { checkNotReleased(); if (crop != null) { nativeSetWindowCrop(mNativeObject, crop.left, crop.top, crop.right, crop.bottom); } else { nativeSetWindowCrop(mNativeObject, 0, 0, 0, 0); } }
public void setLayer(int zorder) { checkNotReleased(); nativeSetLayer(mNativeObject, zorder); }
public void setLayerStack(int layerStack) { checkNotReleased(); nativeSetLayerStack(mNativeObject, layerStack); }
public void setMatrix(float dsdx, float dtdx, float dsdy, float dtdy) { checkNotReleased(); nativeSetMatrix(mNativeObject, dsdx, dtdx, dsdy, dtdy); }
public boolean getContentFrameStats(WindowContentFrameStats outStats) { checkNotReleased(); return nativeGetContentFrameStats(mNativeObject, outStats); }
/** * Sets an alpha value for the entire Surface. This value is combined with the per-pixel alpha. It * may be used with opaque Surfaces. */ public void setAlpha(float alpha) { checkNotReleased(); nativeSetAlpha(mNativeObject, alpha); }
public void setTransparentRegionHint(Region region) { checkNotReleased(); nativeSetTransparentRegionHint(mNativeObject, region); }
public boolean clearContentFrameStats() { checkNotReleased(); return nativeClearContentFrameStats(mNativeObject); }
public void show() { checkNotReleased(); nativeSetFlags(mNativeObject, 0, SURFACE_HIDDEN); }
public void setPosition(float x, float y) { checkNotReleased(); nativeSetPosition(mNativeObject, x, y); }
public void hide() { checkNotReleased(); nativeSetFlags(mNativeObject, SURFACE_HIDDEN, SURFACE_HIDDEN); }
public void setBlurMaskAlphaThreshold(float alpha) { checkNotReleased(); nativeSetBlurMaskAlphaThreshold(mNativeObject, alpha); }
public void setBlurMaskSampling(int blurMaskSampling) { checkNotReleased(); nativeSetBlurMaskSampling(mNativeObject, blurMaskSampling); }
public void setSize(int w, int h) { checkNotReleased(); nativeSetSize(mNativeObject, w, h); }
public void setBlur(float blur) { checkNotReleased(); nativeSetBlur(mNativeObject, blur); }