OSDN Git Service

Frameworks: Clean up SystemProperties
authorAndreas Gampe <agampe@google.com>
Sat, 29 Jul 2017 21:14:39 +0000 (14:14 -0700)
committerAndreas Gampe <agampe@google.com>
Thu, 31 Aug 2017 01:37:48 +0000 (18:37 -0700)
commita90534b551e04f4b65c164a93fe78a0d498fb5a0
treeac1cf9e3ca9ee439cb6d3651ad8df10f668dc7f4
parent33aea8d40e6cc99f7968a6c6605a81a4587b85e7
Frameworks: Clean up SystemProperties

Clean up SystemProperties.java. Add annotations.

Clean up SystemProperties.cpp. Refactor for proper C++11.
Make sure C-string key construction is properly reused. Use
android::base functionality for actual reading.

Fix the test script to refer to the right location. Add some
test coverage.

(cherry picked from commit 2e6b9cb56320a86f0c33da890f667e5c76c8285d)

Test: m
Test: frameworks/base/core/tests/systemproperties/run_core_systemproperties_test.sh --rebuild
Merged-In: I490577370da985f600fb1117e3c818d3f68bad5f
Change-Id: I490577370da985f600fb1117e3c818d3f68bad5f
core/java/android/os/SystemProperties.java
core/jni/android_os_SystemProperties.cpp
core/tests/systemproperties/run_core_systemproperties_test.sh
core/tests/systemproperties/src/android/os/SystemPropertiesTest.java