Home
last modified time | relevance | path

Searched refs:jsonObject (Results 1 – 4 of 4) sorted by relevance

/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/
H A DAuthenticationStatsPersister.java192 private String getValue(JSONObject jsonObject, String key) throws JSONException { in getValue() argument
193 return jsonObject.has(key) ? jsonObject.getString(key) : ""; in getValue()
196 private int getIntValue(JSONObject jsonObject, String key) throws JSONException { in getIntValue() argument
197 return getIntValue(jsonObject, key, 0 /* defaultValue */); in getIntValue()
200 private int getIntValue(JSONObject jsonObject, String key, int defaultValue) in getIntValue() argument
202 return jsonObject.has(key) ? jsonObject.getInt(key) : defaultValue; in getIntValue()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
H A DThemeOverlayController.java316 JSONObject jsonObject = (overlayPackageJson == null) ? new JSONObject() in handleWallpaperColors() local
326 && !isSeedColorSet(jsonObject, wallpaperColors)) { in handleWallpaperColors()
328 if (jsonObject.has(OVERLAY_CATEGORY_ACCENT_COLOR) || jsonObject.has( in handleWallpaperColors()
330 jsonObject.remove(OVERLAY_CATEGORY_DYNAMIC_COLOR); in handleWallpaperColors()
331 jsonObject.remove(OVERLAY_CATEGORY_ACCENT_COLOR); in handleWallpaperColors()
332 jsonObject.remove(OVERLAY_CATEGORY_SYSTEM_PALETTE); in handleWallpaperColors()
333 jsonObject.remove(OVERLAY_COLOR_INDEX); in handleWallpaperColors()
337 jsonObject.put(OVERLAY_COLOR_BOTH, isDestinationBoth ? "1" : "0"); in handleWallpaperColors()
339 jsonObject.put(OVERLAY_COLOR_SOURCE, in handleWallpaperColors()
342 jsonObject.put(TIMESTAMP_FIELD, System.currentTimeMillis()); in handleWallpaperColors()
[all …]
/aosp14/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
H A DKeyRevocationList.java101 JSONObject jsonObject = new JSONObject(jsonString); in fromJsonString() local
104 if (jsonObject.has(JSON_ENTRIES)) { in fromJsonString()
105 JSONArray entries = jsonObject.getJSONArray(JSON_ENTRIES); in fromJsonString()
/aosp14/frameworks/base/apct-tests/perftests/rubidium/src/android/rubidium/js/
H A DJSScriptEnginePerfTests.java478 JSONObject jsonObject = new JSONObject(res); in runParameterizedRubidiumGenerateBid() local
479 long webviewExecTime = jsonObject.getLong("duration"); in runParameterizedRubidiumGenerateBid()
536 JSONObject jsonObject = new JSONObject(res); in runParameterizedRubidiumScoreAd() local
537 long webviewExecTime = jsonObject.getLong("duration"); in runParameterizedRubidiumScoreAd()