Home
last modified time | relevance | path

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

12345678910>>...20

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DHanziToPinyinTest.java20 import android.test.suitebuilder.annotation.SmallTest;
45 private void test(final char hanzi, final String expectedPinyin) throws Exception { in test() method in HanziToPinyinTest
121 test('\u4e00', "YI"); in test_0()
122 test('\u4e01', "DING"); in test_0()
123 test('\u4e02', "KAO"); in test_0()
124 test('\u4e03', "QI"); in test_0()
125 test('\u4e04', "SHANG"); in test_0()
126 test('\u4e05', "XIA"); in test_0()
127 test('\u4e06', "HAN"); in test_0()
128 test('\u4e07', "WAN"); in test_0()
[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 …]
DAsyncQueryServiceTest.java36 import android.test.IsolatedContext;
37 import android.test.RenamingDelegatingContext;
38 import android.test.ServiceTestCase;
39 import android.test.mock.MockContentResolver;
40 import android.test.mock.MockContext;
41 import android.test.mock.MockCursor;
42 import android.test.suitebuilder.annotation.LargeTest;
43 import android.test.suitebuilder.annotation.SmallTest;
44 import android.test.suitebuilder.annotation.Smoke;
DDbTestUtils.java27 import android.test.mock.MockContentProvider;
28 import android.test.mock.MockContentResolver;
29 import android.test.mock.MockContext;
30 import android.test.mock.MockCursor;
/packages/apps/Gallery2/tests/src/com/android/gallery3d/exif/
DExifTestRunner.java21 import android.test.InstrumentationTestRunner;
22 import android.test.InstrumentationTestSuite;
90 TestCase test; in addAllTestsFromExifTestCase() local
92 test = testClass.getDeclaredConstructor(int.class, int.class). in addAllTestsFromExifTestCase()
94 test.setName(method.getName()); in addAllTestsFromExifTestCase()
95 suite.addTest(test); in addAllTestsFromExifTestCase()
109 TestCase test; in addAllTestsFromExifTestCase() local
111 test = testClass.getDeclaredConstructor(String.class, String.class). in addAllTestsFromExifTestCase()
113 test.setName(method.getName()); in addAllTestsFromExifTestCase()
114 suite.addTest(test); in addAllTestsFromExifTestCase()
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/
DContactDeletionInteractionTest.java24 import android.test.ActivityInstrumentationTestCase2;
25 import android.test.suitebuilder.annotation.SmallTest;
29 import com.android.contacts.common.test.FragmentTestActivity;
30 import com.android.contacts.common.test.IntegrationTestUtils;
31 import com.android.contacts.common.test.mocks.ContactsMockContext;
32 import com.android.contacts.common.test.mocks.MockContentProvider;
33 import com.android.contacts.common.test.mocks.MockContentProvider.Query;
37 import com.android.contacts.test.InjectedServices;
/packages/apps/Gallery2/tests/src/com/android/photos/data/
DTestHelper.java36 TestCase test; in addTests() local
38 test = testClass.newInstance(); in addTests()
39 test.setName(method.getName()); in addTests()
40 initialization.initialize(test); in addTests()
41 suite.addTest(test); in addTests()
DDataTestRunner.java18 import android.test.InstrumentationTestRunner;
19 import android.test.InstrumentationTestSuite;
35 MediaCacheTest test = (MediaCacheTest) testCase; in getAllTests()
36 test.setLocalContext(getContext()); in getAllTests()
/packages/apps/Contacts/tests/src/com/android/contacts/activities/
DPeopleActivityTest.java31 import android.test.ActivityInstrumentationTestCase2;
32 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.test.InjectedServices;
/packages/apps/Email/tests/src/com/android/email/
DDBTestHelper.java34 import android.test.IsolatedContext;
35 import android.test.RenamingDelegatingContext;
36 import android.test.mock.MockContentResolver;
37 import android.test.mock.MockContext;
38 import android.test.mock.MockCursor;
/packages/apps/ContactsCommon/tests/
Dproguard.flags2 -keep @com.android.contacts.common.test.NeededForTesting class *
3 -keep @com.android.contacts.test.NeededForReflection class *
5 @com.android.contacts.common.test.NeededForTesting *;
6 @com.android.contacts.test.NeededForReflection *;
/packages/apps/Contacts/tests/src/com/android/contacts/
DContactDetailTest.java19 import android.test.ActivityUnitTestCase;
20 import android.test.suitebuilder.annotation.SmallTest;
23 import com.android.contacts.common.test.mocks.ContactsMockContext;
24 import com.android.contacts.common.test.mocks.MockContentProvider;
/packages/apps/Dialer/tests/src/com/android/dialer/interactions/
DPhoneNumberInteractionTest.java30 import android.test.InstrumentationTestCase;
31 import android.test.suitebuilder.annotation.SmallTest;
33 import com.android.contacts.common.test.mocks.ContactsMockContext;
34 import com.android.contacts.common.test.mocks.MockContentProvider;
35 import com.android.contacts.common.test.mocks.MockContentProvider.Query;
/packages/apps/Dialer/
Dproguard.flags9 -keep @com.android.contacts.common.test.NeededForTesting class *
10 -keep @com.android.dialer.test.NeededForReflection class *
12 @com.android.contacts.common.test.NeededForTesting *;
13 @com.android.dialer.test.NeededForReflection *;
/packages/apps/Contacts/
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/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/apps/Calendar/tests/src/com/android/calendar/alerts/
DAlarmSchedulerTest.java26 import android.test.AndroidTestCase;
27 import android.test.IsolatedContext;
28 import android.test.mock.MockContentProvider;
29 import android.test.mock.MockContentResolver;
30 import android.test.suitebuilder.annotation.SmallTest;
/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/Browser/tests/src/com/android/browser/tests/utils/
DProviderTestCase3.java25 import android.test.AndroidTestCase;
26 import android.test.IsolatedContext;
27 import android.test.RenamingDelegatingContext;
28 import android.test.mock.MockContext;
/packages/apps/Mms/tests/src/com/android/mms/ui/
DComposeMessageActivityTests.java29 import android.test.ActivityInstrumentationTestCase2;
30 import android.test.suitebuilder.annotation.MediumTest;
31 import android.test.suitebuilder.annotation.SmallTest;
32 import android.test.suitebuilder.annotation.LargeTest;
/packages/apps/BasicSmsReceiver/tests/src/com/android/basicsmsreceiver/
DDialogSmsDisplayTests.java35 import android.test.ActivityInstrumentationTestCase2;
36 import android.test.suitebuilder.annotation.MediumTest;
37 import android.test.suitebuilder.annotation.SmallTest;
38 import android.test.suitebuilder.annotation.LargeTest;
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DContactLoaderTest.java28 import android.test.LoaderTestCase;
29 import android.test.suitebuilder.annotation.LargeTest;
32 import com.android.contacts.common.test.mocks.ContactsMockContext;
33 import com.android.contacts.common.test.mocks.MockContentProvider;
37 import com.android.contacts.test.InjectedServices;
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractDownloadProviderFunctionalTest.java30 import android.test.MoreAsserts;
31 import android.test.RenamingDelegatingContext;
32 import android.test.ServiceTestCase;
33 import android.test.mock.MockContentResolver;

12345678910>>...20