blob: 09013c62dc69e19d30c03cfe66e9a11dc1377bda [file] [log] [blame]
Saurabh Shah86c17292013-02-08 15:24:13 -08001/*
Arun Kumar K.Rc62935a2013-12-03 16:47:47 -08002 * Copyright (c) 2013-14, The Linux Foundation. All rights reserved.
Saurabh Shah86c17292013-02-08 15:24:13 -08003 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above
10 * copyright notice, this list of conditions and the following
11 * disclaimer in the documentation and/or other materials provided
12 * with the distribution.
13 * * Neither the name of The Linux Foundation nor the names of its
14 * contributors may be used to endorse or promote products derived
15 * from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
18 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
20 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
21 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 * SUBSTITUTE GOODS OR CLIENTS; LOSS OF USE, DATA, OR PROFITS; OR
24 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
26 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
27 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */
29
30#include <hwc_qclient.h>
31#include <IQService.h>
32#include <hwc_utils.h>
Zohaib Alam1bb65612013-09-28 03:38:20 -040033#include <mdp_version.h>
Naseer Ahmed35a268c2014-06-24 19:07:13 -040034#include <hwc_mdpcomp.h>
Tatenda Chipeperekwa06af9cb2014-08-26 14:51:05 -070035#include <hwc_virtual.h>
Saurabh Shah24eec8a2014-08-22 15:07:25 -070036#include <overlay.h>
Raj Kamal0d53fc62014-11-25 17:36:36 +053037#include <display_config.h>
Saurabh Shah86c17292013-02-08 15:24:13 -080038
39#define QCLIENT_DEBUG 0
40
41using namespace android;
42using namespace qService;
Arun Kumar K.Rc62935a2013-12-03 16:47:47 -080043using namespace qhwc;
Saurabh Shah24eec8a2014-08-22 15:07:25 -070044using namespace overlay;
Saurabh Shahcd018352014-11-11 13:54:19 -080045using namespace qdutils;
Saurabh Shah86c17292013-02-08 15:24:13 -080046
47namespace qClient {
48
49// ----------------------------------------------------------------------------
Saurabh Shah7128e502013-02-20 13:24:48 -080050QClient::QClient(hwc_context_t *ctx) : mHwcContext(ctx),
51 mMPDeathNotifier(new MPDeathNotifier(ctx))
Saurabh Shah86c17292013-02-08 15:24:13 -080052{
53 ALOGD_IF(QCLIENT_DEBUG, "QClient Constructor invoked");
54}
55
56QClient::~QClient()
57{
58 ALOGD_IF(QCLIENT_DEBUG,"QClient Destructor invoked");
59}
60
Naseer Ahmed4957c522013-11-12 18:07:15 -050061static void securing(hwc_context_t *ctx, uint32_t startEnd) {
Saurabh Shahc2125772013-03-15 16:49:50 -070062 //The only way to make this class in this process subscribe to media
63 //player's death.
64 IMediaDeathNotifier::getMediaPlayerService();
65
Raj Kamal58b31a02014-12-16 15:53:53 +053066 ctx->mDrawLock.lock();
Naseer Ahmed4957c522013-11-12 18:07:15 -050067 ctx->mSecuring = startEnd;
Saurabh Shah86c17292013-02-08 15:24:13 -080068 //We're done securing
69 if(startEnd == IQService::END)
Naseer Ahmed4957c522013-11-12 18:07:15 -050070 ctx->mSecureMode = true;
Raj Kamal58b31a02014-12-16 15:53:53 +053071 ctx->mDrawLock.unlock();
72
Naseer Ahmed4957c522013-11-12 18:07:15 -050073 if(ctx->proc)
74 ctx->proc->invalidate(ctx->proc);
Saurabh Shah86c17292013-02-08 15:24:13 -080075}
76
Naseer Ahmed4957c522013-11-12 18:07:15 -050077static void unsecuring(hwc_context_t *ctx, uint32_t startEnd) {
Raj Kamal58b31a02014-12-16 15:53:53 +053078 ctx->mDrawLock.lock();
Naseer Ahmed4957c522013-11-12 18:07:15 -050079 ctx->mSecuring = startEnd;
Saurabh Shah86c17292013-02-08 15:24:13 -080080 //We're done unsecuring
81 if(startEnd == IQService::END)
Naseer Ahmed4957c522013-11-12 18:07:15 -050082 ctx->mSecureMode = false;
Raj Kamal58b31a02014-12-16 15:53:53 +053083 ctx->mDrawLock.unlock();
84
Naseer Ahmed4957c522013-11-12 18:07:15 -050085 if(ctx->proc)
86 ctx->proc->invalidate(ctx->proc);
Saurabh Shah86c17292013-02-08 15:24:13 -080087}
88
Saurabh Shah7128e502013-02-20 13:24:48 -080089void QClient::MPDeathNotifier::died() {
Raj Kamal58b31a02014-12-16 15:53:53 +053090 mHwcContext->mDrawLock.lock();
Saurabh Shah7128e502013-02-20 13:24:48 -080091 ALOGD_IF(QCLIENT_DEBUG, "Media Player died");
92 mHwcContext->mSecuring = false;
93 mHwcContext->mSecureMode = false;
Raj Kamal58b31a02014-12-16 15:53:53 +053094 mHwcContext->mDrawLock.unlock();
Saurabh Shah7128e502013-02-20 13:24:48 -080095 if(mHwcContext->proc)
96 mHwcContext->proc->invalidate(mHwcContext->proc);
97}
98
Naseer Ahmed4957c522013-11-12 18:07:15 -050099static android::status_t screenRefresh(hwc_context_t *ctx) {
Jeykumar Sankaran9f59a762013-02-28 10:45:56 -0800100 status_t result = NO_INIT;
Naseer Ahmed4957c522013-11-12 18:07:15 -0500101 if(ctx->proc) {
102 ctx->proc->invalidate(ctx->proc);
Jeykumar Sankaran9f59a762013-02-28 10:45:56 -0800103 result = NO_ERROR;
104 }
Jeykumar Sankaran9f59a762013-02-28 10:45:56 -0800105 return result;
106}
Arun Kumar K.Rffef7482013-04-10 14:17:22 -0700107
Naseer Ahmed4957c522013-11-12 18:07:15 -0500108static void setExtOrientation(hwc_context_t *ctx, uint32_t orientation) {
109 ctx->mExtOrientation = orientation;
Arun Kumar K.Rffef7482013-04-10 14:17:22 -0700110}
111
Naseer Ahmed78c952e2013-11-25 18:12:23 -0500112static void isExternalConnected(hwc_context_t* ctx, Parcel* outParcel) {
113 int connected;
114 connected = ctx->dpyAttr[HWC_DISPLAY_EXTERNAL].connected ? 1 : 0;
115 outParcel->writeInt32(connected);
116}
117
118static void getDisplayAttributes(hwc_context_t* ctx, const Parcel* inParcel,
119 Parcel* outParcel) {
120 int dpy = inParcel->readInt32();
121 outParcel->writeInt32(ctx->dpyAttr[dpy].vsync_period);
Dileep Kumar Reddie351d842014-03-25 10:39:21 +0530122 if (ctx->dpyAttr[dpy].customFBSize) {
123 outParcel->writeInt32(ctx->dpyAttr[dpy].xres_new);
124 outParcel->writeInt32(ctx->dpyAttr[dpy].yres_new);
125 } else {
126 outParcel->writeInt32(ctx->dpyAttr[dpy].xres);
127 outParcel->writeInt32(ctx->dpyAttr[dpy].yres);
128 }
Naseer Ahmed78c952e2013-11-25 18:12:23 -0500129 outParcel->writeFloat(ctx->dpyAttr[dpy].xdpi);
130 outParcel->writeFloat(ctx->dpyAttr[dpy].ydpi);
131 //XXX: Need to check what to return for HDMI
132 outParcel->writeInt32(ctx->mMDP.panel);
133}
Arun Kumar K.R2aa44c62014-01-21 23:08:28 -0800134static void setHSIC(const Parcel* inParcel) {
Naseer Ahmed78c952e2013-11-25 18:12:23 -0500135 int dpy = inParcel->readInt32();
Arun Kumar K.R2aa44c62014-01-21 23:08:28 -0800136 ALOGD_IF(0, "In %s: dpy = %d", __FUNCTION__, dpy);
Naseer Ahmed78c952e2013-11-25 18:12:23 -0500137 HSICData_t hsic_data;
138 hsic_data.hue = inParcel->readInt32();
139 hsic_data.saturation = inParcel->readFloat();
140 hsic_data.intensity = inParcel->readInt32();
141 hsic_data.contrast = inParcel->readFloat();
142 //XXX: Actually set the HSIC data through ABL lib
143}
144
145
Naseer Ahmed4957c522013-11-12 18:07:15 -0500146static void setBufferMirrorMode(hwc_context_t *ctx, uint32_t enable) {
147 ctx->mBufferMirrorMode = enable;
Arun Kumar K.Rfb5bfa62013-07-25 03:10:51 -0700148}
149
Arun Kumar K.R8e7a62f2013-12-06 18:55:41 -0800150static status_t getDisplayVisibleRegion(hwc_context_t* ctx, int dpy,
151 Parcel* outParcel) {
152 // Get the info only if the dpy is valid
153 if(dpy >= HWC_DISPLAY_PRIMARY && dpy <= HWC_DISPLAY_VIRTUAL) {
154 Locker::Autolock _sl(ctx->mDrawLock);
155 if(dpy && (ctx->mExtOrientation || ctx->mBufferMirrorMode)) {
156 // Return the destRect on external, if external orienation
157 // is enabled
158 outParcel->writeInt32(ctx->dpyAttr[dpy].mDstRect.left);
159 outParcel->writeInt32(ctx->dpyAttr[dpy].mDstRect.top);
160 outParcel->writeInt32(ctx->dpyAttr[dpy].mDstRect.right);
161 outParcel->writeInt32(ctx->dpyAttr[dpy].mDstRect.bottom);
162 } else {
163 outParcel->writeInt32(ctx->mViewFrame[dpy].left);
164 outParcel->writeInt32(ctx->mViewFrame[dpy].top);
165 outParcel->writeInt32(ctx->mViewFrame[dpy].right);
166 outParcel->writeInt32(ctx->mViewFrame[dpy].bottom);
167 }
168 return NO_ERROR;
169 } else {
170 ALOGE("In %s: invalid dpy index %d", __FUNCTION__, dpy);
171 return BAD_VALUE;
172 }
173}
174
Arun Kumar K.R33888f52014-10-09 15:56:33 -0700175// USed for setting the secondary(hdmi/wfd) status
176static void setSecondaryDisplayStatus(hwc_context_t *ctx,
177 const Parcel* inParcel) {
178 uint32_t dpy = inParcel->readInt32();
179 uint32_t status = inParcel->readInt32();
180 ALOGD_IF(QCLIENT_DEBUG, "%s: dpy = %d status = %s", __FUNCTION__,
181 dpy, getExternalDisplayState(status));
182
183 if(dpy > HWC_DISPLAY_PRIMARY && dpy <= HWC_DISPLAY_VIRTUAL) {
Raj Kamal0d53fc62014-11-25 17:36:36 +0530184 if(dpy == HWC_DISPLAY_VIRTUAL && status == qdutils::EXTERNAL_OFFLINE) {
Arun Kumar K.R33888f52014-10-09 15:56:33 -0700185 ctx->mWfdSyncLock.lock();
186 ctx->mWfdSyncLock.signal();
187 ctx->mWfdSyncLock.unlock();
Raj Kamal0d53fc62014-11-25 17:36:36 +0530188 } else if(status == qdutils::EXTERNAL_PAUSE) {
Arun Kumar K.R33888f52014-10-09 15:56:33 -0700189 handle_pause(ctx, dpy);
Raj Kamal0d53fc62014-11-25 17:36:36 +0530190 } else if(status == qdutils::EXTERNAL_RESUME) {
Arun Kumar K.R33888f52014-10-09 15:56:33 -0700191 handle_resume(ctx, dpy);
192 }
Arun Kumar K.Rc62935a2013-12-03 16:47:47 -0800193 } else {
Ramakant Singh8595cca2014-11-06 16:17:08 +0530194 ALOGE("%s: Invalid dpy %d", __FUNCTION__, dpy);
Arun Kumar K.R33888f52014-10-09 15:56:33 -0700195 return;
Raj kamal59fea562014-04-01 16:52:19 +0530196 }
197}
198
Ramkumar Radhakrishnan0a021a82014-05-19 19:53:56 -0700199
200static status_t setViewFrame(hwc_context_t* ctx, const Parcel* inParcel) {
201 int dpy = inParcel->readInt32();
202 if(dpy >= HWC_DISPLAY_PRIMARY && dpy <= HWC_DISPLAY_VIRTUAL) {
203 Locker::Autolock _sl(ctx->mDrawLock);
204 ctx->mViewFrame[dpy].left = inParcel->readInt32();
205 ctx->mViewFrame[dpy].top = inParcel->readInt32();
206 ctx->mViewFrame[dpy].right = inParcel->readInt32();
207 ctx->mViewFrame[dpy].bottom = inParcel->readInt32();
208 ALOGD_IF(QCLIENT_DEBUG, "%s: mViewFrame[%d] = [%d %d %d %d]",
209 __FUNCTION__, dpy,
210 ctx->mViewFrame[dpy].left, ctx->mViewFrame[dpy].top,
211 ctx->mViewFrame[dpy].right, ctx->mViewFrame[dpy].bottom);
212 return NO_ERROR;
213 } else {
214 ALOGE("In %s: invalid dpy index %d", __FUNCTION__, dpy);
215 return BAD_VALUE;
216 }
217}
218
Naseer Ahmed35a268c2014-06-24 19:07:13 -0400219static void toggleDynamicDebug(hwc_context_t* ctx, const Parcel* inParcel) {
220 int debug_type = inParcel->readInt32();
221 bool enable = !!inParcel->readInt32();
222 ALOGD("%s: debug_type: %d enable:%d",
223 __FUNCTION__, debug_type, enable);
224 Locker::Autolock _sl(ctx->mDrawLock);
225 switch (debug_type) {
226 //break is ignored for DEBUG_ALL to toggle all of them at once
227 case IQService::DEBUG_ALL:
228 case IQService::DEBUG_MDPCOMP:
229 qhwc::MDPComp::dynamicDebug(enable);
230 if (debug_type != IQService::DEBUG_ALL)
231 break;
232 case IQService::DEBUG_VSYNC:
233 ctx->vstate.debug = enable;
234 if (debug_type != IQService::DEBUG_ALL)
235 break;
Tatenda Chipeperekwa06af9cb2014-08-26 14:51:05 -0700236 case IQService::DEBUG_VD:
Manoj Kumar AVM9591a5e2014-08-21 22:50:21 -0700237 HWCVirtualVDS::dynamicDebug(enable);
Tatenda Chipeperekwa06af9cb2014-08-26 14:51:05 -0700238 if (debug_type != IQService::DEBUG_ALL)
239 break;
Saurabh Shah24eec8a2014-08-22 15:07:25 -0700240 case IQService::DEBUG_PIPE_LIFECYCLE:
241 Overlay::debugPipeLifecycle(enable);
242 if (debug_type != IQService::DEBUG_ALL)
243 break;
Naseer Ahmed35a268c2014-06-24 19:07:13 -0400244 }
245}
246
Saurabh Shah59562ff2014-09-30 16:13:12 -0700247static void setIdleTimeout(hwc_context_t* ctx, const Parcel* inParcel) {
248 uint32_t timeout = (uint32_t)inParcel->readInt32();
249 ALOGD("%s :%u ms", __FUNCTION__, timeout);
250 Locker::Autolock _sl(ctx->mDrawLock);
251 MDPComp::setIdleTimeout(timeout);
252}
253
Jeykumar Sankaranbe93e272014-06-19 18:15:57 -0700254static void setMaxPipesPerMixer(hwc_context_t* ctx, const Parcel* inParcel) {
255 uint32_t value = (uint32_t)inParcel->readInt32();
256 ALOGD("%s : setting MaxPipesPerMixer: %d ", __FUNCTION__, value);
257 Locker::Autolock _sl(ctx->mDrawLock);
258 MDPComp::setMaxPipesPerMixer(value);
259}
260
Saurabh Shahcd018352014-11-11 13:54:19 -0800261static void toggleBWC(hwc_context_t* ctx, const Parcel* inParcel) {
262 uint32_t enable = (uint32_t)inParcel->readInt32();
263 if(MDPVersion::getInstance().supportsBWC()) {
264 Locker::Autolock _sl(ctx->mDrawLock);
265 ctx->mBWCEnabled = (bool) enable;
266 ALOGI("%s: Set BWC to %d", __FUNCTION__, enable);
267 } else {
268 ALOGI("%s: Target doesn't support BWC", __FUNCTION__);
269 }
270}
271
Raj Kamal0d53fc62014-11-25 17:36:36 +0530272static void configureDynRefreshRate(hwc_context_t* ctx,
273 const Parcel* inParcel) {
274 uint32_t op = (uint32_t)inParcel->readInt32();
275 uint32_t refresh_rate = (uint32_t)inParcel->readInt32();
276 MDPVersion& mdpHw = MDPVersion::getInstance();
277 uint32_t dpy = HWC_DISPLAY_PRIMARY;
278
279 if(mdpHw.isDynFpsSupported()) {
280 Locker::Autolock _sl(ctx->mDrawLock);
281
282 switch (op) {
283 case DISABLE_METADATA_DYN_REFRESH_RATE:
284 ctx->mUseMetaDataRefreshRate = false;
285 setRefreshRate(ctx, dpy, ctx->dpyAttr[dpy].refreshRate);
286 break;
287 case ENABLE_METADATA_DYN_REFRESH_RATE:
288 ctx->mUseMetaDataRefreshRate = true;
289 setRefreshRate(ctx, dpy, ctx->dpyAttr[dpy].refreshRate);
290 break;
291 case SET_BINDER_DYN_REFRESH_RATE:
292 if(ctx->mUseMetaDataRefreshRate)
293 ALOGW("%s: Ignoring binder request to change refresh-rate",
294 __FUNCTION__);
295 else {
296 uint32_t rate = roundOff(refresh_rate);
297 if((rate >= mdpHw.getMinFpsSupported() &&
298 rate <= mdpHw.getMaxFpsSupported())) {
299 setRefreshRate(ctx, dpy, rate);
300 } else {
301 ALOGE("%s: Requested refresh-rate should be between \
302 (%d) and (%d). Given (%d)", __FUNCTION__,
303 mdpHw.getMinFpsSupported(),
304 mdpHw.getMaxFpsSupported(), rate);
305 }
306 }
307 break;
308 default:
309 ALOGE("%s: Invalid op %d",__FUNCTION__,op);
310 }
311 }
312}
313
Jeykumar Sankaran53b05f22014-08-05 11:27:03 -0700314static status_t setPartialUpdatePref(hwc_context_t *ctx, uint32_t enable) {
315 ALOGD("%s: enable: %d", __FUNCTION__, enable);
316 if(qhwc::MDPComp::setPartialUpdatePref(ctx, (bool)enable) < 0)
317 return NO_INIT;
318 return NO_ERROR;
319}
320
Naseer Ahmed78951b22014-12-10 18:19:21 -0500321static void toggleScreenUpdate(hwc_context_t* ctx, uint32_t on) {
322 ALOGD("%s: toggle update: %d", __FUNCTION__, on);
Naseer Ahmed78951b22014-12-10 18:19:21 -0500323 if (on == 0) {
Raj Kamal58b31a02014-12-16 15:53:53 +0530324 ctx->mDrawLock.lock();
Naseer Ahmed78951b22014-12-10 18:19:21 -0500325 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].isPause = true;
326 ctx->mOverlay->configBegin();
327 ctx->mOverlay->configDone();
328 ctx->mRotMgr->clear();
329 if(!Overlay::displayCommit(ctx->dpyAttr[0].fd)) {
330 ALOGE("%s: Display commit failed", __FUNCTION__);
331 }
Raj Kamal58b31a02014-12-16 15:53:53 +0530332 ctx->mDrawLock.unlock();
Naseer Ahmed78951b22014-12-10 18:19:21 -0500333 } else {
Raj Kamal58b31a02014-12-16 15:53:53 +0530334 ctx->mDrawLock.lock();
Naseer Ahmed78951b22014-12-10 18:19:21 -0500335 ctx->dpyAttr[HWC_DISPLAY_PRIMARY].isPause = false;
Raj Kamal58b31a02014-12-16 15:53:53 +0530336 ctx->mDrawLock.unlock();
Naseer Ahmed78951b22014-12-10 18:19:21 -0500337 ctx->proc->invalidate(ctx->proc);
338 }
339}
340
Naseer Ahmed4957c522013-11-12 18:07:15 -0500341status_t QClient::notifyCallback(uint32_t command, const Parcel* inParcel,
342 Parcel* outParcel) {
Arun Kumar K.R8e7a62f2013-12-06 18:55:41 -0800343 status_t ret = NO_ERROR;
Naseer Ahmed4957c522013-11-12 18:07:15 -0500344
Naseer Ahmed4957c522013-11-12 18:07:15 -0500345 switch(command) {
346 case IQService::SECURING:
347 securing(mHwcContext, inParcel->readInt32());
348 break;
349 case IQService::UNSECURING:
350 unsecuring(mHwcContext, inParcel->readInt32());
351 break;
352 case IQService::SCREEN_REFRESH:
353 return screenRefresh(mHwcContext);
354 break;
355 case IQService::EXTERNAL_ORIENTATION:
356 setExtOrientation(mHwcContext, inParcel->readInt32());
357 break;
358 case IQService::BUFFER_MIRRORMODE:
359 setBufferMirrorMode(mHwcContext, inParcel->readInt32());
360 break;
Arun Kumar K.R8e7a62f2013-12-06 18:55:41 -0800361 case IQService::GET_DISPLAY_VISIBLE_REGION:
362 ret = getDisplayVisibleRegion(mHwcContext, inParcel->readInt32(),
363 outParcel);
364 break;
Naseer Ahmed78c952e2013-11-25 18:12:23 -0500365 case IQService::CHECK_EXTERNAL_STATUS:
366 isExternalConnected(mHwcContext, outParcel);
367 break;
368 case IQService::GET_DISPLAY_ATTRIBUTES:
369 getDisplayAttributes(mHwcContext, inParcel, outParcel);
370 break;
371 case IQService::SET_HSIC_DATA:
Arun Kumar K.R2aa44c62014-01-21 23:08:28 -0800372 setHSIC(inParcel);
Raj kamal59fea562014-04-01 16:52:19 +0530373 break;
Arun Kumar K.R33888f52014-10-09 15:56:33 -0700374 case IQService::SET_SECONDARY_DISPLAY_STATUS:
375 setSecondaryDisplayStatus(mHwcContext, inParcel);
Raj kamal59fea562014-04-01 16:52:19 +0530376 break;
Ramkumar Radhakrishnan0a021a82014-05-19 19:53:56 -0700377 case IQService::SET_VIEW_FRAME:
378 setViewFrame(mHwcContext, inParcel);
379 break;
Naseer Ahmed35a268c2014-06-24 19:07:13 -0400380 case IQService::DYNAMIC_DEBUG:
381 toggleDynamicDebug(mHwcContext, inParcel);
382 break;
Saurabh Shah59562ff2014-09-30 16:13:12 -0700383 case IQService::SET_IDLE_TIMEOUT:
384 setIdleTimeout(mHwcContext, inParcel);
385 break;
Jeykumar Sankaranbe93e272014-06-19 18:15:57 -0700386 case IQService::SET_MAX_PIPES_PER_MIXER:
387 setMaxPipesPerMixer(mHwcContext, inParcel);
Jeykumar Sankaran85ddc0c2014-12-17 14:39:26 -0800388 break;
Jeykumar Sankaran53b05f22014-08-05 11:27:03 -0700389 case IQService::SET_PARTIAL_UPDATE:
390 ret = setPartialUpdatePref(mHwcContext, inParcel->readInt32());
Jeykumar Sankaranbe93e272014-06-19 18:15:57 -0700391 break;
Saurabh Shahcd018352014-11-11 13:54:19 -0800392 case IQService::TOGGLE_BWC:
393 toggleBWC(mHwcContext, inParcel);
394 break;
Raj Kamal0d53fc62014-11-25 17:36:36 +0530395 case IQService::CONFIGURE_DYN_REFRESH_RATE:
396 configureDynRefreshRate(mHwcContext, inParcel);
397 break;
Naseer Ahmed78951b22014-12-10 18:19:21 -0500398 case IQService::TOGGLE_SCREEN_UPDATE:
399 toggleScreenUpdate(mHwcContext, inParcel->readInt32());
400 break;
Naseer Ahmed4957c522013-11-12 18:07:15 -0500401 default:
Arun Kumar K.R8e7a62f2013-12-06 18:55:41 -0800402 ret = NO_ERROR;
Naseer Ahmed4957c522013-11-12 18:07:15 -0500403 }
Arun Kumar K.R8e7a62f2013-12-06 18:55:41 -0800404 return ret;
Naseer Ahmed4957c522013-11-12 18:07:15 -0500405}
406
Saurabh Shah86c17292013-02-08 15:24:13 -0800407}