Home
last modified time | relevance | path

Searched refs:ActionMode (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/com/android/internal/policy/
DPhoneWindowActionModeTest.java20 import android.view.ActionMode;
21 import android.view.ActionMode.Callback;
63 ActionMode mode = mPhoneWindow.getDecorView().startActionMode( in testStartActionModeWithCallback()
64 mActionModeCallback, ActionMode.TYPE_FLOATING); in testStartActionModeWithCallback()
73 ActionMode mode1 = mPhoneWindow.getDecorView().startActionMode( in testStartActionModePrimaryFinishesPreviousMode()
74 mActionModeCallback, ActionMode.TYPE_PRIMARY); in testStartActionModePrimaryFinishesPreviousMode()
75 ActionMode mode2 = mPhoneWindow.getDecorView().startActionMode( in testStartActionModePrimaryFinishesPreviousMode()
76 mActionModeCallback, ActionMode.TYPE_PRIMARY); in testStartActionModePrimaryFinishesPreviousMode()
87 ActionMode mode1 = mPhoneWindow.getDecorView().startActionMode( in testStartActionModeFloatingFinishesPreviousMode()
88 mActionModeCallback, ActionMode.TYPE_FLOATING); in testStartActionModeFloatingFinishesPreviousMode()
[all …]
DPhoneWindowTest.java31 import android.view.ActionMode;
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DWindowDecorActionBarTest.java20 import android.view.ActionMode;
49 ActionMode mode = mWindowDecorActionBar.startActionMode(mCallback); in testStartActionMode()
59 ActionMode mode = mWindowDecorActionBar.startActionMode(mCallback); in testStartActionModeWhenCreateReturnsFalse()
67 ActionMode mode1 = mWindowDecorActionBar.startActionMode(mCallback); in testStartActionModeFinishesPreviousMode()
68 ActionMode mode2 = mWindowDecorActionBar.startActionMode(new MockActionModeCallback()); in testStartActionModeFinishesPreviousMode()
75 private static final class MockActionModeCallback implements ActionMode.Callback {
81 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode()
86 public void onDestroyActionMode(ActionMode mode) { in onDestroyActionMode()
91 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode()
97 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { in onActionItemClicked()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DActionBarContainerTest.java21 import android.view.ActionMode;
44 ActionMode mode = mActionBarContainer.startActionModeForChild( in testPrimaryActionModesAreStopped()
45 null, null, ActionMode.TYPE_PRIMARY); in testPrimaryActionModesAreStopped()
64 mActionBarContainer.startActionModeForChild(null, null, ActionMode.TYPE_FLOATING); in testFloatingActionModesAreBubbledUp()
79 public ActionMode startActionModeForChild(View originalView, ActionMode.Callback callback) { in startActionModeForChild()
85 public ActionMode startActionModeForChild( in startActionModeForChild()
86 View originalView, ActionMode.Callback callback, int type) { in startActionModeForChild()
/frameworks/base/core/java/android/view/
DActionMode.java36 public abstract class ActionMode { class
316 public boolean onCreateActionMode(ActionMode mode, Menu menu); in onCreateActionMode()
325 public boolean onPrepareActionMode(ActionMode mode, Menu menu); in onPrepareActionMode()
335 public boolean onActionItemClicked(ActionMode mode, MenuItem item); in onActionItemClicked()
342 public void onDestroyActionMode(ActionMode mode); in onDestroyActionMode()
351 public static abstract class Callback2 implements ActionMode.Callback {
364 public void onGetContentRect(ActionMode mode, View view, Rect outRect) { in onGetContentRect()
DWindowCallbackWrapper.java137 public ActionMode onWindowStartingActionMode(ActionMode.Callback callback) { in onWindowStartingActionMode()
142 public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int type) { in onWindowStartingActionMode()
147 public void onActionModeStarted(ActionMode mode) { in onActionModeStarted()
152 public void onActionModeFinished(ActionMode mode) { in onActionModeFinished()
DViewParent.java277 public ActionMode startActionModeForChild(View originalView, ActionMode.Callback callback); in startActionModeForChild()
292 public ActionMode startActionModeForChild( in startActionModeForChild()
293 View originalView, ActionMode.Callback callback, int type); in startActionModeForChild()
DWindow.java550 public ActionMode onWindowStartingActionMode(ActionMode.Callback callback); in onWindowStartingActionMode()
563 public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int type); in onWindowStartingActionMode()
571 public void onActionModeStarted(ActionMode mode); in onActionModeStarted()
579 public void onActionModeFinished(ActionMode mode); in onActionModeFinished()
/frameworks/base/core/java/android/webkit/
DFindActionModeCallback.java29 import android.view.ActionMode;
42 public class FindActionModeCallback implements ActionMode.Callback, TextWatcher,
53 private ActionMode mActionMode;
200 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode()
223 public void onDestroyActionMode(ActionMode mode) { in onDestroyActionMode()
231 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode()
236 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { in onActionItemClicked()
292 public static class NoAction implements ActionMode.Callback {
294 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in onCreateActionMode()
299 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in onPrepareActionMode()
[all …]
/frameworks/layoutlib/bridge/src/android/view/
DWindowCallback.java20 import android.view.ActionMode.Callback;
126 public ActionMode onWindowStartingActionMode(Callback callback) { in onWindowStartingActionMode()
131 public ActionMode onWindowStartingActionMode(Callback callback, int type) { in onWindowStartingActionMode()
136 public void onActionModeStarted(ActionMode mode) { in onActionModeStarted()
141 public void onActionModeFinished(ActionMode mode) { in onActionModeFinished()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarWindowView.java41 import android.view.ActionMode;
104 private ActionMode mFloatingActionMode;
557 public ActionMode startActionModeForChild(View originalView, ActionMode.Callback callback, in startActionModeForChild()
559 if (type == ActionMode.TYPE_FLOATING) { in startActionModeForChild()
565 private ActionMode createFloatingActionMode( in createFloatingActionMode()
566 View originatingView, ActionMode.Callback2 callback) { in createFloatingActionMode()
586 private void setHandledFloatingActionMode(ActionMode mode) { in setHandledFloatingActionMode()
608 private ActionMode startActionMode( in startActionMode()
609 View originatingView, ActionMode.Callback callback, int type) { in startActionMode()
610 ActionMode.Callback2 wrappedCallback = new ActionModeCallback2Wrapper(callback); in startActionMode()
[all …]
/frameworks/base/core/java/com/android/internal/policy/
DDecorView.java73 import android.view.ActionMode;
191 ActionMode mPrimaryActionMode;
192 private ActionMode mFloatingActionMode;
863 public ActionMode startActionModeForChild(View originalView, in startActionModeForChild()
864 ActionMode.Callback callback) { in startActionModeForChild()
865 return startActionModeForChild(originalView, callback, ActionMode.TYPE_PRIMARY); in startActionModeForChild()
869 public ActionMode startActionModeForChild( in startActionModeForChild()
870 View child, ActionMode.Callback callback, int type) { in startActionModeForChild()
875 public ActionMode startActionMode(ActionMode.Callback callback) { in startActionMode()
876 return startActionMode(callback, ActionMode.TYPE_PRIMARY); in startActionMode()
[all …]
/frameworks/base/core/java/com/android/internal/view/
DStandaloneActionMode.java24 import android.view.ActionMode;
33 public class StandaloneActionMode extends ActionMode implements MenuBuilder.Callback {
36 private ActionMode.Callback mCallback;
44 ActionMode.Callback callback, boolean isFocusable) { in StandaloneActionMode()
DFloatingActionMode.java24 import android.view.ActionMode;
42 public final class FloatingActionMode extends ActionMode {
48 @NonNull private final ActionMode.Callback2 mCallback;
85 Context context, ActionMode.Callback2 callback, in FloatingActionMode()
91 setType(ActionMode.TYPE_FLOATING); in FloatingActionMode()
232 if (duration == ActionMode.DEFAULT_HIDE_DURATION) { in hide()
/frameworks/base/core/java/android/app/
DDialog.java44 import android.view.ActionMode;
146 private ActionMode mActionMode;
148 private int mActionModeTypeStarting = ActionMode.TYPE_PRIMARY;
1121 public ActionMode onWindowStartingActionMode(ActionMode.Callback callback) { in onWindowStartingActionMode()
1122 if (mActionBar != null && mActionModeTypeStarting == ActionMode.TYPE_PRIMARY) { in onWindowStartingActionMode()
1129 public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int type) { in onWindowStartingActionMode()
1134 mActionModeTypeStarting = ActionMode.TYPE_PRIMARY; in onWindowStartingActionMode()
1146 public void onActionModeStarted(ActionMode mode) { in onActionModeStarted()
1158 public void onActionModeFinished(ActionMode mode) { in onActionModeFinished()
DActionBar.java31 import android.view.ActionMode;
1069 public ActionMode startActionMode(ActionMode.Callback callback) { in startActionMode()
DSearchDialog.java39 import android.view.ActionMode;
646 public ActionMode startActionModeForChild( in startActionModeForChild()
647 View child, ActionMode.Callback callback, int type) { in startActionModeForChild()
649 if (type != ActionMode.TYPE_PRIMARY) { in startActionModeForChild()
DActivity.java95 import android.view.ActionMode;
913 private int mActionModeTypeStarting = ActionMode.TYPE_PRIMARY;
7427 public ActionMode startActionMode(ActionMode.Callback callback) { in startActionMode()
7441 public ActionMode startActionMode(ActionMode.Callback callback, int type) { in startActionMode()
7458 public ActionMode onWindowStartingActionMode(ActionMode.Callback callback) { in onWindowStartingActionMode()
7460 if (mActionModeTypeStarting == ActionMode.TYPE_PRIMARY) { in onWindowStartingActionMode()
7474 public ActionMode onWindowStartingActionMode(ActionMode.Callback callback, int type) { in onWindowStartingActionMode()
7479 mActionModeTypeStarting = ActionMode.TYPE_PRIMARY; in onWindowStartingActionMode()
7491 public void onActionModeStarted(ActionMode mode) { in onActionModeStarted()
7502 public void onActionModeFinished(ActionMode mode) { in onActionModeFinished()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewActivityTest.java70 import android.view.ActionMode;
756 new ActionMode.Callback() { in testSelectionHandles_visibleEvenWithEmptyMenu()
758 public boolean onCreateActionMode(ActionMode mode, Menu menu) { in testSelectionHandles_visibleEvenWithEmptyMenu()
764 public boolean onPrepareActionMode(ActionMode mode, Menu menu) { in testSelectionHandles_visibleEvenWithEmptyMenu()
770 public boolean onActionItemClicked(ActionMode mode, MenuItem item) { in testSelectionHandles_visibleEvenWithEmptyMenu()
775 public void onDestroyActionMode(ActionMode mode) {} in testSelectionHandles_visibleEvenWithEmptyMenu()
791 final ActionMode.Callback amCallback = mock(ActionMode.Callback.class); in testSetSelectionAndActionMode()
792 when(amCallback.onCreateActionMode(any(ActionMode.class), any(Menu.class))) in testSetSelectionAndActionMode()
794 when(amCallback.onPrepareActionMode(any(ActionMode.class), any(Menu.class))) in testSetSelectionAndActionMode()
804 verify(amCallback, never()).onCreateActionMode(any(ActionMode.class), any(Menu.class)); in testSetSelectionAndActionMode()
[all …]
/frameworks/base/core/java/android/service/dreams/
DDreamService.java39 import android.view.ActionMode;
352 public ActionMode onWindowStartingActionMode(android.view.ActionMode.Callback callback) { in onWindowStartingActionMode()
358 public ActionMode onWindowStartingActionMode( in onWindowStartingActionMode()
359 android.view.ActionMode.Callback callback, int type) { in onWindowStartingActionMode()
365 public void onActionModeStarted(ActionMode mode) { in onActionModeStarted()
370 public void onActionModeFinished(ActionMode mode) { in onActionModeFinished()
/frameworks/base/core/java/com/android/internal/widget/
DActionBarContainer.java28 import android.view.ActionMode;
267 public ActionMode startActionModeForChild( in startActionModeForChild()
268 View child, ActionMode.Callback callback, int type) { in startActionModeForChild()
269 if (type != ActionMode.TYPE_PRIMARY) { in startActionModeForChild()
DActionBarContextView.java24 import android.view.ActionMode;
75 attrs, R.styleable.ActionMode, defStyleAttr, defStyleRes); in ActionBarContextView()
202 public void initForMode(final ActionMode mode) { in initForMode()
/frameworks/base/core/java/com/android/internal/app/
DWindowDecorActionBar.java36 import android.view.ActionMode;
97 ActionMode mActionMode;
98 ActionMode mDeferredDestroyActionMode;
99 ActionMode.Callback mDeferredModeDestroyCallback;
500 public ActionMode startActionMode(ActionMode.Callback callback) { in startActionMode()
977 public class ActionModeImpl extends ActionMode implements MenuBuilder.Callback {
981 private ActionMode.Callback mCallback;
985 Context context, ActionMode.Callback callback) { in ActionModeImpl()
DToolbarActionBar.java30 import android.view.ActionMode;
191 public ActionMode startActionMode(ActionMode.Callback callback) { in startActionMode()
/frameworks/base/core/java/android/widget/
DEditor.java85 import android.view.ActionMode;
86 import android.view.ActionMode.Callback;
207 private ActionMode mTextActionMode;
1521 hideFloatingToolbar(ActionMode.DEFAULT_HIDE_DURATION); in updateFloatingToolbarVisibility()
2127 ActionMode.Callback actionModeCallback = in startInsertionActionMode()
2130 actionModeCallback, ActionMode.TYPE_FLOATING); in startInsertionActionMode()
2142 ActionMode getTextActionMode() { in getTextActionMode()
2244 ActionMode.Callback actionModeCallback = new TextActionModeCallback(actionMode); in startActionModeInternal()
2245 mTextActionMode = mTextView.startActionMode(actionModeCallback, ActionMode.TYPE_FLOATING); in startActionModeInternal()
3922 private class TextActionModeCallback extends ActionMode.Callback2 {
[all …]

12