aboutsummaryrefslogtreecommitdiffstats
path: root/native (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use the global default cpp_std.Elliott Hughes2024-06-032-4/+3
| | | | | Bug: http://b/344590580 Change-Id: Icf1f9f5559596097e156aa9f1673a438741379b3
* dicttoolkit: pin cpp_std to gnu++17Tomasz Wasilczyk2023-11-151-0/+1
| | | | | | | | | | This project doesn't build with gnu++20 and prevents AOSP default to be upgraded to a newer standard. Once the build failure is fixed here, this change can be reverted. Bug: 311052584 Test: m checkbuild Change-Id: If2d19c1b6d970703a1dbf7685588a4a4be5a53c1
* Remove unused variablesJing Mike2023-03-196-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Since some variables with module LatinIME are defined but not used, when compiled with build combination "sdk_pc_x86_64-userdebug" and build command "mmm packages/inputmethods/LatinIME", the following code lines will be reported that "variable 'XXX' set but not used". (should be similar for all the other build combinations) Repeated 10 times for each: terminal_position_lookup_table.cpp:74:9 removedEntryCount terminal_position_lookup_table.cpp:85:9 removedEntryCount proximity_info_state_utils.cpp:493:9 tempTime trie_map.cpp:56:9 unusedRegionSize suggestion_results.cpp:100:9 index Repeated 80+ times: proximity_info_utils.h:75:25 proximityChar With this patch we are removing some of the unused variables and putting the C++ 17 attribute [[maybe_unused]] to the others which are used for logging. Then all the related build warnings have been eliminated. Test: mmm packages/inputmethods/LatinIME, presubmit check. Change-Id: Ia66766322d6ae8a010b1cb55cc22993fbc6d012c Signed-off-by: Jing Mike <jingyangliu@eswincomputing.com>
* [LSC] Add LOCAL_LICENSE_KINDS to packages/inputmethods/LatinIMEBob Badour2021-02-172-0/+18
| | | | | | | | | | | | | | | | | | | | | | Added SPDX-license-identifier-Apache-2.0 to: Android.bp common/Android.bp java/Android.bp native/dicttoolkit/Android.bp native/jni/Android.bp tests/Android.bp tools/EditTextVariations/Android.bp tools/dicttool/Android.bp tools/make-keyboard-text/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I440008bffac5c97a2497970af377a9d03262b6d8
* Merge "Mark liblatinime_unittests as unit_test:true to run in presubmit in CI"Treehugger Robot2021-02-171-1/+3
|\
| * Mark liblatinime_unittests as unit_test:true to run in presubmit in CIJulien Desprez2021-02-161-1/+3
| | | | | | | | | | | | | | | | | | This will ensure that the target stays green. Note: we will clean up the explicit unit_tests:true once cc_test default is changed. Change-Id: I5153ca918e94b370b1f08289118877d209385ba2 Test: presubmit Bug: 180014759
* | Fix broken liblatinime_unittestsAdrian Roos2021-02-161-3/+9
|/ | | | | | Change-Id: I95021965ecc2699fbce01ed0552dd28fed7f8fe4 Merged-In: I95021965ecc2699fbce01ed0552dd28fed7f8fe4 Fixes: 180014759 Test: atest liblatinime_unittests --host
* Update language to comply with Android’s inclusive language guidanceSeigo Nonaka2020-07-312-6/+8
| | | | | | | | See https://source.android.com/setup/contribute/respectful-code for reference Bug: 161896447 Test: tapas LatinIME && m Change-Id: Ic06f948c023a091e1532db826a78dd01031d7205
* Update language to comply with Android's inclusive language guidanceJeff Sharkey2020-07-3110-11/+11
| | | | | | | See https://source.android.com/setup/contribute/respectful-code for reference Bug: 161896447 Change-Id: I171bc299e660f96f20041a67a3052bd8a2ed781c
* Add explicit dependencies on jni_headersOrion Hodson2020-04-132-0/+3
| | | | | | | | Preparation for removing implicit include paths for jni.h from soong. Bug: 152482542 Test: lunch aosp_x86_64 && m checkbuild Change-Id: Ib36e679819a3309ccbf12fd592309b16c8bbd6c8
* Merge "Move LatinIME and its lib to /product" am: 149b9d4f6e am: 84d156b1e6Anton Hansson2019-01-141-0/+1
|\ | | | | | | | | | | am: d894eec1ee Change-Id: Ib7cdb0007c22934f7736cd02c02e0f9358f889d4
| * Move LatinIME and its lib to /productAnton Hansson2019-01-111-0/+1
| | | | | | | | | | | | | | | | | | | | This app is frequently overriden by proprietary apps on shipping devices, so move it to /product along with its jni library. Bug: 122353713 Test: launch keyboard on aosp_arm64 emulator Change-Id: Ied8c1e6133b67e28da76b0e48254e2e2e0ed15bf
* | Merge "Fix performance-for-range-copy warnings" am: db2e4888f8 am: 947f8ee063Chih-Hung Hsieh2018-12-113-4/+4
|\| | | | | | | | | | | am: 535cd61e63 Change-Id: Ic8ee8523a644b283ef0c9592bb66bf09ca541485
| * Fix performance-for-range-copy warningsChih-Hung Hsieh2018-12-113-4/+4
| | | | | | | | | | | | Bug: 30413223 Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,performance* Change-Id: I06021a6597705515dc7a3cb81a7fbbac7ba344a1
| * Convert to Android.bpDan Willemsen2018-11-0116-578/+310
| | | | | | | | | | | | | | | | See build/soong/README.md for more information. Test: cd packages/inputmethods/LatinIME; mma Change-Id: Ib8867d3b74f09fc1d9f95adc9a49a81ac0f7f054 Merged-In: Ib8867d3b74f09fc1d9f95adc9a49a81ac0f7f054
* | Convert to Android.bpDan Willemsen2018-10-3115-512/+311
| | | | | | | | | | | | | | See build/soong/README.md for more information. Test: cd packages/inputmethods/LatinIME; mma Change-Id: Ib8867d3b74f09fc1d9f95adc9a49a81ac0f7f054
* | Merge "Add noexcept to move constructors and assignment operators." am: ↵Chih-Hung Hsieh2018-10-052-2/+2
|\| | | | | | | | | | | | | | | 61d3a1d39b am: 587239f195 am: 9c58fe67f0 Change-Id: I926433188e61eef7f4947167e51b1afae407d9fc
| * Add noexcept to move constructors and assignment operators.Chih-Hung Hsieh2018-09-252-2/+2
| | | | | | | | | | | | Bug: 116614593 Test: build with WITH_TIDY=1 Change-Id: Ic2a04f82f36c2f7fe43109a7a74270044d227789
* | Fix lint warnings in LatinIME JNI codeYohei Yukawa2018-07-252-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | This CL addresses compiler warnings when building libjni_latinime.so with NDK from Android Studio. There should be no behavior change. Bug: 110741422 Bug: 110757803 Test: tapas LatinIME LatinIMETests arm64 userdebug && make -j Change-Id: Icc711dd46511a167b1fd90028552def5b2f9941f
* | Deprecate host-side C++ test in LatinIMEYohei Yukawa2018-07-252-66/+0
|/ | | | | | | | | | | | Host-side C++ test in LatinIME is no longer actively used and is actually not compatible with Android Studio build. Let's just remove this for now. Bug: 13754552 Bug: 110741422 Test: compile Change-Id: I3e81285fe559022e1a296051036e74d2f2afbf9c
* Use -Werror in packages/inputmethods/LatinIME/native/jniChih-Hung Hsieh2017-11-021-0/+1
| | | | | | Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I6b91302908e147077bb4fd0a8718c39357337133
* Use -Werror in packages/inputmethods/LatinIME/native/jniChih-Hung Hsieh2017-10-204-3/+6
| | | | | | | | * Suppress warning on unused loop index variable. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: Ia3f0f9cc4cb0ebeeac9b1ff51955597a725c87ef
* Remove LOCAL_CLANGLennart Wieboldt2017-09-115-9/+0
| | | | | | | clang is the default compiler since Android nougat Change-Id: I52d7f1ded227b21cd88d2d292f0af4adecb800f4 Signed-off-by: Lennart Wieboldt <lennart.1997@gmx.de>
* Rely on the platform -std default.Elliott Hughes2016-10-074-11/+7
| | | | | | Bug: http://b/32019064 Test: builds Change-Id: I17611b6d9598992bd52cf3dc93509f0f5e0bdcde
* Stop mixing and matching platform and NDK.Dan Albert2016-03-221-3/+3
| | | | | | | | | The library was being built with the NDK, but the test is being built with the platform, in this case building against the NDK STL headers and then using the platform library, which are not ABI compatible. Bug: http://b/27801981 Change-Id: I7386dfe6ac73334d7c1b1e0cbc8dc346c84313bf
* am 9ce2d0bb: am 06e62ab2: am cc47075c: Merge "Remove uses of libcxx.mk."Dan Albert2015-03-271-3/+0
|\ | | | | | | | | * commit '9ce2d0bb3702f2854e612cb743f4c508dd590981': Remove uses of libcxx.mk.
| * Remove uses of libcxx.mk.Dan Albert2015-03-271-3/+0
| | | | | | | | | | | | This is a no-op. Change-Id: I982883f994303ba622546b5c6cd0e935a354cde8
* | Move dictionary code to top level dictionary dir.Keisuke Kuroyanagi2014-12-17164-531/+531
| | | | | | | | | | Bug: 18725954 Change-Id: Ia442ba4b5d84311057d83edf6e7aeb151d6a820b
* | Remove needless include.Keisuke Kuroyanagi2014-12-151-1/+0
| | | | | | | | | | Bug: 18725954 Change-Id: I3c823fda1b7daf41d82b118d9495f5f2356a1a5e
* | Add missing error check in TrieMap.Keisuke Kuroyanagi2014-12-151-0/+6
| | | | | | | | | | Bug: 18725954 Change-Id: I8fcb0d15dda3f823a4575fe707bcdec57ff5e89b
* | Remove dependency on jni.h from WordProperty.Keisuke Kuroyanagi2014-12-156-121/+101
| | | | | | | | | | Bug: 18725954 Change-Id: Ic97d3a56b036ff042322c9f794504064046fd7d7
* | Merge "Quit auto-correct explicit accented letters to base letters."Keisuke Kuroyanagi2014-12-095-8/+30
|\ \
| * | Quit auto-correct explicit accented letters to base letters.Keisuke Kuroyanagi2014-12-095-8/+30
| | | | | | | | | | | | | | | Bug: 7677193 Change-Id: I66eddbf27a9db8682c0347a1be19922792a3bea7
* | | Merge "Enable Quadgram for personalized dicts."Keisuke Kuroyanagi2014-12-036-9/+12
|\ \ \ | |/ / |/| |
| * | Enable Quadgram for personalized dicts.Keisuke Kuroyanagi2014-11-256-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before: Total words: 1134659, Success Num: 944709, Success Percentage: 83.259% Bad Failures, with auto-correction (typed word == expected word, output word != expected word): 1258, Bad Failure Percentage: 0.111% Failures, with auto-correction (F-C): 28013, F-C Percentage: 2.469% Max Keystrokes: 6072844, Min Keystrokes: 3347332, Keystroke Saving Percentage:44.880% After: Total words: 1134665, Success Num: 945026, Success Percentage: 83.287% Bad Failures, with auto-correction (typed word == expected word, output word != expected word): 1271, Bad Failure Percentage: 0.112% Failures, with auto-correction (F-C): 27756, F-C Percentage: 2.446% Max Keystrokes: 6072850, Min Keystrokes: 3290996, Keystroke Saving Percentage:45.808% Change-Id: I16af52a3e9c371b95fd6f0741f45ee6b2443bea6
* | | Merge "Use enum to specify ngram type."Keisuke Kuroyanagi2014-11-2514-251/+218
|\| |
| * | Use enum to specify ngram type.Keisuke Kuroyanagi2014-11-2514-251/+218
| | | | | | | | | | | | Change-Id: Ie28768ceadcd7a2d940c57eb30be7d4c364e509f
* | | Merge "Implement ArgumentsParser::parseArguments and add tests."Keisuke Kuroyanagi2014-11-255-24/+195
|\ \ \ | |/ / |/| |
| * | Implement ArgumentsParser::parseArguments and add tests.Keisuke Kuroyanagi2014-11-215-24/+195
| | | | | | | | | | | | | | | Bug: 10059681 Change-Id: I6511a46c879d7a52d0bb4fcab445a66bc40db98c
* | | Fix the base character of D with strokeJean Chalard2014-11-191-1/+6
| | | | | | | | | | | | | | | Bug: 18436480 Change-Id: Ic92cae7c85c07c8f62a5b6e69d2b71e204aff50d
* | | Merge "Add unit tests for ArgumentsParser.validateSpecs()."Keisuke Kuroyanagi2014-11-174-3/+91
|\| |
| * | Add unit tests for ArgumentsParser.validateSpecs().Keisuke Kuroyanagi2014-11-184-3/+91
| | | | | | | | | | | | | | | Bug: 10059681 Change-Id: I3ba5d856ad679e32dd3360863335c436ad6e7301
* | | Revert "Follow up to https://android-review.googlesource.com/114561"Ken Wakasa2014-11-171-3/+0
|/ / | | | | | | | | | | This reverts commit 64d3f78ee5d9dabf7df6106241dfae3334b34714 per https://android-review.googlesource.com/114664 Change-Id: I2acab828d41e79847db72f8d2677c12173a323b6
* | Follow up to https://android-review.googlesource.com/114561Ken Wakasa2014-11-171-0/+3
| | | | | | | | | | | | | | Looks like unbundled builds need to use --hash-style=sysv for the sake of compatibility Change-Id: Ia7b3a1cc3b2c91a8628551888a74925926dff855
* | Define arguments for commands in dicttoolkit.Keisuke Kuroyanagi2014-11-1516-9/+455
| | | | | | | | | | Bug: 10059681 Change-Id: I1ceaeeaa9e2055c357fe969818498de9d6288862
* | Merge "Add OffdeviceIntermediateDictHeader."Keisuke Kuroyanagi2014-11-133-1/+52
|\ \
| * | Add OffdeviceIntermediateDictHeader.Keisuke Kuroyanagi2014-11-133-1/+52
| | | | | | | | | | | | | | | | | | | | | Used to have header information in OffdeviceIntermediateDict. Bug: 10059681 Change-Id: I966c26e514ddd229cf5597d3b96941234c530863
* | | Merge "Utf8Utils for dicttoolkit."Keisuke Kuroyanagi2014-11-134-2/+265
|\| |
| * | Utf8Utils for dicttoolkit.Keisuke Kuroyanagi2014-11-134-2/+265
| | | | | | | | | | | | | | | Bug: 10059681 Change-Id: Ie484ba8096823792f0ac663524d1c02d1be070e9
* | | Merge "Introduce OffdeviceIntermediateDict for dicttolkit."Keisuke Kuroyanagi2014-11-116-1/+391
|\| |