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

1 2 34 5 6 7 8 91011>>

  /platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/
UiBenchTransitionsJankTests.java 37 private UiDevice mDevice;
43 mDevice = UiDevice.getInstance(getInstrumentation());
44 mDevice.setOrientationNatural();
46 this.getInstrumentation().getContext(), mDevice);
51 mDevice.unfreezeRotation();
63 UiObject2 image = mDevice.wait(Until.findObject(
67 mDevice.pressBack();
  /platform_testing/tests/jank/jankmicrobenchmark/src/com/android/jankmicrobenchmark/janktests/
ApiDemoJankTests.java 50 private UiDevice mDevice;
56 mDevice = UiDevice.getInstance(getInstrumentation());
57 mDevice.setOrientationNatural();
58 LauncherStrategyFactory.getInstance(mDevice).getLauncherStrategy().open();
63 mDevice.unfreezeRotation();
70 if (mDevice.getProductName().equals("fugu")) {
71 return mDevice.wait(Until.findObject(By.res(LEANBACK_LAUNCHER, "main_list_view")),
75 String launcherPackage = mDevice.getLauncherPackageName();
76 return mDevice.wait(Until.findObject(By.res(launcherPackage,"workspace")),
89 mDevice.waitForIdle()
    [all...]
  /platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
AbstractStandardAppHelper.java 51 public UiDevice mDevice;
59 mDevice = UiDevice.getInstance(instr);
60 mLauncherStrategy = LauncherStrategyFactory.getInstance(mDevice).getLauncherStrategy();
70 if (!mDevice.hasObject(By.pkg(pkg).depth(0))) {
82 while (!mDevice.hasObject(mLauncherStrategy.getWorkspaceSelector()) && maxBacks > 0) {
83 mDevice.pressBack();
84 mDevice.waitForIdle();
89 mDevice.pressHome();
118 return mDevice.hasObject(By.pkg(getPackage()).depth(0));
152 mDevice.dumpWindowHierarchy(uixOut)
    [all...]
  /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...]
  /cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/
EncryptionAppTest.java 60 private UiDevice mDevice;
71 mDevice = UiDevice.getInstance(getInstrumentation());
72 assertNotNull(mDevice);
93 mDevice.waitForIdle();
96 mDevice.executeShellCommand("settings put global require_password_to_decrypt 0");
97 mDevice.executeShellCommand("locksettings set-disabled false");
98 mDevice.executeShellCommand("locksettings set-pin 12345");
107 mDevice.waitForIdle();
110 mDevice.executeShellCommand("locksettings clear --old 12345");
111 mDevice.executeShellCommand("locksettings set-disabled true")
    [all...]
  /hardware/interfaces/biometrics/fingerprint/2.1/default/
BiometricsFingerprint.cpp 43 BiometricsFingerprint::BiometricsFingerprint() : mClientCallback(nullptr), mDevice(nullptr) {
45 mDevice = openHal();
46 if (!mDevice) {
53 if (mDevice == nullptr) {
58 if (0 != (err = mDevice->common.close(
59 reinterpret_cast<hw_device_t*>(mDevice)))) {
63 mDevice = nullptr;
154 return reinterpret_cast<uint64_t>(mDevice);
158 return mDevice->pre_enroll(mDevice);
    [all...]
  /hardware/interfaces/graphics/allocator/2.0/utils/passthrough/include/allocator-passthrough/2.0/
Gralloc1Hal.h 49 if (mDevice) {
50 gralloc1_close(mDevice);
55 int result = gralloc1_open(module, &mDevice);
58 mDevice = nullptr;
64 gralloc1_close(mDevice);
65 mDevice = nullptr;
74 mDispatch.dump(mDevice, &len, nullptr);
77 mDispatch.dump(mDevice, &len, buf.data());
121 mDispatch.destroyDescriptor(mDevice, desc);
136 int32_t error = mDispatch.release(mDevice, buffer)
    [all...]
  /platform_testing/tests/functional/calculator/src/com/android/calculator/functional/
CalculatorHelper.java 43 private UiDevice mDevice = null;
47 mDevice = device;
49 mLauncherStrategy = LauncherStrategyFactory.getInstance(mDevice).getLauncherStrategy();
60 if (!mDevice.hasObject(By.pkg(packageName).depth(0))) {
66 UiObject2 button = mDevice.wait(
90 UiObject2 resultText = mDevice.wait(
98 UiObject2 resultText = mDevice.wait(
106 UiObject2 resultText = mDevice.wait(
112 mDevice.waitForIdle();
117 UiObject2 padAdvanced = mDevice.wait
    [all...]
  /platform_testing/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/
UiBenchTextJankTests.java 49 private UiDevice mDevice;
55 mDevice = UiDevice.getInstance(getInstrumentation());
56 mDevice.setOrientationNatural();
57 mHelper = UiBenchJankTestsHelper.getInstance(mDevice,
64 mDevice.unfreezeRotation();
99 UiObject2 layoutCacheHighHitrateContents = mDevice.wait(Until.findObject(
106 layoutCacheHighHitrateContents = mDevice.wait(Until.findObject(
111 layoutCacheHighHitrateContents = mDevice.wait(Until.findObject(
116 layoutCacheHighHitrateContents = mDevice.wait(Until.findObject(
132 UiObject2 layoutCacheLowHitrateContents = mDevice.wait(Until.findObject
    [all...]
  /platform_testing/tests/jank/androidtvjanktests/src/com/android/androidtv/janktests/
SystemAppJankTests.java 43 private UiDevice mDevice;
47 mDevice = UiDevice.getInstance(getInstrumentation());
56 mDevice.pressHome();
61 mDevice.pressHome();
65 UiObject2 youtubeScreen = mDevice.wait(
82 mDevice.pressDPadRight();
85 UiObject2 youtubeScreen = mDevice.wait( Until.findObject(By.scrollable(true)
102 mDevice.pressDPadDown();
106 mDevice.pressDPadUp();
  /tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
ProcessMaxMemoryCollectorTest.java 45 private ITestDevice mDevice;
66 mDevice = mock(ITestDevice.class);
67 when(mContext.getDevices()).thenReturn(Collections.singletonList(mDevice));
76 when(mDevice.executeShellCommand(Mockito.eq("dumpsys meminfo --checkin system_server")))
81 mCollector.collect(mDevice, data);
84 verify(mDevice).executeShellCommand(Mockito.eq("dumpsys meminfo --checkin system_server"));
94 when(mDevice.executeShellCommand(Mockito.eq("dumpsys meminfo --checkin system_server")))
99 mCollector.collect(mDevice, data);
102 verify(mDevice).executeShellCommand(Mockito.eq("dumpsys meminfo --checkin system_server"));
  /hardware/interfaces/vibrator/1.0/default/
Vibrator.cpp 34 Vibrator::Vibrator(vibrator_device_t *device) : mDevice(device) {}
38 int32_t ret = mDevice->vibrator_on(mDevice, timeout_ms);
47 int32_t ret = mDevice->vibrator_off(mDevice);
  /packages/apps/Settings/src/com/android/settings/bluetooth/
BluetoothPairingController.java 53 private BluetoothDevice mDevice;
71 mDevice = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
76 } else if (mDevice == null) {
82 mDeviceName = mBluetoothManager.getCachedDeviceManager().getName(mDevice);
101 mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_ALLOWED);
103 mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED);
113 mDevice.setPhonebookAccessPermission(BluetoothDevice.ACCESS_REJECTED);
167 switch (mDevice.getPhonebookAccessPermission()) {
173 if (mDevice.getBluetoothClass().getDeviceClass()
186 if ((mDevice.getPhonebookAccessPermission() != BluetoothDevice.ACCESS_ALLOWED
    [all...]
  /packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
BatterySettingsUITest.java 44 private UiDevice mDevice;
49 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
52 mDevice.setOrientationNatural();
61 mDevice.pressHome();
71 SettingsTestUtils.assertTitleMatch(mDevice, category);
LocationSettingsTests.java 36 private UiDevice mDevice;
41 mDevice = UiDevice.getInstance(getInstrumentation());
43 mDevice.setOrientationNatural();
51 mDevice.pressBack();
52 mDevice.pressHome();
65 UiObject2 settingsPanel = mDevice.wait(Until.findObject
70 locationTitle = mDevice.wait(Until.findObject(By.text("Location")), TIMEOUT);
80 mDevice.wait(Until.findObject(By.text("Location services")), TIMEOUT));
129 mDevice.wait(Until.findObject(By.text(element)), TIMEOUT));
139 mDevice.wait(Until.findObject(By.desc("Help & feedback")), TIMEOUT))
    [all...]
SecuritySettingsLaunchTest.java 45 private UiDevice mDevice;
50 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
53 mDevice.setOrientationNatural();
62 mDevice.pressHome();
72 SettingsTestUtils.assertTitleMatch(mDevice, category);
StorageSettingsUITest.java 47 private UiDevice mDevice;
53 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
57 mDevice.setOrientationNatural();
65 mDevice.pressHome();
76 SettingsTestUtils.assertTitleMatch(mDevice, category);
SyncSettingsTest.java 42 private UiDevice mDevice;
46 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
49 mDevice.setOrientationNatural();
58 mDevice.pressHome();
66 UiObject2 addAccount = mDevice.wait(
  /platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
HotseatHelper.java 35 private UiDevice mDevice = null;
41 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
58 mDevice.pressHome();
59 UiObject2 appOnHotseat = mDevice.findObject(By.clazz("android.widget.TextView")
63 UiObject2 appLoaded = mDevice.wait(Until.findObject(By.pkg(appPackage)), TIMEOUT * 2);
  /tools/tradefederation/core/prod-tests/src/com/android/graphics/tests/
SkiaTest.java 51 private ITestDevice mDevice;
78 mDevice = device;
83 return mDevice;
88 if (mDevice == null) {
98 IFileEntry app = mDevice.getFileEntry(fullPath);
102 CLog.w("Could not find test %s in %s!", fullPath, mDevice.getSerialNumber());
125 if (dir == null || mDevice.doesFileExist(dir.getPath())) {
131 mDevice.executeShellCommand("mkdir -p " + dirName);
143 if (mDevice.doesFileExist(path)) {
147 mDevice.executeShellCommand("rm " + path)
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/activities/
SimImportActivityTest.java 94 private UiDevice mDevice;
106 mDevice = UiDevice.getInstance(mInstrumentation);
141 mDevice.waitForIdle();
143 assertTrue(mDevice.wait(Until.hasObject(By.text("Sim One")), TIMEOUT));
145 assertTrue(mDevice.hasObject(By.text("Sim One")));
146 assertTrue(mDevice.hasObject(By.text("Sim Two")));
147 assertTrue(mDevice.hasObject(By.text("5550103")));
157 mDevice.waitForIdle();
159 assertTrue(mDevice.wait(Until.hasObject(By.textStartsWith("No contacts")), TIMEOUT));
170 assertTrue(mDevice.wait(Until.hasObject(By.textStartsWith("No contacts")), TIMEOUT))
    [all...]
  /platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/
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...]
  /cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
BaseDeviceOwnerTest.java 37 protected UiDevice mDevice;
43 mDevice = UiDevice.getInstance(mInstrumentation);
60 return mDevice.executeShellCommand(String.join(" ", command));
  /cts/hostsidetests/monkey/src/com/android/cts/monkey/
MonkeyTest.java 30 mDevice.executeShellCommand(MONKEY_CMD + " -p " + PKGS[0] + " 500");
35 mDevice.executeShellCommand("am start -W -a android.intent.action.MAIN "
42 String logs = mDevice.executeAdbCommand(
VerbosityTest.java 22 String v0 = mDevice.executeShellCommand(MONKEY_CMD + " -s 1337 -p " + PKGS[0] + " 500");
29 String v1 = mDevice.executeShellCommand(MONKEY_CMD + " -v -p " + PKGS[0] + " 500");
36 String v2 = mDevice.executeShellCommand(MONKEY_CMD + " -v -v -p " + PKGS[0] + " 500");

Completed in 690 milliseconds

1 2 34 5 6 7 8 91011>>