summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/tests
Commit message (Collapse)AuthorAgeFilesLines
* SurfaceFlinger : Ensure position changes are drawn with correct buffer sizeDanesh M2016-05-121-0/+46
| | | | | | | | If a single transaction has both positional and size changes, ensure we don't draw any frames using the incorrect buffer size using the updated position. Wait for the correct buffer size and then proceed. Change-Id: I8e25f21f17e0936e66bb5053f85f8336c8464c7b
* Fix surfaceflinger tests.Michael Lentine2015-05-221-20/+26
| | | | | | | | | Update the screenshot code and add correct return values to surface flinger's capturescreenshot function. Buf: 18138368 Change-Id: Ieb42d289088589f941502fbd69da7aa939265e07
* Merge "Error compiling waitforvsync.cpp"Greg Hackmann2015-02-251-0/+1
|\
| * Error compiling waitforvsync.cppNanik Tolaram2015-02-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The waitforvsync.cpp throws error when compiling. Following is the error log target thumb C++: test-waitforvsync <= frameworks/native/services/surfaceflinger/tests/waitforvsync/waitforvsync.cpp frameworks/native/services/surfaceflinger/tests/waitforvsync/waitforvsync.cpp: In function 'int main(int, char**)': frameworks/native/services/surfaceflinger/tests/waitforvsync/waitforvsync.cpp:43:17: error: 'close' was not declared in this scope close(fd); ^ .... .... make: *** [out/target/product/grouper/obj/EXECUTABLES/test-waitforvsync_intermediates/waitforvsync.o] Error 1 the file is missing #include <unistd.h> Change-Id: I57728dbde65641cd3138625f9a590f9db8648158 Signed-off-by: Nanik Tolaram <nanikjava@gmail.com>
* | vsync.cpp test is throwing error whe compiledNanik Tolaram2015-02-231-0/+1
|/ | | | | | | | | | | | | | | | | | | | | | | frameworks/native/services/surfaceflinger/tests/vsync/vsync.cpp:55:44: error: 'ALOOPER_EVENT_INPUT' was not declared in this scope loop->addFd(myDisplayEvent.getFd(), 0, ALOOPER_EVENT_INPUT, receiver, ^ frameworks/native/services/surfaceflinger/tests/vsync/vsync.cpp:64:18: error: 'ALOOPER_POLL_WAKE' was not declared in this scope case ALOOPER_POLL_WAKE: ^ frameworks/native/services/surfaceflinger/tests/vsync/vsync.cpp:67:18: error: 'ALOOPER_POLL_CALLBACK' was not declared in this scope case ALOOPER_POLL_CALLBACK: ^ frameworks/native/services/surfaceflinger/tests/vsync/vsync.cpp:70:18: error: 'ALOOPER_POLL_TIMEOUT' was not declared in this scope case ALOOPER_POLL_TIMEOUT: ^ frameworks/native/services/surfaceflinger/tests/vsync/vsync.cpp:73:18: error: 'ALOOPER_POLL_ERROR' was not declared in this scope case ALOOPER_POLL_ERROR: ^ it is missing one header file Change-Id: Ie2fb02523a866b13a99edf837f072d101cacb466 Signed-off-by: Nanik Tolaram <nanikjava@gmail.com>
* Clean cruft out of makefiles.Dan Albert2014-09-111-7/+1
| | | | | | | Cleans up manual uses of stlport and bionic (and removes uses of private bionic headers). Change-Id: I157309d702e59152adfa3450939082248ae4c043
* Surface can now be created only from an IGraphicBufferProducerMathias Agopian2013-03-122-84/+0
| | | | | | | it can't write itself to a parcel, nor can it be created from a parcel. Change-Id: I69165d5c54d6024b3e546e80d8b57e3dedda7893
* Refactoring: Rename SurfaceTextureClient to SurfaceMathias Agopian2013-02-142-15/+16
| | | | Change-Id: Ibed34175ae273608393aaa5f0a7df207dc40d709
* Banish DisplayID from the SurfaceFlinger API.Jeff Brown2012-08-274-9/+13
| | | | | | | | | | | | | | | Use only display tokens in the API to refer to new displays. Don't require the caller to specify the display when creating a surface (since in general a surface could be shown on any display). This is intended to be a minimum change just to update the API. Note that SurfaceFlinger still uses DisplayID in a few places internally that might cause some features not to work properly when there are multiple displays (LayerScreenshot, for example). Change-Id: I3d91eec2da406eefd97bcd53655d403ad865a7e6
* get rid of the shared-memory control blockMathias Agopian2012-07-251-2/+6
| | | | Change-Id: If814060aca1d2ff2619d4adcd57296983d207f7f
* remove libandroid.so from targets that don't need itColin Cross2012-03-271-1/+0
| | | | | | | pdk builds don't have libandroid.so available. Remove it from projects that aren't actually using it. Change-Id: I100dc84aaf8160c1062a122ef6d5aec0534d73fa
* fix libgui header locationMathias Agopian2012-02-274-10/+11
| | | | Change-Id: Iec71706cdd4f29c6904993648ce873e83ef9cafe
* createSurface getpid() first parameter was removedGlenn Kasten2012-02-092-2/+2
| | | | | | | | | Most of these tests in this directory don't currently build, but test-surface did build incorrectly by bad luck, using the old API. test-resize still doesn't build, but when the other build errors are fixed then it will use the right API. Change-Id: I388d6d59fe0a2328f352214dcdc28839a24043f0
* fix an issue with vsync event deliveryMathias Agopian2012-01-311-0/+2
| | | | | | | | | | | | | vsync events were sometimes delivered to connected client who didn't request them. this happened if another client requested the delivery and that client was first in the client list. also fix the vsync test which didn't request any events as well as DisplayEventReveiver documentation which was misleading about the necessity to request vsync events. Change-Id: Ie990fda3f337f8f0042745c4b2cde67936c45686
* Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGESteve Block2012-01-031-4/+4
| | | | | | | See https://android-git.corp.google.com/g/156016 Bug: 5449033 Change-Id: I4c4e33bb9df3e39e11cd985e193e6fbab4635298
* Add support for sending VSYNC events to the frameworkMathias Agopian2011-11-294-0/+158
| | | | | | | | | use gui/DisplayEvent to receive the events. Events are dispatched through a unix pipe, so the API is compatible with utils/Looper. see gui/DisplayEvent.h for more info. Bug: 1475048 Change-Id: Ia720f64d1b950328b47b22c6a86042e481d35f09
* SurfaceFlinger: add some layer update testsJamie Gennis2011-10-142-1/+276
| | | | | | | This change adds two tests for SurfaceFlinger's behavior when updating the position and size of a layer. Change-Id: Id5e3ca1d7e629a3bd2c2d28275d80c7f9256d6da
* SF transactions are now O(1) wrt IPC instead of O(N).Mathias Agopian2011-06-292-6/+6
| | | | Change-Id: I57669852cbf6aabae244ea86940a08a5a27ffc43
* frameworks/base: android_native_buffer_t -> ANativeWindowBufferIliyan Malchev2011-05-031-1/+1
| | | | | Change-Id: Idc2eabaa805bb6d308ebb315872623f28d428417 Signed-off-by: Iliyan Malchev <malchev@google.com>
* remove more unused references to ISurfaceMathias Agopian2011-04-051-7/+0
| | | | Change-Id: I2201f1ca2bb8f203a081d94a0134f798778dfbef
* merge libsurfaceflinger_client into libguiMathias Agopian2011-03-253-3/+3
| | | | | | | | | | | | this is the first step in unifying surfacetexture and surface. for this reason the header files were not moved, as most of them will eventually go away. NOTE: currently we keep libsurfaceflinger_client.so as an empty library to workaround prebuilt binaries wrongly linking against it. Change-Id: I130f0de2428e8579033dc41394d093f4e1431a00
* Fix missing AOSP copyright headers for more filesJames Dong2011-03-172-0/+32
| | | | | | | | | | o Update the copyright date on InputDispatcher_test.cpp and InputReader_test.cpp because these two files were moved from other places to the current location, and were actually created in 2010. bug - 4119349 Change-Id: Ic93b81ddafb58e9e72a2e9e02ca3d9f173d6dca7
* remove support for PUSH_BUFFER surfaces and overlaysMathias Agopian2010-12-084-82/+0
| | | | | | | the same functionality is now supported through the h/w composer HAL, and YUV support in the GPU. Change-Id: I8146605449954b8e8fd7f78810b7d873c2d8f5bf
* fix [3118445] Transform * Transform does not work as expectedMathias Agopian2010-10-242-0/+64
| | | | | | | | | | | | The problem wasn't in the multiply operator, but rather in the code that built the transform from the HAL bitmask. We now use the multiply operator to build the Transform from the bitmask, which guarantees, it'll always be correct. Also added a simple test for Transform. Change-Id: I09bf3b0e51d92f59d83ea91c4cc94fc2aa0bf227
* refactored screenshot codeMathias Agopian2010-10-041-1/+1
| | | | | | | | | | | the core screenshot function now can capture the screen at any lower resolution performing bilinear filtering. we also now have some client code to interface with the screenshot service. it's now possible to request a screenshot at a lower resolution. Change-Id: I33689bba98507ab928d0898b21596d0d2fe4b953
* simple test app for screen capture APIMathias Agopian2010-09-242-0/+89
| | | | Change-Id: I1f7c453508ccfd4faaa8b1279968a358ce3f1e5a
* fix [2873058] Surface::dequeueBuffer blocks on last buffer, i.e. cannot ↵Mathias Agopian2010-07-272-0/+72
| | | | | | | | | | | | | | | | | | | | | dequeue all allocated buffers at once. this situation happened when the last buffer needed to be resized (or allocated, the first time). the assumption was that the buffer was in use by SF itself as the current buffer (obviously, this assumption made no sense when the buffer had never been allocated, btw). the system would wait until some other buffer became the "front" buffer. we fix this problem by entirely removing the requirement that the buffer being resized cannot be the front buffer. instead, we just allocate a new buffer and replace the front buffer by the new one. the downside is that this uses more memory (an extra buffer) for a brief amount of time while the old buffer is being reallocated and before it has actually been replaced. Change-Id: I022e4621209474ceb1c671b23deb4188eaaa7285
* move native services under services/Mathias Agopian2010-07-145-0/+156
moved surfaceflinger, audioflinger, cameraservice all native services should now reside in this location. Change-Id: Iee42b83dd2a94c3bf5107ab0895fe2dfcd5337a8