/platform_testing/tests/jank/sysapp_wear/src/com/android/wearable/sysapp/janktests/ |
SysAppTestHelper.java | 53 private UiDevice mDevice = null; 58 * @param mDevice Instance to represent the current device. 61 private SysAppTestHelper(UiDevice mDevice, Instrumentation instrumentation) { 63 this.mDevice = mDevice; 77 mDevice.swipe(50, 78 mDevice.getDisplayHeight() / 2, mDevice.getDisplayWidth() - 25, 79 mDevice.getDisplayHeight() / 2, 30); // slow speed 84 mDevice.swipe(mDevice.getDisplayWidth() - 50, mDevice.getDisplayHeight() / 2, 50 [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/ |
BatterySaverStateMachineTest.java | 49 private Device mDevice; 110 mDevice.getLowPowerModeTriggerLevel()); 136 mDevice.putGlobalSetting(key, value); 141 return mDevice.getGlobalSetting(key, defValue); 161 doAnswer((inv) -> mDevice.batterySaverEnabled = inv.getArgument(0)) 164 .thenAnswer((inv) -> mDevice.batterySaverEnabled); 171 mDevice = new Device(); 175 mDevice.pushBatteryStatus(); 176 mDevice.pushGlobalSettings(); 182 assertEquals(0, mDevice.getLowPowerModeTriggerLevel()) [all...] |
/packages/apps/TV/tests/jank/src/com/android/tv/tests/jank/ |
ChannelZappingJankTest.java | 46 Utils.pressKeysForChannelNumber(STARTING_CHANNEL, mDevice); 55 mDevice.pressDPadUp(); 56 mDevice.waitForIdle(); 58 mDevice.pressBack(); 59 mDevice.waitForIdle(); 66 mDevice.pressDPadUp(); 67 mDevice.waitForIdle(); 70 mDevice.pressBack(); 71 mDevice.waitForIdle();
|
MenuJankTest.java | 45 mMenuHelper = new MenuHelper(mDevice, mTargetResources); 46 Utils.pressKeysForChannelNumber(STARTING_CHANNEL, mDevice); 56 mDevice.pressBack(); 57 mDevice.waitForIdle(); 64 mDevice.pressDPadUp(); 65 mDevice.waitForIdle();
|
ProgramGuideJankTest.java | 51 mMenuHelper = new MenuHelper(mDevice, mTargetResources); 52 Utils.pressKeysForChannelNumber(STARTING_CHANNEL, mDevice); 76 mDevice.pressDPadDown(); 90 mDevice.pressDPadRight(); 98 mDevice.waitForIdle(); 105 mDevice.pressDPadCenter(); 106 assertWaitForCondition(mDevice, Until.hasObject(Constants.PROGRAM_GUIDE)); 107 mDevice.pressBack(); 112 mDevice.pressBack(); 113 assertWaitForCondition(mDevice, Until.gone(Constants.PROGRAM_GUIDE)) [all...] |
/hardware/interfaces/nfc/1.0/default/ |
Nfc.cpp | 17 Nfc::Nfc(nfc_nci_device_t* device) : mDevice(device) {} 23 if (mDevice == nullptr || mCallback == nullptr) { 27 int ret = mDevice->open(mDevice, eventCallback, dataCallback); 32 if (mDevice == nullptr) { 35 return mDevice->write(mDevice, data.size(), &data[0]); 41 if (mDevice == nullptr) { 44 int ret = mDevice->core_initialized(mDevice, ©[0]) [all...] |
/platform_testing/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/ |
UiBenchJankTestsHelper.java | 57 private UiDevice mDevice; 61 mDevice = device; 82 mDevice.waitForIdle(); 84 UiObject2 initScreen = mDevice.wait(Until.findObject(By.text(UIBENCH_OBJECT_NAME)), 2000); 87 mDevice.pressBack(); 88 initScreen = mDevice.wait(Until.findObject(By.text(UIBENCH_OBJECT_NAME)), 2000); 94 String launcherPackage = mDevice.getLauncherPackageName(); 95 UiObject2 homeScreen = mDevice.findObject(By.res(launcherPackage, ROOT_NAME)); 98 mDevice.pressBack(); 99 homeScreen = mDevice.findObject(By.res(launcherPackage, ROOT_NAME)) [all...] |
/packages/apps/Traceur/uitests/src/com/android/settings/ui/ |
TraceurAppTests.java | 43 private UiDevice mDevice; 47 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); 50 mDevice.setOrientationNatural(); 61 mDevice.wait(Until.hasObject(By.pkg(TRACEUR_PACKAGE).depth(0)), TIMEOUT); 67 mDevice.pressBack(); 68 mDevice.pressHome(); 75 mDevice.wait(Until.findObject(By.text("Record trace")), 78 mDevice.wait(Until.findObject(By.text("Trace debuggable applications")), 81 mDevice.wait(Until.findObject(By.text("Categories")), 84 mDevice.wait(Until.findObject(By.text("Restore default categories")) [all...] |
/platform_testing/tests/functional/overviewtests/src/com/android/overview/functional/ |
MultiWindowTests.java | 52 private UiDevice mDevice; 61 mDevice = UiDevice.getInstance(getInstrumentation()); 64 mDevice.setOrientationNatural(); 65 mLauncherStrategy = LauncherStrategyFactory.getInstance(mDevice).getLauncherStrategy(); 66 mOverviewHelper = new OverviewHelper(mDevice, getInstrumentation()); 71 mDevice.pressHome(); 72 mDevice.unfreezeRotation(); 73 mDevice.waitForIdle(); 78 return mDevice.getLauncherPackageName(); 86 mDevice.click(mDevice.getDisplayHeight() * 3/4, mDevice.getDisplayWidth() / 2) [all...] |
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/ |
NexusLauncherStrategy.java | 70 mDevice.pressHome(); 79 if (!mDevice.hasObject(getAllAppsSelector()) || mDevice.hasObject( 83 mDevice.waitForIdle(); 85 !mDevice.hasObject(getAllAppsSelector()) && !mDevice.hasObject( 88 int midX = mDevice.getDisplayWidth() / 2; 89 int height = mDevice.getDisplayHeight(); 91 mDevice.swipe( 99 UiObject2 hotseat = mDevice.wait(Until.findObject(getHotSeatSelector()), 2500) [all...] |
AospLauncherStrategy.java | 39 private UiDevice mDevice; 47 if (!mDevice.hasObject(getHotSeatSelector())) { 48 mDevice.pressHome(); 50 mDevice.wait(Until.hasObject(By.pkg(LAUNCHER_PKG)), 5000)); 51 mDevice.waitForIdle(); 54 UiObject2 cling = mDevice.findObject(By.res(LAUNCHER_PKG, "workspace_cling")); 67 if (!mDevice.hasObject(APPS_CONTAINER)) { 70 mDevice.findObject(By.desc("Apps")).click(); 72 mDevice.wait(Until.gone(getHotSeatSelector()), 2000); 73 mDevice.waitForIdle() [all...] |
AllAppsScreenHelper.java | 33 private UiDevice mDevice; 36 .getInstance(mDevice).getLauncherStrategy(); 45 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); 49 return mDevice.getLauncherPackageName(); 53 mDevice.pressHome(); 55 mDevice.wait(Until.hasObject(By.res(getLauncherPackage(), allApps)), TIMEOUT); 61 UiObject2 searchBoxObject = mDevice.wait(Until.findObject 66 + appName, mDevice.wait(Until.findObject
|
/cts/hostsidetests/gputools/src/android/gputools/cts/ |
CtsRootlessGpuDebugHostTest.java | 45 private ITestDevice mDevice; 48 mDevice = device; 53 return mDevice; 113 String pid = mDevice.executeAdbCommand("shell", "pidof", app); 123 String libPath = mDevice.executeAdbCommand("shell", "pm", "path", LAYERS_APP); 130 String layerPath = mDevice.executeAdbCommand("shell", "find", libPath + " -name " + layer); 132 mDevice.executeAdbCommand("shell", "cp", layerPath + " /data/local/tmp"); 168 String logcat = mDevice.executeAdbCommand("logcat", "-v", "brief", "-d", "--pid=" + pid, "*:V"); 194 mDevice.executeAdbCommand("shell", "am", "force-stop", DEBUG_APP); 195 mDevice.executeAdbCommand("shell", "am", "force-stop", RELEASE_APP) [all...] |
/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/ |
SystemUiJankTests.java | 118 private UiDevice mDevice; 123 mDevice = UiDevice.getInstance(getInstrumentation()); 125 mDevice.setOrientationNatural(); 136 mDevice.pressHome(); 137 mDevice.waitForIdle(); 142 mDevice.unfreezeRotation(); 168 return getLauncherOverviewSelector(mDevice); 197 mDevice.wakeUp(); 199 mDevice.pressHome(); 200 mDevice.waitForIdle() [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/ |
HearingAidStateMachine.java | 90 private final BluetoothDevice mDevice; 95 mDevice = device; 122 log("doQuit for device " + mDevice); 127 log("cleanup for device " + mDevice); 134 Log.i(TAG, "Enter Disconnected(" + mDevice + "): " + messageWhatToString( 148 log("Exit Disconnected(" + mDevice + "): " + messageWhatToString( 155 log("Disconnected process message(" + mDevice + "): " + messageWhatToString( 160 log("Connecting to " + mDevice); 161 if (!mNativeInterface.connectHearingAid(mDevice)) { 162 Log.e(TAG, "Disconnected: error connecting to " + mDevice); [all...] |
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/ |
WakelockAnomalyTest.java | 47 private UiDevice mDevice; 53 mDevice = UiDevice.getInstance(instrumentation); 58 TestUtils.startAnomalyApp(context, mDevice); 70 TestUtils.setEditTextWithValue(mDevice, RES_WAKELOCK_EDITTEXT, durationMs); 73 TestUtils.clickButton(mDevice, RES_WAKELOCK_BUTTON); 76 mDevice.pressHome(); 78 TestUtils.wait(mDevice, durationMs - TIME_OUT); 84 mDevice.wait(Until.findObject(By.text("AnomalyTester draining battery")), 92 TestUtils.setEditTextWithValue(mDevice, RES_WAKELOCK_EDITTEXT, durationMs); 95 TestUtils.clickButton(mDevice, RES_WAKELOCK_BUTTON) [all...] |
/hardware/interfaces/audio/core/all-versions/default/include/core/all-versions/default/ |
PrimaryDevice.impl.h | 29 PrimaryDevice::PrimaryDevice(audio_hw_device_t* device) : mDevice(new Device(device)) {} 35 return mDevice->initCheck(); 39 return mDevice->setMasterVolume(volume); 43 return mDevice->getMasterVolume(_hidl_cb); 47 return mDevice->setMicMute(mute); 51 return mDevice->getMicMute(_hidl_cb); 55 return mDevice->setMasterMute(mute); 59 return mDevice->getMasterMute(_hidl_cb); 64 return mDevice->getInputBufferSize(config, _hidl_cb); 72 return mDevice->openOutputStream(ioHandle, device, config, flags, _hidl_cb) [all...] |
/packages/apps/Settings/tests/unit/src/com/android/settings/users/ |
UserSettingsTest.java | 51 private UiDevice mDevice; 57 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); 66 mDevice.findObject(new UiSelector().text(EMERGNENCY_INFO)); 75 mDevice.findObject(new UiSelector().text(ADD_USERS_WHEN_LOCKED)); 84 mDevice.openQuickSettings(); 85 mDevice.findObject(new UiSelector().resourceId(SETTINGS_BUTTON)).click(); 91 mDevice.findObject(new UiSelector().text(titleSystem)).click(); 92 mDevice.findObject(new UiSelector().text(ADVANCED)).click(); 94 final boolean hasUsersSettings = mDevice.findObject(new UiSelector().text(USERS)).exists(); 97 mDevice.openQuickSettings() [all...] |
/development/tools/hosttestlib/src/com/android/hosttest/ |
DeviceTestCase.java | 31 private IDevice mDevice = null; 42 mDevice = device; 49 return mDevice;
|
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/ |
DataUsageSettingsTests.java | 33 private UiDevice mDevice; 38 mDevice = UiDevice.getInstance(getInstrumentation()); 40 mDevice.setOrientationNatural(); 49 mDevice.pressBack(); 50 mDevice.pressHome(); 58 mDevice.wait(Until.findObject(By.text("Usage")), 61 mDevice.wait(Until.findObject(By.res(SETTINGS_PACKAGE, 64 mDevice.wait(Until.findObject(By.text("Wi-Fi data usage")), 67 mDevice.wait(Until.findObject(By.text("Network restrictions")), 74 mDevice.wait(Unti [all...] |
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
UserActivityEmulator.java | 28 private final ITestDevice mDevice; 32 mDevice = device; 33 final String output = mDevice.executeShellCommand("wm size"); 40 mDevice.executeShellCommand(String.format("input tap %d %d", mWidth / 2, mHeight / 2));
|
/platform_testing/tests/functional/calculator/src/com/android/calculator/functional/ |
CalculatorTests.java | 36 private UiDevice mDevice = null; 42 mDevice = UiDevice.getInstance(getInstrumentation()); 44 mDevice.setOrientationNatural(); 45 mDevice.pressHome(); 46 mCalculatorHelper = CalculatorHelper.getInstance(mDevice, mContext); 51 mDevice.pressHome(); 52 mDevice.unfreezeRotation(); 59 mDevice.waitForIdle(); 68 mDevice.waitForIdle(); 69 mDevice.pressBack() [all...] |
/platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/ |
LatencyTests.java | 88 private UiDevice mDevice; 93 mDevice = UiDevice.getInstance(getInstrumentation()); 97 mDevice.pressHome(); 135 mDevice.waitForIdle(); 137 mDevice.waitForIdle(); 149 mDevice.swipe(mDevice.getDisplayWidth() / 2, 150 0, mDevice.getDisplayWidth() / 2, 151 mDevice.getDisplayHeight() / 2, 156 mDevice.swipe(mDevice.getDisplayWidth() / 2 [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
A2dpStateMachine.java | 92 private final BluetoothDevice mDevice; 100 mDevice = device; 128 log("doQuit for device " + mDevice); 131 log("doQuit: stopped playing " + mDevice); 141 log("cleanup for device " + mDevice); 149 Log.i(TAG, "Enter Disconnected(" + mDevice + "): " + (currentMessage == null ? "null" 159 Log.i(TAG, "Disconnected: stopped playing: " + mDevice); 171 log("Exit Disconnected(" + mDevice + "): " + (currentMessage == null ? "null" 178 log("Disconnected process message(" + mDevice + "): " 183 Log.i(TAG, "Connecting to " + mDevice); [all...] |
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/ |
OverviewHelper.java | 51 private UiDevice mDevice = null; 58 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); 77 mDevice.pressRecentApps(); 78 mDevice.waitForIdle(); 79 return mDevice.wait(Until.findObject(By.res(RECENTS)), TIMEOUT); 128 while (mDevice.hasObject(By.textContains("has stopped"))) { 129 UiObject2 crashDialog = mDevice.findObject(By.text("Close")); 152 mDevice.swipe(r.width() / 2, top, r.width() / 2, bottom, 5); 153 mDevice.waitForIdle(); 164 mDevice.pressRecentApps() [all...] |