Classes | Public Member Functions | Package Functions | Package Attributes
asc.tool.screencontroller.ScreenControllerService Class Reference
Inheritance diagram for asc.tool.screencontroller.ScreenControllerService:
Inheritance graph
[legend]

List of all members.

Classes

class  Orient
class  Screen

Public Member Functions

IBinder onBind (Intent intent)
void onCreate ()
void onDestroy ()

Package Functions

LayoutParams newGhostLayout ()

Package Attributes

ScreenControllerService _this = this
Runnable action_startForeground
Runnable action_stopForeground
ArrayList< LocalSocket > conAry = new ArrayList<LocalSocket>()
boolean debug
int foreground_count = 0
KeyguardManager keyguardManager
Handler mainthreadAccessor
PowerManager powerManager
BroadcastReceiver stateReceiver
String tag = "ASC"
WindowManager wm

Detailed Description

Definition at line 28 of file ScreenControllerService.java.


Member Function Documentation

Definition at line 263 of file ScreenControllerService.java.

IBinder asc.tool.screencontroller.ScreenControllerService.onBind ( Intent  intent) [inline]

Definition at line 143 of file ScreenControllerService.java.

Definition at line 39 of file ScreenControllerService.java.

Definition at line 137 of file ScreenControllerService.java.


Member Data Documentation

Definition at line 30 of file ScreenControllerService.java.

Initial value:
 new Runnable() {
                public void run() {
                        if (foreground_count == 0) {
                                startForeground(Process.myPid(), new Notification());
                        }
                        foreground_count++;
                }
        }

Definition at line 275 of file ScreenControllerService.java.

Initial value:
 new Runnable() {
                public void run() {
                        foreground_count--;
                        if (foreground_count <= 0) {
                                foreground_count = 0;
                                stopForeground(true);
                        }
                }
        }

Definition at line 284 of file ScreenControllerService.java.

ArrayList<LocalSocket> asc.tool.screencontroller.ScreenControllerService.conAry = new ArrayList<LocalSocket>() [package]

Definition at line 36 of file ScreenControllerService.java.

Definition at line 35 of file ScreenControllerService.java.

Definition at line 274 of file ScreenControllerService.java.

Definition at line 34 of file ScreenControllerService.java.

Definition at line 31 of file ScreenControllerService.java.

Definition at line 33 of file ScreenControllerService.java.

Initial value:
 new BroadcastReceiver() {
                byte[] on = "screen:on\n".getBytes();
                byte[] off = "screen:off\n".getBytes();

                public void onReceive(Context context, Intent intent) {
                        if (intent == null || intent.getAction() == null)
                                return;
                        if (Intent.ACTION_SCREEN_OFF.equals(intent.getAction())) {
                                notifyClient(off);
                        } else if (Intent.ACTION_SCREEN_ON.equals(intent.getAction())) {
                                notifyClient(on);
                        }
                }

                void notifyClient(byte[] buf) {
                        synchronized (conAry) {
                                for (LocalSocket con : conAry) {
                                        try {
                                                con.getOutputStream().write(buf);
                                        } catch (IOException e) {
                                                e.printStackTrace();
                                        }
                                }
                        }
                }
        }

Definition at line 294 of file ScreenControllerService.java.

Definition at line 29 of file ScreenControllerService.java.

Definition at line 32 of file ScreenControllerService.java.


The documentation for this class was generated from the following file:


dji_ronin
Author(s):
autogenerated on Sat Jun 8 2019 20:15:32