mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +00:00
Merge "Add enable-suggestion option via TestProcotol so that test can opt-in to show live suggestion" into tm-qpr-dev
This commit is contained in:
@@ -124,6 +124,7 @@ public final class TestProtocol {
|
||||
"get-grid-task-size-rect-for-tablet";
|
||||
public static final String REQUEST_GET_OVERVIEW_PAGE_SPACING = "get-overview-page-spacing";
|
||||
public static final String REQUEST_ENABLE_ROTATION = "enable_rotation";
|
||||
public static final String REQUEST_ENABLE_SUGGESTION = "enable-suggestion";
|
||||
|
||||
public static boolean sDebugTracing = false;
|
||||
public static final String REQUEST_ENABLE_DEBUG_TRACING = "enable-debug-tracing";
|
||||
|
||||
@@ -391,6 +391,10 @@ public final class LauncherInstrumentation {
|
||||
getTestInfo(TestProtocol.REQUEST_ENABLE_ROTATION, Boolean.toString(on));
|
||||
}
|
||||
|
||||
public void setEnableSuggestion(boolean enableSuggestion) {
|
||||
getTestInfo(TestProtocol.REQUEST_ENABLE_SUGGESTION, Boolean.toString(enableSuggestion));
|
||||
}
|
||||
|
||||
public boolean hadNontestEvents() {
|
||||
return getTestInfo(TestProtocol.REQUEST_GET_HAD_NONTEST_EVENTS)
|
||||
.getBoolean(TestProtocol.TEST_INFO_RESPONSE_FIELD);
|
||||
|
||||
Reference in New Issue
Block a user