1 /* 2 * Copyright (C) 2023-2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 * Description: supply cast session manager service proxy class 15 * Author: zhuzhibin 16 * Create: 2022-10-25 17 */ 18 19 #include "cast_engine_log.h" 20 #include "cast_engine_common.h" 21 #include "system_ability_definition.h" 22 #include "cast_engine_service_load_callback.h" 23 24 namespace OHOS { 25 namespace CastEngine { 26 namespace CastEngineClient { 27 DEFINE_CAST_ENGINE_LABEL("Cast-Client-LoadServiceCallback"); 28 OnLoadSystemAbilitySuccess(int32_t systemAbilityId,const sptr<IRemoteObject> & remoteObject)29void CastEngineServiceLoadCallback::OnLoadSystemAbilitySuccess(int32_t systemAbilityId, 30 const sptr<IRemoteObject> &remoteObject) 31 { 32 CLOGI("In systemAbilityId: %d", systemAbilityId); 33 if (systemAbilityId != CAST_ENGINE_SA_ID) { 34 CLOGE("Start aystemabilityId is not sinkSAId!"); 35 return; 36 } 37 if (remoteObject == nullptr) { 38 CLOGE("RemoteObject is nullptr."); 39 return; 40 } 41 } 42 OnLoadSystemAbilityFail(int32_t systemAbilityId)43void CastEngineServiceLoadCallback::OnLoadSystemAbilityFail(int32_t systemAbilityId) 44 { 45 CLOGI("In systemAbilityId: %d.", systemAbilityId); 46 if (systemAbilityId != CAST_ENGINE_SA_ID) { 47 CLOGE("Start aystemabilityId is not sinkSAId!"); 48 return; 49 } 50 } 51 } // namespace CastEngineClient 52 } // namespace CastEngine 53 } // namespace OHOS