Lines Matching refs:secondary_
88 } else if (secondary_ != nullptr && secondary_->GetWindowId() == node->GetWindowId()) {
89 return secondary_;
98 if (primary_ == nullptr || secondary_ == nullptr) {
102 secondary_->GetWindowMode() == WindowMode::WINDOW_MODE_SPLIT_SECONDARY &&
145 if (primary_ != nullptr && !(primary_->GetWindowFlags() & flag) && secondary_ != nullptr &&
146 !(secondary_->GetWindowFlags() & flag)) {
178 if ((isVertical && (primary_->GetWindowRect().height_ < secondary_->GetWindowRect().height_)) ||
179 (!isVertical && (primary_->GetWindowRect().width_ < secondary_->GetWindowRect().width_))) {
181 recoveryNode = secondary_;
183 hideNode = secondary_;
217 if (secondary_ != nullptr && secondary_->GetWindowProperty() != nullptr &&
218 secondary_->GetWindowToken() != nullptr) {
219 if (secondary_->GetModeSupportInfo() == splitModeInfo) {
220 MinimizeApp::AddNeedMinimizeApp(secondary_, MinimizeReason::SPLIT_QUIT);
223 if (WindowHelper::IsFullScreenWindow(secondary_->GetWindowProperty()->GetLastWindowMode()) &&
224 WindowHelper::IsSplitWindowMode(secondary_->GetWindowProperty()->GetWindowMode()) &&
225 secondary_->GetWindowType() != WindowType::WINDOW_TYPE_LAUNCHER_RECENT) {
226 secondary_->SetWindowSizeChangeReason(WindowSizeChangeReason::SPLIT_TO_FULL);
228 secondary_->GetWindowProperty()->ResumeLastWindowMode();
230 WindowSystemEffect::SetWindowEffect(secondary_);
231 secondary_->GetWindowToken()->UpdateWindowMode(secondary_->GetWindowMode());
236 secondary_ = nullptr;
266 if (secondary_ != nullptr) {
267 for (auto& child : secondary_->children_) {
321 return CreateOrderedPair(divider_, primary_, secondary_);
325 return CreateOrderedPair(secondary_, divider_, primary_);
327 return CreateOrderedPair(primary_, divider_, secondary_);
331 return CreateOrderedPair(secondary_, primary_, divider_);
333 return CreateOrderedPair(primary_, secondary_, divider_);
342 if (status_ == WindowPairStatus::PAIRED_DONE && primary_ != nullptr && secondary_ != nullptr) {
343 pairWindows = {primary_, secondary_};
372 (secondary_ != nullptr && secondary_->GetWindowMode() == node->GetWindowMode()))) {
409 if (primary_ != nullptr && secondary_ != nullptr && divider_ != nullptr) {
411 } else if (primary_ != nullptr && secondary_ != nullptr && divider_ == nullptr) {
413 } else if (primary_ != nullptr && secondary_ == nullptr && divider_ == nullptr) {
415 } else if (primary_ != nullptr && secondary_ == nullptr && divider_ != nullptr) {
417 } else if (primary_ == nullptr && secondary_ != nullptr && divider_ == nullptr) {
419 } else if (primary_ == nullptr && secondary_ != nullptr && divider_ != nullptr) {
421 } else if (primary_ == nullptr && secondary_ == nullptr && divider_ != nullptr) {
440 if (primary_ == nullptr || secondary_ == nullptr) {
444 primary_->GetWindowId(), primary_->GetWindowMode(), secondary_->GetWindowId(), secondary_->GetWindowMode());
445 if (primary_->GetWindowMode() == secondary_->GetWindowMode() &&
453 std::swap(primary_, secondary_);
454 } else if (primary_->GetWindowMode() == secondary_->GetWindowMode() &&
456 secondary_->SetWindowMode(WindowMode::WINDOW_MODE_SPLIT_PRIMARY);
458 WindowSystemEffect::SetWindowEffect(secondary_);
459 if (secondary_->GetWindowToken() != nullptr) {
460 secondary_->GetWindowToken()->UpdateWindowMode(WindowMode::WINDOW_MODE_SPLIT_PRIMARY);
462 std::swap(primary_, secondary_);
472 if (secondary_ != nullptr && !secondary_->IsSplitMode()) {
473 secondary_ = nullptr;
476 if (primary_ != nullptr && secondary_ == nullptr &&
478 std::swap(primary_, secondary_);
479 } else if (primary_ == nullptr && secondary_ != nullptr &&
480 secondary_->GetWindowMode() == WindowMode::WINDOW_MODE_SPLIT_PRIMARY) {
481 std::swap(primary_, secondary_);
482 } else if (primary_ != nullptr && secondary_ != nullptr &&
483 primary_->GetWindowMode() == secondary_->GetWindowMode()) {
504 pairedNode = secondary_;
505 secondary_ = node;
526 if (secondary_ != nullptr) {
527 WLOGI("[DumpPairInfo] secondary id: %{public}u mode: %{public}u", secondary_->GetWindowId(),
528 secondary_->GetWindowMode());
577 if (status_ == WindowPairStatus::PAIRED_DONE && primary_ != nullptr && secondary_ != nullptr) {
578 WLOGD("Take pair snapshot id:[%{public}u, %{public}u]", primary_->GetWindowId(), secondary_->GetWindowId());
585 if (SurfaceDraw::GetSurfaceSnapshot(secondary_->surfaceNode_, pixelMap, SNAPSHOT_TIMEOUT_MS)) {
586 secondary_->SetSnapshot(pixelMap);
599 if (secondary_ != nullptr) {
600 secondary_->SetSnapshot(nullptr);
647 if (status_ != WindowPairStatus::PAIRED_DONE || primary_ == nullptr || secondary_ == nullptr) {
653 secondary_->GetWindowType() == WindowType::WINDOW_TYPE_LAUNCHER_RECENT) {