Searched refs:jsonArray (Results 1 – 8 of 8) sorted by relevance
115 private static void copyValuesArray(VehiclePropValueBuilder builder, JSONArray jsonArray, in copyValuesArray() argument117 if (jsonArray == null) { in copyValuesArray()120 for (int i = 0; i < jsonArray.length(); i++) { in copyValuesArray()122 builder.addIntValue(jsonArray.getInt(i)); in copyValuesArray()125 builder.setInt64Value(jsonArray.getLong(i)); in copyValuesArray()127 builder.addFloatValue((float) jsonArray.getDouble(i)); in copyValuesArray()
178 void JsonFakeValueGenerator::copyJsonArray(hidl_vec<T>& dest, const Json::Value& jsonArray) { in copyJsonArray() argument179 dest.resize(jsonArray.size()); in copyJsonArray()180 for (Json::Value::ArrayIndex i = 0; i < jsonArray.size(); i++) { in copyJsonArray()182 dest[i] = jsonArray[i].asInt(); in copyJsonArray()184 dest[i] = jsonArray[i].asInt64(); in copyJsonArray()186 dest[i] = jsonArray[i].asFloat(); in copyJsonArray()
58 void copyJsonArray(hidl_vec<T>& dest, const Json::Value& jsonArray);
547 JSONArray jsonArray = new JSONArray(jsonString); in addDailyRotation() local548 jsonArray.put(timestamp); in addDailyRotation()552 jsonArray.toString()) in addDailyRotation()565 JSONArray jsonArray = new JSONArray(jsonString); in getLastDailyRotationTimestamp() local567 if (jsonArray.length() == 0) { in getLastDailyRotationTimestamp()571 return jsonArray.getLong(jsonArray.length() - 1); in getLastDailyRotationTimestamp()603 for (int i = 0; i < jsonArray.length(); i++) { in getDailyRotationsInLastWeek()610 jsonArray = new JSONArray(timestamps); in getDailyRotationsInLastWeek()613 jsonArray.toString()) in getDailyRotationsInLastWeek()655 for (int i = 0; i < jsonArray.length(); i++) { in getDailyRotationsPreviousDay()[all …]
112 private static @NonNull List<Integer> toIntList(@NonNull JSONArray jsonArray) in toIntList() argument115 for (int i = 0; i < jsonArray.length(); ++i) { in toIntList()116 ret.add(jsonArray.getInt(i)); in toIntList()126 JSONArray jsonArray = new JSONArray(); in fromIntList() local128 jsonArray.put(list.get(i)); in fromIntList()131 return jsonArray; in fromIntList()136 JSONArray jsonArray = new JSONArray(); in convertToJsonArray() local142 jsonArray.put(jo); in convertToJsonArray()145 return jsonArray; in convertToJsonArray()
231 JSONArray jsonArray = (JSONArray) object; in dumpJson() local232 for (int i = 0; i < jsonArray.length(); ++i) { in dumpJson()233 dumpJson(null, indent + " ", jsonArray.get(i)); in dumpJson()
462 JSONArray jsonArray = jsonObject.getJSONArray("lifetimeWriteInfo"); in loadLifetimeWrites() local465 for (int i = 0; i < jsonArray.length(); ++i) { in loadLifetimeWrites()466 result.add(new LifetimeWriteInfo(jsonArray.getJSONObject(i))); in loadLifetimeWrites()
773 JSONArray jsonArray = new JSONArray(jsonString); in addRandomDataToJson() local775 for (int i = 0; i < jsonArray.length(); ++i) { in addRandomDataToJson()776 JSONObject jsonObject = jsonArray.getJSONObject(i); in addRandomDataToJson()