Lines Matching refs:device
79 IDisplayDevice *device = mDisplayDevices.itemAt(i);
80 if (!device) {
81 VTRACE("device %d doesn't exist", i);
84 if (device->getType() != IDisplayDevice::DEVICE_PRIMARY)
87 device->prePrepare(displays[i]);
91 IDisplayDevice *device = mDisplayDevices.itemAt(i);
92 if (!device) {
93 VTRACE("device %d doesn't exist", i);
97 if (device->getType() != IDisplayDevice::DEVICE_PRIMARY)
100 ret = device->prepare(displays[i]);
102 ETRACE("failed to do prepare for device %d", i);
129 IDisplayDevice *device = mDisplayDevices.itemAt(i);
130 if (!device) {
131 VTRACE("device %d doesn't exist", i);
135 if (!device->isConnected()) {
136 VTRACE("device %d is disconnected", i);
140 if (device->getType() != IDisplayDevice::DEVICE_PRIMARY)
143 ret = device->commit(displays[i], mDisplayContext);
145 ETRACE("failed to do commit for device %d", i);
165 ETRACE("no device found");
169 IDisplayDevice *device = mDisplayDevices.itemAt(disp);
170 if (!device) {
171 ETRACE("no device found");
175 return device->setPowerMode(mode);
187 IDisplayDevice *device = mDisplayDevices.itemAt(disp);
188 if (!device) {
189 ETRACE("no device found");
193 return device->getActiveConfig();
205 IDisplayDevice *device = mDisplayDevices.itemAt(disp);
206 if (!device) {
207 ETRACE("no device found");
211 return device->setActiveConfig(index);
243 IDisplayDevice *device = mDisplayDevices.itemAt(disp);
244 if (!device) {
245 ETRACE("no device found");
249 return device->blank(blank ? true : false);
264 ETRACE("no device found");
268 IDisplayDevice *device = mDisplayDevices.itemAt(disp);
269 if (!device) {
270 ETRACE("no device %d found", disp);
274 return device->getDisplayConfigs(configs, numConfigs);
289 ETRACE("no device found");
294 IDisplayDevice *device = mDisplayDevices.itemAt(disp);
295 if (!device) {
296 ETRACE("no device found");
300 return device->getDisplayAttributes(config, attributes, values);
315 ETRACE("no device found");
319 IDisplayDevice *device = mDisplayDevices.itemAt(disp);
320 if (!device) {
321 ETRACE("no device found");
325 return device->compositionComplete();
382 // dump device status
384 IDisplayDevice *device = mDisplayDevices.itemAt(i);
385 if (device)
386 device->dump(d);
446 // create display device
449 IDisplayDevice *device = mPlatFactory->createDisplayDevice(i);
450 if (!device || !device->initialize()) {
451 DEINIT_AND_DELETE_OBJ(device);
452 DEINIT_AND_RETURN_FALSE("failed to create device %d", i);
454 // add this device
455 ETRACE("HWC devices initialize device is %p at %d", device, i);
456 mDisplayDevices.insertAt(device, i, 1);
491 IDisplayDevice *device = mDisplayDevices.itemAt(i);
492 DEINIT_AND_DELETE_OBJ(device);