History log of /system/tools/hidl/c2hal/test/test.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
73f11e25c9bfd54690d0671ac9d8dc4f9245d86d 29-Jun-2017 Jakub Pawlowski <jpawlowski@google.com> Get rid of bt_bdaddr_t

Test: compilation test
Change-Id: Iaec65fc8ff229cc39d29b6e9ee1f5fc0cbec68c2
/system/tools/hidl/c2hal/test/test.h
cea7773ec460225308cb3abc185e9787c0bc179c 03-Oct-2016 Yifan Hong <elsk@google.com> c2hal: allow c++11 enum class and enum struct

Test: `make c2hal` and run c2hal on c2hal/test/test.h

Change-Id: I76654b37d44578027b5cb2348d02296b3af45d77
/system/tools/hidl/c2hal/test/test.h
7c0a90a2b7050cf9f92c72fe62f757201ad8f41e 30-Sep-2016 Yifan Hong <elsk@google.com> c2hal: remove some std::reverse.

Test: `make c2hal` and examine the result for c2hal/test/test.h
Change-Id: I1a54c112ad63229df21d548f87bd92c7b6777b9c
/system/tools/hidl/c2hal/test/test.h
0cedc19c4f0a6a0362de927eac32445dc10550a8 30-Sep-2016 Yifan Hong <elsk@google.com> c2hal: Improve Type PascalCase hack for primitive types.

Test: `make c2hal` and examine output for c2hal/test/test.h
Change-Id: I65897fe735008b215b1581008c7a20db82a25cc2
/system/tools/hidl/c2hal/test/test.h
4200903983e12253942381e2f9331479848c0b94 29-Sep-2016 Yifan Hong <elsk@google.com> c2hal: Use better To(Camel|Pascal|Snake)Case functions.

* enforce SNAKE_CASE on enums.
* rename upcase to uppercase everywhere.

Test: `make c2hal` and examine the result for c2hal/test/test.h

Change-Id: I959a7ed527f75e1a3b451ba484dbfea288c2db0d
/system/tools/hidl/c2hal/test/test.h
95b46238e9f0420e2e79ce2bda2cabc24aff4769 20-Sep-2016 Steven Moreland <smoreland@google.com> c2hal: Emit camelCase and PascalCase things.

Test: built, verified test headers output. Made sure it still worked on
opengl/telephony/libhardware headers.

Change-Id: Iabeb0e912dc7df6b2eae76b962531a30c83593bf
/system/tools/hidl/c2hal/test/test.h
05ebcf56647d3858f44c809811bdc3753e030176 19-Sep-2016 Steven Moreland <smoreland@google.com> c2hal: recognized unsigned integer types.

Bug: 31591909

Test: build c2hal, convert test.h, verify output, ensure c2hal still
runs on all libhardware, opengl, and test headers.

Change-Id: I911eea6ad829d1206c4a2d50b26c2a98cf54ccb4
/system/tools/hidl/c2hal/test/test.h
ce65189eb8825c7239438e9ff1abb08f65f15bd0 19-Sep-2016 Steven Moreland <smoreland@google.com> c2hal: respect arrays of dimensions higher than one.

Test: build c2hal, verify output of test.h, verify c2hal works on all
libhardware and opengl headers still.

Change-Id: I42bf77ff09a8b2ff0883b0bf5aa019b5b4a31f04
/system/tools/hidl/c2hal/test/test.h
c38c858f349efd50c5a254df54fd19bf4716a217 20-Sep-2016 Steven Moreland <smoreland@google.com> c2hal: allow people to weave macros w/ enums.

This was a problem with parsing the telephony 'hal'
hardware/ril/include/telephony/ril.h

Test: build c2hal, run c2hal on libhardware/ril/test/opengl headers,
verify output of ril and test .hal files.

Change-Id: I2316c139bbd12280b7d00202f06666463a046ad0
/system/tools/hidl/c2hal/test/test.h
b56909629ae9b9a9ed45df3335e389e417569aa7 19-Sep-2016 Steven Moreland <smoreland@google.com> c2hal: char -> uint8_t

Bug: 31591477

Test: built c2hal, ran it on c2hal/test/test.h and verified output
Change-Id: I39ec272c65f3a413801ff08c2466e8ba8aa2bae3
/system/tools/hidl/c2hal/test/test.h
f1a35f7d73f38e0d30d7a4343e33c3f4777cf87e 17-Aug-2016 Steven Moreland <smoreland@google.com> added c2hal

This is a transpiler which converts C headers to .hal files. Its design
is intended to mirror hidl-gen in order to make it easier for team
members familiar with one to be familiar with the other.

After making c2hal, commands from ~/android/master/:

Build the test.h header:
c2hal -r android.hardware:hardware/interfaces -p android.hardware.baz@1.0 system/tools/hidl/c2hal/test/test.h

Build the simple.h header:
c2hal -r android.hardware:hardware/interfaces -p android.hardware.simple@1.0 system/tools/hidl/c2hal/test/simple.h

Build all headers from libhardware:
python3 system/tools/hidl/c2hal/test/build_all.py ~/android/master/hardware/libhardware/include/hardware/

Build various OpenGl versions:
python3 system/tools/hidl/c2hal/test/build_all.py -g ~/android/master/frameworks/native/opengl/include/EGL/
python3 system/tools/hidl/c2hal/test/build_all.py -g ~/android/master/frameworks/native/opengl/include/ETC1/
python3 system/tools/hidl/c2hal/test/build_all.py -g ~/android/master/frameworks/native/opengl/include/GLES/
python3 system/tools/hidl/c2hal/test/build_all.py -g ~/android/master/frameworks/native/opengl/include/GLES2/
python3 system/tools/hidl/c2hal/test/build_all.py -g ~/android/master/frameworks/native/opengl/include/GLES3/
python3 system/tools/hidl/c2hal/test/build_all.py -g ~/android/master/frameworks/native/opengl/include/KHR/

Change-Id: I5a3b1d6d2350dd7e1ff825deeec212314b49d083
/system/tools/hidl/c2hal/test/test.h