Check AppOp using noteOp instead os isOpActive

isOpActive is only true if startOp was called, which is not the case for
mediaprojection session.

Bug: 367301791
Test: com.android.server.media.projection.MediaProjectionManagerServiceTest#testCreateProjection_keyguardLocked_AppOpMediaProjection
Flag: android.companion.virtualdevice.flags.media_projection_keyguard_restrictions
(cherry picked from commit 48d0c57f674d3cf7b0d0f3302ced5ddc9c953241)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5e4fdb100b7e31b473d254eac1a06d2417543c0d)
Merged-In: I908ea1eabbb4e477f3849a6d05f498bfa7bd2099
Change-Id: I908ea1eabbb4e477f3849a6d05f498bfa7bd2099
2 files changed