/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/ |
D | UiDeviceUtils.java | 84 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/ |
D | WakelockAnomalyTest.java | 51 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()
|
D | BluetoothAnomalyTest.java | 51 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()
|
D | TestUtils.java | 37 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/ |
D | README | 1 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/ |
D | telecom_testing.sh | 55 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/ |
D | InstrumentedFragment.java | 21 import com.android.settings.core.instrumentation.Instrumentable; 22 import com.android.settings.core.instrumentation.MetricsFeatureProvider; 23 import com.android.settings.core.instrumentation.VisibilityLoggerMixin;
|
D | InstrumentedPreferenceFragment.java | 22 import com.android.settings.core.instrumentation.Instrumentable; 23 import com.android.settings.core.instrumentation.MetricsFeatureProvider; 24 import com.android.settings.core.instrumentation.VisibilityLoggerMixin;
|
D | InstrumentedActivity.java | 19 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/ |
D | KeepOnScreenTest.java | 46 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()
|
D | DrawOverlayDetailsTest.java | 45 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()
|
D | PrivateVolumeSettingsTest.java | 38 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in test_ManageStorageNotShown() local 39 instrumentation.startActivitySync( in test_ManageStorageNotShown()
|
D | DashboardAdapterTest.java | 42 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/ |
D | NameAutoCompletePreferenceTest.java | 61 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/ |
D | PowerUsageSummaryUiTest.java | 42 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/ |
D | NightDisplaySettingsActivityTest.java | 44 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() local 45 mTargetContext = instrumentation.getTargetContext(); in setUp()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/backup/ |
D | BackupIntentTest.java | 50 Instrumentation instrumentation = InstrumentationRegistry.getInstrumentation(); in setUp() local 51 mContext = instrumentation.getTargetContext(); in setUp()
|
/packages/apps/Settings/src/com/android/settings/core/instrumentation/ |
D | VisibilityLoggerMixin.java | 17 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/ |
D | MoreKeySpecStringReferenceTests.java | 38 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/ |
D | VisibilityLoggerMixinTest.java | 16 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/ |
D | IntegrationTestUtils.java | 49 public IntegrationTestUtils(Instrumentation instrumentation) { in IntegrationTestUtils() argument 50 mInstrumentation = instrumentation; in IntegrationTestUtils()
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
D | ProgressiveDisclosureMixin.java | 31 import com.android.settings.core.instrumentation.Instrumentable; 32 import com.android.settings.core.instrumentation.MetricsFeatureProvider;
|
/packages/apps/Settings/src/com/android/settings/datetime/ |
D | ZonePicker.java | 37 import com.android.settings.core.instrumentation.Instrumentable; 38 import com.android.settings.core.instrumentation.VisibilityLoggerMixin;
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | UserDictionarySettings.java | 47 import com.android.settings.core.instrumentation.Instrumentable; 48 import com.android.settings.core.instrumentation.VisibilityLoggerMixin;
|
/packages/apps/Settings/src/com/android/settings/ |
D | DeviceAdminSettings.java | 52 import com.android.settings.core.instrumentation.Instrumentable; 53 import com.android.settings.core.instrumentation.VisibilityLoggerMixin;
|