PlatformResult NFCAdapter::IsActivatedHandlerForAID(const std::string& type, const std::string& aid,
bool* is_activated_handler) {
ScopeLogger();
- AssertMsg(is_activated_handler, "Poiner can not be null!");
+ if (!is_activated_handler) {
+ return LogAndCreateResult(ErrorCode::UNKNOWN_ERR, "Pointer can not be null!");
+ }
nfc_se_type_e se_type;
PlatformResult result = NFCUtil::ToSecureElementType(type, &se_type);
- if (!result.IsError()) {
+ if (result.IsError()) {
LoggerE("Error: %s", result.message().c_str());
return result;
}
const std::string& type, nfc_card_emulation_category_type_e category,
bool* is_activated_handler) {
ScopeLogger();
- AssertMsg(is_activated_handler, "Poiner can not be null!");
+ if (!is_activated_handler) {
+ return LogAndCreateResult(ErrorCode::UNKNOWN_ERR, "Pointer can not be null!");
+ }
nfc_se_type_e se_type;
PlatformResult result = NFCUtil::ToSecureElementType(type, &se_type);
- if (!result.IsError()) {
+ if (result.IsError()) {
LoggerE("Error: %s", result.message().c_str());
return result;
}
PlatformResult SysteminfoManager::UnregisterStorageListener() {
ScopeLogger();
- PlatformResult ret = PlatformResult(ErrorCode::NO_ERROR);
-
g_source_remove(storage_event_id_);
storage_event_id_ = 0;
- CHECK_LISTENER_ERROR(
- SysteminfoUtils::UnregisterVconfCallback(VCONFKEY_SYSMAN_MMC_STATUS, OnMmcChangedCb))
+
+ PlatformResult ret = PlatformResult(ErrorCode::NO_ERROR);
+
LoggerD("Removed callback for STORAGE");
return PlatformResult(ErrorCode::NO_ERROR);
}