Adding test protocol support for getting num all apps columns

Test: Presubmit
Bug: 303257279
Flag: not needed
Change-Id: I9c6299fb3ff077bc42ca22609d2ff0232377a370
This commit is contained in:
Jagrut Desai
2023-10-10 16:06:15 -07:00
parent 461b65fa4e
commit 8e4077f8cd
3 changed files with 12 additions and 0 deletions

View File

@@ -165,6 +165,11 @@ public class TestInformationHandler implements ResourceBasedOverride {
response.putBoolean(TestProtocol.TEST_INFO_RESPONSE_FIELD, mDeviceProfile.isTablet);
return response;
case TestProtocol.REQUEST_NUM_ALL_APPS_COLUMNS:
response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD,
mDeviceProfile.numShownAllAppsColumns);
return response;
case TestProtocol.REQUEST_IS_TWO_PANELS:
response.putBoolean(TestProtocol.TEST_INFO_RESPONSE_FIELD,
FOLDABLE_SINGLE_PAGE.get() ? false : mDeviceProfile.isTwoPanels);