summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Neil Fuller <nfuller@google.com> 2021-01-07 20:40:57 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2021-01-07 20:40:57 +0000
commite451a442f49dfa99d29d7f1375925b41de333957 (patch)
treee9d12dd4e2038dc10e2477adb568f701ab0cf853
parent00a9ff1f7ce7d659210393c6d17fad81322ff111 (diff)
parent6aabdca9b3798f78a55d6b1f9af42dd98ccfcf6c (diff)
Merge "Addition of OWNERS / initial .proto file" am: 6aabdca9b3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1541857 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I4d9161c4fb603977fb8f4492176dc46c0791d153
-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;
+}