Searched refs:jsonArray (Results 1 – 5 of 5) sorted by relevance
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()599 JSONArray jsonArray = new JSONArray(jsonString); in getDailyRotationsInLastWeek() local603 for (int i = 0; i < jsonArray.length(); i++) { in getDailyRotationsInLastWeek()604 long existingTimestamp = jsonArray.getLong(i); in getDailyRotationsInLastWeek()610 jsonArray = new JSONArray(timestamps); in getDailyRotationsInLastWeek()[all …]
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()
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()