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 |
Definition at line 28 of file ScreenControllerService.java.
LayoutParams asc.tool.screencontroller.ScreenControllerService.newGhostLayout | ( | ) | [inline, package] |
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.
void asc.tool.screencontroller.ScreenControllerService.onCreate | ( | ) | [inline] |
Definition at line 39 of file ScreenControllerService.java.
void asc.tool.screencontroller.ScreenControllerService.onDestroy | ( | ) | [inline] |
Definition at line 137 of file ScreenControllerService.java.
Definition at line 30 of file ScreenControllerService.java.
Runnable asc.tool.screencontroller.ScreenControllerService.action_startForeground [package] |
new Runnable() { public void run() { if (foreground_count == 0) { startForeground(Process.myPid(), new Notification()); } foreground_count++; } }
Definition at line 275 of file ScreenControllerService.java.
Runnable asc.tool.screencontroller.ScreenControllerService.action_stopForeground [package] |
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.
boolean asc.tool.screencontroller.ScreenControllerService.debug [package] |
Definition at line 35 of file ScreenControllerService.java.
int asc.tool.screencontroller.ScreenControllerService.foreground_count = 0 [package] |
Definition at line 274 of file ScreenControllerService.java.
KeyguardManager asc.tool.screencontroller.ScreenControllerService.keyguardManager [package] |
Definition at line 34 of file ScreenControllerService.java.
Handler asc.tool.screencontroller.ScreenControllerService.mainthreadAccessor [package] |
Definition at line 31 of file ScreenControllerService.java.
PowerManager asc.tool.screencontroller.ScreenControllerService.powerManager [package] |
Definition at line 33 of file ScreenControllerService.java.
BroadcastReceiver asc.tool.screencontroller.ScreenControllerService.stateReceiver [package] |
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.
String asc.tool.screencontroller.ScreenControllerService.tag = "ASC" [package] |
Definition at line 29 of file ScreenControllerService.java.
WindowManager asc.tool.screencontroller.ScreenControllerService.wm [package] |
Definition at line 32 of file ScreenControllerService.java.