[automerger skipped] Add canAllowWhileInUsePermissionInFgsLocked() method back. am: 94b62d998d -s ours am: 0a819742a3 -s ours am: f349224ae1 -s ours am: 8679229591 -s ours

am skip reason: Merged-In Idc88f274c7a323d175d65bb47eca041772ae9bb7 with SHA-1 6706c1acc0 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15687218

Change-Id: I9312d0a843e1790dd3759b682d4740dbbf14e953