HomeSort by relevance Sort by last modified time
    Searched refs:mDevice (Results 1 - 25 of 991) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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/perf/PerfTransitionTest/src/com/android/apptransition/tests/
LatencyTests.java 47 private UiDevice mDevice;
52 mDevice = UiDevice.getInstance(getInstrumentation());
56 mDevice.pressHome();
68 mDevice.waitForIdle();
70 mDevice.waitForIdle();
78 mDevice.swipe(mDevice.getDisplayWidth() / 2,
79 0, mDevice.getDisplayWidth() / 2,
80 mDevice.getDisplayHeight() / 2,
85 mDevice.swipe(mDevice.getDisplayWidth() / 2
    [all...]
  /hardware/interfaces/nfc/1.0/default/
Nfc.cpp 17 Nfc::Nfc(nfc_nci_device_t* device) : mDevice(device),
25 if (mDevice == nullptr || mCallback == nullptr) {
29 int ret = mDevice->open(mDevice, eventCallback, dataCallback);
34 if (mDevice == nullptr) {
37 return mDevice->write(mDevice, data.size(), &data[0]);
43 if (mDevice == nullptr) {
46 int ret = mDevice->core_initialized(mDevice, &copy[0])
    [all...]
  /packages/apps/TV/tests/jank/src/com/android/tv/tests/jank/
ChannelZappingJankTest.java 48 private UiDevice mDevice;
53 mDevice = UiDevice.getInstance(getInstrumentation());
55 LiveChannelsUiDeviceHelper liveChannelsHelper = new LiveChannelsUiDeviceHelper(mDevice,
58 Utils.pressKeysForChannelNumber(STARTING_CHANNEL, mDevice);
68 mDevice.pressDPadUp();
69 mDevice.waitForIdle();
71 mDevice.pressBack();
72 mDevice.waitForIdle();
79 mDevice.pressDPadUp();
80 mDevice.waitForIdle()
    [all...]
MenuJankTest.java 46 protected UiDevice mDevice;
55 mDevice = UiDevice.getInstance(getInstrumentation());
57 mMenuHelper = new MenuHelper(mDevice, mTargetResources);
58 mLiveChannelsHelper = new LiveChannelsUiDeviceHelper(mDevice, mTargetResources,
61 Utils.pressKeysForChannelNumber(STARTING_CHANNEL, mDevice);
72 mDevice.pressBack();
73 mDevice.waitForIdle();
80 mDevice.pressDPadUp();
81 mDevice.waitForIdle();
  /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...]
  /platform_testing/tests/functional/overviewtests/src/com/android/overview/functional/
MultiWindowTests.java 51 private UiDevice mDevice;
60 mDevice = UiDevice.getInstance(getInstrumentation());
63 mDevice.setOrientationNatural();
64 mLauncherStrategy = LauncherStrategyFactory.getInstance(mDevice).getLauncherStrategy();
65 mOverviewHelper = new OverviewHelper(mDevice, getInstrumentation());
70 mDevice.pressHome();
71 mDevice.unfreezeRotation();
72 mDevice.waitForIdle();
77 return mDevice.getLauncherPackageName();
84 mDevice.click(mDevice.getDisplayHeight() * 3/4, mDevice.getDisplayWidth() / 2)
    [all...]
  /packages/apps/TV/tests/func/src/com/android/tv/tests/ui/
PlayControlsRowViewTest.java 47 mDevice.pressDPadUp();
60 mDevice.pressBack();
70 mDevice.pressKeyCode(KeyEvent.KEYCODE_MEDIA_FAST_FORWARD);
73 mDevice.pressBack();
76 mDevice.pressKeyCode(KeyEvent.KEYCODE_MEDIA_NEXT);
79 mDevice.pressBack();
89 mDevice.pressKeyCode(KeyEvent.KEYCODE_MEDIA_PREVIOUS);
92 mDevice.pressBack();
95 mDevice.pressKeyCode(KeyEvent.KEYCODE_MEDIA_REWIND);
98 mDevice.pressBack()
    [all...]
LiveChannelsAppTest.java 53 assertWaitForCondition(mDevice, Until.hasObject(byChannelSourcesSidePanel));
54 mDevice.pressBack();
55 assertWaitForCondition(mDevice, Until.gone(byChannelSourcesSidePanel));
56 assertHas(mDevice, Constants.MENU, false);
63 assertWaitForCondition(mDevice, Until.hasObject(byClosedCaptionSidePanel));
64 mDevice.pressBack();
65 assertWaitForCondition(mDevice, Until.gone(byClosedCaptionSidePanel));
66 assertHas(mDevice, Constants.MENU, false);
79 assertWaitForCondition(mDevice, Until.hasObject(byDisplayModeSidePanel));
80 mDevice.pressBack()
    [all...]
ChannelSourcesTest.java 46 assertWaitForCondition(mDevice, Until.hasObject(mBySettingsSidePanel));
49 mDevice.pressDPadCenter();
51 assertWaitForCondition(mDevice,
53 mDevice.pressBack();
60 assertWaitForCondition(mDevice, Until.hasObject(mBySettingsSidePanel));
63 mDevice.pressDPadCenter();
64 mDevice.pressDPadCenter();
66 assertWaitForCondition(mDevice,
68 mDevice.pressBack();
ParentalControlsTest.java 54 assertWaitForCondition(mDevice, Until.hasObject(bySidePanel));
56 mDevice.pressDPadCenter();
59 assertWaitForCondition(mDevice, Until.hasObject(bySidePanel));
69 mDevice.pressDPadCenter();
73 mDevice.pressDPadCenter();
76 mDevice.pressDPadCenter();
78 mDevice.pressBack();
79 mDevice.pressBack();
109 mDevice.pressDPadCenter();
112 assertWaitForCondition(mDevice, Until.hasObject(bySidePanel))
    [all...]
  /platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
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...]
  /tools/tradefederation/core/tests/src/com/android/tradefed/profiler/recorder/
TraceMetricsRecorderTest.java 50 ITestDevice mDevice;
54 mDevice = EasyMock.createMock(ITestDevice.class);
60 EasyMock.expect(mDevice.executeShellCommand((String) EasyMock.anyObject()))
63 EasyMock.expect(mDevice.pullFile((String) EasyMock.anyObject()))
65 EasyMock.replay(mDevice);
66 mRecorder.setUp(mDevice, Arrays.asList("mmc:mmc_cmd_rw_start:int_status:COUNT"));
67 Map<String, Double> metrics = mRecorder.stopMetrics(mDevice);
68 EasyMock.verify(mDevice);
76 EasyMock.expect(mDevice.executeShellCommand((String) EasyMock.anyObject()))
79 EasyMock.expect(mDevice.pullFile((String) EasyMock.anyObject())
    [all...]
  /cts/hostsidetests/security/src/android/security/cts/
EncryptionHostTest.java 33 ITestDevice mDevice;
39 mDevice = getDevice();
40 mUserDebug = "userdebug".equals(mDevice.executeShellCommand("getprop ro.build.type").trim());
44 mDevice.enableAdbRoot();
50 mDevice.disableAdbRoot();
56 if (!mUserDebug || !mDevice.isDeviceEncrypted()) {
62 mDevice.executeShellCommand("echo " + uuid + " > /data/local/tmp/" + uuid);
63 String uuidReturned = mDevice.executeShellCommand("cat /data/local/tmp/" + uuid).trim();
67 String fstabName = mDevice.executeShellCommand("ls /fstab.*");
68 String[] fstab = mDevice.executeShellCommand("cat " + fstabName).split("\n")
    [all...]
  /development/tools/hosttestlib/src/com/android/hosttest/
DeviceTestCase.java 31 private IDevice mDevice = null;
42 mDevice = device;
49 return mDevice;
  /cts/hostsidetests/services/activityandwindowmanager/activitymanager/src/android/server/cts/
KeyguardTests.java 33 mDevice.executeShellCommand("locksettings set-disabled false");
41 mDevice.executeShellCommand("locksettings set-disabled true");
49 mAmWmState.computeState(mDevice, new String[] { "TestActivity"});
52 mAmWmState.computeState(mDevice, null);
63 mAmWmState.computeState(mDevice, new String[] { "ShowWhenLockedActivity"});
66 mAmWmState.computeState(mDevice, null);
82 mAmWmState.computeState(mDevice, new String[] { "ShowWhenLockedWithDialogActivity"});
85 mAmWmState.computeState(mDevice, null);
103 mAmWmState.computeState(mDevice, new String[] { "ShowWhenLockedActivity",
108 mAmWmState.computeState(mDevice, null)
    [all...]
KeyguardLockedTests.java 53 mAmWmState.waitForKeyguardShowingAndNotOccluded(mDevice);
56 mAmWmState.waitForKeyguardGone(mDevice);
65 mAmWmState.waitForKeyguardShowingAndNotOccluded(mDevice);
69 mAmWmState.waitForKeyguardGone(mDevice);
79 mAmWmState.waitForKeyguardShowingAndNotOccluded(mDevice);
82 mAmWmState.computeState(mDevice, new String[] { SHOW_WHEN_LOCKED_ACTIVITY });
86 mAmWmState.waitForKeyguardGone(mDevice);
97 mAmWmState.waitForKeyguardShowingAndNotOccluded(mDevice);
100 mAmWmState.computeState(mDevice, new String[] { SHOW_WHEN_LOCKED_ACTIVITY });
116 mAmWmState.computeState(mDevice, null)
    [all...]
KeyguardTransitionTests.java 36 mDevice.executeShellCommand("locksettings set-disabled false");
44 mDevice.executeShellCommand("locksettings set-disabled true");
54 mAmWmState.computeState(mDevice, new String[] { "TestActivity"} );
66 mAmWmState.computeState(mDevice, new String[] { "WallpaperActivity"} );
77 mAmWmState.computeState(mDevice, new String[] { "ShowWhenLockedActivity"} );
89 mAmWmState.waitForKeyguardShowingAndNotOccluded(mDevice);
90 mAmWmState.computeState(mDevice, null);
102 mAmWmState.computeState(mDevice, new String[] { "ShowWhenLockedWithDialogActivity" });
  /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...]
  /hardware/interfaces/audio/2.0/default/
Device.cpp 40 : mDevice(device) {
44 int status = audio_hw_device_close(mDevice);
45 ALOGW_IF(status, "Error closing audio hw device %p: %s", mDevice,
47 mDevice = nullptr;
52 ALOGW("Device %p %s: %s", mDevice, funcName, strerror(-status));
71 mDevice->close_input_stream(mDevice, stream);
75 mDevice->close_output_stream(mDevice, stream);
79 return mDevice->get_parameters(mDevice, keys)
    [all...]
PrimaryDevice.cpp 29 : mDevice(new Device(device)) {
36 return mDevice->initCheck();
40 return mDevice->setMasterVolume(volume);
44 return mDevice->getMasterVolume(_hidl_cb);
48 return mDevice->setMicMute(mute);
52 return mDevice->getMicMute(_hidl_cb);
56 return mDevice->setMasterMute(mute);
60 return mDevice->getMasterMute(_hidl_cb);
65 return mDevice->getInputBufferSize(config, _hidl_cb);
73 return mDevice->openOutputStream(ioHandle, device, config, flags, _hidl_cb)
    [all...]
  /platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/
SystemUiJankTests.java 109 private UiDevice mDevice;
114 mDevice = UiDevice.getInstance(getInstrumentation());
116 mDevice.setOrientationNatural();
127 mDevice.pressHome();
128 mDevice.waitForIdle();
133 mDevice.unfreezeRotation();
156 mDevice.pressHome();
157 mDevice.waitForIdle();
159 mDevice.pressRecentApps();
164 mDevice.wait(Until.findObject(RECENTS), 10000)
    [all...]
  /platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
LockscreenHelper.java 52 private UiDevice mDevice = null;
60 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
81 int w = mDevice.getDisplayWidth();
82 int h = mDevice.getDisplayHeight();
84 mDevice.drag((w - 25), (h - 25), (int) (w * 0.5), (int) (w * 0.5), 40);
85 mDevice.waitForIdle();
86 return mDevice.wait(Until.hasObject(
99 mDevice.wait(Until.findObject(By.text(mode)), LONG_TIMEOUT * 2).click();
102 mDevice.wait(Until.findObject(By.text("No thanks")), LONG_TIMEOUT).click();
104 UiObject2 pinField = mDevice.wait(Until.findObject(By.clazz(EDIT_TEXT_CLASS_NAME))
    [all...]
OverviewHelper.java 50 private UiDevice mDevice = null;
57 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
76 mDevice.pressRecentApps();
77 mDevice.waitForIdle();
78 return mDevice.wait(Until.findObject(By.res(RECENTS)), TIMEOUT);
127 while (mDevice.hasObject(By.textContains("has stopped"))) {
128 UiObject2 crashDialog = mDevice.findObject(By.text("Close"));
151 mDevice.swipe(r.width() / 2, top, r.width() / 2, bottom, 5);
152 mDevice.waitForIdle();
163 mDevice.pressRecentApps()
    [all...]
  /platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/
NotificationInlineReplyTests.java 35 private UiDevice mDevice = null;
42 mDevice = UiDevice.getInstance(getInstrumentation());
46 mHelper = new NotificationHelper(mDevice, getInstrumentation(), mNotificationManager);
48 mDevice.setOrientationNatural();
52 mDevice.pressHome();
59 mDevice.pressHome();
68 UiObject2 obj = mDevice.wait(Until.findObject(By.text("INLINE REPLY TEST")),
70 mDevice.swipe(obj.getVisibleBounds().centerX(), obj.getVisibleBounds().centerY(),
72 mDevice.getDisplayHeight(), 5);
73 mDevice.wait(Until.findObject(By.text("REPLY")), LONG_TIMEOUT).click()
    [all...]

Completed in 518 milliseconds

1 2 3 4 5 6 7 8 91011>>