Searched refs:mPhoneWindowManager (Results 1 – 8 of 8) sorted by relevance
58 mPhoneWindowManager.overrideShouldEarlyShortPressOnStemPrimary(false); in stemSingleKey_duringSetup_doNothing()59 mPhoneWindowManager.setKeyguardServiceDelegateIsShowing(false); in stemSingleKey_duringSetup_doNothing()60 mPhoneWindowManager.overrideIsUserSetupComplete(false); in stemSingleKey_duringSetup_doNothing()64 mPhoneWindowManager.assertNotOpenAllAppView(); in stemSingleKey_duringSetup_doNothing()74 mPhoneWindowManager.overrideShouldEarlyShortPressOnStemPrimary(false); in stemSingleKey_AfterSetup_openAllApp()75 mPhoneWindowManager.overrideStartActivity(); in stemSingleKey_AfterSetup_openAllApp()76 mPhoneWindowManager.setKeyguardServiceDelegateIsShowing(false); in stemSingleKey_AfterSetup_openAllApp()77 mPhoneWindowManager.overrideIsUserSetupComplete(true); in stemSingleKey_AfterSetup_openAllApp()81 mPhoneWindowManager.assertOpenAllAppView(); in stemSingleKey_AfterSetup_openAllApp()93 mPhoneWindowManager.overrideShouldEarlyShortPressOnStemPrimary(false); in stemSingleKey_launchTargetActivity()[all …]
49 mPhoneWindowManager.overrideShortPressOnPower(SHORT_PRESS_POWER_GO_TO_SLEEP); in testPowerSinglePress()51 mPhoneWindowManager.assertPowerSleep(); in testPowerSinglePress()54 mPhoneWindowManager.overrideDisplayState(Display.STATE_OFF); in testPowerSinglePress()56 mPhoneWindowManager.assertPowerWakeUp(); in testPowerSinglePress()57 mPhoneWindowManager.assertNoPowerSleep(); in testPowerSinglePress()65 mPhoneWindowManager.overrideShortPressOnPower(SHORT_PRESS_POWER_DREAM_OR_SLEEP); in testPowerSinglePressRequestsDream()66 mPhoneWindowManager.overrideCanStartDreaming(true); in testPowerSinglePressRequestsDream()68 mPhoneWindowManager.assertDreamRequest(); in testPowerSinglePressRequestsDream()69 mPhoneWindowManager.overrideIsDreaming(true); in testPowerSinglePressRequestsDream()70 mPhoneWindowManager.assertLockedAfterAppTransitionFinished(); in testPowerSinglePressRequestsDream()[all …]
81 PhoneWindowManager mPhoneWindowManager; field in PhoneWindowManagerTests88 mPhoneWindowManager = spy(new PhoneWindowManager()); in setUp()94 mPhoneWindowManager.mActivityTaskManagerInternal = mAtmInternal; in setUp()98 mPhoneWindowManager.mKeyguardDelegate = mock(KeyguardServiceDelegate.class); in setUp()113 doReturn(false).when(mPhoneWindowManager).isUserSetupComplete(); in testShouldNotStartDockOrHomeWhenSetup()115 mPhoneWindowManager.startDockOrHome( in testShouldNotStartDockOrHomeWhenSetup()118 verify(mPhoneWindowManager, never()).createHomeDockIntent(); in testShouldNotStartDockOrHomeWhenSetup()124 doReturn(true).when(mPhoneWindowManager).isUserSetupComplete(); in testShouldStartDockOrHomeAfterSetup()126 mPhoneWindowManager.startDockOrHome( in testShouldStartDockOrHomeAfterSetup()129 verify(mPhoneWindowManager).createHomeDockIntent(); in testShouldStartDockOrHomeAfterSetup()[all …]
96 mPhoneWindowManager.assertLaunchCategory(category); in testMetaShortcuts()104 mPhoneWindowManager.assertLaunchRole(role); in testMetaShortcuts()113 mPhoneWindowManager.overrideStatusBarManagerInternal(); in testAltTab()115 mPhoneWindowManager.assertShowRecentApps(); in testAltTab()125 mPhoneWindowManager.assertSwitchKeyboardLayout(/* direction= */ 1, ANY_DISPLAY_ID); in testCtrlSpace()135 mPhoneWindowManager.assertSwitchKeyboardLayout(/* direction= */ -1, ANY_DISPLAY_ID); in testCtrlShiftSpace()144 mPhoneWindowManager.assertAccessibilityKeychordCalled(); in testCtrlAltZ()153 mPhoneWindowManager.assertTakeScreenshotCalled(); in testMetaCtrlS()161 mPhoneWindowManager.overrideTogglePanel(); in testMetaN()163 mPhoneWindowManager.assertTogglePanel(); in testMetaN()[all …]
132 private PhoneWindowManager mPhoneWindowManager; field in TestPhoneWindowManager277 mPhoneWindowManager = spy(new PhoneWindowManager()); in setUp()323 doReturn(mTelecomManager).when(mPhoneWindowManager).getTelecommService(); in setUp()325 doReturn(mNotificationManager).when(mPhoneWindowManager).getNotificationService(); in setUp()340 mPhoneWindowManager.setDefaultDisplay(new WindowManagerPolicy.DisplayContentInfo() { in setUp()351 doNothing().when(mPhoneWindowManager).initializeHdmiState(); in setUp()355 mPhoneWindowManager.updateSettings(null); in setUp()357 }).when(mPhoneWindowManager).updateSettings(any(Handler.class)); in setUp()359 doNothing().when(mPhoneWindowManager).updateSettings(any()); in setUp()361 doNothing().when(mPhoneWindowManager).screenTurningOn(anyInt(), any()); in setUp()[all …]
57 mPhoneWindowManager.assertTakeScreenshotCalled(); in testPowerVolumeDown()66 mPhoneWindowManager.overridePowerVolumeUp(POWER_VOLUME_UP_BEHAVIOR_GLOBAL_ACTIONS); in testPowerVolumeUp()68 mPhoneWindowManager.assertShowGlobalActionsCalled(); in testPowerVolumeUp()71 mPhoneWindowManager.overridePowerVolumeUp(POWER_VOLUME_UP_BEHAVIOR_MUTE); in testPowerVolumeUp()73 mPhoneWindowManager.assertVolumeMute(); in testPowerVolumeUp()82 mPhoneWindowManager.assertAccessibilityKeychordCalled(); in testVolumeDownVolumeUp()
78 TestPhoneWindowManager mPhoneWindowManager; field in ShortcutKeyTestBase127 mPhoneWindowManager = new TestPhoneWindowManager(mContext, supportSettingsUpdate); in setUpPhoneWindowManager()136 if (mPhoneWindowManager != null) { in tearDown()137 mPhoneWindowManager.tearDown(); in tearDown()142 final long downTime = mPhoneWindowManager.getCurrentTime(); in sendKeyCombination()158 mPhoneWindowManager.moveTimeForward(durationMillis); in sendKeyCombination()162 final long nextDownTime = mPhoneWindowManager.getCurrentTime(); in sendKeyCombination()174 final long eventTime = mPhoneWindowManager.getCurrentTime(); in sendKeyCombination()214 mPhoneWindowManager.getSettingsObserver().onChange( in triggerSettingsObserverChange()225 int actions = mPhoneWindowManager.interceptKeyBeforeQueueing(keyEvent); in interceptKey()[all …]
303 mPhoneWindowManager.overrideKeyEventSource(VENDOR_ID, PRODUCT_ID, DEVICE_BUS); in setUp()304 mPhoneWindowManager.overrideLaunchHome(); in setUp()305 mPhoneWindowManager.overrideSearchKeyBehavior( in setUp()307 mPhoneWindowManager.overrideEnableBugReportTrigger(true); in setUp()308 mPhoneWindowManager.overrideStatusBarManagerInternal(); in setUp()309 mPhoneWindowManager.overrideStartActivity(); in setUp()310 mPhoneWindowManager.overrideSendBroadcast(); in setUp()311 mPhoneWindowManager.overrideUserSetupComplete(); in setUp()312 mPhoneWindowManager.setupAssistForLaunch(); in setUp()313 mPhoneWindowManager.overrideTogglePanel(); in setUp()[all …]