Home
last modified time | relevance | path

Searched refs:TestUtils (Results 1 – 25 of 37) sorted by relevance

12

/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/
DWakelockAnomalyTest.java56 TestUtils.setUp(instrumentation); in setUp()
58 TestUtils.startAnomalyApp(context, mDevice); in setUp()
63 TestUtils.tearDown(InstrumentationRegistry.getInstrumentation()); in tearDown()
70 TestUtils.setEditTextWithValue(mDevice, RES_WAKELOCK_EDITTEXT, durationMs); in testWakelockAnomaly_longTimeWhileRunning_report()
73 TestUtils.clickButton(mDevice, RES_WAKELOCK_BUTTON); in testWakelockAnomaly_longTimeWhileRunning_report()
78 TestUtils.wait(mDevice, durationMs - TIME_OUT); in testWakelockAnomaly_longTimeWhileRunning_report()
92 TestUtils.setEditTextWithValue(mDevice, RES_WAKELOCK_EDITTEXT, durationMs); in testWakelockAnomaly_shortTime_notReport()
95 TestUtils.clickButton(mDevice, RES_WAKELOCK_BUTTON); in testWakelockAnomaly_shortTime_notReport()
99 TestUtils.wait(mDevice, durationMs); in testWakelockAnomaly_shortTime_notReport()
114 TestUtils.setEditTextWithValue(mDevice, RES_WAKELOCK_EDITTEXT, durationMs); in testWakelockAnomaly_longTimeWhileNotRunning_notReport()
[all …]
DBluetoothAnomalyTest.java56 TestUtils.setUp(instrumentation); in setUp()
58 TestUtils.startAnomalyApp(context, mDevice); in setUp()
63 TestUtils.tearDown(InstrumentationRegistry.getInstrumentation()); in tearDown()
70 TestUtils.setEditTextWithValue(mDevice, RES_BT_EDITTEXT, durationMs); in testBluetoothAnomaly_longScanningTime_reportAnomaly()
73 TestUtils.clickButton(mDevice, RES_BT_BUTTON); in testBluetoothAnomaly_longScanningTime_reportAnomaly()
77 TestUtils.wait(mDevice, durationMs); in testBluetoothAnomaly_longScanningTime_reportAnomaly()
91 TestUtils.setEditTextWithValue(mDevice, RES_BT_EDITTEXT, durationMs); in testBluetoothAnomaly_shortScanningTime_notReport()
94 TestUtils.clickButton(mDevice, RES_BT_BUTTON); in testBluetoothAnomaly_shortScanningTime_notReport()
98 TestUtils.wait(mDevice, durationMs); in testBluetoothAnomaly_shortScanningTime_notReport()
DTestUtils.java28 public class TestUtils { class
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/
DDisclaimersParserTest.java34 import com.android.managedprovisioning.testcommon.TestUtils;
82 DISCLAIMER_URI_1 = TestUtils.resourceToUri(testContext, R.raw.test_disclaimer1); in setUpClass()
83 DISCLAIMER_CONTENT_1 = TestUtils.stringFromUri(cr, DISCLAIMER_URI_1); in setUpClass()
85 DISCLAIMER_URI_2 = TestUtils.resourceToUri(testContext, R.raw.test_disclaimer2); in setUpClass()
86 DISCLAIMER_CONTENT_2 = TestUtils.stringFromUri(cr, DISCLAIMER_URI_2); in setUpClass()
88 DISCLAIMER_URI_3 = TestUtils.resourceToUri(testContext, R.raw.test_disclaimer3); in setUpClass()
89 DISCLAIMER_CONTENT_3 = TestUtils.stringFromUri(cr, DISCLAIMER_URI_3); in setUpClass()
105 TestUtils.deleteRecursive(TEST_FILE_DIR); in tearDown()
DDeviceAdminIconParserTest.java31 import com.android.managedprovisioning.testcommon.TestUtils;
68 INPUT_URI = TestUtils.resourceToUri(testContext, R.raw.android); in setUpClass()
69 INPUT_CONTENT = TestUtils.stringFromUri(cr, INPUT_URI); in setUpClass()
/packages/apps/TV/tests/unit/src/com/android/tv/data/
DTvInputNewComparatorTest.java26 import com.android.tv.util.TestUtils;
84 ResolveInfo resolveInfo = TestUtils.createResolveInfo("test", "test"); in testComparator()
87 TvInputInfo info1 = TestUtils.createTvInputInfo( in testComparator()
89 TvInputInfo info2 = TestUtils.createTvInputInfo( in testComparator()
91 TvInputInfo info3 = TestUtils.createTvInputInfo( in testComparator()
/packages/apps/TV/tests/unit/src/com/android/tv/util/
DTvInputManagerHelperTest.java45 ResolveInfo resolveInfo = TestUtils.createResolveInfo("test", "test"); in testComparatorInternal()
69 ResolveInfo resolveInfo = TestUtils.createResolveInfo("test", "test"); in testHardwareInputComparatorHdmi()
93 ResolveInfo resolveInfo = TestUtils.createResolveInfo("test", "test"); in testHardwareInputComparatorCec()
154 TestUtils.createTvInputInfo(service, id, parentId, type, isHardwareInput); in createTvInputInfo()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseContactsProvider2Test.java20 import static com.android.providers.contacts.TestUtils.cv;
21 import static com.android.providers.contacts.TestUtils.dumpCursor;
974 TestUtils.dumpCursor(c); in assertStoredValues()
988 TestUtils.dumpCursor(c); in assertContainsValues()
1007 TestUtils.dumpCursor(c); in assertStoredValuesWithProjection()
1025 TestUtils.dumpCursor(c); in assertStoredValues()
1053 TestUtils.dumpCursor(c); in assertStoredValuesOrderly()
1104 TestUtils.dumpCursor(c); in assertSelection()
1107 TestUtils.dumpUri(mResolver, uri); in assertSelection()
1363 TestUtils.dumpCursor(cursor); in assertRowCount()
[all …]
DContactsDatabaseHelperUpgradeTest.java19 import static com.android.providers.contacts.TestUtils.createDatabaseSnapshot;
20 import static com.android.providers.contacts.TestUtils.cv;
21 import static com.android.providers.contacts.TestUtils.executeSqlFromAssetFile;
102 TestUtils.getContactsDatabaseFilename(getContext())); in setUp()
114 return TestUtils.getContactsDatabaseFilename(getContext(), "-upgrade-test"); in getDatabaseFilename()
DEvenMoreAsserts.java92 String expectedFile = TestUtils.dumpToCacheDir(context, "expected", ".jpg", expected); in assertImageRawData()
93 String actualFile = TestUtils.dumpToCacheDir(context, "actual", ".jpg", actual); in assertImageRawData()
DTestUtils.java43 public class TestUtils { class
46 private TestUtils() { in TestUtils() method in TestUtils
DSecondaryUserContactsProvider2.java35 TestUtils.getContactsDatabaseFilename(context, mDbSuffix)); in newDatabaseHelper()
DSynchronousProfileProvider.java38 TestUtils.getProfileDatabaseFilename(getContext())); in newDatabaseHelper()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
DFinalizationControllerTest.java24 import static com.android.managedprovisioning.TestUtils.createTestAdminExtras;
42 import com.android.managedprovisioning.TestUtils;
262 TestUtils.bundleEquals(TEST_MDM_EXTRA_BUNDLE, in assertExtras()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/sqlite/
DDatabaseAnalyzerTest.java22 import com.android.providers.contacts.TestUtils;
30 TestUtils.getContactsDatabaseFilename(getContext())); in testFindTableViewsAllowingColumns()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DTestUtils.java34 public class TestUtils { class
42 public TestUtils(Context targetContext, Context testContext, ExecutorService executor) { in TestUtils() method in TestUtils
DResourcesProvider.java65 private TestUtils mTestUtils = null;
70 mTestUtils = new TestUtils(getContext(), getContext(), mExecutor); in onCreate()
DWriteableArchiveTest.java50 private TestUtils mTestUtils = null;
57 mTestUtils = new TestUtils(InstrumentationRegistry.getTargetContext(), in setUp()
DReadableArchiveTest.java50 private TestUtils mTestUtils = null;
56 mTestUtils = new TestUtils(InstrumentationRegistry.getTargetContext(), in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DStorageSummaryDonutPreferenceControllerTest.java55 import static com.android.settings.TestUtils.KILOBYTE;
56 import static com.android.settings.TestUtils.GIGABYTE;
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/recorder/
DInputTaskSchedulerTest.java48 import com.android.tv.util.TestUtils;
229 return TestUtils.createTvInputInfo(null, null, null, 0, false, true, tunerCount); in createTvInputInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DTestUtils.java22 public class TestUtils { class
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/testcommon/
DTestUtils.java28 public class TestUtils { class
/packages/apps/Email/tests/src/com/android/email/
DTestUtils.java37 public class TestUtils extends TestCase /* It tests itself */ { class
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/
DTestUtils.java31 public class TestUtils extends AndroidTestCase { class

12