Home
last modified time | relevance | path

Searched refs:forTesting (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/library/
DApexSharedLibraryUpdaterTest.java91 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in checkNoChanges()
95 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in checkNoChanges()
105 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpSince30Applied()
110 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpSince30Applied()
123 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpSinceFutureNotAppliedWithoutLibrary()
127 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpSinceFutureNotAppliedWithoutLibrary()
139 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpSinceFutureNotAppliedWithLibrary()
145 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpSinceFutureNotAppliedWithLibrary()
159 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpBefore30NotApplied()
163 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpBefore30NotApplied()
[all …]
DRemoveUnnecessaryOrgApacheHttpLegacyLibraryTest.java48 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O()
52 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O()
63 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries()
68 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries()
80 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries()
87 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries()
97 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries()
104 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries()
114 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
121 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
[all …]
DRemoveUnnecessaryAndroidTestBaseLibraryTest.java48 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O()
52 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O()
63 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries()
68 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries()
80 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries()
87 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries()
97 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries()
104 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries()
114 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
120 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
[all …]
DAndroidHidlUpdaterTest.java47 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P()
51 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P()
62 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_system()
68 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_system()
81 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_not_empty_usesLibraries()
86 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_not_empty_usesLibraries()
98 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_not_empty_usesLibraries_system()
106 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_not_empty_usesLibraries_system()
120 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_in_usesLibraries()
126 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_in_usesLibraries()
[all …]
DOrgApacheHttpLegacyUpdaterTest.java46 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O()
51 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O()
62 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries()
69 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries()
81 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries()
86 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries()
99 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries()
104 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries()
117 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
122 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
[all …]
DAndroidTestBaseUpdaterTest.java46 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q()
51 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q()
62 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_not_empty_usesLibraries()
69 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_not_empty_usesLibraries()
81 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_in_usesLibraries()
86 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_in_usesLibraries()
99 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_in_usesOptionalLibraries()
104 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_in_usesOptionalLibraries()
117 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
122 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
[all …]
DPackageBackwardCompatibilityTest.java49 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in null_usesLibraries_and_usesOptionalLibraries()
53 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in null_usesLibraries_and_usesOptionalLibraries()
82 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O()
87 ParsingPackage after = PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O()
114 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_base_in_usesLibraries()
121 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_base_in_usesLibraries()
138 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_runner_in_usesLibraries()
143 ParsingPackage after = PackageImpl.forTesting(PACKAGE_NAME) in android_test_runner_in_usesLibraries()
161 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in com_google_android_maps_in_usesLibraries()
166 ParsingPackage after = PackageImpl.forTesting(PACKAGE_NAME) in com_google_android_maps_in_usesLibraries()
[all …]
DComGoogleAndroidMapsUpdaterTest.java42 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in otherUsesLibraries()
48 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in otherUsesLibraries()
59 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
64 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
76 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries()
81 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries()
DAndroidNetIpSecIkeUpdaterTest.java42 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in otherUsesLibraries()
48 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in otherUsesLibraries()
59 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
64 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries()
74 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries()
79 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries()
DAndroidTestRunnerSplitUpdaterTest.java46 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_runner_in_usesOptionalLibraries()
51 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_runner_in_usesOptionalLibraries()
63 ParsedPackage before = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_runner_in_usesLibraries_android_test_mock_in_usesOptionalLibraries()
69 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_runner_in_usesLibraries_android_test_mock_in_usesOptionalLibraries()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DScreenshotDetectionControllerTest.kt64 val data = ScreenshotData.forTesting() in testMaybeNotifyOfScreenshot_ignoresOverview()
75 val data = ScreenshotData.forTesting() in testMaybeNotifyOfScreenshot_emptySet()
88 val data = ScreenshotData.forTesting() in testMaybeNotifyOfScreenshot_oneApp()
115 val data = ScreenshotData.forTesting() in testMaybeNotifyOfScreenshot_multipleApps()
185 val data = ScreenshotData.forTesting() in testMaybeNotifyOfScreenshot_disabledApp()
DMessageContainerControllerTest.kt52 val screenshotData = ScreenshotData.forTesting()
DDefaultScreenshotActionsProviderTest.kt50 private val request = ScreenshotData.forTesting()
DTakeScreenshotExecutorTest.kt305 val toBeReturnedByProcessor = ScreenshotData.forTesting() in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserSystemPackageInstallerTest.java261 final AndroidPackage pkg1 = ((ParsedPackage) PackageImpl.forTesting(packageName1) in testShouldInstallPackage()
263 final AndroidPackage pkg2 = ((ParsedPackage) PackageImpl.forTesting(packageName2) in testShouldInstallPackage()
265 final AndroidPackage pkg3 = ((ParsedPackage) PackageImpl.forTesting(packageName3) in testShouldInstallPackage()
267 final AndroidPackage pkg4 = ((ParsedPackage) PackageImpl.forTesting(packageName4) in testShouldInstallPackage()
399 final AndroidPackage overlayPackage1 = ((ParsedPackage) PackageImpl.forTesting(overlayName1) in testInstallOverlayPackagesExplicitMode()
407 final AndroidPackage overlayPackage2 = ((ParsedPackage) PackageImpl.forTesting(overlayName2) in testInstallOverlayPackagesExplicitMode()
415 final AndroidPackage overlayPackage3 = ((ParsedPackage) PackageImpl.forTesting(overlayName3) in testInstallOverlayPackagesExplicitMode()
DSELinuxMMACTest.java231 ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in build()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotData.kt55 fun forTesting() = method
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DPackageManagerSettingsTests.java186 ps1.setPkg(((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME_1).hideAsParsed()) in testApplicationInfoForUseSdkOptionalEnabled()
223 ps2.setPkg(((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME_2).hideAsParsed()) in testApplicationInfoForUseSdkOptionalEnabled()
255 ps1.setPkg(((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME_1).hideAsParsed()) in testApplicationInfoForUseSdkOptionalDisabled()
866 ps1.setPkg(((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME_1).hideAsParsed()) in testWriteReadUsesStaticLibraries()
872 ps2.setPkg(((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME_2).hideAsParsed()) in testWriteReadUsesStaticLibraries()
931 ps1.setPkg(((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME_1).hideAsParsed()) in testWriteReadUsesSdkLibraries()
937 ps2.setPkg(((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME_2).hideAsParsed()) in testWriteReadUsesSdkLibraries()
1015 packageSetting.setPkg(PackageImpl.forTesting(PACKAGE_NAME_1).hideAsParsed() in testWriteReadPendingRestore()
1034 packageSetting.setPkg(PackageImpl.forTesting(PACKAGE_NAME_1).hideAsParsed() in testWriteReadArchiveState()
1071 packageSetting.setPkg(PackageImpl.forTesting(PACKAGE_NAME_1).hideAsParsed() in testWriteReadAppMetadataSource()
[all …]
DPackageParserTest.java234 ParsingPackage pkg = PackageImpl.forTesting("foo"); in test_roundTripKnownFields()
247 ParsingPackage pkg = PackageImpl.forTesting("foo"); in test_stringInterning()
/frameworks/base/services/robotests/src/com/android/server/pm/
DCrossProfileAppsServiceImplRoboTest.java159 .thenReturn(((ParsedPackage) PackageImpl.forTesting(CROSS_PROFILE_APP_PACKAGE_NAME) in mockCrossProfileAppInstalledOnProfile()
695 ((ParsedPackage) PackageImpl.forTesting(CROSS_PROFILE_APP_PACKAGE_NAME) in declareCrossProfileAttributeOnCrossProfileApp()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DDexoptUtilsTest.java67 ParsingPackage parsingPackage = PackageImpl.forTesting("mock.android.com", in createMockApplicationInfo()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DMockSystem.kt447 val pkg = PackageImpl.forTesting(packageName, apkPath.parentFile.path) as PackageImpl in createBasicAndroidPackage()
557 val frameworkPkg = PackageImpl.forTesting("android", in stageFrameworkScan()
/frameworks/base/services/tests/PackageManagerComponentOverrideTests/src/com/android/server/pm/test/override/
DPackageManagerComponentLabelIconOverrideTest.kt294 PackageImpl.forTesting(pkgName) in <lambda>()
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/parsing/parcelling/
DAndroidPackageTest.kt62 override val defaultImpl = PackageImpl.forTesting("com.example.test") in <lambda>()
/frameworks/base/core/java/com/android/internal/pm/parsing/pkg/
DPackageImpl.java444 return PackageImpl.forTesting(packageName) in buildFakeForDeletion()
452 public static ParsingPackage forTesting(String packageName) { in forTesting() method in PackageImpl
453 return forTesting(packageName, ""); in forTesting()
458 public static ParsingPackage forTesting(String packageName, String baseCodePath) { in forTesting() method in PackageImpl

12