Remove useless cpp's

Those files are empty or almost empty, put remaining stuff in header if
necessary.
Remove using std::XXX from headers

This is a bad practice to have using in headers because it pollutes the
namespace of any user of that header.
Allow the plugin libraries to have empty path for location

If the xml defines the path of plugin library as empty, as a
slash is always added between the folder path and the library name,
the parameter framework will look for the library at the root of the
file system.

This patch prevents from adding the slash except if the path
is not empty.

Issue: GMINL-1748

Change-Id: I14ed5a5ddbef7e0305300479f4fd44bf611f3442
Signed-off-by: Louis Le Gall <louis.le.gall@intel.com>
Remove non ASCII char from log string

Some string printed in log were containing Non-breaking spaces
leading to terminal corruption.

Replace them with normal ASCII spaces.

Signed-off-by: Kevin Rocard <kevinx.rocard@intel.com>
Remove non ASCII char in tree representation

Some comments representing a file tree were
using non ASCII characters.
They are not readable on many editors leading to
incoherent display.

Replace them by plain ASCII characters.

Signed-off-by: Kevin Rocard <kevinx.rocard@intel.com>
Fix a use-after-free issue

In CBinaryStream, a member gets used after it has been destroyed. This was
caught by a static code analyser.

Issue: GMINL-1702
Change-Id: I5c93855f12a8f392e1f4249a15048816fb0f13ce
Signed-off-by: David Wagner <david.wagner@intel.com>
Reviewed-on: https://android.intel.com/278483
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
Reviewed-by: Beatty, Robert M <robert.m.beatty@intel.com>
Tested-by: Beatty, Robert M <robert.m.beatty@intel.com>
hostDomainGenerator: Fix the stripping of the temporary directory name

We didn't properly remove the name of the temporary directory in the generated
files which caused two generation from identical sources result in different
generated files.

We know the full name of the temporary directory so we can simply completly
remove it from the generated file.

Issue: GMINL-1953
Change-Id: I1f360cea249328d30318a24643b524c87424475e
Signed-off-by: David Wagner <david.wagner@intel.com>
Remove flood debug trace on xml generation error

The patch 0b3ff88 "Add log in case of failure"
added system process and network log on failure.
It was planed to be used to debug a tricky socket
error bug.
The bug was since fixed and the traces now only
flood build log, making xml generation
error root cause spotting a lot harder.

Remove extra debug message (netstat and ps invocation)
on error.

Signed-off-by: Kevin Rocard <kevinx.rocard@intel.com>
Fix multi-arch build issue

LOCAL_MODULE_PATH is deprecated and in this case, useless.

Change-Id: I72054e3a5c70c2779d170f07f24734d75fdf48f8
Signed-off-by: Qiming Shi <qiming.shi@intel.com>
Reviewed-on: https://android.intel.com/211229
Reviewed-by: cactus <cactus@intel.com>
Fix pthread compilation flags

According to the sem_init(3) manpage, we must pass the -pthread flag at
link-time when using it.  When using pthread_join(3), this flag must also be
passed at compile time.

The flags were wrong for libremote-processor and were missing for
test-platform_host.

Change-Id: Iec2797592d6d25297c87ceb2983e87e75624a576
Signed-off-by: David Wagner <david.wagner@intel.com>
Android.mk: declare intel as module owner

This seems to be mandatory.

Change-Id: Idba8c7a3ec9e2f05b28ee593d1d15a420a0bd9ed
Signed-off-by: David Wagner <david.wagner@intel.com>
Android: xmlserializer: Update the path to the unicode includes

The unicode library in AOSP's master branch has moved. libxml2 has been updated
and xmlserializer needs to be too.

Signed-off-by: David Wagner <david.wagner@intel.com>
Android: Don't build libparameter with Clang

It does not compile yet; this issue will have to be tackled.

Signed-off-by: David Wagner <david.wagner@intel.com>
Merge pull request #14 from Makohoek/libs_use_std_location

Allow the plugin libraries to have empty path for location
Merge pull request #13 from 01org/OznOg-bis

some C++ cleanup
Merge pull request #20 from 01org/fix-build-issues-bis

Fix build issues bis
Merge pull request #15 from krocard/Remove_non_ascii_char

Remove non ascii char
Merge pull request #17 from Makohoek/static_analysis_fix

Fix a use-after-free issue
Merge pull request #18 from Makohoek/tmp_dir_name_fix

hostDomainGenerator: Fix the stripping of the temporary directory name
Merge pull request #19 from krocard/Remove_useless_log_on_xml_generation_failure

Remove flood debug trace on xml generation error