Home
last modified time | relevance | path

Searched refs:parseCharset (Results 1 – 6 of 6) sorted by relevance

/external/volley/src/test/java/com/android/volley/toolbox/
DHttpHeaderParserTest.java245 public void parseCharset() {
248 assertEquals("utf-8", HttpHeaderParser.parseCharset(headers));
252 assertEquals("utf-8", HttpHeaderParser.parseCharset(headers, "ISO-8859-1"));
256 assertEquals("utf-8", HttpHeaderParser.parseCharset(headers));
260 assertEquals("utf-8", HttpHeaderParser.parseCharset(headers));
264 assertEquals("ISO-8859-1", HttpHeaderParser.parseCharset(headers));
268 assertEquals("utf-8", HttpHeaderParser.parseCharset(headers, "utf-8"));
272 assertEquals("ISO-8859-1", HttpHeaderParser.parseCharset(headers));
276 assertEquals("ISO-8859-1", HttpHeaderParser.parseCharset(headers));
280 assertEquals("utf-8", HttpHeaderParser.parseCharset(headers, "utf-8"));
[all …]
/external/volley/src/main/java/com/android/volley/toolbox/
DHttpHeaderParser.java162 public static String parseCharset(Map<String, String> headers, String defaultCharset) { in parseCharset() method in HttpHeaderParser
183 public static String parseCharset(Map<String, String> headers) { in parseCharset() method in HttpHeaderParser
184 return parseCharset(headers, DEFAULT_CONTENT_CHARSET); in parseCharset()
DJsonArrayRequest.java74 HttpHeaderParser.parseCharset(response.headers, PROTOCOL_CHARSET)); in parseNetworkResponse()
DStringRequest.java91 parsed = new String(response.data, HttpHeaderParser.parseCharset(response.headers)); in parseNetworkResponse()
DJsonObjectRequest.java84 HttpHeaderParser.parseCharset(response.headers, PROTOCOL_CHARSET)); in parseNetworkResponse()
/external/fonttools/Lib/fontTools/cffLib/
D__init__.py1290 charset = parseCharset(numGlyphs, file, parent.strings, isCID, format)
1440 def parseCharset(numGlyphs, file, strings, isCID, fmt): function