Home
last modified time | relevance | path

Searched refs:WifiHelper (Results 1 – 7 of 7) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/device/
DWifiHelperTest.java52 when(mMockDevice.executeShellCommand(WifiHelper.CHECK_PACKAGE_CMD)) in setUp()
53 .thenReturn(String.format("versionCode=%d", WifiHelper.PACKAGE_VERSION_CODE)); in setUp()
60 "am instrument -e method \'meth\' -w " + WifiHelper.FULL_INSTRUMENTATION_NAME; in testBuildCommand_simple()
61 final String cmd = WifiHelper.buildWifiUtilCmd("meth"); in testBuildCommand_simple()
70 final String end = "-w " + WifiHelper.FULL_INSTRUMENTATION_NAME; in testBuildCommand_oneArg()
72 final String cmd = WifiHelper.buildWifiUtilCmd("meth", "id", "45"); in testBuildCommand_oneArg()
86 final String end = "-w " + WifiHelper.FULL_INSTRUMENTATION_NAME; in testBuildCommand_withSpace()
88 final String cmd = WifiHelper.buildWifiUtilCmd("addWpaPskNetwork", "ssid", "With Space", in testBuildCommand_withSpace()
113 WifiHelper wifiHelper = in testWaitForIp_failThenPass()
114 new WifiHelper(mMockDevice) { in testWaitForIp_failThenPass()
[all …]
DTestDevicePackageFuncTest.java54 mTestDevice.getInstalledPackageNames().contains(WifiHelper.INSTRUMENTATION_PKG); in setUp()
57 mTestDevice.uninstallPackage(WifiHelper.INSTRUMENTATION_PKG); in setUp()
69 File testApkFile = WifiHelper.extractWifiUtilApk(); in testInstallListUninstall_basic()
76 .contains(WifiHelper.INSTRUMENTATION_PKG)); in testInstallListUninstall_basic()
85 mTestDevice.uninstallPackage(WifiHelper.INSTRUMENTATION_PKG); in testInstallListUninstall_basic()
89 .contains(WifiHelper.INSTRUMENTATION_PKG)); in testInstallListUninstall_basic()
102 File testApkFile = WifiHelper.extractWifiUtilApk(); in testIsPackageInstalled_basic()
109 .contains(WifiHelper.INSTRUMENTATION_PKG)); in testIsPackageInstalled_basic()
113 assertTrue(mTestDevice.isPackageInstalled(WifiHelper.INSTRUMENTATION_PKG)); in testIsPackageInstalled_basic()
116 mTestDevice.uninstallPackage(WifiHelper.INSTRUMENTATION_PKG); in testIsPackageInstalled_basic()
[all …]
DTestDeviceFuncTest.java168 File tmpFile = WifiHelper.extractWifiUtilApk(); in testInstallUninstall()
179 mTestDevice.uninstallPackage(WifiHelper.INSTRUMENTATION_PKG); in assertWifiApkInstall()
183 .contains(WifiHelper.INSTRUMENTATION_PKG)); in assertWifiApkInstall()
188 .contains(WifiHelper.INSTRUMENTATION_PKG)); in assertWifiApkInstall()
203 File tmpFile = WifiHelper.extractWifiUtilApk(); in testInstallUninstall_space()
DTestDeviceFileFuncTest.java70 File testFile = WifiHelper.extractWifiUtilApk(); in testPushPull_Basic()
93 File testFile = WifiHelper.extractWifiUtilApk(); in testPushPull_ExtStorage()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DAppSetupFuncTest.java24 import com.android.tradefed.device.WifiHelper;
60 getDevice().uninstallPackage(WifiHelper.INSTRUMENTATION_PKG); in testSetupTeardown()
61 File wifiapk = WifiHelper.extractWifiUtilApk(); in testSetupTeardown()
71 WifiHelper.INSTRUMENTATION_PKG)); in testSetupTeardown()
74 WifiHelper.INSTRUMENTATION_PKG)); in testSetupTeardown()
/tools/tradefederation/core/src/com/android/tradefed/device/
DWifiHelper.java52 public class WifiHelper implements IWifiHelper { class
84 public WifiHelper(ITestDevice device) throws DeviceNotAvailableException { in WifiHelper() method in WifiHelper
88 public WifiHelper(ITestDevice device, String wifiUtilApkPath) in WifiHelper() method in WifiHelper
94 public WifiHelper(ITestDevice device, String wifiUtilApkPath, boolean doSetup) in WifiHelper() method in WifiHelper
103 public WifiHelper(ITestDevice device, String wifiUtilApkPath, boolean doSetup, boolean useV2) in WifiHelper() method in WifiHelper
198 InputStream apkStream = WifiHelper.class.getResourceAsStream(WIFIUTIL_APK_RES); in extractWifiUtilApk()
202 InputStream apkStream = WifiHelper.class.getResourceAsStream(WIFIUTIL_APK_RES_FALLBACK); in extractWifiUtilApk()
DTestDevice.java2401 return new WifiHelper(this, mOptions.getWifiUtilAPKPath(), doSetup, useV2); in createWifiHelper()