summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Shai Barack <shayba@google.com> 2025-03-06 23:02:39 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2025-03-06 23:02:39 -0800
commitec6a033432d99fe43965e1d27aeda490300b97ed (patch)
tree9f77889c52f819bddb61a69e2240c41fc19e8d24
parent5a02366bbebeac428d0fa9c056445fec0c48816e (diff)
parentdf18fae6323cef6ff8414204b79e46ea8f5744f3 (diff)
Merge "Improve Baklava detection in TestableLooper" into main
-rw-r--r--tests/testables/src/android/testing/TestableLooper.java11
1 files changed, 1 insertions, 10 deletions
diff --git a/tests/testables/src/android/testing/TestableLooper.java b/tests/testables/src/android/testing/TestableLooper.java
index 8cd89ce89e83..649241aaaa8c 100644
--- a/tests/testables/src/android/testing/TestableLooper.java
+++ b/tests/testables/src/android/testing/TestableLooper.java
@@ -75,16 +75,7 @@ public class TestableLooper {
* Baklava introduces new {@link TestLooperManager} APIs that we can use instead of reflection.
*/
private static boolean isAtLeastBaklava() {
- Method[] methods = TestLooperManager.class.getMethods();
- for (Method method : methods) {
- if (method.getName().equals("peekWhen")) {
- return true;
- }
- }
- return false;
- // TODO(shayba): delete the above, uncomment the below.
- // SDK_INT has not yet ramped to Baklava in all 25Q2 builds.
- // return Build.VERSION.SDK_INT >= Build.VERSION_CODES.BAKLAVA;
+ return Build.VERSION.SDK_INT >= Build.VERSION_CODES.BAKLAVA;
}
static {