Searched refs:MOCK_CONFIGURED_PACKAGE (Results 1 – 6 of 6) sorted by relevance
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/ |
D | MigrationBroadcastSendingTest.java | 19 import static com.android.server.healthconnect.migration.MigrationTestUtils.MOCK_CONFIGURED_PACKAGE; 74 when(mResources.getString(anyInt())).thenReturn(MOCK_CONFIGURED_PACKAGE); in setUp() 102 ArrayList<PackageInfo> packageInfoArray = createPackageInfoArray(MOCK_CONFIGURED_PACKAGE); in testBroadcast_noIntentMatchingApps_noBroadcastSent() 122 ArrayList<PackageInfo> packageInfoArray = createPackageInfoArray(MOCK_CONFIGURED_PACKAGE); in testBroadcast_oneConfiguredMigratorAppWithNonNullReceiver_explicitBroadcastSent() 133 false, MOCK_CONFIGURED_PACKAGE, MOCK_QUERIED_BROADCAST_RECEIVER_ONE); in testBroadcast_oneConfiguredMigratorAppWithNonNullReceiver_explicitBroadcastSent() 150 ArrayList<PackageInfo> packageInfoArray = createPackageInfoArray(MOCK_CONFIGURED_PACKAGE); in testBroadcast_oneConfiguredMigratorAppWithNullReceiver_implicitBroadcastSent() 161 true, MOCK_CONFIGURED_PACKAGE, MOCK_QUERIED_BROADCAST_RECEIVER_ONE); in testBroadcast_oneConfiguredMigratorAppWithNullReceiver_implicitBroadcastSent() 178 ArrayList<PackageInfo> packageInfoArray = createPackageInfoArray(MOCK_CONFIGURED_PACKAGE); in testBroadcast_oneConfiguredMigratorAppWithoutReceiver_implicitBroadcastSent() 205 ArrayList<PackageInfo> packageInfoArray = createPackageInfoArray(MOCK_CONFIGURED_PACKAGE); in testBroadcast_oneConfiguredMigratorAppWithMultipleReceivers_implicitBroadcastSent() 217 MOCK_CONFIGURED_PACKAGE, in testBroadcast_oneConfiguredMigratorAppWithMultipleReceivers_implicitBroadcastSent() [all …]
|
D | MigratorPackageChangesReceiverTest.java | 23 import static com.android.server.healthconnect.migration.MigrationTestUtils.MOCK_CONFIGURED_PACKAGE; 95 mContext, getIntent(ACTION_PACKAGE_ADDED, MOCK_CONFIGURED_PACKAGE)); in testPackageAdded_callsOnPackageInstalledOrChanged() 97 .onPackageInstalledOrChanged(eq(mContext), eq(MOCK_CONFIGURED_PACKAGE)); in testPackageAdded_callsOnPackageInstalledOrChanged() 104 mContext, getIntent(ACTION_PACKAGE_CHANGED, MOCK_CONFIGURED_PACKAGE)); in testPackageChanged_callsOnPackageInstalledOrChanged() 106 .onPackageInstalledOrChanged(eq(mContext), eq(MOCK_CONFIGURED_PACKAGE)); in testPackageChanged_callsOnPackageInstalledOrChanged() 113 mContext, getIntent(ACTION_PACKAGE_REMOVED, MOCK_CONFIGURED_PACKAGE)); in testPackageRemoved_callsOnPackageRemoved() 114 verify(mMigrationStateManager).onPackageRemoved(eq(mContext), eq(MOCK_CONFIGURED_PACKAGE)); in testPackageRemoved_callsOnPackageRemoved() 130 getIntentWithNoUserHandle(ACTION_PACKAGE_REMOVED, MOCK_CONFIGURED_PACKAGE)); in testOnReceive_nullUserHandle_noMigrationStateManagerCall() 138 mContext, getIntent(ACTION_PACKAGE_CHANGED, MOCK_CONFIGURED_PACKAGE)); in testOnReceive_notAForegroundUser_noMigrationStateManagerCall()
|
D | MigrationStateManagerTest.java | 38 import static com.android.server.healthconnect.migration.MigrationTestUtils.MOCK_CONFIGURED_PACKAGE; 138 when(mResources.getString(anyInt())).thenReturn(MOCK_CONFIGURED_PACKAGE); in setUp() 171 mMigrationStateManager.onPackageInstalledOrChanged(mContext, MOCK_CONFIGURED_PACKAGE); in testOnPackageInstalledOrChanged_fromIdleState_migrationAwarePackage() 187 mMigrationStateManager.onPackageInstalledOrChanged(mContext, MOCK_CONFIGURED_PACKAGE); in testOnPackageInstalledOrChanged_fromIdleState_migrationUnawarePackage() 201 mMigrationStateManager.onPackageInstalledOrChanged(mContext, MOCK_CONFIGURED_PACKAGE); in testOnPackageInstalledOrChanged_fromIdleState_migrationUnawareStubPackage() 212 mMigrationStateManager.onPackageInstalledOrChanged(mContext, MOCK_CONFIGURED_PACKAGE); in testOnPackageInstalledOrChanged_fromAppUpgradeRequiredState_migrationAwarePackage() 229 mMigrationStateManager.onPackageInstalledOrChanged(mContext, MOCK_CONFIGURED_PACKAGE); in testOnPackageInstalledOrChanged_fromAppUpgradeRequiredState_migrationUnAwarePackage() 243 mMigrationStateManager.onPackageInstalledOrChanged(mContext, MOCK_CONFIGURED_PACKAGE); in testOnPackageInstalledOrChanged_fromAllowedState() 257 mMigrationStateManager.onPackageInstalledOrChanged(mContext, MOCK_CONFIGURED_PACKAGE); in testOnPackageInstalledOrChanged_fromInProgressState() 271 mMigrationStateManager.onPackageInstalledOrChanged(mContext, MOCK_CONFIGURED_PACKAGE); in testOnPackageInstalledOrChanged_fromModuleUpgradeRequiredState() [all …]
|
D | MigrationTestUtils.java | 35 public static final String MOCK_CONFIGURED_PACKAGE = "com.configured.app"; field in MigrationTestUtils
|
D | MigrationStateChangeJobTest.java | 34 import static com.android.server.healthconnect.migration.MigrationTestUtils.MOCK_CONFIGURED_PACKAGE; 130 when(mContext.getPackageName()).thenReturn(MOCK_CONFIGURED_PACKAGE); in setUp()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/ |
D | HealthConnectServiceImplTest.java | 383 mHealthConnectService.startMigration(MigrationTestUtils.MOCK_CONFIGURED_PACKAGE, mCallback); in testStartMigration_noShowMigrationInfoIntentAvailable_returnsError() 396 mHealthConnectService.startMigration(MigrationTestUtils.MOCK_CONFIGURED_PACKAGE, mCallback); in testStartMigration_showMigrationInfoIntentAvailable() 406 MigrationTestUtils.MOCK_CONFIGURED_PACKAGE, mCallback); in testFinishMigration_noShowMigrationInfoIntentAvailable_returnsError() 420 MigrationTestUtils.MOCK_CONFIGURED_PACKAGE, mCallback); in testFinishMigration_showMigrationInfoIntentAvailable() 430 MigrationTestUtils.MOCK_CONFIGURED_PACKAGE, in testWriteMigration_noShowMigrationInfoIntentAvailable_returnsError() 446 MigrationTestUtils.MOCK_CONFIGURED_PACKAGE, in testWriteMigration_showMigrationInfoIntentAvailable() 459 MigrationTestUtils.MOCK_CONFIGURED_PACKAGE, 0, mCallback); in testInsertMinSdkExtVersion_noShowMigrationInfoIntentAvailable_returnsError() 473 MigrationTestUtils.MOCK_CONFIGURED_PACKAGE, 0, mCallback); in testInsertMinSdkExtVersion_showMigrationInfoIntentAvailable()
|