/base/update/updateservice/interfaces/inner_api/engine/src/ |
H A D | update_service_kits_impl.cpp | 46 ENGINE_CHECK(remoteUpdateCallback != nullptr, return INT_PARAM_ERR, "Failed to create remote callback"); in RegisterUpdateCallback() 50 ENGINE_CHECK((ret) == INT_CALL_SUCCESS, ResetRemoteService(), "RegisterUpdateCallback ipc error"); in RegisterUpdateCallback() 63 ENGINE_CHECK((ret) == INT_CALL_SUCCESS, ResetRemoteService(), "UnregisterUpdateCallback ipc error"); in UnregisterUpdateCallback() 75 ENGINE_CHECK((ret) == INT_CALL_SUCCESS, ResetRemoteService(), "CheckNewVersion ipc error"); in CheckNewVersion() 86 ENGINE_CHECK((ret) == INT_CALL_SUCCESS, ResetRemoteService(), "Download ipc error"); in Download() 97 ENGINE_CHECK((ret) == INT_CALL_SUCCESS, ResetRemoteService(), "PauseDownload ipc error"); in PauseDownload() 108 ENGINE_CHECK((ret) == INT_CALL_SUCCESS, ResetRemoteService(), "ResumeDownload ipc error"); in ResumeDownload() 119 ENGINE_CHECK((ret) == INT_CALL_SUCCESS, ResetRemoteService(), "Upgrade ipc error"); in Upgrade() 130 ENGINE_CHECK((ret) == INT_CALL_SUCCESS, ResetRemoteService(), "ClearError ipc error"); in ClearError() 140 ENGINE_CHECK((re in TerminateUpgrade() [all...] |
H A D | update_service_proxy.cpp | 29 ENGINE_CHECK((remote) != nullptr, return INT_CALL_IPC_ERR, "Can not get remote") 50 ENGINE_CHECK((res) == INT_CALL_SUCCESS, return (res), "Transact error"); \ 55 ENGINE_CHECK(updateCallback != nullptr, return INT_PARAM_ERR, "Invalid param"); in RegisterUpdateCallback() 65 ENGINE_CHECK(res, return INT_CALL_IPC_ERR, "RegisterUpdateCallback error, WriteRemoteObject fail"); in RegisterUpdateCallback()
|
/base/update/updateservice/services/core/ability/sqlite/core/src/ |
H A D | sqlite_db.cpp | 43 ENGINE_CHECK(!dbStoreDir.empty(), return nullptr, "SqliteDb failed to create: path is empty"); in CreateDbStore() 70 ENGINE_CHECK(dbStore != nullptr, return false, "SqliteDb failed to create: db is null"); in Insert() 74 ENGINE_CHECK(ret == NativeRdb::E_OK, return false, "SqliteDb failed to insert ret=%{public}d", ret); in Insert() 81 ENGINE_CHECK(dbStore != nullptr, return false, "SqliteDb failed to create: db is null"); in Delete() 84 ENGINE_CHECK(ret == NativeRdb::E_OK, return false, "SqliteDb failed to delete ret=%{public}d", ret); in Delete() 92 ENGINE_CHECK(dbStore != nullptr, return nullptr, "SqliteDb failed to create: db is null"); in Query() 100 ENGINE_CHECK(dbStore != nullptr, return false, "SqliteDb failed to create: db is null"); in Update() 102 ENGINE_CHECK(ret == NativeRdb::E_OK, return false, "SqliteDb failed to update ret=%{public}d", ret); in Update()
|
/base/update/updateservice/services/callback/src/ |
H A D | update_callback_proxy.cpp | 36 ENGINE_CHECK(remote != nullptr, return, "Can not get remote"); in OnEvent() 39 ENGINE_CHECK(result == 0, return, "Can not WriteEventInfo"); in OnEvent() 42 ENGINE_CHECK(result == ERR_OK, return, "Can not SendRequest"); in OnEvent()
|
/base/update/updateservice/services/firmware/check/include/ |
H A D | firmware_icheck.h | 78 ENGINE_CHECK(engineSocket >= 0, in DoAction() 88 ENGINE_CHECK(ret > 0, close(engineSocket); in DoAction() 95 ENGINE_CHECK(ret == 0, in DoAction() 101 ENGINE_CHECK(ret == 0, in DoAction() 126 ENGINE_CHECK(root != nullptr, return -1, "Error get root"); in ParseJsonFile() 128 ENGINE_CHECK(root != nullptr, return -1, "Error get searchStatus"); in ParseJsonFile() 146 ENGINE_CHECK(sslCtx != nullptr, return -1, "sslCtx is nullptr"); in ReadDataFromSSL() 148 ENGINE_CHECK(ssl != nullptr, in ReadDataFromSSL()
|
/base/update/updateservice/services/core/ability/sqlite/core/include/ |
H A D | table_base_operator.h | 75 ENGINE_CHECK(table_ != nullptr, return false, "TableBaseOperator Insert table is null"); in Insert() 78 ENGINE_CHECK(dataBase_ != nullptr, return false, "TableBaseOperator Insert db is null"); in Insert() 106 ENGINE_CHECK(dataBase_ != nullptr, return false, "TableBaseOperator Delete db is null"); in Delete() 113 ENGINE_CHECK(dataBase_ != nullptr, return false, "TableBaseOperator DeleteById db is null"); in DeleteById() 131 ENGINE_CHECK(dataBase_ != nullptr, return false, "TableBaseOperator Query db is null"); in Query() 133 ENGINE_CHECK(resultSet != nullptr, return false, "TableBaseOperator Query failed to get result"); in Query() 135 ENGINE_CHECK(table_ != nullptr, return false, "TableBaseOperator Query table is null"); in Query() 152 ENGINE_CHECK(dataBase_ != nullptr, return false, "TableBaseOperator Update db is null"); in Update()
|
H A D | itable.h | 43 ENGINE_CHECK(resultSet != nullptr, return, "ParseDbValues resultSet is null"); in ParseDbValues() 69 ENGINE_CHECK(resultSet != nullptr, return, "GetColumnValue resultSet is null"); in GetColumnValue()
|
/base/update/updateservice/services/engine/src/ |
H A D | update_service_stub.cpp | 42 ENGINE_CHECK((service) != nullptr, return INT_CALL_IPC_ERR, "service null") 83 ENGINE_CHECK(ret == INT_CALL_SUCCESS, return ret, "Failed to GetNewVersionInfo"); in GetNewVersionStub() 104 ENGINE_CHECK(ret == INT_CALL_SUCCESS, return ret, "Failed to GetNewVersionDescription"); in GetNewVersionDescriptionStub() 119 ENGINE_CHECK(ret == INT_CALL_SUCCESS, return ret, "Failed to GetCurrentVersion"); in GetCurrentVersionStub() 138 ENGINE_CHECK(ret == INT_CALL_SUCCESS, return ret, "Failed to GetCurrentVersionDescription"); in GetCurrentVersionDescriptionStub() 153 ENGINE_CHECK(ret == INT_CALL_SUCCESS, return ret, "Failed to GetTaskInfo"); in GetTaskInfoStub() 168 ENGINE_CHECK(res == INT_CALL_SUCCESS, return res, "Failed to CheckNewVersion"); in CheckNewVersionStub() 186 ENGINE_CHECK(ret == INT_CALL_SUCCESS, return ret, "Failed to DownloadVersion"); in DownloadVersionStub() 204 ENGINE_CHECK(ret == INT_CALL_SUCCESS, return ret, "Failed to PauseDownload"); in PauseDownloadStub() 222 ENGINE_CHECK(re in ResumeDownloadStub() [all...] |
H A D | progress_thread.cpp | 55 ENGINE_CHECK(pDealThread_ != nullptr, return -1, "Failed to create thread"); in StartProgress() 118 ENGINE_CHECK(!findDot, in ProcessThreadExecute() 122 ENGINE_CHECK(downloadFile_ != nullptr, in ProcessThreadExecute() 127 ENGINE_CHECK(downloadHandle_ != nullptr, in ProcessThreadExecute() 215 ENGINE_CHECK(engine != nullptr, return -1, "Can not find engine"); in DownloadProgress()
|
H A D | update_service_restorer.cpp | 39 ENGINE_CHECK(!miscBlockDev.empty(), miscBlockDev = MISC_FILE, "cannot get block device of partition"); in FactoryReset()
|
/base/update/updateservice/foundations/ability/sa_loader/include/ |
H A D | base_service_kits_impl.h | 82 ENGINE_CHECK(manager != nullptr, return nullptr, "manager is nullptr"); in GetService() 85 ENGINE_CHECK(LoadSaService::GetInstance()->TryLoadSa(systemAbilityId_), return nullptr, "TryLoadSa fail"); in GetService() 87 ENGINE_CHECK(object != nullptr, return nullptr, "Get remote object from samgr failed"); in GetService() 91 ENGINE_CHECK(remoteServer_ != nullptr, return nullptr, "service iface_cast failed"); in GetService()
|
/base/update/updateservice/foundations/ability/define/include/ |
H A D | update_define.h | 28 #define ENGINE_CHECK(retCode, exper, ...) \ macro
|