HomeSort by relevance Sort by last modified time
    Searched refs:mDevice (Results 51 - 75 of 1114) sorted by null

1 23 4 5 6 7 8 91011>>

  /development/tools/hosttestlib/src/com/android/hosttest/
DeviceTestSuite.java 30 private IDevice mDevice = null;
56 deviceTest.setDevice(mDevice);
66 return mDevice;
80 mDevice = device;
  /platform_testing/libraries/system-helpers/activity-helper/src/android/system/helpers/
ActivityHelper.java 50 private UiDevice mDevice = null;
54 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
108 while (!mDevice.wait(Until.hasObject(By.res(SYSTEMUI_PACKAGE, "recents_view")),
110 mDevice.pressRecentApps();
114 if (mDevice.wait(Until.hasObject(By.text("No recent items")), TIMEOUT * 5)) {
117 Assert.assertTrue("Device expects recent items", mDevice.wait(Until.hasObject(
121 int recents = mDevice.wait(Until.findObjects(
125 mDevice.pressKeyCode(KeyEvent.KEYCODE_APP_SWITCH);
127 mDevice.pressKeyCode(KeyEvent.KEYCODE_DEL);
139 while (!mDevice.wait(Until.hasObject(By.res(SYSTEMUI_PACKAGE, "recents_view"))
    [all...]
  /test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/
FailureListener.java 34 private ITestDevice mDevice;
45 mDevice = device;
74 try (InputStreamSource screenSource = mDevice.getScreenshot()) {
81 mDevice.getSerialNumber());
87 api = mDevice.getApiLevel();
92 try (InputStreamSource fallback = mDevice.getBugreport()) {
97 try (InputStreamSource bugSource = mDevice.getBugreportz()) {
110 try (InputStreamSource logSource = mDevice.getLogcat(mMaxLogcatBytes)) {
119 if ("user".equals(mDevice.getProperty("ro.build.type"))) {
123 mDevice.reboot()
    [all...]
  /tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
TemperatureCollectorTest.java 46 private ITestDevice mDevice;
53 mDevice = mock(ITestDevice.class);
54 when(mDevice.isAdbRoot()).thenReturn(true);
55 when(mContext.getDevices()).thenReturn(Collections.singletonList(mDevice));
65 when(mDevice.executeShellCommand(eq("cat /sys/class/hwmon/hwmon1/device/msm_therm")))
70 mCollector.collect(mDevice, data);
71 mCollector.collect(mDevice, data);
74 verify(mDevice, times(2))
85 when(mDevice.executeShellCommand(eq("cat /sys/class/hwmon/hwmon1/device/msm_therm")))
91 mCollector.collect(mDevice, data)
    [all...]
  /packages/apps/Settings/src/com/android/settings/bluetooth/
RemoteDeviceNameDialogFragment.java 34 private CachedBluetoothDevice mDevice;
55 mDevice = getDevice(context);
70 if (mDevice != null) {
71 return mDevice.getName();
78 if (mDevice != null) {
79 mDevice.setName(deviceName);
  /platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/
UiBenchRenderingJankTests.java 38 private UiDevice mDevice;
44 mDevice = UiDevice.getInstance(getInstrumentation());
45 mDevice.setOrientationNatural();
47 mDevice);
52 mDevice.unfreezeRotation();
73 mHelper.mContents = mDevice.wait(Until.findObject(
UiBenchWebView.java 35 private UiDevice mDevice;
41 mDevice = UiDevice.getInstance(getInstrumentation());
42 mDevice.setOrientationNatural();
44 mDevice);
49 mDevice.unfreezeRotation();
57 mHelper.mContents = mDevice.wait(Until.findObject(
UiBenchTextJankTests.java 38 private UiDevice mDevice;
44 mDevice = UiDevice.getInstance(getInstrumentation());
45 mDevice.setOrientationNatural();
47 this.getInstrumentation().getContext(), mDevice);
52 mDevice.unfreezeRotation();
74 mHelper.mContents = mDevice.wait(Until.findObject(
91 mHelper.mContents = mDevice.wait(Until.findObject(
  /platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
AutoLauncherStrategy.java 46 protected UiDevice mDevice;
56 mDevice = uiDevice;
83 mDevice.wait(Until.findObject(button), APP_INIT_WAIT);
84 if (mDevice.hasObject(button)) {
88 UiObject2 choice = mDevice.findObject(button);
91 mDevice.wait(Until.gone(button), APP_INIT_WAIT);
92 Assert.assertFalse("Failed to exit media menu.", mDevice.hasObject(button));
93 mDevice.waitForIdle(APP_INIT_WAIT);
120 while (!mDevice.hasObject(R_ID_LENSPICKER_PAGE_DOWN)
121 && !mDevice.hasObject(R_ID_LENSPICKER_LIST))
    [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...]
WearLauncherStrategy.java 41 protected UiDevice mDevice;
57 mDevice = uiDevice;
65 if (!mDevice.hasObject(getHotSeatSelector())) {
66 mDevice.pressHome();
67 if (!mDevice.wait(Until.hasObject(getHotSeatSelector()), 5000)) {
71 mDevice.waitForIdle();
82 if (!mDevice.hasObject(getAllAppsSelector())) {
83 mDevice.pressHome();
84 mDevice.waitForIdle();
85 if (!mDevice.wait(Until.hasObject(getAllAppsSelector()), 5000))
    [all...]
  /frameworks/av/media/libaudiohal/4.0/
DeviceHalHidl.cpp 108 : ConversionHelperHidl("Device"), mDevice(device),
113 if (mDevice != 0) {
114 mDevice.clear();
125 if (mDevice == 0) return NO_INIT;
126 return processReturn("initCheck", mDevice->initCheck());
130 if (mDevice == 0) return NO_INIT;
136 if (mDevice == 0) return NO_INIT;
142 if (mDevice == 0) return NO_INIT;
156 if (mDevice == 0) return NO_INIT;
162 if (mDevice == 0) return NO_INIT
    [all...]
  /platform_testing/tests/functional/overviewtests/src/com/android/overview/functional/
RecentsTests.java 49 private UiDevice mDevice;
57 mDevice = UiDevice.getInstance(getInstrumentation());
59 mDevice.setOrientationNatural();
60 mLauncherStrategy = LauncherStrategyFactory.getInstance(mDevice).getLauncherStrategy();
61 mOverviewHelper = new OverviewHelper(mDevice, getInstrumentation());
66 mDevice.pressHome();
67 mDevice.unfreezeRotation();
68 mDevice.waitForIdle();
84 UiObject2 dismissCalculator = mDevice.wait(Until.findObject
88 mDevice.waitForIdle()
    [all...]
  /tools/tradefederation/core/prod-tests/src/com/android/framework/tests/
PackageManagerOTATestUtils.java 44 private ITestDevice mDevice = null;
54 mDevice = device;
64 File prop = mDevice.pullFile("/data/local.prop");
65 mDevice.rebootIntoBootloader();
66 mDevice.fastbootWipePartition(USERDATA_PARTITION);
67 mDevice.rebootUntilOnline();
69 mDevice.pushFile(prop, "/data/local.prop");
70 mDevice.executeShellCommand("chmod 644 /data/local.prop");
71 mDevice.reboot();
84 mDevice.remountSystemWritable()
    [all...]
  /frameworks/av/media/libaudiohal/2.0/
DeviceHalHidl.cpp 102 : ConversionHelperHidl("Device"), mDevice(device),
107 if (mDevice != 0) {
108 mDevice.clear();
119 if (mDevice == 0) return NO_INIT;
120 return processReturn("initCheck", mDevice->initCheck());
124 if (mDevice == 0) return NO_INIT;
130 if (mDevice == 0) return NO_INIT;
136 if (mDevice == 0) return NO_INIT;
150 if (mDevice == 0) return NO_INIT;
156 if (mDevice == 0) return NO_INIT
    [all...]
  /packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
MoreWirelessSettingsTests.java 35 private UiDevice mDevice;
40 mDevice = UiDevice.getInstance(getInstrumentation());
42 mDevice.setOrientationNatural();
50 mDevice.pressBack();
51 mDevice.pressHome();
75 mDevice.wait(Until
79 UiObject2 usbTethering = mDevice.wait(Until
88 mDevice.wait(Until
92 UiObject2 usbTethering = mDevice.wait(Until
121 mDevice.wait(Unti
    [all...]
  /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...]
SettingsJankTests.java 54 private UiDevice mDevice;
57 mDevice = UiDevice.getInstance(getInstrumentation());
60 mDevice.setOrientationNatural();
65 mDevice.pressHome();
66 mDevice.waitForIdle();
73 mDevice.wait(Until.hasObject(By.pkg(SETTINGS_PACKAGE).depth(0)), TIMEOUT);
79 mDevice.unfreezeRotation();
84 UiObject2 list = mDevice.wait(Until.findObject(SETTINGS_DASHBOARD), TIMEOUT);
87 mDevice.wait(Until.findObject(By.text("SEE ALL")), TIMEOUT).click();
88 list = mDevice.wait(Until.findObject(SETTINGS_DASHBOARD), TIMEOUT)
    [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...]
  /tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
RunHostCommandTargetPreparerTest.java 45 private ITestDevice mDevice;
52 mDevice = EasyMock.createMock(ITestDevice.class);
83 EasyMock.expect(mDevice.getSerialNumber()).andReturn(DEVICE_SERIAL);
85 EasyMock.replay(mRunUtil, mDevice);
86 mPreparer.setUp(mDevice, null);
87 EasyMock.verify(mRunUtil, mDevice);
104 EasyMock.expect(mDevice.getSerialNumber()).andReturn(DEVICE_SERIAL);
106 EasyMock.replay(mRunUtil, mDevice);
107 mPreparer.tearDown(mDevice, null, null);
108 EasyMock.verify(mRunUtil, mDevice);
    [all...]
  /hardware/intel/img/hwcomposer/merrifield/common/observers/
VsyncEventObserver.cpp 28 mDevice(IDisplayDevice::DEVICE_COUNT),
51 mDevice = mDisplayDevice.getType();
89 ATRACE("enabled = %d on device %d", enabled, mDevice);
96 bool ret = mVsyncControl->control(mDevice, enabled);
98 ETRACE("failed to control (%d) vsync on display %d", enabled, mDevice);
123 bool ret = mVsyncControl->wait(mDevice, timestamp);
125 WTRACE("failed to wait for vsync on display %d, vsync enabled %d", mDevice, mEnabled);
  /hardware/intel/img/hwcomposer/moorefield_hdmi/common/observers/
VsyncEventObserver.cpp 28 mDevice(IDisplayDevice::DEVICE_COUNT),
50 mDevice = mDisplayDevice.getType();
88 ALOGTRACE("enabled = %d on device %d", enabled, mDevice);
95 bool ret = mVsyncControl->control(mDevice, enabled);
97 ELOGTRACE("failed to control (%d) vsync on display %d", enabled, mDevice);
122 bool ret = mVsyncControl->wait(mDevice, timestamp);
124 WLOGTRACE("failed to wait for vsync on display %d, vsync enabled %d", mDevice, mEnabled);
  /packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/
HfpClientConference.java 28 private BluetoothDevice mDevice;
34 mDevice = device;
46 mHeadsetProfile.terminateCall(mDevice, null);
65 mHeadsetProfile.holdCall(mDevice);
71 mHeadsetProfile.acceptCall(mDevice, BluetoothHeadsetClient.CALL_ACCEPT_HOLD);
78 mHeadsetProfile.sendDTMF(mDevice, (byte) c);
90 mHeadsetProfile.acceptCall(mDevice, BluetoothHeadsetClient.CALL_ACCEPT_NONE);
  /packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/
CellBroadcastSettingsTest.java 41 private UiDevice mDevice;
47 mDevice = UiDevice.getInstance(mInstrumentation);
54 mDevice.wakeUp();
55 mDevice.pressMenu();
65 mDevice.setOrientationLeft();
66 mDevice.setOrientationNatural();
67 mDevice.setOrientationRight();
  /packages/apps/Settings/tests/unit/src/com/android/settings/applications/
DefaultAppSettingsTest.java 37 private UiDevice mDevice;
44 mDevice = UiDevice.getInstance(getInstrumentation());
53 mDevice.findObject(new UiSelector().text(titleHomeApp)).click();
54 final UiObject actionBar = mDevice.findObject(new UiSelector().resourceId(
69 mDevice.findObject(new UiSelector().text(titleApps)).click();
72 mDevice.findObject(new UiSelector().text(titleAdvance)).click();
75 mDevice.findObject(new UiSelector().text(titleDefaultApps)).click();

Completed in 687 milliseconds

1 23 4 5 6 7 8 91011>>