[automerger skipped] Add a function to wait for the setting of preferred payment am: e65248958b -s ours

am skip reason: Merged-In I6739dd4f948cc6499c4fa66f5569b7be82aa38ad with SHA-1 dab1905142 is already in history

Original change: https://android-review.googlesource.com/c/platform/cts/+/2038704

Change-Id: I1247e5c59b27621a9ceca1f7a927e5dc53af189d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>