Home
last modified time | relevance | path

Searched refs:ENGINE_CHECK (Results 1 - 12 of 12) sorted by relevance

/base/update/updateservice/interfaces/inner_api/engine/src/
H A Dupdate_service_kits_impl.cpp46 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 Dupdate_service_proxy.cpp29 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 Dsqlite_db.cpp43 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 Dupdate_callback_proxy.cpp36 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 Dfirmware_icheck.h78 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 Dtable_base_operator.h75 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 Ditable.h43 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 Dupdate_service_stub.cpp42 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 Dprogress_thread.cpp55 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 Dupdate_service_restorer.cpp39 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 Dbase_service_kits_impl.h82 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 Dupdate_define.h28 #define ENGINE_CHECK(retCode, exper, ...) \ macro

Completed in 6 milliseconds