e8c36e1e36f26cbf1bb26a86bcf59c1fedbfab56 |
|
31-May-2017 |
Martijn Coenen <maco@google.com> |
Mark move constructor/assignment noexcept. To allow std::vector to use move semantics with our objects. Bug: 62202341 Test: hidl_test, libhidl_test Change-Id: I1742b7371acd785fa5a5ab0b60a791d3a502e156
/system/libhidl/base/include/hidl/HidlSupport.h
|
40ccc88443a4c5854dcc6dbd557f3e5111f2cc49 |
|
07-Apr-2017 |
Scott Randolph <randolphs@google.com> |
Merge "Implicit const char* cast removed, operator<< added to hidl_string." into oc-dev
|
c601c5f21808844e614015eabc03e9c71f5aae42 |
|
06-Apr-2017 |
Steven Moreland <smoreland@google.com> |
libhidl: remove libvintf dependency Now hwservicemanager deals with libvintf and provides an IPC call for the same information. This dependency on libvintf must be moved in order to remove it from vndk-stable. Test: extensive, see Ia5d1eb41b057ab5d6800f6c3fd22658adecc4be7 Bug: 36377072 Change-Id: I05d40e2bf2a467c75e51a133b4799c0fd7fa74cb
/system/libhidl/base/include/hidl/HidlSupport.h
|
0c84ab4192f9b0b03b9840b85fc430afa17f55f1 |
|
03-Apr-2017 |
Scott Randolph <randolphs@google.com> |
Implicit const char* cast removed, operator<< added to hidl_string. hidl_string no longer will provide an implicit cast to const char* as it interfers with other expected behaviors of the class. It now emulated std::string in requiring a call to .c_str() to get the same behavior. Bug: 36532780 Test: Build the tree for marlin, bullhead, bat Change-Id: I6ba76522ef65aa211bc156144990ad8b7495b051
/system/libhidl/base/include/hidl/HidlSupport.h
|
6688d60a53e605fe8a3cc663e415a1f938009fca |
|
30-Mar-2017 |
Andreas Huber <andih@google.com> |
Ensure proper alignment of hidl_handle's fields. Bug: 33846034 Test: make Change-Id: I25d0ad1315b005ca953bf6054abd19fcd22ee511
/system/libhidl/base/include/hidl/HidlSupport.h
|
b7370304cbf33a6ff53ec3955cda0bf18920df48 |
|
08-Mar-2017 |
Hridya Valsaraju <hridya@google.com> |
Remove liblog usage in MQDescriptor.h Also remove hidl_log_base class since static methods in child classes will not be able to invoke logAlwaysFatal(). Bug: 36070915 Test: hidl_test passes. Change-Id: I90e8982698920e6710f7bc8e533e4eccdf3a35c7
/system/libhidl/base/include/hidl/HidlSupport.h
|
4ff88a31348e1c367ba3b6a4d97af215bdf00a99 |
|
10-Mar-2017 |
Hridya Valsaraju <hridya@google.com> |
Move toString() methods to android::hardware Bug: 36108426 Test: hidl_test passes Since these methods are used outside of libhidl, we should move them out of details. Change-Id: I82e267b3911369a6ae516b03be61ba9686dc53a3
/system/libhidl/base/include/hidl/HidlSupport.h
|
6d4acb12519597610322097f86850d9e404d251a |
|
03-Mar-2017 |
Hridya Valsaraju <hridya@google.com> |
Change size_t member of hidl_memory type to uint64_t Also static_assert offsets to private members in hidl_* types used in parcelling/unparcelling code. Bug: 34986428 33846034 Test: hidl_test passes Change-Id: Ib2ee81c45ee797f4933ed142160aeed250675819
/system/libhidl/base/include/hidl/HidlSupport.h
|
24332ef104a44b4bfb28c56ac2aa44584190e337 |
|
08-Mar-2017 |
Yifan Hong <elsk@google.com> |
Disable getDebugInfo address leak for production builds. On production builds debugfs won't be available, so lshal cannot infer binder relationships anyway. The address leak on production builds also expose a security hole for address space attacks. Added a build-time flag to disable the address leak on user builds. The address will still be exposed for eng and userdebug builds so that lshal can work properly. Bug: 34899586 Test: lshal still works Change-Id: Id1c381fbccad7584c2932deb9212d6996eeefd75
/system/libhidl/base/include/hidl/HidlSupport.h
|
37b3620ce11288ad970bc7052b8bb76b17419474 |
|
01-Mar-2017 |
Yifan Hong <elsk@google.com> |
getTransport checks interface and instance names. If <interface> is missing from the manifest, it returns <transport> only if instanceName == "default", and EMPTY otherwise. Bug: 35219444 Test: hidl_test Test: camera, soundtrigger works on marlin Test: video playback works on marlin Change-Id: Iaae6ae9bbf5f8c97fae63f2ac41595d822f781ca
/system/libhidl/base/include/hidl/HidlSupport.h
|
0126889103d84c2078896688017d61d612a12c4f |
|
27-Feb-2017 |
Hridya Valsaraju <hridya@google.com> |
Add move constructor/assignment operator to hidl_memory Bug: 34093434 Test: hidl_test passes Change-Id: I6bb7e2e3c914040daa8d72d9a86a5a3d3f8338e5
/system/libhidl/base/include/hidl/HidlSupport.h
|
a21d84f11f066315bd1476368d511286d129cb8a |
|
16-Feb-2017 |
Steven Moreland <smoreland@google.com> |
hidl_string: allow null cstr Automatically converting nullptr to empty string rather than erroring. This gets rid of null values at the hal layer (rather than passing them to the server) and simplifies code that would have to check for nulls. Test: libhidl_test Fixes: 35421240 Change-Id: Iada25da5407c3eccdd28704d993ffdee8b15c5fe
/system/libhidl/base/include/hidl/HidlSupport.h
|
7a57de61a2017790b61ac211729a3b275f29c9ba |
|
15-Feb-2017 |
Zhuoyao Zhang <zhuoyao@google.com> |
Revert "Revert "Move HidlInstrumentor to HidlInternal and namespace details."" This reverts commit f9fd88291caa3a2bab89c1b8ff128b1659da81b4. Test: make libhidlbase Change-Id: I85eb85bd9e89c28026e9865f799dce2b0df584fc
/system/libhidl/base/include/hidl/HidlSupport.h
|
f9fd88291caa3a2bab89c1b8ff128b1659da81b4 |
|
15-Feb-2017 |
Zhuoyao Zhang <zhuoyao@google.com> |
Revert "Move HidlInstrumentor to HidlInternal and namespace details." This reverts commit f509befb751b01701f6157b32c3a332abc237b2b. Change-Id: I0770e5a7d5cea3d42a97d664fcc3ad2f1f7414f7
/system/libhidl/base/include/hidl/HidlSupport.h
|
f509befb751b01701f6157b32c3a332abc237b2b |
|
14-Feb-2017 |
Zhuoyao Zhang <zhuoyao@google.com> |
Move HidlInstrumentor to HidlInternal and namespace details. Bug:34644498 Test: run vts -m VibratorHidlTargetProfilingTest Change-Id: Ifd20e60cf7148c0b4e060802dc7b7653add2b5a4
/system/libhidl/base/include/hidl/HidlSupport.h
|
551396afe50bb40b046e9f16b4501e6df055c88a |
|
14-Feb-2017 |
Steven Moreland <smoreland@google.com> |
hidl_string: relational operators Fixes: 34524287 Test: libhidl_test Change-Id: Id0731e6df1fc1831d8c1bdf35b3aa17abd5273d2
/system/libhidl/base/include/hidl/HidlSupport.h
|
20273f9b308ec7df36dff6aa9f27d02a8d01cf79 |
|
30-Jan-2017 |
Yifan Hong <elsk@google.com> |
Change getTransportFromManifest to getTransport. Test: NFC / light / audio works with and without persistent.hal.binderization. Bug: 34810039: VINTF: specify version in getTransport Bug: 34772739: getTransport checks a static map for android.hidl.* packages Bug: 34772726: VINTF needs to be able to specify things at interface-level granularity Change-Id: I0c7b31f177f243c85c0c99dc46f32cbbb0586180
/system/libhidl/base/include/hidl/HidlSupport.h
|
93c1e3aa4277de38cf40399980f9876a1f9c9ce4 |
|
24-Jan-2017 |
Zhuoyao Zhang <zhuoyao@google.com> |
Update HidlInstrumentor. * Instead of dlsym method HIDL_INSTRUMENTATION_FUNCTION, dlsym HIDL_INSTRUMENTATION_FUNCTION + insterface_name. * This enables a single profiler library that contains the profiling method for all the interfaces defined within the same hidl package. Test: mma for hardware/interface. local test with vts. Change-Id: I076841ea8a565c489b45303e5ca496806d5d10be
/system/libhidl/base/include/hidl/HidlSupport.h
|
04b91c0fa5d2ccfe92816791064c30a25cbef0be |
|
19-Jan-2017 |
Martijn Coenen <maco@google.com> |
Fix hidl_handle/hidl_memory ownership semantics. hidl_handles that are constructed from a native_handle_t object never own a handle, unless explicitly requested by a call to setTo(). Copying a hidl_handle does clone the enclosed native_handle_t and consequently takes ownership of it. As a consequence, hidl_memory no longer needs to keep track of handle ownership; the default constructors don't take ownership of the passed in native_handle_t, requiring callers to clean the handles up when it is done with them. This makes sense because in most cases, hidl_memory is a very transient object just used for IPC. Test: hidl_test, libhidl_test Bug: 33812533 Change-Id: Idf26434c6a1dc541d4b909ac1523dbf92f214e1a
/system/libhidl/base/include/hidl/HidlSupport.h
|
44c0e577e148d3e1b8ce561165b3af661960d5d8 |
|
21-Jan-2017 |
Yifan Hong <elsk@google.com> |
Add getTransportFromManifest which consult the vendor interface object to see what transport method is expected for each HAL. Test: hidl_test Bug: 32718841 Change-Id: Ic93bea634852554a331824f3f1f003442ffe4841
/system/libhidl/base/include/hidl/HidlSupport.h
|
ec0e39dffecdab974aa0488097dd08ce6020d29f |
|
24-Jan-2017 |
Yifan Hong <elsk@google.com> |
Revert "Add getTransportFromManifest" This reverts commit fba2495bc608f7c488fb74f0c8b6c252b3fe6669. Change-Id: Idefe5d80e86af072c41c635cb24754f2ec352196
/system/libhidl/base/include/hidl/HidlSupport.h
|
fba2495bc608f7c488fb74f0c8b6c252b3fe6669 |
|
21-Jan-2017 |
Yifan Hong <elsk@google.com> |
Add getTransportFromManifest which consult the vendor interface object to see what transport method is expected for each HAL. Test: hidl_test Bug: 32718841 Change-Id: I4529b7dcb5a892d968b50f2a2301035b9f0aa466
/system/libhidl/base/include/hidl/HidlSupport.h
|
6ffdc2a87c22f6941705d7fef1fa260f5be494f0 |
|
23-Jan-2017 |
Steven Moreland <smoreland@google.com> |
Fixed spelling. Test: pass Change-Id: I05bd226a8624b080891a09c8d50983f3aa6b07c3
/system/libhidl/base/include/hidl/HidlSupport.h
|
a2a8184180557e980387f769ac3915eb9e072f8b |
|
20-Jan-2017 |
Steven Moreland <smoreland@google.com> |
hidl_string: add operator< This allows us to std::sort vecs of hidl_strings, etc.. Test: libhidl_test Change-Id: I6e9a7669bceb09d62791fe8c88cfd1977ea07194
/system/libhidl/base/include/hidl/HidlSupport.h
|
337e6b61c4fc3a7ba76862662117c17496a1f8a2 |
|
19-Jan-2017 |
Steven Moreland <smoreland@google.com> |
Add passthrough service manager. Right now we have logic related to getting passthrough services generated inside of getService. We should abstract this logic out into an instance of IServiceManager. This will: - abstract passthrough transport implementation from hidl-gen - decrease code complexity in hidl-gen Bug: 34394392 Test: hidl_test Change-Id: Ia6160047c63c6788728d4e17a7cdf67bf6cd06e7
/system/libhidl/base/include/hidl/HidlSupport.h
|
be7a6887b28a1240ba0d944126c3db631342256d |
|
06-Jan-2017 |
Yifan Hong <elsk@google.com> |
add toString() for hidl types. They are defined in ::android::hardware::details::toString(). Test: hidl_test and look at the output of logcat Bug: 33459772 Change-Id: Idf849114a623331ebf43e160c5901170c7c8925e
/system/libhidl/base/include/hidl/HidlSupport.h
|
53120f70b7d429c81fe47718182e829660ed5ef9 |
|
12-Jan-2017 |
Steven Moreland <smoreland@google.com> |
hidl_string: Add cstr + length constructor This will allow non-terminated strings to be turned into a hidl_string with only one copy among other things. Test: libhidl_test Fixes: 34221748 Change-Id: I443f7920a65d23b7bcb583db55c3cec7266ec2d4
/system/libhidl/base/include/hidl/HidlSupport.h
|
5a643b9fbd9f08bd04a38804d647c847c1c93b8f |
|
04-Jan-2017 |
Zhuoyao Zhang <zhuoyao@google.com> |
Support dynamically enable profiling. * 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
/system/libhidl/base/include/hidl/HidlSupport.h
|
0f3461db91b75d9acd7e0bec8b1e97cbb3bafdf7 |
|
03-Jan-2017 |
Jeff Tinker <jtinker@google.com> |
Permit assignment from a null hidl_memory Bug: 34102220 Test: libhidl_test, hidl_test Change-Id: Ic0da09f0f6a79643ee44c6b13ef606b2217956e0
/system/libhidl/base/include/hidl/HidlSupport.h
|
9fcbb36250a4392b12012cf5177c4669ef10e654 |
|
21-Dec-2016 |
Yifan Hong <elsk@google.com> |
operator== and != for hidl_vec. Test: libhidl_test Bug: 32834072 Change-Id: Iae9b454f5c1e9d8b3b10394ef6de9d4ba4cdd959
/system/libhidl/base/include/hidl/HidlSupport.h
|
9b8f9c38ea8ac1fe1fdf11ea219097885a5f2fa7 |
|
09-Dec-2016 |
Martijn Coenen <maco@google.com> |
Add (un)linkToDeath to IBase. 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
/system/libhidl/base/include/hidl/HidlSupport.h
|
ca1d1bf76f0e38cbe8d301a761b1c428f83bf853 |
|
19-Dec-2016 |
Yifan Hong <elsk@google.com> |
Fix hidl_vec's constructor with initializer_list doesn't cast size properly. Test: hidl_test Test: libhidl_test Change-Id: I0c155094555ecf3f6f1ea28b612b26b05a85f7ef
/system/libhidl/base/include/hidl/HidlSupport.h
|
b81c82748fcd6a34ad017c7826bd82091040c9cc |
|
13-Dec-2016 |
Yifan Hong <elsk@google.com> |
Move macros from libhidl[transport] to auto-generated code. Bug: 32756130 Test: hidl_test Change-Id: Ic7af37daebc3e465a855e5b62055356e3e00c9d3
/system/libhidl/base/include/hidl/HidlSupport.h
|
19f4db58674560ebe6b85dad77af0155a3dddecf |
|
15-Dec-2016 |
Eino-Ville Talvala <etalvala@google.com> |
hidl_version: Add comparison operators Test: libhidl_test passes Change-Id: I8bb01599ae581484d80014bd99c4aff09a953824
/system/libhidl/base/include/hidl/HidlSupport.h
|
64fdf4d1bdea86202c7526482d4d329724d33dcb |
|
10-Dec-2016 |
Yifan Hong <elsk@google.com> |
fix and expand hidl_vec::iterator; add const_iterator. * Fix flipped post++ and ++pre for hidl_vec::iterator * make it random accessible. * add const_iterator. Test: hidl_test Change-Id: I8649f8598a13e6054c994d30a4daf383d1dae55c
/system/libhidl/base/include/hidl/HidlSupport.h
|
4b48edc21b333247a4b48cb12b82ab413040521a |
|
07-Dec-2016 |
Chia-I Wu <olv@google.com> |
Silence a -Wshorten-64-to-32 warning. Silence system/libhidl/base/include/hidl/HidlSupport.h:426:17: error: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'uint32_t' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32] Test: builds Change-Id: I383e79e4f9b89bb4dce3b9c91199ca3a7f91e959
/system/libhidl/base/include/hidl/HidlSupport.h
|
2cd440cf0c589e89d0d4509d273142a35b5ef81c |
|
23-Nov-2016 |
Yifan Hong <elsk@google.com> |
Hidlize IBase and use IBase instead of IBinder. 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
/system/libhidl/base/include/hidl/HidlSupport.h
|
44ab623ccf386f0e470bdc6aa22f261b7dc047cd |
|
23-Nov-2016 |
Yifan Hong <elsk@google.com> |
Convert (by copying) hidl_array from and to std::array. * For example, hidl_array<T, 2, 3> can be converted to std::array<std::array<T, 3>, 2>. * Uses operator= for copying. * Also uses operator= when initializing an hidl_array (instead of memcpy'ing). This fixes potential memory issues for hidl_array<hidl_string>, for example. Bug: 32883329 Test: libhidl_test Change-Id: Idf7d080433aaed2c585fd4875f3411e5544a9e72
/system/libhidl/base/include/hidl/HidlSupport.h
|
3079100878a2595be644d866e67c12a9de620fd5 |
|
01-Dec-2016 |
Martijn Coenen <maco@google.com> |
Hidlized version of IMemory. - Add hidl_memory type. - Add android.hidl.memory@1.0 package - IMapper - IAllocator - IMemory - Add libhidlmemory - Add default implementation of android.hidl.memory@1.0 - Ashmem - Ion (TODO, probably in another CL) Test: compiles (WIP) Change-Id: I4632eeb6a0051551b54ce04d919aaf551dfc5f28
/system/libhidl/base/include/hidl/HidlSupport.h
|
337c3ae7f5ce6e94d6ccaaa7fb4ac92c4069b2dd |
|
22-Nov-2016 |
Steven Moreland <smoreland@google.com> |
Cleanup Return object. - Expose isOk() instead of having to say getStatus().isOk() - Add 'get' function which checks to make sure content is valid. - Mark implicit cast operator as deprecated. Bug: 32744406 Bug: 31348667 Test: hidl_test Change-Id: I13bfe33b6c1f9b94a372161064a9e913825df959
/system/libhidl/base/include/hidl/HidlSupport.h
|
4d1e9cccc1762eaa7613981d8d7953cb47054750 |
|
18-Nov-2016 |
Martijn Coenen <maco@google.com> |
Add support for hidl_handle. hidl_handle wraps a const native_handle_t* safely for IPC between 32- and 64-bit processes. Bug: 32089785 Test: builds, hidl_test32 passes Change-Id: I31e98c63ecca063e6c5614e5b6f6767106f8e8c2
/system/libhidl/base/include/hidl/HidlSupport.h
|
70822ead603c241dafd1e4c5a572808c62a6e091 |
|
16-Nov-2016 |
Martijn Coenen <maco@google.com> |
Add notifySyspropsChanged to IBase. This is used for dynamically updating the atrace tags in a process, allowing systrace to be invoked at any time without having to restart a process. Bug: 31262344 Test: mma Change-Id: I68ad9566a82d5b1ddf7b00d6af2af6e567526ab0
/system/libhidl/base/include/hidl/HidlSupport.h
|
bb840f73dc33c5de153cc6959672cf05c55ae4e6 |
|
21-Nov-2016 |
Scott Randolph <randolphs@google.com> |
Add hidl_vec iterator and hidl_string == Add bidirectional iterator for hidl_vec Add operator== and operator!= for hidl_string to hidl_string comparision. Test: Added unit tests to libhidl_test Change-Id: I908bc71fae4016f335e2342f28b351f63f22fa66
/system/libhidl/base/include/hidl/HidlSupport.h
|
3da68488e12ae8d487f43700582b775a4cdb6ec1 |
|
18-Nov-2016 |
Sasha Levitskiy <sanek@google.com> |
Libhidl: Add a constructor to hidl_array. Test: Added a test to libhidl native test suite. Change-Id: I4469200a40b4c05184f39754db6b4e732ae85ccd Signed-off-by: Sasha Levitskiy <sanek@google.com>
/system/libhidl/base/include/hidl/HidlSupport.h
|
00f4a391c6f9a698bbcbbd05bf3d80e213c82884 |
|
16-Nov-2016 |
Yifan Hong <elsk@google.com> |
Split libhidl into base and transport. libhidlbase contains "pure" classes that has nothing to do with tranport level stuff. libhwbinder can now safely depend on libhidlbase. IBinder inheriting from IBase will be in a follow up CL. Bug: 32756130 Test: mma under hardware/interfaces Test: hidl_test Change-Id: Ie2bd80769df3816aab83789ba0d7fca9b5a2e52f
/system/libhidl/base/include/hidl/HidlSupport.h
|