Home
last modified time | relevance | path

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

/frameworks/base/packages/StatementService/src/com/android/statementservice/database/
DConverters.kt62 val jsonObject = JSONObject() in <lambda>() constant
63 jsonObject.put(ACTION_NAME, group.action) in <lambda>()
68 jsonObject.put(FILTERS_NAME, filters) in <lambda>()
69 return jsonObject in <lambda>()
73 val jsonObject = JSONObject() in <lambda>() constant
74 jsonObject.put(URI_PART_NAME, filter.uriPart) in <lambda>()
75 jsonObject.put(PATTERN_TYPE_NAME, filter.patternType) in <lambda>()
76 jsonObject.put(FILTER_NAME, filter.filter) in <lambda>()
77 return jsonObject in <lambda>()
81 val jsonObject = JSONObject() in <lambda>() constant
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/default/
DJsonWebKey.cpp132 bool JsonWebKey::findKey(const String8& jsonObject, String8* keyId, in findKey() argument
138 if (jsonObject.find(kKeyTypeTag) >= 0) { in findKey()
144 if (jsonObject.find(kKeyIdTag) >= 0) { in findKey()
148 if (jsonObject.find(kKeyTag) >= 0) { in findKey()
170 bool JsonWebKey::isJsonWebKeySet(const String8& jsonObject) const { in isJsonWebKeySet()
171 if (jsonObject.find(kKeysTag) == -1) { in isJsonWebKeySet()
183 bool JsonWebKey::parseJsonObject(const String8& jsonObject, in parseJsonObject() argument
189 jsonObject.c_str(), jsonObject.size(), NULL, 0); in parseJsonObject()
200 int status = jsmn_parse(&parser, jsonObject.c_str(), in parseJsonObject()
201 jsonObject.size(), mJsmnTokens.editArray(), numTokens); in parseJsonObject()
[all …]
/frameworks/av/drm/mediacas/plugins/clearkey/
DJsonAssetLoader.cpp86 bool JsonAssetLoader::findKey(const String8& jsonObject, Asset *asset) { in findKey() argument
90 if (jsonObject.find(kIdTag) < 0) { in findKey()
97 if (jsonObject.find(kNameTag) < 0) { in findKey()
104 if (jsonObject.find(kLowerCaseOgranizationNameTag) < 0) { in findKey()
111 if (jsonObject.find(kCasTypeTag) < 0) { in findKey()
143 bool JsonAssetLoader::parseJsonObject(const String8& jsonObject, in parseJsonObject() argument
149 jsonObject.c_str(), jsonObject.size(), NULL, 0); in parseJsonObject()
160 int status = jsmn_parse(&parser, jsonObject.c_str(), in parseJsonObject()
161 jsonObject.size(), mJsmnTokens.editArray(), numTokens); in parseJsonObject()
172 pjs = jsonObject.c_str() + mJsmnTokens[j].start; in parseJsonObject()
DJsonAssetLoader.h47 bool findKey(const String8& jsonObject, Asset *asset);
51 const String8& jsonObject, Vector<String8>* tokens);
/frameworks/base/services/core/java/com/android/server/biometrics/
DAuthenticationStatsPersister.java221 private String getValue(JSONObject jsonObject, String key) throws JSONException { in getValue() argument
222 return jsonObject.has(key) ? jsonObject.getString(key) : ""; in getValue()
225 private int getIntValue(JSONObject jsonObject, String key) throws JSONException { in getIntValue() argument
226 return getIntValue(jsonObject, key, 0 /* defaultValue */); in getIntValue()
229 private int getIntValue(JSONObject jsonObject, String key, int defaultValue) in getIntValue() argument
231 return jsonObject.has(key) ? jsonObject.getInt(key) : defaultValue; in getIntValue()
234 private long getLongValue(JSONObject jsonObject, String key) throws JSONException { in getLongValue() argument
235 return getLongValue(jsonObject, key, 0 /* defaultValue */); in getLongValue()
238 private long getLongValue(JSONObject jsonObject, String key, long defaultValue) in getLongValue() argument
240 return jsonObject.has(key) ? jsonObject.getLong(key) : defaultValue; in getLongValue()
/frameworks/av/drm/mediadrm/plugins/clearkey/common/
DJsonWebKey.cpp123 bool JsonWebKey::findKey(const std::string& jsonObject, std::string* keyId, in findKey() argument
128 if (jsonObject.find(kKeyTypeTag) != std::string::npos) { in findKey()
133 if (jsonObject.find(kKeyIdTag) != std::string::npos) { in findKey()
137 if (jsonObject.find(kKeyTag) != std::string::npos) { in findKey()
158 bool JsonWebKey::isJsonWebKeySet(const std::string& jsonObject) const { in isJsonWebKeySet()
159 if (jsonObject.find(kKeysTag) == std::string::npos) { in isJsonWebKeySet()
171 bool JsonWebKey::parseJsonObject(const std::string& jsonObject, std::vector<std::string>* tokens) { in parseJsonObject() argument
175 int numTokens = jsmn_parse(&parser, jsonObject.c_str(), jsonObject.size(), nullptr, 0); in parseJsonObject()
186 int status = jsmn_parse(&parser, jsonObject.c_str(), jsonObject.size(), mJsmnTokens.data(), in parseJsonObject()
197 pjs = jsonObject.c_str() + mJsmnTokens[j].start; in parseJsonObject()
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/
DJsonWebKey.h50 bool findKey(const String8& jsonObject, String8* keyId,
53 bool isJsonWebKeySet(const String8& jsonObject) const;
54 bool parseJsonObject(const String8& jsonObject, Vector<String8>* tokens);
/frameworks/av/drm/mediadrm/plugins/clearkey/common/include/clearkeydrm/
DJsonWebKey.h39 bool findKey(const std::string& jsonObject, std::string* keyId, std::string* encodedKey);
41 bool isJsonWebKeySet(const std::string& jsonObject) const;
42 bool parseJsonObject(const std::string& jsonObject, std::vector<std::string>* tokens);
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayController.java266 private boolean isSeedColorSet(JSONObject jsonObject, WallpaperColors newWallpaperColors) { in isSeedColorSet() argument
271 String sysPaletteColor = (String) jsonObject.opt(OVERLAY_CATEGORY_SYSTEM_PALETTE); in isSeedColorSet()
337 JSONObject jsonObject = (overlayPackageJson == null) ? new JSONObject() in handleWallpaperColors() local
341 String wallpaperPickerColorSource = jsonObject.optString(OVERLAY_COLOR_SOURCE); in handleWallpaperColors()
347 && !isSeedColorSet(jsonObject, wallpaperColors)) { in handleWallpaperColors()
349 if (jsonObject.has(OVERLAY_CATEGORY_ACCENT_COLOR) || jsonObject.has( in handleWallpaperColors()
351 jsonObject.remove(OVERLAY_CATEGORY_DYNAMIC_COLOR); in handleWallpaperColors()
352 jsonObject.remove(OVERLAY_CATEGORY_ACCENT_COLOR); in handleWallpaperColors()
353 jsonObject.remove(OVERLAY_CATEGORY_SYSTEM_PALETTE); in handleWallpaperColors()
354 jsonObject.remove(OVERLAY_COLOR_INDEX); in handleWallpaperColors()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/preview/
DKeyguardPreviewRenderer.kt575 val jsonObject = JSONObject(overlayPackageJson) in <lambda>() constant
576 Style.valueOf(jsonObject.getString(OVERLAY_CATEGORY_THEME_STYLE)) in <lambda>()
/frameworks/base/services/core/java/com/android/server/media/quality/
DMediaQualityUtils.java1228 JSONObject jsonObject = null; in jsonToPersistableBundle() local
1230 jsonObject = new JSONObject(jsonString); in jsonToPersistableBundle()
1232 Iterator<String> keys = jsonObject.keys(); in jsonToPersistableBundle()
1235 Object value = jsonObject.get(key); in jsonToPersistableBundle()