Home
last modified time | relevance | path

Searched refs:TEST_PKG_NAME (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DDataManagerTest.java127 private static final String TEST_PKG_NAME = "pkg"; field in DataManagerTest
200 when(androidPackage.getPackageName()).thenReturn(TEST_PKG_NAME); in setUp()
235 .thenReturn(TEST_PKG_NAME); in setUp()
250 when(mPackageManager.getPackageUidAsUser(TEST_PKG_NAME, USER_ID_PRIMARY)) in setUp()
263 when(mGenericSbn.getPackageName()).thenReturn(TEST_PKG_NAME); in setUp()
268 when(mConvoSbn.getPackageName()).thenReturn(TEST_PKG_NAME); in setUp()
284 mShortcutInfo = buildShortcutInfo(TEST_PKG_NAME, USER_ID_PRIMARY, TEST_SHORTCUT_ID, in setUp()
359 mDataManager.getShortcut(TEST_PKG_NAME, USER_ID_PRIMARY, TEST_SHORTCUT_ID); in testGetShortcut()
361 eq(TEST_PKG_NAME), eq(Collections.singletonList(TEST_SHORTCUT_ID)), in testGetShortcut()
369 ShortcutInfo shortcut = buildShortcutInfo(TEST_PKG_NAME, USER_ID_PRIMARY, TEST_SHORTCUT_ID, in testReportAppTargetEvent_directSharing()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/
DOverlayPathsUninstallSystemUpdatesTest.kt36 private const val TEST_PKG_NAME = "com.android.server.pm.test.test_app" constant
56 device.uninstallPackage(TEST_PKG_NAME) in removeApk()
71 " --target $TEST_PKG_NAME" + in verify()
73 " $TEST_PKG_NAME:color/overlay_test 0x1C 0xFFFFFFFF" in verify()
82 "cmd overlay lookup --user 0 $TEST_PKG_NAME $TEST_PKG_NAME:color/overlay_test" in verify()
89 device.executeShellCommand("pm uninstall-system-updates $TEST_PKG_NAME" in verify()
DSystemStubMultiUserDisableUninstallTest.kt40 private const val TEST_PKG_NAME = "com.android.server.pm.test.test_app" in <lambda>() constant
93 savedDevice?.uninstallPackage(TEST_PKG_NAME) in <lambda>()
146 device.uninstallPackage(TEST_PKG_NAME) in <lambda>()
163 val codePath = HostUtils.getCodePaths(device, TEST_PKG_NAME).first() in <lambda>()
165 assertThat(codePath).contains(TEST_PKG_NAME) in <lambda>()
195 device.uninstallPackage(TEST_PKG_NAME) in <lambda>()
222 device.uninstallPackage(TEST_PKG_NAME) in <lambda>()
235 device.uninstallPackage(TEST_PKG_NAME) in <lambda>()
258 device.uninstallPackage(TEST_PKG_NAME) in <lambda>()
349 device.executeShellCommand("pm uninstall-system-updates $TEST_PKG_NAME") in <lambda>()
[all …]
DBootTest.kt32 private const val TEST_PKG_NAME = "com.android.server.pm.test.test_app" constant
48 device.uninstallPackage(TEST_PKG_NAME) in removeApk()
53 Truth.assertThat(isPackageInstalled(TEST_PKG_NAME)).isTrue() in testUninstallPackageWithKeepDataAndReboot()
54 uninstallPackageWithKeepData(TEST_PKG_NAME) in testUninstallPackageWithKeepDataAndReboot()
55 Truth.assertThat(isPackageInstalled(TEST_PKG_NAME)).isFalse() in testUninstallPackageWithKeepDataAndReboot()
DInvalidNewSystemAppTest.kt36 private const val TEST_PKG_NAME = "com.android.server.pm.test.test_app" constant
58 device.uninstallPackage(TEST_PKG_NAME) in removeApk()
79 assertThat(device.getAppPackageInfo(TEST_PKG_NAME)).isNull() in verify()
DSdCardEjectionTests.kt57 private const val TEST_PKG_NAME = "com.android.server.pm.test.test_app" constant
94 val response = device.executeShellCommand("am start -n $TEST_PKG_NAME/.TestActivity") in launchActivity()
106 movePackage(TEST_PKG_NAME, volume) in launchActivity()
109 unmount(volume, TEST_PKG_NAME) in launchActivity()
112 remount(volume, hostApkFile, TEST_PKG_NAME) in launchActivity()
DTamperedUpdatedSystemPackageTest.kt42 private const val TEST_PKG_NAME = "com.android.server.pm.test.test_app" constant
80 device.uninstallPackage(TEST_PKG_NAME) in removeApk()
156 val baseApkPath = getBaseApkPath(TEST_PKG_NAME) in detectApkTamperingAtBoot()
DFactoryPackageTest.kt20 private const val TEST_PKG_NAME = "com.android.server.pm.test.test_app" constant
43 device.uninstallPackage(TEST_PKG_NAME) in removeApk()
DOriginalPackageMigrationTest.kt36 private const val TEST_PKG_NAME = "com.android.server.pm.test.test_app" constant
104 assertThat(HostUtils.getCodePaths(device, TEST_PKG_NAME)) in assertCodePath()
/frameworks/base/services/tests/PackageManagerServiceTests/host/test-apps/DeviceSide/src/com/android/server/pm/cts/test/deviceside/
DDeviceSide.kt13 private const val TEST_PKG_NAME = "com.android.server.pm.test.test_app" constant
25 .filter { it.packageName == TEST_PKG_NAME } in testGetInstalledPackagesWithFactoryOnly()
27 .filter { it.packageName == TEST_PKG_NAME } in testGetInstalledPackagesWithFactoryOnly()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DPackageManagerServiceTest.java72 private static final String TEST_PKG_NAME = "com.android.servicestests.apps.stubapp"; field in PackageManagerServiceTest
474 mIPackageManager.getInstallReason(TEST_PKG_NAME, in testInstallReason_afterUpdate_keepUnchanged()
481 mIPackageManager.getInstallReason(TEST_PKG_NAME, in testInstallReason_afterUpdate_keepUnchanged()
485 runShellCommand("pm uninstall " + TEST_PKG_NAME); in testInstallReason_afterUpdate_keepUnchanged()
500 mIPackageManager.getInstallReason(TEST_PKG_NAME, in testInstallReason_userRemainsUninstalled_keepUnknown()
509 mIPackageManager.getPackageInfo(TEST_PKG_NAME, 0 /* flags */, userId)).isNull(); in testInstallReason_userRemainsUninstalled_keepUnknown()
511 mIPackageManager.getInstallReason(TEST_PKG_NAME, userId)).isEqualTo( in testInstallReason_userRemainsUninstalled_keepUnknown()
514 runShellCommand("pm uninstall " + TEST_PKG_NAME); in testInstallReason_userRemainsUninstalled_keepUnknown()
536 mIPackageManager.getInstallReason(TEST_PKG_NAME, in testInstallReason_installForAllUsers_sameReason()
538 mIPackageManager.getInstallReason(TEST_PKG_NAME, userId)); in testInstallReason_installForAllUsers_sameReason()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationCollectorTest.kt41 private const val TEST_PKG_NAME = "com.test.pkg" constant
80 val collector = mockCollector(linkedApps = setOf(TEST_PKG_NAME)) in verifyV1ForceAutoVerify()
92 whenever(packageName) { TEST_PKG_NAME } in verifyV1NoValidIntentFilter()
175 val collector = mockCollector(linkedApps = setOf(TEST_PKG_NAME)) in verifyV2ForceAutoVerifyIgnored()
267 whenever(packageName) { TEST_PKG_NAME } in mockPkg()
/frameworks/base/core/tests/PackageInstallerSessions/src/android/content/pm/
DPackageSessionTests.kt70 private const val TEST_PKG_NAME = "com.android.server.pm.test.test_app" in <lambda>() constant
181 .executeShellCommand("pm uninstall $TEST_PKG_NAME") in <lambda>()
288 assertThat(sessionInfo!!.getAppPackageName()).isEqualTo(TEST_PKG_NAME) in <lambda>()