Restrict TYPE_BEDTIME to rules added or updated by the Wellbeing package

Also fixes the TYPE_MANAGED check to allow updates from the system process.

Fixes: 317369236
Test: atest NotificationManagerServiceTest
Change-Id: I3d5361f89d5f7f761bd7f802f2fb5d2f7b77340a
2 files changed