blob: 1730a6401254096cb5d374cae1a2104c2c477fe7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# incidentd
## How to build, deploy, unit test
For the first time, build the test and create an empty directly on device:
```
root$ make -j incidentd_test && adb shell mkdir /data/nativetest/incidentd_test
```
Run the test on a device manually
```
root$ mmm -j frameworks/base/cmds/incidentd && \
adb push $OUT/data/nativetest/incidentd_test/* /data/nativetest/ && \
adb shell /data/nativetest/incidentd_test 2>/dev/null
```
Run the test via AndroidTest.xml
```
root$ atest incidentd_test
```
Use clang-format to style the file
clang-format -style=file -i <file list>
|