/aosp12/packages/modules/NetworkStack/tests/unit/src/android/net/captiveportal/ |
H A 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) 83 @Test(expected = ParseException.class) 88 @Test(expected = ParseException.class) 93 @Test(expected = ParseException.class) [all …]
|
/aosp12/frameworks/base/core/java/com/android/internal/util/ |
H A D | TypedProperties.java | 82 ParseException(StreamTokenizer state, String expected) { in ParseException() method in TypedProperties.ParseException 161 throw new ParseException(st, "type name"); in parse() 165 throw new ParseException(st, "valid type name"); in parse() 173 throw new ParseException(st, "'('"); in parse() 180 throw new ParseException(st, "property name"); in parse() 192 throw new ParseException(st, "')'"); in parse() 199 throw new ParseException(st, "'='"); in parse() 209 throw new ParseException(st, in parse() 219 throw new ParseException(st, "';'"); in parse() 247 throw new ParseException(st, "boolean constant"); in parseValue() [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/timezone/ |
H A D | PackageStatusStorage.java | 37 import java.text.ParseException; 114 } catch (ParseException e) { in getPackageStatus() 142 ParseException e2 = new ParseException("Error reading package status", 0); in getPackageStatusLocked() 184 } catch (ParseException e) { in generateCheckToken() 260 ParseException e2 = new ParseException("Unable to read file", 0); in getCurrentOptimisticLockId() 268 throws ParseException { in parseToPackageStatusTag() 282 ParseException e2 = new ParseException("Error reading XML", 0); in parseToPackageStatusTag() 299 } catch (ParseException e) { in writePackageStatusWithOptimisticLockCheck() 362 throws ParseException { in getNullableIntAttribute() 372 throw new ParseException( in getNullableIntAttribute() [all …]
|
/aosp12/frameworks/base/tools/powermodel/src/com/android/powermodel/component/ |
H A D | CpuProfile.java | 23 import com.android.powermodel.ParseException; 54 public void setSuspendMa(float value) throws ParseException { in setSuspendMa() 58 public void setIdleMa(float value) throws ParseException { in setIdleMa() 62 public void setActiveMa(float value) throws ParseException { in setActiveMa() 66 public void setCoreCount(int[] value) throws ParseException { in setCoreCount() 70 public void setClusterPower(int cluster, float value) throws ParseException { in setClusterPower() 74 public void setCoreSpeeds(int cluster, int[] value) throws ParseException { in setCoreSpeeds() 83 throw new ParseException("cluster " + cluster in setCoreSpeeds() 90 public void setCorePower(int cluster, float[] value) throws ParseException { in setCorePower() 99 throw new ParseException("cluster " + cluster in setCorePower() [all …]
|
H A D | ModemProfile.java | 22 import com.android.powermodel.ParseException; 61 public void setSleepMa(float value) throws ParseException { in setSleepMa() 65 public void setIdleMa(float value) throws ParseException { in setIdleMa() 69 public void setRxMa(float value) throws ParseException { in setRxMa() 73 public void setTxMa(float[] value) throws ParseException { in setTxMa() 77 public void setScanningMa(float value) throws ParseException { in setScanningMa() 81 public ModemProfile build() throws ParseException { in build()
|
H A D | GpsProfile.java | 22 import com.android.powermodel.ParseException; 35 public void setOnMa(float value) throws ParseException { in setOnMa() 39 public void setSignalMa(float[] value) throws ParseException { in setSignalMa() 43 public GpsProfile build() throws ParseException { in build()
|
/aosp12/packages/modules/NetworkStack/src/com/android/networkstack/arp/ |
H A 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() 135 throw new ParseException("Incorrect opCode: " + opCode); in parseArpPacket() 155 throw new ParseException("Invalid buffer position"); in parseArpPacket() 157 throw new ParseException("Invalid MAC address representation"); in parseArpPacket() 159 throw new ParseException("Invalid IP address of Host"); in parseArpPacket() 166 public static class ParseException extends Exception { class in ArpPacket [all …]
|
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/ |
H A 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 …]
|
H A 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 …]
|
/aosp12/frameworks/libs/net/common/framework/com/android/net/module/util/ |
H A D | DnsPacket.java | 40 public static class ParseException extends RuntimeException { class in DnsPacket 42 public ParseException(@NonNull String reason) { in ParseException() method in DnsPacket.ParseException 47 public ParseException(@NonNull String reason, @NonNull Throwable cause) { in ParseException() method in DnsPacket.ParseException 125 throws BufferUnderflowException, ParseException { in DnsRecord() 128 throw new ParseException( in DnsRecord() 181 BufferUnderflowException, ParseException { in parseName() 183 throw new ParseException("Failed to parse name, too many labels"); in parseName() 190 throw new ParseException("Parse name fail, bad label type"); in parseName() 226 protected DnsPacket(@NonNull byte[] data) throws ParseException { in DnsPacket() 233 throw new ParseException("Parse Header fail, bad input data", e); in DnsPacket() [all …]
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A 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()
|
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/incident/ |
H A 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()
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/ |
H A 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() 243 private Property parseBody() throws IOException, ParseException { in parseBody() 318 throw new ParseException("Invalid LENGTH value", mParser.pos()); in parseBody() 350 throw new ParseException("Invalid LENGTH value", mParser.pos()); in parseBody() [all …]
|
H A 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()
|
/aosp12/build/make/tools/product_config/src/com/android/build/config/ |
H A D | Options.java | 90 private static class ParseException extends Exception { class in Options.Parser 91 public ParseException(String message) { in ParseException() method in Options.Parser.ParseException 131 throw new ParseException("Unknown command line argument: " + arg); in parse() 136 } catch (ParseException ex) { in parse() 192 private String requireNextStringArg(String arg) throws ParseException { in requireNextStringArg() 195 throw new ParseException(arg + " requires a string argument."); in requireNextStringArg() 200 private int requireNextNumberArg(String arg) throws ParseException { in requireNextNumberArg() 203 throw new ParseException(arg + " requires a numeric argument."); in requireNextNumberArg() 208 throw new ParseException(arg + " requires a numeric argument. found: " + val); in requireNextNumberArg() 212 private void handleErrorCode(String arg, Errors.Level level) throws ParseException { in handleErrorCode()
|
H A D | CsvParser.java | 41 public static class ParseException extends Exception { class in CsvParser 45 public ParseException(int line, int column, String message) { in ParseException() method in CsvParser.ParseException 111 throws ParseException, IOException { in parse() 159 throw new ParseException(line, column, in parse() 180 throw new ParseException(line, column, in parse()
|
/aosp12/packages/modules/NetworkStack/common/captiveportal/src/android/net/captiveportal/ |
H A 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()
|
/aosp12/system/timezone/input_tools/android/telephonylookup_generator/src/main/java/com/android/libcore/timezone/telephonylookup/ |
H A D | TelephonyLookupProtoFileSupport.java | 24 import java.text.ParseException; 34 throws IOException, ParseException { in parseTelephonyLookupTextFile() 40 } catch (TextFormat.ParseException e) { in parseTelephonyLookupTextFile() 41 ParseException e2 = new ParseException("Error reading proto file: " + file, 0); in parseTelephonyLookupTextFile()
|
/aosp12/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
H A D | SipHelper.java | 29 import java.text.ParseException; 95 throws ParseException { in createFromHeader() 104 throws ParseException { in createToHeader() 228 } catch (ParseException e) { in sendRegister() 305 } catch (ParseException e) { in sendInvite() 330 } catch (ParseException e) { in sendReinvite() 364 } catch (ParseException e) { in sendRinging() 396 } catch (ParseException e) { in sendInviteOk() 416 } catch (ParseException e) { in sendInviteBusyHere() 458 } catch (ParseException e) { in sendResponse() [all …]
|
/aosp12/frameworks/base/tools/powermodel/src/com/android/powermodel/ |
H A D | ParseException.java | 19 public class ParseException extends Exception { class 22 public ParseException(int line, String message, Throwable th) { in ParseException() method in ParseException 27 public ParseException(int line, String message) { in ParseException() method in ParseException 31 public ParseException(String message) { in ParseException() method in ParseException
|
H A D | RawBatteryStats.java | 538 int startIndex, int endIndex) throws ParseException; in setArray() 576 int startIndex, int endIndex) throws ParseException { in setArray() 584 throw new ParseException(lineNumber, "can't parse field " in setArray() 616 int startIndex, int endIndex) throws ParseException { in setArray() 624 throw new ParseException(lineNumber, "can't parse field " in setArray() 654 int startIndex, int endIndex) throws ParseException { in setArray() 718 throw new ParseException(lineNumber, "Could not find enum for field " in setField() 730 int startIndex, int endIndex) throws ParseException { in setArray() 816 } catch (ParseException ex) { in create() 950 private void parseImpl(InputStream input) throws ParseException, IOException { in parseImpl() [all …]
|
/aosp12/system/timezone/input_tools/android/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/ |
H A D | CountryZonesFileSupport.java | 24 import java.text.ParseException; 36 throws IOException, ParseException { in parseCountryZonesTextFile() 42 } catch (TextFormat.ParseException e) { in parseCountryZonesTextFile() 43 ParseException e2 = new ParseException("Error reading proto file: " + file, 0); in parseCountryZonesTextFile()
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
H A 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
|
/aosp12/packages/modules/Connectivity/framework/src/android/net/ |
H A 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
|
/aosp12/packages/modules/Connectivity/tests/common/java/ |
H A D | ParseExceptionTest.kt | 17 import android.net.ParseException 38 val exception = ParseException(testMessage, base) 47 val exception = ParseException(testMessage)
|