Home
last modified time | relevance | path

Searched refs:JSONObject (Results 1 – 7 of 7) sorted by relevance

/device/google/contexthub/util/common/
DJSONObject.h32 struct JSONObject;
58 bool getObject(sp<JSONObject> *value) const;
65 void setObject(const sp<JSONObject> &obj);
139 bool getObject(KEY key, sp<JSONObject> *obj) const { in getObject()
160 struct JSONObject : public JSONBase<const char *> { struct
161 JSONObject();
190 void setObject(const char *key, const sp<JSONObject> &obj) { in setObject() argument
203 virtual ~JSONObject(); argument
211 DISALLOW_EVIL_CONSTRUCTORS(JSONObject);
245 void addObject(const sp<JSONObject> &obj) { in addObject()
DJSONObject.cpp109 sp<JSONObject> obj = new JSONObject; in Parse()
440 bool JSONValue::getObject(sp<JSONObject> *value) const { in getObject()
445 *value = static_cast<JSONObject *>(mValue.mObjectOrArray); in getObject()
486 void JSONValue::setObject(const sp<JSONObject> &obj) { in setObject()
634 sp<JSONObject> obj; in Parse()
650 val.setObject((JSONObject *)this); in toString()
660 JSONObject::JSONObject() {} in JSONObject() function in android::JSONObject
661 JSONObject::~JSONObject() {} in ~JSONObject()
663 bool JSONObject::isObject() const { in isObject()
667 bool JSONObject::getValue(const char *key, JSONValue *value) const { in getValue()
[all …]
DAndroid.bp19 "JSONObject.cpp",
/device/google/contexthub/util/nanotool/
Dcalibrationfile.h37 const sp<JSONObject> GetJSONObject() const;
54 sp<JSONObject> json_root_;
Dcalibrationfile.cpp69 json_root_ = reinterpret_cast<JSONObject*>(json.get()); in Initialize()
78 json_root_ = new JSONObject(); in Initialize()
84 const sp<JSONObject> CalibrationFile::GetJSONObject() const { in GetJSONObject()
Dandroidcontexthub.cpp67 sp<JSONObject> json, std::vector<uint8_t>& bytes) { in CopyInt32Array()
82 sp<JSONObject> json, std::vector<uint8_t>& bytes) { in CopyFloatArray()
/device/google/contexthub/sensorhal/
Dhubconnection.cpp306 static sp<JSONObject> readSettings(File *file) { in readSettings()
310 sp<JSONObject> root; in readSettings()
322 root = (JSONObject *)in.get(); in readSettings()
327 root = new JSONObject; in readSettings()
334 const sp<JSONObject> &settings, const char *key, int32_t *out, in getCalibrationInt32()
353 const sp<JSONObject> &settings, const char *key, float out[3]) { in getCalibrationFloat()
370 static std::vector<int32_t> getInt32Setting(const sp<JSONObject> &settings, const char *key) { in getInt32Setting()
383 static std::vector<float> getFloatSetting(const sp<JSONObject> &settings, const char *key) { in getFloatSetting()
396 static void loadSensorSettings(sp<JSONObject>* settings, in loadSensorSettings()
397 sp<JSONObject>* saved_settings) { in loadSensorSettings()
[all …]