Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f5202af authored by Neil Fuller's avatar Neil Fuller
Browse files

Addition of OWNERS / initial .proto file

Addition of OWNERS entry and the file it pertains to.

Test: build only
Bug: 172934905
Change-Id: I986957f7ead522fa8e13fbf7cbd514691d476858
parent 26c036bb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
per-file location_time_zone_manager.proto = nfuller@google.com, mingaleev@google.com
+59 −0
Original line number Diff line number Diff line
/*
 * 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;
}