commit | 200209cb76dfb63d1cb3d97a821690ef40b31055 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Wed Mar 29 03:39:09 2017 -0700 |
committer | Yifan Hong <elsk@google.com> | Tue Apr 04 15:43:53 2017 -0700 |
tree | 70eaf9d21df687165d0b5d6b3784c3e781c5f980 | |
parent | f73f091621381a504c1f9012161b4dda976d792e [diff] |
Extra branches for getService. getService should treat failures differently. Failure check happens at (for hwbinder): 1. defaultServiceManager() == nullptr 2. defaultServiceManager()->get transaction error 3. get returns null 4. in castFrom, calling interfaceChain transaction error 4.1 DEAD_OBJECT 4.2 other transaction error 5. interfaceChain succeeds but cast fails (mismatch) Test: boots Test: screenshot / camera / maps Test: calling Debug.getMemoryInfo from apps does not hang Test: kill system_server, audio still works Test: adb push $OUT/data/nativetest/VtsHalNfcV1_0TargetTest/VtsHalNfcV1_0TargetTest /data/local/tmp && adb shell /data/local/tmp/VtsHalNfcV1_0TargetTest Bug: 36153684 Bug: 36611652 Change-Id: I664f8d1a1ccc0e623f31cc7b3b435acc487298d1
croot make hidl-gen
hidl-gen -o output-path -L language (-r interface-root) fqname output-path: directory to store the output files. language: output file for given language. e.g.c++, vts.. fqname: fully qualified name of the input files. For singe file input, follow the format: package@version::fileName For directory input, follow the format: package@version interface-root(optional): prefix and root path for fqname. If not set, use the default prefix: android.hardware and default root path defined in $TOP. examples: croot hidl-gen -o output -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0::INfc.hal hidl-gen -o output -L vts -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0 hidl-gen -o test -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0