mirror of
https://github.com/openharmony/accessibility.git
synced 2026-08-24 22:11:28 -04:00
@@ -315,8 +315,7 @@ uint32_t AccessibleAbilityManagerService::RegisterCaptionObserver(
|
||||
{
|
||||
HILOG_DEBUG();
|
||||
if (!callback || !handler_) {
|
||||
HILOG_ERROR("Parameters check failed! callback:%{public}p, handler:%{public}p",
|
||||
callback.GetRefPtr(), handler_.get());
|
||||
HILOG_ERROR("Parameters check failed!");
|
||||
return ERR_INVALID_VALUE;
|
||||
}
|
||||
|
||||
@@ -396,7 +395,7 @@ RetError AccessibleAbilityManagerService::GetAbilityList(const uint32_t abilityT
|
||||
{
|
||||
HILOG_DEBUG("abilityTypes(%{public}d) stateType(%{public}d)", abilityTypes, stateType);
|
||||
if (!handler_ || (stateType > ABILITY_STATE_INSTALLED) || (stateType < ABILITY_STATE_ENABLE)) {
|
||||
HILOG_ERROR("Parameters check failed! stateType:%{public}d, handler:%{public}p", stateType, handler_.get());
|
||||
HILOG_ERROR("Parameters check failed! stateType:%{public}d", stateType);
|
||||
return RET_ERR_INVALID_PARAM;
|
||||
}
|
||||
|
||||
@@ -1949,8 +1948,7 @@ uint32_t AccessibleAbilityManagerService::RegisterConfigObserver(
|
||||
{
|
||||
HILOG_DEBUG();
|
||||
if (!callback || !handler_) {
|
||||
HILOG_ERROR("Parameters check failed! callback:%{public}p, handler:%{public}p",
|
||||
callback.GetRefPtr(), handler_.get());
|
||||
HILOG_ERROR("Parameters check failed!");
|
||||
return ERR_INVALID_VALUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user