Merge "Add a WM API to query the touch region for the input method window" into oc-dr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
44bb9c7281
@@ -29,6 +29,7 @@ import android.graphics.Bitmap;
|
|||||||
import android.graphics.GraphicBuffer;
|
import android.graphics.GraphicBuffer;
|
||||||
import android.graphics.Point;
|
import android.graphics.Point;
|
||||||
import android.graphics.Rect;
|
import android.graphics.Rect;
|
||||||
|
import android.graphics.Region;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.IRemoteCallback;
|
import android.os.IRemoteCallback;
|
||||||
import android.os.ParcelFileDescriptor;
|
import android.os.ParcelFileDescriptor;
|
||||||
@@ -377,4 +378,9 @@ interface IWindowManager
|
|||||||
* associated with that InputConsumer.
|
* associated with that InputConsumer.
|
||||||
*/
|
*/
|
||||||
boolean destroyInputConsumer(String name);
|
boolean destroyInputConsumer(String name);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the touch region for the current IME window, or an empty region if there is none.
|
||||||
|
*/
|
||||||
|
Region getCurrentImeTouchRegion();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6187,6 +6187,17 @@ public class WindowManagerService extends IWindowManager.Stub
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Region getCurrentImeTouchRegion() {
|
||||||
|
synchronized (mWindowMap) {
|
||||||
|
final Region r = new Region();
|
||||||
|
if (mInputMethodWindow != null) {
|
||||||
|
mInputMethodWindow.getTouchableRegion(r);
|
||||||
|
}
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasNavigationBar() {
|
public boolean hasNavigationBar() {
|
||||||
return mPolicy.hasNavigationBar();
|
return mPolicy.hasNavigationBar();
|
||||||
|
|||||||
Reference in New Issue
Block a user