Fix DeviceOwnerPasswordTest flakiness

DevicePolicyManager.isActivePasswordSufficient() now gets its result
updated asynchronously after a password change, so retry a few times
before asserting the expected value.

Bug: 34212737
Test: cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminHostSideTestApi23#testRunDeviceOwnerPasswordTest
Change-Id: I03c01db32912debd9b61c9d403929325e7ba653c
1 file changed