NetStats: Don't update stats when screen is off

Also moved registering of broadcast receiver and settings
observer to onAttachedToWindow() and unregistering to
onDetachedFromWindow() to avoid these being leaked.

Change-Id: Ia131a0db65c4c762b7f28493e812f9fb21358a27
Active Display: Catch possible NPE during handleDismissNotification()

[log]

* AD doesn't register if notification has been cleared on different device
  (computer) so catch the NPE that would ensue

Change-Id: Ibdb7f526d2c709ebf7a888de717247b7a6114e3e
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/activedisplay/ActiveDisplayView.java