summaryrefslogtreecommitdiff
path: root/transport/base
AgeCommit message (Collapse)Author
2020-07-10Make android.hardware.renderscript@1.0 buildable for native_bridgeandroid11-devVictor Khimenko
Bug: http://b/153609531 Test: m android.hardware.renderscript@1.0.native_bridge Change-Id: Iaf5b1942a05617934e7f42d760c6aea5551d0b89 Merged-In: Iaf5b1942a05617934e7f42d760c6aea5551d0b89
2020-04-06Rename vts-core to vtsDan Shi
Bug: 151896491 Test: presubmit check Exempt-From-Owner-Approval: This CL renames suite name vts-core to vts. It won't change test logic or behavior. Change-Id: I928c6b24ef295f7d8de129ee7c686e4408b1b235
2020-04-02vts_ibase_test: general-testsSteven Moreland
To use with automated infrastructure. Bug: 152375928 Test: N/A Change-Id: Iaaae25a5f093020c404e369388939a37f032f37a
2020-03-05Avoid use of FQName globals.Steven Moreland
They're being optimized out. Bug: 148177595 Test: vts_ibase_test Change-Id: I982ed5af65911d94a1b796c84cbe5a5fa784878a (cherry picked from commit 05ebf2d104957381fdd0469c4b848fa53dfe48c5) Merged-In: I982ed5af65911d94a1b796c84cbe5a5fa784878a
2020-03-02Have vts_ibase_test link all libraries for libinit_test_utilsTom Cherry
The linker may attempt to link static libraries fully, not just the parts that are being used, so all libraries that a static library uses must be linked into its parent executable. Particularly, recent changes to init are causing a build failure due to this issue. Bug: 148236233 Test: build vts_ibase_test aosp_arm64-userdebug Merged-In: Ibdb907d27c201387c9051e90ba96680a840a6d43 Change-Id: Ibdb907d27c201387c9051e90ba96680a840a6d43 (cherry picked from commit 6fc3cc5e3d3a871351141427ce6cf4f42b463f71)
2020-02-12Convert vts_ibase_test.cpp to Result::ok()Bernie Innocenti
Test: m checkbuild Change-Id: I1a1c86d8666989e36baf4e4c7ff8093b22e64e88
2020-02-07vts_ibase_test: filter AIDL interfaces from initSteven Moreland
Before, this init API was only returning HIDL interfaces. Now it returns all interfaces. Filtering out AIDL interfaces. Bug: 141008902 Test: vts_ibase_test Change-Id: I1281f1df279cbd5ff965a462135bc1007c863789
2020-02-06[vts-core] Set auto_gen_config=true for vts_ibase_testnelsonli
vts_ibase_test require to set auto_gen_config=true for vts-core suite since there is an AndroidTest.xml in its folder. Bug: 132702215 Test: atest vts_ibase_test Change-Id: I45be934524a722d04610714b21db20d53ef224d2
2020-02-04Add vts_ibase_test to vts-core.Steven Moreland
This sanity-test checks basic APIs which are available on all HALs. For instance, by checking the validity of init rc interface files, we ensure that the framework can rely on the accuracy of this information in the future. Bug: N/A Test: N/A Change-Id: Iebdb605b9e53b4b4d6da3f8a7815aee0e1b315d7
2019-09-05Remove libhwbinder/libhidltransport depsSteven Moreland
Since these were combined into libhidlbase. Bug: 135686713 Test: build only (libhwbinder/libhidltransport are empty) Change-Id: I5c69afb373ce3a3f106d7bdcc1a8cf02fccf9d78
2019-08-07Starts up lazy services before checking running interfaces.Daniel Norman
Bug: 138114550 Test: /data/nativetest64/vts_ibase_test/vts_ibase_test Change-Id: I0899b2c982ce2111ed2bbcf9d72ac6832ff76199
2019-08-05Tests services provide all declared interfaces.Daniel Norman
Bug: 138114550 Test: /data/nativetest64/vts_ibase_test/vts_ibase_test Change-Id: I513c7eaf12cd302c7d0e6b5fc1d4bc974ad208ec
2019-08-01Adds a test to check that services declare the interfaces they serve.Daniel Norman
Bug: 138114550 Test: m vts_ibase_test, adb shell /data/nativetest64/vts_ibase_test/vts_ibase_test Change-Id: Ic902a85839a4e13dd1c811b1df07c3c4a2b5c4f5
2019-04-17Update hidl makefiles for bpfmtSteven Moreland
hidl-generated makefiles are now generated such that bpfmt(file) == file. Bug: 67417008 Test: enable bpfmt hook Change-Id: I45af8c5bedb67c5942eedd14893af38560f6d4dc
2019-03-08update makefiles for no typesSteven Moreland
Bug: N/A Test: N/A Change-Id: Ib428aeb93234239e67821f7f4ebd92b7769e7f45
2018-07-25Remove 'core_interface' references.Steven Moreland
These are preventing us from removing a hack around HIDL dependencies in the HIDL build tools so they are being centralized into a list in system/tools/hidl. Bug: 111366989 Test: 'm android.hidl.base@1.0' still fails Test: HIDL's run_all_host_tests.sh Change-Id: Ib7ccdedf2b9c8aa5bdf0933ec4bb73a392fe8743
2018-07-24Documentation to fix order of hidl unlinkToDeath.Steven Moreland
Calling unlinkToDeath after linking to death multiple times will unregister the most recently registered death recipient as expected. Bug: 67503915 Test: hidl_test, hidl_test_java Change-Id: Ifd79999f6899fe698dba2f937d22ccf9e4cfd839
2018-02-02vts_ibase_test: Add push group.Steven Moreland
Test: run vts -m VtsHalBaseV1_0TargetTest Bug: 62799790 Change-Id: Iab05e53f1ea48ffd39d4346e06a71c227e3f1bd3
2018-01-19Fix VtsBase test.Steven Moreland
Bug: 62799790 Test: N/A Merged-In: I0e20a0943fd051912e8efb524e80a0432222499f Change-Id: I0e20a0943fd051912e8efb524e80a0432222499f
2018-01-18Add VTS test for IBase.Steven Moreland
Bug: 62799790 Test: finds real failures on walleye Change-Id: Ieaa54fd235b94a6afcda7e0a878fad6820ea3595
2017-11-10Update makefiles for Soong plugin.Steven Moreland
Test: manual Bug: 35570956 Change-Id: I9ff98530878d0067a2a961b17276ac97b2cd9691
2017-10-10Update makefiles for Android.bp Java.Steven Moreland
Also, moved legacy android.hidl.base-V1.0-java-static target into a more maintainable location until we can completely remove it. Bug: 33420795 Test: pass Change-Id: I3144d83ff3f691b21c96068a9605e2b3481bdea7
2017-10-03Update for hidl adapter module defaults.Steven Moreland
Test: pass Change-Id: I593bffa5ae0ef479b6ff96c2ab46e903896cf4ec
2017-09-26Fix typo in update makefiles.Steven Moreland
Bug: 37518178 Test: pass Change-Id: Ic06e75ea95af0b219ae76ac674ca7c1c430230ae
2017-09-25libhidladapter: Support for HIDL adaptersSteven Moreland
A HIDL adapter takes an x.(y+1) interface and registers it as an x.y interface for testing. This library allows someone or something to run an adapter. Note: this requires b/62303973 to properly mock a lower interface version. Note: this requires adapters to run as root to get around sepolicy. Bug: 37518178 Test: can switch out implementations ~/android/master$ lshal | grep hidl.allocator Y android.hidl.allocator@1.0::IAllocator/ashmem 0/1 652 471 ~/android/master$ lshal | grep hidl.allocator Y android.hidl.allocator@1.0::IAllocator/ashmem 0/1 7635 471 ~/android/master$ lshal | grep hidl.allocator Y android.hidl.allocator@1.0::IAllocator/ashmem 0/1 652 471 Change-Id: Ic72feb3a2fd4649e67b396c33b9a292e9c0a944a
2017-08-01Change dependency librarySundong Ahn
hwbinder.jar will be used instead of framework.jar on build-time, but on runtime framework.jar will be used. This is to cut the circular dependency when using configstore from Android framework. Bug: 35771640 Test: no test Change-Id: I52298dac149377abf12588ce290de00ad8cda066
2017-05-09Update makefiles for c++-sources and c++-headers.Steven Moreland
Test: pass Bug: 38174080 Change-Id: Id4bfe19b18c3b0c08ec83288aeb7a542230b3ba5
2017-05-02Remove duplicate targets.Steven Moreland
Test: nothing depends on these Fixes: 33276472 Change-Id: I81596265202f330bb3e28fe6dd2a79ff16e474fa
2017-04-13Changed the naming scheme for Treble java libraries (both static and dynamic)Andreas Huber
android.hardware.foo@1.0-java => android.hardware.foo-V1.0-java Bug: 37207894 Test: make Change-Id: Iad2fe667c4fb8594d513a0b3c08a4c3229d5b6a7 Merged-In: If80e117ef3a284ab2dcc67b7c6a91da22530d71f
2017-04-12Update makefiles.Steven Moreland
Test: pass Change-Id: Id4e4a60149e7c8462d541bd114d96a7fc22c1f35
2017-03-30Add getHashChain() to IBase.Yifan Hong
Each interface has a getHashChain() method that returns the hash of all .hal files from the rtti of the interface up to IBase. Test: pass (since no frozen hashes for interfaces yet) Bug: 36602587 Change-Id: I068cc7a09fea1fdab050b3b7e5b3d4360bd56cdc
2017-03-24Update makefiles.Steven Moreland
Test: pass Change-Id: Ib83f2db49959b288e8c033643a90047dd87440fa
2017-03-02Update for providing architecture infoYifan Hong
to IBase::getDebugInfo() and IServiceManager::debugDump(). Moved PassthroughServiceManager::list to debugDump() because it need to provide 32-bit libraries as well, which doesn't meet the contract of list(). Bug: 35803184 Test: lshal -itrpc Change-Id: I18374188ae6a33ba498ece5cddd92b48526f5f44
2017-02-17split android.hidl.memorySteven Moreland
Split android.hidl.memory into android.hidl.memory and android.hidl.allocator. This must be done because IAllocator is served over hwbinder transport and IMapper/IMemory are always going to be passthrough hals. Test: hidl_test, device boots with allocator Bug: 35327976 Merged-In: Ib135b5e101fadadbbf16126a98f90181f76a253b Change-Id: Ib135b5e101fadadbbf16126a98f90181f76a253b
2017-02-13IBase: add ping methodSteven Moreland
Bug: 34501346 Test: hidl_test Change-Id: I75c013313867f636e8cee7951ff1e8a8d5ba9210
2017-02-10Merge "Updated makefiles"Andreas Huber
2017-02-09Adds a debug(...) method to IBase, the base class for all Treble interfacesAndreas Huber
The default implementation does nothing but this allows implementations to emit diagnostics to a given file handle in a unified fashion. Bug: 33961528 Test: hidl_test, hidl_test_java Change-Id: I6e2ca9a53e745f38bee75950edbb4fa6b5149e52
2017-02-09Updated makefilesAndreas Huber
Java intermediates are now created in the common rather than the device- specific generated sources subdirectory. Bug: 33842609 Test: make Change-Id: I8efbd3fc28be86d9b511e2f6fbe1826256b070e0
2017-02-02IBase::getReferenceInfo -> getDebugInfoYifan Hong
Bug: 34777099 Bug: 34861460 Test: lshal Test: NFC / light / audio with and without persistent.hal.binderized; run lshal to reflect this. Change-Id: I70aebefcaf5ed92a3c31a7bf2406d610c4533258
2017-02-01Add getReferenceInfo to IBase.Yifan Hong
Test: hidl_test Change-Id: Ib4e3764f9ad37106c91ede18d8c8e6f718b887c4
2017-01-18Update HIDL makefiles.Steven Moreland
This was causing a failure because package paths were defined multiple times because of an error in hidl-gen code when these makefiles were originally generated (Fixed in I9ef32b3867646690363fc9f85fe691ae74796d45). Test: hidl_test Bug: 34325813 Change-Id: Ie6500e53ba66dab0773830462f1c59932d801bef
2017-01-17Reorder methods for IBase to conform to call enums.Yifan Hong
In system/tools/hidl/Interface.cpp, interfaceDescriptor is right after interfaceChain. Test: mma Change-Id: I2954d55cb0fd02ea7d5acaf15301ae3318da3075
2017-01-12Add interfaceDescriptor() to IBase.Yifan Hong
Test: hidl_test Test: hidl_test_java Bug: 34136228 Change-Id: I3e302a69d55270a9717b87a6b370165b0436f7be
2017-01-12Merge "Bp/n/sFoo -> Bp/n/sHwFoo"Treehugger Robot
2017-01-11Support dynamically enable profiling.Zhuoyao Zhang
* Create method configureInstrumentation to enable/disable instrumentation based on the corresponding system property. This method will be called every time setHALInstrumention is invoked for any hal. * Add setHALInstrumention to IBase.hal Bug: 33923655 Test: make libhidlbase. Change-Id: I130fb903f65783568a97308e291965960abab41d
2017-01-09Bp/n/sFoo -> Bp/n/sHwFooYifan Hong
Bug: 33554989 Test: hidl_test Change-Id: If46d3333f4dcc0a97010f13684bde219f07b3142
2016-12-22Add (un)linkToDeath to IBase.Martijn Coenen
With corresponding callback interfaces. hidl_death_recipient is a transport-independent interface, used directly by clients and servers. hidl_binder_death_recipient wraps a hidl_death_recipient object and implements the Binder-specific death recipient. It holds a weak reference to the callback interface, as well as the interface it was called on (so we can include that in the callback). Bug: 31632518 Test: mma, hidl_test Change-Id: I0430efff24c2bfd3993438c6ed3fe007d9f9e3ef
2016-12-12Update makefiles for java package path.Yifan Hong
Bug: 33554192 Test: hidl_test_java Change-Id: Ic14e6dde7e9cd2853da76ce60857e6b87908dd07
2016-12-02Hidlize IBase and use IBase instead of IBinder.Yifan Hong
Note: system/libhidl/base is the libhidlbase project. system/libhidl/transport/base is the android.hidl.base@1.0 HAL files. Test: hidl_test Change-Id: Ic3464b5e50c0896de9b26f44a409496f8df37c39