Lines Matching refs:device
26 import com.android.tradefed.device.DeviceNotAvailableException;
27 import com.android.tradefed.device.INativeDevice;
28 import com.android.tradefed.device.ITestDevice;
69 public static ImmutableList<String> getJarsOnClasspath(INativeDevice device, in getJarsOnClasspath() argument
71 CommandResult shellResult = device.executeShellV2Command("echo $" + classpath); in getJarsOnClasspath()
81 public static ImmutableList<SharedLibraryInfo> getSharedLibraryInfos(ITestDevice device, in getSharedLibraryInfos() argument
83 runDeviceTests(device, buildInfo, SharedLibraryInfo.HELPER_APP_APK, in getSharedLibraryInfos()
88 content = device.pullFileContents(remoteFile); in getSharedLibraryInfos()
90 device.deleteFile(remoteFile); in getSharedLibraryInfos()
96 public static ImmutableSet<ClassDef> getClassDefsFromJar(INativeDevice device, in getClassDefsFromJar() argument
100 jar = device.pullFile(remoteJarPath); in getClassDefsFromJar()
121 private static void runDeviceTests(ITestDevice device, IBuildInfo buildInfo, String apkName, in runDeviceTests() argument
126 final String installError = device.installPackage(buildHelper.getTestFile(apkName), in runDeviceTests()
132 TEST_RUNNER, device.getIDevice()); in runDeviceTests()
135 assertThat(device.runInstrumentationTests(testRunner, listener)).isTrue(); in runDeviceTests()
152 device.uninstallPackage(packageName); in runDeviceTests()