Home
last modified time | relevance | path

Searched refs:CalibrationFile (Results 1 – 3 of 3) sorted by relevance

/device/google/contexthub/util/nanotool/
Dcalibrationfile.cpp26 std::shared_ptr<CalibrationFile> CalibrationFile::instance_;
28 std::shared_ptr<CalibrationFile> CalibrationFile::Instance() { in Instance()
29 if (!CalibrationFile::instance_) { in Instance()
30 auto inst = std::shared_ptr<CalibrationFile>(new CalibrationFile()); in Instance()
32 CalibrationFile::instance_ = inst; in Instance()
36 return CalibrationFile::instance_; in Instance()
39 bool CalibrationFile::Initialize() { in Initialize()
84 const sp<JSONObject> CalibrationFile::GetJSONObject() const { in GetJSONObject()
88 bool CalibrationFile::SetSingleAxis(const char *key, int32_t value) { in SetSingleAxis()
93 bool CalibrationFile::SetSingleAxis(const char *key, float value) { in SetSingleAxis()
[all …]
Dcalibrationfile.h32 class CalibrationFile : public NonCopyable {
35 static std::shared_ptr<CalibrationFile> Instance();
48 CalibrationFile() : file_(nullptr), json_root_(nullptr) {} in CalibrationFile() function
50 static std::shared_ptr<CalibrationFile> instance_;
Dandroidcontexthub.cpp99 std::shared_ptr<CalibrationFile> cal_file = CalibrationFile::Instance(); in GetCalibrationBytes()
308 auto cal_file = CalibrationFile::Instance(); in SetCalibration()
320 auto cal_file = CalibrationFile::Instance(); in SetCalibration()
332 auto cal_file = CalibrationFile::Instance(); in SetCalibration()
344 auto cal_file = CalibrationFile::Instance(); in SetCalibration()
354 auto cal_file = CalibrationFile::Instance(); in SaveCalibration()