1 /* 2 * Copyright (C) 2014 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 17 package com.android.omadm.service; 18 19 public interface DMResult { 20 21 // The DMEngine return code, which must be consistent with 22 // engine/dmlib/api/common/dmtError.h 23 24 int SYNCML_DM_SUCCESS = 0; 25 int SYNCML_DM_FAIL = 1; 26 int SYNCML_DM_ENTRY_EXIST = 2; 27 int SYNCML_DM_ENTRY_NOT_EXIST = 3; 28 int SYNCML_DM_SESSION_BUSY = 4; 29 int SYNCML_DM_INVALID_URI = 5; 30 int SYNCML_DM_SESSION_AUTH_FAIL = 6; 31 int SYNCML_DM_SESSION_NW_NOT_AVAILABLE = 7; 32 int SYNCML_DM_SESSION_NO_CONNECT = 8; 33 int SYNCML_DM_SESSION_CANCELED = 9; 34 int SYNCML_DM_IO_FAILURE = 10; 35 int SYNCML_DM_FILE_NOT_FOUND = 11; 36 int SYNCML_DM_URI_CONFLICT = 12; 37 int SYNCML_DM_TREE_CORRUPT = 13; 38 int SYNCML_DM_SKIP_SUBTREE = 14; 39 int SYNCML_DM_RESULTS_TOO_LARGE = 15; 40 int SYNCML_DM_LOCK_CTX_NOT_FOUND = 16; 41 int SYNCML_DM_UNABLE_START_THREAD = 17; 42 int SYNCML_DM_TOO_MANY_DATA_FILES = 18; 43 int SYNCML_DM_LOCK_TRY_AGAIN = 19; 44 int SYNCML_DM_CONSTRAINT_FAIL = 20; 45 int SYNCML_DM_LOAD_ACL_FAIL = 21; 46 int SYNCML_DM_TREE_READONLY = 22; 47 int SYNCML_DM_INVALID_PARAMETER = 23; 48 int SYNCML_DM_AUTHENTICATION_ACCEPTED = 212; 49 int SYNCML_DM_CHUNK_BUFFERED = 213; 50 int SYNCML_DM_OPERATION_CANCELLED = 214; 51 int SYNCML_DM_NOT_EXECUTED = 215; 52 int SYNCML_DM_ATOMIC_ROLLBACK_OK = 216; 53 int SYNCML_DM_NOT_MODIFIED = 304; 54 int SYNCML_DM_BAD_REQUEST = 400; 55 int SYNCML_DM_UNAUTHORIZED = 401; 56 int SYNCML_DM_NOT_FOUND = 404; 57 int SYNCML_DM_COMMAND_NOT_ALLOWED = 405; 58 int SYNCML_DM_FEATURE_NOT_SUPPORTED = 406; 59 int SYNCML_DM_AUTHENTICATION_REQUIRED = 407; 60 int SYNCML_DM_REQUEST_TIMEOUT = 408; 61 int SYNCML_DM_INCOMPLETE_COMMAND = 412; 62 int SYNCML_DM_REQUEST_ENTITY_TOO_LARGE = 413; 63 int SYNCML_DM_URI_TOO_LONG = 414; 64 int SYNCML_DM_UNSUPPORTED_MEDIATYPE_FORMAT = 415; 65 int SYNCML_DM_REQUESTED_RANGE_NOT_SATISFIABLE = 416; 66 int SYNCML_DM_TARGET_ALREADY_EXISTS = 418; 67 int SYNCML_DM_DEVICE_FULL = 420; 68 int SYNCML_DM_SIZE_MISMATCH = 424; 69 int SYNCML_DM_PERMISSION_FAILED = 425; 70 int SYNCML_DM_COMMAND_FAILED = 500; 71 int SYNCML_DM_COMMAND_NOT_IMPLEMENTED = 501; 72 int SYNCML_DM_SERVICE_UNAVAILABLE = 503; 73 int SYNCML_DM_GATEWAY_TIMEOUT = 504; 74 int SYNCML_DM_PROCESSING_ERROR = 506; 75 int SYNCML_DM_ATOMIC_FAILED = 507; 76 int SYNCML_DM_DATA_STORE_FAILURE = 510; 77 int SYNCML_DM_OPERATION_CANCELLED_FAILURE = 514; 78 int SYNCML_DM_ATOMIC_ROLLBACK_FAILED = 516; 79 int SYNCML_DM_ATOMIC_RESPONSE_TOO_LARGE = 517; 80 int SYNCML_DM_ESN_SET_NOT_COMPLETE = 518; 81 82 int SYNCML_DM_SOCKET_TIMEOUT = 700; 83 int SYNCML_DM_SOCKET_CONNECT_ERR = 701; 84 int SYNCML_DM_NO_HTTP_RESPONSE = 702; 85 int SYNCML_DM_UNKNOWN_HOST = 703; 86 int SYNCML_DM_INTERRUPTED = 704; 87 88 int SYNCML_DM_SESSION_PARAM_ERR = 800; 89 int SYNCML_DM_SESSION_USER_REJECT = 801; 90 int SYNCML_DM_SESSION_NO_FOTA_SERVER_ID = 802; 91 } 92