Home
last modified time | relevance | path

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

/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.string(), jsonObject.size(), NULL, 0); in parseJsonObject()
200 int status = jsmn_parse(&parser, jsonObject.string(), 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.string(), jsonObject.size(), NULL, 0); in parseJsonObject()
160 int status = jsmn_parse(&parser, jsonObject.string(), in parseJsonObject()
161 jsonObject.size(), mJsmnTokens.editArray(), numTokens); in parseJsonObject()
172 pjs = jsonObject.string() + mJsmnTokens[j].start; in parseJsonObject()
DJsonAssetLoader.h47 bool findKey(const String8& jsonObject, Asset *asset);
51 const String8& jsonObject, Vector<String8>* tokens);
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DJsonWebKey.cpp136 bool JsonWebKey::findKey(const std::string& jsonObject, std::string* keyId, in findKey() argument
142 if (jsonObject.find(kKeyTypeTag) != std::string::npos) { in findKey()
148 if (jsonObject.find(kKeyIdTag) != std::string::npos) { in findKey()
152 if (jsonObject.find(kKeyTag) != std::string::npos) { in findKey()
174 bool JsonWebKey::isJsonWebKeySet(const std::string& jsonObject) const { in isJsonWebKeySet()
175 if (jsonObject.find(kKeysTag) == std::string::npos) { in isJsonWebKeySet()
187 bool JsonWebKey::parseJsonObject(const std::string& jsonObject, in parseJsonObject() argument
193 jsonObject.c_str(), jsonObject.size(), nullptr, 0); in parseJsonObject()
204 int status = jsmn_parse(&parser, jsonObject.c_str(), in parseJsonObject()
205 jsonObject.size(), mJsmnTokens.data(), numTokens); in parseJsonObject()
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/common/
DJsonWebKey.cpp126 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/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/av/drm/mediadrm/plugins/clearkey/hidl/include/
DJsonWebKey.h44 bool findKey(const std::string& jsonObject, std::string* keyId,
47 bool isJsonWebKeySet(const std::string& jsonObject) const;
48 bool parseJsonObject(const std::string& jsonObject,
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayController.java222 private boolean isSeedColorSet(JSONObject jsonObject, WallpaperColors newWallpaperColors) { in isSeedColorSet() argument
227 String sysPaletteColor = (String) jsonObject.opt(OVERLAY_CATEGORY_SYSTEM_PALETTE); in isSeedColorSet()
293 JSONObject jsonObject = (overlayPackageJson == null) ? new JSONObject() in handleWallpaperColors() local
297 String wallpaperPickerColorSource = jsonObject.optString(OVERLAY_COLOR_SOURCE); in handleWallpaperColors()
303 && !isSeedColorSet(jsonObject, wallpaperColors)) { in handleWallpaperColors()
305 if (jsonObject.has(OVERLAY_CATEGORY_ACCENT_COLOR) || jsonObject.has( in handleWallpaperColors()
307 jsonObject.remove(OVERLAY_CATEGORY_ACCENT_COLOR); in handleWallpaperColors()
308 jsonObject.remove(OVERLAY_CATEGORY_SYSTEM_PALETTE); in handleWallpaperColors()
309 jsonObject.remove(OVERLAY_COLOR_INDEX); in handleWallpaperColors()
313 jsonObject.put(OVERLAY_COLOR_BOTH, isDestinationBoth ? "1" : "0"); in handleWallpaperColors()
[all …]
/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()