Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
src/ | 23-Nov-2023 | - | 6,906 | 4,515 | ||
testdata/ | 22-Nov-2023 | - | 50 | 48 | ||
tests/ | 22-Nov-2023 | - | 1,531 | 839 | ||
.clang-format | D | 22-Nov-2023 | 424 | 18 | 17 | |
Android.bp | D | 23-Nov-2023 | 3.4 KiB | 154 | 130 | |
AndroidTest.xml | D | 22-Nov-2023 | 1.3 KiB | 28 | 13 | |
OWNERS | D | 22-Nov-2023 | 75 | 5 | 4 | |
README.md | D | 22-Nov-2023 | 576 | 27 | 18 | |
incidentd.rc | D | 22-Nov-2023 | 851 |
README.md
1 # incidentd 2 3 ## How to build, deploy, unit test 4 5 For the first time, build the test and create an empty directly on device: 6 7 ``` 8 root$ make -j incidentd_test && adb shell mkdir /data/nativetest/incidentd_test 9 ``` 10 11 Run the test on a device manually 12 13 ``` 14 root$ mmm -j frameworks/base/cmds/incidentd && \ 15 adb push $OUT/data/nativetest/incidentd_test/* /data/nativetest/ && \ 16 adb shell /data/nativetest/incidentd_test 2>/dev/null 17 ``` 18 19 Run the test via AndroidTest.xml 20 21 ``` 22 root$ atest incidentd_test 23 ``` 24 25 Use clang-format to style the file 26 27 clang-format -style=file -i <file list>