Use Context/PermissionManager for NM.areNotificationsEnabled()

Instead of calling into NMS to perform the same query. The advantage is that PermissionManager caches results client-side.

Bug: 379323264
Test: CTS
Flag: android.app.nm_binder_perf_permission_check
Change-Id: I93b8491924f570cb69ef5b0972243241e66c72c1
2 files changed