Lines Matching refs:client_id
308 map_info_primary_.client_id = qdutils::DISPLAY_PRIMARY; in InitSupportedDisplaySlots()
372 map_info.client_id = base_id++; in InitSupportedDisplaySlots()
378 map_info.client_id = base_id++; in InitSupportedDisplaySlots()
384 map_info.client_id = base_id++; in InitSupportedDisplaySlots()
399 DLOGI("Display Pairs: map.client_id: %d, start_index: %d", INT32(map.client_id), in InitSupportedDisplaySlots()
401 map_hwc_display_.insert(std::make_pair(map.client_id, start_index++)); in InitSupportedDisplaySlots()
411 map_info_primary_.client_id = 0; in InitSupportedNullDisplaySlots()
419 DLOGI("Display Pairs: map.client_id: %d, start_index: %d", INT32(map_info_primary_.client_id), in InitSupportedNullDisplaySlots()
421 map_hwc_display_.insert(std::make_pair(map_info_primary_.client_id, in InitSupportedNullDisplaySlots()
453 return INT(map_info->client_id); in GetDisplayIndex()
548 if (map_info.client_id == display) { in DestroyVirtualDisplay()
893 SCOPE_LOCK(locker_[map_info.client_id]); in RegisterCallback()
894 if (hwc_display_[map_info.client_id]) { in RegisterCallback()
895 pending_hotplugs.push_back(static_cast<hwc2_display_t>(map_info.client_id)); in RegisterCallback()
899 SCOPE_LOCK(locker_[map_info.client_id]); in RegisterCallback()
900 if (hwc_display_[map_info.client_id]) { in RegisterCallback()
901 pending_hotplugs.push_back(static_cast<hwc2_display_t>(map_info.client_id)); in RegisterCallback()
934 for (auto client_id : pending_hotplugs) { in RegisterCallback() local
935 SCOPE_LOCK(locker_[client_id]); in RegisterCallback()
937 if (hwc_display_[client_id]) { in RegisterCallback()
938 updated_pending_hotplugs.push_back(client_id); in RegisterCallback()
941 for (auto client_id : updated_pending_hotplugs) { in RegisterCallback() local
942 DLOGI("Re-hotplug display connected: client id = %d", UINT32(client_id)); in RegisterCallback()
943 callbacks_.Hotplug(client_id, HWC2::Connection::Connected); in RegisterCallback()
1310 hwc2_display_t client_id = HWCCallbacks::kNumDisplays; in CreateVirtualDisplayObj() local
1336 client_id = map_info.client_id; in CreateVirtualDisplayObj()
1338 SCOPE_LOCK(locker_[client_id]); in CreateVirtualDisplayObj()
1339 auto &hwc_display = hwc_display_[client_id]; in CreateVirtualDisplayObj()
1346 client_id, display_id, width, height, in CreateVirtualDisplayObj()
1354 SCOPE_LOCK(hdr_locker_[client_id]); in CreateVirtualDisplayObj()
1355 is_hdr_display_[UINT32(client_id)] = HasHDRSupport(hwc_display); in CreateVirtualDisplayObj()
1358 DLOGI("Created virtual display id:%" PRIu64 " with res: %dx%d", client_id, width, height); in CreateVirtualDisplayObj()
1360 *out_display_id = client_id; in CreateVirtualDisplayObj()
1378 if (hwc_display_[map_info.client_id]) { in IsPluggableDisplayConnected()
2248 if (display_id == map_info_primary_.client_id) { in QdcmCMDDispatch()
2252 if (map_info.client_id == display_id) { in QdcmCMDDispatch()
2370 uint32_t id = UINT32(map_info.client_id); in QdcmCMDHandler()
2395 uint64_t id = map_info.client_id; in QdcmCMDHandler()
2727 hwc2_display_t client_id = map_info_primary_.client_id; in CreatePrimaryDisplay() local
2731 qservice_, client_id, info.display_id, hwc_display); in CreatePrimaryDisplay()
2734 qservice_, client_id, info.display_id, 0, 0, false, in CreatePrimaryDisplay()
2743 info.display_id, UINT32(client_id)); in CreatePrimaryDisplay()
2745 SCOPE_LOCK(hdr_locker_[client_id]); in CreatePrimaryDisplay()
2746 is_hdr_display_[UINT32(client_id)] = HasHDRSupport(*hwc_display); in CreatePrimaryDisplay()
2767 void HWCSession::CreateDummyDisplay(hwc2_display_t client_id) { in CreateDummyDisplay() argument
2772 hwc2_display_t dummy_disp_id = map_hwc_display_.find(client_id)->second; in CreateDummyDisplay()
2777 DLOGE("Dummy display creation failed for %d display\n", UINT32(client_id)); in CreateDummyDisplay()
2804 hwc2_display_t client_id = map_info.client_id; in HandleBuiltInDisplays() local
2807 SCOPE_LOCK(locker_[client_id]); in HandleBuiltInDisplays()
2809 if (hwc_display_[client_id]) { in HandleBuiltInDisplays()
2814 UINT32(client_id)); in HandleBuiltInDisplays()
2816 qservice_, client_id, info.display_id, in HandleBuiltInDisplays()
2817 &hwc_display_[client_id]); in HandleBuiltInDisplays()
2824 SCOPE_LOCK(hdr_locker_[client_id]); in HandleBuiltInDisplays()
2825 is_hdr_display_[UINT32(client_id)] = HasHDRSupport(hwc_display_[client_id]); in HandleBuiltInDisplays()
2829 UINT32(client_id)); in HandleBuiltInDisplays()
2832 CreateDummyDisplay(client_id); in HandleBuiltInDisplays()
2836 UINT32(client_id)); in HandleBuiltInDisplays()
2837 callbacks_.Hotplug(client_id, HWC2::Connection::Connected); in HandleBuiltInDisplays()
2894 hwc2_display_t client_id = 0; in HandleConnectedDisplays() local
2918 SCOPE_LOCK(locker_[p.client_id]); in HandleConnectedDisplays()
2919 if (hwc_display_[p.client_id]) { in HandleConnectedDisplays()
2920 if (!hwc_display_[p.client_id]->IsFirstCommitDone()) { in HandleConnectedDisplays()
2946 client_id = map_info.client_id; in HandleConnectedDisplays()
2950 SCOPE_LOCK(locker_[client_id]); in HandleConnectedDisplays()
2951 auto &hwc_display = hwc_display_[client_id]; in HandleConnectedDisplays()
2958 UINT32(client_id)); in HandleConnectedDisplays()
2965 &callbacks_, this, qservice_, client_id, in HandleConnectedDisplays()
2969 &callbacks_, this, qservice_, client_id, in HandleConnectedDisplays()
2983 SCOPE_LOCK(hdr_locker_[client_id]); in HandleConnectedDisplays()
2984 is_hdr_display_[UINT32(client_id)] = HasHDRSupport(hwc_display); in HandleConnectedDisplays()
2988 info.display_id, UINT32(client_id)); in HandleConnectedDisplays()
2989 CreateDummyDisplay(client_id); in HandleConnectedDisplays()
2995 pending_hotplugs.push_back((hwc2_display_t)client_id); in HandleConnectedDisplays()
3010 WaitForResources(delay_hotplug, active_builtin_disp_id, client_id); in HandleConnectedDisplays()
3013 for (auto client_id : pending_hotplugs) { in HandleConnectedDisplays() local
3014 DLOGI("Notify hotplug display connected: client id = %d", UINT32(client_id)); in HandleConnectedDisplays()
3015 callbacks_.Hotplug(client_id, HWC2::Connection::Connected); in HandleConnectedDisplays()
3072 hwc2_display_t client_id = map_info->client_id; in DestroyPluggableDisplay() local
3074 DLOGI("Notify hotplug display disconnected: client id = %d", UINT32(client_id)); in DestroyPluggableDisplay()
3075 callbacks_.Hotplug(client_id, HWC2::Connection::Disconnected); in DestroyPluggableDisplay()
3079 SEQUENCE_CANCEL_SCOPE_LOCK(locker_[client_id]); in DestroyPluggableDisplay()
3080 auto &hwc_display = hwc_display_[client_id]; in DestroyPluggableDisplay()
3085 UINT32(client_id)); in DestroyPluggableDisplay()
3087 SCOPE_LOCK(hdr_locker_[client_id]); in DestroyPluggableDisplay()
3088 is_hdr_display_[UINT32(client_id)] = false; in DestroyPluggableDisplay()
3098 hwc2_display_t dummy_disp_id = map_hwc_display_.find(client_id)->second; in DestroyPluggableDisplay()
3106 display_ready_.reset(UINT32(client_id)); in DestroyPluggableDisplay()
3107 pending_power_mode_[client_id] = false; in DestroyPluggableDisplay()
3114 hwc2_display_t client_id = map_info->client_id; in DestroyNonPluggableDisplay() local
3116 SCOPE_LOCK(locker_[client_id]); in DestroyNonPluggableDisplay()
3117 auto &hwc_display = hwc_display_[client_id]; in DestroyNonPluggableDisplay()
3122 UINT32(client_id)); in DestroyNonPluggableDisplay()
3124 SCOPE_LOCK(hdr_locker_[client_id]); in DestroyNonPluggableDisplay()
3125 is_hdr_display_[UINT32(client_id)] = false; in DestroyNonPluggableDisplay()
3138 hwc2_display_t dummy_disp_id = map_hwc_display_.find(client_id)->second; in DestroyNonPluggableDisplay()
3146 pending_power_mode_[client_id] = false; in DestroyNonPluggableDisplay()
3148 display_ready_.reset(UINT32(client_id)); in DestroyNonPluggableDisplay()
3672 hwc2_display_t target_display = info.client_id; in GetActiveBuiltinDisplay()
3681 active_display = info.client_id; in GetActiveBuiltinDisplay()
3723 hwc2_display_t target_display = info.client_id; in WaitForResources()