xref: /aosp_15_r20/frameworks/proto_logging/stats/enums/wear/time/enums.proto (revision 64c55175f22a2714b5ba1250098ad9bbc12ec7cd)
1/*
2 * Copyright (C) 2024 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";
18
19package com.google.android.apps.wearable.settings;
20
21/**
22 * Indicates the type of intent that kicked off sync.
23 */
24enum RequestTypeEnum {
25  REQUEST_TYPE_UNSPECIFIED = 0;
26  REQUEST_TYPE_POLL = 1;
27  REQUEST_TYPE_EVALUATE = 2;
28  REQUEST_TYPE_COMPANION = 3;
29}
30
31/**
32 * Indicates the location from which the sync was started.
33 */
34enum SourceTypeEnum {
35  SOURCE_TYPE_UNSPECIFIED = 0;
36  SOURCE_TYPE_BOOT = 1;
37  SOURCE_TYPE_OOBE = 2;
38  SOURCE_TYPE_COMPANION_CONNECTION = 3;
39  SOURCE_TYPE_TOGGLE = 4;
40  SOURCE_TYPE_PERIODIC_JOB = 5;
41}
42
43/**
44 * Indicates the source of information the sync uses to get its result.
45 */
46enum OriginTypeEnum {
47  ORIGIN_TYPE_UNSPECIFIED = 0;
48  ORIGIN_TYPE_COMPANION = 1;
49  ORIGIN_TYPE_NETWORK = 2;
50  ORIGIN_TYPE_NITZ = 3;
51  ORIGIN_TYPE_GNSS = 4;
52  ORIGIN_TYPE_MANUAL = 5;
53}
54
55/**
56 * Indicates the reason for the sync operation failure.
57 */
58enum FailureReasonEnum {
59  FAILURE_REASON_UNSPECIFIED = 0;
60  FAILURE_REASON_TIMEOUT = 1;
61  FAILURE_REASON_LATENCY = 2;
62  FAILURE_REASON_COMPANION_INVALID_RESPONSE = 3;
63  FAILURE_REASON_DISCONNECTED = 4;
64}
65