/aosp14/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/ |
H A D | ViewerConfigParserTest.kt | 33 val json = """ regex 48 val json = """ regex 63 val json = """ regex 79 val json = """ regex 90 val json = """ regex 101 val json = """ regex 112 val json = """ regex 123 val json = """ regex 135 val json = """ regex 144 val json = """ regex [all …]
|
H A D | ViewerConfigBuilderTest.kt | 19 import com.android.json.stream.JsonReader 43 private fun parseConfig(json: String): Map<Int, ViewerConfigParser.ConfigEntry> { 44 return ViewerConfigParser().parseConfig(JsonReader(StringReader(json)))
|
/aosp14/system/core/libprocessgroup/profiles/ |
H A D | Android.bp | 20 name: "cgroups.json", 21 src: "cgroups.json", 23 "cgroups_28.json", 24 "cgroups_29.json", 25 "cgroups_30.json", 37 name: "cgroups_28.json", 38 src: "cgroups_28.json", 43 name: "cgroups_29.json", 44 src: "cgroups_29.json", 50 src: "cgroups_30.json", [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/rollback/ |
H A D | RollbackStore.java | 39 import org.json.JSONArray; 40 import org.json.JSONException; 41 import org.json.JSONObject; 176 if (json == null) { in extensionVersionsFromJson() 195 return json; in rollbackInfoToJson() 397 return json; in toJson() 425 return json; in toJson() 459 json.put(toJson(pkg)); in versionedPackagesToJson() 461 return json; in versionedPackagesToJson() 476 json.put(toJson(info)); in toJson() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/signedconfig/ |
H A D | SignedConfigTest.java | 32 import org.json.JSONException; 33 import org.json.JSONObject; 154 JSONObject json = new JSONObject( in testParsePerSdkConfigSingleKey() local 164 JSONObject json = new JSONObject( in testParsePerSdkConfigSingleKeyNullValue() local 175 JSONObject json = new JSONObject( in testParsePerSdkConfigMultiKeys() local 184 JSONObject json = new JSONObject( in testParsePerSdkConfigSingleKeyNotAllowed() local 197 JSONObject json = new JSONObject( in testParsePerSdkConfigSingleKeyWithMap() local 206 JSONObject json = new JSONObject( in testParsePerSdkConfigSingleKeyWithMapInvalidValue() local 219 JSONObject json = new JSONObject( in testParsePerSdkConfigMultiKeysWithMap() local 229 JSONObject json = new JSONObject( in testParsePerSdkConfigSingleKeyWithMapToNull() local [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/storage/ |
H A 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 105 json.put(SYSTEM_KEY, mSystemSize); in getJsonRepresentation() 107 addAppsToJson(json); in getJsonRepresentation() 113 return json; in getJsonRepresentation() 145 json.put(PACKAGE_NAMES_KEY, names); in addAppsToJson() 146 json.put(APP_SIZES_KEY, appSizeList); in addAppsToJson() 147 json.put(APP_CACHES_KEY, cacheSizeList); in addAppsToJson() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/storage/ |
H A 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() 108 assertThat(json.getLong(DiskStatsFileLogger.SYSTEM_KEY)).isEqualTo(0L); in testEmptyLog() 109 assertThat(json.getLong(DiskStatsFileLogger.MISC_KEY)).isEqualTo(0L); in testEmptyLog() 145 JSONObject json = getJsonOutput(); in testPopulatedLogTask() local 146 assertThat(json.getLong(DiskStatsFileLogger.PHOTOS_KEY)).isEqualTo(4L); in testPopulatedLogTask() 148 assertThat(json.getLong(DiskStatsFileLogger.AUDIO_KEY)).isEqualTo(6L); in testPopulatedLogTask() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/ |
H A D | DiskStatsService.java | 43 import org.json.JSONArray; 44 import org.json.JSONException; 45 import org.json.JSONObject; 210 JSONObject json = new JSONObject(jsonString); in reportCachedValues() local 228 pw.println(json.getLong(DiskStatsFileLogger.MISC_KEY)); in reportCachedValues() 245 JSONObject json = new JSONObject(jsonString); in reportCachedValuesProto() local 255 json.getLong(DiskStatsFileLogger.PHOTOS_KEY)); in reportCachedValuesProto() 257 json.getLong(DiskStatsFileLogger.VIDEOS_KEY)); in reportCachedValuesProto() 259 json.getLong(DiskStatsFileLogger.AUDIO_KEY)); in reportCachedValuesProto() 263 json.getLong(DiskStatsFileLogger.SYSTEM_KEY)); in reportCachedValuesProto() [all …]
|
/aosp14/frameworks/base/tools/bit/ |
H A D | make.cpp | 91 Json::Value json; in BuildVars() local 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() 215 Json::Value json; in read_modules() local 222 if (!json.isObject()) { in read_modules() 227 vector<string> names = json.getMemberNames(); in read_modules() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/signedconfig/ |
H A 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()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
H A D | CustomTileStatePersister.kt | 24 import org.json.JSONException 25 import org.json.JSONObject 94 val json = JSONObject(stateString) regex 96 state = json.getInt(STATE) 97 label = json.getStringOrNull(LABEL) 98 subtitle = json.getStringOrNull(SUBTITLE) 99 contentDescription = json.getStringOrNull(CONTENT_DESCRIPTION) 100 stateDescription = json.getStringOrNull(STATE_DESCRIPTION)
|
/aosp14/frameworks/base/cmds/uinput/src/com/android/commands/uinput/ |
H A D | Device.java | 30 import org.json.JSONException; 31 import org.json.JSONObject; 203 final JSONObject json = new JSONObject(); in handleSyncEvent() local 205 json.put("reason", "sync"); in handleSyncEvent() 206 json.put("id", mId); in handleSyncEvent() 207 json.put("syncToken", syncToken); in handleSyncEvent() 211 writeOutputObject(json); in handleSyncEvent() 242 json.put("reason", "vibrating"); in onDeviceVibrating() 243 json.put("id", mId); in onDeviceVibrating() 244 json.put("status", value); in onDeviceVibrating() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
H A D | ClockProviderPlugin.kt | 26 import org.json.JSONObject 258 val json = JSONObject(jsonStr) regex 261 if (!json.isNull(KEY_CLOCK_ID)) json.getString(KEY_CLOCK_ID) else null, 262 if (!json.isNull(KEY_SEED_COLOR)) json.getInt(KEY_SEED_COLOR) else null 264 if (!json.isNull(KEY_METADATA)) { 265 result.metadata = json.getJSONObject(KEY_METADATA)
|
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/flags/ |
H A D | FlagSerializer.kt | 20 import org.json.JSONException 21 import org.json.JSONObject 56 val json = JSONObject(data) regex 57 return if (json.getString(FIELD_TYPE) == type) { 58 getter(json, FIELD_VALUE)
|
/aosp14/frameworks/base/services/core/ |
H A 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", 80 out: ["services.core.protolog.json"], 145 "protolog.conf.json.gz", 229 name: "services.core.json.gz", 230 srcs: [":checked-protolog.json"], 237 name: "protolog.conf.json.gz", [all …]
|
/aosp14/frameworks/base/cmds/hid/src/com/android/commands/hid/ |
H A D | Device.java | 29 import org.json.JSONArray; 30 import org.json.JSONException; 31 import org.json.JSONObject; 260 JSONObject json = new JSONObject(); in sendReportOutput() local 262 json.put("eventId", eventId); in sendReportOutput() 263 json.put("deviceId", mId); in sendReportOutput() 264 json.put("reportType", rtype); in sendReportOutput() 269 json.put("reportData", dataArray); in sendReportOutput() 274 mOutputStream.write(json.toString().getBytes()); in sendReportOutput()
|
/aosp14/frameworks/base/core/java/com/android/internal/protolog/ |
H A 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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/updates/ |
H A 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()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/ |
H A D | Android.bp | 99 name: "generate-wm_shell_protolog.json", 111 out: ["wm_shell_protolog.json"], 115 name: "protolog.json.gz", 116 srcs: [":generate-wm_shell_protolog.json"], 117 out: ["wmshell.protolog.json.gz"], 123 name: "wmshell.protolog.json.gz", 125 src: ":protolog.json.gz",
|
/aosp14/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
H A D | JsonParser.java | 22 import org.json.JSONArray; 23 import org.json.JSONException; 24 import org.json.JSONObject;
|
H A D | AssetMatcherFactory.java | 21 import org.json.JSONException; 22 import org.json.JSONObject;
|
H A D | AndroidAppAsset.java | 21 import org.json.JSONArray; 22 import org.json.JSONException; 23 import org.json.JSONObject;
|
/aosp14/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/ |
H A D | KeyRevocationList.java | 24 import org.json.JSONArray; 25 import org.json.JSONException; 26 import org.json.JSONObject;
|
/aosp14/frameworks/base/tools/lint/fix/ |
H A D | soong_lint_fix.py | 16 import json 101 module_info = json.load(f)
|
/aosp14/frameworks/base/tests/RollbackTest/ |
H A D | Android.bp | 109 manifest: "testdata/manifest_v1.json", 120 manifest: "testdata/manifest_v2.json", 131 manifest: "testdata/manifest_v2.json",
|