Searched refs:jsonArray (Results 1 – 5 of 5) sorted by relevance
391 JSONArray jsonArray = new JSONArray(jsonString); in addDailyRotation() local392 jsonArray.put(timestamp); in addDailyRotation()395 … .putString(WallpaperPreferenceKeys.KEY_DAILY_ROTATION_TIMESTAMPS, jsonArray.toString()) in addDailyRotation()408 JSONArray jsonArray = new JSONArray(jsonString); in getLastDailyRotationTimestamp() local410 if (jsonArray.length() == 0) { in getLastDailyRotationTimestamp()414 return jsonArray.getLong(jsonArray.length() - 1); in getLastDailyRotationTimestamp()442 JSONArray jsonArray = new JSONArray(jsonString); in getDailyRotationsInLastWeek() local446 for (int i = 0; i < jsonArray.length(); i++) { in getDailyRotationsInLastWeek()447 long existingTimestamp = jsonArray.getLong(i); in getDailyRotationsInLastWeek()453 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()
434 JSONArray jsonArray = jsonObject.getJSONArray("lifetimeWriteInfo"); in loadLifetimeWrites() local437 for (int i = 0; i < jsonArray.length(); ++i) { in loadLifetimeWrites()438 result.add(new LifetimeWriteInfo(jsonArray.getJSONObject(i))); in loadLifetimeWrites()
689 JSONArray jsonArray = new JSONArray(jsonString); in addRandomDataToJson() local691 for (int i = 0; i < jsonArray.length(); ++i) { in addRandomDataToJson()692 JSONObject jsonObject = jsonArray.getJSONObject(i); in addRandomDataToJson()