Merge commit '1d62ea9d8c2646d198b6967e2c6ae3dad5c18f9e' into eclair-mr2 * commit '1d62ea9d8c2646d198b6967e2c6ae3dad5c18f9e': Fix issue #2249821: Unable to start passion in safe mode
This commit is contained in:
@@ -4192,6 +4192,22 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
return mQueue.getScancodeState(devid, sw);
|
||||
}
|
||||
|
||||
public int getTrackballScancodeState(int sw) {
|
||||
if (!checkCallingPermission(android.Manifest.permission.READ_INPUT_STATE,
|
||||
"getTrackballScancodeState()")) {
|
||||
throw new SecurityException("Requires READ_INPUT_STATE permission");
|
||||
}
|
||||
return mQueue.getTrackballScancodeState(sw);
|
||||
}
|
||||
|
||||
public int getDPadScancodeState(int sw) {
|
||||
if (!checkCallingPermission(android.Manifest.permission.READ_INPUT_STATE,
|
||||
"getDPadScancodeState()")) {
|
||||
throw new SecurityException("Requires READ_INPUT_STATE permission");
|
||||
}
|
||||
return mQueue.getDPadScancodeState(sw);
|
||||
}
|
||||
|
||||
public int getKeycodeState(int sw) {
|
||||
if (!checkCallingPermission(android.Manifest.permission.READ_INPUT_STATE,
|
||||
"getKeycodeState()")) {
|
||||
@@ -4208,6 +4224,22 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
return mQueue.getKeycodeState(devid, sw);
|
||||
}
|
||||
|
||||
public int getTrackballKeycodeState(int sw) {
|
||||
if (!checkCallingPermission(android.Manifest.permission.READ_INPUT_STATE,
|
||||
"getTrackballKeycodeState()")) {
|
||||
throw new SecurityException("Requires READ_INPUT_STATE permission");
|
||||
}
|
||||
return mQueue.getTrackballKeycodeState(sw);
|
||||
}
|
||||
|
||||
public int getDPadKeycodeState(int sw) {
|
||||
if (!checkCallingPermission(android.Manifest.permission.READ_INPUT_STATE,
|
||||
"getDPadKeycodeState()")) {
|
||||
throw new SecurityException("Requires READ_INPUT_STATE permission");
|
||||
}
|
||||
return mQueue.getDPadKeycodeState(sw);
|
||||
}
|
||||
|
||||
public boolean hasKeys(int[] keycodes, boolean[] keyExists) {
|
||||
return KeyInputQueue.hasKeys(keycodes, keyExists);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user