ResponseCode.h revision ddb34755fb54882b3ece8d4919593e26a2c1cfcb
1d18304287dbabc7835be771400b85d4ae8b63de6San Mehat/* 2d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * Copyright (C) 2008 The Android Open Source Project 3d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * 4d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * Licensed under the Apache License, Version 2.0 (the "License"); 5d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * you may not use this file except in compliance with the License. 6d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * You may obtain a copy of the License at 7d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * 8d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * http://www.apache.org/licenses/LICENSE-2.0 9d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * 10d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * Unless required by applicable law or agreed to in writing, software 11d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * distributed under the License is distributed on an "AS IS" BASIS, 12d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * See the License for the specific language governing permissions and 14d18304287dbabc7835be771400b85d4ae8b63de6San Mehat * limitations under the License. 15d18304287dbabc7835be771400b85d4ae8b63de6San Mehat */ 16d18304287dbabc7835be771400b85d4ae8b63de6San Mehat 17d18304287dbabc7835be771400b85d4ae8b63de6San Mehat#ifndef _RESPONSECODE_H 18d18304287dbabc7835be771400b85d4ae8b63de6San Mehat#define _RESPONSECODE_H 19d18304287dbabc7835be771400b85d4ae8b63de6San Mehat 20d18304287dbabc7835be771400b85d4ae8b63de6San Mehatclass ResponseCode { 218a93272255f1b7e3083a97e1e28ddf675c0c7fb0JP Abgrall // Keep in sync with 228a93272255f1b7e3083a97e1e28ddf675c0c7fb0JP Abgrall // frameworks/base/services/java/com/android/server/NetworkManagementService.java 23d18304287dbabc7835be771400b85d4ae8b63de6San Mehatpublic: 24d18304287dbabc7835be771400b85d4ae8b63de6San Mehat // 100 series - Requestion action was initiated; expect another reply 25d18304287dbabc7835be771400b85d4ae8b63de6San Mehat // before proceeding with a new command. 269d10b341a0ba46f108cb96e46691197d778cbc06San Mehat static const int ActionInitiated = 100; 279d10b341a0ba46f108cb96e46691197d778cbc06San Mehat static const int InterfaceListResult = 110; 289d10b341a0ba46f108cb96e46691197d778cbc06San Mehat static const int TetherInterfaceListResult = 111; 299d10b341a0ba46f108cb96e46691197d778cbc06San Mehat static const int TetherDnsFwdTgtListResult = 112; 30d5573d34c8fac49e16b20cf144486125bf940086San Mehat static const int TtyListResult = 113; 31d18304287dbabc7835be771400b85d4ae8b63de6San Mehat 32d18304287dbabc7835be771400b85d4ae8b63de6San Mehat 33d18304287dbabc7835be771400b85d4ae8b63de6San Mehat // 200 series - Requested action has been successfully completed 348e46896b4c4be5deaef651a12b17314f63ae9070San Mehat static const int CommandOkay = 200; 358e46896b4c4be5deaef651a12b17314f63ae9070San Mehat static const int TetherStatusResult = 210; 368e46896b4c4be5deaef651a12b17314f63ae9070San Mehat static const int IpFwdStatusResult = 211; 378e46896b4c4be5deaef651a12b17314f63ae9070San Mehat static const int PanStatusResult = 212; 388e46896b4c4be5deaef651a12b17314f63ae9070San Mehat static const int InterfaceGetCfgResult = 213; 398e46896b4c4be5deaef651a12b17314f63ae9070San Mehat static const int SoftapStatusResult = 214; 408e46896b4c4be5deaef651a12b17314f63ae9070San Mehat static const int UsbRNDISStatusResult = 215; 418e46896b4c4be5deaef651a12b17314f63ae9070San Mehat static const int InterfaceRxCounterResult = 216; 428e46896b4c4be5deaef651a12b17314f63ae9070San Mehat static const int InterfaceTxCounterResult = 217; 438e46896b4c4be5deaef651a12b17314f63ae9070San Mehat static const int InterfaceRxThrottleResult = 218; 448e46896b4c4be5deaef651a12b17314f63ae9070San Mehat static const int InterfaceTxThrottleResult = 219; 458a93272255f1b7e3083a97e1e28ddf675c0c7fb0JP Abgrall static const int QuotaCounterResult = 220; 46db7da58e8d2aa021060098057f944ef754be06e3JP Abgrall static const int TetheringStatsResult = 221; 47ddb34755fb54882b3ece8d4919593e26a2c1cfcbSelim Gurun static const int DnsProxyQueryResult = 222; 48d18304287dbabc7835be771400b85d4ae8b63de6San Mehat 49d18304287dbabc7835be771400b85d4ae8b63de6San Mehat // 400 series - The command was accepted but the requested action 50d18304287dbabc7835be771400b85d4ae8b63de6San Mehat // did not take place. 51ddb34755fb54882b3ece8d4919593e26a2c1cfcbSelim Gurun static const int OperationFailed = 400; 52ddb34755fb54882b3ece8d4919593e26a2c1cfcbSelim Gurun static const int DnsProxyOperationFailed = 401; 53d18304287dbabc7835be771400b85d4ae8b63de6San Mehat 54d18304287dbabc7835be771400b85d4ae8b63de6San Mehat // 500 series - The command was not accepted and the requested 55d18304287dbabc7835be771400b85d4ae8b63de6San Mehat // action did not take place. 56d18304287dbabc7835be771400b85d4ae8b63de6San Mehat static const int CommandSyntaxError = 500; 57d18304287dbabc7835be771400b85d4ae8b63de6San Mehat static const int CommandParameterError = 501; 58d18304287dbabc7835be771400b85d4ae8b63de6San Mehat 59d18304287dbabc7835be771400b85d4ae8b63de6San Mehat // 600 series - Unsolicited broadcasts 6067c5753274ee828b56f96b5e9cdae64c8562ad52Robert Greenwalt static const int InterfaceChange = 600; 61e0ebc46c0aa38ce4f35bd3b60c0fcb9204d4c35eJP Abgrall static const int BandwidthControl = 601; 62d18304287dbabc7835be771400b85d4ae8b63de6San Mehat}; 63d18304287dbabc7835be771400b85d4ae8b63de6San Mehat#endif 64