diff options
| author | Bernardo Rufino <brufino@google.com> | 2021-02-01 09:55:38 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2021-02-01 09:55:38 +0000 |
| commit | bf1903d27712f1ce385b0defe332c2f96dc4cc53 (patch) | |
| tree | 908e087472b4a2ef2d11e6ee55b004d71d8e288c /core/java/android/view/WindowManager.java | |
| parent | bd3f6c2c1aaa43f900fb5d524a3007b4818ffaba (diff) | |
| parent | 03ec50d5283b7517a054687505d749ac8d787335 (diff) | |
Merge "Open IM.getMaximumObscuringOpacityForTouch() and update docs." into sc-dev
Diffstat (limited to 'core/java/android/view/WindowManager.java')
| -rw-r--r-- | core/java/android/view/WindowManager.java | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/core/java/android/view/WindowManager.java b/core/java/android/view/WindowManager.java index 7faa222dd51f..fa471fa28c7f 100644 --- a/core/java/android/view/WindowManager.java +++ b/core/java/android/view/WindowManager.java @@ -1555,17 +1555,26 @@ public interface WindowManager extends ViewManager { * <li><b>Fully transparent windows</b>: This window has {@link LayoutParams#alpha} equal * to 0. * <li><b>One SAW window with enough transparency</b>: This window is of type {@link - * #TYPE_APPLICATION_OVERLAY}, has {@link LayoutParams#alpha} below or equal to <b>0.8</b> - * and it's the <b>only</b> window of type {@link #TYPE_APPLICATION_OVERLAY} from this UID - * in the touch path. + * #TYPE_APPLICATION_OVERLAY}, has {@link LayoutParams#alpha} below or equal to the + * <a href="#MaximumOpacity">maximum obscuring opacity</a> (see below) and it's the + * <b>only</b> window of type {@link #TYPE_APPLICATION_OVERLAY} from this UID in the touch + * path. * <li><b>Multiple SAW windows with enough transparency</b>: The multiple overlapping * {@link #TYPE_APPLICATION_OVERLAY} windows in the * touch path from this UID have a <b>combined obscuring opacity</b> below or equal to - * <b>0.8</b>. See section below on how to compute this value. + * the <a href="#MaximumOpacity">maximum obscuring opacity</a>. See section + * <a href="#ObscuringOpacity">Combined obscuring opacity</a> below on how to compute this + * value. * </ol> * <p>If none of these cases hold, the touch will not be delivered and a message will be * logged to logcat.</p> * + * <a name="MaximumOpacity"></a> + * <h3>Maximum obscuring opacity</h3> + * <p>This value is <b>0.8</b>. Apps that want to gather this value from the system rather + * than hard-coding it might want to use {@link + * android.hardware.input.InputManager#getMaximumObscuringOpacityForTouch()}.</p> + * * <a name="ObscuringOpacity"></a> * <h3>Combined obscuring opacity</h3> * |
