Lines Matching refs:disp

181     int32_t disp = 0;  in hotplug()  local
187 disp = DisplayDevice::DISPLAY_PRIMARY; in hotplug()
195 disp = DisplayDevice::DISPLAY_EXTERNAL; in hotplug()
197 mEventHandler->onHotplugReceived(disp, in hotplug()
227 int32_t disp = mHwcDisplaySlots[display->getId()]; in vsync() local
235 if (timestamp == mLastHwVSync[disp]) { in vsync()
241 mLastHwVSync[disp] = timestamp; in vsync()
245 snprintf(tag, sizeof(tag), "HW_VSYNC_%1u", disp); in vsync()
246 ATRACE_INT(tag, ++mVSyncCounts[disp] & 1); in vsync()
248 mEventHandler->onVSyncReceived(disp, timestamp); in vsync()
303 nsecs_t HWComposer::getRefreshTimestamp(int32_t disp) const { in getRefreshTimestamp()
309 auto vsyncPeriod = getActiveConfig(disp)->getVsyncPeriod(); in getRefreshTimestamp()
310 return now - ((now - mLastHwVSync[disp]) % vsyncPeriod); in getRefreshTimestamp()
313 bool HWComposer::isConnected(int32_t disp) const { in isConnected()
314 if (!isValidDisplay(disp)) { in isConnected()
315 ALOGE("isConnected: Attempted to access invalid display %d", disp); in isConnected()
318 return mDisplayData[disp].hwcDisplay->isConnected(); in isConnected()
362 void HWComposer::setVsyncEnabled(int32_t disp, HWC2::Vsync enabled) { in setVsyncEnabled() argument
363 if (disp < 0 || disp >= HWC_DISPLAY_VIRTUAL) { in setVsyncEnabled()
364 ALOGD("setVsyncEnabled: Ignoring for virtual display %d", disp); in setVsyncEnabled()
368 if (!isValidDisplay(disp)) { in setVsyncEnabled()
369 ALOGE("setVsyncEnabled: Attempted to access invalid display %d", disp); in setVsyncEnabled()
378 auto& displayData = mDisplayData[disp]; in setVsyncEnabled()
386 snprintf(tag, sizeof(tag), "HW_VSYNC_ON_%1u", disp); in setVsyncEnabled()
390 ": %s (%d)", to_string(enabled).c_str(), disp, in setVsyncEnabled()
391 mDisplayData[disp].hwcDisplay->getId(), in setVsyncEnabled()