Home
last modified time | relevance | path

Searched refs:jsonArray (Results 1 – 5 of 5) sorted by relevance

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPreferences.java391 JSONArray jsonArray = new JSONArray(jsonString); in addDailyRotation() local
392 jsonArray.put(timestamp); in addDailyRotation()
395 … .putString(WallpaperPreferenceKeys.KEY_DAILY_ROTATION_TIMESTAMPS, jsonArray.toString()) in addDailyRotation()
408 JSONArray jsonArray = new JSONArray(jsonString); in getLastDailyRotationTimestamp() local
410 if (jsonArray.length() == 0) { in getLastDailyRotationTimestamp()
414 return jsonArray.getLong(jsonArray.length() - 1); in getLastDailyRotationTimestamp()
442 JSONArray jsonArray = new JSONArray(jsonString); in getDailyRotationsInLastWeek() local
446 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 …]
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DVhalJsonReader.java115 private static void copyValuesArray(VehiclePropValueBuilder builder, JSONArray jsonArray, in copyValuesArray() argument
117 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()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/provider/
DWikidata.java231 JSONArray jsonArray = (JSONArray) object; in dumpJson() local
232 for (int i = 0; i < jsonArray.length(); ++i) { in dumpJson()
233 dumpJson(null, indent + " ", jsonArray.get(i)); in dumpJson()
/packages/services/Car/service/src/com/android/car/
DCarStorageMonitoringService.java434 JSONArray jsonArray = jsonObject.getJSONArray("lifetimeWriteInfo"); in loadLifetimeWrites() local
437 for (int i = 0; i < jsonArray.length(); ++i) { in loadLifetimeWrites()
438 result.add(new LifetimeWriteInfo(jsonArray.getJSONObject(i))); in loadLifetimeWrites()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java689 JSONArray jsonArray = new JSONArray(jsonString); in addRandomDataToJson() local
691 for (int i = 0; i < jsonArray.length(); ++i) { in addRandomDataToJson()
692 JSONObject jsonObject = jsonArray.getJSONObject(i); in addRandomDataToJson()