1/*
2 * Copyright (C) 2020 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto2";
18package android.app.time;
19
20import "frameworks/base/core/proto/android/app/time_zone_detector.proto";
21import "frameworks/base/core/proto/android/privacy.proto";
22
23option java_multiple_files = true;
24option java_outer_classname = "LocationTimeZoneManagerProto";
25
26// Represents the state of the LocationTimeZoneManagerService for use in tests.
27message LocationTimeZoneManagerServiceStateProto {
28  option (android.msg_privacy).dest = DEST_AUTOMATIC;
29
30  optional GeolocationTimeZoneSuggestionProto last_suggestion = 1;
31  repeated TimeZoneProviderStateProto primary_provider_states = 2;
32  repeated TimeZoneProviderStateProto secondary_provider_states = 3;
33}
34
35// The state tracked for a LocationTimeZoneProvider.
36message TimeZoneProviderStateProto {
37  option (android.msg_privacy).dest = DEST_AUTOMATIC;
38
39  optional TimeZoneProviderStateEnum state = 1;
40}
41
42// The state enum for LocationTimeZoneProviders.
43enum TimeZoneProviderStateEnum {
44  TIME_ZONE_PROVIDER_STATE_UNKNOWN = 0;
45  TIME_ZONE_PROVIDER_STATE_INITIALIZING = 1;
46  TIME_ZONE_PROVIDER_STATE_CERTAIN = 2;
47  TIME_ZONE_PROVIDER_STATE_UNCERTAIN = 3;
48  TIME_ZONE_PROVIDER_STATE_DISABLED = 4;
49  TIME_ZONE_PROVIDER_STATE_PERM_FAILED = 5;
50  TIME_ZONE_PROVIDER_STATE_DESTROYED = 6;
51}
52