Check both permission and AppOp in pollForPermission

FuseDaemon legcay test polls for permission to be  granted/revoked.
Previously, we checked only permission state, a delay in permission
state change update can make poll return before the permission state
has actually changed. Now we check both permission and AppOp to ensure
test starts only after the expected permission is granted/revoked.

Test: atest FuseDaemonHostTest
Bug: 149132662
Bug: 149468946
Change-Id: Id7679e89e8acd384301bcbfe7b574cbb4e3111cb
2 files changed