Home
last modified time | relevance | path

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

/test/vts/testcases/host/fastboot_getvar/src/com/android/tests/
DFastbootGetvarUserspaceTest.java49 private ITestDevice mDevice; field in FastbootGetvarUserspaceTest
73 mDevice = getDevice(); in setUp()
76 if (!TestDeviceState.FASTBOOT.equals(mDevice.getDeviceState())) { in setUp()
77 mDevice.rebootIntoFastbootd(); in setUp()
91 String cpuAbi = mDevice.getFastbootVariable("cpu-abi"); in testCpuAbiInfo()
99 String osVersion = mDevice.getFastbootVariable("version-os"); in testOsVersion()
114 String vndkVersion = mDevice.getFastbootVariable("version-vndk"); in testVndkVersion()
129 String dynamic_partition = mDevice.getFastbootVariable("dynamic-partition"); in testDynamicPartition()
137 String treble_enabled = mDevice.getFastbootVariable("treble-enabled"); in testTrebleEnable()
145 String first_api_level = mDevice.getFastbootVariable("first-api-level"); in testFirstApiLevel()
[all …]
/test/vts/testcases/host/firmware_test/src/com/android/tests/firmware/
DFirmwareBootHeaderVerification.java53 private ITestDevice mDevice; field in FirmwareBootHeaderVerification
67 mDevice = getDevice(); in setUp()
68 mLaunchApiLevel = mDevice.getLaunchApiLevel(); in setUp()
69 mSlotSuffix = mDevice.getProperty(PROPERTY_SLOT_SUFFIX); in setUp()
74 mSupportedAbis = new ArrayList<>(Arrays.asList(AbiFormatter.getSupportedAbis(mDevice, ""))); in setUp()
81 String acpio_idx_string = mDevice.getProperty(PROPERTY_ACPIO_IDX); in isFullfeelPrecondition()
132 mBlockDevPath, currentBootPartition, Arrays.asList(options), mDevice); in testBootImageHeader()
137 mDevice.pullFile(bootPaths.get(0), localBootImg)); in testBootImageHeader()
150 mBlockDevPath, "recovery", Arrays.asList(options), mDevice); in testRecoveryImageHeader()
156 mDevice.pullFile(recoveryPaths.get(0), localRecoveryImg)); in testRecoveryImageHeader()
/test/vts/testcases/host/fastboot_test/src/com/android/tests/
DFastbootVerifyUserspaceTest.java52 private ITestDevice mDevice; field in FastbootVerifyUserspaceTest
78 mDevice = getDevice(); in setUp()
87 if (!TestDeviceState.FASTBOOT.equals(mDevice.getDeviceState())) { in setUp()
88 mDevice.rebootIntoFastbootd(); in setUp()
102 String.format("--serial=%s", mDevice.getFastbootSerialNumber()), in testFastbootdSlotOperations()
111 String.format("--serial=%s", mDevice.getFastbootSerialNumber()), in testLogicalPartitionCommands()
119 String superPartitionName = mDevice.getFastbootVariable("super-partition-name"); in testSuperPartitionName()
127 String.format("--serial=%s", mDevice.getFastbootSerialNumber()), in testFastbootReboot()
136 String.format("--serial=%s", mDevice.getFastbootSerialNumber()), in testLogicalPartitionFlashing()
/test/vts-testcase/hal/usb/gadget/V1_1/host/src/com/android/usb/gadget/vts/
DVtsHalUsbGadgetV1_1HostTest.java41 private ITestDevice mDevice; field in VtsHalUsbGadgetV1_1HostTest
48 mDevice = getDevice(); in setUp()
64 Assert.assertNotNull("Target device does not exist", mDevice); in testResetUsbGadget()
66 String deviceSerialNumber = mDevice.getSerialNumber(); in testResetUsbGadget()
73 mDevice.waitForDeviceNotAvailable(CONN_TIMEOUT); in testResetUsbGadget()
75 mDevice.waitForDeviceAvailable(CONN_TIMEOUT); in testResetUsbGadget()
89 mDevice.executeShellCommand("svc usb resetUsbGadget"); in testResetUsbGadget()
/test/vts/testcases/host/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()
213 CommandResult cmdResult = mDevice.executeShellV2Command(bootconfig_cmd); in testVerifyOverlay()
224 cmdResult = mDevice.executeShellV2Command(cmdline_cmd); in testVerifyOverlay()
238 TargetFileUtils.findFile(DEVICE_TEMP_DIR, ufdtVerifier, null, mDevice); in testVerifyOverlay()
240 if (!mDevice.isDirectory(matchedResult)) { in testVerifyOverlay()
247 cmdResult = mDevice.executeShellV2Command(chmodCommand); in testVerifyOverlay()
[all …]
/test/vts-testcase/hal/usb/gadget/V1_2/host/src/com/android/usb/gadget/vts/
DVtsHalUsbGadgetV1_2HostTest.java56 private ITestDevice mDevice; field in VtsHalUsbGadgetV1_2HostTest
63 mDevice = getDevice(); in setUp()
122 Assert.assertNotNull("Target device does not exist", mDevice); in testAndroidNcm()
124 String deviceSerialNumber = mDevice.getSerialNumber(); in testAndroidNcm()
128 mDevice.executeShellCommand("svc usb setFunctions ncm"); in testAndroidNcm()
143 Assert.assertNotNull("Target device does not exist", mDevice); in testGetUsbSpeed()
145 String deviceSerialNumber = mDevice.getSerialNumber(); in testGetUsbSpeed()
149 String output = mDevice.executeShellCommand("svc usb getUsbSpeed"); in testGetUsbSpeed()
/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/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/app_compat/csuite/harness/src/main/java/com/android/compatibility/testtype/
DAppLaunchTest.java105 private ITestDevice mDevice; field in AppLaunchTest
135 instrumentationTest.setDevice(mDevice); in createInstrumentationTest()
215 try (InputStreamSource screenSource = mDevice.getScreenshot()) { in testPackage()
217 mPackageName + "_screenshot_" + mDevice.getSerialNumber(), in testPackage()
223 mDevice.getSerialNumber(), e.toString()); in testPackage()
345 return mDevice.executeShellV2Command(String.format("pm clear %s", mPackageName)); in resetPackage()
349 mDevice.executeShellCommand(String.format("am force-stop %s", mPackageName)); in stopPackage()
362 mDevice = device; in setDevice()
370 return mDevice; in getDevice()
/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()