summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2017-07-12 16:00:01 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-07-12 16:00:01 +0000
commit6f5c5f07382484a52c880eb48e402896dd688da1 (patch)
tree7c1c82eca12197a47c1fca37870d08ae03c86f16
parentec78bc46491489026ca8dcf8535d4bce59a4261a (diff)
parentb6a9e3bc247d8bc0f41ea2f2e97825a93caa5add (diff)
downloadTimeZoneUpdater-6f5c5f07382484a52c880eb48e402896dd688da1.tar.gz
Track TimeZoneDataContract changes am: 53a61b123b
am: b6a9e3bc24 Change-Id: Ide7595010742d416ecdf7a90de909c54f911fc6c
-rw-r--r--src/main/com/android/timezone/updater/RulesCheckReceiver.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/main/com/android/timezone/updater/RulesCheckReceiver.java b/src/main/com/android/timezone/updater/RulesCheckReceiver.java
index 15dcad5..79abfd4 100644
--- a/src/main/com/android/timezone/updater/RulesCheckReceiver.java
+++ b/src/main/com/android/timezone/updater/RulesCheckReceiver.java
@@ -54,14 +54,14 @@ import libcore.io.Streams;
* The data app makes its payload available via a {@link TimeZoneRulesDataContract specified}
* {@link android.content.ContentProvider} with the URI {@link TimeZoneRulesDataContract#AUTHORITY}.
*
- * <p>If the {@link TimeZoneRulesDataContract.Operation#TYPE operation type} is an
+ * <p>If the {@link TimeZoneRulesDataContract.Operation#COLUMN_TYPE operation type} is an
* {@link TimeZoneRulesDataContract.Operation#TYPE_INSTALL install request}, then the time zone data
- * format {@link TimeZoneRulesDataContract.Operation#DISTRO_MAJOR_VERSION major version} and
- * {@link TimeZoneRulesDataContract.Operation#DISTRO_MINOR_VERSION minor version}, the
- * {@link TimeZoneRulesDataContract.Operation#RULES_VERSION IANA rules version}, and the
- * {@link TimeZoneRulesDataContract.Operation#REVISION revision} are checked to see if they can be
- * applied to the device. If the data is valid the {@link RulesCheckReceiver} will obtain the
- * payload from the data app content provider via
+ * format {@link TimeZoneRulesDataContract.Operation#COLUMN_DISTRO_MAJOR_VERSION major version} and
+ * {@link TimeZoneRulesDataContract.Operation#COLUMN_DISTRO_MINOR_VERSION minor version}, the
+ * {@link TimeZoneRulesDataContract.Operation#COLUMN_RULES_VERSION IANA rules version}, and the
+ * {@link TimeZoneRulesDataContract.Operation#COLUMN_REVISION revision} are checked to see if they
+ * can be applied to the device. If the data is valid the {@link RulesCheckReceiver} will obtain
+ * the payload from the data app content provider via
* {@link android.content.ContentProvider#openFile(Uri, String)} and pass the data to the system
* server for installation via the
* {@link RulesManager#requestInstall(ParcelFileDescriptor, byte[], Callback)}.
@@ -128,11 +128,11 @@ public class RulesCheckReceiver extends BroadcastReceiver {
Cursor c = context.getContentResolver()
.query(TimeZoneRulesDataContract.Operation.CONTENT_URI,
new String[] {
- TimeZoneRulesDataContract.Operation.TYPE,
- TimeZoneRulesDataContract.Operation.DISTRO_MAJOR_VERSION,
- TimeZoneRulesDataContract.Operation.DISTRO_MINOR_VERSION,
- TimeZoneRulesDataContract.Operation.RULES_VERSION,
- TimeZoneRulesDataContract.Operation.REVISION
+ TimeZoneRulesDataContract.Operation.COLUMN_TYPE,
+ TimeZoneRulesDataContract.Operation.COLUMN_DISTRO_MAJOR_VERSION,
+ TimeZoneRulesDataContract.Operation.COLUMN_DISTRO_MINOR_VERSION,
+ TimeZoneRulesDataContract.Operation.COLUMN_RULES_VERSION,
+ TimeZoneRulesDataContract.Operation.COLUMN_REVISION
},
null /* selection */, null /* selectionArgs */, null /* sortOrder */);
try (Cursor cursor = c) {
@@ -199,13 +199,13 @@ public class RulesCheckReceiver extends BroadcastReceiver {
ParcelFileDescriptor inputFileDescriptor;
try {
inputFileDescriptor = context.getContentResolver().openFileDescriptor(
- TimeZoneRulesDataContract.Data.CONTENT_URI, "r");
+ TimeZoneRulesDataContract.Operation.CONTENT_URI, "r");
if (inputFileDescriptor == null) {
throw new FileNotFoundException("ContentProvider returned null");
}
} catch (FileNotFoundException e) {
Log.e(TAG, "Unable to open file descriptor"
- + TimeZoneRulesDataContract.Data.CONTENT_URI, e);
+ + TimeZoneRulesDataContract.Operation.CONTENT_URI, e);
return null;
}
return inputFileDescriptor;