Delphi changes Android brightness

When the screen turns black, it is usually impossible to read the application that reads the barcode displayed on the terminal.
In this case, a method of increasing the brightness of the application side device is performed.
Use WindowManager.Layoutparams to control the brightness in Delphi.
Sample code
Place a button on the form
Press the button to maximize brightness.
Press again to minimize brightness.
Describe the process. (Confirmed with Nexus 5 (Android 5.1.1))