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
|
@ -16,33 +16,12 @@
|
|||
#include <android-base/properties.h>
|
||||
#include <dump/pixel_dump.h>
|
||||
|
||||
#include "android_property_manager_impl.h"
|
||||
#include "dumper.h"
|
||||
#include "modem_log_dumper.h"
|
||||
|
||||
namespace pixel_modem::logging {
|
||||
|
||||
/**
|
||||
* @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 {
|
||||
return android::base::GetBoolProperty(key, default_value);
|
||||
};
|
||||
|
||||
std::string GetProperty(const std::string& key,
|
||||
const std::string& default_value) override {
|
||||
return android::base::GetProperty(key, default_value);
|
||||
};
|
||||
int GetIntProperty(const std::string& key, int default_value) override {
|
||||
return android::base::GetIntProperty(key, default_value);
|
||||
};
|
||||
void SetProperty(const std::string& key, const std::string& value) override {
|
||||
android::base::SetProperty(key, value);
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Implementation of Dumper that directly forwards to their corresponding
|
||||
* dumpstate methods.
|
||||
|
@ -62,8 +41,7 @@ class DumperImpl : public Dumper {
|
|||
|
||||
int main() {
|
||||
pixel_modem::logging::DumperImpl dumper_impl;
|
||||
pixel_modem::logging::AndroidPropertyManagerImpl
|
||||
android_property_manager_impl;
|
||||
pixel_modem::AndroidPropertyManagerImpl android_property_manager_impl;
|
||||
pixel_modem::logging::ModemLogDumper modem_log_dumper(
|
||||
dumper_impl, android_property_manager_impl);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue