am fe7e94a0
: am 088fb915
: Merge "Add isSafeModeEnabled() API to WindowManagerService" into jb-mr1-lockscreen-dev
* commit 'fe7e94a094746b608eb926fadc3ee1446bbb0d58': Add isSafeModeEnabled() API to WindowManagerService
This commit is contained in:
@ -254,4 +254,9 @@ interface IWindowManager
|
||||
* Gets the infos for all visible windows.
|
||||
*/
|
||||
void getVisibleWindowsForDisplay(int displayId, out List<WindowInfo> outInfos);
|
||||
|
||||
/**
|
||||
* Device is in safe mode.
|
||||
*/
|
||||
boolean isSafeModeEnabled();
|
||||
}
|
||||
|
@ -10347,6 +10347,10 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
public void lockNow(Bundle options) {
|
||||
mPolicy.lockNow(options);
|
||||
}
|
||||
|
||||
public boolean isSafeModeEnabled() {
|
||||
return mSafeMode;
|
||||
}
|
||||
|
||||
void dumpPolicyLocked(PrintWriter pw, String[] args, boolean dumpAll) {
|
||||
pw.println("WINDOW MANAGER POLICY STATE (dumpsys window policy)");
|
||||
|
@ -446,6 +446,11 @@ public class IWindowManagerImpl implements IWindowManager {
|
||||
public void lockNow(Bundle options) {
|
||||
// TODO Auto-generated method stub
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSafeModeEnabled() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IBinder getFocusedWindowToken() {
|
||||
|
Reference in New Issue
Block a user