History log of /frameworks/base/core/java/android/app/timezone/RulesManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b214bc44f1942b957f60dad75517e07cede77f18 18-Dec-2017 Neil Fuller <nfuller@google.com> Split query permission from update permission

Split time zone rules query permission from update permission.
This would allow an app like Settings to determine the current rules
update state, which would enable it to show the version of rules
the device came with, if there have been any updates and whether
a reboot is needed for changes to take effect.

Test: PTS: run -m PtsTimeZoneTestCases
Test: atest FrameworksServicesTests:RulesManagerServiceTest
Bug: 69443060
Change-Id: Ia5d31814d7caee842f5e28870fab61f7c7129386
/frameworks/base/core/java/android/app/timezone/RulesManager.java
b144227742ada7fd693684a5bd2d53abd8e7c499 18-Dec-2017 Neil Fuller <nfuller@google.com> Add support for time zone notifications

Add support for time zone notifications to RulesManagerService.

This change adds new intents that are broadcast after
a time zone rules update is staged / unstaged. This will allow
another component on the device to handle notifications telling
the user to restart the device.

Bug: 69443060
Test: atest FrameworksServicesTests
Test: Manual install
Change-Id: I4fc4b5715380d84d87cdb43c05aee2f8f9c5d277
/frameworks/base/core/java/android/app/timezone/RulesManager.java
ce8db9911494225fcd99711d7df85a130de5a6ce 14-Dec-2017 Jeff Sharkey <jsharkey@android.com> Add more IntDef prefixes for auto-documenting.

Test: builds, boots
Bug: 70177949
Exempt-From-Owner-Approval: annotation-only changes
Change-Id: I76dde6054e06f52240bd4b1a0f196dcb74623608
/frameworks/base/core/java/android/app/timezone/RulesManager.java
a7d21f8c321ae7149b68625a5c8502abe005ed7b 05-Dec-2017 Neil Fuller <nfuller@google.com> Tidy up changes for timezone update code

Tidy up changes for timezone update code:
1) Remove some TODOs
2) Fix some logging
3) Remove ClockHelper in favor of java.time.Clock /
SystemClock.elapsedRealtimeClock()

No functional changes intended.

Bug: 31008728
Test: PTS: run pts -m PtsTimeZoneTestCases
Change-Id: Ib1ae04cbadfe71e4e340a0572e82f0bc3f68ef30
/frameworks/base/core/java/android/app/timezone/RulesManager.java
baf1c3df80499b6c9895a0988dfc0e6fd602674e 03-Jul-2017 Neil Fuller <nfuller@google.com> Add TimeZoneRulesDataContract to system API

Add TimeZoneRulesDataContract to system API and remove
TODOs to add other classes that should not now be needed
in the system API (since they are used by a platform-only
app).

Bug: 31008728
Test: make droid
Change-Id: I600e7b08853b86b27463193411cf85207ae09ce8
/frameworks/base/core/java/android/app/timezone/RulesManager.java
fe6ec56cce981731be7d0bc0e61a0411d0a0d2cf 16-Mar-2017 Neil Fuller <nfuller@google.com> Time zone update API classes

Time zone update API classes. Currently hidden but they
will go on to be unhidden in future.

This forms the basis of client and system server code to
support time zone updates.

Tests can be run with:

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

Bug: 31008728
Test: See above.
Change-Id: I668bc8ac0cb78f3d4d9a4b7ad6ac1534b88af833
/frameworks/base/core/java/android/app/timezone/RulesManager.java