/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/onehanded/ |
D | OneHandedTouchHandlerTest.java | 41 private OneHandedTouchHandler mTouchHandler; field in OneHandedTouchHandlerTest 52 mTouchHandler = new OneHandedTouchHandler(mSpiedTimeoutHandler, mMockShellMainExecutor); in setUp() 59 mTouchHandler.registerTouchEventListener(callback); in testRegisterTouchEventListener() 66 mTouchHandler.onOneHandedEnabled(false); in testOneHandedDisabled_shouldDisposeInputChannel() 68 assertThat(mTouchHandler.mInputMonitor).isNull(); in testOneHandedDisabled_shouldDisposeInputChannel() 69 assertThat(mTouchHandler.mInputEventReceiver).isNull(); in testOneHandedDisabled_shouldDisposeInputChannel() 75 mTouchHandler.onOneHandedEnabled(true); in testOneHandedEnabled_monitorInputChannel() 77 assertThat(mTouchHandler.mInputMonitor).isNotNull(); in testOneHandedEnabled_monitorInputChannel() 78 assertThat(mTouchHandler.mInputEventReceiver).isNotNull(); in testOneHandedEnabled_monitorInputChannel()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/touch/ |
D | CommunalTouchHandlerTest.java | 59 CommunalTouchHandler mTouchHandler; field in CommunalTouchHandlerTest 71 mTouchHandler = new CommunalTouchHandler( in setup() 81 assertThat(mTouchHandler.isEnabled()).isFalse(); in communalTouchHandler_disabledByDefault() 86 mTouchHandler.mIsCommunalAvailableCallback.accept(false); in communalTouchHandler_disabled_whenCommunalUnavailable() 87 assertThat(mTouchHandler.isEnabled()).isFalse(); in communalTouchHandler_disabled_whenCommunalUnavailable() 89 mTouchHandler.onSessionStart(mTouchSession); in communalTouchHandler_disabled_whenCommunalUnavailable() 95 mTouchHandler.mIsCommunalAvailableCallback.accept(true); in communalTouchHandler_enabled_whenCommunalAvailable() 96 assertThat(mTouchHandler.isEnabled()).isTrue(); in communalTouchHandler_enabled_whenCommunalAvailable() 101 mTouchHandler.mIsCommunalAvailableCallback.accept(true); in testEventPropagation() 108 mTouchHandler.onSessionStart(mTouchSession); in testEventPropagation() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/ |
D | MenuListViewTouchHandlerTest.java | 73 private MenuListViewTouchHandler mTouchHandler; field in MenuListViewTouchHandlerTest 111 mTouchHandler = new MenuListViewTouchHandler(mMenuAnimationController, in setUp() 125 mTouchHandler.onInterceptTouchEvent(mStubListView, stubDownEvent); in onActionDownEvent_shouldCancelAnimations() 145 mTouchHandler.onInterceptTouchEvent(mStubListView, stubDownEvent); in onActionMoveEvent_notConsumedEvent_shouldMoveToPosition() 146 mTouchHandler.onInterceptTouchEvent(mStubListView, stubMoveEvent); in onActionMoveEvent_notConsumedEvent_shouldMoveToPosition() 165 mTouchHandler.onInterceptTouchEvent(mStubListView, stubDownEvent); in onActionMoveEvent_shouldShowDismissView() 166 mTouchHandler.onInterceptTouchEvent(mStubListView, stubMoveEvent); in onActionMoveEvent_shouldShowDismissView() 184 mTouchHandler.onInterceptTouchEvent(mStubListView, stubDownEvent); in onActionMoveEvent_shouldShowInteractView() 185 mTouchHandler.onInterceptTouchEvent(mStubListView, stubMoveEvent); in onActionMoveEvent_shouldShowInteractView() 205 mTouchHandler.onInterceptTouchEvent(mStubListView, stubDownEvent); in dragAndDrop_shouldFlingMenuThenSpringToEdge() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/touch/ |
D | BouncerSwipeTouchHandlerTest.java | 95 BouncerSwipeTouchHandler mTouchHandler; field in BouncerSwipeTouchHandlerTest 139 mTouchHandler = new BouncerSwipeTouchHandler( in setup() 169 mTouchHandler.getTouchInitiationRegion(SCREEN_BOUNDS, mRegion, null); in testSessionStart() 181 mTouchHandler.onSessionStart(mTouchSession); in testSessionStart() 205 mTouchHandler.getTouchInitiationRegion(SCREEN_BOUNDS, mRegion, null); in testSessionStart_doesNotModifyNotificationShadeWindow() 217 mTouchHandler.onSessionStart(mTouchSession); in testSessionStart_doesNotModifyNotificationShadeWindow() 224 mTouchHandler.getTouchInitiationRegion(SCREEN_BOUNDS, mRegion, in testSwipeUp_whenBouncerInitiallyShowing_reduceHeightWithExclusionRects() 238 onSessionStartHelper(mTouchHandler, mTouchSession, mNotificationShadeWindowController); in testSwipeUp_whenBouncerInitiallyShowing_reduceHeightWithExclusionRects() 244 mTouchHandler.getTouchInitiationRegion(SCREEN_BOUNDS, mRegion, in testSwipeUp_exclusionRectAtTop_doesNotIntersectGestureArea() 254 onSessionStartHelper(mTouchHandler, mTouchSession, mNotificationShadeWindowController); in testSwipeUp_exclusionRectAtTop_doesNotIntersectGestureArea() [all …]
|
D | ShadeTouchHandlerTest.java | 68 ShadeTouchHandler mTouchHandler; field in ShadeTouchHandlerTest 81 mTouchHandler = new ShadeTouchHandler(Optional.of(mCentralSurfaces), mShadeViewController, in setup() 165 mTouchHandler.onSessionStart(mTouchSession); in swipe()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
D | PipController.java | 139 private PipTouchHandler mTouchHandler; field in PipController 156 private final Runnable mEnableTouchCallback = () -> mTouchHandler.setTouchEnabled(true); 276 mTouchHandler.adjustBoundsForRotation(outBounds, mPipBoundsState.getBounds(), 291 mTouchHandler.onShelfVisibilityChanged(false, 0); 292 mTouchHandler.onImeVisibilityChanged(false, 0); 358 mTouchHandler.onImeVisibilityChanged(imeVisible, imeHeight); in onImeVisibilityChanged() 468 mTouchHandler = pipTouchHandler; in PipController() 514 mTouchHandler.onShelfVisibilityChanged(isShowing, height); in onInit() 522 if (mTouchHandler != null) { in onInit() 524 mPipInputConsumer.setInputListener(mTouchHandler::handleTouchEvent); in onInit() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | ActivatableNotificationViewController.java | 37 private final TouchHandler mTouchHandler = new TouchHandler(); field in ActivatableNotificationViewController 55 mView.setOnTouchListener(mTouchHandler); in onInit() 56 mView.setTouchHandler(mTouchHandler); in onInit()
|
D | ActivatableNotificationView.java | 84 private Gefingerpoken mTouchHandler; field in ActivatableNotificationView 194 if (mTouchHandler != null && mTouchHandler.onInterceptTouchEvent(ev)) { in onInterceptTouchEvent() 797 mTouchHandler = touchHandler; in setTouchHandler()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ |
D | NotificationPanelView.java | 41 private NotificationPanelViewController.TouchHandler mTouchHandler; field in NotificationPanelView 112 mTouchHandler = touchHandler; in setOnTouchListener() 124 return mTouchHandler.onInterceptTouchEvent(event); in onInterceptTouchEvent()
|
D | NotificationPanelViewController.java | 367 private final TouchHandler mTouchHandler = new TouchHandler(); field in NotificationPanelViewController 3660 return mTouchHandler; 4268 return mTouchHandler.onInterceptTouchEvent(event); 4278 return mTouchHandler.onTouchEvent(event);
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/ |
D | OneHandedController.java | 99 private final OneHandedTouchHandler mTouchHandler; field in OneHandedController 252 mTouchHandler = touchHandler; in OneHandedController() 420 mTouchHandler.registerTouchEventListener(() -> in setupCallback() 422 mDisplayAreaOrganizer.registerTransitionCallback(mTouchHandler); in setupCallback() 596 mTouchHandler.onOneHandedEnabled(mIsOneHandedEnabled); 667 if (mTouchHandler != null) { 668 mTouchHandler.dump(pw);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/ |
D | NavigationBarView.java | 179 private Gefingerpoken mTouchHandler; field in NavigationBarView 374 mTouchHandler = touchHandler; in setTouchHandler() 379 return mTouchHandler.onInterceptTouchEvent(event) || super.onInterceptTouchEvent(event); in onInterceptTouchEvent() 384 mTouchHandler.onTouchEvent(event); in onTouchEvent()
|
D | NavigationBar.java | 703 mView.setTouchHandler(mTouchHandler); in onInit() 2044 private final Gefingerpoken mTouchHandler = new Gefingerpoken() { field in NavigationBar
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/ |
D | NotificationPanelViewControllerTest.java | 409 mTouchHandler.onInterceptTouchEvent(MotionEvent.obtain(0L /* downTime */, in onInterceptTouchEvent_nsslMigrationOff_userActivity() 420 mTouchHandler.onInterceptTouchEvent(MotionEvent.obtain(0L /* downTime */, in onInterceptTouchEvent_nsslMigrationOn_userActivity_not_called() 1190 mTouchHandler.onTouch(mock(View.class), mDownMotionEvent); in onEmptySpaceClicked_notDozingAndOnKeyguard_requestsFaceAuth() 1201 mTouchHandler.onTouch(mock(View.class), mDownMotionEvent); in nsslFlagEnabled_allowOnlyExternalTouches()
|
D | NotificationPanelViewControllerBaseTest.java | 375 protected NotificationPanelViewController.TouchHandler mTouchHandler; field in NotificationPanelViewControllerBaseTest 558 mTouchHandler = invocation.getArgument(0); in setup() 926 return mTouchHandler.onTouch(mView, ev); in onTouchEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationStackScrollLayoutController.java | 209 private TouchHandler mTouchHandler; field in NotificationStackScrollLayoutController 811 mTouchHandler = new TouchHandler(); in setUpView() 812 mView.setTouchHandler(mTouchHandler); in setUpView() 1800 return mTouchHandler;
|
D | NotificationStackScrollLayout.java | 559 private NotificationStackScrollLayoutController.TouchHandler mTouchHandler; field in NotificationStackScrollLayout 3445 if (mTouchHandler != null) { in onTouchEvent() 3446 boolean touchHandled = mTouchHandler.onTouchEvent(ev); in onTouchEvent() 3784 if (mTouchHandler != null && mTouchHandler.onInterceptTouchEvent(ev)) { in onInterceptTouchEvent() 5664 mTouchHandler = touchHandler; in setTouchHandler()
|