Lines Matching refs:map_info
235 for (auto &map_info : map_info_builtin_) { in Deinit() local
236 DestroyDisplay(&map_info); in Deinit()
239 for (auto &map_info : map_info_pluggable_) { in Deinit() local
240 DestroyDisplay(&map_info); in Deinit()
243 for (auto &map_info : map_info_virtual_) { in Deinit() local
244 DestroyDisplay(&map_info); in Deinit()
335 for (auto &map_info : map_info_pluggable_) { in InitSupportedDisplaySlots() local
336 map_info.client_id = base_id++; in InitSupportedDisplaySlots()
341 for (auto &map_info : map_info_builtin_) { in InitSupportedDisplaySlots() local
342 map_info.client_id = base_id++; in InitSupportedDisplaySlots()
347 for (auto &map_info : map_info_virtual_) { in InitSupportedDisplaySlots() local
348 map_info.client_id = base_id++; in InitSupportedDisplaySlots()
359 std::vector<DisplayMapInfo> map_info = {map_info_primary_}; in InitSupportedDisplaySlots() local
360 std::copy(map_info_builtin_.begin(), map_info_builtin_.end(), std::back_inserter(map_info)); in InitSupportedDisplaySlots()
361 std::copy(map_info_pluggable_.begin(), map_info_pluggable_.end(), std::back_inserter(map_info)); in InitSupportedDisplaySlots()
362 for (auto &map : map_info) { in InitSupportedDisplaySlots()
390 DisplayMapInfo *map_info = nullptr; in GetDisplayIndex() local
393 map_info = &map_info_primary_; in GetDisplayIndex()
396 map_info = map_info_pluggable_.size() ? &map_info_pluggable_[0] : nullptr; in GetDisplayIndex()
399 map_info = (map_info_pluggable_.size() > 1) ? &map_info_pluggable_[1] : nullptr; in GetDisplayIndex()
402 map_info = map_info_virtual_.size() ? &map_info_virtual_[0] : nullptr; in GetDisplayIndex()
405 map_info = map_info_builtin_.size() ? &map_info_builtin_[0] : nullptr; in GetDisplayIndex()
412 if (!map_info) { in GetDisplayIndex()
417 return INT(map_info->client_id); in GetDisplayIndex()
511 for (auto &map_info : map_info_virtual_) { in DestroyVirtualDisplay() local
512 if (map_info.client_id == display) { in DestroyVirtualDisplay()
514 DestroyDisplay(&map_info); in DestroyVirtualDisplay()
856 for (auto& map_info : map_info_builtin_) { in RegisterCallback() local
857 SCOPE_LOCK(locker_[map_info.client_id]); in RegisterCallback()
858 if (hwc_display_[map_info.client_id]) { in RegisterCallback()
859 pending_hotplugs.push_back(static_cast<hwc2_display_t>(map_info.client_id)); in RegisterCallback()
862 for (auto& map_info : map_info_pluggable_) { in RegisterCallback() local
863 SCOPE_LOCK(locker_[map_info.client_id]); in RegisterCallback()
864 if (hwc_display_[map_info.client_id]) { in RegisterCallback()
865 pending_hotplugs.push_back(static_cast<hwc2_display_t>(map_info.client_id)); in RegisterCallback()
1285 for (auto &map_info : map_info_virtual_) { in CreateVirtualDisplayObj() local
1286 client_id = map_info.client_id; in CreateVirtualDisplayObj()
1311 map_info.disp_type = kVirtual; in CreateVirtualDisplayObj()
1312 map_info.sdm_id = display_id; in CreateVirtualDisplayObj()
1327 for (auto &map_info : map_info_pluggable_) { in IsPluggableDisplayConnected() local
1328 if (hwc_display_[map_info.client_id]) { in IsPluggableDisplayConnected()
2189 for (auto &map_info : map_info_builtin_) { in QdcmCMDDispatch() local
2190 if (map_info.client_id == display_id) { in QdcmCMDDispatch()
2307 for (auto &map_info : map_info_builtin_) { in QdcmCMDHandler() local
2308 uint32_t id = UINT32(map_info.client_id); in QdcmCMDHandler()
2332 for (auto &map_info : map_info_builtin_) { in QdcmCMDHandler() local
2333 uint64_t id = map_info.client_id; in QdcmCMDHandler()
2709 for (auto &map_info : map_info_builtin_) { in HandleBuiltInDisplays() local
2710 hwc2_display_t client_id = map_info.client_id; in HandleBuiltInDisplays()
2736 map_info.disp_type = info.display_type; in HandleBuiltInDisplays()
2737 map_info.sdm_id = info.display_id; in HandleBuiltInDisplays()
2851 for (auto &map_info : map_info_pluggable_) { in HandleConnectedDisplays() local
2852 client_id = map_info.client_id; in HandleConnectedDisplays()
2867 map_info.test_pattern = (hpd_bpp_ > 0) && (hpd_pattern_ > 0); in HandleConnectedDisplays()
2869 if (!map_info.test_pattern) { in HandleConnectedDisplays()
2898 map_info.disp_type = info.display_type; in HandleConnectedDisplays()
2899 map_info.sdm_id = info.display_id; in HandleConnectedDisplays()
2944 for (auto &map_info : map_info_pluggable_) { in HandleDisconnectedDisplays() local
2949 if (info.display_id != map_info.sdm_id) { in HandleDisconnectedDisplays()
2959 DestroyDisplay(&map_info); in HandleDisconnectedDisplays()
2966 void HWCSession::DestroyDisplay(DisplayMapInfo *map_info) { in DestroyDisplay() argument
2967 switch (map_info->disp_type) { in DestroyDisplay()
2969 DestroyPluggableDisplay(map_info); in DestroyDisplay()
2972 DestroyNonPluggableDisplay(map_info); in DestroyDisplay()
2977 void HWCSession::DestroyPluggableDisplay(DisplayMapInfo *map_info) { in DestroyPluggableDisplay() argument
2978 hwc2_display_t client_id = map_info->client_id; in DestroyPluggableDisplay()
2990 DLOGI("Destroy display %d-%d, client id = %d", map_info->sdm_id, map_info->disp_type, in DestroyPluggableDisplay()
2997 if (!map_info->test_pattern) { in DestroyPluggableDisplay()
3015 map_info->Reset(); in DestroyPluggableDisplay()
3019 void HWCSession::DestroyNonPluggableDisplay(DisplayMapInfo *map_info) { in DestroyNonPluggableDisplay() argument
3020 hwc2_display_t client_id = map_info->client_id; in DestroyNonPluggableDisplay()
3027 DLOGI("Destroy display %d-%d, client id = %d", map_info->sdm_id, map_info->disp_type, in DestroyNonPluggableDisplay()
3034 switch (map_info->disp_type) { in DestroyNonPluggableDisplay()
3043 if (async_powermode_ && map_info->disp_type == kBuiltIn) { in DestroyNonPluggableDisplay()
3055 map_info->Reset(); in DestroyNonPluggableDisplay()
3289 for (auto &map_info : map_info_virtual_) { in HandlePendingHotplug() local
3290 DestroyDisplay(&map_info); in HandlePendingHotplug()
3560 std::vector<DisplayMapInfo> map_info = {map_info_primary_}; in GetActiveBuiltinDisplay() local
3561 std::copy(map_info_builtin_.begin(), map_info_builtin_.end(), std::back_inserter(map_info)); in GetActiveBuiltinDisplay()
3563 for (auto &info : map_info) { in GetActiveBuiltinDisplay()
3611 std::vector<DisplayMapInfo> map_info = {map_info_primary_}; in WaitForResources() local
3612 std::copy(map_info_builtin_.begin(), map_info_builtin_.end(), std::back_inserter(map_info)); in WaitForResources()
3614 for (auto &info : map_info) { in WaitForResources()