Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 1422) sorted by relevance

12345678910>>...57

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DHanziToPinyinTest.java19 import android.test.suitebuilder.annotation.SmallTest;
41 private void test(final char hanzi, final String expectedPinyin) throws Exception { in test() method in HanziToPinyinTest
107 test('\u4e00', "YI"); in testTransliterator()
108 test('\u5201', "DIAO"); in testTransliterator()
109 test('\u5602', "JIAO"); in testTransliterator()
110 test('\u5a03', "WA"); in testTransliterator()
111 test('\u5e04', "DING"); in testTransliterator()
112 test('\u6205', "GANG"); in testTransliterator()
113 test('\u6606', "KUN"); in testTransliterator()
114 test('\u6a07', "XIU"); in testTransliterator()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DTaplTestsLauncher3.java19 import static androidx.test.InstrumentationRegistry.getInstrumentation;
29 import androidx.test.filters.LargeTest;
30 import androidx.test.runner.AndroidJUnit4;
62 public static void initialize(AbstractLauncherUiTest test) throws Exception { in initialize() argument
63 test.clearLauncherData(); in initialize()
64 test.mDevice.pressHome(); in initialize()
65 test.waitForLauncherCondition("Launcher didn't start", launcher -> launcher != null); in initialize()
66 test.waitForState("Launcher internal state didn't switch to Home", LauncherState.NORMAL); in initialize()
67 test.waitForResumed("Launcher internal state is still Background"); in initialize()
69 test.mLauncher.getWorkspace(); in initialize()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/password/
DSetupChooseLockPasswordAppTest.java19 import static androidx.test.espresso.Espresso.onView;
20 import static androidx.test.espresso.action.ViewActions.click;
21 import static androidx.test.espresso.action.ViewActions.pressKey;
22 import static androidx.test.espresso.assertion.ViewAssertions.matches;
23 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed;
24 import static androidx.test.espresso.matcher.ViewMatchers.isEnabled;
25 import static androidx.test.espresso.matcher.ViewMatchers.withEffectiveVisibility;
26 import static androidx.test.espresso.matcher.ViewMatchers.withId;
27 import static androidx.test.espresso.matcher.ViewMatchers.withText;
38 import androidx.test.InstrumentationRegistry;
[all …]
DChooseLockPasswordTest.java19 import static androidx.test.espresso.Espresso.onView;
20 import static androidx.test.espresso.action.ViewActions.pressKey;
21 import static androidx.test.espresso.assertion.ViewAssertions.matches;
22 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed;
23 import static androidx.test.espresso.matcher.ViewMatchers.isEnabled;
24 import static androidx.test.espresso.matcher.ViewMatchers.withEffectiveVisibility;
25 import static androidx.test.espresso.matcher.ViewMatchers.withId;
38 import androidx.test.InstrumentationRegistry;
39 import androidx.test.espresso.action.ViewActions;
40 import androidx.test.espresso.matcher.ViewMatchers;
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DUiBot.java19 import static androidx.test.espresso.Espresso.onView;
20 import static androidx.test.espresso.action.ViewActions.click;
21 import static androidx.test.espresso.assertion.ViewAssertions.matches;
22 import static androidx.test.espresso.matcher.ViewMatchers.hasFocus;
23 import static androidx.test.espresso.matcher.ViewMatchers.isAssignableFrom;
24 import static androidx.test.espresso.matcher.ViewMatchers.withClassName;
25 import static androidx.test.espresso.matcher.ViewMatchers.withId;
26 import static androidx.test.espresso.matcher.ViewMatchers.withText;
37 import android.support.test.uiautomator.By;
38 import android.support.test.uiautomator.UiDevice;
[all …]
DBreadBot.java19 import static androidx.test.espresso.Espresso.onView;
20 import static androidx.test.espresso.action.ViewActions.click;
21 import static androidx.test.espresso.assertion.ViewAssertions.matches;
22 import static androidx.test.espresso.matcher.ViewMatchers.isAssignableFrom;
23 import static androidx.test.espresso.matcher.ViewMatchers.withId;
24 import static androidx.test.espresso.matcher.ViewMatchers.withText;
31 import android.support.test.uiautomator.UiDevice;
32 import android.support.test.uiautomator.UiObjectNotFoundException;
35 import androidx.test.espresso.ViewInteraction;
36 import androidx.test.espresso.matcher.BoundedMatcher;
[all …]
DSortBot.java19 import static androidx.test.espresso.Espresso.onView;
20 import static androidx.test.espresso.action.ViewActions.click;
21 import static androidx.test.espresso.matcher.ViewMatchers.isDescendantOfA;
22 import static androidx.test.espresso.matcher.ViewMatchers.withChild;
23 import static androidx.test.espresso.matcher.ViewMatchers.withContentDescription;
24 import static androidx.test.espresso.matcher.ViewMatchers.withId;
25 import static androidx.test.espresso.matcher.ViewMatchers.withParent;
26 import static androidx.test.espresso.matcher.ViewMatchers.withText;
36 import android.support.test.uiautomator.By;
37 import android.support.test.uiautomator.UiDevice;
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/notification/
DAppNotificationSettingsTest.java21 import static androidx.test.espresso.Espresso.onView;
22 import static androidx.test.espresso.action.ViewActions.click;
23 import static androidx.test.espresso.assertion.ViewAssertions.doesNotExist;
24 import static androidx.test.espresso.assertion.ViewAssertions.matches;
25 import static androidx.test.espresso.intent.Intents.intended;
26 import static androidx.test.espresso.intent.matcher.IntentMatchers.hasExtra;
27 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed;
28 import static androidx.test.espresso.matcher.ViewMatchers.withEffectiveVisibility;
29 import static androidx.test.espresso.matcher.ViewMatchers.withId;
30 import static androidx.test.espresso.matcher.ViewMatchers.withText;
[all …]
/packages/apps/Calendar/tests/src/com/android/calendar/
DWeekNumberTest.java19 import android.test.AndroidTestCase;
20 import android.test.suitebuilder.annotation.SmallTest;
21 import android.test.suitebuilder.annotation.Smoke;
208 DateAndWeekNumber test = tests[index]; in testAll() local
209 int weekNumber = test.date.getWeekNumber(); in testAll()
210 if (weekNumber != test.expectedWeekNumber) { in testAll()
211 long millis = test.date.toMillis(false /* use isDst */); in testAll()
216 + " expected: " + test.expectedWeekNumber in testAll()
219 assertEquals(weekNumber, test.expectedWeekNumber); in testAll()
221 weekNumber = test.allDayDate.getWeekNumber(); in testAll()
[all …]
/packages/modules/CaptivePortalLogin/tests/
DAndroid.bp25 "androidx.test.rules",
26 "androidx.test.uiautomator",
29 "android.test.runner-minus-junit",
30 "androidx.test.core",
31 "androidx.test.espresso.intents",
32 "androidx.test.espresso.web",
33 "androidx.test.ext.junit",
34 "androidx.test.uiautomator",
35 "kotlin-test",
40 "android.test.runner",
[all …]
/packages/apps/Settings/tests/unit/
DAndroid.bp7 "android.test.runner",
10 "android.test.base",
11 "android.test.mock",
15 "androidx.test.core",
16 "androidx.test.rules",
17 "androidx.test.espresso.core",
18 "androidx.test.espresso.contrib-nodeps",
19 "androidx.test.espresso.intents-nodeps",
21 "platform-test-annotations",
26 // Include all test java files.
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/tether/
DWifiTetherSettingsTest.java19 import static androidx.test.espresso.Espresso.onView;
20 import static androidx.test.espresso.assertion.ViewAssertions.matches;
21 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed;
22 import static androidx.test.espresso.matcher.ViewMatchers.withText;
26 import android.support.test.uiautomator.By;
27 import android.support.test.uiautomator.UiDevice;
28 import android.support.test.uiautomator.UiObject2;
29 import android.support.test.uiautomator.Until;
31 import androidx.test.InstrumentationRegistry;
32 import androidx.test.filters.SmallTest;
[all …]
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp222 void StartDns(test::DNSResponder& dns, const std::vector<DnsRecord>& records) { in StartDns()
373 test::DNSResponder dns; in TEST_F()
396 test::DNSResponder dns; in TEST_F()
450 test::DNSResponder dns; in TEST_F()
473 test::DNSResponder dns; in TEST_F()
522 test::DNSResponder dns; in TEST_F()
584 std::vector<std::unique_ptr<test::DNSResponder>> dns; in TEST_F()
643 test::DNSResponder dns(listen_addr); in TEST_F()
644 test::DNSResponder dns2(listen_addr2); in TEST_F()
690 test::DNSResponder dns; in TEST_F()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DMimeTypes.java78 for (String test : tests) { in mimeMatches()
79 if (mimeMatches(filters, test)) { in mimeMatches()
90 for (String test : tests) { in mimeMatches()
91 if (mimeMatches(filter, test)) { in mimeMatches()
98 public static boolean mimeMatches(String[] filters, String test) { in mimeMatches() argument
103 if (mimeMatches(filter, test)) { in mimeMatches()
110 public static boolean mimeMatches(String filter, String test) { in mimeMatches() argument
111 if (test == null) { in mimeMatches()
115 } else if (filter.equals(test)) { in mimeMatches()
118 return filter.regionMatches(0, test, 0, filter.indexOf('/')); in mimeMatches()
/packages/apps/CellBroadcastReceiver/tests/unit/
DAndroid.bp19 "android.test.runner",
21 "android.test.base",
24 "androidx.test.rules",
25 "androidx.test.espresso.core",
30 // Include all test java files.
41 "android.test.runner",
43 "android.test.base",
46 "androidx.test.rules",
47 "androidx.test.espresso.core",
52 // Include all test java files.
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/fingerprint/
DFingerprintEnrollFinishTest.java18 import static androidx.test.InstrumentationRegistry.getTargetContext;
19 import static androidx.test.espresso.Espresso.onView;
20 import static androidx.test.espresso.action.ViewActions.click;
21 import static androidx.test.espresso.intent.Intents.intended;
22 import static androidx.test.espresso.intent.Intents.intending;
23 import static androidx.test.espresso.intent.matcher.IntentMatchers.hasComponent;
24 import static androidx.test.espresso.matcher.ViewMatchers.withId;
33 import androidx.test.espresso.intent.rule.IntentsTestRule;
34 import androidx.test.filters.SmallTest;
35 import androidx.test.runner.AndroidJUnit4;
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/individual/
DIndividualPickerActivityTest.java18 import static androidx.test.espresso.Espresso.onView;
19 import static androidx.test.espresso.action.ViewActions.click;
20 import static androidx.test.espresso.assertion.ViewAssertions.doesNotExist;
21 import static androidx.test.espresso.assertion.ViewAssertions.matches;
22 import static androidx.test.espresso.intent.Intents.intended;
23 import static androidx.test.espresso.intent.Intents.intending;
24 import static androidx.test.espresso.intent.matcher.ComponentNameMatchers.hasClassName;
25 import static androidx.test.espresso.intent.matcher.IntentMatchers.hasAction;
26 import static androidx.test.espresso.intent.matcher.IntentMatchers.hasComponent;
27 import static androidx.test.espresso.intent.matcher.IntentMatchers.hasExtra;
[all …]
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DZonePickerSettingsTest.java28 import android.support.test.uiautomator.By;
29 import android.support.test.uiautomator.BySelector;
30 import android.support.test.uiautomator.UiDevice;
31 import android.support.test.uiautomator.UiObject;
32 import android.support.test.uiautomator.UiObject2;
33 import android.support.test.uiautomator.UiObjectNotFoundException;
34 import android.support.test.uiautomator.UiScrollable;
35 import android.support.test.uiautomator.UiSelector;
36 import android.support.test.uiautomator.Until;
40 import androidx.test.InstrumentationRegistry;
[all …]
DHomepageDisplayTests.java23 import android.platform.test.annotations.Presubmit;
25 import android.support.test.uiautomator.By;
26 import android.support.test.uiautomator.Direction;
27 import android.support.test.uiautomator.UiDevice;
28 import android.support.test.uiautomator.UiObject2;
29 import android.support.test.uiautomator.Until;
32 import androidx.test.InstrumentationRegistry;
33 import androidx.test.filters.MediumTest;
34 import androidx.test.runner.AndroidJUnit4;
/packages/inputmethods/LatinIME/
Dbuild.gradle17 // Required if using classes in android.test.runner
18 useLibrary 'android.test.runner'
20 // Required if using classes in android.test.base
21 useLibrary 'android.test.base'
23 // Required if using classes in android.test.mock
24 useLibrary 'android.test.mock'
33 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
106 androidTestImplementation 'com.android.support.test:runner:1.0.2'
107 androidTestImplementation 'com.android.support.test:rules:1.0.2'
108 androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.3'
/packages/apps/Settings/tests/unit/src/com/android/settings/accessibility/
DAccessibilityShortcutPreferenceFragmentTest.java19 import static androidx.test.espresso.Espresso.onView;
20 import static androidx.test.espresso.assertion.ViewAssertions.matches;
21 import static androidx.test.espresso.matcher.ViewMatchers.hasDescendant;
22 import static androidx.test.espresso.matcher.ViewMatchers.isChecked;
23 import static androidx.test.espresso.matcher.ViewMatchers.isNotChecked;
24 import static androidx.test.espresso.matcher.ViewMatchers.withParent;
25 import static androidx.test.espresso.matcher.ViewMatchers.withText;
37 import androidx.test.InstrumentationRegistry;
38 import androidx.test.rule.ActivityTestRule;
39 import androidx.test.runner.AndroidJUnit4;
/packages/apps/Settings/tests/unit/src/com/android/settings/core/
DLifecycleEventHandlingTest.java24 import android.platform.test.annotations.Presubmit;
25 import android.support.test.uiautomator.By;
26 import android.support.test.uiautomator.Direction;
27 import android.support.test.uiautomator.UiDevice;
28 import android.support.test.uiautomator.UiObject2;
29 import android.support.test.uiautomator.Until;
31 import androidx.test.InstrumentationRegistry;
32 import androidx.test.filters.SmallTest;
33 import androidx.test.runner.AndroidJUnit4;
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/terms/
DTermsActivityTest.java20 import static androidx.test.espresso.Espresso.onView;
21 import static androidx.test.espresso.action.ViewActions.click;
22 import static androidx.test.espresso.assertion.ViewAssertions.matches;
23 import static androidx.test.espresso.matcher.ViewMatchers.isDisplayed;
24 import static androidx.test.espresso.matcher.ViewMatchers.withId;
25 import static androidx.test.espresso.matcher.ViewMatchers.withText;
36 import androidx.test.InstrumentationRegistry;
37 import androidx.test.espresso.ViewAssertion;
38 import androidx.test.filters.FlakyTest;
39 import androidx.test.filters.SmallTest;
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
DLandingActivityTest.java19 import static androidx.test.espresso.Espresso.onView;
20 import static androidx.test.espresso.action.ViewActions.click;
21 import static androidx.test.espresso.intent.Intents.intended;
22 import static androidx.test.espresso.intent.Intents.times;
23 import static androidx.test.espresso.intent.matcher.IntentMatchers.hasComponent;
24 import static androidx.test.espresso.matcher.ViewMatchers.withId;
25 import static androidx.test.espresso.matcher.ViewMatchers.withText;
32 import androidx.test.espresso.intent.rule.IntentsTestRule;
33 import androidx.test.filters.SmallTest;
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/
DManagedProfileTest.java18 import static androidx.test.espresso.Espresso.onView;
19 import static androidx.test.espresso.action.ViewActions.click;
20 import static androidx.test.espresso.matcher.ViewMatchers.withClassName;
21 import static androidx.test.espresso.matcher.ViewMatchers.withId;
22 import static androidx.test.espresso.matcher.ViewMatchers.withText;
31 import android.test.AndroidTestCase;
35 import androidx.test.espresso.ViewInteraction;
36 import androidx.test.espresso.base.DefaultFailureHandler;
37 import androidx.test.filters.LargeTest;
38 import androidx.test.rule.ActivityTestRule;

12345678910>>...57