/frameworks/base/core/tests/coretests/src/com/android/internal/policy/ |
D | PhoneWindowActionModeTest.java | 20 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 …]
|
D | PhoneWindowTest.java | 31 import android.view.ActionMode;
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | WindowDecorActionBarTest.java | 20 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/ |
D | ActionBarContainerTest.java | 21 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/ |
D | ActionMode.java | 36 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()
|
D | WindowCallbackWrapper.java | 137 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()
|
D | ViewParent.java | 277 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()
|
D | Window.java | 550 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/ |
D | FindActionModeCallback.java | 29 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/ |
D | WindowCallback.java | 20 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/ |
D | StatusBarWindowView.java | 41 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/ |
D | DecorView.java | 73 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/ |
D | StandaloneActionMode.java | 24 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()
|
D | FloatingActionMode.java | 24 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/ |
D | Dialog.java | 44 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()
|
D | ActionBar.java | 31 import android.view.ActionMode; 1069 public ActionMode startActionMode(ActionMode.Callback callback) { in startActionMode()
|
D | SearchDialog.java | 39 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()
|
D | Activity.java | 95 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/ |
D | TextViewActivityTest.java | 70 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/ |
D | DreamService.java | 39 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/ |
D | ActionBarContainer.java | 28 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()
|
D | ActionBarContextView.java | 24 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/ |
D | WindowDecorActionBar.java | 36 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()
|
D | ToolbarActionBar.java | 30 import android.view.ActionMode; 191 public ActionMode startActionMode(ActionMode.Callback callback) { in startActionMode()
|
/frameworks/base/core/java/android/widget/ |
D | Editor.java | 85 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 …]
|