dump_modemlog: move android_property_manager
android_property_manager is moved to its own folder in the root of the modem folder. This is so that libeomservice proxy has a specific build target to include. Test: build, flash, check modem logs in bugreport Bug: 302435001 Change-Id: Ifc4a0c888717f5c28cf9b642d0b978b495be29d0
This commit is contained in:
parent
3ed60cec02
commit
047f0aca49
11 changed files with 296 additions and 116 deletions
18
modem/android_property_manager/impl/Android.bp
Normal file
18
modem/android_property_manager/impl/Android.bp
Normal file
|
@ -0,0 +1,18 @@
|
|||
package {
|
||||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
modem_android_property_manager_impl_public_deps = [
|
||||
"modem_android_property_manager",
|
||||
]
|
||||
|
||||
cc_library_shared {
|
||||
name: "modem_android_property_manager_impl",
|
||||
export_include_dirs: [ "include" ],
|
||||
srcs: [ "android_property_manager_impl.cpp" ],
|
||||
shared_libs: modem_android_property_manager_impl_public_deps + [
|
||||
"libbase",
|
||||
],
|
||||
export_shared_lib_headers: modem_android_property_manager_impl_public_deps,
|
||||
vendor_available: true,
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
#include "android_property_manager_impl.h"
|
||||
|
||||
#include <android-base/properties.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace pixel_modem {
|
||||
|
||||
bool AndroidPropertyManagerImpl::GetBoolProperty(const std::string& key,
|
||||
bool default_value) {
|
||||
return android::base::GetBoolProperty(key, default_value);
|
||||
}
|
||||
|
||||
std::string AndroidPropertyManagerImpl::GetProperty(
|
||||
const std::string& key, const std::string& default_value) {
|
||||
return android::base::GetProperty(key, default_value);
|
||||
}
|
||||
|
||||
int AndroidPropertyManagerImpl::GetIntProperty(const std::string& key,
|
||||
int default_value) {
|
||||
return android::base::GetIntProperty(key, default_value);
|
||||
}
|
||||
|
||||
bool AndroidPropertyManagerImpl::SetProperty(const std::string& key,
|
||||
const std::string& value) {
|
||||
return android::base::SetProperty(key, value);
|
||||
}
|
||||
|
||||
} // namespace pixel_modem
|
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "android_property_manager.h"
|
||||
|
||||
namespace pixel_modem {
|
||||
|
||||
/**
|
||||
* @brief Implementation of AndroidPropertyManager that directly forwards to
|
||||
* android base methods.
|
||||
*/
|
||||
class AndroidPropertyManagerImpl : public AndroidPropertyManager {
|
||||
public:
|
||||
bool GetBoolProperty(const std::string& key, bool default_value) override;
|
||||
|
||||
std::string GetProperty(const std::string& key,
|
||||
const std::string& default_value) override;
|
||||
|
||||
int GetIntProperty(const std::string& key, int default_value) override;
|
||||
|
||||
bool SetProperty(const std::string& key, const std::string& value) override;
|
||||
};
|
||||
|
||||
} // namespace pixel_modem
|
Loading…
Add table
Add a link
Reference in a new issue