Lines Matching refs:ctx

45 QClient::QClient(hwc_context_t *ctx) : mHwcContext(ctx),  in QClient()  argument
46 mMPDeathNotifier(new MPDeathNotifier(ctx)) in QClient()
56 static void securing(hwc_context_t *ctx, uint32_t startEnd) { in securing() argument
57 Locker::Autolock _sl(ctx->mDrawLock); in securing()
62 ctx->mSecuring = startEnd; in securing()
65 ctx->mSecureMode = true; in securing()
66 if(ctx->proc) in securing()
67 ctx->proc->invalidate(ctx->proc); in securing()
70 static void unsecuring(hwc_context_t *ctx, uint32_t startEnd) { in unsecuring() argument
71 Locker::Autolock _sl(ctx->mDrawLock); in unsecuring()
72 ctx->mSecuring = startEnd; in unsecuring()
75 ctx->mSecureMode = false; in unsecuring()
76 if(ctx->proc) in unsecuring()
77 ctx->proc->invalidate(ctx->proc); in unsecuring()
89 static android::status_t screenRefresh(hwc_context_t *ctx) { in screenRefresh() argument
91 if(ctx->proc) { in screenRefresh()
92 ctx->proc->invalidate(ctx->proc); in screenRefresh()
98 static void setExtOrientation(hwc_context_t *ctx, uint32_t orientation) { in setExtOrientation() argument
99 ctx->mExtOrientation = orientation; in setExtOrientation()
102 static void isExternalConnected(hwc_context_t* ctx, Parcel* outParcel) { in isExternalConnected() argument
104 connected = ctx->dpyAttr[HWC_DISPLAY_EXTERNAL].connected ? 1 : 0; in isExternalConnected()
108 static void getDisplayAttributes(hwc_context_t* ctx, const Parcel* inParcel, in getDisplayAttributes() argument
111 outParcel->writeInt32(ctx->dpyAttr[dpy].vsync_period); in getDisplayAttributes()
112 if (ctx->dpyAttr[dpy].customFBSize) { in getDisplayAttributes()
113 outParcel->writeInt32(ctx->dpyAttr[dpy].xres_new); in getDisplayAttributes()
114 outParcel->writeInt32(ctx->dpyAttr[dpy].yres_new); in getDisplayAttributes()
116 outParcel->writeInt32(ctx->dpyAttr[dpy].xres); in getDisplayAttributes()
117 outParcel->writeInt32(ctx->dpyAttr[dpy].yres); in getDisplayAttributes()
119 outParcel->writeFloat(ctx->dpyAttr[dpy].xdpi); in getDisplayAttributes()
120 outParcel->writeFloat(ctx->dpyAttr[dpy].ydpi); in getDisplayAttributes()
122 outParcel->writeInt32(ctx->mMDP.panel); in getDisplayAttributes()
136 static void setBufferMirrorMode(hwc_context_t *ctx, uint32_t enable) { in setBufferMirrorMode() argument
137 ctx->mBufferMirrorMode = enable; in setBufferMirrorMode()
140 static status_t getDisplayVisibleRegion(hwc_context_t* ctx, int dpy, in getDisplayVisibleRegion() argument
144 Locker::Autolock _sl(ctx->mDrawLock); in getDisplayVisibleRegion()
145 if(dpy && (ctx->mExtOrientation || ctx->mBufferMirrorMode)) { in getDisplayVisibleRegion()
148 outParcel->writeInt32(ctx->dpyAttr[dpy].mDstRect.left); in getDisplayVisibleRegion()
149 outParcel->writeInt32(ctx->dpyAttr[dpy].mDstRect.top); in getDisplayVisibleRegion()
150 outParcel->writeInt32(ctx->dpyAttr[dpy].mDstRect.right); in getDisplayVisibleRegion()
151 outParcel->writeInt32(ctx->dpyAttr[dpy].mDstRect.bottom); in getDisplayVisibleRegion()
153 outParcel->writeInt32(ctx->mViewFrame[dpy].left); in getDisplayVisibleRegion()
154 outParcel->writeInt32(ctx->mViewFrame[dpy].top); in getDisplayVisibleRegion()
155 outParcel->writeInt32(ctx->mViewFrame[dpy].right); in getDisplayVisibleRegion()
156 outParcel->writeInt32(ctx->mViewFrame[dpy].bottom); in getDisplayVisibleRegion()
165 static void pauseWFD(hwc_context_t *ctx, uint32_t pause) { in pauseWFD() argument
172 handle_pause(ctx, dpy); in pauseWFD()
175 handle_resume(ctx, dpy); in pauseWFD()
179 static void setWfdStatus(hwc_context_t *ctx, uint32_t wfdStatus) { in setWfdStatus() argument
187 ctx->mWfdSyncLock.lock(); in setWfdStatus()
188 ctx->mWfdSyncLock.signal(); in setWfdStatus()
189 ctx->mWfdSyncLock.unlock(); in setWfdStatus()
191 handle_pause(ctx, dpy); in setWfdStatus()
193 handle_resume(ctx, dpy); in setWfdStatus()
198 static status_t setViewFrame(hwc_context_t* ctx, const Parcel* inParcel) { in setViewFrame() argument
201 Locker::Autolock _sl(ctx->mDrawLock); in setViewFrame()
202 ctx->mViewFrame[dpy].left = inParcel->readInt32(); in setViewFrame()
203 ctx->mViewFrame[dpy].top = inParcel->readInt32(); in setViewFrame()
204 ctx->mViewFrame[dpy].right = inParcel->readInt32(); in setViewFrame()
205 ctx->mViewFrame[dpy].bottom = inParcel->readInt32(); in setViewFrame()
208 ctx->mViewFrame[dpy].left, ctx->mViewFrame[dpy].top, in setViewFrame()
209 ctx->mViewFrame[dpy].right, ctx->mViewFrame[dpy].bottom); in setViewFrame()
217 static void toggleDynamicDebug(hwc_context_t* ctx, const Parcel* inParcel) { in toggleDynamicDebug() argument
222 Locker::Autolock _sl(ctx->mDrawLock); in toggleDynamicDebug()
231 ctx->vstate.debug = enable; in toggleDynamicDebug()