| 1 |
/* |
| 2 |
* Copyright (C) 2019 The Android Open Source Project |
| 3 |
* |
| 4 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 |
* you may not use this file except in compliance with the License. |
| 6 |
* You may obtain a copy of the License at |
| 7 |
* |
| 8 |
* http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
* |
| 10 |
* Unless required by applicable law or agreed to in writing, software |
| 11 |
* distributed under the License is distributed on an "AS IS" BASIS, |
| 12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 |
* See the License for the specific language governing permissions and |
| 14 |
* limitations under the License. |
| 15 |
*/ |
| 16 |
|
| 17 |
package com.android.internal.inputmethod; |
| 18 |
|
| 19 |
import android.net.Uri; |
| 20 |
import android.view.inputmethod.InputMethodSubtype; |
| 21 |
|
| 22 |
import com.android.internal.infra.AndroidFuture; |
| 23 |
|
| 24 |
/** |
| 25 |
* Defines priviledged operations that only the current IME is allowed to call. |
| 26 |
* Actual operations are implemented and handled by InputMethodManagerService. |
| 27 |
*/ |
| 28 |
oneway interface IInputMethodPrivilegedOperations { |
| 29 |
void setImeWindowStatusAsync(int vis, int backDisposition); |
| 30 |
void reportStartInputAsync(in IBinder startInputToken); |
| 31 |
void createInputContentUriToken(in Uri contentUri, in String packageName, |
| 32 |
in AndroidFuture future /* T=IBinder */); |
| 33 |
void reportFullscreenModeAsync(boolean fullscreen); |
| 34 |
void setInputMethod(String id, in AndroidFuture future /* T=Void */); |
| 35 |
void setInputMethodAndSubtype(String id, in InputMethodSubtype subtype, |
| 36 |
in AndroidFuture future /* T=Void */); |
| 37 |
void hideMySoftInput(int flags, int reason, in AndroidFuture future /* T=Void */); |
| 38 |
void showMySoftInput(int flags, in AndroidFuture future /* T=Void */); |
| 39 |
void updateStatusIconAsync(String packageName, int iconId); |
| 40 |
void switchToPreviousInputMethod(in AndroidFuture future /* T=Boolean */); |
| 41 |
void switchToNextInputMethod(boolean onlyCurrentIme, in AndroidFuture future /* T=Boolean */); |
| 42 |
void shouldOfferSwitchingToNextInputMethod(in AndroidFuture future /* T=Boolean */); |
| 43 |
void notifyUserActionAsync(); |
| 44 |
void applyImeVisibilityAsync(IBinder showOrHideInputToken, boolean setVisible); |
| 45 |
void onStylusHandwritingReady(int requestId, int pid); |
| 46 |
void resetStylusHandwriting(int requestId); |
| 47 |
} |