Home
last modified time | relevance | path

Searched refs:UTF_8 (Results 1 – 25 of 41) sorted by relevance

12

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DDiskBasedLogger.java18 import static java.nio.charset.StandardCharsets.UTF_8;
155 outputStream.write(log.getBytes(UTF_8)); in e()
193 bufferedReader = new BufferedReader(new InputStreamReader(inputStream, UTF_8)); in clearOldLogs()
277 outputStream.write(line.getBytes(UTF_8)); in copyLogsNewerThanDate()
278 outputStream.write("\n".getBytes(UTF_8)); in copyLogsNewerThanDate()
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DCharacterSets.java43 public static final int UTF_8 = 0x6A; field in CharacterSets
51 public static final int DEFAULT_CHARSET = UTF_8;
69 UTF_8,
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DCharacterSets.java295 public static final int UTF_8 = 0x6A; field in CharacterSets
307 public static final int DEFAULT_CHARSET = UTF_8;
329 UTF_8,
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java1397 doReturn(new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8)))
1413 doReturn(new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8)))
2395 assertEquals(StandardCharsets.UTF_8, extractCharset(null));
2396 assertEquals(StandardCharsets.UTF_8, extractCharset("text/html;charset=utf-8"));
2397 assertEquals(StandardCharsets.UTF_8, extractCharset("text/html;charset=UtF-8"));
2398 assertEquals(StandardCharsets.UTF_8, extractCharset("text/html; Charset=\"utf-8\""));
2399 assertEquals(StandardCharsets.UTF_8, extractCharset("image/png"));
2400 assertEquals(StandardCharsets.UTF_8, extractCharset("Text/HTML;"));
2401 assertEquals(StandardCharsets.UTF_8, extractCharset("multipart/form-data; boundary=-aa*-"));
2402 assertEquals(StandardCharsets.UTF_8, extractCharset("text/plain;something=else"));
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/
DEapAkaPrimeChallengeStateTest.java74 SERVER_NETWORK_NAME_STRING.getBytes(StandardCharsets.UTF_8);
77 INCORRECT_NETWORK_NAME.getBytes(StandardCharsets.UTF_8);
304 new AtKdfInput(0, PEER_NETWORK_NAME.getBytes(StandardCharsets.UTF_8)); in testDeriveCkIkPrime()
326 new AtKdfInput(0, PEER_NETWORK_NAME.getBytes(StandardCharsets.UTF_8)); in testGenerateAndPersistEapAkaKeys()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DRequestGetMessage.java54 MasClient.CharsetType.UTF_8.equals(charset) ? CHARSET_UTF8 : CHARSET_NATIVE); in RequestGetMessage()
81 bmsg = baos.toString(StandardCharsets.UTF_8.name()); in readResponse()
/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverDataParser.java383 result.name = new String(nameBytes, StandardCharsets.UTF_8); in parseNokia()
412 result.name = new String(nameBytes, StandardCharsets.UTF_8); in parseBtOob()
419 result.name = new String(nameBytes, StandardCharsets.UTF_8); in parseBtOob()
495 result.name = new String(nameBytes, StandardCharsets.UTF_8); in parseBleOob()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
DPropertiesProvisioningDataParser.java53 import static java.nio.charset.StandardCharsets.UTF_8;
135 props.load(new StringReader(new String(firstRecord.getPayload(), UTF_8))); in parse()
310 String mimeType = new String(record.getType(), UTF_8); in getFirstNdefRecord()
/packages/apps/Dialer/java/com/android/dialer/persistentlog/
DPersistentLogger.java167 result.append(new String(log, StandardCharsets.UTF_8)).append("\n"); in dumpLogToStringInternal()
183 .getBytes(StandardCharsets.UTF_8); in buildTextLog()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/
DAnalyticsUtils.java33 import static java.nio.charset.StandardCharsets.UTF_8;
148 props.load(new StringReader(new String(firstRecord.getPayload(), UTF_8))); in getExtrasFromProperties()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/
DBackupHelper.java31 import static java.nio.charset.StandardCharsets.UTF_8;
294 serializer.setOutput(delayedRestoreData, UTF_8.name()); in writeDelayedStorePkgsLocked()
340 parser.setInput(delayedRestoreData, UTF_8.name()); in restoreDelayedState()
DPermissionControllerServiceImpl.java31 import static java.nio.charset.StandardCharsets.UTF_8;
317 serializer.setOutput(backup, UTF_8.name()); in onGetRuntimePermissionsBackup()
339 parser.setInput(backup, StandardCharsets.UTF_8.name()); in onRestoreRuntimePermissionsBackup()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/provider/
DWikidata.java76 String result = new String(Http.get(uri), StandardCharsets.UTF_8); in getSearchResults()
115 String result = new String(Http.get(uri), StandardCharsets.UTF_8); in getSparqlForResults()
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DDownloadServiceTest.kt284 val bis = ByteArrayInputStream(fileContents.toByteArray(StandardCharsets.UTF_8)) in testTapDoneNotification()
359 val contents = InputStreamReader(fileStream, StandardCharsets.UTF_8).use { in onCreate()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/wifi/
DWifiConfigurationProvider.java289 .getBytes(StandardCharsets.UTF_8)))) { in loadKeystoreFromCertificate()
313 .decode(caCertificate.getBytes(StandardCharsets.UTF_8)))) { in buildCACertificate()
/packages/services/Car/service/src/com/android/car/
DCarUxRestrictionsManagerService.java499 new OutputStreamWriter(fos, StandardCharsets.UTF_8))) { in persistConfig() argument
532 new InputStreamReader(configFile.openRead(), StandardCharsets.UTF_8))) { in readPersistedConfig() argument
576 new InputStreamReader(configFile.openRead(), StandardCharsets.UTF_8))) { in readFileSchemaVersion() argument
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DDvrStorageManager.java119 return new String(strBytes, StandardCharsets.UTF_8); in readString()
292 byte[] data = str.getBytes(StandardCharsets.UTF_8); in writeString()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DDvrStorageManager.java119 return new String(strBytes, StandardCharsets.UTF_8); in readString()
292 byte[] data = str.getBytes(StandardCharsets.UTF_8); in writeString()
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/
DQrCodeGenerator.java45 hints.put(EncodeHintType.CHARACTER_SET, StandardCharsets.UTF_8.name()); in encodeQrCode()
/packages/modules/ExtServices/src/android/ext/services/notification/
DAssistant.java159 parser.setInput(stream, StandardCharsets.UTF_8.name()); in readXml()
192 out.setOutput(stream, StandardCharsets.UTF_8.name()); in saveFile()
/packages/apps/ThemePicker/src/com/android/customization/module/
DWallpaperStatsLog.java5 import static java.nio.charset.StandardCharsets.UTF_8;
/packages/apps/TV/tuner/src/com/android/tv/tuner/cc/
DCaptionWindowLayout.java95 new String("\uAC00".getBytes(StandardCharsets.UTF_8), StandardCharsets.UTF_8);
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DCea708Parser.java116 new String("\u266B".getBytes(StandardCharsets.UTF_8), StandardCharsets.UTF_8);
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DVhalJsonReader.java65 new InputStreamReader(in, StandardCharsets.UTF_8))) { in readJsonString() argument
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
DMasClient.java205 NATIVE, UTF_8; enumConstant

12