aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/utils/CollectionUtils.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move util classes under commonJean Chalard2014-11-071-63/+0
| | | | | | | Also why did we have two copies of LocaleUtils >.> Bug: 18108776 Change-Id: I03b4403dfd51934e66b567f2f8b87da419cfb3ab
* Add documentation for CollectionUtils#arrayAsListDavid Faden2014-10-311-1/+12
| | | | | | | | | | | | | | | | | | | | | (This is a cherrypick of http://ag/576739) Also, modify the IllegalArgumentException to capture the values passed for start, end, and array.length to make debugging easier in the unlikely event that it is thrown. Add corresponding tests for the exceptions. Tested: tapas LatinImeGoogle LatinImeGoogleTests userdebug make -j30 && \ adb install -r \ out/target/product/generic/data/app/LatinImeGoogleTests/LatinImeGoogleTests.apk && \ adb install -r \ out/target/product/generic/system/app/LatinImeGoogle/LatinImeGoogle.apk && \ adb shell am instrument -w -e class \ com.android.inputmethod.latin.utils.CollectionUtilsTests \ com.google.android.inputmethod.latin.tests/android.support.test.runner.AndroidJUnitRunner Change-Id: I0c579ca4f4f2a9b2575aa6f8fa75e3ee4a21cf8a
* Add null analysis annotation to CollectionUtilsTadashi G. Takaoka2014-10-271-5/+7
| | | | Change-Id: I3a610b037d6d1431cced3ea193171108bd5a040d
* Fix some compiler warningsTadashi G. Takaoka2014-10-211-4/+1
| | | | | | | | | | | | | | | | | | | | | This CL fixes the following compiler warnings. - Indirect access to static member - Access to a non-accessible member of an enclosing type - Parameter assignment - Method can be static - Local variable declaration hides another field or variable - Value of local variable is not used - Unused import - Unused private member - Unnecessary 'else' statement - Unnecessary declaration of throw exception - Redundant type arguments - Missing '@Override' annotation - Unused '@SuppressWarning' annotations Bug: 18003991 Change-Id: Icfebe753e53a2cc621848f769d6a3d7ce501ebc7
* Add calls to stub for API to consume gesture data.David Faden2014-10-031-0/+10
| | | | | Bug: 17400259 Change-Id: Ib3511afffe1d14662e7dd14611f384689516e664
* Clean up under the util package.Ken Wakasa2014-07-181-5/+0
| | | | | | | - Move util classes that are unused in AOSP - Remove unused methods Change-Id: Ic97fd313f1e2bafd50609d42aa3a2d090b63eafc
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-241-74/+2
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Move arrayAsList method to CollectionUtilsTadashi G. Takaoka2014-01-311-0/+15
| | | | Change-Id: If7c1eb7c802490f19c5d3b81d714362408daf376
* Save and restore Row attributes using stackTadashi G. Takaoka2013-08-191-0/+5
| | | | Change-Id: I5cb402060946a711384ee53fa1caaeac86aa10cc
* Move util classes to the latin/utils directoryKen Wakasa2013-06-241-0/+100
Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa