Home
last modified time | relevance | path

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

12345678910>>...33

/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 …]
DGlobalSearchSupportTest.java29 import android.test.suitebuilder.annotation.MediumTest;
73 "Deer Dough").build().test(); in testSearchSuggestionsByNameWithPhoto()
81 .expectedText1("Deer Dough").expectedText2("foo@acme.com").build().test(); in testSearchSuggestionsByEmailWithPhoto()
88 null).build().test(); in testSearchSuggestionsByName()
95 "Little Fawn").build().test(); in testSearchByNickname()
102 "Google").build().test(); in testSearchByCompany()
109 "Deer Dough").expectedText2("Software Engineer, Google").build().test(); in testSearchByTitleWithCompany()
118 "Deer Dough").expectedText2("1-800-4664-411").build().test(); in testSearchSuggestionsByPhoneNumberOnNonPhone()
152 public void test() { in test() method in GlobalSearchSupportTest.SuggestionTester
/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/apps/ManagedProvisioning/tests/
DREADME4 The test apk then needs to be installed onto your test device via for example
8 $ adb shell am instrument -w com.android.managedprovisioning.tests/android.test.InstrumentationTest…
11 …managedprovisioning.<class> com.android.managedprovisioning.tests/android.test.InstrumentationTest…
13 To run a specific test:
14 … class com.android.managedprovisioning.<class>#<test> com.android.managedprovisioning.tests/androi…
17 http://developer.android.com/reference/android/test/InstrumentationTestRunner.html
/packages/apps/Settings/tests/unit/
DREADME4 The test apk then needs to be installed onto your test device via for example
8 $ adb shell am instrument -w com.android.settings.tests.unit/android.support.test.runner.AndroidJUn…
11 ….android.settings.<class> com.android.settings.tests.unit/android.support.test.runner.AndroidJUnit…
13 To run a specific test:
14 …ment -w -e class com.android.settings.<class>#<test> com.android.settings.tests.unit/android.suppo…
17 http://developer.android.com/reference/android/support/test/runner/AndroidJUnitRunner.html
/packages/apps/ExactCalculator/tests/
DREADME.txt7 4) adb shell am instrument -w com.android.calculator2.tests/android.test.InstrumentationTestRunner
11 1. A superficial test of calculator functionality through the UI.
12 This is a resurrected version of a test that appeared in KitKat.
16 2. A test of the BoundedRationals library that mostly checks for agreement
23 3. A quick test of Evaluator.testUnflipZeroes(), which we do not know how to
24 test manually.
28 to test. Some of them are difficult to test automatically, because they
33 Some interesting manual test cases:
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/
DContactDeletionInteractionTest.java23 import android.test.ActivityInstrumentationTestCase2;
24 import android.test.suitebuilder.annotation.SmallTest;
28 import com.android.contacts.common.test.FragmentTestActivity;
29 import com.android.contacts.common.test.IntegrationTestUtils;
30 import com.android.contacts.common.test.mocks.ContactsMockContext;
31 import com.android.contacts.common.test.mocks.MockContentProvider;
32 import com.android.contacts.common.test.mocks.MockContentProvider.Query;
37 import com.android.contacts.common.test.mocks.MockAccountTypeManager;
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/
DUiDeviceAsserts.java22 import android.support.test.uiautomator.By;
23 import android.support.test.uiautomator.BySelector;
24 import android.support.test.uiautomator.Direction;
25 import android.support.test.uiautomator.SearchCondition;
26 import android.support.test.uiautomator.UiDevice;
27 import android.support.test.uiautomator.UiObject2;
28 import android.support.test.uiautomator.Until;
DSidePanelHelper.java20 import android.support.test.uiautomator.By;
21 import android.support.test.uiautomator.BySelector;
22 import android.support.test.uiautomator.Direction;
23 import android.support.test.uiautomator.UiDevice;
24 import android.support.test.uiautomator.UiObject2;
DMenuHelper.java22 import android.support.test.uiautomator.By;
23 import android.support.test.uiautomator.BySelector;
24 import android.support.test.uiautomator.Direction;
25 import android.support.test.uiautomator.UiDevice;
26 import android.support.test.uiautomator.UiObject2;
27 import android.support.test.uiautomator.Until;
DLiveChannelsUiDeviceHelper.java8 import android.support.test.uiautomator.By;
9 import android.support.test.uiautomator.BySelector;
10 import android.support.test.uiautomator.UiDevice;
11 import android.support.test.uiautomator.Until;
/packages/apps/TV/tests/jank/src/com/android/tv/tests/jank/
DProgramGuideJankTest.java22 import android.support.test.filters.SdkSuppress;
23 import android.support.test.jank.GfxMonitor;
24 import android.support.test.jank.JankTest;
25 import android.support.test.jank.JankTestBase;
26 import android.support.test.uiautomator.UiDevice;
27 import android.support.test.uiautomator.Until;
28 import android.test.suitebuilder.annotation.MediumTest;
/packages/apps/Launcher3/tests/src/com/android/launcher3/
DQuickAddWidgetTest.java6 import android.support.test.uiautomator.By;
7 import android.support.test.uiautomator.Direction;
8 import android.support.test.uiautomator.UiDevice;
9 import android.support.test.uiautomator.UiObject2;
10 import android.support.test.uiautomator.Until;
11 import android.test.InstrumentationTestCase;
DRotationPreferenceTest.java7 import android.support.test.uiautomator.UiDevice;
8 import android.support.test.uiautomator.UiObject;
9 import android.support.test.uiautomator.UiSelector;
10 import android.test.InstrumentationTestCase;
/packages/apps/Contacts/tests/src/com/android/contacts/activities/
DPeopleActivityTest.java30 import android.test.ActivityInstrumentationTestCase2;
31 import android.test.suitebuilder.annotation.SmallTest;
38 import com.android.contacts.common.test.mocks.ContactsMockContext;
39 import com.android.contacts.common.test.mocks.MockContentProvider;
40 import com.android.contacts.common.test.mocks.MockContentProvider.Query;
48 import com.android.contacts.common.test.mocks.MockAccountTypeManager;
49 import com.android.contacts.common.test.mocks.MockContactPhotoManager;
50 import com.android.contacts.common.test.mocks.MockSharedPreferences;
/packages/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/
DTestCarActivity.java23 import android.test.suitebuilder.annotation.MediumTest;
87 private void doRunTest(TestAction<TestCarActivity> test) { in doRunTest() argument
88 Log.d(TAG, "doRunTest " + test); in doRunTest()
89 if (test != null) { in doRunTest()
90 test.doRun(this); in doRunTest()
/packages/apps/Dialer/tests/
Dproguard.flags13 -keep @com.android.contacts.common.test.NeededForTesting class *
14 -keep @com.android.contacts.test.NeededForReflection class *
16 @com.android.contacts.common.test.NeededForTesting *;
17 @com.android.contacts.test.NeededForReflection *;
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DMockTvProviderContext.java26 import android.test.IsolatedContext;
27 import android.test.RenamingDelegatingContext;
28 import android.test.mock.MockContext;
29 import android.test.mock.MockPackageManager;
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DActionServiceTest.java25 import android.test.suitebuilder.annotation.MediumTest;
57 final TestChatAction test = (TestChatAction) action; in onActionSucceeded() local
58 assertNotSame(test.dontRelyOnMe, dontRelyOnMe); in onActionSucceeded()
60 assertEquals(test.dontRelyOnMe, becauseIChange); in onActionSucceeded()
72 final TestChatAction test = (TestChatAction) action; in onActionFailed() local
73 assertNotSame(test.dontRelyOnMe, dontRelyOnMe); in onActionFailed()
75 assertEquals(test.dontRelyOnMe, becauseIChange); in onActionFailed()
/packages/apps/Settings/tests/unit/src/com/android/settings/
DTetherServiceTest.java52 import android.test.ServiceTestCase;
53 import android.test.mock.MockResources;
266 private static class MockResources extends android.test.mock.MockResources {
327 Receiver(TetherServiceTest test) { in Receiver() argument
329 mTest = new WeakReference<TetherServiceTest>(test); in Receiver()
334 TetherServiceTest test = mTest.get(); in onReceiveResult() local
335 if (test != null) { in onReceiveResult()
336 test.mLastReceiverResultCode = resultCode; in onReceiveResult()
/packages/providers/ContactsProvider/tests/assets/test1/
Dexpected_groups.txt3 3 account_name=android.contacts.test.eclair@gmail.com
20 20 account_name=android.contacts.test.eclair@gmail.com
37 37 account_name=android.contacts.test.eclair@gmail.com
54 54 account_name=android.contacts.test.eclair@gmail.com
Dexpected_raw_contacts.txt21 21 account_name=android.contacts.test.eclair@gmail.com
39 39 account_name=android.contacts.test.eclair@gmail.com
57 57 account_name=android.contacts.test.eclair@gmail.com
75 75 account_name=android.contacts.test.eclair@gmail.com
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/
DPlayControlsRowViewTest.java23 import android.support.test.filters.SdkSuppress;
24 import android.support.test.uiautomator.BySelector;
25 import android.support.test.uiautomator.UiObject2;
26 import android.support.test.uiautomator.Until;
27 import android.test.suitebuilder.annotation.SmallTest;
/packages/apps/TV/tests/unit/src/com/android/tv/util/
DTvInputManagerHelperTest.java21 import android.test.AndroidTestCase;
22 import android.test.suitebuilder.annotation.SmallTest;
23 import android.test.suitebuilder.annotation.Suppress;
72 comparatorTester.test(); in testComparator()
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
DEmlMessageLoaderTest.java26 import android.test.IsolatedContext;
27 import android.test.LoaderTestCase;
28 import android.test.mock.MockContentResolver;
29 import android.test.suitebuilder.annotation.SmallTest;

12345678910>>...33