1/*
2 * Copyright (C) 2022 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.mms;
19
20option java_outer_classname = "MmsProtoEnums";
21option java_multiple_files = true;
22
23// MMS send/download result codes.
24// See frameworks/base/telephony/java/android/telephony/SmsManager.java
25enum MmsResultEnum {
26  MMS_RESULT_ERROR_UNSPECIFIED = 0;
27  MMS_RESULT_SUCCESS = 1;
28  MMS_RESULT_ERROR_INVALID_APN = 2;
29  MMS_RESULT_ERROR_UNABLE_CONNECT_MMS = 3;
30  MMS_RESULT_ERROR_HTTP_FAILURE = 4;
31  MMS_RESULT_ERROR_IO_ERROR = 5;
32  MMS_RESULT_ERROR_RETRY = 6;
33  MMS_RESULT_ERROR_CONFIGURATION_ERROR = 7;
34  MMS_RESULT_ERROR_NO_DATA_NETWORK = 8;
35  MMS_RESULT_ERROR_INVALID_SUBSCRIPTION_ID = 9;
36  MMS_RESULT_ERROR_INACTIVE_SUBSCRIPTION = 10;
37  MMS_RESULT_ERROR_DATA_DISABLED = 11;
38  MMS_RESULT_ERROR_MMS_DISABLED_BY_CARRIER = 12;
39  MMS_RESULT_ERROR_TOO_LARGE_FOR_TRANSPORT = 13;
40}