188984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka/*
288984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka * Copyright (C) 2014 The Android Open Source Project
388984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka *
488984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka * Licensed under the Apache License, Version 2.0 (the "License");
588984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka * you may not use this file except in compliance with the License.
688984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka * You may obtain a copy of the License at
788984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka *
888984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka *      http://www.apache.org/licenses/LICENSE-2.0
988984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka *
1088984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka * Unless required by applicable law or agreed to in writing, software
1188984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka * distributed under the License is distributed on an "AS IS" BASIS,
1288984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1388984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka * See the License for the specific language governing permissions and
1488984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka * limitations under the License.
1588984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka */
1688984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka
1788984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaokapackage com.android.inputmethod.keyboard.action;
1888984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka
19dd052f006b9b22097aa4fa27854bd2ecc62f82cfTadashi G. Takaokaimport android.test.suitebuilder.annotation.LargeTest;
2088984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaokaimport android.view.inputmethod.EditorInfo;
2188984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaokaimport android.view.inputmethod.InputMethodSubtype;
2288984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka
2388984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaokaimport com.android.inputmethod.keyboard.internal.KeyboardIconsSet;
2488984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaokaimport com.android.inputmethod.latin.utils.SubtypeLocaleUtils;
2588984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka
26dd052f006b9b22097aa4fa27854bd2ecc62f82cfTadashi G. Takaoka@LargeTest
2788984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaokapublic class LxxActionSearchTests extends LxxActionTestsBase {
2888984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka    public void testActionSearch() {
2988984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka        final ExpectedActionKey expectedKey = ExpectedActionKey.newIconKey(
3088984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka                KeyboardIconsSet.NAME_SEARCH_KEY);
3188984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka        for (final InputMethodSubtype subtype : getAllSubtypesList()) {
3288984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka            final String tag = "search " + SubtypeLocaleUtils.getSubtypeNameForLogging(subtype);
3388984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka            doTestActionKey(tag, subtype, EditorInfo.IME_ACTION_SEARCH, expectedKey);
3488984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka        }
3588984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka    }
3688984aedae83d15b47a22f2716c8d01b1fa7f4d8Tadashi G. Takaoka}
37