Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25343124 authored by Kurt Partridge's avatar Kurt Partridge
Browse files

Make some methods visible for testing

bug: 8302967

multi-project commit with Icf915abb57ef00840ee93b67a25db42ba51f1c38

Change-Id: I105bda5bdff871508140fb99487dddbf17992790
parent 578e71e2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ import android.os.Process;
import android.text.TextUtils;
import android.util.Log;

import com.android.inputmethod.annotations.UsedForTesting;
import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;

import java.io.BufferedReader;
@@ -77,6 +78,7 @@ public final class Utils {
        private RingCharBuffer() {
            // Intentional empty constructor for singleton.
        }
        @UsedForTesting
        public static RingCharBuffer getInstance() {
            return sRingCharBuffer;
        }
@@ -93,6 +95,7 @@ public final class Utils {
            return ret < 0 ? ret + BUFSIZE : ret;
        }
        // TODO: accept code points
        @UsedForTesting
        public void push(char c, int x, int y) {
            if (!mEnabled) return;
            mCharBuf[mEnd] = c;