Change keyboard layout parameters to include Layout type.

Test: atest KeyboardLayoutPickerControllerTest
Bug: 259530132
Change-Id: I112d2c25ca5eeacee445e247bf40a57d358e7f42
This commit is contained in:
Vaibhav Devmurari
2022-12-21 00:32:21 +00:00
parent d0c68b3807
commit aa3ec01f9f

View File

@@ -174,7 +174,7 @@ public class KeyboardLayoutPickerControllerTest {
}
private void initializeOneLayout() {
final KeyboardLayout[] keyboardLayouts = {new KeyboardLayout("", "", "", 1, null, 1, 1)};
final KeyboardLayout[] keyboardLayouts = {new KeyboardLayout("", "", "", 1, null, 0, 1, 1)};
when(mInputManager.getKeyboardLayoutsForInputDevice(
any(InputDeviceIdentifier.class))).thenReturn(
keyboardLayouts);
@@ -183,8 +183,8 @@ public class KeyboardLayoutPickerControllerTest {
}
private void initializeTwoLayouts() {
final KeyboardLayout[] keyboardLayouts = {new KeyboardLayout("", "", "", 1, null, 1, 1),
new KeyboardLayout("", "", "", 2, null, 2, 2)};
final KeyboardLayout[] keyboardLayouts = {new KeyboardLayout("", "", "", 1, null, 0, 1, 1),
new KeyboardLayout("", "", "", 2, null, 0, 2, 2)};
when(mInputManager.getKeyboardLayoutsForInputDevice(any(InputDeviceIdentifier.class))).
thenReturn(keyboardLayouts);