/frameworks/base/services/core/java/com/android/server/inputmethod/ |
D | ImeTrackerService.java | 28 import android.view.inputmethod.ImeTracker; 58 private static final String TAG = ImeTracker.TAG; 79 public ImeTracker.Token onStart(@NonNull String tag, int uid, @ImeTracker.Type int type, in onStart() 80 @ImeTracker.Origin int origin, @SoftInputShowHideReason int reason, boolean fromUser) { in onStart() 82 final var token = new ImeTracker.Token(binder, tag); in onStart() 83 final var entry = new History.Entry(tag, uid, type, ImeTracker.STATUS_RUN, origin, reason, in onStart() 91 mHistory.setFinished(token, ImeTracker.STATUS_TIMEOUT, in onStart() 92 ImeTracker.PHASE_NOT_SET); in onStart() 100 public void onProgress(@NonNull IBinder binder, @ImeTracker.Phase int phase) { in onProgress() 110 public void onFailed(@NonNull ImeTracker.Token statsToken, @ImeTracker.Phase int phase) { in onFailed() [all …]
|
D | DefaultImeVisibilityApplier.java | 19 import static android.view.inputmethod.ImeTracker.DEBUG_IME_VISIBILITY; 42 import android.view.inputmethod.ImeTracker; 81 public void performShowIme(IBinder showInputToken, @NonNull ImeTracker.Token statsToken, in performShowIme() 95 statsToken != null ? statsToken.getTag() : ImeTracker.TOKEN_NONE, in performShowIme() 109 public void performHideIme(IBinder hideInputToken, @NonNull ImeTracker.Token statsToken, in performHideIme() 126 statsToken != null ? statsToken.getTag() : ImeTracker.TOKEN_NONE, in performHideIme() 140 public void applyImeVisibility(IBinder windowToken, @NonNull ImeTracker.Token statsToken, in applyImeVisibility() 147 void applyImeVisibility(IBinder windowToken, @Nullable ImeTracker.Token statsToken, in applyImeVisibility() 155 ImeTracker.forLogging().onProgress(statsToken, in applyImeVisibility() 156 ImeTracker.PHASE_SERVER_APPLY_IME_VISIBILITY); in applyImeVisibility() [all …]
|
D | ImeVisibilityApplier.java | 23 import android.view.inputmethod.ImeTracker; 42 default void performShowIme(IBinder showInputToken, @NonNull ImeTracker.Token statsToken, in performShowIme() 55 default void performHideIme(IBinder hideInputToken, @NonNull ImeTracker.Token statsToken, in performHideIme() 66 default void applyImeVisibility(IBinder windowToken, @NonNull ImeTracker.Token statsToken, in applyImeVisibility()
|
D | ImeVisibilityStateComputer.java | 51 import android.view.inputmethod.ImeTracker; 217 final var statsToken = ImeTracker.forLogging().onStart(ImeTracker.TYPE_HIDE, in ImeVisibilityStateComputer() 218 ImeTracker.ORIGIN_SERVER, reason, false /* fromUser */); in ImeVisibilityStateComputer() 233 boolean onImeShowFlags(@NonNull ImeTracker.Token statsToken, in onImeShowFlags() 236 ImeTracker.forLogging().onFailed(statsToken, ImeTracker.PHASE_SERVER_ACCESSIBILITY); in onImeShowFlags() 239 ImeTracker.forLogging().onProgress(statsToken, ImeTracker.PHASE_SERVER_ACCESSIBILITY); in onImeShowFlags() 259 boolean canHideIme(@NonNull ImeTracker.Token statsToken, in canHideIme() 264 ImeTracker.forLogging().onFailed(statsToken, ImeTracker.PHASE_SERVER_HIDE_IMPLICIT); in canHideIme() 269 ImeTracker.forLogging().onFailed(statsToken, ImeTracker.PHASE_SERVER_HIDE_NOT_ALWAYS); in canHideIme() 272 ImeTracker.forLogging().onProgress(statsToken, ImeTracker.PHASE_SERVER_HIDE_NOT_ALWAYS); in canHideIme()
|
/frameworks/base/core/java/com/android/internal/inputmethod/ |
D | IImeTracker.aidl | 19 import android.view.inputmethod.ImeTracker; 41 ImeTracker.Token onStart(String tag, int uid, int type, int origin, int reason, in onStart() 58 oneway void onFailed(in ImeTracker.Token statsToken, int phase); in onFailed() 66 oneway void onCancelled(in ImeTracker.Token statsToken, int phase); in onCancelled() 73 oneway void onShown(in ImeTracker.Token statsToken); in onShown() 80 oneway void onHidden(in ImeTracker.Token statsToken); in onHidden() 88 oneway void onDispatched(in ImeTracker.Token statsToken); in onDispatched()
|
D | InputMethodPrivilegedOperations.java | 28 import android.view.inputmethod.ImeTracker; 276 public void hideMySoftInput(@NonNull ImeTracker.Token statsToken, in hideMySoftInput() 280 ImeTracker.forLogging().onFailed(statsToken, in hideMySoftInput() 281 ImeTracker.PHASE_IME_PRIVILEGED_OPERATIONS); in hideMySoftInput() 284 ImeTracker.forLogging().onProgress(statsToken, ImeTracker.PHASE_IME_PRIVILEGED_OPERATIONS); in hideMySoftInput() 298 public void showMySoftInput(@NonNull ImeTracker.Token statsToken, in showMySoftInput() 302 ImeTracker.forLogging().onFailed(statsToken, in showMySoftInput() 303 ImeTracker.PHASE_IME_PRIVILEGED_OPERATIONS); in showMySoftInput() 306 ImeTracker.forLogging().onProgress(statsToken, ImeTracker.PHASE_IME_PRIVILEGED_OPERATIONS); in showMySoftInput() 409 @NonNull ImeTracker.Token statsToken) { in applyImeVisibilityAsync() [all …]
|
D | IInputMethodPrivilegedOperations.aidl | 20 import android.view.inputmethod.ImeTracker; 38 void hideMySoftInput(in ImeTracker.Token statsToken, int flags, int reason, in hideMySoftInput() 40 void showMySoftInput(in ImeTracker.Token statsToken, int flags, int reason, in showMySoftInput() 48 in ImeTracker.Token statsToken); in applyImeVisibilityAsync()
|
D | IInputMethod.aidl | 25 import android.view.inputmethod.ImeTracker; 74 void showSoftInput(in IBinder showInputToken, in ImeTracker.Token statsToken, int flags, in showSoftInput() 77 void hideSoftInput(in IBinder hideInputToken, in ImeTracker.Token statsToken, int flags, in hideSoftInput()
|
/frameworks/base/core/java/android/view/ |
D | ImeInsetsSourceConsumer.java | 31 import android.view.inputmethod.ImeTracker; 82 final var statsToken = ImeTracker.forLogging().onStart(ImeTracker.TYPE_HIDE, in onAnimationStateChanged() 83 ImeTracker.ORIGIN_CLIENT, in onAnimationStateChanged() 134 public int requestShow(boolean fromIme, @Nullable ImeTracker.Token statsToken) { in requestShow() 145 ImeTracker.forLogging().onProgress(statsToken, in requestShow() 146 ImeTracker.PHASE_CLIENT_INSETS_CONSUMER_REQUEST_SHOW); in requestShow() 168 void requestHide(boolean fromIme, @Nullable ImeTracker.Token statsToken) { in requestHide() 174 ? ImeTracker.forLogging().onStart(ImeTracker.TYPE_HIDE, in requestHide() 175 ImeTracker.ORIGIN_CLIENT, in requestHide() 195 private void notifyHidden(@NonNull ImeTracker.Token statsToken) { in notifyHidden() [all …]
|
D | InsetsController.java | 66 import android.view.inputmethod.ImeTracker; 67 import android.view.inputmethod.ImeTracker.InputMethodJankContext; 442 ImeTracker.forJank().onRequestAnimation( in onReady() 451 ImeTracker.forJank().onCancelAnimation(getAnimationType()); in onReady() 458 ImeTracker.forJank().onFinishAnimation(getAnimationType()); in onReady() 1036 (showTypes[0] & ime()) == 0 ? null : ImeTracker.forLogging().onStart( in onControlsChanged() 1037 ImeTracker.TYPE_SHOW, ImeTracker.ORIGIN_CLIENT, in onControlsChanged() 1044 (hideTypes[0] & ime()) == 0 ? null : ImeTracker.forLogging().onStart( in onControlsChanged() 1045 ImeTracker.TYPE_HIDE, ImeTracker.ORIGIN_CLIENT, in onControlsChanged() 1098 @Nullable ImeTracker.Token statsToken) { in show() [all …]
|
D | IDisplayWindowInsetsController.aidl | 22 import android.view.inputmethod.ImeTracker; 52 void showInsets(int types, boolean fromIme, in @nullable ImeTracker.Token statsToken); in showInsets() 57 void hideInsets(int types, boolean fromIme, in @nullable ImeTracker.Token statsToken); in hideInsets()
|
D | IWindow.aidl | 32 import android.view.inputmethod.ImeTracker; 81 void showInsets(int types, boolean fromIme, in @nullable ImeTracker.Token statsToken); in showInsets() 90 void hideInsets(int types, boolean fromIme, in @nullable ImeTracker.Token statsToken); in hideInsets()
|
D | ImeBackAnimationController.java | 35 import android.view.inputmethod.ImeTracker; 220 ImeTracker.Token statsToken = ImeTracker.forLogging().onStart(ImeTracker.TYPE_HIDE, in notifyHideIme() 221 ImeTracker.ORIGIN_CLIENT, in notifyHideIme()
|
D | InsetsAnimationControlRunner.java | 25 import android.view.inputmethod.ImeTracker; 83 ImeTracker.Token getStatsToken(); in getStatsToken()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
D | DisplayInsetsController.java | 29 import android.view.inputmethod.ImeTracker; 162 @Nullable ImeTracker.Token statsToken) { in showInsets() 165 ImeTracker.forLogging().onFailed( in showInsets() 166 statsToken, ImeTracker.PHASE_WM_REMOTE_INSETS_CONTROLLER); in showInsets() 169 ImeTracker.forLogging().onProgress( in showInsets() 170 statsToken, ImeTracker.PHASE_WM_REMOTE_INSETS_CONTROLLER); in showInsets() 177 @Nullable ImeTracker.Token statsToken) { in hideInsets() 180 ImeTracker.forLogging().onFailed( in hideInsets() 181 statsToken, ImeTracker.PHASE_WM_REMOTE_INSETS_CONTROLLER); in hideInsets() 184 ImeTracker.forLogging().onProgress( in hideInsets() [all …]
|
D | DisplayImeController.java | 22 import static android.view.inputmethod.ImeTracker.DEBUG_IME_VISIBILITY; 49 import android.view.inputmethod.ImeTracker; 369 @Nullable ImeTracker.Token statsToken) { in showInsets() 379 @Nullable ImeTracker.Token statsToken) { in hideInsets() 445 final var statsToken = ImeTracker.forLogging().onStart( in startAnimation() 446 show ? ImeTracker.TYPE_SHOW : ImeTracker.TYPE_HIDE, ImeTracker.ORIGIN_WM_SHELL, in startAnimation() 453 @NonNull final ImeTracker.Token statsToken) { in startAnimation() 462 ImeTracker.forLogging().onFailed(statsToken, ImeTracker.PHASE_WM_ANIMATION_CREATE); in startAnimation() 485 ImeTracker.forLogging().onCancelled( in startAnimation() 486 statsToken, ImeTracker.PHASE_WM_ANIMATION_CREATE); in startAnimation() [all …]
|
/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/ |
D | DefaultImeVisibilityApplierTest.java | 47 import android.view.inputmethod.ImeTracker; 89 ImeTracker.Token.empty(), 0 /* showFlags */, null /* resultReceiver */, in testPerformShowIme() 99 ImeTracker.Token.empty(), null /* resultReceiver */, HIDE_SOFT_INPUT); in testPerformHideIme() 108 mVisibilityApplier.applyImeVisibility(mWindowToken, ImeTracker.Token.empty(), in testApplyImeVisibility_throwForInvalidState() 116 final var statsToken = ImeTracker.Token.empty(); in testApplyImeVisibility_showIme() 126 final var statsToken = ImeTracker.Token.empty(); in testApplyImeVisibility_hideIme() 139 mVisibilityApplier.applyImeVisibility(mWindowToken, ImeTracker.Token.empty(), in testApplyImeVisibility_hideImeExplicit() 149 mVisibilityApplier.applyImeVisibility(mWindowToken, ImeTracker.Token.empty(), in testApplyImeVisibility_hideNotAlways() 158 mVisibilityApplier.applyImeVisibility(mWindowToken, ImeTracker.Token.empty(), in testApplyImeVisibility_showImeImplicit() 172 final var statsToken = ImeTracker.Token.empty(); in testApplyImeVisibility_hideImeFromTargetOnSecondaryDisplay() [all …]
|
D | ImeVisibilityStateComputerTest.java | 47 import android.view.inputmethod.ImeTracker; 97 boolean res = mComputer.onImeShowFlags(ImeTracker.Token.empty(), in testRequestImeVisibility_showImplicit() 113 boolean res = mComputer.onImeShowFlags(ImeTracker.Token.empty(), 0 /* showFlags */); in testRequestImeVisibility_showExplicit() 132 mComputer.onImeShowFlags(ImeTracker.Token.empty(), 0 /* showFlags */); in testRequestImeVisibility_showExplicit_thenShowImplicit() 146 mComputer.onImeShowFlags(ImeTracker.Token.empty(), InputMethodManager.SHOW_FORCED); in testRequestImeVisibility_showForced_thenShowExplicit() 149 mComputer.onImeShowFlags(ImeTracker.Token.empty(), 0 /* showFlags */); in testRequestImeVisibility_showForced_thenShowExplicit() 159 boolean res = mComputer.onImeShowFlags(ImeTracker.Token.empty(), in testRequestImeVisibility_showImplicit_a11yNoImePolicy() 178 boolean res = mComputer.onImeShowFlags(ImeTracker.Token.empty(), in testRequestImeVisibility_showImplicit_imeHiddenPolicy() 197 assertThat(mComputer.canHideIme(ImeTracker.Token.empty(), in testRequestImeVisibility_hideNotAlways()
|
/frameworks/base/core/java/android/inputmethodservice/ |
D | IInputMethodWrapper.java | 36 import android.view.inputmethod.ImeTracker; 228 final ImeTracker.Token statsToken = (ImeTracker.Token) args.arg3; in executeMessage() 230 ImeTracker.forLogging().onProgress( in executeMessage() 231 statsToken, ImeTracker.PHASE_IME_WRAPPER_DISPATCH); in executeMessage() 235 ImeTracker.forLogging().onFailed( in executeMessage() 236 statsToken, ImeTracker.PHASE_IME_WRAPPER_DISPATCH); in executeMessage() 243 final ImeTracker.Token statsToken = (ImeTracker.Token) args.arg3; in executeMessage() 245 ImeTracker.forLogging().onProgress( in executeMessage() 246 statsToken, ImeTracker.PHASE_IME_WRAPPER_DISPATCH); in executeMessage() 250 ImeTracker.forLogging().onFailed( in executeMessage() [all …]
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | InputMethodManager.java | 2306 final var statsToken = ImeTracker.forLogging().onStart(ImeTracker.TYPE_SHOW, in showSoftInput() 2307 ImeTracker.ORIGIN_CLIENT, reason, ImeTracker.isFromUser(view)); in showSoftInput() 2311 private boolean showSoftInput(View view, @NonNull ImeTracker.Token statsToken, in showSoftInput() 2314 ImeTracker.forLatency().onRequestShow(statsToken, in showSoftInput() 2315 ImeTracker.ORIGIN_CLIENT, reason, ActivityThread::currentApplication); in showSoftInput() 2327 ImeTracker.forLogging().onFailed(statsToken, ImeTracker.PHASE_CLIENT_VIEW_SERVED); in showSoftInput() 2328 ImeTracker.forLatency().onShowFailed(statsToken, in showSoftInput() 2329 ImeTracker.PHASE_CLIENT_VIEW_SERVED, ActivityThread::currentApplication); in showSoftInput() 2334 ImeTracker.forLogging().onProgress(statsToken, ImeTracker.PHASE_CLIENT_VIEW_SERVED); in showSoftInput() 2378 final var statsToken = ImeTracker.forLogging().onStart(ImeTracker.TYPE_SHOW, in showSoftInputUnchecked() [all …]
|
D | IInputMethodManagerGlobalInvoker.java | 318 @NonNull ImeTracker.Token statsToken, @InputMethodManager.ShowFlags int flags, in showSoftInput() 335 @NonNull ImeTracker.Token statsToken, @InputMethodManager.HideFlags int flags, in hideSoftInput() 691 static ImeTracker.Token onStart(@NonNull String tag, int uid, @ImeTracker.Type int type, in onStart() 692 @ImeTracker.Origin int origin, @SoftInputShowHideReason int reason, boolean fromUser) { in onStart() 696 return ImeTracker.Token.empty(tag); in onStart() 707 static void onProgress(@NonNull IBinder binder, @ImeTracker.Phase int phase) { in onProgress() 721 static void onFailed(@NonNull ImeTracker.Token statsToken, @ImeTracker.Phase int phase) { in onFailed() 735 static void onCancelled(@NonNull ImeTracker.Token statsToken, @ImeTracker.Phase int phase) { in onCancelled() 749 static void onShown(@NonNull ImeTracker.Token statsToken) { in onShown() 763 static void onHidden(@NonNull ImeTracker.Token statsToken) { in onHidden() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ImeInsetsSourceProviderTest.java | 27 import android.view.inputmethod.ImeTracker; 67 mImeProvider.scheduleShowImePostLayout(appWin, ImeTracker.Token.empty()); in testTransparentControlTargetWindowCanShowIme() 86 mImeProvider.scheduleShowImePostLayout(target, ImeTracker.Token.empty()); in testScheduleShowIme() 106 mImeProvider.scheduleShowImePostLayout(target, ImeTracker.Token.empty()); in testScheduleShowIme_noInitialState() 139 mImeProvider.scheduleShowImePostLayout(target, ImeTracker.Token.empty()); in testScheduleShowIme_delayedAfterPrepareSurfaces() 171 mImeProvider.scheduleShowImePostLayout(target, ImeTracker.Token.empty()); in testScheduleShowIme_delayedSurfacePlacement()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | InsetsControlTarget.java | 23 import android.view.inputmethod.ImeTracker; 67 @Nullable ImeTracker.Token statsToken) { in showInsets() 78 @Nullable ImeTracker.Token statsToken) { in hideInsets()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/ |
D | DisplayInsetsControllerTest.java | 37 import android.view.inputmethod.ImeTracker; 123 ImeTracker.Token.empty()); in testPerDisplayListenerCallback() 125 ImeTracker.Token.empty()); in testPerDisplayListenerCallback() 145 ImeTracker.Token.empty()); in testPerDisplayListenerCallback() 147 ImeTracker.Token.empty()); in testPerDisplayListenerCallback() 206 public void showInsets(int types, boolean fromIme, @Nullable ImeTracker.Token statsToken) { in showInsets() 211 public void hideInsets(int types, boolean fromIme, @Nullable ImeTracker.Token statsToken) { in hideInsets()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ImeInsetsSourceConsumerTest.java | 42 import android.view.inputmethod.ImeTracker; 103 mController.show(WindowInsets.Type.ime(), true /* fromIme */, ImeTracker.Token.empty()); in testImeVisibility() 108 mController.hide(WindowInsets.Type.ime(), true /* fromIme */, ImeTracker.Token.empty()); in testImeVisibility() 121 final var statsToken = ImeTracker.Token.empty(); in testImeRequestedVisibleAwaitingControl() 150 final var statsToken = ImeTracker.Token.empty(); in testImeRequestedVisibleAwaitingLeash() 208 final var statsToken = ImeTracker.Token.empty(); in verifyImeGetAndClearSkipAnimationOnce() 238 final var statsTokenNext = ImeTracker.Token.empty(); in verifyImeGetAndClearSkipAnimationOnce()
|