Home
last modified time | relevance | path

Searched refs:getInstalledState (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerShellCommandMultiUserTest.kt41 import android.content.pm.cts.PackageManagerTest.getInstalledState
620 assertThat(getInstalledState(TEST_APP_PACKAGE, primaryUser.id())) in testUninstallSetup()
622 assertThat(getInstalledState(TEST_APP_PACKAGE, secondaryUser.id())) in testUninstallSetup()
666 assertThat(getInstalledState(TEST_APP_PACKAGE, primaryUser.id())).isEqualTo("true") in testNullableDataDir()
667 assertThat(getInstalledState(TEST_APP_PACKAGE, secondaryUser.id())).isEqualTo("false") in testNullableDataDir()
690 assertThat(getInstalledState(TEST_APP_PACKAGE, primaryUser.id())).isEqualTo("false") in testNullableDataDir()
691 assertThat(getInstalledState(TEST_APP_PACKAGE, secondaryUser.id())).isEqualTo("false") in testNullableDataDir()
723 assertThat(getInstalledState(TEST_APP_PACKAGE, primaryUser.id())).isNull() in testUninstallMultiUser()
724 assertThat(getInstalledState(TEST_APP_PACKAGE, secondaryUser.id())).isNull() in testUninstallMultiUser()
755 assertThat(getInstalledState(TEST_APP_PACKAGE, primaryUser.id())).isEqualTo("true") in testUninstallWithoutKeepDataOnOneUser()
[all …]
DPackageManagerTest.java2813 assertThat(getInstalledState(HELLO_WORLD_PACKAGE_NAME, userId)).isEqualTo("true"); in testUninstall()
2824 assertThat(getInstalledState(HELLO_WORLD_PACKAGE_NAME, userId)).isNull(); in testUninstall()
2832 assertThat(getInstalledState(HELLO_WORLD_PACKAGE_NAME, userId)).isEqualTo("true"); in testUninstallWithKeepData()
2876 assertThat(getInstalledState(HELLO_WORLD_PACKAGE_NAME, userId)).isEqualTo("false"); in testUninstallWithKeepData()
2884 assertThat(getInstalledState(HELLO_WORLD_PACKAGE_NAME, userId)).isEqualTo("true"); in testUninstallWithKeepData()
2890 assertThat(getInstalledState(HELLO_WORLD_PACKAGE_NAME, userId)).isNull(); in testUninstallWithKeepData()
3849 static String getInstalledState(String packageName, int userId) { in getInstalledState() method in PackageManagerTest