Searched refs:jsonObject (Results 1 – 8 of 8) sorted by relevance
/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.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/ |
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.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()
|
D | JsonAssetLoader.h | 47 bool findKey(const String8& jsonObject, Asset *asset); 51 const String8& jsonObject, Vector<String8>* tokens);
|
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/ |
D | JsonWebKey.cpp | 136 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/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/hidl/include/ |
D | JsonWebKey.h | 44 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/ |
D | ThemeOverlayController.java | 208 JSONObject jsonObject = (overlayPackageJson == null) ? new JSONObject() in handleWallpaperColors() local 210 if (!COLOR_SOURCE_PRESET.equals(jsonObject.optString(OVERLAY_COLOR_SOURCE)) in handleWallpaperColors() 213 if (jsonObject.has(OVERLAY_CATEGORY_ACCENT_COLOR) || jsonObject.has( in handleWallpaperColors() 215 jsonObject.remove(OVERLAY_CATEGORY_ACCENT_COLOR); in handleWallpaperColors() 216 jsonObject.remove(OVERLAY_CATEGORY_SYSTEM_PALETTE); in handleWallpaperColors() 217 jsonObject.remove(OVERLAY_COLOR_INDEX); in handleWallpaperColors() 221 jsonObject.put(OVERLAY_COLOR_BOTH, isDestinationBoth ? "1" : "0"); in handleWallpaperColors() 223 jsonObject.put(OVERLAY_COLOR_SOURCE, in handleWallpaperColors() 226 jsonObject.put(TIMESTAMP_FIELD, System.currentTimeMillis()); in handleWallpaperColors() 229 + overlayPackageJson + " to " + jsonObject.toString()); 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()
|