/frameworks/av/drm/mediadrm/plugins/clearkey/default/ |
D | JsonWebKey.cpp | 132 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/ |
D | JsonAssetLoader.cpp | 86 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()
|
D | JsonAssetLoader.h | 47 bool findKey(const String8& jsonObject, Asset *asset); 51 const String8& jsonObject, Vector<String8>* tokens);
|
/frameworks/av/drm/mediadrm/plugins/clearkey/common/ |
D | JsonWebKey.cpp | 126 bool JsonWebKey::findKey(const std::string& jsonObject, std::string* keyId, in findKey() argument 131 if (jsonObject.find(kKeyTypeTag) != std::string::npos) { in findKey() 136 if (jsonObject.find(kKeyIdTag) != std::string::npos) { in findKey() 140 if (jsonObject.find(kKeyTag) != std::string::npos) { in findKey() 161 bool JsonWebKey::isJsonWebKeySet(const std::string& jsonObject) const { in isJsonWebKeySet() 162 if (jsonObject.find(kKeysTag) == std::string::npos) { in isJsonWebKeySet() 174 bool JsonWebKey::parseJsonObject(const std::string& jsonObject, std::vector<std::string>* tokens) { in parseJsonObject() argument 178 int numTokens = jsmn_parse(&parser, jsonObject.c_str(), jsonObject.size(), nullptr, 0); in parseJsonObject() 189 int status = jsmn_parse(&parser, jsonObject.c_str(), jsonObject.size(), mJsmnTokens.data(), in parseJsonObject() 200 pjs = jsonObject.c_str() + mJsmnTokens[j].start; in parseJsonObject()
|
/frameworks/base/services/core/java/com/android/server/biometrics/ |
D | AuthenticationStatsPersister.java | 192 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()
|
/frameworks/av/drm/mediadrm/plugins/clearkey/default/include/ |
D | JsonWebKey.h | 50 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/ |
D | JsonWebKey.h | 39 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/SystemUI/src/com/android/systemui/theme/ |
D | ThemeOverlayController.java | 248 private boolean isSeedColorSet(JSONObject jsonObject, WallpaperColors newWallpaperColors) { in isSeedColorSet() argument 253 String sysPaletteColor = (String) jsonObject.opt(OVERLAY_CATEGORY_SYSTEM_PALETTE); in isSeedColorSet() 319 JSONObject jsonObject = (overlayPackageJson == null) ? new JSONObject() in handleWallpaperColors() local 323 String wallpaperPickerColorSource = jsonObject.optString(OVERLAY_COLOR_SOURCE); in handleWallpaperColors() 329 && !isSeedColorSet(jsonObject, wallpaperColors)) { in handleWallpaperColors() 331 if (jsonObject.has(OVERLAY_CATEGORY_ACCENT_COLOR) || jsonObject.has( in handleWallpaperColors() 333 jsonObject.remove(OVERLAY_CATEGORY_DYNAMIC_COLOR); in handleWallpaperColors() 334 jsonObject.remove(OVERLAY_CATEGORY_ACCENT_COLOR); in handleWallpaperColors() 335 jsonObject.remove(OVERLAY_CATEGORY_SYSTEM_PALETTE); in handleWallpaperColors() 336 jsonObject.remove(OVERLAY_COLOR_INDEX); in handleWallpaperColors() [all …]
|
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/ |
D | KeyRevocationList.java | 101 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/keyguard/ui/preview/ |
D | KeyguardPreviewRenderer.kt | 690 val jsonObject = JSONObject(overlayPackageJson) in <lambda>() constant 691 Style.valueOf(jsonObject.getString(OVERLAY_CATEGORY_THEME_STYLE)) in <lambda>()
|