Home
last modified time | relevance | path

Searched refs:ParseException (Results 1 – 25 of 122) sorted by relevance

12345

/packages/modules/NetworkStack/tests/unit/src/android/net/captiveportal/
DCaptivePortalProbeSpecTest.java30 import java.text.ParseException;
37 public void testGetResult_Regex() throws MalformedURLException, ParseException { in testGetResult_Regex()
68 @Test(expected = ParseException.class)
69 public void testParseSpec_Empty() throws MalformedURLException, ParseException { in testParseSpec_Empty()
73 @Test(expected = ParseException.class)
74 public void testParseSpec_Null() throws MalformedURLException, ParseException { in testParseSpec_Null()
78 @Test(expected = ParseException.class)
79 public void testParseSpec_MissingParts() throws MalformedURLException, ParseException { in testParseSpec_MissingParts()
83 @Test(expected = ParseException.class)
84 public void testParseSpec_TooManyParts() throws MalformedURLException, ParseException { in testParseSpec_TooManyParts()
[all …]
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DDnsSvcbRecord.java23 import static com.android.net.module.util.DnsPacket.ParseException;
95 throws IllegalStateException, ParseException { in DnsSvcbRecord()
101 throw new ParseException("incorrect nsClass: " + nsClass); in DnsSvcbRecord()
113 throw new ParseException("SVCB rdata is empty"); in DnsSvcbRecord()
122 throw new ParseException( in DnsSvcbRecord()
130 throw new ParseException("Invalid DnsSvcbRecord, key " + key + " is repeated"); in DnsSvcbRecord()
135 throw new ParseException("Invalid DnsSvcbRecord. Got " in DnsSvcbRecord()
211 private static SvcParam parseSvcParam(@NonNull ByteBuffer buf) throws ParseException { in parseSvcParam()
226 throw new ParseException("Malformed packet", e); in parseSvcParam()
251 ParseException { in SvcParamMandatory()
[all …]
DDnsPacketUtils.java25 import android.net.ParseException;
95 IOException, ParseException { in domainNameToLabels()
97 throw new ParseException("Domain name exceeds max length: " + name.length()); in domainNameToLabels()
100 throw new ParseException("Failed to parse domain name: " + name); in domainNameToLabels()
106 throw new ParseException("label is too long: " + label); in domainNameToLabels()
136 BufferUnderflowException, DnsPacket.ParseException { in parseName()
150 BufferUnderflowException, DnsPacket.ParseException { in parseName()
152 throw new DnsPacket.ParseException("Failed to parse name, too many labels"); in parseName()
160 throw new DnsPacket.ParseException("Parse name fail, bad label type: " + mask); in parseName()
166 throw new DnsPacket.ParseException( in parseName()
[all …]
DDnsPacket.java64 public static class ParseException extends RuntimeException { class in DnsPacket
66 public ParseException(@NonNull String reason) { in ParseException() method in DnsPacket.ParseException
71 public ParseException(@NonNull String reason, @NonNull Throwable cause) { in ParseException() method in DnsPacket.ParseException
287 throws BufferUnderflowException, ParseException { in DnsRecord()
293 throw new ParseException( in DnsRecord()
318 throws BufferUnderflowException, ParseException { in parse()
518 protected DnsPacket(@NonNull byte[] data) throws ParseException { in DnsPacket()
520 throw new ParseException("Parse header failed, null input data"); in DnsPacket()
528 throw new ParseException("Parse Header fail, bad input data", e); in DnsPacket()
540 throw new ParseException("Parse record fail", e); in DnsPacket()
DDnsSvcbPacket.java45 private DnsSvcbPacket(@NonNull byte[] data) throws DnsPacket.ParseException { in DnsSvcbPacket()
51 throw new DnsPacket.ParseException("Unexpected question count " + questions); in DnsSvcbPacket()
55 throw new DnsPacket.ParseException("Unexpected query type " + nsType); in DnsSvcbPacket()
163 public static DnsSvcbPacket fromResponse(@NonNull byte[] data) throws DnsPacket.ParseException { in fromResponse()
166 throw new DnsPacket.ParseException("Not an answer packet"); in fromResponse()
/packages/modules/Permission/SafetyCenter/Config/java/com/android/safetycenter/config/
DSafetyCenterConfigParser.java108 throws ParseException { in parseXmlResource()
116 throw new ParseException("Unexpected parser state"); in parseXmlResource()
125 throw new ParseException("Unexpected extra root element"); in parseXmlResource()
129 throw new ParseException("Exception while parsing the XML resource", e); in parseXmlResource()
135 throws XmlPullParserException, IOException, ParseException { in parseSafetyCenterConfig()
159 throws XmlPullParserException, IOException, ParseException { in parseSafetySourcesGroup()
242 throws XmlPullParserException, IOException, ParseException { in parseSafetySource()
417 throws XmlPullParserException, ParseException { in validateElementStart()
424 throws XmlPullParserException, ParseException { in validateElementEnd()
431 throws ParseException { in validateElementHasNoAttribute()
[all …]
DParseException.java25 public final class ParseException extends Exception { class
27 public ParseException(String message) { in ParseException() method in ParseException
31 public ParseException(String message, Throwable ex) { in ParseException() method in ParseException
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsPacket.java69 public static class ParseException extends IOException { class in MdnsPacket
72 public ParseException(int code, @NonNull String message, @Nullable Throwable cause) { in ParseException() method in MdnsPacket.ParseException
82 public static MdnsPacket parse(@NonNull MdnsPacketReader reader) throws ParseException { in parse()
89 throw new ParseException(MdnsResponseErrorCode.ERROR_END_OF_FILE, in parse()
101 int transactionId) throws ParseException { in parseRecordsSection()
115 throw new ParseException(MdnsResponseErrorCode.ERROR_END_OF_FILE, in parseRecordsSection()
122 throws ParseException { in parseRecords()
135 throws ParseException { in parseRecord()
140 throw new ParseException(MdnsResponseErrorCode.ERROR_READING_RECORD_NAME, in parseRecord()
148 throw new ParseException(MdnsResponseErrorCode.ERROR_END_OF_FILE, in parseRecord()
[all …]
/packages/services/Iwlan/src/com/google/android/iwlan/epdg/
DNaptrDnsResolver.java26 import android.net.ParseException;
132 throw new ParseException("Unsupported flag type: " + flag); in getTypeFromFlagString()
136 NaptrRecord(byte[] naptrRecordData) throws ParseException { in NaptrRecord()
145 throw new ParseException("NAPTR: regex field expected to be empty!"); in NaptrRecord()
151 throw new ParseException( in NaptrRecord()
155 throw new ParseException( in NaptrRecord()
160 throw new ParseException( in NaptrRecord()
164 throw new ParseException("Parsing NAPTR Record data failed with cause", e); in NaptrRecord()
171 NaptrResponse(@NonNull byte[] data) throws ParseException { in NaptrResponse()
174 throw new ParseException("Not an answer packet"); in NaptrResponse()
[all …]
DSrvDnsResolver.java25 import android.net.ParseException;
103 SrvRecord(byte[] srvRecordData) throws ParseException { in SrvRecord()
116 throw new ParseException( in SrvRecord()
120 throw new ParseException( in SrvRecord()
124 throw new ParseException("Parsing SRV Record data failed with cause", e); in SrvRecord()
131 SrvResponse(@NonNull byte[] data) throws ParseException { in SrvResponse()
134 throw new ParseException("Not an answer packet"); in SrvResponse()
139 throw new ParseException("Unexpected query count: " + numQueries); in SrvResponse()
143 throw new ParseException("Unexpected query type: " + mQueryType); in SrvResponse()
149 public @NonNull Map<String, SrvRecord> parseSrvRecords() throws ParseException { in parseSrvRecords()
[all …]
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/arp/
DArpPacket.java100 throws ParseException { in parseArpPacket()
103 throw new ParseException("Invalid packet length: " + length); in parseArpPacket()
114 throw new ParseException("Incorrect Ether Type: " + etherType); in parseArpPacket()
119 throw new ParseException("Incorrect HW Type: " + hwType); in parseArpPacket()
124 throw new ParseException("Incorrect Protocol Type: " + protoType); in parseArpPacket()
129 throw new ParseException("Incorrect HW address length: " + hwAddrLength); in parseArpPacket()
134 throw new ParseException("Incorrect Protocol address length: " + ipAddrLength); in parseArpPacket()
139 throw new ParseException("Incorrect opCode: " + opCode); in parseArpPacket()
159 throw new ParseException("Invalid index when wrapping a byte array into a buffer"); in parseArpPacket()
161 throw new ParseException("Invalid buffer position"); in parseArpPacket()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipPixelTest.java192 @Test(expected = ParseException.class)
197 @Test(expected = ParseException.class)
202 @Test(expected = ParseException.class)
207 @Test(expected = ParseException.class)
212 @Test(expected = ParseException.class)
217 @Test(expected = ParseException.class)
222 @Test(expected = ParseException.class)
227 @Test(expected = ParseException.class)
232 @Test(expected = ParseException.class)
237 @Test(expected = ParseException.class)
[all …]
DBipDatetimeTest.java140 @Test(expected = ParseException.class)
145 @Test(expected = ParseException.class)
150 @Test(expected = ParseException.class)
155 @Test(expected = ParseException.class)
160 @Test(expected = ParseException.class)
165 @Test(expected = ParseException.class)
170 @Test(expected = ParseException.class)
175 @Test(expected = ParseException.class)
180 @Test(expected = ParseException.class)
185 @Test(expected = ParseException.class)
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/incident/
DReportDetails.java46 public static class ParseException extends Exception { class in ReportDetails
47 public ParseException(String message) { in ParseException() method in ReportDetails.ParseException
51 public ParseException(String message, Throwable ex) { in ParseException() method in ReportDetails.ParseException
64 throws ParseException { in parseIncidentReport()
86 throw new ParseException("Error while reading stream.", ex); in parseIncidentReport()
88 throw new ParseException("Out of memory while loading incident report.", ex); in parseIncidentReport()
116 Resources res) throws ParseException { in parseImages()
130 throw new ParseException("Image count is greater than the limit of " in parseImages()
138 throw new ParseException("Unsupported image type " + mimeType); in parseImages()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/obex/
DBmessageParser.java34 import java.text.ParseException;
82 } catch (ParseException e) { in createBmessage()
90 private ParseException expected(Property... props) { in expected()
102 return new ParseException("Expected: " + sb.toString(), mParser.pos()); in expected()
105 private void parse(String str) throws IOException, ParseException { in parse()
148 private Property parseProperties() throws ParseException { in parseProperties()
190 private Property parseEnvelope(int level) throws IOException, ParseException { in parseEnvelope()
200 throw new ParseException("bEnvelope is nested more than 3 times", mParser.pos()); in parseEnvelope()
240 private Property parseBody() throws IOException, ParseException { in parseBody()
276 throw new ParseException("Invalid LENGTH value", mParser.pos()); in parseBody()
[all …]
DBmsgTokenizer.java21 import java.text.ParseException;
45 public Property next(boolean alwaysReturn) throws ParseException { in next()
56 throw new ParseException("Property or empty line expected", pos()); in next()
69 public Property next() throws ParseException { in next()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DXmlParseUtils.java32 public static class ParseException extends XmlPullParserException { class in XmlParseUtils
33 public ParseException(final String msg, final XmlPullParser parser) { in ParseException() method in XmlParseUtils.ParseException
39 public static final class IllegalStartTag extends ParseException {
46 public static final class IllegalEndTag extends ParseException {
53 public static final class IllegalAttribute extends ParseException {
61 public static final class NonEmptyTag extends ParseException{
80 throw new ParseException( in checkAttributeExists()
/packages/modules/NetworkStack/common/captiveportal/src/android/net/captiveportal/
DCaptivePortalProbeSpec.java32 import java.text.ParseException;
65 public static CaptivePortalProbeSpec parseSpec(@NonNull String spec) throws ParseException, in parseSpec()
68 throw new ParseException("Empty probe spec", 0 /* errorOffset */); in parseSpec()
73 throw new ParseException("Probe spec does not have 3 parts", 0 /* errorOffset */); in parseSpec()
86 throws ParseException { in parsePatternIfNonEmpty()
93 throw new ParseException( in parsePatternIfNonEmpty()
108 } catch (ParseException | MalformedURLException e) { in parseSpecOrNull()
130 } catch (ParseException | MalformedURLException e) { in parseCaptivePortalProbeSpecs()
172 @Nullable Pattern locationHeaderRegex) throws ParseException { in RegexMatchProbeSpec()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DDnsPacketUtilsTest.java25 import android.net.ParseException;
79 assertThrows(DnsPacket.ParseException.class, () -> DnsRecordParser.parseName( in testParsingAnswerSectionNameCompressed()
137 assertThrows(ParseException.class, () -> in testDomainNameToLabels()
139 assertThrows(ParseException.class, () -> in testDomainNameToLabels()
141 assertThrows(ParseException.class, () -> in testDomainNameToLabels()
143 assertThrows(ParseException.class, () -> in testDomainNameToLabels()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DWebAddress.java65 public WebAddress(String address) throws ParseException { in WebAddress()
91 throw new ParseException("Bad port"); in WebAddress()
107 throw new ParseException("Bad address"); in WebAddress()
138 public class ParseException extends Exception { class in WebAddress
141 ParseException(String response) { in ParseException() method in WebAddress.ParseException
/packages/modules/Connectivity/framework/src/android/net/
DParseException.java25 public class ParseException extends RuntimeException { class
28 public ParseException(@NonNull String response) { in ParseException() method in ParseException
33 public ParseException(@NonNull String response, @NonNull Throwable cause) { in ParseException() method in ParseException
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacket.java960 public static class ParseException extends Exception { class in DhcpPacket
962 public ParseException(int errorCode, String msg, Object... args) { in ParseException() method in DhcpPacket.ParseException
996 throws ParseException { in decodeFullPacket()
1046 throw new ParseException(DhcpErrorEvent.L2_TOO_SHORT, in decodeFullPacket()
1059 throw new ParseException(DhcpErrorEvent.L2_WRONG_ETH_TYPE, in decodeFullPacket()
1066 throw new ParseException(DhcpErrorEvent.L3_TOO_SHORT, in decodeFullPacket()
1073 throw new ParseException( in decodeFullPacket()
1091 throw new ParseException( in decodeFullPacket()
1118 throw new ParseException(DhcpErrorEvent.L4_WRONG_PORT, in decodeFullPacket()
1125 throw new ParseException(DhcpErrorEvent.BOOTP_TOO_SHORT, in decodeFullPacket()
[all …]
/packages/modules/Virtualization/tests/hostside/helper/java/com/android/microdroid/test/host/
DKvmHypTracer.java30 import java.text.ParseException;
151 throw new ParseException("Incorrect CPU number: " + cpu, 0); in getDurationStats()
155 throw new ParseException("Time must not go backward: " + cur, 0); in getDurationStats()
160 throw new ParseException("Hyp event found twice in a row: " + trace + " - " + l, in getDurationStats()
173 throw new ParseException("Unexpected line in trace" + l, 0); in getDurationStats()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/bip/
DBipAttachmentFormat.java69 throw new ParseException("ContentType is required and must be valid"); in BipAttachmentFormat()
72 throw new ParseException("Name is required and must be valid"); in BipAttachmentFormat()
83 } catch (ParseException e) { in BipAttachmentFormat()
91 } catch (ParseException e) { in BipAttachmentFormat()
/packages/modules/NetworkStack/src/android/net/dhcp6/
DDhcp6Packet.java255 throws ParseException { in decode()
286 throw new ParseException(e.getMessage()); in decode()
387 public static class ParseException extends Exception { class in Dhcp6Packet
388 ParseException(String msg) { in ParseException() method in Dhcp6Packet.ParseException
439 private static Dhcp6Packet decode(@NonNull final ByteBuffer packet) throws ParseException { in decode()
523 throw new ParseException( in decode()
528 throw new ParseException(e.getMessage()); in decode()
558 throw new ParseException("Unimplemented DHCP6 message type %d" + messageType); in decode()
579 throws ParseException { in decode()

12345