ResponseCode.h revision 745e09fc5694e73920aaad18a626275597bdddb1
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; 53745e09fc5694e73920aaad18a626275597bdddb1Robert Greenwalt static const int ServiceStartFailed = 402; 54745e09fc5694e73920aaad18a626275597bdddb1Robert Greenwalt static const int ServiceStopFailed = 403; 55d18304287dbabc7835be771400b85d4ae8b63de6San Mehat 56d18304287dbabc7835be771400b85d4ae8b63de6San Mehat // 500 series - The command was not accepted and the requested 57d18304287dbabc7835be771400b85d4ae8b63de6San Mehat // action did not take place. 58d18304287dbabc7835be771400b85d4ae8b63de6San Mehat static const int CommandSyntaxError = 500; 59d18304287dbabc7835be771400b85d4ae8b63de6San Mehat static const int CommandParameterError = 501; 60d18304287dbabc7835be771400b85d4ae8b63de6San Mehat 61d18304287dbabc7835be771400b85d4ae8b63de6San Mehat // 600 series - Unsolicited broadcasts 62745e09fc5694e73920aaad18a626275597bdddb1Robert Greenwalt static const int InterfaceChange = 600; 63745e09fc5694e73920aaad18a626275597bdddb1Robert Greenwalt static const int BandwidthControl = 601; 64745e09fc5694e73920aaad18a626275597bdddb1Robert Greenwalt static const int ServiceDiscoveryFailed = 602; 65745e09fc5694e73920aaad18a626275597bdddb1Robert Greenwalt static const int ServiceDiscoveryServiceAdded = 603; 66745e09fc5694e73920aaad18a626275597bdddb1Robert Greenwalt static const int ServiceDiscoveryServiceRemoved = 604; 67745e09fc5694e73920aaad18a626275597bdddb1Robert Greenwalt static const int ServiceRegistrationFailed = 605; 68745e09fc5694e73920aaad18a626275597bdddb1Robert Greenwalt static const int ServiceRegistrationSucceeded = 606; 69745e09fc5694e73920aaad18a626275597bdddb1Robert Greenwalt static const int ServiceResolveFailed = 607; 70745e09fc5694e73920aaad18a626275597bdddb1Robert Greenwalt static const int ServiceResolveSuccess = 608; 71745e09fc5694e73920aaad18a626275597bdddb1Robert Greenwalt static const int ServiceSetHostnameFailed = 609; 72745e09fc5694e73920aaad18a626275597bdddb1Robert Greenwalt static const int ServiceSetHostnameSuccess = 610; 73745e09fc5694e73920aaad18a626275597bdddb1Robert Greenwalt static const int ServiceGetAddrInfoFailed = 611; 74745e09fc5694e73920aaad18a626275597bdddb1Robert Greenwalt static const int ServiceGetAddrInfoSuccess = 612; 75745e09fc5694e73920aaad18a626275597bdddb1Robert Greenwalt static const int InterfaceActive = 613; 76745e09fc5694e73920aaad18a626275597bdddb1Robert Greenwalt static const int InterfaceIdle = 614; 77d18304287dbabc7835be771400b85d4ae8b63de6San Mehat}; 78d18304287dbabc7835be771400b85d4ae8b63de6San Mehat#endif 79