Fix issue in infer_android_package_name with tests in //javatests
Fix issue in infer_android_package_name with tests in //javatests

infer_android_package_name did not support tests that were rooted in
//javatests.

PiperOrigin-RevId: 296526818

android/android-test,android/android-test,android/android-test,android/android-test,android/android-test