summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Neil Fuller <nfuller@google.com> 2021-01-07 20:08:06 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-01-07 20:08:06 +0000
commit6aabdca9b3798f78a55d6b1f9af42dd98ccfcf6c (patch)
tree3934e7e3047c1d1e0c897019cd08efb445edfa56
parenteedc45be11269f9a75659322d81a22e4fb77e9f4 (diff)
parent1f5202afe0eae8d26d4ad7a6772cb4064c8c458e (diff)
Merge "Addition of OWNERS / initial .proto file"
-rw-r--r--core/proto/android/app/OWNERS1
-rw-r--r--core/proto/android/app/location_time_zone_manager.proto59
2 files changed, 60 insertions, 0 deletions
diff --git a/core/proto/android/app/OWNERS b/core/proto/android/app/OWNERS
new file mode 100644
index 000000000000..296abd18aadc
--- /dev/null
+++ b/core/proto/android/app/OWNERS
@@ -0,0 +1 @@
+per-file location_time_zone_manager.proto = nfuller@google.com, mingaleev@google.com
diff --git a/core/proto/android/app/location_time_zone_manager.proto b/core/proto/android/app/location_time_zone_manager.proto
new file mode 100644
index 000000000000..f44d5495f132
--- /dev/null
+++ b/core/proto/android/app/location_time_zone_manager.proto
@@ -0,0 +1,59 @@
+/*
+ * Copyright (C) 2020 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+syntax = "proto2";
+package android.app.time;
+
+import "frameworks/base/core/proto/android/privacy.proto";
+
+option java_multiple_files = true;
+option java_outer_classname = "LocationTimeZoneManagerProto";
+
+// Represents the state of the LocationTimeZoneManagerService for use in tests.
+message LocationTimeZoneManagerServiceStateProto {
+ option (android.msg_privacy).dest = DEST_AUTOMATIC;
+
+ optional GeolocationTimeZoneSuggestionProto last_suggestion = 1;
+ repeated TimeZoneProviderStateProto primary_provider_states = 2;
+ repeated TimeZoneProviderStateProto secondary_provider_states = 3;
+}
+
+// Represents a GeolocationTimeZoneSuggestion that can be / has been passed to the time zone
+// detector.
+message GeolocationTimeZoneSuggestionProto {
+ option (android.msg_privacy).dest = DEST_AUTOMATIC;
+
+ repeated string zone_ids = 1;
+ repeated string debug_info = 2;
+}
+
+// The state tracked for a LocationTimeZoneProvider.
+message TimeZoneProviderStateProto {
+ option (android.msg_privacy).dest = DEST_AUTOMATIC;
+
+ optional TimeZoneProviderStateEnum state = 1;
+}
+
+// The state enum for LocationTimeZoneProviders.
+enum TimeZoneProviderStateEnum {
+ TIME_ZONE_PROVIDER_STATE_UNKNOWN = 0;
+ TIME_ZONE_PROVIDER_STATE_INITIALIZING = 1;
+ TIME_ZONE_PROVIDER_STATE_CERTAIN = 2;
+ TIME_ZONE_PROVIDER_STATE_UNCERTAIN = 3;
+ TIME_ZONE_PROVIDER_STATE_DISABLED = 4;
+ TIME_ZONE_PROVIDER_STATE_PERM_FAILED = 5;
+ TIME_ZONE_PROVIDER_STATE_DESTROYED = 6;
+}