Lines Matching refs:JSONObject
306 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()
407 *settings = new JSONObject; in loadSensorSettings()
416 *saved_settings = new JSONObject; in loadSensorSettings()
424 sp<JSONObject> settingsObject = new JSONObject; in saveSensorSettings()
1377 sp<JSONObject> settings; in sendCalibrationOffsets()
1378 sp<JSONObject> saved_settings; in sendCalibrationOffsets()