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 DMIntent { 20 21 String LAUNCH_INTENT = "com.android.omadm.service.Launch"; 22 23 String DM_SERVICE_RESULT_INTENT = "com.android.omadm.service.Result"; 24 25 String SHOW_PKG0_ALERT_DLG = "com.android.omadm.service.pkg0_alert_dlg"; 26 27 String SHOW_PKG0_INFO_DLG = "com.android.omadm.service.pkg0_info_dlg"; 28 29 String SHOW_UPDATE_CANCEL_DLG = "com.android.omadm.service.update_cancel_dlg"; 30 31 String SHOW_PKG0_ALERT_DLG_CLOSE = "com.android.omadm.service.pkg0_alert_dlg_close"; 32 33 String SHOW_DISPLAY_ALERT_DLG = "com.android.omadm.service.display_alert_dlg"; 34 35 String SHOW_CONFIRM_ALERT_DLG = "com.android.omadm.service.confirm_alert_dlg"; 36 37 String SHOW_TEXTINPUT_ALERT_DLG = "com.android.omadm.service.textinput_alert_dlg"; 38 39 String SHOW_SINGLECHOICE_ALERT_DLG = "com.android.omadm.service.singlechoice_alert_dlg"; 40 41 String SHOW_MULTICHOICE_ALERT_DLG = "com.android.omadm.service.multichoice_alert_dlg"; 42 43 String SHOW_PROGRESS_ALERT_DLG = "com.android.omadm.service.show_progress_alert_dlg"; 44 45 String HIDE_PROGRESS_ALERT_DLG = "com.android.omadm.service.hide_progress_alert_dlg"; 46 47 String CANCEL_ALERT_DLG = "com.android.omadm.service.cancel_alert_dlg"; 48 49 String DM_ALERT_DLG_CLOSED = "com.android.omadm.service.dm_alert_dlg_closed"; 50 51 String ACTION_TIMER_ALERT = "com.android.omadm.service.pending_notification"; 52 53 // for UI mode Informative management action 54 String ACTION_CLOSE_NOTIFICATION_INFO = "com.android.omadm.service.close_notification_info"; 55 56 // for waiting for Wi-Fi or waiting for mobile data and then bringing up the FOTA APN 57 String ACTION_START_DATA_CONNECTION_SERVICE = "com.android.omadm.service.StartDataConnection"; 58 59 // data connection was successfully started 60 String ACTION_DATA_CONNECTION_READY = "com.android.omadm.service.DataConnectionReady"; 61 62 // user from UI confirmed starting DM session 63 String ACTION_USER_CONFIRMED_DM_SESSION 64 = "com.android.omadm.service.user_confirmed_dm_session"; 65 66 // inject package0 from command line 67 String ACTION_INJECT_PACKAGE_0_INTERNAL = "com.android.omadm.service.InjectPackage0_Internal"; 68 69 // internal wap push intent 70 String ACTION_WAP_PUSH_RECEIVED_INTERNAL 71 = "com.android.omadm.service.WAP_PUSH_RECEIVED_INTERNAL"; 72 73 // start client initiated provisioning request 74 String ACTION_CLIENT_INITIATED_FOTA_SESSION 75 = "com.android.omadm.service.client_initiated_fota"; 76 77 // set server hostname info 78 String ACTION_SET_SERVER_CONFIG = "com.android.omadm.service.set_server_config"; 79 80 // cancel DM session 81 String ACTION_CANCEL_SESSION = "com.android.omadm.service.cancel_dm_session"; 82 83 int TYPE_UNKNOWN = 0; 84 85 int TYPE_PKG0_NOTIFICATION = 1; 86 87 int TYPE_FOTA_CLIENT_SESSION_REQUEST = 2; 88 89 int TYPE_FOTA_NOTIFY_SERVER = 3; 90 91 int TYPE_CANCEL_DM_SESSION = 4; 92 93 int TYPE_CLIENT_SESSION_REQUEST = 6; 94 95 int TYPE_LAWMO_NOTIFY_SESSION = 15; 96 97 int TYPE_DO_NOTHING = 100; 98 99 100 String FIELD_TYPE = "Type"; 101 102 String FIELD_PKG0 = "Pkg0"; 103 104 String FIELD_REQUEST_ID = "RequestID"; 105 106 String FIELD_ALERT_STR = "AlertStr"; 107 108 String FIELD_DMRESULT = "DMResult"; 109 110 String FIELD_FOTA_RESULT = "fotaResult"; 111 112 String FIELD_PKGURI = "PkgURI"; 113 114 String FIELD_ALERTTYPE = "AlertType"; 115 116 String FIELD_SERVERID = "ServerID"; 117 118 String FIELD_SERVER_URL = "ServerURL"; 119 120 String FIELD_PROXY_ADDRESS = "ProxyAddress"; 121 122 String FIELD_TIMER = "Timer"; 123 124 String FIELD_CORR = "Correlator"; 125 126 String FIELD_DM_UNITEST_RESULT = "UnitestResult"; 127 128 String FIELD_FILENAME = "FileName"; 129 130 String FIELD_IS_BINARY = "IsBinary"; 131 132 String FIELD_BOOTSTRAP_MSG = "BootstrapMsg"; 133 134 String FIELD_LAWMO_RESULT = "LawmoResult"; 135 136 } 137