Merge "Expand logging capabilities of Tethering subsystem" am: 29f9f2d546 am: 96f9371a66
am: 945ff184c2 Change-Id: Ia9d15f0dcc49ce070f8684eb8c8481310859faa5
This commit is contained in:
@@ -178,6 +178,9 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
implements PendingIntent.OnFinished {
|
implements PendingIntent.OnFinished {
|
||||||
private static final String TAG = ConnectivityService.class.getSimpleName();
|
private static final String TAG = ConnectivityService.class.getSimpleName();
|
||||||
|
|
||||||
|
public static final String DIAG_ARG = "--diag";
|
||||||
|
public static final String SHORT_ARG = "--short";
|
||||||
|
|
||||||
private static final boolean DBG = true;
|
private static final boolean DBG = true;
|
||||||
private static final boolean VDBG = false;
|
private static final boolean VDBG = false;
|
||||||
|
|
||||||
@@ -1860,7 +1863,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
final IndentingPrintWriter pw = new IndentingPrintWriter(writer, " ");
|
final IndentingPrintWriter pw = new IndentingPrintWriter(writer, " ");
|
||||||
if (!DumpUtils.checkDumpPermission(mContext, TAG, pw)) return;
|
if (!DumpUtils.checkDumpPermission(mContext, TAG, pw)) return;
|
||||||
|
|
||||||
if (argsContain(args, "--diag")) {
|
if (argsContain(args, DIAG_ARG)) {
|
||||||
dumpNetworkDiagnostics(pw);
|
dumpNetworkDiagnostics(pw);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -1925,7 +1928,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
pw.println();
|
pw.println();
|
||||||
dumpAvoidBadWifiSettings(pw);
|
dumpAvoidBadWifiSettings(pw);
|
||||||
|
|
||||||
if (argsContain(args, "--short") == false) {
|
if (argsContain(args, SHORT_ARG) == false) {
|
||||||
pw.println();
|
pw.println();
|
||||||
synchronized (mValidationLogs) {
|
synchronized (mValidationLogs) {
|
||||||
pw.println("mValidationLogs (most recent first):");
|
pw.println("mValidationLogs (most recent first):");
|
||||||
|
|||||||
Reference in New Issue
Block a user