/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/signedconfig/ |
H A D | SignedConfigTest.java | 78 JSONObject json = new JSONObject("{\"max_sdk\": 3, \"values\": {}}"); in testParsePerSdkConfigNoMinSdk() 89 JSONObject json = new JSONObject("{\"min_sdk\": 1, \"values\": {}}"); in testParsePerSdkConfigNoMaxSdk() 154 JSONObject json = new JSONObject( in testParsePerSdkConfigSingleKey() 164 JSONObject json = new JSONObject( in testParsePerSdkConfigSingleKeyNullValue() 175 JSONObject json = new JSONObject( in testParsePerSdkConfigMultiKeys() 184 JSONObject json = new JSONObject( in testParsePerSdkConfigSingleKeyNotAllowed() 197 JSONObject json = new JSONObject( in testParsePerSdkConfigSingleKeyWithMap() 206 JSONObject json = new JSONObject( in testParsePerSdkConfigSingleKeyWithMapInvalidValue() 219 JSONObject json = new JSONObject( in testParsePerSdkConfigMultiKeysWithMap() 229 JSONObject json = new JSONObject( in testParsePerSdkConfigSingleKeyWithMapToNull() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/flags/ |
H A D | FlagSerializer.kt | 21 import org.json.JSONObject 33 private val setter: (JSONObject, String, T) -> Unit, 34 private val getter: (JSONObject, String) -> T 38 JSONObject() 56 val json = JSONObject(data) 71 JSONObject::put, 72 JSONObject::getBoolean 77 JSONObject::put, 78 JSONObject::getString 83 JSONObject::put, [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/ |
H A D | AuthenticationStatsPersister.java | 28 import org.json.JSONObject; 74 JSONObject frrStatsJson = new JSONObject(frrStats); in getAllFrrStats() 111 JSONObject frrStatJson = new JSONObject(frrStats); in removeFrrStats() 133 JSONObject frrStatJson = null; in persistFrrStats() 136 frrStatJson = new JSONObject(frrStats); in persistFrrStats() 147 frrStatJson = new JSONObject().put(USER_ID, userId); in persistFrrStats() 173 private String buildFrrStats(JSONObject frrStats, int totalAttempts, int rejectedAttempts, in buildFrrStats() 192 private String getValue(JSONObject jsonObject, String key) throws JSONException { in getValue() 196 private int getIntValue(JSONObject jsonObject, String key) throws JSONException { in getIntValue() 200 private int getIntValue(JSONObject jsonObject, String key, int defaultValue) in getIntValue()
|
/aosp14/frameworks/base/services/core/java/com/android/server/rollback/ |
H A D | RollbackStore.java | 41 import org.json.JSONObject; 137 JSONObject jo = new JSONObject(); in convertToJsonArray() 152 JSONObject jo = array.getJSONObject(i); in convertToRestoreInfoArray() 166 JSONObject entryJson = new JSONObject(); in extensionVersionsToJson() 181 JSONObject entry = json.getJSONObject(i); in extensionVersionsFromJson() 189 JSONObject json = new JSONObject(); in rollbackInfoToJson() 312 JSONObject dataJson = new JSONObject(); in saveRollback() 366 JSONObject dataJson = new JSONObject( in loadRollback() 376 static Rollback rollbackFromJson(JSONObject dataJson, File backupDir) in rollbackFromJson() 394 JSONObject json = new JSONObject(); in toJson() [all …]
|
/aosp14/frameworks/base/core/java/com/android/server/backup/ |
H A D | AccountSyncSettingsBackupHelper.java | 34 import org.json.JSONObject; 101 JSONObject dataJSON = serializeAccountSyncSettingsToJSON(mUserId); in performBackup() 130 private JSONObject serializeAccountSyncSettingsToJSON(int userId) throws JSONException { in serializeAccountSyncSettingsToJSON() 150 JSONObject backupJSON = new JSONObject(); in serializeAccountSyncSettingsToJSON() 165 JSONObject accountJSON = new JSONObject(); in serializeAccountSyncSettingsToJSON() 176 JSONObject authorityJSON = new JSONObject(); in serializeAccountSyncSettingsToJSON() 258 JSONObject dataJSON = new JSONObject(dataString); in restoreEntity() 286 JSONObject accountJSON = (JSONObject) accountJSONArray.get(i); in restoreFromJsonArray() 403 private void restoreExistingAccountSyncSettingsFromJSON(JSONObject accountJSON, int userId) in restoreExistingAccountSyncSettingsFromJSON() 412 JSONObject authority = (JSONObject) authorities.get(i); in restoreExistingAccountSyncSettingsFromJSON()
|
/aosp14/frameworks/base/services/core/java/com/android/server/signedconfig/ |
H A D | SignedConfig.java | 23 import org.json.JSONObject; 128 JSONObject json = new JSONObject(config); in parse() 154 static PerSdkConfig parsePerSdkConfig(JSONObject json, Set<String> allowedKeys, in parsePerSdkConfig() 159 JSONObject valuesJson = json.getJSONObject(CONFIG_KEY_VALUES); in parsePerSdkConfig() 163 String value = valueObject == JSONObject.NULL || valueObject == null in parsePerSdkConfig()
|
/aosp14/frameworks/base/core/java/com/android/internal/protolog/ |
H A D | ProtoLogViewerConfigReader.java | 23 import org.json.JSONObject; 90 JSONObject json = new JSONObject(builder.toString()); in loadViewerConfig() 91 JSONObject messages = json.getJSONObject("messages"); in loadViewerConfig() 99 JSONObject val = messages.getJSONObject(key); in loadViewerConfig()
|
/aosp14/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
H A D | JsonParser.java | 24 import org.json.JSONObject; 41 public static JSONObject parse(JsonReader reader) throws IOException, JSONException { in parse() 42 JSONObject output = new JSONObject(); in parse()
|
H A D | AssetMatcherFactory.java | 22 import org.json.JSONObject; 34 JSONObject queryObject = new JSONObject(query); in create()
|
H A D | AssetFactory.java | 21 import org.json.JSONObject; 37 public static AbstractAsset create(JSONObject asset) in create()
|
H A D | WebAsset.java | 21 import org.json.JSONObject; 122 protected static WebAsset create(JSONObject asset) in create()
|
/aosp14/frameworks/base/services/core/java/com/android/server/storage/ |
H A D | DiskStatsFileLogger.java | 29 import org.json.JSONObject; 90 JSONObject representation = getJsonRepresentation(); in dumpToFile() 97 private JSONObject getJsonRepresentation() { in getJsonRepresentation() 98 JSONObject json = new JSONObject(); in getJsonRepresentation() 116 private void addAppsToJson(JSONObject json) throws JSONException { in addAppsToJson()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
H A D | CustomTileStatePersister.kt | 25 import org.json.JSONObject 94 val json = JSONObject(stateString) 106 private fun JSONObject.getStringOrNull(name: String): String? { regex 114 JSONObject()
|
/aosp14/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
H A D | ClockProviderPlugin.kt | 26 import org.json.JSONObject 234 var metadata: JSONObject = JSONObject() 246 return JSONObject() 258 val json = JSONObject(jsonStr)
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/storage/ |
H A D | DiskStatsFileLoggerTest.java | 24 import org.json.JSONObject; 63 JSONObject output = getOutputFileAsJson(); in testEmptyStorage() 89 JSONObject output = getOutputFileAsJson(); in testMeasurementResultsReported() 115 JSONObject output = getOutputFileAsJson(); in testAppsReported() 151 JSONObject output = getOutputFileAsJson(); in testEmulatedExternalStorageCounted() 177 JSONObject output = getOutputFileAsJson(); in testDuplicatePackageNameIsNotMergedAcrossMultipleUsers() 193 private JSONObject getOutputFileAsJson() throws Exception { in getOutputFileAsJson() 194 return new JSONObject(IoUtils.readFileAsString(mOutputFile.getAbsolutePath())); in getOutputFileAsJson()
|
H A D | DiskStatsLoggingServiceTest.java | 52 import org.json.JSONObject; 103 JSONObject json = getJsonOutput(); in testEmptyLog() 145 JSONObject json = getJsonOutput(); in testPopulatedLogTask() 226 private JSONObject getJsonOutput() throws Exception { in getJsonOutput() 227 return new JSONObject(IoUtils.readFileAsString(mInputFile.getAbsolutePath())); in getJsonOutput()
|
/aosp14/frameworks/base/services/core/java/com/android/server/updates/ |
H A D | CertificateTransparencyLogInstallReceiver.java | 31 import org.json.JSONObject; 101 JSONObject json = new JSONObject(new String(content, StandardCharsets.UTF_8)); in install() 104 JSONObject log = logs.getJSONObject(i); in install() 134 private void installLog(File directory, JSONObject logObject) throws IOException { in installLog()
|
/aosp14/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/ |
H A D | KeyRevocationList.java | 26 import org.json.JSONObject; 101 JSONObject jsonObject = new JSONObject(jsonString); in fromJsonString() 107 JSONObject entry = entries.getJSONObject(i); in fromJsonString()
|
/aosp14/frameworks/base/cmds/uinput/src/com/android/commands/uinput/ |
H A D | Device.java | 31 import org.json.JSONObject; 203 final JSONObject json = new JSONObject(); in handleSyncEvent() 240 final JSONObject json = new JSONObject(); in onDeviceVibrating() 259 private void writeOutputObject(JSONObject json) { in writeOutputObject()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | ShortcutPackageItem.java | 33 import org.json.JSONObject; 201 public JSONObject dumpCheckin(boolean clear) throws JSONException { in dumpCheckin() 202 final JSONObject result = new JSONObject(); in dumpCheckin()
|
/aosp14/frameworks/base/services/core/java/com/android/server/security/ |
H A D | AttestationVerificationPeerDeviceVerifier.java | 43 import org.json.JSONObject; 522 private JSONObject mJsonStatusMap; 558 JSONObject revocationStatus; in check() 576 private JSONObject getStatusMap(String stringUrl) throws CertPathValidatorException { in getStatusMap() 586 JSONObject statusListJson = new JSONObject( in getStatusMap()
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | NotificationChannelGroup.java | 33 import org.json.JSONObject; 282 public JSONObject toJson() throws JSONException { in toJson() 283 JSONObject record = new JSONObject(); in toJson()
|
/aosp14/frameworks/base/services/core/java/com/android/server/ |
H A D | DiskStatsService.java | 45 import org.json.JSONObject; 210 JSONObject json = new JSONObject(jsonString); in reportCachedValues() 245 JSONObject json = new JSONObject(jsonString); in reportCachedValuesProto()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/ |
H A D | AuthenticationStatsPersisterTest.java | 38 import org.json.JSONObject; 217 String expectedFrrStats = new JSONObject(buildFrrStats(authenticationStats)) in persistFrrStats_existingUserWithFingerprint_faceAuthenticate_shouldUpdateRecord() 275 return new JSONObject() in buildFrrStats() 282 return new JSONObject() in buildFrrStats()
|
/aosp14/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | NotificationUsageStats.java | 34 import org.json.JSONObject; 299 public synchronized JSONObject dumpJson(DumpFilter filter) { in dumpJson() 300 JSONObject dump = new JSONObject(); in dumpJson() 691 public JSONObject dumpJson() throws JSONException { in dumpJson() 693 JSONObject dump = new JSONObject(); in dumpJson() 735 private void maybePut(JSONObject dump, String name, int value) throws JSONException { in maybePut() 741 private void maybePut(JSONObject dump, String name, float value) throws JSONException { in maybePut() 788 public void maybePut(JSONObject dump, ImportanceHistogram prev) in maybePut()
|