/packages/modules/NetworkStack/tests/unit/src/android/net/captiveportal/ |
D | CaptivePortalProbeSpecTest.java | 30 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/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipPixelTest.java | 141 @Test(expected = ParseException.class) 146 @Test(expected = ParseException.class) 151 @Test(expected = ParseException.class) 156 @Test(expected = ParseException.class) 161 @Test(expected = ParseException.class) 166 @Test(expected = ParseException.class) 171 @Test(expected = ParseException.class) 176 @Test(expected = ParseException.class) 181 @Test(expected = ParseException.class) 186 @Test(expected = ParseException.class) [all …]
|
D | BipDatetimeTest.java | 113 @Test(expected = ParseException.class) 118 @Test(expected = ParseException.class) 123 @Test(expected = ParseException.class) 128 @Test(expected = ParseException.class) 133 @Test(expected = ParseException.class) 138 @Test(expected = ParseException.class) 143 @Test(expected = ParseException.class) 148 @Test(expected = ParseException.class) 153 @Test(expected = ParseException.class) 158 @Test(expected = ParseException.class) [all …]
|
D | BipEncodingTest.java | 122 @Test(expected = ParseException.class) 127 @Test(expected = ParseException.class) 132 @Test(expected = ParseException.class) 137 @Test(expected = ParseException.class)
|
D | BipImageFormatTest.java | 235 @Test(expected = ParseException.class) 240 @Test(expected = ParseException.class) 245 @Test(expected = ParseException.class) 250 @Test(expected = ParseException.class) 255 @Test(expected = ParseException.class) 260 @Test(expected = ParseException.class)
|
/packages/modules/NetworkStack/src/com/android/networkstack/arp/ |
D | ArpPacket.java | 96 throws ParseException { in parseArpPacket() 99 throw new ParseException("Invalid packet length: " + length); in parseArpPacket() 110 throw new ParseException("Incorrect Ether Type: " + etherType); in parseArpPacket() 115 throw new ParseException("Incorrect HW Type: " + hwType); in parseArpPacket() 120 throw new ParseException("Incorrect Protocol Type: " + protoType); in parseArpPacket() 125 throw new ParseException("Incorrect HW address length: " + hwAddrLength); in parseArpPacket() 130 throw new ParseException("Incorrect Protocol address length: " + ipAddrLength); in parseArpPacket() 135 throw new ParseException("Incorrect opCode: " + opCode); in parseArpPacket() 153 throw new ParseException("Invalid index when wrapping a byte array into a buffer"); in parseArpPacket() 155 throw new ParseException("Invalid buffer position"); in parseArpPacket() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/ |
D | BmessageParser.java | 34 import java.text.ParseException; 84 } catch (ParseException e) { in createBmessage() 92 private ParseException expected(Property... props) { in expected() 104 return new ParseException("Expected: " + sb.toString(), mParser.pos()); in expected() 107 private void parse(String str) throws IOException, ParseException { in parse() 150 private Property parseProperties() throws ParseException { in parseProperties() 193 private Property parseEnvelope(int level) throws IOException, ParseException { in parseEnvelope() 203 throw new ParseException("bEnvelope is nested more than 3 times", mParser.pos()); in parseEnvelope() 243 private Property parseBody() throws IOException, ParseException { in parseBody() 279 throw new ParseException("Invalid LENGTH value", mParser.pos()); in parseBody() [all …]
|
D | BmsgTokenizer.java | 21 import java.text.ParseException; 46 public Property next(boolean alwaysReturn) throws ParseException { in next() 57 throw new ParseException("Property or empty line expected", pos()); in next() 70 public Property next() throws ParseException { in next()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/incident/ |
D | ReportDetails.java | 46 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() 133 throw new ParseException("Image count is greater than the limit of " in parseImages() 144 throw new ParseException("Unsupported image type " + mimeType); in parseImages()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | XmlParseUtils.java | 32 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/ |
D | CaptivePortalProbeSpec.java | 32 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/NetworkStack/src/android/net/dhcp/ |
D | DhcpPacket.java | 942 public static class ParseException extends Exception { class in DhcpPacket 944 public ParseException(int errorCode, String msg, Object... args) { in ParseException() method in DhcpPacket.ParseException 978 throws ParseException { in decodeFullPacket() 1027 throw new ParseException(DhcpErrorEvent.L2_TOO_SHORT, in decodeFullPacket() 1040 throw new ParseException(DhcpErrorEvent.L2_WRONG_ETH_TYPE, in decodeFullPacket() 1047 throw new ParseException(DhcpErrorEvent.L3_TOO_SHORT, in decodeFullPacket() 1054 throw new ParseException( in decodeFullPacket() 1072 throw new ParseException( in decodeFullPacket() 1099 throw new ParseException(DhcpErrorEvent.L4_WRONG_PORT, in decodeFullPacket() 1106 throw new ParseException(DhcpErrorEvent.BOOTP_TOO_SHORT, in decodeFullPacket() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
D | WebAddress.java | 65 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/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipAttachmentFormat.java | 73 throw new ParseException("ContentType is required and must be valid"); in BipAttachmentFormat() 76 throw new ParseException("Name is required and must be valid"); in BipAttachmentFormat() 87 } catch (ParseException e) { in BipAttachmentFormat() 95 } catch (ParseException e) { in BipAttachmentFormat()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | ParseException.java | 25 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
|
D | DnsResolver.java | 295 } catch (DnsPacket.ParseException e) { in onAnswer() 301 ParseException pe = new ParseException(e.reason, e.getCause()); in onAnswer() 543 DnsAddressAnswer(@NonNull byte[] data) throws ParseException { in DnsAddressAnswer() 546 throw new ParseException("Not an answer packet"); in DnsAddressAnswer() 549 throw new ParseException("No question found"); in DnsAddressAnswer()
|
/packages/modules/NetworkStack/src/com/android/networkstack/packets/ |
D | NeighborAdvertisement.java | 102 throws ParseException { in parse() 105 throw new ParseException("Invalid packet length: " + length); in parse() 122 public static class ParseException extends Exception { class in NeighborAdvertisement 123 ParseException(String message) { in ParseException() method in NeighborAdvertisement.ParseException
|
/packages/modules/Connectivity/tests/common/java/ |
D | ParseExceptionTest.kt | 17 import android.net.ParseException 38 val exception = ParseException(testMessage, base) in testConstructor_WithCause() 47 val exception = ParseException(testMessage) in testConstructor_NoCause()
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/sip/ |
D | SipUtils.java | 48 import java.text.ParseException; 96 } catch (ParseException exception) { in createUri() 113 throws ParseException { in buildInvite() 217 throws ParseException { in generateContactHeader() 251 public static SIPRequest buildBye(SIPRequest invite) throws ParseException { in buildBye() 290 throws ParseException { in buildInviteResponse()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpPacketTest.java | 36 import static android.net.dhcp.DhcpPacket.ParseException; 232 } catch (ParseException expected) { in assertLeaseTimeParses() 550 } catch (DhcpPacket.ParseException expected) { in testBadIpPacket() 569 } catch (DhcpPacket.ParseException expected) { in testBadDhcpPacket() 598 } catch (DhcpPacket.ParseException expected) { in testBadTruncatedOffer() 629 } catch (DhcpPacket.ParseException expected) { in testBadOfferWithoutACookie() 661 } catch (DhcpPacket.ParseException expected) { in testOfferWithBadCookie() 698 } catch (ParseException e) { in testTruncatedOfferPackets() 715 } catch (ParseException e) { in testRandomPackets() 1072 } catch (ParseException expected) {} in testUdpInvalidDstPort()
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/sdp/ |
D | SdpMedia.java | 25 import java.text.ParseException; 37 public static Builder parseMediaLine(String line) throws ParseException { in parseMediaLine() 43 throw new ParseException("Invalid media line", 0); in parseMediaLine()
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/registration/ |
D | MessageConverter.java | 28 import java.text.ParseException; 75 public static Message toStackMessage(SipMessage message) throws ParseException { in toStackMessage() 105 throw new ParseException("Failed to invoke parseSIPMessage", 0); in toStackMessage()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/arp/ |
D | ArpPacketTest.java | 184 assertThrows(ArpPacket.ParseException.class, () -> ArpPacket.parseArpPacket( in testParseArpPacket_invalidByteBufferParameters() 190 assertThrows(ArpPacket.ParseException.class, () -> ArpPacket.parseArpPacket( in testParseArpPacket_truncatedPacket() 196 assertThrows(ArpPacket.ParseException.class, () -> ArpPacket.parseArpPacket( in testParseArpPacket_truncatedMacAddress()
|
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/service/chat/ |
D | SimpleChatSession.java | 59 import java.text.ParseException; 196 } catch (ParseException e) { 216 } catch (ParseException | IOException e) { 234 } catch (ParseException e) { 274 } catch (ParseException e) { 355 } catch (ParseException | IOException e) {
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapAppParams.java | 24 import java.text.ParseException; 207 throws IllegalArgumentException, ParseException { in BluetoothMapAppParams() 224 throws ParseException, IllegalArgumentException { in parseParams() 866 public void setFilterPeriodBegin(String filterPeriodBegin) throws ParseException { in setFilterPeriodBegin() 886 public void setFilterLastActivityBegin(String filterPeriodBegin) throws ParseException { in setFilterLastActivityBegin() 910 public void setFilterPeriodEnd(String filterPeriodEnd) throws ParseException { in setFilterPeriodEnd() 926 public void setFilterLastActivityEnd(String filterPeriodEnd) throws ParseException { in setFilterLastActivityEnd() 1134 public void setLastActivity(String lastActivity) throws ParseException { in setLastActivity() 1380 public void setMseTime(String mseTime) throws ParseException { in setMseTime()
|