am 298d5f42: am b84f21c5: am bc0edecb: Merge "Increase readability of connectivity event log." into jb-mr1.1-dev
* commit '298d5f422e6af0d12499173c403d4ff8dda3aeda': Increase readability of connectivity event log.
This commit is contained in:
@@ -2686,18 +2686,8 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
||||
state + "/" + info.getDetailedState());
|
||||
}
|
||||
|
||||
// Connectivity state changed:
|
||||
// [31-14] Reserved for future use
|
||||
// [13-10] Network subtype (for mobile network, as defined
|
||||
// by TelephonyManager)
|
||||
// [9-4] Detailed state ordinal (as defined by
|
||||
// NetworkInfo.DetailedState)
|
||||
// [3-0] Network type (as defined by ConnectivityManager)
|
||||
int eventLogParam = (info.getType() & 0xf) |
|
||||
((info.getDetailedState().ordinal() & 0x3f) << 4) |
|
||||
(info.getSubtype() << 10);
|
||||
EventLog.writeEvent(EventLogTags.CONNECTIVITY_STATE_CHANGED,
|
||||
eventLogParam);
|
||||
EventLogTags.writeConnectivityStateChanged(
|
||||
info.getType(), info.getSubtype(), info.getDetailedState().ordinal());
|
||||
|
||||
if (info.getDetailedState() ==
|
||||
NetworkInfo.DetailedState.FAILED) {
|
||||
|
||||
Reference in New Issue
Block a user