[PFW] Take into account base offset when accessing value of parameters

BZ: 88357

This patch aims to offer the possibility of accessing the value of
parameters from a Configuration blackboard instead of Main blackboard.
The read/write operation is now relative to the base offset of the
ancestor element associated to the Configuration.
The base offset is stored in the ParameterAccessContext.

Change-Id: I158df63d2ef3bd8cbacb84b7d2f51723ed1074f5
Signed-off-by: Frédéric Boisnard <fredericx.boisnard@intel.com>
Reviewed-on: http://android.intel.com:8080/93671
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Dixon, CharlesX <charlesx.dixon@intel.com>
Tested-by: Dixon, CharlesX <charlesx.dixon@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
diff --git a/parameter/ArrayParameter.cpp b/parameter/ArrayParameter.cpp
index 6a1a601..149dac2 100644
--- a/parameter/ArrayParameter.cpp
+++ b/parameter/ArrayParameter.cpp
@@ -108,7 +108,7 @@
         }
 
         // Actually set values
-        if (!setValues(uiIndex, 0, strValue, parameterAccessContext)) {
+        if (!setValues(uiIndex, parameterAccessContext.getBaseOffset(), strValue, parameterAccessContext)) {
 
             return false;
         }
@@ -126,7 +126,7 @@
         if (uiIndex == (uint32_t)-1) {
 
             // Whole array requested
-            getValues(0, strValue, parameterAccessContext);
+            getValues(parameterAccessContext.getBaseOffset(), strValue, parameterAccessContext);
 
         } else {
             // Scalar requested