Merge "Calculate priority based on caller configurations" am: 36a25527b4

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

Change-Id: I3817a344247104eb4056e949d09a123662fb6b65