am c0d75439: Fix unit tests by adding @UsedFortesting.
* commit 'c0d754397e49bb39da8313e015731e43adf02586': Fix unit tests by adding @UsedFortesting.main
commit
7767633bf7
|
@ -16,6 +16,8 @@
|
|||
|
||||
package com.android.inputmethod.latin.utils;
|
||||
|
||||
import com.android.inputmethod.annotations.UsedForTesting;
|
||||
|
||||
import java.util.Queue;
|
||||
import java.util.concurrent.ArrayBlockingQueue;
|
||||
import java.util.concurrent.ConcurrentLinkedQueue;
|
||||
|
@ -74,6 +76,7 @@ public class PrioritizedSerialExecutor {
|
|||
* Enqueues the given task into the prioritized task queue.
|
||||
* @param r the enqueued task
|
||||
*/
|
||||
@UsedForTesting
|
||||
public void executePrioritized(final Runnable r) {
|
||||
synchronized(mLock) {
|
||||
if (!mIsShutdown) {
|
||||
|
|
Loading…
Reference in New Issue