/foundation/window/window_manager/wm/src/ |
H A D | picture_in_picture_option.cpp | 40 void PipOption::SetPiPControlStatus(PiPControlType controlType, PiPControlStatus status) in SetPiPControlStatus() argument 43 if (controlType == controlStatusInfo.controlType) { in SetPiPControlStatus() 48 PiPControlStatusInfo newPiPControlStatusInfo {controlType, status}; in SetPiPControlStatus() 52 void PipOption::SetPiPControlEnabled(PiPControlType controlType, PiPControlStatus enabled) in SetPiPControlEnabled() argument 55 if (controlType == controlEnableInfo.controlType) { in SetPiPControlEnabled() 60 PiPControlEnableInfo newPiPControlEnableInfo {controlType, enabled}; in SetPiPControlEnabled()
|
H A D | picture_in_picture_controller.cpp | 494 void PictureInPictureController::UpdatePiPControlStatus(PiPControlType controlType, PiPControlStatus status) in UpdatePiPControlStatus() argument 496 TLOGI(WmsLogTag::WMS_PIP, "controlType:%{public}u, status:%{public}d", controlType, status); in UpdatePiPControlStatus() 498 pipOption_->SetPiPControlEnabled(controlType, status); in UpdatePiPControlStatus() 500 pipOption_->SetPiPControlStatus(controlType, status); in UpdatePiPControlStatus() 506 window_->UpdatePiPControlStatus(controlType, status); in UpdatePiPControlStatus() 543 void PictureInPictureController::DoControlEvent(PiPControlType controlType, PiPControlStatus status) in DoControlEvent() argument 545 TLOGI(WmsLogTag::WMS_PIP, "controlType:%{public}u, enabled:%{public}d", controlType, status); in DoControlEvent() 550 SingletonContainer::Get<PiPReporter>().ReportPiPControlEvent(pipOption_->GetPipTemplate(), controlType); in DoControlEvent() [all...] |
H A D | picture_in_picture_manager.cpp | 247 void PictureInPictureManager::DoControlEvent(PiPControlType controlType, PiPControlStatus status) in DoControlEvent() argument 249 TLOGI(WmsLogTag::WMS_PIP, "controlType:%{public}u, enabled:%{public}d", controlType, status); in DoControlEvent() 253 activeController_->DoControlEvent(controlType, status); in DoControlEvent()
|
/foundation/window/window_manager/wm/test/unittest/ |
H A D | picture_in_picture_option_test.cpp | 83 auto controlType = PiPControlType::VIDEO_PLAY_PAUSE; in HWTEST_F() local 85 option->SetPiPControlStatus(controlType, status); in HWTEST_F() 86 controlType = PiPControlType::END; in HWTEST_F() 87 option->SetPiPControlStatus(controlType, status); in HWTEST_F() 100 auto controlType = PiPControlType::VIDEO_PLAY_PAUSE; in HWTEST_F() local 102 option->SetPiPControlEnabled(controlType, enabled); in HWTEST_F() 103 controlType = PiPControlType::END; in HWTEST_F() 104 option->SetPiPControlEnabled(controlType, enabled); in HWTEST_F()
|
H A D | picture_in_picture_controller_test.cpp | 566 auto controlType = PiPControlType::VIDEO_PLAY_PAUSE; in HWTEST_F() local 568 pipControl->UpdatePiPControlStatus(controlType, status); in HWTEST_F() 571 pipControl->UpdatePiPControlStatus(controlType, status); in HWTEST_F() 574 pipControl->UpdatePiPControlStatus(controlType, status); in HWTEST_F() 576 pipControl->UpdatePiPControlStatus(controlType, status); in HWTEST_F() 641 auto controlType = PiPControlType::VIDEO_PLAY_PAUSE; in HWTEST_F() local 651 pipControl->DoControlEvent(controlType, status); in HWTEST_F() 653 pipControl->DoControlEvent(controlType, status); in HWTEST_F() 655 pipControl->DoControlEvent(controlType, status); in HWTEST_F()
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/app_control/ |
H A D | native_module.cpp | 36 napi_value controlType = nullptr; in AppControlExport() local 37 NAPI_CALL(env, napi_create_object(env, &controlType)); in AppControlExport() 38 CreateControlType(env, controlType); in AppControlExport() 51 DECLARE_NAPI_PROPERTY("ControlType", controlType), in AppControlExport()
|
H A D | js_app_control.cpp | 516 NAPI_CALL_RETURN_VOID(env, napi_create_uint32(env, static_cast<int32_t>(rule.controlType), &nControlType)); in ConvertRuleInfo() 517 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, nRule, "controlType", nControlType)); in ConvertRuleInfo() 573 napi_get_named_property(env, nRule, "controlType", &prop); in ParseDiposedRule() 574 int32_t controlType; in ParseDiposedRule() local 575 if (!CommonFunc::ParseInt(env, prop, controlType)) { in ParseDiposedRule() 579 if (controlType > static_cast<int32_t>(ControlType::DISALLOWED_LIST) || in ParseDiposedRule() 580 controlType < static_cast<int32_t>(ControlType::ALLOWED_LIST)) { in ParseDiposedRule() 584 rule.controlType = static_cast<ControlType>(controlType); in ParseDiposedRule()
|
/foundation/window/window_manager/interfaces/kits/napi/picture_in_picture_napi/ |
H A D | js_pip_window_listener.cpp | 119 void JsPiPWindowListener::OnControlEvent(PiPControlType controlType, PiPControlStatus statusCode) in OnControlEvent() argument 121 TLOGI(WmsLogTag::WMS_PIP, "controlType:%{public}u, statusCode:%{public}d", controlType, statusCode); in OnControlEvent() 122 auto napiTask = [jsCallback = jsCallBack_, controlType, statusCode, env = env_]() { in OnControlEvent() 129 napi_set_named_property(env, propertyValue, "controlType", CreateJsValue(env, controlType)); in OnControlEvent()
|
H A D | js_pip_window_listener.h | 40 void OnControlEvent(PiPControlType controlType, PiPControlStatus statusCode) override;
|
H A D | js_pip_window_manager.cpp | 125 uint32_t controlType; in GetControlGroupFromJs() local 128 if (!ConvertFromJsValue(env, getElementValue, controlType)) { in GetControlGroupFromJs() 129 TLOGE(WmsLogTag::WMS_PIP, "Failed to convert parameter to controlType"); in GetControlGroupFromJs() 132 auto iter = std::find(controls.begin(), controls.end(), controlType); in GetControlGroupFromJs() 134 TLOGI(WmsLogTag::WMS_PIP, "The controlType already exists. controlType: %{public}u", controlType); in GetControlGroupFromJs() 136 controls.push_back(controlType); in GetControlGroupFromJs()
|
H A D | js_pip_controller.cpp | 248 auto controlType = PiPControlType::VIDEO_PLAY_PAUSE; in OnUpdatePiPControlStatus() local 250 if (!ConvertFromJsValue(env, argv[0], controlType)) { in OnUpdatePiPControlStatus() 251 errMsg = "Failed to convert parameter to int or controlType < 0"; in OnUpdatePiPControlStatus() 266 pipController_->UpdatePiPControlStatus(controlType, status); in OnUpdatePiPControlStatus() 286 auto controlType = PiPControlType::VIDEO_PLAY_PAUSE; in OnSetPiPControlEnabled() local 288 if (!ConvertFromJsValue(env, argv[0], controlType)) { in OnSetPiPControlEnabled() 304 pipController_->UpdatePiPControlStatus(controlType, enabled ? in OnSetPiPControlEnabled()
|
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/ |
H A D | disposed_rule.cpp | 30 const char* CONTROL_TYPE = "controlType"; 42 controlType = static_cast<ControlType>(parcel.ReadInt32()); in ReadFromParcel() 64 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Int32, parcel, static_cast<int32_t>(controlType)); in Marshalling() 146 {CONTROL_TYPE, disposedRule.controlType}, in to_json() 184 disposedRule.controlType, in from_json()
|
/foundation/window/window_manager/wm/include/ |
H A D | picture_in_picture_option.h | 35 void SetPiPControlStatus(PiPControlType controlType, PiPControlStatus status); 36 void SetPiPControlEnabled(PiPControlType controlType, PiPControlStatus enabled);
|
H A D | picture_in_picture_interface.h | 55 virtual void OnControlEvent(PiPControlType controlType, PiPControlStatus status) {} in OnControlEvent() argument
|
H A D | picture_in_picture_controller.h | 78 void UpdatePiPControlStatus(PiPControlType controlType, PiPControlStatus status); 81 void DoControlEvent(PiPControlType controlType, PiPControlStatus status);
|
H A D | picture_in_picture_manager.h | 54 static void DoControlEvent(PiPControlType controlType, PiPControlStatus status);
|
/foundation/window/window_manager/utils/src/ |
H A D | pip_report.cpp | 136 void PiPReporter::ReportPiPControlEvent(int32_t templateType, PiPControlType controlType) in ReportPiPControlEvent() argument 138 TLOGI(WmsLogTag::WMS_PIP, "templateType:%{public}d, controlType:%{public}d", templateType, controlType); in ReportPiPControlEvent() 145 EVENT_KEY_ACTION_EVENT, static_cast<uint32_t>(controlType), in ReportPiPControlEvent()
|
/foundation/window/window_manager/utils/include/ |
H A D | pip_report.h | 33 void ReportPiPControlEvent(int32_t templateType, PiPControlType controlType);
|
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/ |
H A D | disposed_rule.h | 49 ControlType controlType = ControlType::ALLOWED_LIST; member
|
/foundation/window/window_manager/window_scene/test/mock/ |
H A D | mock_session_stage.h | 60 MOCK_METHOD2(SetPiPControlEvent, WSError(WsPiPControlType controlType, WsPiPControlStatus status));
|
/foundation/ability/ability_runtime/services/abilitymgr/src/interceptor/ |
H A D | disposed_rule_interceptor.cpp | 44 "disposedType: %{public}d, controlType: %{public}d, " in DoProcess() 45 "componentType: %{public}d", disposedRule.disposedType, disposedRule.controlType, in DoProcess() 141 bool isAllowed = disposedRule.controlType == AppExecFwk::ControlType::ALLOWED_LIST; in CheckDisposedRule()
|
/foundation/ability/ability_runtime/test/unittest/ability_interceptor_second_test/ |
H A D | ability_interceptor_second_test.cpp | 115 disposedRule.controlType = AppExecFwk::ControlType::DISALLOWED_LIST; in HWTEST_F() 245 disposedRule.controlType == AppExecFwk::ControlType::DISALLOWED_LIST; in HWTEST_F()
|
/foundation/window/window_manager/window_scene/common/src/ |
H A D | window_session_property.cpp | 756 if (!parcel.WriteUint32(static_cast<uint32_t>(pipTemplateInfo_.pipControlStatusInfoList[i].controlType)) || in MarshallingPiPTemplateInfo() 769 if (!parcel.WriteUint32(static_cast<uint32_t>(pipTemplateInfo_.pipControlEnableInfoList[i].controlType)) || in MarshallingPiPTemplateInfo() 802 uint32_t controlType = 0; in UnmarshallingPiPTemplateInfo() local 804 if (!parcel.ReadUint32(controlType) || !parcel.ReadInt32(status)) { in UnmarshallingPiPTemplateInfo() 807 pipControlStatusInfo.controlType = static_cast<PiPControlType>(controlType); in UnmarshallingPiPTemplateInfo() 817 uint32_t controlType = 0; in UnmarshallingPiPTemplateInfo() local 819 if (!parcel.ReadUint32(controlType) || !parcel.ReadInt32(enabled)) { in UnmarshallingPiPTemplateInfo() 822 pipControlEnableInfo.controlType = static_cast<PiPControlType>(controlType); in UnmarshallingPiPTemplateInfo() [all...] |
/foundation/ability/ability_runtime/test/mock/services_abilitymgr_test/libs/appexecfwk_core/src/bundlemgr/ |
H A D | mock_app_control_manager.cpp | 102 disposedRule.controlType = AppExecFwk::ControlType::DISALLOWED_LIST; in GetAbilityRunningControlRule()
|
/foundation/window/window_manager/window_scene/session/container/include/zidl/ |
H A D | session_stage_proxy.h | 64 WSError SetPiPControlEvent(WsPiPControlType controlType, WsPiPControlStatus status) override;
|