Home
last modified time | relevance | path

Searched refs:expectedKey (Results 1 – 25 of 31) sorted by relevance

12

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/action/
DActionTestsBase.java81 final int elementId, final ExpectedActionKey expectedKey) { in assertActionKey() argument
85 assertEquals(tag + " label " + expectedKey, expectedKey.getLabel(), actualKey.getLabel()); in assertActionKey()
86 assertEquals(tag + " icon " + expectedKey, expectedKey.getIconId(), actualKey.getIconId()); in assertActionKey()
90 final int actionId, final ExpectedActionKey expectedKey) { in doTestActionKey() argument
93 doTestActionKey(tag, subtype, editorInfo, expectedKey); in doTestActionKey()
97 final EditorInfo editorInfo, final ExpectedActionKey expectedKey) { in doTestActionKey() argument
101 assertActionKey(tag, layoutSet, KeyboardId.ELEMENT_ALPHABET, expectedKey); in doTestActionKey()
102 assertActionKey(tag, layoutSet, KeyboardId.ELEMENT_SYMBOLS, expectedKey); in doTestActionKey()
103 assertActionKey(tag, layoutSet, KeyboardId.ELEMENT_SYMBOLS_SHIFTED, expectedKey); in doTestActionKey()
105 assertActionKey(tag, layoutSet, KeyboardId.ELEMENT_PHONE, expectedKey); in doTestActionKey()
[all …]
DLxxActionNextTests.java30 final ExpectedActionKey expectedKey = ExpectedActionKey.newIconKey( in testActionNext() local
34 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_NEXT, expectedKey); in testActionNext()
DLxxActionSearchTests.java30 final ExpectedActionKey expectedKey = ExpectedActionKey.newIconKey( in testActionSearch() local
34 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_SEARCH, expectedKey); in testActionSearch()
DLxxActionDoneTests.java30 final ExpectedActionKey expectedKey = ExpectedActionKey.newIconKey( in testActionDone() local
34 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_DONE, expectedKey); in testActionDone()
DKlpActionSearchTests.java30 final ExpectedActionKey expectedKey = ExpectedActionKey.newIconKey( in testActionSearch() local
34 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_SEARCH, expectedKey); in testActionSearch()
DLxxActionSendTests.java30 final ExpectedActionKey expectedKey = ExpectedActionKey.newIconKey( in testActionSend() local
34 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_SEND, expectedKey); in testActionSend()
DLxxActionPreviousTests.java30 final ExpectedActionKey expectedKey = ExpectedActionKey.newIconKey( in testActionPrevious() local
34 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_PREVIOUS, expectedKey); in testActionPrevious()
DLxxActionGoTests.java30 final ExpectedActionKey expectedKey = ExpectedActionKey.newIconKey( in testActionGo() local
34 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_GO, expectedKey); in testActionGo()
DLxxActionNoneTests.java30 final ExpectedActionKey expectedKey = ExpectedActionKey.newIconKey( in testActionNone() local
34 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_NONE, expectedKey); in testActionNone()
DLxxActionUnspecifiedTests.java30 final ExpectedActionKey expectedKey = ExpectedActionKey.newIconKey( in testActionUnspecified() local
35 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_UNSPECIFIED, expectedKey); in testActionUnspecified()
DLxxActionCustomTests.java34 final ExpectedActionKey expectedKey = ExpectedActionKey.newLabelKey("customLabel"); in testActionCustom() local
35 doTestActionKey(tag, subtype, editorInfo, expectedKey); in testActionCustom()
DKlpActionUnspecifiedTests.java30 final ExpectedActionKey expectedKey = ExpectedActionKey.newIconKey( in testActionUnspecified() local
35 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_UNSPECIFIED, expectedKey); in testActionUnspecified()
DKlpActionCustomTests.java34 final ExpectedActionKey expectedKey = ExpectedActionKey.newLabelKey("customLabel"); in testActionCustom() local
35 doTestActionKey(tag, subtype, editorInfo, expectedKey); in testActionCustom()
DKlpActionNoneTests.java30 final ExpectedActionKey expectedKey = ExpectedActionKey.newIconKey( in testActionNone() local
34 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_NONE, expectedKey); in testActionNone()
DKlpActionNextTests.java32 final ExpectedActionKey expectedKey = ExpectedActionKey.newLabelKey( in testActionNext() local
34 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_NEXT, expectedKey); in testActionNext()
DKlpActionPreviousTests.java32 final ExpectedActionKey expectedKey = ExpectedActionKey.newLabelKey( in testActionPrevious() local
34 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_PREVIOUS, expectedKey); in testActionPrevious()
DKlpActionDoneTests.java32 final ExpectedActionKey expectedKey = ExpectedActionKey.newLabelKey( in testActionDone() local
34 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_DONE, expectedKey); in testActionDone()
DKlpActionGoTests.java32 final ExpectedActionKey expectedKey = ExpectedActionKey.newLabelKey( in testActionGo() local
34 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_GO, expectedKey); in testActionGo()
DKlpActionSendTests.java32 final ExpectedActionKey expectedKey = ExpectedActionKey.newLabelKey( in testActionSend() local
34 doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_SEND, expectedKey); in testActionSend()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DTimeoutToDockUserSettingsTest.java88 final String expectedKey = mValues[0]; in defaultKey_setToFirstValue_shouldSaveToSettings() local
89 mSettings.setDefaultKey(expectedKey); in defaultKey_setToFirstValue_shouldSaveToSettings()
90 assertThat(mSettings.getDefaultKey()).isEqualTo(expectedKey); in defaultKey_setToFirstValue_shouldSaveToSettings()
95 final String expectedKey = mValues[1]; in defaultKey_setToSecondValue_shouldSaveToSettings() local
96 mSettings.setDefaultKey(expectedKey); in defaultKey_setToSecondValue_shouldSaveToSettings()
97 assertThat(mSettings.getDefaultKey()).isEqualTo(expectedKey); in defaultKey_setToSecondValue_shouldSaveToSettings()
102 final String expectedKey = mValues[2]; in defaultKey_setToThirdValue_shouldSaveToSettings() local
103 mSettings.setDefaultKey(expectedKey); in defaultKey_setToThirdValue_shouldSaveToSettings()
104 assertThat(mSettings.getDefaultKey()).isEqualTo(expectedKey); in defaultKey_setToThirdValue_shouldSaveToSettings()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/storage/
DBooleanFileDatastoreTest.java283 String expectedKey = TEST_KEY + i; in testKeySetClear() local
287 .contains(expectedKey); in testKeySetClear()
290 .doesNotContain(expectedKey); in testKeySetClear()
295 .doesNotContain(expectedKey); in testKeySetClear()
298 .contains(expectedKey); in testKeySetClear()
321 String expectedKey = TEST_KEY + i; in testKeySetClearAllTrue() local
325 .contains(expectedKey); in testKeySetClearAllTrue()
328 .doesNotContain(expectedKey); in testKeySetClearAllTrue()
333 .doesNotContain(expectedKey); in testKeySetClearAllTrue()
336 .contains(expectedKey); in testKeySetClearAllTrue()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DANQPNetworkKeyTest.java44 ANQPNetworkKey expectedKey = new ANQPNetworkKey(SSID, 0, 0, ANQP_DOMAIN_ID); in buildStandardESSKey() local
46 assertEquals(expectedKey, actualKey); in buildStandardESSKey()
56 ANQPNetworkKey expectedKey = new ANQPNetworkKey(null, 0, HESSID, ANQP_DOMAIN_ID); in buildHessidKey() local
58 assertEquals(expectedKey, actualKey); in buildHessidKey()
68 ANQPNetworkKey expectedKey = new ANQPNetworkKey(SSID, BSSID, 0, 0); in buildAPKey() local
70 assertEquals(expectedKey, actualKey); in buildAPKey()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/migration/
DMigrationTestHelper.java125 String expectedKey = expectedElement.getKey(); in doContentValueMatch() local
127 if (droppedKeys.contains(expectedKey)) { in doContentValueMatch()
128 if (actual.containsKey(expectedKey)) { in doContentValueMatch()
133 if (columnsToBeSkipped.contains(expectedKey)) { in doContentValueMatch()
136 if (!actual.containsKey(expectedKey)) { in doContentValueMatch()
139 Object actualValue = actual.get(expectedKey); in doContentValueMatch()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/shared/migration/
DMigrationTestHelper.java143 String expectedKey = expectedElement.getKey(); in doContentValueMatch() local
145 if (droppedKeys.contains(expectedKey)) { in doContentValueMatch()
146 if (actual.containsKey(expectedKey)) { in doContentValueMatch()
151 if (columnsToBeSkipped.contains(expectedKey)) { in doContentValueMatch()
154 if (!actual.containsKey(expectedKey)) { in doContentValueMatch()
157 Object actualValue = actual.get(expectedKey); in doContentValueMatch()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DMetricsUtilsTest.java190 MetricsUtils.LogHistParms hp, int expectedKey, int expectedValue) { in bucketValueAndVerify() argument
192 collector.checkThat(prefix + value, h.get(expectedKey), equalTo(expectedValue)); in bucketValueAndVerify()
196 int expectedKey, int expectedValue) { in bucketValueAndVerify() argument
198 collector.checkThat(prefix + value, h.get(expectedKey), equalTo(expectedValue)); in bucketValueAndVerify()

12