/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/ |
D | ViewerConfigParserTest.kt | 19 import com.android.json.stream.JsonReader 33 val json = """ in parseMessage() constant 40 val msg = parser.parseMessage(getJSONReader(json)) in parseMessage() 48 val json = """ in parseMessage_reorder() constant 55 val msg = parser.parseMessage(getJSONReader(json)) in parseMessage_reorder() 63 val json = """ in parseMessage_unknownEntry() constant 71 val msg = parser.parseMessage(getJSONReader(json)) in parseMessage_unknownEntry() 79 val json = """ in parseMessage_noMessage() constant 85 parser.parseMessage(getJSONReader(json)) in parseMessage_noMessage() 90 val json = """ in parseMessage_noLevel() constant [all …]
|
D | ViewerConfigBuilderTest.kt | 19 import com.android.json.stream.JsonReader 43 private fun parseConfig(json: String): Map<Int, ViewerConfigParser.ConfigEntry> { in parseConfig() 44 return ViewerConfigParser().parseConfig(JsonReader(StringReader(json))) in parseConfig()
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | RollbackStore.java | 39 import org.json.JSONArray; 40 import org.json.JSONException; 41 import org.json.JSONObject; 175 private static @NonNull SparseIntArray extensionVersionsFromJson(JSONArray json) in extensionVersionsFromJson() argument 177 if (json == null) { in extensionVersionsFromJson() 180 SparseIntArray extensionVersions = new SparseIntArray(json.length()); in extensionVersionsFromJson() 181 for (int i = 0; i < json.length(); i++) { in extensionVersionsFromJson() 182 JSONObject entry = json.getJSONObject(i); in extensionVersionsFromJson() 190 JSONObject json = new JSONObject(); in rollbackInfoToJson() local 191 json.put("rollbackId", rollback.getRollbackId()); in rollbackInfoToJson() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/signedconfig/ |
D | SignedConfigTest.java | 32 import org.json.JSONException; 33 import org.json.JSONObject; 69 JSONObject json = new JSONObject("{\"min_sdk\":2, \"max_sdk\": 3, \"values\": {}}"); in testParsePerSdkConfigSdkMinMax() local 70 SignedConfig.PerSdkConfig config = SignedConfig.parsePerSdkConfig(json, emptySet(), in testParsePerSdkConfigSdkMinMax() 78 JSONObject json = new JSONObject("{\"max_sdk\": 3, \"values\": {}}"); in testParsePerSdkConfigNoMinSdk() local 80 SignedConfig.parsePerSdkConfig(json, emptySet(), emptyMap()); in testParsePerSdkConfigNoMinSdk() 89 JSONObject json = new JSONObject("{\"min_sdk\": 1, \"values\": {}}"); in testParsePerSdkConfigNoMaxSdk() local 91 SignedConfig.parsePerSdkConfig(json, emptySet(), emptyMap()); in testParsePerSdkConfigNoMaxSdk() 100 JSONObject json = new JSONObject("{\"min_sdk\": 1, \"max_sdk\": 3}"); in testParsePerSdkConfigNoValues() local 102 SignedConfig.parsePerSdkConfig(json, emptySet(), emptyMap()); in testParsePerSdkConfigNoValues() [all …]
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | DiskStatsFileLogger.java | 27 import org.json.JSONArray; 28 import org.json.JSONException; 29 import org.json.JSONObject; 98 JSONObject json = new JSONObject(); in getJsonRepresentation() local 100 json.put(LAST_QUERY_TIMESTAMP_KEY, System.currentTimeMillis()); in getJsonRepresentation() 101 json.put(PHOTOS_KEY, mResult.imagesSize); in getJsonRepresentation() 102 json.put(VIDEOS_KEY, mResult.videosSize); in getJsonRepresentation() 103 json.put(AUDIO_KEY, mResult.audioSize); in getJsonRepresentation() 104 json.put(DOWNLOADS_KEY, mDownloadsSize); in getJsonRepresentation() 105 json.put(SYSTEM_KEY, mSystemSize); in getJsonRepresentation() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/ |
D | DiskStatsLoggingServiceTest.java | 52 import org.json.JSONObject; 103 JSONObject json = getJsonOutput(); in testEmptyLog() local 104 assertThat(json.getLong(DiskStatsFileLogger.PHOTOS_KEY)).isEqualTo(0L); in testEmptyLog() 105 assertThat(json.getLong(DiskStatsFileLogger.VIDEOS_KEY)).isEqualTo(0L); in testEmptyLog() 106 assertThat(json.getLong(DiskStatsFileLogger.AUDIO_KEY)).isEqualTo(0L); in testEmptyLog() 107 assertThat(json.getLong(DiskStatsFileLogger.DOWNLOADS_KEY)).isEqualTo(0L); in testEmptyLog() 108 assertThat(json.getLong(DiskStatsFileLogger.SYSTEM_KEY)).isEqualTo(0L); in testEmptyLog() 109 assertThat(json.getLong(DiskStatsFileLogger.MISC_KEY)).isEqualTo(0L); in testEmptyLog() 110 assertThat(json.getLong(DiskStatsFileLogger.APP_SIZE_AGG_KEY)).isEqualTo(0L); in testEmptyLog() 111 assertThat(json.getLong(DiskStatsFileLogger.APP_CACHE_AGG_KEY)).isEqualTo(0L); in testEmptyLog() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | DiskStatsService.java | 43 import org.json.JSONArray; 44 import org.json.JSONException; 45 import org.json.JSONObject; 212 JSONObject json = new JSONObject(jsonString); in reportCachedValues() local 214 pw.println(json.getLong(DiskStatsFileLogger.APP_SIZE_AGG_KEY)); in reportCachedValues() 216 pw.println(json.getLong(DiskStatsFileLogger.APP_DATA_SIZE_AGG_KEY)); in reportCachedValues() 218 pw.println(json.getLong(DiskStatsFileLogger.APP_CACHE_AGG_KEY)); in reportCachedValues() 220 pw.println(json.getLong(DiskStatsFileLogger.PHOTOS_KEY)); in reportCachedValues() 222 pw.println(json.getLong(DiskStatsFileLogger.VIDEOS_KEY)); in reportCachedValues() 224 pw.println(json.getLong(DiskStatsFileLogger.AUDIO_KEY)); in reportCachedValues() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/clock/ |
D | SettingsWrapperTest.kt | 23 import org.json.JSONObject 65 val json: JSONObject = JSONObject() in testDecodeJSON() constant 66 json.put(CLOCK_FIELD, PACKAGE) in testDecodeJSON() 67 json.put(TIMESTAMP_FIELD, System.currentTimeMillis()) in testDecodeJSON() 68 val value = json.toString() in testDecodeJSON() 78 val json: JSONObject = JSONObject() in testDecodeJSONWithoutClockField() constant 79 json.put(TIMESTAMP_FIELD, System.currentTimeMillis()) in testDecodeJSONWithoutClockField() 80 val value = json.toString() in testDecodeJSONWithoutClockField()
|
/frameworks/base/services/core/java/com/android/server/signedconfig/ |
D | SignedConfig.java | 21 import org.json.JSONArray; 22 import org.json.JSONException; 23 import org.json.JSONObject; 128 JSONObject json = new JSONObject(config); in parse() local 129 int version = json.getInt(KEY_VERSION); in parse() 131 JSONArray perSdkConfig = json.getJSONArray(KEY_CONFIG); in parse() 154 static PerSdkConfig parsePerSdkConfig(JSONObject json, Set<String> allowedKeys, in parsePerSdkConfig() argument 157 int minSdk = json.getInt(CONFIG_KEY_MIN_SDK); in parsePerSdkConfig() 158 int maxSdk = json.getInt(CONFIG_KEY_MAX_SDK); in parsePerSdkConfig() 159 JSONObject valuesJson = json.getJSONObject(CONFIG_KEY_VALUES); in parsePerSdkConfig()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/ |
D | SettingsWrapper.java | 25 import org.json.JSONException; 26 import org.json.JSONObject; 83 JSONObject json; in decode() local 85 json = new JSONObject(value); in decode() 94 return json.getString(CLOCK_FIELD); in decode() 127 JSONObject json = new JSONObject(); in migrate() local 128 json.put(CLOCK_FIELD, value); in migrate() 130 json.toString(), in migrate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | CustomTileStatePersister.kt | 24 import org.json.JSONException 25 import org.json.JSONObject 94 val json = JSONObject(stateString) in readTileFromString() constant 96 state = json.getInt(STATE) in readTileFromString() 97 label = json.getStringOrNull(LABEL) in readTileFromString() 98 subtitle = json.getStringOrNull(SUBTITLE) in readTileFromString() 99 contentDescription = json.getStringOrNull(CONTENT_DESCRIPTION) in readTileFromString() 100 stateDescription = json.getStringOrNull(STATE_DESCRIPTION) in readTileFromString()
|
/frameworks/base/tools/bit/ |
D | make.cpp | 91 Json::Value json; in BuildVars() local 93 if (!Json::parseFromStream(builder, stream, &json, /* errorMessage = */ nullptr)) { in BuildVars() 97 if (!json.isObject()) { in BuildVars() 103 vector<string> names = json.getMemberNames(); in BuildVars() 107 const Json::Value& value = json[name]; in BuildVars() 138 Json::Value json(Json::objectValue); in save() local 141 json[it->first] = it->second; in save() 145 writer->write(json, &stream); in save() 183 get_values(const Json::Value& json, const string& name, vector<string>* result) in get_values() argument 187 const Json::Value& value = json.get(name, nullValue); in get_values() [all …]
|
/frameworks/base/services/core/ |
D | Android.bp | 52 name: "generate-protolog.json", 64 out: ["services.core.protolog.json"], 68 name: "checked-protolog.json", 70 ":generate-protolog.json", 71 ":services.core.protolog.json", 73 cmd: "cp $(location :generate-protolog.json) $(out) && " + 74 "{ ! (diff $(out) $(location :services.core.protolog.json) | grep -q '^<') || " + 77 "# cp $(location :generate-protolog.json) " + 78 "$(location :services.core.protolog.json)\\n#\\n" + 80 out: ["services.core.protolog.json"], [all …]
|
/frameworks/base/cmds/hid/src/com/android/commands/hid/ |
D | Device.java | 29 import org.json.JSONArray; 30 import org.json.JSONException; 31 import org.json.JSONObject; 204 JSONObject json = new JSONObject(); in sendReportOutput() local 206 json.put("eventId", eventId); in sendReportOutput() 207 json.put("deviceId", mId); in sendReportOutput() 208 json.put("reportType", rtype); in sendReportOutput() 213 json.put("reportData", dataArray); in sendReportOutput() 218 mOutputStream.write(json.toString().getBytes()); in sendReportOutput()
|
/frameworks/base/cmds/uinput/src/com/android/commands/uinput/ |
D | Device.java | 30 import org.json.JSONException; 31 import org.json.JSONObject; 209 JSONObject json = new JSONObject(); in onDeviceVibrating() local 211 json.put("reason", "vibrating"); in onDeviceVibrating() 212 json.put("id", mId); in onDeviceVibrating() 213 json.put("status", value); in onDeviceVibrating() 218 mOutputStream.write(json.toString().getBytes()); in onDeviceVibrating()
|
/frameworks/native/vulkan/vkjson/ |
D | vkjson.h | 157 bool VkJsonInstanceFromJson(const std::string& json, 163 bool VkJsonDeviceFromJson(const std::string& json, 169 bool VkJsonImageFormatPropertiesFromJson(const std::string& json, 183 inline bool VkJsonAllPropertiesFromJson(const std::string& json, in VkJsonAllPropertiesFromJson() argument 186 return VkJsonDeviceFromJson(json, properties, errors); in VkJsonAllPropertiesFromJson()
|
/frameworks/base/core/java/com/android/internal/protolog/ |
D | ProtoLogViewerConfigReader.java | 22 import org.json.JSONException; 23 import org.json.JSONObject; 90 JSONObject json = new JSONObject(builder.toString()); in loadViewerConfig() local 91 JSONObject messages = json.getJSONObject("messages"); in loadViewerConfig()
|
/frameworks/base/services/core/java/com/android/server/updates/ |
D | CertificateTransparencyLogInstallReceiver.java | 29 import org.json.JSONArray; 30 import org.json.JSONException; 31 import org.json.JSONObject; 101 JSONObject json = new JSONObject(new String(content, StandardCharsets.UTF_8)); in install() local 102 JSONArray logs = json.getJSONArray("logs"); in install()
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
D | JsonParser.java | 22 import org.json.JSONArray; 23 import org.json.JSONException; 24 import org.json.JSONObject;
|
D | AssetMatcherFactory.java | 21 import org.json.JSONException; 22 import org.json.JSONObject;
|
D | AndroidAppAsset.java | 21 import org.json.JSONArray; 22 import org.json.JSONException; 23 import org.json.JSONObject;
|
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/ |
D | KeyRevocationList.java | 24 import org.json.JSONArray; 25 import org.json.JSONException; 26 import org.json.JSONObject;
|
/frameworks/native/services/gpuservice/ |
D | GpuService.cpp | 176 std::string json = VkJsonInstanceToJson(VkJsonGetInstance()); in vkjsonPrint() local 177 fwrite(json.data(), 1, json.size(), out); in vkjsonPrint()
|
/frameworks/av/apex/testing/ |
D | Android.bp | 26 manifest: "test_manifest.json", 38 manifest: "test_manifest_codec.json",
|
/frameworks/base/libs/WindowManager/Shell/ |
D | Android.bp | 77 name: "generate-wm_shell_protolog.json", 89 out: ["wm_shell_protolog.json"], 115 ":generate-wm_shell_protolog.json"
|