Searched refs:getInstalledVersion (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/ |
D | RollbackTest.java | 104 assertEquals(-1, RollbackTestUtils.getInstalledVersion(TEST_APP_A)); in testBasic() 127 assertEquals(1, RollbackTestUtils.getInstalledVersion(TEST_APP_A)); in testBasic() 131 assertEquals(2, RollbackTestUtils.getInstalledVersion(TEST_APP_A)); in testBasic() 145 assertEquals(1, RollbackTestUtils.getInstalledVersion(TEST_APP_A)); in testBasic() 182 assertEquals(2, RollbackTestUtils.getInstalledVersion(TEST_APP_A)); in testAvailableRollbackPersistence() 187 assertEquals(2, RollbackTestUtils.getInstalledVersion(TEST_APP_B)); in testAvailableRollbackPersistence() 212 assertEquals(2, RollbackTestUtils.getInstalledVersion(TEST_APP_A)); in testAvailableRollbackPersistence() 213 assertEquals(1, RollbackTestUtils.getInstalledVersion(TEST_APP_B)); in testAvailableRollbackPersistence() 240 assertEquals(2, RollbackTestUtils.getInstalledVersion(TEST_APP_A)); in testAvailableMultiPackageRollbackPersistence() 241 assertEquals(2, RollbackTestUtils.getInstalledVersion(TEST_APP_B)); in testAvailableMultiPackageRollbackPersistence() [all …]
|
D | StagedRollbackTest.java | 91 assertEquals(-1, RollbackTestUtils.getInstalledVersion(TEST_APP_A)); in testBadApkOnlyEnableRollback() 94 assertEquals(1, RollbackTestUtils.getInstalledVersion(TEST_APP_A)); in testBadApkOnlyEnableRollback() 109 assertEquals(2, RollbackTestUtils.getInstalledVersion(TEST_APP_A)); in testBadApkOnlyConfirmEnableRollback() 156 assertEquals(1, RollbackTestUtils.getInstalledVersion(TEST_APP_A)); in testBadApkOnlyConfirmRollback()
|
D | RollbackTestUtils.java | 85 static long getInstalledVersion(String packageName) { in getInstalledVersion() method in RollbackTestUtils 132 if (getInstalledVersion(packageName) == -1 || isSystemAppWithoutUpdate(packageName)) { in uninstall()
|