| ARRIS Enterprises, Inc. Confidential Information |
|
/extra/builds/39807/build/dist/idl/IPlatformService.idl 00001 // Copyright (c) 2011 Motorola, Inc. All rights reserved. 00002 // Copyright (c) 2012-2013 Motorola Mobility, Inc. All rights reserved. 00003 // Copyright (c) 2013-2015 ARRIS Enterprises, Inc. All rights reserved. 00004 // Copyright (c) 2016 ARRIS Enterprises, LLC. All rights reserved. 00005 // 00006 // This program is confidential and proprietary to ARRIS Enterprises, LLC. 00007 // (ARRIS), and may not be copied, reproduced, modified, disclosed to others, 00008 // published or used, in whole or in part, without the express prior written 00009 // permission of ARRIS. 00010 00011 #ifndef IPLATFORMSERVICE_IDL 00012 #define IPLATFORMSERVICE_IDL 00013 00014 #include "IToiPlatformService.idl" 00015 #include "IToiApplicationService.idl" 00016 #include "TToiInvalidArgumentException.idl" 00017 #include "TToiNotEnoughResourcesException.idl" 00018 00028 interface IPlatformService : IToiPlatformService 00029 { 00030 const string FLASH_APPLICATION_PATH = "/flash/applications"; 00031 const string FLASH_SERVICE_PATH = "/flash/services"; 00032 00036 enum TStartupType 00037 { 00039 STARTUP_TYPE_POWER_ON, 00040 00042 STARTUP_TYPE_REBOOT, 00043 00047 STARTUP_TYPE_WAKE_UP, 00048 00052 STARTUP_TYPE_PLATFORM_FAILURE, 00053 00055 STARTUP_TYPE_PLATFORM_RESTART, 00056 00060 STARTUP_TYPE_RESET_LEVEL_0, 00061 00066 STARTUP_TYPE_RESET_LEVEL_1, 00067 00070 STARTUP_TYPE_RESET_LEVEL_2, 00071 00075 STARTUP_TYPE_RESET_LEVEL_3 00076 }; 00077 00078 enum TStatusCode 00079 { 00083 STATUS_CODE_OK, 00084 00089 STATUS_CODE_PENDING, 00090 00093 STATUS_CODE_NO_NETWORK, 00094 00097 STATUS_CODE_NO_IP_ADDRESS 00098 }; 00099 00116 void ReportComponent(in long serviceId, in string address) 00117 raises (TToiInvalidArgumentException); 00118 00130 void UnloadDone(in long serviceId) 00131 raises (TToiInvalidArgumentException); 00132 00139 oneway void ReportPing(in long serviceId); 00140 00146 void IsInStandby(out boolean value); 00147 00153 void GetStartupType(out TStartupType type); 00154 00161 oneway void SetStartupType(in TStartupType startupType); 00162 00165 oneway void RestartPlatformNow(); 00166 00170 oneway void ReportApplicationShutdownComplete(); 00171 00193 void RegisterFactoryResetHandler(in string storagePath, 00194 in string address, 00195 out long handlerId) 00196 raises (TToiInvalidArgumentException); 00197 00205 void UnregisterFactoryResetHandler(in long handlerId) 00206 raises (TToiInvalidArgumentException); 00207 00215 oneway void FactoryResetHandlerDone(in long handlerId); 00216 00236 void CreatePowerControlInstanceInternal(in IToiPowerControl:: 00237 TToiPowerProfileAccess access, 00238 in string serviceName, 00239 out string address); 00240 00241 00255 void RegisterStartupHandler(out long id); 00256 00270 void ReportStartupStatus(in long id, in TStatusCode statusCode); 00271 00282 void RegisterObserverInternal(in string address) 00283 raises (TToiInvalidArgumentException); 00284 00301 void AddAppDataPathForRemoval(in IToiApplicationService:: 00302 TToiApplicationId appId, 00303 in long flags, 00304 in string path) 00305 raises (TToiInvalidArgumentException, 00306 TToiPermissionDeniedException); 00307 00312 void ClearFastbootFlag() 00313 raises (TToiNotEnoughResourcesException); 00314 00320 void GetUpTime(out long time); 00321 }; 00322 00323 #endif |