OSDN Git Service

DO NOT MERGE Captive portal systel log improvements
authorHugo Benichi <hugobenichi@google.com>
Mon, 21 Nov 2016 04:50:05 +0000 (13:50 +0900)
committerHugo Benichi <hugobenichi@google.com>
Fri, 9 Dec 2016 07:14:32 +0000 (16:14 +0900)
commita4f17bcbdf787852267a6f24d83ca2011f0decac
treede289f7bcc317fbc1390e46a902bc44ac930d511
parentff112f6ad21aa693ad67514cbeb35f6186165f8c
DO NOT MERGE Captive portal systel log improvements

This patch improves system logging around captive portal detection to
make inspection of bug reports sligthly easier:

- NetworkMonitor now logs by default CMD_CAPTIVE_PORTAL_RECHECK and
  CMD_CAPTIVE_PORTAL_APP_FINISHED. Other system logs are kept off with
  a new VDBG boolean contant,
- NetworkNotificationManager now prints the notification id at
  notification time. This allows to easily correlate show and clear.
- errors in NetworkNotificationManager are logged as Throwable instead
  of through their implicit toString() method.

Test: $ runtest frameworks-net
Bug: 32198726

(cherry picked from commit 8b025bf108c729156b40159038befa0e6c5bebce)

Change-Id: I7780c389a94c4b9fa226f53b02fe5960d1c08618
services/core/java/com/android/server/connectivity/NetworkMonitor.java
services/core/java/com/android/server/connectivity/NetworkNotificationManager.java