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.java547 JSONArray jsonArray = new JSONArray(jsonString); in addDailyRotation() local
548 jsonArray.put(timestamp); in addDailyRotation()
552 jsonArray.toString()) in addDailyRotation()
565 JSONArray jsonArray = new JSONArray(jsonString); in getLastDailyRotationTimestamp() local
567 if (jsonArray.length() == 0) { in getLastDailyRotationTimestamp()
571 return jsonArray.getLong(jsonArray.length() - 1); in getLastDailyRotationTimestamp()
599 JSONArray jsonArray = new JSONArray(jsonString); in getDailyRotationsInLastWeek() local
603 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 …]
/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.java462 JSONArray jsonArray = jsonObject.getJSONArray("lifetimeWriteInfo"); in loadLifetimeWrites() local
465 for (int i = 0; i < jsonArray.length(); ++i) { in loadLifetimeWrites()
466 result.add(new LifetimeWriteInfo(jsonArray.getJSONObject(i))); in loadLifetimeWrites()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java773 JSONArray jsonArray = new JSONArray(jsonString); in addRandomDataToJson() local
775 for (int i = 0; i < jsonArray.length(); ++i) { in addRandomDataToJson()
776 JSONObject jsonObject = jsonArray.getJSONObject(i); in addRandomDataToJson()