Make change and version bump to r_aml_300802100 for mainline module file: packages/Tethering/apex/manifest.json

Change-Id: I7af1c3a55b61516884940432f9146eb26c169668
This commit is contained in:
android-build-team Robot
2020-06-19 07:13:49 +00:00
4 changed files with 16 additions and 7 deletions

View File

@@ -38,6 +38,8 @@ import android.os.MessageQueue;
import android.system.ErrnoException; import android.system.ErrnoException;
import android.util.Log; import android.util.Log;
import com.android.net.module.util.DnsPacket;
import java.io.FileDescriptor; import java.io.FileDescriptor;
import java.lang.annotation.Retention; import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy; import java.lang.annotation.RetentionPolicy;
@@ -97,7 +99,7 @@ public final class DnsResolver {
@interface DnsError {} @interface DnsError {}
/** /**
* Indicates that there was an error parsing the response the query. * Indicates that there was an error parsing the response the query.
* The cause of this error is available via getCause() and is a ParseException. * The cause of this error is available via getCause() and is a {@link ParseException}.
*/ */
public static final int ERROR_PARSE = 0; public static final int ERROR_PARSE = 0;
/** /**
@@ -290,8 +292,15 @@ public final class DnsResolver {
} }
try { try {
mAllAnswers.addAll(new DnsAddressAnswer(answer).getAddresses()); mAllAnswers.addAll(new DnsAddressAnswer(answer).getAddresses());
} catch (ParseException e) { } catch (DnsPacket.ParseException e) {
mDnsException = new DnsException(ERROR_PARSE, e); // Convert the com.android.net.module.util.DnsPacket.ParseException to an
// android.net.ParseException. This is the type that was used in Q and is implied
// by the public documentation of ERROR_PARSE.
//
// DnsPacket cannot throw android.net.ParseException directly because it's @hide.
ParseException pe = new ParseException(e.reason, e.getCause());
pe.setStackTrace(e.getStackTrace());
mDnsException = new DnsException(ERROR_PARSE, pe);
} }
maybeReportAnswer(); maybeReportAnswer();
} }

View File

@@ -21,13 +21,14 @@ import static android.system.OsConstants.AF_INET6;
import android.annotation.NonNull; import android.annotation.NonNull;
import android.compat.annotation.UnsupportedAppUsage; import android.compat.annotation.UnsupportedAppUsage;
import android.net.shared.Inet4AddressUtils;
import android.os.Build; import android.os.Build;
import android.system.ErrnoException; import android.system.ErrnoException;
import android.system.Os; import android.system.Os;
import android.util.Log; import android.util.Log;
import android.util.Pair; import android.util.Pair;
import com.android.net.module.util.Inet4AddressUtils;
import java.io.FileDescriptor; import java.io.FileDescriptor;
import java.math.BigInteger; import java.math.BigInteger;
import java.net.Inet4Address; import java.net.Inet4Address;

View File

@@ -21,11 +21,11 @@ import android.annotation.Nullable;
import android.annotation.SystemApi; import android.annotation.SystemApi;
import android.annotation.TestApi; import android.annotation.TestApi;
import android.compat.annotation.UnsupportedAppUsage; import android.compat.annotation.UnsupportedAppUsage;
import android.net.shared.InetAddressUtils;
import android.os.Parcel; import android.os.Parcel;
import android.os.Parcelable; import android.os.Parcelable;
import com.android.internal.util.Preconditions; import com.android.internal.util.Preconditions;
import com.android.net.module.util.InetAddressUtils;
import java.net.InetAddress; import java.net.InetAddress;
import java.util.ArrayList; import java.util.ArrayList;

View File

@@ -16,8 +16,7 @@
package android.net; package android.net;
import static android.net.shared.Inet4AddressUtils.inet4AddressToIntHTL; import static com.android.net.module.util.Inet4AddressUtils.inet4AddressToIntHTL;
import static com.android.testutils.MiscAssertsKt.assertFieldCountEquals; import static com.android.testutils.MiscAssertsKt.assertFieldCountEquals;
import static com.android.testutils.ParcelUtilsKt.parcelingRoundTrip; import static com.android.testutils.ParcelUtilsKt.parcelingRoundTrip;