Loading common/src/com/android/inputmethod/latin/common/CollectionUtils.java +3 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.inputmethod.latin.common; import com.android.inputmethod.annotations.UsedForTesting; import java.util.ArrayList; import java.util.Collection; Loading Loading @@ -57,6 +59,7 @@ public final class CollectionUtils { * @param c Collection to test. * @return Whether c contains no elements. */ @UsedForTesting public static boolean isNullOrEmpty(@Nullable final Collection<?> c) { return c == null || c.isEmpty(); } Loading common/src/com/android/inputmethod/latin/common/InputPointers.java +1 −0 Original line number Diff line number Diff line Loading @@ -112,6 +112,7 @@ public final class InputPointers { * Shift to the left by elementCount, discarding elementCount pointers at the start. * @param elementCount how many elements to shift. */ @UsedForTesting public void shift(final int elementCount) { mXCoordinates.shift(elementCount); mYCoordinates.shift(elementCount); Loading common/src/com/android/inputmethod/latin/common/ResizableIntArray.java +3 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.inputmethod.latin.common; import com.android.inputmethod.annotations.UsedForTesting; import java.util.Arrays; import javax.annotation.Nonnull; Loading Loading @@ -140,6 +142,7 @@ public final class ResizableIntArray { * Shift to the left by elementCount, discarding elementCount pointers at the start. * @param elementCount how many elements to shift. */ @UsedForTesting public void shift(final int elementCount) { System.arraycopy(mArray, elementCount, mArray, 0, mLength - elementCount); mLength -= elementCount; Loading Loading
common/src/com/android/inputmethod/latin/common/CollectionUtils.java +3 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.inputmethod.latin.common; import com.android.inputmethod.annotations.UsedForTesting; import java.util.ArrayList; import java.util.Collection; Loading Loading @@ -57,6 +59,7 @@ public final class CollectionUtils { * @param c Collection to test. * @return Whether c contains no elements. */ @UsedForTesting public static boolean isNullOrEmpty(@Nullable final Collection<?> c) { return c == null || c.isEmpty(); } Loading
common/src/com/android/inputmethod/latin/common/InputPointers.java +1 −0 Original line number Diff line number Diff line Loading @@ -112,6 +112,7 @@ public final class InputPointers { * Shift to the left by elementCount, discarding elementCount pointers at the start. * @param elementCount how many elements to shift. */ @UsedForTesting public void shift(final int elementCount) { mXCoordinates.shift(elementCount); mYCoordinates.shift(elementCount); Loading
common/src/com/android/inputmethod/latin/common/ResizableIntArray.java +3 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,8 @@ package com.android.inputmethod.latin.common; import com.android.inputmethod.annotations.UsedForTesting; import java.util.Arrays; import javax.annotation.Nonnull; Loading Loading @@ -140,6 +142,7 @@ public final class ResizableIntArray { * Shift to the left by elementCount, discarding elementCount pointers at the start. * @param elementCount how many elements to shift. */ @UsedForTesting public void shift(final int elementCount) { System.arraycopy(mArray, elementCount, mArray, 0, mLength - elementCount); mLength -= elementCount; Loading