aboutsummaryrefslogtreecommitdiffstats
path: root/tools/dicttool/tests/com/android/inputmethod/latin/makedict/FusionDictionaryTest.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-111-111/+0
|
* Fix errorprone warnings that should be errorsCole Faust2022-10-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is part of a large scale change to fix errorprone errors that have been downgraded to warnings in the android source tree, so that they can be promoted to errors again. The full list of changes include the following, but not all will be present in any one individual commit: BadAnnotationImplementation BadShiftAmount BanJNDI BoxedPrimitiveEquality ComparableType ComplexBooleanConstant CollectionToArraySafeParameter ConditionalExpressionNumericPromotion DangerousLiteralNull DoubleBraceInitialization DurationFrom DurationTemporalUnit EmptyTopLevelDeclaration EqualsNull EqualsReference FormatString FromTemporalAccessor GetClassOnAnnotation GetClassOnClass HashtableContains IdentityBinaryExpression IdentityHashMapBoxing InstantTemporalUnit InvalidTimeZoneID InvalidZoneId IsInstanceIncompatibleType JUnitParameterMethodNotFound LockOnBoxedPrimitive MathRoundIntLong MislabeledAndroidString MisusedDayOfYear MissingSuperCall MisusedWeekYear ModifyingCollectionWithItself NoCanIgnoreReturnValueOnClasses NonRuntimeAnnotation NullableOnContainingClass NullTernary OverridesJavaxInjectableMethod ParcelableCreator PeriodFrom PreconditionsInvalidPlaceholder ProtoBuilderReturnValueIgnored ProtoFieldNullComparison RandomModInteger RectIntersectReturnValueIgnored ReturnValueIgnored SelfAssignment SelfComparison SelfEquals SizeGreaterThanOrEqualsZero StringBuilderInitWithChar TreeToString TryFailThrowable UnnecessaryCheckNotNull UnusedCollectionModifiedInPlace XorPower See https://errorprone.info/bugpatterns for more information on the checks. Bug: 253827323 Test: m RUN_ERROR_PRONE=true javac-check Change-Id: I454a105ae82484a2d19aff1808e8d9dd55ba64f4
* Fix dicttool buildTadashi G. Takaoka2018-10-291-1/+1
| | | | | | | | | | | | This CL partially reverts - Id88b02b74bdfe4ca05b08181ceb6b34d5652fc0c - I05c7d8429e8d9a26139456763c77997340fea8c2 And followup (remove shortcut support) - I73b7dc008a5acaf75a31a36a2d332b5afabd82d0 Bug: 28255684 Test: make -j10 dicttool_aosp Change-Id: I2e01ed86b9517a1141aee35ea6d8ef39258981d1
* Fix some compiler warningsTadashi G. Takaoka2014-10-211-5/+6
| | | | | | | | | | | | | | | | | | | | | 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
* Renaming "blacklist" flag to "possibly offensive"Adrian Velicu2014-10-211-1/+2
| | | | | | | | | No behaviour changes. Unified the overloaded FusionDictionary::add method to always take an isPossiblyOffensive argument. Bug: 11031090 Change-Id: I5741a023ca1ce842d2cf10d4f6c926b0efabaa78
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-241-1/+1
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Fix: dicttool build.Keisuke Kuroyanagi2014-03-071-1/+1
| | | | Change-Id: I5c3bcbe9f3054bdd1a760398fe11344e0e05ac6a
* Make PtNode have ProbabilityInfo instead of raw value.Keisuke Kuroyanagi2014-02-101-1/+1
| | | | | | Bug: 11281877 Bug: 12810574 Change-Id: Id1cda0afc74c4e30633c735729143491b2274a7b
* Consolidate WordProperty and Word.Keisuke Kuroyanagi2014-02-061-3/+3
| | | | | | Bug: 11281877 Bug: 12810574 Change-Id: I9dc99188f80f25a8780c1860dab46e4aa80a23e5
* Remove flags from Java side.Jean Chalard2013-12-131-2/+1
| | | | | | | | | | | | This simplifies the code quite a bit. - GERMAN_UMLAUTS are now handled through a key-value attribute. The dictionary generator does not need to know about it any more. - FRENCH_LIGATURES are deprecated as we handle them with shortcuts now. - CONTAINS_BIGRAMS is deprecated. Bigram processing is always applied regardless of this flag. Bug: 11281748 Change-Id: If567e52e245a9342adc7f3104a0f7d8d782df8c1
* Rename CharGroup to PtNode.Yuichiro Hanada2013-08-261-3/+3
| | | | | Bug: 10233675 Change-Id: I7b0eb07d195cd386cd0d9e97cd59bf48fcf24107
* Rename Node to PtNodeArrayJean Chalard2013-08-161-3/+3
| | | | | Bug: 10247660 Change-Id: I1a0ac19f58f96adb5efac5fd35c6404831618c99
* [Refactor] Divide BinaryDictInputOutput into BinaryDictEncoder and ↵Yuichiro Hanada2013-08-151-1/+1
| | | | | | BinaryDictDecoder. Change-Id: I7c3269d77e3e3b567e459dcaa1bc029903941744
* Revert "[Refactor] Divide BinaryDictInputOutput into BinaryDictInputUtils ↵Ken Wakasa2013-08-151-1/+1
| | | | | | | | and BinaryDictOutputUtils." This reverts commit 4c63d0614e7ed7aea4bcbab3a17090d841661d92. Change-Id: I1fa277d720bab4d895259df7d6d82eebfa5eb6c5
* [Refactor] Divide BinaryDictInputOutput into BinaryDictInputUtils and ↵Yuichiro Hanada2013-08-151-1/+1
| | | | | | BinaryDictOutputUtils. Change-Id: I0d476abe763c11ba9005152f928e8dccf15ac9de
* Add tests to dicttool test.Jean Chalard2013-06-201-4/+0
| | | | | Bug: 8526576 Change-Id: Idd6f9cd076d5915361c68f5c29afbba67dd54eba
* Fix two nasty bugs with surrogate pairs.Jean Chalard2013-04-011-0/+114
The important bug is in findWordInTree. The problem, which is not obvious, is that we were calling codePointAt() with the code point index in the string, instead of the char index. The other bug this change fixes was harmless in the practice, because it's in the iteration which is only used for debug and pretty printing purposes. It's very similar in that it would substract a length in code point to a length in chars and truncate a StringBuilder at that length, so it would fail in a quite similar manner. This changes the meaning of the "length" attribute in Position, but it's clearer this way anyway. Bug: 8450145 Change-Id: If396f883a9e6449de39351553ba83f5be5bd30f0