Home
last modified time | relevance | path

Searched refs:TestProtocol (Results 1 – 25 of 81) sorted by relevance

1234

/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DQuickstepTestInformationHandler.java3 import static com.android.launcher3.testing.shared.TestProtocol.NPE_TRANSIENT_TASKBAR;
18 import com.android.launcher3.testing.shared.TestProtocol;
41 case TestProtocol.REQUEST_HOME_TO_OVERVIEW_SWIPE_HEIGHT: { in call()
44 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, (int) swipeHeight); in call()
48 case TestProtocol.REQUEST_BACKGROUND_TO_OVERVIEW_SWIPE_HEIGHT: { in call()
52 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, (int) swipeHeight); in call()
56 case TestProtocol.REQUEST_GET_FOCUSED_TASK_HEIGHT_FOR_TABLET: { in call()
63 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, focusedTaskRect.height()); in call()
67 case TestProtocol.REQUEST_GET_GRID_TASK_SIZE_RECT_FOR_TABLET: { in call()
74 response.putParcelable(TestProtocol.TEST_INFO_RESPONSE_FIELD, gridTaskRect); in call()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/testing/
DTestInformationHandler.java45 import com.android.launcher3.testing.shared.TestProtocol;
91 case TestProtocol.REQUEST_HOME_TO_ALL_APPS_SWIPE_HEIGHT: { in call()
100 case TestProtocol.REQUEST_IS_LAUNCHER_INITIALIZED: { in call()
104 case TestProtocol.REQUEST_FREEZE_APP_LIST: in call()
109 case TestProtocol.REQUEST_UNFREEZE_APP_LIST: in call()
115 case TestProtocol.REQUEST_APPS_LIST_SCROLL_Y: { in call()
120 case TestProtocol.REQUEST_WIDGETS_SCROLL_Y: { in call()
125 case TestProtocol.REQUEST_TARGET_INSETS: { in call()
135 case TestProtocol.REQUEST_WINDOW_INSETS: { in call()
143 case TestProtocol.REQUEST_ICON_HEIGHT: { in call()
[all …]
/packages/apps/Launcher3/ext_tests/src/com/android/launcher3/testing/
DDebugTestInformationHandler.java19 import static com.android.launcher3.testing.shared.TestProtocol.VIEW_AND_ACTIVITY_LEAKS;
40 import com.android.launcher3.testing.shared.TestProtocol;
138 case TestProtocol.REQUEST_APP_LIST_FREEZE_FLAGS: { in call()
143 case TestProtocol.REQUEST_ENABLE_DEBUG_TRACING: in call()
144 TestProtocol.sDebugTracing = true; in call()
147 case TestProtocol.REQUEST_DISABLE_DEBUG_TRACING: in call()
148 TestProtocol.sDebugTracing = false; in call()
151 case TestProtocol.REQUEST_PID: { in call()
152 response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, Os.getpid()); in call()
156 case TestProtocol.REQUEST_FORCE_GC: { in call()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DViewOnDrawExecutor.java25 import com.android.launcher3.testing.shared.TestProtocol;
47 if (TestProtocol.sDebugTracing) { in ViewOnDrawExecutor()
48 Log.d(TestProtocol.FLAKY_BINDING, "Initialize ViewOnDrawExecutor"); in ViewOnDrawExecutor()
57 if (TestProtocol.sDebugTracing) { in attachTo()
58 Log.d(TestProtocol.FLAKY_BINDING, "ViewOnDrawExecutor.attachTo: launcher=" + launcher in attachTo()
70 if (TestProtocol.sDebugTracing) { in attachObserver()
71 Log.d(TestProtocol.FLAKY_BINDING, in attachObserver()
81 if (TestProtocol.sDebugTracing) { in onViewAttachedToWindow()
82 Log.d(TestProtocol.FLAKY_BINDING, "ViewOnDrawExecutor.onViewAttachedToWindow"); in onViewAttachedToWindow()
92 if (TestProtocol.sDebugTracing) { in onDraw()
[all …]
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DLauncherInstrumentation.java26 import static com.android.launcher3.testing.shared.TestProtocol.NORMAL_STATE_ORDINAL;
69 import com.android.launcher3.testing.shared.TestProtocol;
348 extra.putParcelable(TestProtocol.TEST_INFO_REQUEST_FIELD, request); in getTestInfo()
353 return getTestInfo(TestProtocol.REQUEST_TARGET_INSETS) in getTargetInsets()
354 .getParcelable(TestProtocol.TEST_INFO_RESPONSE_FIELD); in getTargetInsets()
358 return getTestInfo(TestProtocol.REQUEST_WINDOW_INSETS) in getWindowInsets()
359 .getParcelable(TestProtocol.TEST_INFO_RESPONSE_FIELD); in getWindowInsets()
363 return getTestInfo(TestProtocol.REQUEST_IS_TABLET) in isTablet()
364 .getBoolean(TestProtocol.TEST_INFO_RESPONSE_FIELD); in isTablet()
368 return getTestInfo(TestProtocol.REQUEST_IS_TWO_PANELS) in isTwoPanels()
[all …]
DBackground.java22 import static com.android.launcher3.testing.shared.TestProtocol.OVERVIEW_STATE_ORDINAL;
31 import com.android.launcher3.testing.shared.TestProtocol;
99 event -> TestProtocol.PAUSE_DETECTED_MESSAGE.equals( in goToOverviewUnchecked()
136 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, in goToOverviewUnchecked()
138 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, in goToOverviewUnchecked()
141 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, SQUARE_BUTTON_EVENT); in goToOverviewUnchecked()
165 mLauncher.expectEvent(TestProtocol.SEQUENCE_PILFER, in sendDownPointerToEnterOverviewToLauncher()
174 TestProtocol.TEST_INFO_RESPONSE_FIELD); in sendSwipeUpAndHoldToEnterOverviewGestureToLauncher()
196 TestProtocol.TEST_INFO_RESPONSE_FIELD); in sendUpPointerToEnterOverviewToLauncher()
278 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, in quickSwitch()
[all …]
DWorkspace.java22 import static com.android.launcher3.testing.shared.TestProtocol.ALL_APPS_STATE_ORDINAL;
23 import static com.android.launcher3.testing.shared.TestProtocol.NORMAL_STATE_ORDINAL;
44 import com.android.launcher3.testing.shared.TestProtocol;
95 TestProtocol.REQUEST_HOME_TO_ALL_APPS_SWIPE_HEIGHT) in switchToAllApps()
96 .getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD); in switchToAllApps()
249 TestProtocol.SEQUENCE_MAIN, LONG_CLICK_EVENT)); in dragIcon()
322 () -> mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, LONG_CLICK_EVENT), in dragAndCancelAppIcon()
346 () -> mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, LONG_CLICK_EVENT), in deleteAppIcon()
407 TestProtocol.REQUEST_WORKSPACE_CELL_LAYOUT_SIZE).getIntArray( in getIconGridDimensions()
408 TestProtocol.TEST_INFO_RESPONSE_FIELD); in getIconGridDimensions()
[all …]
DAllApps.java35 import com.android.launcher3.testing.shared.TestProtocol;
62 mIconHeight = mLauncher.getTestInfo(TestProtocol.REQUEST_ICON_HEIGHT) in AllApps()
63 .getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD); in AllApps()
221 return mLauncher.getTestInfo(TestProtocol.REQUEST_ALL_APPS_BOTTOM_PADDING) in getAppsListRecyclerBottomPadding()
222 .getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD); in getAppsListRecyclerBottomPadding()
263 TestProtocol.REQUEST_APPS_LIST_SCROLL_Y) in getAllAppsScroll()
264 .getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD); in getAllAppsScroll()
317 mLauncher.getTestInfo(TestProtocol.REQUEST_FREEZE_APP_LIST); in freeze()
324 mLauncher.getTestInfo(TestProtocol.REQUEST_UNFREEZE_APP_LIST); in unfreeze()
334 final Bundle testInfo = mLauncher.getTestInfo(TestProtocol.REQUEST_APP_LIST_FREEZE_FLAGS); in getFreezeFlags()
[all …]
DLogEventChecker.java18 import static com.android.launcher3.testing.shared.TestProtocol.SEQUENCE_MAIN;
19 import static com.android.launcher3.testing.shared.TestProtocol.SEQUENCE_PILFER;
20 import static com.android.launcher3.testing.shared.TestProtocol.SEQUENCE_TIS;
24 import com.android.launcher3.testing.shared.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()
DLaunchedAppState.java20 import static com.android.launcher3.testing.shared.TestProtocol.REQUEST_DISABLE_BLOCK_TIMEOUT;
21 import static com.android.launcher3.testing.shared.TestProtocol.REQUEST_DISABLE_MANUAL_TASKBAR_STAS…
22 import static com.android.launcher3.testing.shared.TestProtocol.REQUEST_ENABLE_BLOCK_TIMEOUT;
23 import static com.android.launcher3.testing.shared.TestProtocol.REQUEST_ENABLE_MANUAL_TASKBAR_STASH…
24 import static com.android.launcher3.testing.shared.TestProtocol.REQUEST_STASHED_TASKBAR_HEIGHT;
33 import com.android.launcher3.testing.shared.TestProtocol;
103 .getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD) / 2); in showTaskbar()
DLaunchable.java19 import static com.android.launcher3.testing.shared.TestProtocol.SPRING_LOADED_STATE_ORDINAL;
29 import com.android.launcher3.testing.shared.TestProtocol;
94 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, OverviewTask.SPLIT_START_EVENT); in launchIntoSplitScreen()
172 return mLauncher.getTestInfo(TestProtocol.REQUEST_START_DRAG_THRESHOLD).getInt( in getStartDragThreshold()
173 TestProtocol.TEST_INFO_RESPONSE_FIELD); in getStartDragThreshold()
DHomeAllApps.java18 import static com.android.launcher3.testing.shared.TestProtocol.NORMAL_STATE_ORDINAL;
23 import com.android.launcher3.testing.shared.TestProtocol;
90 return mLauncher.getTestInfo(TestProtocol.REQUEST_ALL_APPS_TOP_PADDING) in getAppsListRecyclerTopPadding()
91 .getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD); in getAppsListRecyclerTopPadding()
DAllAppsFromTaskbar.java21 import com.android.launcher3.testing.shared.TestProtocol;
56 return mLauncher.getTestInfo(TestProtocol.REQUEST_TASKBAR_ALL_APPS_TOP_PADDING) in getAppsListRecyclerTopPadding()
57 .getInt(TestProtocol.TEST_INFO_RESPONSE_FIELD); in getAppsListRecyclerTopPadding()
DOverviewTask.java28 import com.android.launcher3.testing.shared.TestProtocol;
124 event -> TestProtocol.DISMISS_ANIMATION_ENDS_MESSAGE.equals(event.getClassName()), in dismissBySwipingUp()
151 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, SPLIT_START_EVENT); in open()
161 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, TASK_START_EVENT); in open()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DAddWorkspaceItemsTask.java42 import com.android.launcher3.testing.shared.TestProtocol;
100 if (TestProtocol.sDebugTracing) { in execute()
101 Log.d(TestProtocol.MISSING_PROMISE_ICON, in execute()
110 if (TestProtocol.sDebugTracing) { in execute()
111 Log.d(TestProtocol.MISSING_PROMISE_ICON, in execute()
153 if (TestProtocol.sDebugTracing) { in execute()
154 Log.d(TestProtocol.MISSING_PROMISE_ICON, LOG + " Null packageName."); in execute()
164 if (TestProtocol.sDebugTracing) { in execute()
165 Log.d(TestProtocol.MISSING_PROMISE_ICON, LOG + "Failed verification."); in execute()
177 if (TestProtocol.sDebugTracing) { in execute()
[all …]
DItemInstallQueue.java52 import com.android.launcher3.testing.shared.TestProtocol;
122 if (TestProtocol.sDebugTracing) { in flushQueueInBackground()
123 Log.d(TestProtocol.MISSING_PROMISE_ICON, in flushQueueInBackground()
130 if (TestProtocol.sDebugTracing) { in flushQueueInBackground()
131 Log.d(TestProtocol.MISSING_PROMISE_ICON, in flushQueueInBackground()
143 if (TestProtocol.sDebugTracing) { in flushQueueInBackground()
144 Log.d(TestProtocol.MISSING_PROMISE_ICON, in flushQueueInBackground()
207 if (TestProtocol.sDebugTracing) { in queuePendingShortcutInfo()
208 Log.d(TestProtocol.MISSING_PROMISE_ICON, LOG + " queuePendingShortcutInfo" in queuePendingShortcutInfo()
DBaseLauncherBinder.java37 import com.android.launcher3.testing.shared.TestProtocol;
261 if (TestProtocol.sDebugTracing) { in bind()
262 Log.d(TestProtocol.NULL_INT_SET, "bind (1) currentScreenIds: " in bind()
271 if (TestProtocol.sDebugTracing) { in bind()
272 Log.d(TestProtocol.NULL_INT_SET, "bind (2) currentScreenIds: " in bind()
282 if (TestProtocol.sDebugTracing) { in bind()
283 Log.d(TestProtocol.FLAKY_BINDING, "scheduling: startBinding"); in bind()
303 if (TestProtocol.sDebugTracing) { in bind()
304 Log.d(TestProtocol.FLAKY_BINDING, "scheduling: finishBindingItems"); in bind()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherState.java22 import static com.android.launcher3.testing.shared.TestProtocol.ALL_APPS_STATE_ORDINAL;
23 import static com.android.launcher3.testing.shared.TestProtocol.BACKGROUND_APP_STATE_ORDINAL;
24 import static com.android.launcher3.testing.shared.TestProtocol.HINT_STATE_ORDINAL;
25 import static com.android.launcher3.testing.shared.TestProtocol.HINT_STATE_TWO_BUTTON_ORDINAL;
26 import static com.android.launcher3.testing.shared.TestProtocol.NORMAL_STATE_ORDINAL;
27 import static com.android.launcher3.testing.shared.TestProtocol.OVERVIEW_MODAL_TASK_STATE_ORDINAL;
28 import static com.android.launcher3.testing.shared.TestProtocol.OVERVIEW_SPLIT_SELECT_ORDINAL;
29 import static com.android.launcher3.testing.shared.TestProtocol.OVERVIEW_STATE_ORDINAL;
30 import static com.android.launcher3.testing.shared.TestProtocol.QUICK_SWITCH_STATE_ORDINAL;
31 import static com.android.launcher3.testing.shared.TestProtocol.SPRING_LOADED_STATE_ORDINAL;
[all …]
DSessionCommitReceiver.java34 import com.android.launcher3.testing.shared.TestProtocol;
56 if (TestProtocol.sDebugTracing) { in processIntent()
57 Log.d(TestProtocol.MISSING_PROMISE_ICON, LOG + " not enabled"); in processIntent()
67 if (TestProtocol.sDebugTracing) { in processIntent()
68 Log.d(TestProtocol.MISSING_PROMISE_ICON, LOG + " invalid intent"); in processIntent()
79 if (TestProtocol.sDebugTracing) { in processIntent()
81 Log.d(TestProtocol.MISSING_PROMISE_ICON, LOG in processIntent()
DDropTargetBar.java41 import com.android.launcher3.testing.shared.TestProtocol;
309 if (TestProtocol.sDebugTracing) { in animateToVisibility()
310 Log.d(TestProtocol.NO_DROP_TARGET, "8"); in animateToVisibility()
338 if (TestProtocol.sDebugTracing) { in onDragStart()
339 Log.d(TestProtocol.NO_DROP_TARGET, "7"); in onDragStart()
368 if (TestProtocol.sDebugTracing) { in onVisibilityChanged()
370 Log.d(TestProtocol.NO_DROP_TARGET, "9"); in onVisibilityChanged()
372 Log.d(TestProtocol.NO_DROP_TARGET, "Hiding drop target", new Exception()); in onVisibilityChanged()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DAccessibilityManagerCompat.java30 import com.android.launcher3.testing.shared.TestProtocol;
70 parcel.putInt(TestProtocol.STATE_FIELD, stateOrdinal); in sendStateEventToTest()
73 accessibilityManager, context, TestProtocol.SWITCHED_TO_STATE_MESSAGE, parcel); in sendStateEventToTest()
74 Log.d(TestProtocol.PERMANENT_DIAG_TAG, "sendStateEventToTest: " + stateOrdinal); in sendStateEventToTest()
81 sendEventToTest(accessibilityManager, context, TestProtocol.SCROLL_FINISHED_MESSAGE, null); in sendScrollFinishedEventToTest()
88 sendEventToTest(accessibilityManager, context, TestProtocol.PAUSE_DETECTED_MESSAGE, null); in sendPauseDetectedEventToTest()
95 sendEventToTest(accessibilityManager, context, TestProtocol.DISMISS_ANIMATION_ENDS_MESSAGE, in sendDismissAnimationEndsEventToTest()
106 sendEventToTest(accessibilityManager, context, TestProtocol.FOLDER_OPENED_MESSAGE, null); in sendFolderOpenedEventToTest()
/packages/apps/Launcher3/src/com/android/launcher3/pm/
DInstallSessionHelper.java42 import com.android.launcher3.testing.shared.TestProtocol;
162 if (TestProtocol.sDebugTracing) { in verify()
163 Log.d(TestProtocol.MISSING_PROMISE_ICON, LOG + " verify" in verify()
249 if (TestProtocol.sDebugTracing) { in tryQueuePromiseAppIcon()
250 Log.d(TestProtocol.MISSING_PROMISE_ICON, LOG + " tryQueuePromiseAppIcon" in tryQueuePromiseAppIcon()
271 if (TestProtocol.sDebugTracing) { in verifySessionInfo()
277 Log.d(TestProtocol.MISSING_PROMISE_ICON, LOG + " verifySessionInfo" in verifySessionInfo()
DInstallSessionTracker.java35 import com.android.launcher3.testing.shared.TestProtocol;
73 if (TestProtocol.sDebugTracing) { in onCreated()
74 Log.d(TestProtocol.MISSING_PROMISE_ICON, "Session created sessionId=" + sessionId in onCreated()
82 if (TestProtocol.sDebugTracing) { in onCreated()
83 Log.d(TestProtocol.MISSING_PROMISE_ICON, "Session created sessionId=" + sessionId in onCreated()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DAbstractLauncherUiTest.java64 import com.android.launcher3.testing.shared.TestProtocol;
560 assertTrue(TestProtocol.stateOrdinalToString(ordinal), in checkLauncherIntegrity()
561 ordinal == TestProtocol.NORMAL_STATE_ORDINAL); in checkLauncherIntegrity()
568 assertTrue(TestProtocol.stateOrdinalToString(ordinal), in checkLauncherIntegrity()
569 ordinal == TestProtocol.ALL_APPS_STATE_ORDINAL); in checkLauncherIntegrity()
574 ordinal, TestProtocol.OVERVIEW_STATE_ORDINAL); in checkLauncherIntegrity()
579 ordinal, TestProtocol.OVERVIEW_SPLIT_SELECT_ORDINAL); in checkLauncherIntegrity()
586 assertTrue(TestProtocol.stateOrdinalToString(ordinal), in checkLauncherIntegrity()
587 ordinal == TestProtocol.NORMAL_STATE_ORDINAL); in checkLauncherIntegrity()
648 assertEquals(TestProtocol.stateOrdinalToString(ordinal), ordinal, expectedOrdinal); in verifyOverviewState()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DItemLongClickListener.java38 import com.android.launcher3.testing.shared.TestProtocol;
55 TestLogging.recordEvent(TestProtocol.SEQUENCE_MAIN, "Widgets.onLongClick"); in onWorkspaceItemLongClick()
57 TestLogging.recordEvent(TestProtocol.SEQUENCE_MAIN, "onWorkspaceItemLongClick"); in onWorkspaceItemLongClick()
89 TestLogging.recordEvent(TestProtocol.SEQUENCE_MAIN, "onAllAppsItemLongClick"); in onAllAppsItemLongClick()

1234