[automerger skipped] Add maxTargetSdk restriction to unused APIs. am: 5f0edaaaf5 -s ours

am skip reason: Change-Id I8285daa8530260251ecad6f3f38f98e263629ca7 with SHA-1 8e742f928e is in history

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

Change-Id: I7640cc309f990c400ff3a7db6de77a71bb0f1d72