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>
Wed, 30 Aug 2017 22:37:27 +0000 (15:37 -0700)
commit2e6b9cb56320a86f0c33da890f667e5c76c8285d
treee357112da6367c78fdd57eacd7ff59e25e29a732
parent6bf1cff1dd8cad0d2c6eb4f2cef28a97270e46b2
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.

Test: m
Test: frameworks/base/core/tests/systemproperties/run_core_systemproperties_test.sh --rebuild
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