Home
last modified time | relevance | path

Searched refs:ime (Results 1 – 25 of 109) sorted by relevance

12345

/frameworks/base/core/tests/coretests/src/android/view/
DImeInsetsSourceConsumerTest.java96 final InsetsSourceControl ime = new InsetsSourceControl(ID_IME, WindowInsets.Type.ime(), in testImeVisibility() local
98 mController.onControlsChanged(new InsetsSourceControl[] { ime }); in testImeVisibility()
103 mController.show(WindowInsets.Type.ime(), true /* fromIme */, ImeTracker.Token.empty()); in testImeVisibility()
105 assertTrue((mController.getRequestedVisibleTypes() & WindowInsets.Type.ime()) != 0); in testImeVisibility()
108 mController.hide(WindowInsets.Type.ime(), true /* fromIme */, ImeTracker.Token.empty()); in testImeVisibility()
110 assertFalse((mController.getRequestedVisibleTypes() & WindowInsets.Type.ime()) != 0); in testImeVisibility()
123 mController.show(WindowInsets.Type.ime(), true /* fromIme */, statsToken); in testImeRequestedVisibleAwaitingControl()
126 eq(WindowInsets.Type.ime()), eq(true) /* show */, eq(true) /* fromIme */, in testImeRequestedVisibleAwaitingControl()
131 WindowInsets.Type.ime(), mLeash, false, new Point(), Insets.NONE); in testImeRequestedVisibleAwaitingControl()
135 eq(WindowInsets.Type.ime()), eq(true) /* show */, eq(false) /* fromIme */, in testImeRequestedVisibleAwaitingControl()
[all …]
DInsetsControllerTest.java31 import static android.view.WindowInsets.Type.ime;
138 if (type == ime()) { in setup()
165 mImeSource = new InsetsSource(ID_IME, ime()); in setup()
260 mController.getSourceConsumer(ID_IME, ime()).onWindowFocusGained(true); in testSystemDrivenInsetsAnimationLoggingListener_onReady()
262 mController.show(ime(), true /* fromIme */, ImeTracker.Token.empty()); in testSystemDrivenInsetsAnimationLoggingListener_onReady()
277 mController.getSourceConsumer(ID_IME, ime()).onWindowFocusGained(true); in testAnimationEndState()
279 mController.show(ime(), true /* fromIme */, ImeTracker.Token.empty()); in testAnimationEndState()
283 @InsetsType final int types = navigationBars() | statusBars() | ime(); in testAnimationEndState()
286 mController.hide(ime(), true /* fromIme */, ImeTracker.Token.empty()); in testAnimationEndState()
290 mController.getSourceConsumer(ID_IME, ime()).onWindowFocusLost(); in testAnimationEndState()
[all …]
DInsetsSourceConsumerTest.java23 import static android.view.WindowInsets.Type.ime;
152 ID_IME, ime(), state, null, controller); in testPendingStates()
154 InsetsSource source = new InsetsSource(ID_IME, ime()); in testPendingStates()
223 if (type == ime()) { in testWontUpdateImeLeashVisibility_whenAnimation()
224 return new InsetsSourceConsumer(ID_IME, ime(), state, in testWontUpdateImeLeashVisibility_whenAnimation()
235 InsetsSourceConsumer imeConsumer = insetsController.getSourceConsumer(ID_IME, ime()); in testWontUpdateImeLeashVisibility_whenAnimation()
238 imeConsumer.setControl(new InsetsSourceControl(ID_IME, ime(), mLeash, in testWontUpdateImeLeashVisibility_whenAnimation()
244 insetsController.controlWindowInsetsAnimation(ime(), 0L, in testWontUpdateImeLeashVisibility_whenAnimation()
246 assertEquals(ANIMATION_TYPE_USER, insetsController.getAnimationType(ime())); in testWontUpdateImeLeashVisibility_whenAnimation()
247 imeConsumer.setControl(new InsetsSourceControl(ID_IME, ime(), mLeash, in testWontUpdateImeLeashVisibility_whenAnimation()
DInsetsStateTest.java31 import static android.view.WindowInsets.Type.ime;
104 mState.getOrCreateSource(ID_IME, ime()) in testCalculateInsets()
116 assertEquals(Insets.of(0, 0, 0, 100), insets.getInsets(ime())); in testCalculateInsets()
124 mState.getOrCreateSource(ID_IME, ime()) in testCalculateInsets_imeAndNav()
135 assertEquals(Insets.of(0, 0, 0, 200), insets.getInsets(ime())); in testCalculateInsets_imeAndNav()
173 mState.getOrCreateSource(ID_IME, ime()) in testCalculateInsets_imeIgnoredWithoutAdjustResize()
180 assertEquals(100, insets.getInsets(ime()).bottom); in testCalculateInsets_imeIgnoredWithoutAdjustResize()
181 assertTrue(insets.isVisible(ime())); in testCalculateInsets_imeIgnoredWithoutAdjustResize()
189 mState.getOrCreateSource(ID_IME, ime()) in testCalculateInsets_systemUiFlagLayoutStable()
303 mState.getOrCreateSource(ID_IME, ime()); in testCalculateInsets_emptyIme()
[all …]
DImeBackAnimationControllerTest.java19 import static android.view.WindowInsets.Type.ime;
160 verify(mInsetsController, times(1)).hide(ime()); in testAdjustResizeWithoutAppWindowInsetsListenerNotPlayingAnim()
177 animationControlListener.onReady(mWindowInsetsAnimationController, ime()); in testAdjustPanScrollsViewRoot()
196 animationControlListener.onReady(mWindowInsetsAnimationController, ime()); in testNewGestureAfterCancelSeamlessTakeover()
224 animationControlListener.onReady(mWindowInsetsAnimationController, ime()); in testImeInsetsManipulationCurve()
259 animationControlListener.onReady(mWindowInsetsAnimationController, ime()); in testOnReadyAfterGestureFinished()
282 verify(mInsetsController, times(1)).hide(ime()); in testOnBackInvokedHidesImeEvenIfInsetsControlCancelled()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DImeInsetsSourceProviderTest.java56 final WindowState ime = createWindow(null, TYPE_INPUT_METHOD, "ime"); in testTransparentControlTargetWindowCanShowIme() local
57 makeWindowVisibleAndDrawn(ime); in testTransparentControlTargetWindowCanShowIme()
58 mImeProvider.setWindowContainer(ime, null, null); in testTransparentControlTargetWindowCanShowIme()
76 final WindowState ime = createWindow(null, TYPE_INPUT_METHOD, "ime"); in testScheduleShowIme() local
77 makeWindowVisibleAndDrawn(ime); in testScheduleShowIme()
78 mImeProvider.setWindowContainer(ime, null, null); in testScheduleShowIme()
110 final WindowState ime = createWindow(null, TYPE_INPUT_METHOD, "ime"); in testScheduleShowIme_noInitialState() local
111 makeWindowVisibleAndDrawn(ime); in testScheduleShowIme_noInitialState()
112 mImeProvider.setWindowContainer(ime, null, null); in testScheduleShowIme_noInitialState()
130 final WindowState ime = createWindow(null, TYPE_INPUT_METHOD, "ime"); in testScheduleShowIme_delayedAfterPrepareSurfaces() local
[all …]
DInsetsStateControllerTest.java23 import static android.view.WindowInsets.Type.ime;
80 final WindowState ime = createWindow(null, TYPE_APPLICATION, "ime"); in testStripForDispatch_navBar() local
83 ime.mAttrs.flags |= FLAG_NOT_FOCUSABLE; in testStripForDispatch_navBar()
89 getController().getOrCreateSourceProvider(ID_IME, ime()) in testStripForDispatch_navBar()
90 .setWindowContainer(ime, null, null); in testStripForDispatch_navBar()
149 getController().getOrCreateSourceProvider(ID_IME, ime()) in testStripForDispatch_independentSources()
158 assertFalse(app2.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testStripForDispatch_independentSources()
159 assertTrue(app1.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testStripForDispatch_independentSources()
165 getController().getOrCreateSourceProvider(ID_IME, ime()) in testStripForDispatch_belowIme()
169 app.mAboveInsetsState.getOrCreateSource(ID_IME, ime()) in testStripForDispatch_belowIme()
[all …]
DDisplayAreaPolicyTests.java127 final DisplayArea.Tokens ime = new DisplayArea.Tokens(wms, ABOVE_TASKS, "Ime"); in testDisplayAreaGroup_taskPositionChanged_updatesDisplayAreaGroupPosition() local
130 .setImeContainer(ime) in testDisplayAreaGroup_taskPositionChanged_updatesDisplayAreaGroupPosition()
186 final DisplayArea.Tokens ime = new DisplayArea.Tokens(wms, ABOVE_TASKS, "Ime"); in testTaskDisplayAreasCanHostHomeTask() local
189 .setImeContainer(ime) in testTaskDisplayAreasCanHostHomeTask()
231 final DisplayArea.Tokens ime = new DisplayArea.Tokens(mWm, ABOVE_TASKS, "Ime"); in createPolicyWith2TaskDisplayAreas() local
244 .setImeContainer(ime) in createPolicyWith2TaskDisplayAreas()
DInsetsPolicyTest.java24 import static android.view.WindowInsets.Type.ime;
446 final InsetsSource imeSource = new InsetsSource(ID_IME, ime()); in testConsumeImeInsets()
463 assertTrue(win1.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testConsumeImeInsets()
464 assertTrue(win2.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testConsumeImeInsets()
474 assertTrue(win2.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testConsumeImeInsets()
475 assertFalse(win1.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testConsumeImeInsets()
487 assertTrue(win1.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testConsumeImeInsets()
488 assertTrue(win2.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testConsumeImeInsets()
/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/
DInputMethodManagerServiceRestrictImeAmountTest.java131 final ResolveInfo ime = createFakeResolveInfo(packageName, componentName); in createFakeSystemResolveInfo() local
132 ime.serviceInfo.applicationInfo.flags = ApplicationInfo.FLAG_SYSTEM; in createFakeSystemResolveInfo()
133 return ime; in createFakeSystemResolveInfo()
137 final ResolveInfo ime = getResolveInfo("com.android.apps.inputmethod.simpleime"); in createFakeResolveInfo() local
139 ime.serviceInfo.packageName = packageName; in createFakeResolveInfo()
142 ime.serviceInfo.name = componentName; in createFakeResolveInfo()
144 return ime; in createFakeResolveInfo()
150 final List<ResolveInfo> ime = mContext.getPackageManager().queryIntentServices( in getResolveInfo() local
153 assertWithMessage("Loaded IMEs").that(ime.size()).isGreaterThan(0); in getResolveInfo()
154 return ime.get(0); in getResolveInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/inputmethod/domain/interactor/
DInputMethodInteractor.kt43 .filter { ime -> ime.subtypes.isEmpty() || ime.subtypes.any { !it.isAuxiliary } } in <lambda>() method
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
DDisplayImeControllerTest.java22 import static android.view.WindowInsets.Type.ime;
109 mPerDisplay.showInsets(ime(), true /* fromIme */, ImeTracker.Token.empty()); in showInsets_schedulesNoWorkOnExecutor()
115 mPerDisplay.hideInsets(ime(), true /* fromIme */, ImeTracker.Token.empty()); in hideInsets_schedulesNoWorkOnExecutor()
148 ID_IME, ime(), mock(SurfaceControl.class), false, new Point(0, 0), in insetsSourceControl()
155 state.addSource(new InsetsSource(ID_IME, ime())); in insetsStateWithIme()
/frameworks/base/apct-tests/perftests/inputmethod/src/android/inputmethod/
DImePerfTest.java154 ImeSession(ComponentName ime) throws Exception { in ImeSession() argument
155 mImeName = ime; in ImeSession()
158 executeShellCommand("ime enable " + ime.flattenToShortString()); in ImeSession()
159 executeShellCommand("ime set " + ime.flattenToShortString()); in ImeSession()
162 () -> ime.equals(getCurrentInputMethodId())); in ImeSession()
269 controller.show(WindowInsets.Type.ime()); in testShowImeCold()
332 controller.show(WindowInsets.Type.ime()); in testShowOrHideImeWarm()
356 controller.show(WindowInsets.Type.ime()); in testShowOrHideImeWarm()
358 controller.hide(WindowInsets.Type.ime()); in testShowOrHideImeWarm()
378 activity.runOnUiThread(() -> controller.hide(WindowInsets.Type.ime())); in testShowOrHideImeWarm()
[all …]
/frameworks/base/cmds/ime/
DAndroid.bp22 name: "ime",
23 src: "ime.sh",
Dime.sh2 exec cmd input_method ime "$@"
/frameworks/base/services/core/java/com/android/server/inputmethod/
DInputMethodSettings.java82 StringBuilder builder, Pair<String, ArrayList<String>> ime) { in buildEnabledInputMethodsSettingString() argument
83 builder.append(ime.first); in buildEnabledInputMethodsSettingString()
86 for (int i = 0; i < ime.second.size(); ++i) { in buildEnabledInputMethodsSettingString()
87 final String subtypeId = ime.second.get(i); in buildEnabledInputMethodsSettingString()
286 final Pair<String, String> ime = savedImes.get(i); in saveSubtypeHistory() local
287 final String imeId = ime.first; in saveSubtypeHistory()
288 String subtypeHashCodeStr = ime.second; in saveSubtypeHistory()
306 final Pair<String, String> ime = subtypeHistory.get(i); in addSubtypeToHistory() local
307 if (ime.first.equals(imeId)) { in addSubtypeToHistory()
310 + ime.second); in addSubtypeToHistory()
[all …]
/frameworks/base/tests/WindowInsetsTests/src/com/google/android/test/windowinsetstests/
DChatActivity.java19 import static android.view.WindowInsets.Type.ime;
87 mDownInsets = v.getRootWindowInsets().getInsets(ime()); in onCreate()
88 mShownAtDown = v.getRootWindowInsets().isVisible(ime()); in onCreate()
99 v.getWindowInsetsController().controlWindowInsetsAnimation(ime(), in onCreate()
194 v -> v.getWindowInsetsController().controlWindowInsetsAnimation(ime(), -1, in onCreate()
246 if ((animation.getTypeMask() & ime()) != 0) { in onPrepare()
DControllerActivity.java20 import static android.view.WindowInsets.Type.ime;
76 updateWidgets(insets, ime(), mToggleIme, mSeekIme); in onCreate()
110 mToggleIme.setOnCheckedChangeListener(new ToggleListener(ime())); in onCreate()
112 mSeekIme.setOnSeekBarChangeListener(new SeekBarListener(ime())); in onCreate()
/frameworks/base/core/java/android/view/
DImeBackAnimationController.java20 import static android.view.WindowInsets.Type.ime;
97 mInsetsController.controlWindowInsetsAnimation(ime(), /*cancellationSignal*/ null, in onBackStarted()
142 mInsetsController.hide(ime()); in onBackInvoked()
233 mInsetsController.setRequestedVisibleTypes(0, ime()); in notifyHideIme()
236 mInsetsController.onAnimationStateChanged(ime(), /*running*/ true); in notifyHideIme()
DInsetsController.java29 import static android.view.WindowInsets.Type.ime;
487 if ((mRequestedTypes & ime()) != 0) { in getInsetsInterpolator()
506 if ((mRequestedTypes & ime()) != 0) { in getAlphaInterpolator()
542 if ((mRequestedTypes & ime()) != 0) { in calculateDurationMs()
767 if (type == ime()) { in InsetsController()
831 mImeSourceConsumer = getSourceConsumer(ID_IME, ime()); in InsetsController()
1036 (showTypes[0] & ime()) == 0 ? null : ImeTracker.forLogging().onStart( in onControlsChanged()
1044 (hideTypes[0] & ime()) == 0 ? null : ImeTracker.forLogging().onStart( in onControlsChanged()
1079 if ((runner.getTypes() & ime()) != 0) { in setPredictiveBackImeHideAnimInProgress()
1099 if ((types & ime()) != 0) { in show()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardPasswordView.java20 import static android.view.WindowInsets.Type.ime;
231 getWindowInsetsController().controlWindowInsetsAnimation(ime(), in startDisappearAnimation()
331 && !mPasswordEntry.getRootWindowInsets().isVisible(WindowInsets.Type.ime())) { in showKeyboard()
333 mPasswordEntry.getWindowInsetsController().show(WindowInsets.Type.ime()); in showKeyboard()
344 && mPasswordEntry.getRootWindowInsets().isVisible(WindowInsets.Type.ime())) { in hideKeyboard()
346 mPasswordEntry.getWindowInsetsController().hide(WindowInsets.Type.ime()); in hideKeyboard()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DGlobalActionsImeTest.java20 import static android.view.WindowInsets.Type.ime;
202 wic.show(ime()); in showIme()
217 mControlsIme = (typeMask & ime()) != 0; in onControllableInsetsChanged()
228 mImeVisible = insets.isVisible(ime()); in onApplyWindowInsets()
/frameworks/base/tests/FlickerTests/IME/src/com/android/server/wm/flicker/ime/
DShowImeWhileDismissingThemedPopupDialogTest.kt17 package com.android.server.wm.flicker.ime
27 import android.view.WindowInsets.Type.ime
65 assertFalse(testApp.getInsetsVisibleFromDialog(ime())) in <lambda>()
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/
DDialogThemedActivity.java20 import static android.view.WindowInsets.Type.ime;
63 + "IME: " + isInsetsVisible(dialog, ime()) + "\n" in onCreate()
/frameworks/base/core/java/android/inputmethodservice/
DExtractEditText.java49 void setIME(InputMethodService ime) { in setIME() argument
50 mIME = ime; in setIME()

12345