Lines Matching refs:i

30     int i;  in DisplayPlaneManager()  local
32 for (i = 0; i < DisplayPlane::PLANE_MAX; i++) { in DisplayPlaneManager()
33 mPlaneCount[i] = 0; in DisplayPlaneManager()
34 mFreePlanes[i] = 0; in DisplayPlaneManager()
35 mReclaimedPlanes[i] = 0; in DisplayPlaneManager()
46 int i; in deinitialize() local
49 for (i = 0; i < DisplayPlane::PLANE_MAX; i++) { in deinitialize()
50 for (j = 0; j < mPlanes[i].size(); j++) { in deinitialize()
52 DisplayPlane *plane = mPlanes[i].itemAt(j); in deinitialize()
57 mPlanes[i].clear(); in deinitialize()
65 int i, j; in initialize() local
85 for (i = 0; i < DisplayPlane::PLANE_MAX; i++) { in initialize()
86 mFreePlanes[i] = ((1 << mPlaneCount[i]) - 1); in initialize()
90 for (i = 0; i < DisplayPlane::PLANE_MAX; i++) { in initialize()
91 if (mPlaneCount[i]) { in initialize()
92 mPlanes[i].setCapacity(mPlaneCount[i]); in initialize()
94 for (j = 0; j < mPlaneCount[i]; j++) { in initialize()
95 DisplayPlane* plane = allocPlane(j, i); in initialize()
97 ETRACE("failed to allocate plane %d, type %d", j, i); in initialize()
100 mPlanes[i].push_back(plane); in initialize()
114 for (int i = 0; i < 32; i++) { in getPlane() local
115 int bit = (1 << i); in getPlane()
118 return i; in getPlane()
247 for (int i = 0; i < 32; i++) { in getFreePlanes() local
248 if ((1 << i) & freePlanes) { in getFreePlanes()
279 int i, j; in disableReclaimedPlanes() local
284 for (i = 0; i < DisplayPlane::PLANE_MAX; i++) { in disableReclaimedPlanes()
286 if (mReclaimedPlanes[i]) { in disableReclaimedPlanes()
287 for (j = 0; j < mPlaneCount[i]; j++) { in disableReclaimedPlanes()
289 if (mReclaimedPlanes[i] & bit) { in disableReclaimedPlanes()
290 DisplayPlane* plane = mPlanes[i].itemAt(j); in disableReclaimedPlanes()
299 mFreePlanes[i] |=bit; in disableReclaimedPlanes()
300 mReclaimedPlanes[i] &= ~bit; in disableReclaimedPlanes()
310 for (int i = 0; i < DisplayPlane::PLANE_MAX; i++) { in isOverlayPlanesDisabled() local
311 for (int j = 0; j < mPlaneCount[i]; j++) { in isOverlayPlanesDisabled()
312 DisplayPlane* plane = (DisplayPlane *)mPlanes[i][j]; in isOverlayPlanesDisabled()