Home
last modified time | relevance | path

Searched refs:instrumentation (Results 1 – 25 of 157) sorted by relevance

1234567

/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/
DUiDeviceUtils.java84 public static void pressDPadCenter(Instrumentation instrumentation, int repeat) { in pressDPadCenter() argument
85 pressKey(instrumentation, KeyEvent.KEYCODE_DPAD_CENTER, repeat); in pressDPadCenter()
88 private static void pressKey(Instrumentation instrumentation, int keyCode, int repeat) { in pressKey() argument
89 UiDevice.getInstance(instrumentation).waitForIdle(); in pressKey()
91 assertPressKeyDown(instrumentation, keyCode, false); in pressKey()
93 assertPressKeyUp(instrumentation, keyCode, false); in pressKey()
97 assertPressKeyUp(instrumentation, keyCode, true); in pressKey()
100 private static void assertPressKeyDown(Instrumentation instrumentation, int keyCode, in assertPressKeyDown() argument
102 assertPressKey(instrumentation, KeyEvent.ACTION_DOWN, keyCode, sync); in assertPressKeyDown()
105 private static void assertPressKeyUp(Instrumentation instrumentation, int keyCode, in assertPressKeyUp() argument
[all …]
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/
DWakelockAnomalyTest.java51 final Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() local
52 final Context context = instrumentation.getContext(); in setUp()
53 mDevice = UiDevice.getInstance(instrumentation); in setUp()
56 TestUtils.setUp(instrumentation); in setUp()
81 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in testWakelockAnomaly_longTimeWhileRunning_report() local
82 instrumentation.startActivitySync(new Intent(BATTERY_INTENT)); in testWakelockAnomaly_longTimeWhileRunning_report()
102 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in testWakelockAnomaly_shortTime_notReport() local
103 instrumentation.startActivitySync(new Intent(BATTERY_INTENT)); in testWakelockAnomaly_shortTime_notReport()
125 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in testWakelockAnomaly_longTimeWhileNotRunning_notReport() local
126 instrumentation.startActivitySync(new Intent(BATTERY_INTENT)); in testWakelockAnomaly_longTimeWhileNotRunning_notReport()
DBluetoothAnomalyTest.java51 final Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() local
52 final Context context = instrumentation.getContext(); in setUp()
53 mDevice = UiDevice.getInstance(instrumentation); in setUp()
56 TestUtils.setUp(instrumentation); in setUp()
80 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in testBluetoothAnomaly_longScanningTime_reportAnomaly() local
81 instrumentation.startActivitySync(new Intent(BATTERY_INTENT)); in testBluetoothAnomaly_longScanningTime_reportAnomaly()
101 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in testBluetoothAnomaly_shortScanningTime_notReport() local
102 instrumentation.startActivitySync(new Intent(BATTERY_INTENT)); in testBluetoothAnomaly_shortScanningTime_notReport()
DTestUtils.java37 public static void setUp(Instrumentation instrumentation) { in setUp() argument
38 final UiAutomation uiAutomation = instrumentation.getUiAutomation(); in setUp()
50 public static void tearDown(Instrumentation instrumentation) { in tearDown() argument
51 final UiAutomation uiAutomation = instrumentation.getUiAutomation(); in tearDown()
/packages/apps/ManagedProvisioning/tests/
DREADME1 To run all instrumentation tests:
4 To run all instrumentation tests in a specific class:
7 To run a specific instrumentation test:
10 To obtain a test coverage report for instrumentation tests:
/packages/services/Telecomm/scripts/
Dtelecom_testing.sh55 local instrumentation=
61 instrumentation="android.test.InstrumentationTestRunner";;
66 instrumentation="android.support.test.runner.AndroidJUnitRunner";;
124 adb shell am instrument ${e_options} -w "$package_prefix/$instrumentation"
/packages/apps/Settings/src/com/android/settings/core/
DInstrumentedFragment.java21 import com.android.settings.core.instrumentation.Instrumentable;
22 import com.android.settings.core.instrumentation.MetricsFeatureProvider;
23 import com.android.settings.core.instrumentation.VisibilityLoggerMixin;
DInstrumentedPreferenceFragment.java22 import com.android.settings.core.instrumentation.Instrumentable;
23 import com.android.settings.core.instrumentation.MetricsFeatureProvider;
24 import com.android.settings.core.instrumentation.VisibilityLoggerMixin;
DInstrumentedActivity.java19 import com.android.settings.core.instrumentation.Instrumentable;
20 import com.android.settings.core.instrumentation.VisibilityLoggerMixin;
/packages/apps/Settings/tests/app/src/com/android/settings/tests/
DKeepOnScreenTest.java46 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in testStayAwake_turnOn_StayAwakeWhileWirelessCharging() local
47 instrumentation.startActivitySync(new Intent(android.provider.Settings in testStayAwake_turnOn_StayAwakeWhileWirelessCharging()
50 final Context targetContext = instrumentation.getTargetContext(); in testStayAwake_turnOn_StayAwakeWhileWirelessCharging()
DDrawOverlayDetailsTest.java45 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in testSystemUiDrawOverlayDetails_Disabled() local
46 instrumentation.startActivitySync(new Intent(android.provider.Settings in testSystemUiDrawOverlayDetails_Disabled()
49 final Context targetContext = instrumentation.getTargetContext(); in testSystemUiDrawOverlayDetails_Disabled()
DPrivateVolumeSettingsTest.java38 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in test_ManageStorageNotShown() local
39 instrumentation.startActivitySync( in test_ManageStorageNotShown()
DDashboardAdapterTest.java42 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in SetUp() local
43 instrumentation.startActivitySync(new Intent(Settings in SetUp()
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/preferences/
DNameAutoCompletePreferenceTest.java61 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() local
64 instrumentation.getTargetContext(), EditMedicalInfoActivity.class); in setUp()
66 (EditMedicalInfoActivity) instrumentation.startActivitySync(editActivityIntent); in setUp()
/packages/apps/Settings/tests/app/src/com/android/settings/fuelgauge/
DPowerUsageSummaryUiTest.java42 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in SetUp() local
43 instrumentation.startActivitySync(new Intent(BATTERY_INTENT)); in SetUp()
/packages/apps/Settings/tests/unit/src/com/android/settings/display/
DNightDisplaySettingsActivityTest.java44 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() local
45 mTargetContext = instrumentation.getTargetContext(); in setUp()
/packages/apps/Settings/tests/unit/src/com/android/settings/backup/
DBackupIntentTest.java50 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() local
51 mContext = instrumentation.getTargetContext(); in setUp()
/packages/apps/Settings/src/com/android/settings/core/instrumentation/
DVisibilityLoggerMixin.java17 package com.android.settings.core.instrumentation;
31 import static com.android.settings.core.instrumentation.Instrumentable.METRICS_CATEGORY_UNKNOWN;
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DMoreKeySpecStringReferenceTests.java38 final Instrumentation instrumentation = getInstrumentation(); in setUp() local
39 final Context testContext = instrumentation.getContext(); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/instrumentation/
DVisibilityLoggerMixinTest.java16 package com.android.settings.core.instrumentation;
18 import static com.android.settings.core.instrumentation.Instrumentable.METRICS_CATEGORY_UNKNOWN;
/packages/apps/Contacts/tests/src/com/android/contacts/test/
DIntegrationTestUtils.java49 public IntegrationTestUtils(Instrumentation instrumentation) { in IntegrationTestUtils() argument
50 mInstrumentation = instrumentation; in IntegrationTestUtils()
/packages/apps/Settings/src/com/android/settings/dashboard/
DProgressiveDisclosureMixin.java31 import com.android.settings.core.instrumentation.Instrumentable;
32 import com.android.settings.core.instrumentation.MetricsFeatureProvider;
/packages/apps/Settings/src/com/android/settings/datetime/
DZonePicker.java37 import com.android.settings.core.instrumentation.Instrumentable;
38 import com.android.settings.core.instrumentation.VisibilityLoggerMixin;
/packages/apps/Settings/src/com/android/settings/inputmethod/
DUserDictionarySettings.java47 import com.android.settings.core.instrumentation.Instrumentable;
48 import com.android.settings.core.instrumentation.VisibilityLoggerMixin;
/packages/apps/Settings/src/com/android/settings/
DDeviceAdminSettings.java52 import com.android.settings.core.instrumentation.Instrumentable;
53 import com.android.settings.core.instrumentation.VisibilityLoggerMixin;

1234567