1/* 2 * Copyright (C) 2021 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.contexthub; 19 20option java_outer_classname = "ContextHubProtoEnums"; 21option java_multiple_files = true; 22 23/** 24 * Corresponds to error codes defined in ContextHubTransaction.java. 25 */ 26enum ContextHubTransactionResult { 27 TRANSACTION_RESULT_SUCCESS = 0; 28 TRANSACTION_RESULT_FAILED_UNKNOWN = 1; 29 TRANSACTION_RESULT_FAILED_BAD_PARAMS = 2; 30 TRANSACTION_RESULT_FAILED_UNINITIALIZED = 3; 31 TRANSACTION_RESULT_FAILED_BUSY = 4; 32 TRANSACTION_RESULT_FAILED_AT_HUB = 5; 33 TRANSACTION_RESULT_FAILED_TIMEOUT = 6; 34 TRANSACTION_RESULT_FAILED_SERVICE_INTERNAL_FAILURE = 7; 35 TRANSACTION_RESULT_FAILED_HAL_UNAVAILABLE = 8; 36} 37 38enum ContextHubSignificantMotionState { 39 SIGNIFICANT_MOTION_UNKNOWN = 0; 40 SIGNIFICANT_MOTION_STATIC_LOCATION = 1; 41 SIGNIFICANT_MOTION_LOW_MOBILITY = 2; 42 SIGNIFICANT_MOTION_HIGH_MOBILITY = 3; 43} 44