Lines Matching defs:type
30 int type;
38 // it is used to fast locate plane index and type
139 DisplayPlane* AnnPlaneManager::allocPlane(int index, int type)
143 switch (type) {
157 ELOGTRACE("unsupported type %d", type);
288 if (!isFreePlane(desc.type, desc.index)) {
300 if (!isFreePlane(desc.type, desc.index)) {
301 DLOGTRACE("plane type %d index %d is not available", desc.type, desc.index);
306 // plane type check
308 desc.type != DisplayPlane::PLANE_OVERLAY) {
309 ELOGTRACE("invalid plane type %d, expected %d", desc.type, config[i]->planeType);
316 ELOGTRACE("invalid plane type %d,", config[i]->planeType);
319 if (desc.type != DisplayPlane::PLANE_PRIMARY &&
320 desc.type != DisplayPlane::PLANE_SPRITE) {
321 ELOGTRACE("invalid plane type %d, expected %d", desc.type, config[i]->planeType);
327 if (desc.type == DisplayPlane::PLANE_OVERLAY && desc.index == 1 &&
340 zLayer->plane = getPlane(desc.type, desc.index);
349 zLayer->plane = getPlane(desc.type, desc.index);
353 // override type
354 zLayer->planeType = desc.type;
355 if (desc.type == DisplayPlane::PLANE_PRIMARY) {
379 ILOGTRACE("%d: plane type %d, index %d, zorder %d",
392 int AnnPlaneManager::getFreePlanes(int dsp, int type)
396 if (type != DisplayPlane::PLANE_SPRITE) {
397 return DisplayPlaneManager::getFreePlanes(dsp, type);
405 uint32_t freePlanes = mFreePlanes[type] | mReclaimedPlanes[type];