OSDN Git Service

Logging improvements for time zone updates
authorNeil Fuller <nfuller@google.com>
Thu, 20 Jul 2017 10:00:35 +0000 (11:00 +0100)
committerNeil Fuller <nfuller@google.com>
Thu, 20 Jul 2017 12:13:20 +0000 (13:13 +0100)
commitd857f676744af55c79c4871c881bf9598f6b21e9
treed83853b76c8c8cd82080ede52b9f1855dde5d341
parent9e3f886dca4bc2cc973fe194b2f6ba438928c48b
Logging improvements for time zone updates

Logging improvements for time zone updates:
1) Add EventLog entries time zone update service interactions.
2) Add more information to dumpsys logs to improve debugging.

Unit tests run with:

make -j30 FrameworksServicesTests
adb install -r -g \
  "out/target/product/angler/data/app/FrameworksServicesTests/FrameworksServicesTests.apk"
adb shell am instrument -e package com.android.server.timezone -w \
  com.android.frameworks.servicestests \
  "com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner"

Bug: 31008728
Test: See above for unit testing.
Test: Internal xTS tests
Test: adb shell dumpsys timezone
Test: adb logcat -b events -v threadtime -v printable -v uid -d *:v
Change-Id: I9356f4694e60b49e4b06aadd632d1bad517b8a29
services/core/java/com/android/server/EventLogTags.logtags
services/core/java/com/android/server/timezone/IntentHelperImpl.java
services/core/java/com/android/server/timezone/RulesManagerService.java