title: Is it possible to set different brightness level to each part of screen/activity?
body: <p>I know how to change brightness of entire window:</p>
  
  <pre><code>float brightness = 255;
  brightness = brightness / (float) 255;
  WindowManager.LayoutParams lp = getWindow().getAttributes();
  lp.screenBrightness = brightness;
  getWindow().setAttributes(lp);
  </code></pre>
  
  <p>but is it possible to set brightness to different parts of the screen?</p>
  
  <p>I want reach something like this:</p>
  
  <p><img src="https://i.stack.imgur.com/UkNVi.png" alt="img"></p>
  
  <p>or this:</p>
  
  <p><img src="https://i.stack.imgur.com/lVuc3.jpg" alt="enter image description here"></p>