In 10.0 native shutdown interface UI is displayed on the right, but customer requirements require full-screen display restart and shutdown function keys to be displayed in the center, so it involves adjusting the UI and then full-screen display. It is
preferred to implement the full-screen function
GlobalActionsDialog.java is the shutdown interface that pops up by long pressing power.
Path:
frameworks / base / packages / SystemUI / src / com / android / systemui / globalactions / GlobalActionsDialog.java
ActionsDialog(Context context, MyAdapter adapter,
GlobalActionsPanelPlugin.PanelViewController plugin) {
super(context, com.android.systemui.R.style.Theme_SystemUI_Dialog_GlobalActions);
mContext = context;
mAdapter = adapter