Merge "Rename IInputMethodManager#reportPerceptible" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-04-16 05:14:30 +00:00
committed by Android (Google) Code Review
4 changed files with 4 additions and 4 deletions

View File

@@ -581,7 +581,7 @@ public final class InputMethodManager {
*/
public void reportPerceptible(IBinder windowToken, boolean perceptible) {
try {
mService.reportPerceptible(windowToken, perceptible);
mService.reportPerceptibleAsync(windowToken, perceptible);
} catch (RemoteException e) {
throw e.rethrowFromSystemServer();
}

View File

@@ -85,7 +85,7 @@ interface IInputMethodManager {
oneway void reportActivityView(in IInputMethodClient parentClient, int childDisplayId,
in float[] matrixValues, in IVoidResultCallback resultCallback);
oneway void reportPerceptible(in IBinder windowToken, boolean perceptible);
oneway void reportPerceptibleAsync(in IBinder windowToken, boolean perceptible);
/** Remove the IME surface. Requires INTERNAL_SYSTEM_WINDOW permission. */
oneway void removeImeSurface(in IVoidResultCallback resultCallback);
/** Remove the IME surface. Requires passing the currently focused window. */

View File

@@ -3177,7 +3177,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
@BinderThread
@Override
public void reportPerceptible(IBinder windowToken, boolean perceptible) {
public void reportPerceptibleAsync(IBinder windowToken, boolean perceptible) {
Objects.requireNonNull(windowToken, "windowToken must not be null");
int uid = Binder.getCallingUid();
synchronized (mMethodMap) {

View File

@@ -1840,7 +1840,7 @@ public final class MultiClientInputMethodManagerService {
@BinderThread
@Override
public void reportPerceptible(IBinder windowClient, boolean perceptible) {
public void reportPerceptibleAsync(IBinder windowClient, boolean perceptible) {
reportNotSupported();
}