[automerger skipped] Add canAllowWhileInUsePermissionInFgsLocked() method back. am: 94b62d998d -s ours am: 0a819742a3 -s ours am: f349224ae1 -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: I08d5d72cceab7a7cb6c584f63b77ad250e3a9d88