Lines Matching refs:ILM_SUCCESS
38 ASSERT_EQ(ILM_SUCCESS, ilm_initWithNativedisplay((t_ilm_nativedisplay)wlDisplay)); in SetUp()
57 EXPECT_EQ(ILM_SUCCESS, ilm_getLayerIDs(&numLayer, &layers)); in TearDown()
60 EXPECT_EQ(ILM_SUCCESS, ilm_layerRemove(layers[i])); in TearDown()
72 EXPECT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TearDown()
73 EXPECT_EQ(ILM_SUCCESS, ilm_destroy()); in TearDown()
82 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceSetOpacity(surface1, 0.88)); in TEST_F()
83 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
84 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceGetOpacity(surface1, &opacity)); in TEST_F()
87 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceSetOpacity(surface2, 0.001)); in TEST_F()
88 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
89 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceGetOpacity(surface2, &opacity)); in TEST_F()
97 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceSetOpacity(surface, 0.88)); in TEST_F()
99 ASSERT_NE(ILM_SUCCESS, ilm_surfaceGetOpacity(surface, &opacity)); in TEST_F()
107 ASSERT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(&layer1, 800, 480)); in TEST_F()
108 ASSERT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(&layer2, 800, 480)); in TEST_F()
110 ASSERT_EQ(ILM_SUCCESS, ilm_layerSetOpacity(layer1, 0.88)); in TEST_F()
111 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
112 ASSERT_EQ(ILM_SUCCESS, ilm_layerGetOpacity(layer1, &opacity)); in TEST_F()
115 ASSERT_EQ(ILM_SUCCESS, ilm_layerSetOpacity(layer2, 0.001)); in TEST_F()
116 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
117 ASSERT_EQ(ILM_SUCCESS, ilm_layerGetOpacity(layer2, &opacity)); in TEST_F()
125 ASSERT_EQ(ILM_SUCCESS, ilm_layerSetOpacity(layer, 0.88)); in TEST_F()
127 ASSERT_NE(ILM_SUCCESS, ilm_layerGetOpacity(layer, &opacity)); in TEST_F()
134 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceSetVisibility(surface, ILM_TRUE)); in TEST_F()
135 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
136 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceGetVisibility(surface, &visibility)); in TEST_F()
139 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceSetVisibility(surface, ILM_FALSE)); in TEST_F()
140 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
141 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceGetVisibility(surface, &visibility)); in TEST_F()
144 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceSetVisibility(surface, ILM_TRUE)); in TEST_F()
145 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
146 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceGetVisibility(surface, &visibility)); in TEST_F()
154 ASSERT_NE(ILM_SUCCESS, ilm_surfaceGetVisibility(surface, &visibility)); in TEST_F()
155 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceSetVisibility(surface, ILM_TRUE)); in TEST_F()
157 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceSetVisibility(surface, ILM_FALSE)); in TEST_F()
165 ASSERT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(&layer, 800, 480)); in TEST_F()
167 ASSERT_EQ(ILM_SUCCESS, ilm_layerSetVisibility(layer, ILM_TRUE)); in TEST_F()
168 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
169 ASSERT_EQ(ILM_SUCCESS, ilm_layerGetVisibility(layer, &visibility)); in TEST_F()
172 ASSERT_EQ(ILM_SUCCESS, ilm_layerSetVisibility(layer, ILM_FALSE)); in TEST_F()
173 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
174 ASSERT_EQ(ILM_SUCCESS, ilm_layerGetVisibility(layer, &visibility)); in TEST_F()
177 ASSERT_EQ(ILM_SUCCESS, ilm_layerSetVisibility(layer, ILM_TRUE)); in TEST_F()
178 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
179 ASSERT_EQ(ILM_SUCCESS, ilm_layerGetVisibility(layer, &visibility)); in TEST_F()
187 ASSERT_NE(ILM_SUCCESS, ilm_layerGetVisibility(layer, &visibility)); in TEST_F()
188 ASSERT_EQ(ILM_SUCCESS, ilm_layerSetVisibility(layer, ILM_TRUE)); in TEST_F()
190 ASSERT_EQ(ILM_SUCCESS, ilm_layerSetVisibility(layer, ILM_FALSE)); in TEST_F()
197 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceSetSourceRectangle(surface, 89, 6538, 638, 4)); in TEST_F()
198 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
201 ASSERT_EQ(ILM_SUCCESS, ilm_getPropertiesOfSurface(surface, &surfaceProperties)); in TEST_F()
209 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceSetSourceRectangle(0xdeadbeef, 89, 6538, 638, 4)); in TEST_F()
216 ASSERT_EQ(ILM_SUCCESS, ilm_getScreenIDs(&numberOfScreens, &screenIDs)); in TEST_F()
224 ASSERT_EQ(ILM_SUCCESS, ilm_getScreenIDs(&numberOfScreens, &screenIDs)); in TEST_F()
231 EXPECT_EQ(ILM_SUCCESS, ilm_getScreenResolution(firstScreen, &width, &height)); in TEST_F()
242 ASSERT_EQ(ILM_SUCCESS, ilm_getScreenIDs(&numberOfScreens, &screenIDs)); in TEST_F()
249 EXPECT_EQ(ILM_SUCCESS, ilm_getScreenResolution(screen, &width, &height)); in TEST_F()
261 ASSERT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(&layer1, 800, 480)); in TEST_F()
262 ASSERT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(&layer2, 800, 480)); in TEST_F()
263 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
267 ASSERT_EQ(ILM_SUCCESS, ilm_getLayerIDs(&length, &IDs)); in TEST_F()
282 ASSERT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(&layer1, 800, 480)); in TEST_F()
283 ASSERT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(&layer2, 800, 480)); in TEST_F()
284 ASSERT_EQ(ILM_SUCCESS, ilm_displaySetRenderOrder(0, idRenderOrder, roLength)); in TEST_F()
285 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
287 ASSERT_EQ(ILM_SUCCESS, ilm_getLayerIDsOnScreen(0, &length, &IDs)); in TEST_F()
303 ASSERT_EQ(ILM_SUCCESS, ilm_getSurfaceIDs(&length, &IDs)); in TEST_F()
316 ASSERT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(&layer1, 800, 480)); in TEST_F()
317 ASSERT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(&layer2, 800, 480)); in TEST_F()
318 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
322 ASSERT_EQ(ILM_SUCCESS, ilm_getLayerIDs(&length, &IDs)); in TEST_F()
332 ASSERT_EQ(ILM_SUCCESS, ilm_layerRemove(layer1)); in TEST_F()
333 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
334 ASSERT_EQ(ILM_SUCCESS, ilm_getLayerIDs(&length, &IDs)); in TEST_F()
342 ASSERT_EQ(ILM_SUCCESS, ilm_layerRemove(layer2)); in TEST_F()
343 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
344 ASSERT_EQ(ILM_SUCCESS, ilm_getLayerIDs(&length, &IDs)); in TEST_F()
350 ASSERT_EQ(ILM_SUCCESS, ilm_layerRemove(0xdeadbeef)); in TEST_F()
361 ASSERT_EQ(ILM_SUCCESS, ilm_getLayerIDs(&orig_length, &IDs)); in TEST_F()
365 ASSERT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(&layer, 800, 480)); in TEST_F()
366 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
367 ASSERT_EQ(ILM_SUCCESS, ilm_getLayerIDs(&length, &IDs)); in TEST_F()
372 ASSERT_EQ(ILM_SUCCESS, ilm_layerRemove(layer)); in TEST_F()
373 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
374 ASSERT_EQ(ILM_SUCCESS, ilm_getLayerIDs(&length, &IDs)); in TEST_F()
379 ASSERT_EQ(ILM_SUCCESS, ilm_layerRemove(layer)); in TEST_F()
385 ASSERT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(&layer, 800, 480)); in TEST_F()
391 ASSERT_EQ(ILM_SUCCESS, ilm_getSurfaceIDsOnLayer(layer, &length, &IDs)); in TEST_F()
395 ASSERT_EQ(ILM_SUCCESS, ilm_layerAddSurface(layer, surface1)); in TEST_F()
396 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
397 ASSERT_EQ(ILM_SUCCESS, ilm_getSurfaceIDsOnLayer(layer, &length, &IDs)); in TEST_F()
405 ASSERT_EQ(ILM_SUCCESS, ilm_layerAddSurface(layer, surface2)); in TEST_F()
406 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
407 ASSERT_EQ(ILM_SUCCESS, ilm_getSurfaceIDsOnLayer(layer, &length, &IDs)); in TEST_F()
416 ASSERT_EQ(ILM_SUCCESS, ilm_layerRemoveSurface(layer, surface1)); in TEST_F()
417 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
418 ASSERT_EQ(ILM_SUCCESS, ilm_getSurfaceIDsOnLayer(layer, &length, &IDs)); in TEST_F()
426 ASSERT_EQ(ILM_SUCCESS, ilm_layerRemoveSurface(layer, surface2)); in TEST_F()
427 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
428 ASSERT_EQ(ILM_SUCCESS, ilm_getSurfaceIDsOnLayer(layer, &length, &IDs)); in TEST_F()
438 ASSERT_NE(ILM_SUCCESS, ilm_getSurfaceIDsOnLayer(layer, &length, &IDs)); in TEST_F()
443 ASSERT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(&layer, 800, 480)); in TEST_F()
453 ASSERT_EQ(ILM_SUCCESS, ilm_layerSetRenderOrder(layer, IDs, 3)); in TEST_F()
454 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
456 ASSERT_NE(ILM_SUCCESS, ilm_getSurfaceIDsOnLayer(layer, &length, NULL)); in TEST_F()
462 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceSetOpacity(surface, 0.8765)); in TEST_F()
463 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceSetSourceRectangle(surface, 89, 6538, 638, 4)); in TEST_F()
464 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceSetDestinationRectangle(surface, 54, 47, 947, 9)); in TEST_F()
465 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceSetVisibility(surface, true)); in TEST_F()
466 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
469 ASSERT_EQ(ILM_SUCCESS, ilm_getPropertiesOfSurface(surface, &surfaceProperties)); in TEST_F()
482 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceSetOpacity(surface, 0.436)); in TEST_F()
483 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceSetSourceRectangle(surface, 784, 546, 235, 78)); in TEST_F()
484 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceSetDestinationRectangle(surface, 536, 5372, 3, 4316)); in TEST_F()
485 ASSERT_EQ(ILM_SUCCESS, ilm_surfaceSetVisibility(surface, false)); in TEST_F()
486 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
489 ASSERT_EQ(ILM_SUCCESS, ilm_getPropertiesOfSurface(surface, &surfaceProperties2)); in TEST_F()
504 ASSERT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(&layer, 800, 480)); in TEST_F()
505 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
507 ASSERT_EQ(ILM_SUCCESS, ilm_layerSetOpacity(layer, 0.8765)); in TEST_F()
508 ASSERT_EQ(ILM_SUCCESS, ilm_layerSetSourceRectangle(layer, 89, 6538, 638, 4)); in TEST_F()
509 ASSERT_EQ(ILM_SUCCESS, ilm_layerSetDestinationRectangle(layer, 54, 47, 947, 9)); in TEST_F()
510 ASSERT_EQ(ILM_SUCCESS, ilm_layerSetVisibility(layer, true)); in TEST_F()
511 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
514 ASSERT_EQ(ILM_SUCCESS, ilm_getPropertiesOfLayer(layer, &layerProperties1)); in TEST_F()
526 ASSERT_EQ(ILM_SUCCESS, ilm_layerSetOpacity(layer, 0.436)); in TEST_F()
527 ASSERT_EQ(ILM_SUCCESS, ilm_layerSetSourceRectangle(layer, 784, 546, 235, 78)); in TEST_F()
528 ASSERT_EQ(ILM_SUCCESS, ilm_layerSetDestinationRectangle(layer, 536, 5372, 3, 4316)); in TEST_F()
529 ASSERT_EQ(ILM_SUCCESS, ilm_layerSetVisibility(layer, false)); in TEST_F()
530 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
533 ASSERT_EQ(ILM_SUCCESS, ilm_getPropertiesOfLayer(layer, &layerProperties2)); in TEST_F()
548 ASSERT_NE(ILM_SUCCESS, ilm_getPropertiesOfSurface(0xdeadbeef, &surfaceProperties)); in TEST_F()
561 ASSERT_EQ(ILM_SUCCESS, ilm_takeScreenshot(0, outputFile)); in TEST_F()
579 ASSERT_NE(ILM_SUCCESS, ilm_takeScreenshot(0xdeadbeef, outputFile)); in TEST_F()
596 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
597 ASSERT_EQ(ILM_SUCCESS, ilm_takeSurfaceScreenshot(outputFile, surface)); in TEST_F()
624 ASSERT_EQ(ILM_SUCCESS, ilm_getScreenIDs(&numberOfScreens, &screenIDs)); in TEST_F()
633 EXPECT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(layerIds, 800, 480)); in TEST_F()
634 EXPECT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(layerIds + 1, 800, 480)); in TEST_F()
635 EXPECT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(layerIds + 2, 800, 480)); in TEST_F()
637 EXPECT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
639 EXPECT_EQ(ILM_SUCCESS, ilm_displaySetRenderOrder(screen, layerIds, 3)); in TEST_F()
641 EXPECT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
644 EXPECT_EQ(ILM_SUCCESS, ilm_getPropertiesOfScreen(screen, &screenProperties)); in TEST_F()
668 ASSERT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(renderOrder + i, 300, 300)); in TEST_F()
669 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
674 ASSERT_EQ(ILM_SUCCESS, ilm_getScreenIDs(&screenCount, &screenIDs)); in TEST_F()
685 … EXPECT_EQ(ILM_SUCCESS, ilm_displaySetRenderOrder(screen, renderOrder + j, layerCount - j)); in TEST_F()
686 EXPECT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
687 EXPECT_EQ(ILM_SUCCESS, ilm_getPropertiesOfScreen(screen, &screenProps)); in TEST_F()
709 ASSERT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(renderOrder + i, 300, 300)); in TEST_F()
710 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
715 ASSERT_EQ(ILM_SUCCESS, ilm_getScreenIDs(&screenCount, &screenIDs)); in TEST_F()
726 … EXPECT_EQ(ILM_SUCCESS, ilm_displaySetRenderOrder(screen, renderOrder + j, layerCount - j)); in TEST_F()
727 EXPECT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
728 EXPECT_EQ(ILM_SUCCESS, ilm_getPropertiesOfScreen(screen, &screenProps)); in TEST_F()
758 ASSERT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(layerIDs + i, 300, 300)); in TEST_F()
759 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
773 … EXPECT_EQ(ILM_SUCCESS, ilm_layerSetRenderOrder(layer, renderOrder + j, surfaceCount - j)); in TEST_F()
774 EXPECT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
775 … EXPECT_EQ(ILM_SUCCESS, ilm_getSurfaceIDsOnLayer(layer, &layerSurfaceCount, &layerSurfaceIDs)); in TEST_F()
787 EXPECT_EQ(ILM_SUCCESS, ilm_layerSetRenderOrder(layer, renderOrder, 0)); in TEST_F()
788 EXPECT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
807 ASSERT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(layerIDs + i, 300, 300)); in TEST_F()
808 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
822 … EXPECT_EQ(ILM_SUCCESS, ilm_layerSetRenderOrder(layer, renderOrder + j, surfaceCount - j)); in TEST_F()
823 EXPECT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
824 … EXPECT_EQ(ILM_SUCCESS, ilm_getSurfaceIDsOnLayer(layer, &layerSurfaceCount, &layerSurfaceIDs)); in TEST_F()
836 EXPECT_EQ(ILM_SUCCESS, ilm_layerSetRenderOrder(layer, renderOrder, 0)); in TEST_F()
837 EXPECT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
855 ASSERT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(&layer, 300, 300)); in TEST_F()
856 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
862 …ASSERT_EQ(ILM_SUCCESS, ilm_layerSetRenderOrder(layer, duplicateRenderOrder, duplicateSurfaceCount)… in TEST_F()
863 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
864 ASSERT_EQ(ILM_SUCCESS, ilm_getSurfaceIDsOnLayer(layer, &layerSurfaceCount, &layerSurfaceIDs)); in TEST_F()
881 ASSERT_EQ(ILM_SUCCESS, ilm_layerCreateWithDimension(&layer, 300, 300)); in TEST_F()
882 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
888 ASSERT_EQ(ILM_SUCCESS, ilm_layerSetRenderOrder(layer, renderOrder, surfaceCount)); in TEST_F()
889 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
892 ASSERT_EQ(ILM_SUCCESS, ilm_layerSetRenderOrder(layer, renderOrder, 0)); in TEST_F()
893 ASSERT_EQ(ILM_SUCCESS, ilm_commitChanges()); in TEST_F()
894 ASSERT_EQ(ILM_SUCCESS, ilm_getSurfaceIDsOnLayer(layer, &layerSurfaceCount, &layerSurfaceIDs)); in TEST_F()