Loading core/java/android/os/CombinedMessageQueue/MessageQueue.java +11 −2 Original line number Original line Diff line number Diff line Loading @@ -145,9 +145,18 @@ public final class MessageQueue { } } if (Flags.forceConcurrentMessageQueue()) { if (Flags.forceConcurrentMessageQueue()) { // b/379472827: Robolectric tests use reflection to access MessageQueue.mMessages. // This is a hack to allow Robolectric tests to use the legacy implementation. try { Class.forName("org.robolectric.Robolectric"); } catch (ClassNotFoundException e) { // This is not a Robolectric test. sIsProcessAllowedToUseConcurrent = true; sIsProcessAllowedToUseConcurrent = true; return; return; } } // This is a Robolectric test. // Continue to the following checks. } final String processName = Process.myProcessName(); final String processName = Process.myProcessName(); if (processName == null) { if (processName == null) { Loading Loading
core/java/android/os/CombinedMessageQueue/MessageQueue.java +11 −2 Original line number Original line Diff line number Diff line Loading @@ -145,9 +145,18 @@ public final class MessageQueue { } } if (Flags.forceConcurrentMessageQueue()) { if (Flags.forceConcurrentMessageQueue()) { // b/379472827: Robolectric tests use reflection to access MessageQueue.mMessages. // This is a hack to allow Robolectric tests to use the legacy implementation. try { Class.forName("org.robolectric.Robolectric"); } catch (ClassNotFoundException e) { // This is not a Robolectric test. sIsProcessAllowedToUseConcurrent = true; sIsProcessAllowedToUseConcurrent = true; return; return; } } // This is a Robolectric test. // Continue to the following checks. } final String processName = Process.myProcessName(); final String processName = Process.myProcessName(); if (processName == null) { if (processName == null) { Loading