Home
last modified time | relevance | path

Searched refs:mDevice (Results 1 – 22 of 22) sorted by relevance

/test/cts-root/hostsidetests/rollback/src/com/android/cts_root/rollback/host/
DWatchdogEventLogger.java33 private ITestDevice mDevice; field in WatchdogEventLogger
36 assertThat(mDevice.setProperty( in resetProperties()
40 assertThat(mDevice.setProperty(key, "")).isTrue(); in resetProperties()
42 assertThat(mDevice.setProperty(key + "." + attr, "")).isTrue(); in resetProperties()
48 mDevice = device; in start()
53 if (mDevice != null) { in stop()
60 String val = mDevice.getProperty(key); in matchProperty()
72 return mDevice.getBooleanProperty(PROP_PREFIX + type, false) in watchdogEventOccurred()
/test/app_compat/csuite/test_scripts/src/main/java/com/android/pixel/utils/
DDeviceUtils.java49 private UiDevice mDevice; field in DeviceUtils
52 mDevice = device; in DeviceUtils()
85 mDevice.wakeUp(); in wakeAndUnlockScreen()
87 mDevice.executeShellCommand(DISMISS_KEYGUARD); in wakeAndUnlockScreen()
97 mDevice.pressBack(); in backToHome()
98 mDevice.waitForIdle(); in backToHome()
99 if (mDevice.hasObject(By.pkg(launcherPkg))) { in backToHome()
103 mDevice.pressHome(); in backToHome()
130 mDevice.takeScreenshot(screenshot); in takeScreenshot()
200 mDevice.executeShellCommand( in run()
[all …]
/test/vts-testcase/hal/usb/gadget/V1_1/host/src/com/android/usb/gadget/vts/
DVtsHalUsbGadgetV1_1HostTest.java43 private ITestDevice mDevice; field in VtsHalUsbGadgetV1_1HostTest
53 String multiplierStr = mDevice.getProperty("ro.hw_timeout_multiplier"); in getAdjustedTimeout()
67 mDevice = getDevice(); in setUp()
83 Assert.assertNotNull("Target device does not exist", mDevice); in testResetUsbGadget()
85 String deviceSerialNumber = mDevice.getSerialNumber(); in testResetUsbGadget()
95 mDevice.waitForDeviceNotAvailable(adjustedTimeout); in testResetUsbGadget()
98 mDevice.waitForDeviceAvailable(adjustedTimeout); in testResetUsbGadget()
112 mDevice.executeShellCommand("svc usb resetUsbGadget"); in testResetUsbGadget()
/test/app_compat/csuite/harness/src/test/java/com/android/csuite/core/
DDeviceUtilsTest.java60 private ITestDevice mDevice = Mockito.mock(ITestDevice.class); field in DeviceUtilsTest
69 when(mDevice.executeShellV2Command(captor.capture())) in grantExternalStoragePermissions_commandFailed_doesNotThrow()
81 when(mDevice.executeShellV2Command(Mockito.startsWith("pm list packages"))) in isPackageInstalled_packageIsInstalled_returnsTrue()
94 when(mDevice.executeShellV2Command(Mockito.startsWith("pm list packages"))) in isPackageInstalled_packageIsNotInstalled_returnsFalse()
105 when(mDevice.executeShellV2Command(Mockito.startsWith("pm list packages"))) in isPackageInstalled_commandFailed_throws()
114 when(mDevice.executeShellV2Command(Mockito.startsWith("monkey"))) in launchPackage_pmDumpFailedAndPackageDoesNotExist_throws()
116 when(mDevice.executeShellV2Command(Mockito.startsWith("pm dump"))) in launchPackage_pmDumpFailedAndPackageDoesNotExist_throws()
118 when(mDevice.executeShellV2Command(Mockito.startsWith("pm list packages"))) in launchPackage_pmDumpFailedAndPackageDoesNotExist_throws()
127 when(mDevice.executeShellV2Command(Mockito.startsWith("monkey"))) in launchPackage_pmDumpFailedAndPackageExists_throws()
129 when(mDevice.executeShellV2Command(Mockito.startsWith("pm dump"))) in launchPackage_pmDumpFailedAndPackageExists_throws()
[all …]
DAppCrawlTesterTest.java67 private final ITestDevice mDevice = Mockito.mock(ITestDevice.class); field in AppCrawlTesterTest
71 private DeviceUtils mDeviceUtils = Mockito.spy(DeviceUtils.getInstance(mDevice));
75 Mockito.when(mDevice.getSerialNumber()).thenReturn("serial"); in setUp()
694 Mockito.when(mDevice.getSerialNumber()).thenReturn("serial"); in createNotPreparedTestSubject()
695 when(mDevice.executeShellV2Command(Mockito.startsWith("echo ${EPOCHREALTIME"))) in createNotPreparedTestSubject()
697 when(mDevice.executeShellV2Command(Mockito.eq("getprop ro.build.version.sdk"))) in createNotPreparedTestSubject()
708 Mockito.when(mDevice.getSerialNumber()).thenReturn("serial"); in createPreparedTestSubject()
709 when(mDevice.executeShellV2Command(Mockito.startsWith("echo ${EPOCHREALTIME"))) in createPreparedTestSubject()
711 when(mDevice.executeShellV2Command(Mockito.eq("getprop ro.build.version.sdk"))) in createPreparedTestSubject()
735 context.addAllocatedDevice("device1", mDevice); in createTestInfo()
DAppCrawlTesterHostPreparerTest.java50 ITestDevice mDevice = Mockito.mock(ITestDevice.class); field in AppCrawlTesterHostPreparerTest
163 context.addAllocatedDevice("device1", mDevice); in createTestInfo()
/test/vts/tests/firmware_test/src/com/android/tests/firmware/
DFirmwareBootHeaderVerification.java55 private ITestDevice mDevice; field in FirmwareBootHeaderVerification
69 mDevice = getDevice(); in setUp()
70 mLaunchApiLevel = mDevice.getLaunchApiLevel(); in setUp()
71 mSlotSuffix = mDevice.getProperty(PROPERTY_SLOT_SUFFIX); in setUp()
76 mSupportedAbis = new ArrayList<>(Arrays.asList(AbiFormatter.getSupportedAbis(mDevice, ""))); in setUp()
83 String acpio_idx_string = mDevice.getProperty(PROPERTY_ACPIO_IDX); in isFullfeelPrecondition()
93 String output = mDevice.executeShellCommand("uname -r"); in isKernelVersionLessThan()
148 mBlockDevPath, currentBootPartition, Arrays.asList(options), mDevice); in testBootImageHeader()
153 mDevice.pullFile(bootPaths.get(0), localBootImg)); in testBootImageHeader()
166 mBlockDevPath, "recovery", Arrays.asList(options), mDevice); in testRecoveryImageHeader()
[all …]
/test/vts-testcase/hal/usb/gadget/aidl/host/src/com/android/usb/gadget/vts/
DVtsHalUsbGadgetV2_0HostTest.java60 private ITestDevice mDevice; field in VtsHalUsbGadgetV2_0HostTest
65 mDevice = getDevice(); in setUp()
184 Assert.assertNotNull("Target device does not exist", mDevice); in testAndroidNcm()
186 String deviceSerialNumber = mDevice.getSerialNumber(); in testAndroidNcm()
190 mDevice.executeShellCommand("svc usb setFunctions ncm"); in testAndroidNcm()
207 Assert.assertNotNull("Target device does not exist", mDevice); in testGetUsbSpeed()
209 String deviceSerialNumber = mDevice.getSerialNumber(); in testGetUsbSpeed()
213 String output = mDevice.executeShellCommand("svc usb getUsbSpeed"); in testGetUsbSpeed()
230 Assert.assertNotNull("Target device does not exist", mDevice); in testResetUsbGadget()
232 String deviceSerialNumber = mDevice.getSerialNumber(); in testResetUsbGadget()
[all …]
/test/vts/tools/vts-core-tradefed/src/com/android/tradefed/targetprep/
DMultiSimPreparer.java31 private ITestDevice mDevice; field in MultiSimPreparer
39 mDevice = device; in setUp()
90 mDevice.waitForDeviceNotAvailable(SHUTDOWN_TIMEOUT_MS); in setSimCount()
91 mDevice.waitForDeviceAvailable(); in setSimCount()
96 return mDevice.executeShellCommand(cmd).trim(); in executeCmd()
/test/vts-testcase/hal/usb/usb/aidl/host/src/com/android/usb/vts/
DVtsAidlUsbHostTest.java49 private ITestDevice mDevice; field in VtsAidlUsbHostTest
54 mDevice = getDevice(); in setUp()
70 Assert.assertNotNull("Target device does not exist", mDevice); in testResetUsbPort()
73 String deviceSerialNumber = mDevice.getSerialNumber(); in testResetUsbPort()
83 mDevice.waitForDeviceNotAvailable(CONN_TIMEOUT); in testResetUsbPort()
85 mDevice.waitForDeviceAvailable(CONN_TIMEOUT); in testResetUsbPort()
99 portResult = mDevice.executeShellCommand(cmd); in testResetUsbPort()
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/targetprep/
DDeviceInfoCollectorTest.java49 private ITestDevice mDevice; field in DeviceInfoCollectorTest
56 mDevice = Mockito.mock(ITestDevice.class); in setUp()
60 context.addAllocatedDevice("device", mDevice); in setUp()
74 when(mDevice.getProperty(Mockito.any())).thenReturn("value"); in pullDeviceInfo_fail()
76 mDevice.pullDir( in pullDeviceInfo_fail()
94 when(mDevice.getProperty(Mockito.any())).thenReturn("value"); in pullDeviceInfo()
96 mDevice.pullDir( in pullDeviceInfo()
/test/vts-testcase/hal/usb/gadget/V1_2/host/src/com/android/usb/gadget/vts/
DVtsHalUsbGadgetV1_2HostTest.java57 private ITestDevice mDevice; field in VtsHalUsbGadgetV1_2HostTest
64 mDevice = getDevice(); in setUp()
123 Assert.assertNotNull("Target device does not exist", mDevice); in testAndroidNcm()
125 String deviceSerialNumber = mDevice.getSerialNumber(); in testAndroidNcm()
129 mDevice.executeShellCommand("svc usb setFunctions ncm"); in testAndroidNcm()
144 Assert.assertNotNull("Target device does not exist", mDevice); in testGetUsbSpeed()
146 String deviceSerialNumber = mDevice.getSerialNumber(); in testGetUsbSpeed()
150 String output = mDevice.executeShellCommand("svc usb getUsbSpeed"); in testGetUsbSpeed()
/test/vts-testcase/kernel/dynamic_partitions/src/com/android/tests/kerneldynamicpartitions/
DKernelDynamicPartitionsTest.java32 private ITestDevice mDevice; field in KernelDynamicPartitionsTest
36 mDevice = getDevice(); in setUp()
43 mDevice.getProperty(DYNAMIC_PARTITIONS_PROP)); in testDynamicPartitionsSysProp()
/test/vts/tests/firmware_dtbo_test/src/com/android/tests/firmwaredtbo/
DFirmwareDtboVerification.java69 private ITestDevice mDevice; field in FirmwareDtboVerification
85 mDevice = getDevice(); in setUp()
98 String slot_suffix = mDevice.getProperty(PROPERTY_SLOT_SUFFIX); in testCheckDTBOPartition()
105 BLOCK_DEV_PATH, currentDtboPartition, Arrays.asList(options), mDevice); in testCheckDTBOPartition()
110 mDevice.pullFile(dtboPaths.get(0), hostDtboImage)); in testCheckDTBOPartition()
215 CommandResult cmdResult = mDevice.executeShellV2Command(bootconfig_cmd); in testVerifyOverlay()
226 cmdResult = mDevice.executeShellV2Command(cmdline_cmd); in testVerifyOverlay()
240 TargetFileUtils.findFile(DEVICE_TEMP_DIR, ufdtVerifier, null, mDevice); in testVerifyOverlay()
242 if (!mDevice.isDirectory(matchedResult)) { in testVerifyOverlay()
249 cmdResult = mDevice.executeShellV2Command(chmodCommand); in testVerifyOverlay()
[all …]
/test/app_compat/csuite/harness/src/main/java/com/android/csuite/core/
DDeviceUtils.java87 private final ITestDevice mDevice; field in DeviceUtils
111 mDevice = device; in DeviceUtils()
138 mDevice.executeShellV2Command( in grantExternalStoragePermissions()
158 CommandResult result = mDevice.executeShellV2Command("echo ${EPOCHREALTIME:0:14}"); in currentTimeMillis()
181 CommandResult result = mDevice.executeShellV2Command("getprop ro.build.version.sdk"); in getSdkLevel()
211 mDevice.deleteFile(videoPath); in runWithScreenRecording()
224 mDevice.getSerialNumber(), in runWithScreenRecording()
241 CommandResult result = mDevice.executeShellV2Command("ls " + videoPath); in runWithScreenRecording()
285 CommandResult sizeResult = mDevice.executeShellV2Command("ls -sh " + videoPath); in runWithScreenRecording()
291 CommandResult hashResult = mDevice.executeShellV2Command("md5sum " + videoPath); in runWithScreenRecording()
[all …]
/test/app_compat/csuite/test_scripts/src/main/java/com/android/pixel/tests/
DPixelAppCompatTestBase.java37 private UiDevice mDevice; field in PixelAppCompatTestBase
57 if (mDevice == null) { in getUiDevice()
58 mDevice = UiDevice.getInstance(getInstrumentation()); in getUiDevice()
60 return mDevice; in getUiDevice()
/test/mlts/benchmark/jni/
Drandom_graph_test_jni.cpp149 mDevice(device), in RandomGraphGenerator()
204 if (mDevice) { in runRandomModel()
212 model.getHandle(), &mDevice, 1, opsSupportedFlags.get()); in runRandomModel()
235 if (mDevice) { in runRandomModel()
236 devices.push_back(mDevice); in runRandomModel()
289 const ANeuralNetworksDevice* mDevice; member in RandomGraphGenerator
313 if (!mDevice) { in HalVersionsSupportedByDevice()
319 ANeuralNetworksDevice_getFeatureLevel(mDevice, &featureLevel); in HalVersionsSupportedByDevice()
334 if (!mDevice) { in OperandTypesSupportedByDevice()
340 ANeuralNetworksDevice_getType(mDevice, &deviceType); in OperandTypesSupportedByDevice()
[all …]
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/
DRootProcessScanner.java33 private ITestDevice mDevice; field in RootProcessScanner
36 mDevice = device; in RootProcessScanner()
143 return mDevice.executeShellCommand(String.format("cat %s/statm", processDir)); in getProcessStatM()
195 return mDevice.executeShellCommand(String.format("cat %s/status", processDir)); in getProcessStatus()
DBusinessLogicHostExecutor.java32 private ITestDevice mDevice; field in BusinessLogicHostExecutor
38 mDevice = device; in BusinessLogicHostExecutor()
107 rm.addArg(mDevice); in getResolvedMethod()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
DInteractiveResultCollector.java83 ITestDevice mDevice = testInfo.getDevice(); in setUp() local
87 mDevice.getDeviceDescriptor(), in setUp()
94 mDevice.executeAdbCommand("shell", "rm", "-rf", devicePath); in setUp()
DCrashReporter.java137 private ITestDevice mDevice; field in CrashReporter.CrashReporterReceiver
140 mDevice = device; in CrashReporterReceiver()
160 upload(mDevice, mTestName, mCrashes); in processLogLine()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/retry/
DRetryFactoryTest.java178 private ITestDevice mDevice; field in RetryFactoryTest
194 mDevice = device; in setDevice()
199 return mDevice; in getDevice()
245 helper.validateBuildFingerprint(mDevice); in loadSuite()
266 test.setDevice(mDevice); in loadSuite()