History log of /system/libhidl/base/include/hidl/HidlSupport.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a67521288530900cd58b2b1c20c150f337672317 28-Dec-2017 Steven Moreland <smoreland@google.com> Introduce hidl_bitfield.

This is an alias for the underlying type of the enum and
provides more type information than the underlying type alone.

Bug: 70979815
Test: all hidl-gen host tests
Change-Id: Ib9ff14c0ec1c9e50fa1952fb76eb8cfbaea1316a
/system/libhidl/base/include/hidl/HidlSupport.h
62a38dfd2d846f23f609a492ffcc21b85baed5ff 22-Nov-2017 Janis Danisevskis <jdanis@google.com> Fix comparisson operation of const char* with hidl_string

The arguments to the strcmp function were flipped.

Test: Would have caught this ;-)
Change-Id: I1f7379a4a6537790a269ebe2c1874135713e4ca4
/system/libhidl/base/include/hidl/HidlSupport.h
abce0c749bff42225e35fa4e2a21fa0d632af706 18-Nov-2017 Steven Moreland <smoreland@google.com> Add global definition of hidl_enum_iterator.

Every HIDL generated enum generates an implementation of this
function.

Bug: 68715899
Test: hidl_test
Change-Id: I697f86990542435955090ec6d07e8a80d7dfecd9
/system/libhidl/base/include/hidl/HidlSupport.h
8e42f5ae87e907e353fa8d094013b9431a9b8cda 09-Nov-2017 Howard Chen <howardsoc@google.com> Refine HidlMemory

Add construct from a const hidl_memory& so that we can easily
copy it out of a synchronous callback

Bug: 67758915
Test: hidl_test
Change-Id: I0e10cc4c9321197787657f957ea184a5e7262744
/system/libhidl/base/include/hidl/HidlSupport.h
280af0a664802cc7331ba134fdfeed57027f21cd 20-Oct-2017 Howard Chen <howardsoc@google.com> Fix ~HidlMemory

The ~HidlMemory is used to work around the weak vtable problem.
Set its permission as public to avoid side effect.

Bug: 67758915
Test: compile sailfish in aosp
Change-Id: If51eacfce72aecc5f50372126c0a86994b54c076
/system/libhidl/base/include/hidl/HidlSupport.h
3f8c4164067e0239c7f1cdd020d397ce42a9e641 11-Oct-2017 Steven Moreland <smoreland@google.com> Better constructors for hidl_memory.

Allow hidl_memory to take ownership of a handle. A hidl_handle
object can now be moved into a hidl_memory object. This way the
lifetime of the handle corresponds to the lifetime of the
hidl_memory object.

Test: w/ mapMemory + drm
Bug: 34234561
Change-Id: I8cd6bbc35165c5a595538c0c17306549b01ba8a2
/system/libhidl/base/include/hidl/HidlSupport.h
9bc35c40a958afcc5711c5c4b306ddc7b68974b0 13-Oct-2017 Howard Chen <howardsoc@google.com> Add HidlMemory

HidlMemory is a wrapper class to support sp<> for hidl_memory. It
also provides a factory method to create an instance of the 'ashmem'
hidl_memory from a opened file descriptor. The number of factory
methods can be increase to support other type of hidl_memory without
break the ABI.

Change-Id: I18176aecdde1c5c1e10582a4a2e87fe466730e17
Bug: 67758915
Test: with the master branch on the Pixel phone.
/system/libhidl/base/include/hidl/HidlSupport.h
aa661fc957c8d3acbc0abd409f5e4a16a65ce3b1 06-Oct-2017 Steven Moreland <smoreland@google.com> Remove flaky test and clarify documentation.

Resize doesn't set primitive types to zero.

Test: hidl's run_all_device_tests.sh
Change-Id: I0b7031bc563e3201815ac238ea5a375602393773
/system/libhidl/base/include/hidl/HidlSupport.h
96e9de049f4dd2ee7d02eaf9a662e286964c2039 29-Sep-2017 Steven Moreland <smoreland@google.com> Add size constructor to hidl_vec.

This pattern is everywhere:
hidl_vec<...> x;
x.resize(3);

It doesn't look very pretty.

Test: libhidl_test
Change-Id: I2776e81afbe6f12e34cfb31a2f40d539554f0cbc
/system/libhidl/base/include/hidl/HidlSupport.h
fd9ecee04372ce0d47d4df7a05a56e13d9c0e1b4 28-Sep-2017 Stephen Hines <srhines@google.com> Switch from NULL -> nullptr.

Test: Builds.
Change-Id: Idcdd337e6576d612aa6c18a431b3dfe0215efde0
/system/libhidl/base/include/hidl/HidlSupport.h
9ce2b882d6f708a815bc66397a686568b486a746 02-Aug-2017 Chih-Hung Hsieh <chh@google.com> Merge "Suppress misc-macro-parentheses warnings in system/libhidl."
am: 22673d29e2

Change-Id: I2afdd5013cd5941ca29a9e71428d2f102b1c814d
b30feca598b0134659240958a692dcaa6fd6739c 02-Aug-2017 Chih-Hung Hsieh <chh@google.com> Suppress misc-macro-parentheses warnings in system/libhidl.

Bug: 28705665
Test: make with WITH_TIDY=1 WITH_TIDY_CHECKS=-*,misc-macro-* \
WITH_TIDY_FLAGS=-header-filter=system/libhidl/.*

Change-Id: I52a5bc5ff35fdf50184543ac9033b194444e0806
/system/libhidl/base/include/hidl/HidlSupport.h
2801531033fb26d2eb9945fbe0ccc409fb582635 20-Jul-2017 Tomasz Wasilczyk <twasilczyk@google.com> Add range constructor to hidl_vec.
am: a9f6073068

Change-Id: Ie5c350e84ea9faf0b57a1b91d291c4bdd47e4e6c
a9f60730682d198419a310ca19ecb5d4fc9f2fd6 30-Jun-2017 Tomasz Wasilczyk <twasilczyk@google.com> Add range constructor to hidl_vec.

Bug: b/36864090
Test: Unit test
Test: a device boots
Test: marlin boots and completes unit test
Change-Id: I7d37f75ec6c8ba0252c3c60afd515eff87dfc4dd
/system/libhidl/base/include/hidl/HidlSupport.h
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
eb0c337c4fdfe35b12039036555c2760a7c60884 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

(cherry picked from commit 0c84ab4192f9b0b03b9840b85fc430afa17f55f1)

Merged-In: I6ba76522ef65aa211bc156144990ad8b7495b051
Change-Id: I6ba76522ef65aa211bc156144990ad8b7495b051
/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
330e3e21400eb263b9ac45d933fba48360216794 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

Merged-In: I05d40e2bf2a467c75e51a133b4799c0fd7fa74cb
Change-Id: I05d40e2bf2a467c75e51a133b4799c0fd7fa74cb
(cherry picked from commit c601c5f21808844e614015eabc03e9c71f5aae42)
/system/libhidl/base/include/hidl/HidlSupport.h
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
6b9cc69839de9d4180608a0b5f8e68d363178ec8 30-Mar-2017 Andreas Huber <andih@google.com> Ensure proper alignment of hidl_handle's fields.

Bug: 33846034
Test: make
Change-Id: I5107e1110743995e083922fa699bcfab7ae57efd
/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