/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/ |
D | DataManagerTest.java | 127 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/ |
D | OverlayPathsUninstallSystemUpdatesTest.kt | 36 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()
|
D | SystemStubMultiUserDisableUninstallTest.kt | 40 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 …]
|
D | BootTest.kt | 32 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()
|
D | InvalidNewSystemAppTest.kt | 36 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()
|
D | SdCardEjectionTests.kt | 57 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()
|
D | TamperedUpdatedSystemPackageTest.kt | 42 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()
|
D | FactoryPackageTest.kt | 20 private const val TEST_PKG_NAME = "com.android.server.pm.test.test_app" constant 43 device.uninstallPackage(TEST_PKG_NAME) in removeApk()
|
D | OriginalPackageMigrationTest.kt | 36 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/ |
D | DeviceSide.kt | 13 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/ |
D | PackageManagerServiceTest.java | 72 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/ |
D | DomainVerificationCollectorTest.kt | 41 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/ |
D | PackageSessionTests.kt | 70 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>()
|