From 6bc17c03f4b006a411b768fca33269843144542d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Boisnard?= Date: Mon, 25 Feb 2013 15:55:47 +0100 Subject: [PFW] Take into account base offset when accessing value of parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: http://android.intel.com:8080/93671 Reviewed-by: cactus Reviewed-by: Dixon, CharlesX Tested-by: Dixon, CharlesX Reviewed-by: buildbot Tested-by: buildbot --- parameter/BitParameterBlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parameter/BitParameterBlock.cpp') diff --git a/parameter/BitParameterBlock.cpp b/parameter/BitParameterBlock.cpp index df75b4b..0971162 100644 --- a/parameter/BitParameterBlock.cpp +++ b/parameter/BitParameterBlock.cpp @@ -60,6 +60,6 @@ void CBitParameterBlock::setDefaultValues(CParameterAccessContext& parameterAcce CParameterBlackboard* pBlackboard = parameterAccessContext.getParameterBlackboard(); // Beware this code works on little endian architectures only! - pBlackboard->writeInteger(&uiDefaultValue, getSize(), getOffset(), parameterAccessContext.isBigEndianSubsystem()); + pBlackboard->writeInteger(&uiDefaultValue, getSize(), getOffset() - parameterAccessContext.getBaseOffset(), parameterAccessContext.isBigEndianSubsystem()); } -- cgit v1.1