/hardware/libhardware/modules/sensors/dynamic_sensor/ |
ConnectionDetector.h | 55 std::string mDevice;
|
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/view/ |
ViewInfoActivityTest.java | 51 private UiDevice mDevice; 59 mDevice = UiDevice.getInstance(mInstrumentation); 60 mInitialRotation = mDevice.getDisplayRotation(); 69 mDevice.setOrientationRight(); 72 mDevice.setOrientationLeft(); 75 mDevice.setOrientationNatural(); 218 mDevice.setOrientationLeft(); 219 mDevice.setOrientationNatural(); 220 mDevice.setOrientationRight();
|
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/ |
AppsSettingsTests.java | 45 private UiDevice mDevice; 63 mDevice = UiDevice.getInstance(getInstrumentation()); 66 mDevice.setOrientationNatural(); 72 mDevice.pressHome(); 76 mDevice.wait( 83 mDevice.pressBack(); 84 mDevice.pressHome(); // finish settings activity 85 mDevice.waitForIdle(TIMEOUT * 2); // give UI time to finish animating 91 UiObject2 calculator = mDevice.wait( 96 mDevice.wait [all...] |
NotificationSettingsTests.java | 44 private UiDevice mDevice; 51 mDevice = UiDevice.getInstance(getInstrumentation()); 55 mDevice.setOrientationNatural(); 61 mDevice.pressHome(); 68 mDevice.pressBack(); 69 mDevice.pressHome(); // finish settings activity 70 mDevice.waitForIdle(TIMEOUT * 2); // give UI time to finish animating 76 UiObject2 configureNotifications = mDevice.wait( 79 mDevice.wait(Until.findObject(By.text("Blink light")), TIMEOUT); 80 UiObject2 appNotifications = mDevice.wait [all...] |
ZonePickerSettingsTest.java | 56 private UiDevice mDevice; 63 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); 66 mDevice.setOrientationNatural(); 80 mDevice.pressBack(); 81 mDevice.pressBack(); 82 mDevice.pressHome(); 83 mDevice.waitForIdle(TIMEOUT * 2); 136 mDevice.pressBack(); 185 UiObject child = mDevice.findObject(childSelector); 194 UiObject2 item = mDevice.wait(Until.findObject(selector), TIMEOUT) [all...] |
/packages/apps/Settings/tests/unit/src/com/android/settings/dashboard/ |
DashboardSummaryInstrumentationTest.java | 51 private UiDevice mDevice; 56 mDevice = UiDevice.getInstance(mInstrumentation); 69 final UiObject2 item = mDevice.wait(Until.findObject(By.res("android:id/title")
|
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/ |
BaseLauncher3Strategy.java | 34 protected UiDevice mDevice; 41 mDevice = uiDevice; 50 if (!mDevice.hasObject(getHotSeatSelector())) { 51 mDevice.pressHome(); 53 if (!mDevice.wait(Until.hasObject(getHotSeatSelector()), 5000)) { 57 mDevice.dumpWindowHierarchy(baos); 69 mDevice.waitForIdle(); 87 if (!mDevice.hasObject(getAllAppsSelector())) { 91 mDevice.wait(Until.findObject(getAllAppsButtonSelector()), 2000); 95 mDevice.wait(Until.gone(getHotSeatSelector()), 2000) [all...] |
CommonLauncherHelper.java | 41 private UiDevice mDevice; 44 mDevice = uiDevice; 93 UiObject2 appIcon = mDevice.findObject(app); 154 if (!mDevice.hasObject(app)) { 158 if (!mDevice.hasObject(app)) { 161 while (!mDevice.hasObject(app) && container.scroll(dir, 0.8f)) { 175 if (!mDevice.findObject(app).clickAndWait(Until.newWindow(), APP_LAUNCH_TIMEOUT)) { 179 mDevice.waitForIdle(); 183 boolean success = mDevice.wait(Until.hasObject( 196 return mDevice.hasObject(By.pkg(appPackage).depth(0)) [all...] |
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/ |
QuickSettingsHelper.java | 35 private UiDevice mDevice = null; 42 this.mDevice = device; 84 UiObject2 quickSettingEdit = mDevice.wait(Until.findObject 92 UiObject2 quickSettingTileObject = mDevice.wait(Until.findObject 94 Point destination = mDevice.wait(Until.findObject 106 mDevice.wait(Until.findObject(By.descContains("Navigate up")), LONG_TIMEOUT); 128 mDevice.pressHome(); 135 mDevice.swipe(mDevice.getDisplayWidth() / 2, mDevice.getDisplayHeight() [all...] |
/platform_testing/tests/functional/applinktests/src/com/android/functional/applinktests/ |
AppLinkTests.java | 48 private UiDevice mDevice = null; 55 mDevice = UiDevice.getInstance(getInstrumentation()); 58 mDevice.setOrientationNatural(); 76 mDevice.wait(Until.findObject(By.text("AppLinkTestApp")), TIMEOUT).click(); 77 mDevice.wait(Until.findObject(By.res("android:id/button_once")), TIMEOUT).click(); 82 mDevice.wait(Until.hasObject(By.text("Open with AppLinkTestApp")), TIMEOUT)); 83 mDevice.wait(Until.findObject(By.res("android:id/button_once")), TIMEOUT) 87 mDevice.pressHome(); 91 mDevice.wait(Until.findObject(By.res("android:id/button_always")), TIMEOUT).click(); 92 mDevice.pressHome() [all...] |
/platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/ |
NotificationBundlingTests.java | 41 private UiDevice mDevice = null; 48 mDevice = UiDevice.getInstance(getInstrumentation()); 52 mHelper = new NotificationHelper(mDevice, getInstrumentation(), mNotificationManager); 53 mDevice.pressHome(); 56 mDevice.setOrientationNatural(); 65 mDevice.pressHome(); 76 UiObject2 obj = mDevice.wait( 80 mDevice.wait(Until.findObject(By.res("android:id/expand_button")), LONG_TIMEOUT).click(); 81 obj = mDevice.wait(Until.findObject(By.textContains(lists.get(1).toString())), 108 mDevice.openNotification() [all...] |
NotificationDNDTests.java | 49 private UiDevice mDevice = null; 59 mDevice = UiDevice.getInstance(getInstrumentation()); 63 mHelper = new NotificationHelper(mDevice, getInstrumentation(), mNotificationManager); 76 mDevice.setOrientationNatural(); 78 mDevice.pressHome(); 86 mDevice.pressHome(); 87 mDevice.unfreezeRotation(); 125 mDevice.wait(Until.findObject(By.textContains("Uncategorized")), LONG_TIMEOUT) 127 mDevice.wait(Until.findObject(By.textContains("Override Do Not Disturb")), LONG_TIMEOUT) 139 mDevice.wait(Until.findObject(By.textContains("Uncategorized")), LONG_TIMEOUT [all...] |
NotificationInteractionTests.java | 70 private UiDevice mDevice = null; 80 mDevice = UiDevice.getInstance(getInstrumentation()); 84 mHelper = new NotificationHelper(mDevice, getInstrumentation(), mNotificationManager); 85 mDevice.setOrientationNatural(); 94 mDevice.unfreezeRotation(); 95 mDevice.pressHome(); 102 mDevice.openNotification(); 108 obj = mDevice.wait(Until.findObject(By.text(text)), 133 if (mDevice.openNotification()) { 166 if (mDevice.openNotification()) [all...] |
/platform_testing/tests/functional/permission/src/com/android/functional/permissiontests/ |
GenericAppPermissionTests.java | 44 private UiDevice mDevice = null; 64 mDevice = UiDevice.getInstance(getInstrumentation()); 67 mDevice.setOrientationNatural(); 71 mILauncherStrategy = LauncherStrategyFactory.getInstance(mDevice).getLauncherStrategy(); 112 if (!mDevice.hasObject(By.pkg(PERMISSION_TEST_APP_PKG).depth(0))) { 115 mDevice.wait(Until.findObject(By.res(PERMISSION_TEST_APP_PKG, GET_PERMISSION_BUTTON)), 117 mDevice.wait(Until.findObject( 126 if (!mDevice.hasObject(By.pkg(PERMISSION_TEST_APP_PKG).depth(0))) { 136 mDevice.wait(Until.findObject(getContactSelector), pHelper.TIMEOUT).click(); 137 UiObject2 dontAskChk = mDevice.wait(Until.findObject(dontAskChkSelector), pHelper.TIMEOUT) [all...] |
/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...] |
/platform_testing/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/ |
UiBenchJankTests.java | 45 private UiDevice mDevice; 51 mDevice = UiDevice.getInstance(getInstrumentation()); 52 mHelper = UiBenchJankTestsHelper.getInstance(mDevice, 54 mDevice.wakeUp(); 79 UiObject2 fullscreenOverdrawScreen = mDevice.wait(Until.findObject( 107 UiObject2 invalidateScreen = mDevice.wait(Until.findObject( 123 UiObject2 trivialAnimationScreen = mDevice.wait(Until.findObject( 139 UiObject2 trivialListViewContents = mDevice.wait(Until.findObject( 142 trivialListViewContents.setGestureMargins(mDevice.getDisplayWidth() / 2 - 40, 143 mDevice.getDisplayHeight() / 2 + 100 [all...] |
/system/vold/ |
Keymaster.h | 66 KeymasterOperation() : mDevice{nullptr}, mOpHandle{0}, mError{km::ErrorCode::UNKNOWN_ERROR} {} 69 mDevice = rhs.mDevice; 70 rhs.mDevice = nullptr; 83 : mDevice{d}, mOpHandle{h}, mError{km::ErrorCode::OK} {} 84 KeymasterOperation(km::ErrorCode error) : mDevice{nullptr}, mOpHandle{0}, mError{error} {} 89 KmDevice* mDevice; 102 explicit operator bool() { return mDevice.get() != nullptr; } 118 std::unique_ptr<KmDevice> mDevice;
|
/system/vold/model/ |
PublicVolume.h | 57 dev_t mDevice;
|
/tools/tradefederation/contrib/src/com/android/example/ |
RebootTest.java | 36 private ITestDevice mDevice = null; 80 mDevice = device; 88 return mDevice;
|
/tools/tradefederation/core/prod-tests/src/com/android/fastboot/tests/ |
FastbootTest.java | 80 private ITestDevice mDevice; 95 mDevice = device; 103 return mDevice; 113 String originalFastbootpath = ((IManagedTestDevice)mDevice).getFastbootPath(); 118 ((IManagedTestDevice)mDevice).setFastbootPath(originalFastbootpath); 171 ((IManagedTestDevice)mDevice).setFastbootPath(fastboot.getAbsolutePath()); 174 CLog.v("Flashing device %s", mDevice.getSerialNumber()); 176 flasher.setUp(mDevice, mBuildInfo); 188 CLog.v("Waiting for device %s online", mDevice.getSerialNumber()); 189 mDevice.setRecoveryMode(RecoveryMode.ONLINE) [all...] |
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/ |
DataIdleTestHelper.java | 28 private ITestDevice mDevice; 33 mDevice = device; 47 String res = mDevice.executeShellCommand("ping -c 10 -w 100 " + host);
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
DeviceTestSuite.java | 31 private ITestDevice mDevice = null; 46 return mDevice; 54 mDevice = device; 81 deviceTest.setDevice(mDevice);
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
AppSetupFuncTest.java | 44 private ITestDevice mDevice; 48 mDevice = device; 53 return mDevice;
|
DeviceSetupFuncTest.java | 39 private ITestDevice mDevice; 44 mDevice = device; 49 return mDevice;
|
/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/ |
LauncherJankTests.java | 55 private UiDevice mDevice; 65 mDevice = UiDevice.getInstance(getInstrumentation()); 68 mDevice.setOrientationNatural(); 72 mLauncherStrategy = LauncherStrategyFactory.getInstance(mDevice).getLauncherStrategy(); 76 return mDevice.getLauncherPackageName(); 81 mDevice.unfreezeRotation(); 95 assertTrue(mDevice.hasObject(SystemUiJankTests.getLauncherOverviewSelector(mDevice))); 96 assertTrue(!mDevice.hasObject(getAppListViewSelector())); 99 UiObject2 predictionRow = mDevice.wait [all...] |