/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | InstallApexModuleTargetPreparerTest.java | 39 import com.android.tradefed.device.ITestDevice.ApexInfo; 224 protected ApexInfo retrieveApexInfo( in setUp() 226 ApexInfo apexInfo; in setUp() 228 apexInfo = new ApexInfo(SPLIT_APEX_PACKAGE_NAME, APEX_VERSION); in setUp() 230 apexInfo = new ApexInfo(APEX2_PACKAGE_NAME, APEX_VERSION); in setUp() 232 apexInfo = new ApexInfo(APEX_PACKAGE_NAME, APEX_VERSION); in setUp() 263 ApexInfo fakeApexData = in testGetApkModuleInData() 264 new ApexInfo( in testGetApkModuleInData() 269 ApexInfo fakeApexData2 = in testGetApkModuleInData() 270 new ApexInfo( in testGetApkModuleInData() [all …]
|
D | ModuleOemTargetPreparerTest.java | 87 private final ITestDevice.ApexInfo mFakeApexData = 88 new ITestDevice.ApexInfo(APEX_PACKAGE_NAME, 1, APEX_PATH_ON_DEVICE); 164 Set<ITestDevice.ApexInfo> apexes = new HashSet<>(Collections.singletonList(mFakeApexData)); in testGetApkModules()
|
D | ModulePusherTest.java | 555 ITestDevice.ApexInfo fakeApexData = in activateVersion() 556 new ITestDevice.ApexInfo(APEX_PACKAGE_NAME, versionCode, APEX_PATH_ON_DEVICE); in activateVersion()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/module/ |
D | MainlineTestModuleControllerTest.java | 27 import com.android.tradefed.device.ITestDevice.ApexInfo; 50 private ApexInfo mFakeApexInfo; 51 private Set<ApexInfo> mFakeApexes; 62 mFakeApexes = new HashSet<ITestDevice.ApexInfo>(); in setUp() 71 mFakeApexInfo = new ApexInfo("com.google.android.fakeapex", 1, "fakeDir"); in testModuleExistsRun() 85 mFakeApexInfo = new ApexInfo("com.google.android.go.fakeapex", 1, "fakeDir"); in testGoModuleExistsRun() 100 ApexInfo fakeApexInfo = new ApexInfo("com.google.android.fake1apex", 1, "fakeDir"); in testModuleNotInstalledTestRun()
|
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | InstallApexModuleTargetPreparer.java | 25 import com.android.tradefed.device.ITestDevice.ApexInfo; 94 private List<ApexInfo> mTestApexInfoList = new ArrayList<>(); 198 Set<ApexInfo> activatedApexes = device.getActiveApexes(); in setUp() 201 for (ApexInfo info : activatedApexes) { in setUp() 237 ApexInfo apexInfo = retrieveApexInfo(f, testInfo.getDevice().getDeviceDescriptor()); in setUp() 289 Set<ApexInfo> activatedApexes; in checkApexActivation() 301 for (ApexInfo info : activatedApexes) { in checkApexActivation() 306 List<ApexInfo> failToActivateApex = getModulesFailToActivate(activatedApexes); in checkApexActivation() 327 private List<File> optimizeModuleInstallation(Set<ApexInfo> activatedApex, List<File> testFiles, in optimizeModuleInstallation() 383 Set<String> getApexInData(Set<ApexInfo> activatedApexes) { in getApexInData() [all …]
|
D | ModuleOemTargetPreparer.java | 24 import com.android.tradefed.device.ITestDevice.ApexInfo; 211 Set<ApexInfo> installedApexes = new HashSet<>(device.getActiveApexes()); in getPreloadPackageNames() 212 for (ApexInfo installedApex : installedApexes) { in getPreloadPackageNames()
|
D | ModulePusher.java | 235 Set<ITestDevice.ApexInfo> activatedApexes = device.getActiveApexes(); in checkPreloadModules() 237 for (ITestDevice.ApexInfo info : activatedApexes) { in checkPreloadModules() 597 Set<ITestDevice.ApexInfo> activatedApexes; in checkApexActivated() 608 for (ITestDevice.ApexInfo info : activatedApexes) { in checkApexActivated() 632 List<ModuleInfo> toInstall, Set<ITestDevice.ApexInfo> activatedApexes) { in getModulesFailToActivate() 634 HashMap<String, ITestDevice.ApexInfo> activatedApexInfo = new HashMap<>(); in getModulesFailToActivate() 635 for (ITestDevice.ApexInfo info : activatedApexes) { in getModulesFailToActivate()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/module/ |
D | MainlineTestModuleController.java | 18 import com.android.tradefed.device.ITestDevice.ApexInfo; 49 private Set<ApexInfo> mActiveApexes; 70 for (ITestDevice.ApexInfo ap : mActiveApexes) { in shouldRun()
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/ |
D | ITestDevice.java | 93 public static class ApexInfo { class 98 public ApexInfo(String name, long versionCode, String sourceDir) { in ApexInfo() method in ITestDevice.ApexInfo 104 public ApexInfo(String name, long versionCode) { in ApexInfo() method in ITestDevice.ApexInfo 110 if (other != null && other instanceof ApexInfo) { in equals() 111 ApexInfo ai = (ApexInfo) other; in equals() 661 public Set<ApexInfo> getActiveApexes() throws DeviceNotAvailableException; in getActiveApexes()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | TestDevice.java | 1374 public Set<ApexInfo> getActiveApexes() throws DeviceNotAvailableException { in getActiveApexes() 1378 Set<ApexInfo> ret = parseApexesFromOutput(output, true /* withPath */); in getActiveApexes() 1401 private Set<ApexInfo> parseApexesFromOutput(final String output, boolean withPath) { in parseApexesFromOutput() 1402 Set<ApexInfo> ret = new HashSet<>(); in parseApexesFromOutput() 1412 ret.add(new ApexInfo(name, version, sourceDir)); in parseApexesFromOutput() 1416 ret.add(new ApexInfo(name, version)); in parseApexesFromOutput()
|
D | NativeDevice.java | 4644 public Set<ApexInfo> getActiveApexes() throws DeviceNotAvailableException { in getActiveApexes()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/ |
D | TestDeviceTest.java | 56 import com.android.tradefed.device.ITestDevice.ApexInfo; 2560 Set<ApexInfo> actual = mTestDevice.getActiveApexes(); in testGetActiveApexesPlatformSupportsPath() 2562 ApexInfo foo = in testGetActiveApexesPlatformSupportsPath() 2567 ApexInfo bar = in testGetActiveApexesPlatformSupportsPath() 2586 Set<ApexInfo> actual = mTestDevice.getActiveApexes(); in testGetActiveApexesPlatformDoesNotSupportPath() 2588 ApexInfo foo = in testGetActiveApexesPlatformDoesNotSupportPath() 2593 ApexInfo bar = in testGetActiveApexesPlatformDoesNotSupportPath() 2614 Set<ApexInfo> actual = mTestDevice.getActiveApexes(); in testGetActiveApexesForBadOutput()
|