Home
last modified time | relevance | path

Searched refs:VALID_PACKAGE_NAME (Results 1 – 4 of 4) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/
DUpdateAdCounterHistogramInputTest.java39 private static final String VALID_PACKAGE_NAME = "test.package"; field in UpdateAdCounterHistogramInputTest
48 VALID_PACKAGE_NAME) in testBuildValidInput_success()
55 expect.that(originalInput.getCallerPackageName()).isEqualTo(VALID_PACKAGE_NAME); in testBuildValidInput_success()
65 VALID_PACKAGE_NAME) in testParcelInput_success()
78 expect.that(requestFromParcel.getCallerPackageName()).isEqualTo(VALID_PACKAGE_NAME); in testParcelInput_success()
88 VALID_PACKAGE_NAME) in testEqualsIdentical()
95 VALID_PACKAGE_NAME) in testEqualsIdentical()
109 VALID_PACKAGE_NAME) in testEqualsDifferent()
116 VALID_PACKAGE_NAME) in testEqualsDifferent()
130 VALID_PACKAGE_NAME) in testEqualsNull()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/appinfo/
DHibernationSwitchPreferenceControllerTest.java64 private static final String VALID_PACKAGE_NAME = "package"; field in HibernationSwitchPreferenceControllerTest
92 when(mPackageManager.getPackageUid(eq(VALID_PACKAGE_NAME), anyInt())) in setUp()
109 mController.setPackageName(VALID_PACKAGE_NAME); in getAvailabilityStatus_featureNotEnabled_shouldNotReturnAvailable()
119 mController.setPackageName(VALID_PACKAGE_NAME); in getAvailabilityStatus_featureNotEnabled_shouldNotReturnAvailable_zoneWrite()
130 mController.setPackageName(VALID_PACKAGE_NAME); in getAvailabilityStatus_featureNotEnabled_shouldNotReturnAvailable_zoneRead()
141 mController.setPackageName(VALID_PACKAGE_NAME); in getAvailabilityStatus_featureNotEnabled_shouldNotReturnAvailable_zoneHidden()
185 mController.setPackageName(VALID_PACKAGE_NAME); in getAvailabilityStatus_validPackage_shouldReturnAvailable()
193 mController.setPackageName(VALID_PACKAGE_NAME); in getAvailabilityStatus_validPackage_shouldReturnAvailable_zoneWrite()
202 mController.setPackageName(VALID_PACKAGE_NAME); in getAvailabilityStatus_validPackage_shouldReturnAvailable_zoneRead()
211 mController.setPackageName(VALID_PACKAGE_NAME); in getAvailabilityStatus_validPackage_shouldReturnAvailable_zoneHidden()
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/appinfo/
DHibernationSwitchPreferenceControllerTest.java60 private static final String VALID_PACKAGE_NAME = "package"; field in HibernationSwitchPreferenceControllerTest
83 when(mPackageManager.getPackageUid(eq(VALID_PACKAGE_NAME), anyInt())) in setUp()
110 mController.setPackage(VALID_PACKAGE_NAME); in getAvailabilityStatus_featureNotEnabled_shouldNotReturnAvailable()
126 mController.setPackage(VALID_PACKAGE_NAME); in getAvailabilityStatus_validPackage_shouldReturnAvailable()
133 mController.setPackage(VALID_PACKAGE_NAME); in onPreferenceChange_unhibernatesWhenExempted()
136 verify(mAppHibernationManager).setHibernatingForUser(VALID_PACKAGE_NAME, false); in onPreferenceChange_unhibernatesWhenExempted()
137 verify(mAppHibernationManager).setHibernatingGlobally(VALID_PACKAGE_NAME, false); in onPreferenceChange_unhibernatesWhenExempted()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/analytics/
DAnalyticsUtilsTest.java50 private static final String VALID_PACKAGE_NAME = "valid-package-name"; field in AnalyticsUtilsTest
77 when(mockPackageManager.getInstallerPackageName(VALID_PACKAGE_NAME)) in testGetInstallerPackageName_validPackage()
81 AnalyticsUtils.getInstallerPackageName(mockContext, VALID_PACKAGE_NAME)); in testGetInstallerPackageName_validPackage()