/packages/apps/Launcher3/ext_tests/src/com/android/launcher3/testing/ |
D | DebugTestInformationHandler.java | 86 case TestProtocol.REQUEST_APP_LIST_FREEZE_FLAGS: { in call() 91 case TestProtocol.REQUEST_ENABLE_DEBUG_TRACING: in call() 92 TestProtocol.sDebugTracing = true; in call() 95 case TestProtocol.REQUEST_DISABLE_DEBUG_TRACING: in call() 96 TestProtocol.sDebugTracing = false; in call() 99 case TestProtocol.REQUEST_PID: { in call() 100 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, Os.getpid()); in call() 104 case TestProtocol.REQUEST_FORCE_GC: { in call() 109 case TestProtocol.REQUEST_VIEW_LEAK: { in call() 116 case TestProtocol.REQUEST_START_EVENT_LOGGING: { in call() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | QuickstepTestInformationHandler.java | 10 import com.android.launcher3.testing.TestProtocol; 27 case TestProtocol.REQUEST_ALL_APPS_TO_OVERVIEW_SWIPE_HEIGHT: { in call() 36 case TestProtocol.REQUEST_HOME_TO_OVERVIEW_SWIPE_HEIGHT: { in call() 39 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, (int) swipeHeight); in call() 43 case TestProtocol.REQUEST_BACKGROUND_TO_OVERVIEW_SWIPE_HEIGHT: { in call() 47 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, (int) swipeHeight); in call() 51 case TestProtocol.REQUEST_HOTSEAT_TOP: { in call() 56 case TestProtocol.REQUEST_OVERVIEW_SHARE_ENABLED: { in call() 57 response.putBoolean(TestProtocol.TEST_INFO_RESPONSE_FIELD, in call() 62 case TestProtocol.REQUEST_OVERVIEW_CONTENT_PUSH_ENABLED: { in call() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/testing/ |
D | TestInformationHandler.java | 67 case TestProtocol.REQUEST_HOME_TO_ALL_APPS_SWIPE_HEIGHT: { in call() 76 case TestProtocol.REQUEST_IS_LAUNCHER_INITIALIZED: { in call() 80 case TestProtocol.REQUEST_FREEZE_APP_LIST: in call() 85 case TestProtocol.REQUEST_UNFREEZE_APP_LIST: in call() 91 case TestProtocol.REQUEST_APPS_LIST_SCROLL_Y: { in call() 96 case TestProtocol.REQUEST_WIDGETS_SCROLL_Y: { in call() 101 case TestProtocol.REQUEST_WINDOW_INSETS: { in call() 110 case TestProtocol.REQUEST_ICON_HEIGHT: { in call() 111 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, in call() 116 case TestProtocol.REQUEST_MOCK_SENSOR_ROTATION: in call() [all …]
|
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
D | LauncherInstrumentation.java | 25 import static com.android.launcher3.testing.TestProtocol.NORMAL_STATE_ORDINAL; 68 import com.android.launcher3.testing.TestProtocol; 282 return getTestInfo(TestProtocol.REQUEST_WINDOW_INSETS) in getTargetInsets() 283 .getParcelable(TestProtocol.TEST_INFO_RESPONSE_FIELD); in getTargetInsets() 647 TestProtocol.REQUEST_IS_LAUNCHER_INITIALIZED). in waitForLauncherInitialized() 648 getBoolean(TestProtocol.TEST_INFO_RESPONSE_FIELD)) { in waitForLauncherInitialized() 740 expectEvent(TestProtocol.SEQUENCE_TIS, EVENT_TOUCH_DOWN_TIS); in pressHome() 741 expectEvent(TestProtocol.SEQUENCE_TIS, EVENT_TOUCH_UP_TIS); in pressHome() 1031 .map(state -> TestProtocol.stateOrdinalToString(state)) in eventListToString() 1050 + TestProtocol.stateOrdinalToString(expectedState) in runToState() [all …]
|
D | Background.java | 22 import static com.android.launcher3.testing.TestProtocol.OVERVIEW_STATE_ORDINAL; 31 import com.android.launcher3.testing.TestProtocol; 80 getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD); in goToOverviewUnchecked() 101 event -> TestProtocol.PAUSE_DETECTED_MESSAGE.equals(event.getClassName()), in goToOverviewUnchecked() 117 getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD) + mLauncher.getTouchSlop(); in goToOverviewUnchecked() 137 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, SQUARE_BUTTON_EVENT); in goToOverviewUnchecked() 228 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, SQUARE_BUTTON_EVENT); in quickSwitch() 232 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, SQUARE_BUTTON_EVENT); in quickSwitch() 240 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, TASK_START_EVENT); in quickSwitch() 246 return TestProtocol.REQUEST_BACKGROUND_TO_OVERVIEW_SWIPE_HEIGHT; in getSwipeHeightRequestName()
|
D | Workspace.java | 19 import static com.android.launcher3.testing.TestProtocol.ALL_APPS_STATE_ORDINAL; 20 import static com.android.launcher3.testing.TestProtocol.NORMAL_STATE_ORDINAL; 21 import static com.android.launcher3.testing.TestProtocol.SPRING_LOADED_STATE_ORDINAL; 38 import com.android.launcher3.testing.TestProtocol; 80 TestProtocol.REQUEST_HOME_TO_ALL_APPS_SWIPE_HEIGHT). in switchToAllApps() 81 getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD); in switchToAllApps() 156 TestProtocol.SEQUENCE_MAIN, LONG_CLICK_EVENT)); in ensureWorkspaceIsScrollable() 203 launcher.expectEvent(TestProtocol.SEQUENCE_MAIN, LauncherInstrumentation.EVENT_START); in dragIconToWorkspace() 246 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, EVENT_CTRL_W_DOWN); in openAllWidgets() 247 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, EVENT_CTRL_W_UP); in openAllWidgets() [all …]
|
D | AllApps.java | 31 import com.android.launcher3.testing.TestProtocol; 54 TestProtocol.REQUEST_ICON_HEIGHT). in AllApps() 55 getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD); in AllApps() 198 TestProtocol.REQUEST_APPS_LIST_SCROLL_Y) in getAllAppsScroll() 199 .getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD); in getAllAppsScroll() 240 mLauncher.getTestInfo(TestProtocol.REQUEST_FREEZE_APP_LIST); in freeze() 247 mLauncher.getTestInfo(TestProtocol.REQUEST_UNFREEZE_APP_LIST); in unfreeze() 252 final Bundle testInfo = mLauncher.getTestInfo(TestProtocol.REQUEST_APP_LIST_FREEZE_FLAGS); in verifyNotFrozen() 254 mLauncher.assertEquals(message, 0, testInfo.getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD)); in verifyNotFrozen()
|
D | LogEventChecker.java | 18 import static com.android.launcher3.testing.TestProtocol.SEQUENCE_MAIN; 19 import static com.android.launcher3.testing.TestProtocol.SEQUENCE_PILFER; 20 import static com.android.launcher3.testing.TestProtocol.SEQUENCE_TIS; 24 import com.android.launcher3.testing.TestProtocol; 48 return mLauncher.getTestInfo(TestProtocol.REQUEST_START_EVENT_LOGGING) != null; in start() 62 rawEvents = mLauncher.getTestInfo(TestProtocol.REQUEST_GET_TEST_EVENTS) in finishSync() 63 .getStringArrayList(TestProtocol.TEST_INFO_RESPONSE_FIELD); in finishSync() 87 mLauncher.getTestInfo(TestProtocol.REQUEST_STOP_EVENT_LOGGING); in finishNoWait()
|
D | Overview.java | 19 import static com.android.launcher3.testing.TestProtocol.ALL_APPS_STATE_ORDINAL; 24 import com.android.launcher3.testing.TestProtocol; 58 TestProtocol.REQUEST_HOTSEAT_TOP). in switchToAllApps() 59 getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD), in switchToAllApps()
|
D | AllAppsFromOverview.java | 19 import static com.android.launcher3.testing.TestProtocol.OVERVIEW_STATE_ORDINAL; 26 import com.android.launcher3.testing.TestProtocol; 54 TestProtocol.REQUEST_ALL_APPS_TO_OVERVIEW_SWIPE_HEIGHT). in switchBackToOverview() 55 getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD); in switchBackToOverview()
|
D | AddToHomeScreenPrompt.java | 25 import com.android.launcher3.testing.TestProtocol; 51 TestProtocol.SEQUENCE_TIS, in addAutomatically() 54 TestProtocol.SEQUENCE_TIS, LauncherInstrumentation.EVENT_TOUCH_UP_TIS); in addAutomatically()
|
D | AppIcon.java | 25 import com.android.launcher3.testing.TestProtocol; 66 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, LONG_CLICK_EVENT); in addExpectedEventsForLongClick() 76 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, LauncherInstrumentation.EVENT_START); in expectActivityStartEvents()
|
D | OverviewActions.java | 22 import com.android.launcher3.testing.TestProtocol; 75 mLauncher.expectEvent(TestProtocol.SEQUENCE_TIS, in clickAndDismissScreenshot() 77 mLauncher.expectEvent(TestProtocol.SEQUENCE_TIS, in clickAndDismissScreenshot()
|
D | AppIconMenuItem.java | 21 import com.android.launcher3.testing.TestProtocol; 50 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, LauncherInstrumentation.EVENT_START); in expectActivityStartEvents()
|
D | Widget.java | 21 import com.android.launcher3.testing.TestProtocol; 47 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, LONG_CLICK_EVENT); in addExpectedEventsForLongClick()
|
D | Widgets.java | 30 import com.android.launcher3.testing.TestProtocol; 96 TestProtocol.REQUEST_WIDGETS_SCROLL_Y) in getWidgetsScroll() 97 .getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD); in getWidgetsScroll()
|
D | OptionsPopupMenuItem.java | 23 import com.android.launcher3.testing.TestProtocol; 44 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, LauncherInstrumentation.EVENT_START); in launch()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherState.java | 21 import static com.android.launcher3.testing.TestProtocol.ALL_APPS_STATE_ORDINAL; 22 import static com.android.launcher3.testing.TestProtocol.BACKGROUND_APP_STATE_ORDINAL; 23 import static com.android.launcher3.testing.TestProtocol.HINT_STATE_ORDINAL; 24 import static com.android.launcher3.testing.TestProtocol.HINT_STATE_TWO_BUTTON_ORDINAL; 25 import static com.android.launcher3.testing.TestProtocol.NORMAL_STATE_ORDINAL; 26 import static com.android.launcher3.testing.TestProtocol.OVERVIEW_MODAL_TASK_STATE_ORDINAL; 27 import static com.android.launcher3.testing.TestProtocol.OVERVIEW_SPLIT_SELECT_ORDINAL; 28 import static com.android.launcher3.testing.TestProtocol.OVERVIEW_STATE_ORDINAL; 29 import static com.android.launcher3.testing.TestProtocol.QUICK_SWITCH_STATE_ORDINAL; 30 import static com.android.launcher3.testing.TestProtocol.SPRING_LOADED_STATE_ORDINAL; [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | AccessibilityManagerCompat.java | 30 import com.android.launcher3.testing.TestProtocol; 71 parcel.putInt(TestProtocol.STATE_FIELD, stateOrdinal); in sendStateEventToTest() 74 accessibilityManager, context, TestProtocol.SWITCHED_TO_STATE_MESSAGE, parcel); in sendStateEventToTest() 75 Log.d(TestProtocol.PERMANENT_DIAG_TAG, "sendStateEventToTest: " + stateOrdinal); in sendStateEventToTest() 82 sendEventToTest(accessibilityManager, context, TestProtocol.SCROLL_FINISHED_MESSAGE, null); in sendScrollFinishedEventToTest() 89 sendEventToTest(accessibilityManager, context, TestProtocol.PAUSE_DETECTED_MESSAGE, null); in sendPauseDetectedEventToTest()
|
/packages/apps/Launcher3/tests/src_disabled/ |
D | WorkTabTest.java | 40 import com.android.launcher3.testing.TestProtocol; 72 Log.d(TestProtocol.WORK_PROFILE_REMOVED, "Created new user uid" + mProfileUserId); in setUp() 78 Log.d(TestProtocol.WORK_PROFILE_REMOVED, "(teardown) removing uid" + mProfileUserId, in removeWorkProfile() 90 Log.d(TestProtocol.WORK_PROFILE_REMOVED, "resuming AppStore updates"); in resumeAppStoreUpdate() 168 Log.d(TestProtocol.WORK_PROFILE_REMOVED, in testWorkEduFlow() 171 Log.d(TestProtocol.WORK_PROFILE_REMOVED, "Work tab not setup. Skipping test"); in testWorkEduFlow() 176 Log.d(TestProtocol.WORK_PROFILE_REMOVED, "Work page not highlighted"); in testWorkEduFlow()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/ |
D | AbstractLauncherUiTest.java | 62 import com.android.launcher3.testing.TestProtocol; 303 Log.d(TestProtocol.WORK_PROFILE_REMOVED, in setUp() 574 assertTrue(TestProtocol.stateOrdinalToString(ordinal), in checkLauncherIntegrity() 575 ordinal == TestProtocol.NORMAL_STATE_ORDINAL); in checkLauncherIntegrity() 582 assertTrue(TestProtocol.stateOrdinalToString(ordinal), in checkLauncherIntegrity() 583 ordinal == TestProtocol.ALL_APPS_STATE_ORDINAL); in checkLauncherIntegrity() 589 assertTrue(TestProtocol.stateOrdinalToString(ordinal), in checkLauncherIntegrity() 590 ordinal == TestProtocol.OVERVIEW_STATE_ORDINAL); in checkLauncherIntegrity() 596 assertTrue(TestProtocol.stateOrdinalToString(ordinal), in checkLauncherIntegrity() 597 ordinal == TestProtocol.NORMAL_STATE_ORDINAL); in checkLauncherIntegrity()
|
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/ |
D | FallbackRecentsTest.java | 59 import com.android.launcher3.testing.TestProtocol; 190 if (TestProtocol.sDebugTracing) { in getFromRecents() 191 Log.d(TestProtocol.FALLBACK_ACTIVITY_NO_SET, "getFromRecents"); in getFromRecents() 196 if (TestProtocol.sDebugTracing) { in getFromRecents() 197 Log.d(TestProtocol.FALLBACK_ACTIVITY_NO_SET, "activity=" + activity); in getFromRecents()
|
/packages/apps/Launcher3/src/com/android/launcher3/pm/ |
D | UserCache.java | 27 import com.android.launcher3.testing.TestProtocol; 63 if (TestProtocol.sDebugTracing) { in onUsersChanged() 64 Log.d(TestProtocol.WORK_PROFILE_REMOVED, "profile changed", new Exception()); in onUsersChanged()
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | ItemLongClickListener.java | 39 import com.android.launcher3.testing.TestProtocol; 53 TestLogging.recordEvent(TestProtocol.SEQUENCE_MAIN, "onWorkspaceItemLongClick"); in onWorkspaceItemLongClick() 83 TestLogging.recordEvent(TestProtocol.SEQUENCE_MAIN, "onAllAppsItemLongClick"); in onAllAppsItemLongClick()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/ |
D | DelegateInputConsumer.java | 6 import com.android.launcher3.testing.TestProtocol; 48 TestLogging.recordEvent(TestProtocol.SEQUENCE_PILFER, "pilferPointers"); in setActive()
|