Home
last modified time | relevance | path

Searched refs:ApexInfo (Results 1 – 6 of 6) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DInstallApexModuleTargetPreparerTest.java28 import com.android.tradefed.device.ITestDevice.ApexInfo;
148 protected ApexInfo retrieveApexInfo( in setUp()
150 ApexInfo apexInfo; in setUp()
152 apexInfo = new ApexInfo(SPLIT_APEX_PACKAGE_NAME, APEX_VERSION); in setUp()
154 apexInfo = new ApexInfo(APEX_PACKAGE_NAME, APEX_VERSION); in setUp()
187 Set<ApexInfo> activatedApex = new HashSet<ApexInfo>(); in testSetupSuccess_removeExistingStagedApexSuccess()
188 activatedApex.add(new ApexInfo("com.android.FAKE_APEX_PACKAGE_NAME", 1)); in testSetupSuccess_removeExistingStagedApexSuccess()
205 Set<ApexInfo> activatedApex = new HashSet<ApexInfo>(); in testSetupSuccess_noDataUnderApexDataDirs()
206 activatedApex.add(new ApexInfo("com.android.FAKE_APEX_PACKAGE_NAME", 1)); in testSetupSuccess_noDataUnderApexDataDirs()
230 Set<ApexInfo> activatedApex = new HashSet<ApexInfo>(); in testSetupSuccess_getActivatedPackageSuccess()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DInstallApexModuleTargetPreparer.java25 import com.android.tradefed.device.ITestDevice.ApexInfo;
57 private List<ApexInfo> mTestApexInfoList;
108 Set<ApexInfo> activatedApexes = device.getActiveApexes(); in setUp()
117 List<ApexInfo> failToActivateApex = new ArrayList<ApexInfo>(); in setUp()
119 for (ApexInfo testApexInfo : mTestApexInfoList) { in setUp()
127 for (ApexInfo info : activatedApexes) { in setUp()
166 ApexInfo apexInfo = retrieveApexInfo(appFile, device.getDeviceDescriptor()); in installer()
310 ApexInfo apexInfo = retrieveApexInfo(moduleFile, device.getDeviceDescriptor()); in installMultipleModuleUsingBundletool()
347 protected ApexInfo retrieveApexInfo(File testApexFile, DeviceDescriptor deviceDescriptor) in retrieveApexInfo()
353 return new ApexInfo(parser.getPackageName(), Long.parseLong(parser.getVersionCode())); in retrieveApexInfo()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DITestDevice.java90 public static class ApexInfo { class
94 public ApexInfo(String name, long versionCode) { in ApexInfo() method in ITestDevice.ApexInfo
101 if (other != null && other instanceof ApexInfo) { in equals()
102 ApexInfo ai = (ApexInfo) other; in equals()
590 public Set<ApexInfo> getActiveApexes() throws DeviceNotAvailableException; in getActiveApexes()
DTestDevice.java932 public Set<ApexInfo> getActiveApexes() throws DeviceNotAvailableException { in getActiveApexes()
933 Set<ApexInfo> ret = new HashSet<>(); in getActiveApexes()
940 ret.add(new ApexInfo(name, version)); in getActiveApexes()
DNativeDevice.java3626 public Set<ApexInfo> getActiveApexes() throws DeviceNotAvailableException { in getActiveApexes()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceTest.java33 import com.android.tradefed.device.ITestDevice.ApexInfo;
2203 Set<ApexInfo> actual = mTestDevice.getActiveApexes(); in testGetActiveApexes()
2205 assertTrue(actual.contains(new ApexInfo("com.android.foo", 100))); in testGetActiveApexes()
2206 assertTrue(actual.contains(new ApexInfo("com.android.bar", 200))); in testGetActiveApexes()
2218 Set<ApexInfo> actual = mTestDevice.getActiveApexes(); in testGetActiveApexesForBadOutput()