The framework Preference APIs are being deprecated, so removing the
samples will help avoid confusion.
Bug: b/119602280
Test: n/a
Change-Id: Ib3a2c38b8fbb0f1afc9ef6a35963def46ee931f7
When the compiler finds an unknown type, it queries ExternalSemaSource
for the declaration. If the type is not declared anywhere, the compiler
ignores the type name and sets the type to int.
To keep the type name in AST, this commit adds FakeDeclSource that
creates declarations for the unknown types.
Test: header-abi-dumper test.h -o test.txt -suppress-errors -dump-function-declarations -- -x c++
Bug: 117582158
Change-Id: I2d49b7a4f9e2a991224e6702938bc63744bba039
This commit breaks `HeaderAbiLinker::LinkAndDump()` into several
functions, moves `llvm::object::Binary`-related code to `SoFileParser`,
removes unused code in `IRReader`, and remove some space characters
before semicolon.
Test: ./tests/test.py
Change-Id: I9f90f07985c84ff95bf093c65ede091d44849e33
Otherwise SDK build will fail because this target puts artifacts to
privileged app dir, which is not expected for samples in the SDK
build.
You can still build MultiClientInputMethod on command line by
explicitly specifying this in the build target.
Bug: 115784148
Test: locally verified as follows:
lunch sdk_phone_armv7-userdebug
make -j PRODUCT-sdk_phone_armv7-sdk
Change-Id: I09282fa39d13f8078881a3b215cad7d3c0e81486
This CL adds a sample multi-client IME. Ahthough there are still many
limitations and missing features in this sample IME, this CL
demonstrates how a multi-client IME can be implemented.
Fix: 115784148
Test: prebuilts/checkstyle/checkstyle.py -f \
development/samples/MultiClientInputMethod/
Test: Manually verified as follows:
1. make -j MultiClientInputMethod
2. adb install -r $OUT/system/priv-app/MultiClientInputMethod/MultiClientInputMethod.apk
3. adb root
4. adb shell setprop persist.debug.multi_client_ime \
com.example.android.multiclientinputmethod/.MultiClientInputMethod
5. adb reboot
6. Try multiple text input scenario
Change-Id: Ide43e16448fa00355a2c08bc45ae94d98553da50
If -dump-function-declarations is specified, header-abi-dumper outputs
the functions declared but not defined in the input file. The command
line option can be used to dump header files.
Test: header-abi-dumper -suppress-errors -dump-function-declarations system/libfmq/include/fmq/MessageQueue.h -o test.txt --
Bug: 117582158
Bug: 71485848
Change-Id: I85a3944047e085a032779a69b04ac5211f3b9467
This commit fixes the built-in include directories for header-abi-dumper
unit test cases. Remove the reference to
`prebuilts/sdk/renderscript/clang-include` because we don't check out
`prebuilts/sdk` in `aosp-clang-tools` branch.
Test: PATH=out/soong/dist/bin:$PATH \
development/vndk/tools/header-checker/tests/test.py
Change-Id: Ieb24b0a53b719f4569149251efcdaa3722c0b88c
Some header files have assumpion on predefined macros or include order,
which causes compilation errors when header-abi-dumper parses each
header individually. This commit adds the -suppress-errors option that
makes header-abi-dumper tolerate the errors.
Bug: 117582158
Test: header-abi-dumper -suppress-errors test.h -o test.txt --
Change-Id: Ie0eb278f8c006d1d05a9dcd92a9944289b930505