From aa3ec01f9f0a9b50dd49c67d78fcc8fd0777dd89 Mon Sep 17 00:00:00 2001 From: Vaibhav Devmurari Date: Wed, 21 Dec 2022 00:32:21 +0000 Subject: [PATCH] Change keyboard layout parameters to include Layout type. Test: atest KeyboardLayoutPickerControllerTest Bug: 259530132 Change-Id: I112d2c25ca5eeacee445e247bf40a57d358e7f42 --- .../inputmethod/KeyboardLayoutPickerControllerTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/robotests/src/com/android/settings/inputmethod/KeyboardLayoutPickerControllerTest.java b/tests/robotests/src/com/android/settings/inputmethod/KeyboardLayoutPickerControllerTest.java index a26ef8c6c34..52d10833ef8 100644 --- a/tests/robotests/src/com/android/settings/inputmethod/KeyboardLayoutPickerControllerTest.java +++ b/tests/robotests/src/com/android/settings/inputmethod/KeyboardLayoutPickerControllerTest.java @@ -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);