summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* am 595b5bdf: am 603ce559: Merge "Apply ComposeShader\'s local matrix to ↵Romain Guy2013-03-191-2/+11
|\ | | | | | | | | | | | | children" into jb-mr2-dev * commit '595b5bdf08ab315898b4af0c5c7033a912e004f7': Apply ComposeShader's local matrix to children
| * Apply ComposeShader's local matrix to childrenRomain Guy2013-03-181-2/+11
| | | | | | | | Change-Id: Idf9b8e7d7b30f8fcd8ba1fd4bfe8991e9ca148e2
* | am 3c385b3f: am 16b7dc9c: Merge "Merge all shapes/paths caches to PathCache" ↵Romain Guy2013-03-191-6/+25
|\ \ | |/ | | | | | | | | | | into jb-mr2-dev * commit '3c385b3fc08ae2fc5325d0dd4f64d462edf3aad8': Merge all shapes/paths caches to PathCache
| * Merge all shapes/paths caches to PathCacheRomain Guy2013-03-181-6/+25
| | | | | | | | | | | | | | | | | | This change will greatly simplify the multi-threading of all shape types. This change also uses PathTessellator to render convex paths. Change-Id: I4e65bc95c9d24ecae2183b72204de5c2dfb6ada4
* | Fix test that uses new APICraig Mautner2013-03-181-1/+1
| | | | | | | | Change-Id: Ib463dbece44ef1ec9842e3766c2c133b46ca63a5
* | am 0964bb20: am 338b1884: Merge "Improve/flesh-out shared library version ↵Dianne Hackborn2013-03-182-35/+102
|\ \ | |/ | | | | | | | | | | check." into jb-mr2-dev * commit '0964bb20f4798c9b25334dccbf2c5a14b33e6564': Improve/flesh-out shared library version check.
| * Merge "Improve/flesh-out shared library version check." into jb-mr2-devDianne Hackborn2013-03-182-35/+102
| |\
| | * Improve/flesh-out shared library version check.Dianne Hackborn2013-03-152-35/+102
| | | | | | | | | | | | Change-Id: I3d6eb19c8aeaae07a6d17de81ac707c7741608fb
* | | am cf60cc9a: am 261f82ca: Merge "Revert "Clean Paint.mBidiFlags as it is no ↵Fabrice Di Meglio2013-03-154-0/+320
|\ \ \ | |/ / | | | | | | | | | | | | | | | longer used"" into jb-mr2-dev * commit 'cf60cc9adedf032c6c97cd2cbb9ff211deaaf3ae': Revert "Clean Paint.mBidiFlags as it is no longer used"
| * | Revert "Clean Paint.mBidiFlags as it is no longer used"Fabrice Di Meglio2013-03-154-0/+320
| | | | | | | | | | | | This reverts commit 6d9fe5bd22b531bfce69b146254a4791c76acddc.
* | | am 558030ee: am 555fddb0: Merge "change how app launch is tested" into ↵Guang Zhu2013-03-141-38/+99
|\ \ \ | |/ / | | | | | | | | | | | | | | | jb-mr2-dev * commit '558030ee12d1688b892079270a65dc1744040938': change how app launch is tested
| * | change how app launch is testedGuang Zhu2013-03-131-38/+99
| |/ | | | | | | | | | | | | | | | | | | | | new approach: * for each app * initial launch * sleep 7.5s * do 10 iterations: launch app with force stop + sleep in between * report average of 10 launches Change-Id: I9e68975325aa83af35620d727823f5c072aac488
* | am 0c42b580: am 53149acf: Merge "Implement limited shared libraries in ↵Dianne Hackborn2013-03-129-0/+275
|\ \ | |/ | | | | | | | | | | apks." into jb-mr2-dev * commit '0c42b58041dc0ede9865335fa48637fb6b677cd3': Implement limited shared libraries in apks.
| * Merge "Implement limited shared libraries in apks." into jb-mr2-devDianne Hackborn2013-03-129-0/+275
| |\
| | * Implement limited shared libraries in apks.Dianne Hackborn2013-03-129-0/+275
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You can now declare shared libraries in apks that are on the system image. This is like the existing mechanism of using raw jar files as shared libraries, but since they are contained in an apk the library can actually be updated from the Play Store. And this even (mostly) works. There are some deliberate limitations on this feature. A new shared library *must* be declared by an apk on the system image. Installing an update to a system image apk does not allow you to add new shared libraries; they must be defined by everything on the base system image. This allows us to get rid of a lot of ugly edge cases (shared libraries that were there disappearing after an update is uninstalled for example) and give some brakes on apps that happen to be pre-installed on devices from being able to throw in new shared libraries after the fact. In working on this, I ran into a recently introduced bug where uninstalling updated to system apps would fail. This was done to allow for the new restricted users that don't have all system apps, but conflicts with the existing semantics for uninstalling system apps. To fix this I added a new uninstall flag that lets you switch on the new mode if desired. Also to implement the desired logic for limitations on declaring new shared libraries in app updates, I needed to slightly tweak the initial boot to keep the Package object for hidden system packages associated with their PackageSetting, so we can look at it to determine which shared libraries are allowed. I think this is probably more right than it was before -- we already need to parse the package anyway, so we have it, and when you install an update to a system app we are in this same state until you reboot anyway. And having this fixed also allowed me to fix another bug where we wouldn't grant a new permission to an updated app if its system image version is updated to request the permission but its version is still older than whatever is currently installed as an update. So that's good. Also add new sample code showing the implementation of an apk shared library and a client app using it. Change-Id: I8ccca8f3c3bffd036c5968e22bd7f8a73e69be22
* | | am daafaff8: am baea5269: Merge "Add TaskManager API" into jb-mr2-devRomain Guy2013-03-121-0/+17
|\ \ \ | |/ / | | | | | | | | | * commit 'daafaff83965acbda157669e7c48a2caa55d37bc': Add TaskManager API
| * | Add TaskManager APIRomain Guy2013-03-121-0/+17
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This API can be used to run arbitrary tasks on a pool of worker threads. The number of threads is calculated based on the number of CPU cores available. The API is made of 3 classes: TaskManager Creates and manages the worker threads. Task Describes the work to be done and the type of the output. A task contains a future used to wait for the worker thread to be done computing the result of the task. TaskProcessor The processor dispatches tasks to the TaskManager and is responsible for performing the computation required by each task. A processor will only be asked to process tasks sent to the manager through the processor. A typical use case: class MyTask: Task<MyType> class MyProcessor: TaskProcessor<MyType> TaskManager m = new TaskManager(); MyProcessor p = new MyProcessor(m); MyTask t = new MyTask(); p.add(t); // Waits until the result is available MyType result = t->getResult(); Change-Id: I1fe845ba4c49bb0e1b0627ab147f9a861c8e0749
* | am 968a63ea: am 9f6421a3: Merge "Update RSTest_v14 for stride changes." into ↵Stephen Hines2013-03-124-25/+29
|\ \ | |/ | | | | | | | | | | jb-mr2-dev * commit '968a63ea133982e3acd1ba79ecd61e9e245eaa43': Update RSTest_v14 for stride changes.
| * Merge "Update RSTest_v14 for stride changes." into jb-mr2-devStephen Hines2013-03-124-25/+29
| |\
| | * Update RSTest_v14 for stride changes.Stephen Hines2013-03-074-25/+29
| | | | | | | | | | | | Change-Id: I8c5d392ba62050781f27c3a1745dbd1a2321b556
* | | am 342afc2a: am 2a2ead93: Merge "Precache paths from a worker thread" into ↵Romain Guy2013-03-121-2/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | jb-mr2-dev * commit '342afc2a4cc69bf8a54ac31482ef2cb08bafabcd': Precache paths from a worker thread
| * | Merge "Precache paths from a worker thread" into jb-mr2-devRomain Guy2013-03-121-2/+2
| |\ \
| | * | Precache paths from a worker threadRomain Guy2013-03-111-2/+2
| | |/ | | | | | | | | | Change-Id: I3e7b53d67e0e03e403beaf55c39350ead7f1e309
* | | am e06b7696: am b5afb837: Merge "Handle onPause in ImageProcessing." into ↵Jason Sams2013-03-091-12/+59
|\ \ \ | |/ / | | | | | | | | | | | | | | | jb-mr2-dev * commit 'e06b7696ccf6f5bd8fb785637d2eb58db4d8ee8f': Handle onPause in ImageProcessing.
| * | Handle onPause in ImageProcessing.Jason Sams2013-03-081-12/+59
| | | | | | | | | | | | Change-Id: I538ce0ac7b9da2f4ec6cd7bd35aa84fd710e063f
* | | am 694f9ff4: am e3982a86: Merge "Update IP_JB to Mr1" into jb-mr2-devJason Sams2013-03-0850-309/+2044
|\ \ \ | |/ / | | | | | | | | | * commit '694f9ff404f1ae4a48e0edd02a5953550630b086': Update IP_JB to Mr1
| * | Update IP_JB to Mr1Jason Sams2013-03-0850-309/+2044
| | | | | | | | | | | | Change-Id: I007b5048a187c90bc19c38e7155d0d5adcc34144
* | | am 8240587f: am 2042cc40: Merge "Update IP and IP2" into jb-mr2-devJason Sams2013-03-0875-303/+1351
|\ \ \ | |/ / | | | | | | | | | * commit '8240587f7d7e561efbf905ceff8ec929cd6de500': Update IP and IP2
| * | Update IP and IP2Jason Sams2013-03-0875-303/+1351
| |/ | | | | | | Change-Id: I5e81ae906a36fc1f6dc8de872398c6aa580238f1
* | am f2f3988e: am e7d32b19: Merge "Take text scale/skew into account only when ↵Romain Guy2013-03-041-6/+24
|\ \ | |/ | | | | | | | | | | rendering into a layer" into jb-mr2-dev * commit 'f2f3988ecba293e88a661bfe0a5bbd76de79224a': Take text scale/skew into account only when rendering into a layer
| * Take text scale/skew into account only when rendering into a layerRomain Guy2013-03-041-6/+24
| | | | | | | | | | | | | | | | | | | | | | | | 3D rotations can undo scale/skew transforms; since FreeType only accepts 2x2 matrices we can end up generating very large glyphs that are drawn at a 1:1 scale on screen. For instance, if the current transform has a scale of 2000 set on both X and Y axis and a perspective Z factor set to Z, the actual scale factor on screen ends up being 1. We would however generate glyphs with a scale factor of 2000 causing the font renderer to blow up. Change-Id: Ia5c3618d36644e817825cb9c89e2f53aece2074e
* | am 1361dff5: Merge "Support 3D rotations when drawing text" into jb-mr2-devRomain Guy2013-03-012-0/+74
|\ \ | |/ | | | | | | * commit '1361dff5eb54b9b02b4d1a2d3e2ed3afd216d79d': Support 3D rotations when drawing text
| * Merge "Support 3D rotations when drawing text" into jb-mr2-devRomain Guy2013-03-012-0/+74
| |\
| | * Support 3D rotations when drawing textRomain Guy2013-02-282-0/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a perspective transform is set on the Canvas, drawText() should not attempt to rasterize glyphs in screen space. This change uses the old behavior instead (i.e. rasterize the glyphs at the native font size and apply the transform on the resulting mesh.) This change also adds an optimization: empty glyphs (spaces) do not generate vertices anymore. This saves a lot of vertices in text heavy applications such as Gmail. Change-Id: Ib531384163f5165b5785501612a7b1474f3ff599
* | | am d6a3e485: Merge "Unify normal and overlay action bar layouts." into ↵Dianne Hackborn2013-02-282-2/+4
|\ \ \ | |/ / | | | | | | | | | | | | | | | jb-mr2-dev * commit 'd6a3e485b58e23808b44b8f2374e67e891cfae05': Unify normal and overlay action bar layouts.
| * | Merge "Unify normal and overlay action bar layouts." into jb-mr2-devDianne Hackborn2013-02-282-2/+4
| |\ \ | | |/ | |/|
| | * Unify normal and overlay action bar layouts.Dianne Hackborn2013-02-272-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Switch the action bar to always use the overlay layout, and make it smarter to do the right thing depending on whether the action bar is in overlay mode or not. This allows apps to use the system UI magic flags without having to worry about whether the action bar is configured in overlay mode or note -- just select a stable layout and it will automatically go into overlay mode. In the future this should also allow us to simplify the action bar code, since it is all sitting on one common implementation. For example, much of the logic in ActionBarImpl can be moved to the root action bar layout, and that layout can be optimized to do custom layout with all of the known elements it has. Also fixed a little bug in the performance tests. Change-Id: Iec0c0c0699754f0d1ce37402d786b4966e052a56
* | | am aaa46155: Merge "Reorganize OpenGL renderer tests" into jb-mr2-devRomain Guy2013-02-282-170/+331
|\ \ \ | |/ / | | | | | | | | | * commit 'aaa46155ec80f02b37ec858408d7dabbf9bc289a': Reorganize OpenGL renderer tests
| * | Reorganize OpenGL renderer testsRomain Guy2013-02-282-170/+331
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new UI works just like ApiDemos. The label of the activities declared in the manifest defines where they go in the UI. For instance Draw/Circles will create an entry called Draw in the first screen of the test app. Click the "Draw" item will launch a new activity containing an item called "Circles". Change-Id: I98a4442ee3d992598af440b2078ae1925214da20
* | | am 19886f8b: Merge "Properly scale text" into jb-mr2-devRomain Guy2013-02-282-3/+22
|\ \ \ | |/ / | | | | | | | | | * commit '19886f8b5109218191908d2ce5faf0293f85cf31': Properly scale text
| * | Properly scale textRomain Guy2013-02-272-3/+22
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change does not apply to drawPosText() and drawTextOnPath() yet. Prior to this change, glyphs were always rasterized based on the font size specified in the paint. All transforms were then applied on the resulting texture. This creates rather ugly results when text is scaled and/or rotated. With this change, the font renderer will apply the current transform matrix to the glyph before they are rasterized. This generates much better looking results. Change-Id: I0141b6ff18db35e1213e7a3ab9db1ecaf03d7a9c
| * Revert ActivityManager changes for tasks. DO NOT MERGECraig Mautner2013-02-251-1/+31
|/ | | | | | | | | | | | | | | | | | | | | | | Keeping all activity=>task changes in master and removing them from jb-mr2. Revert "Update histories simultaneously." Revert "Add null check to setAppGroupId." Revert "Fix crashing bug in validator." Revert "Switch topRunning* and moveTaskTo*" Revert "Begin switch over to task based history." Revert "Reset and reuse Iterators and don't new() one." Revert "Remove AppWindowToken lists." Revert "Fix build." Revert "Remove unused App methods." Revert "Stop using AppToken movement and start using Task." Revert "Replace access to mAppTokens with AppTokenIterator" Revert "Refactor setAppOpVisibility implementation." Revert "Add AppWindowTokens to TaskList." Revert "Make ActivityStack.mHistory private." Revert "Migrate AppWindowToken lists into DisplayContent." Change-Id: I5722c9a4956dccb52864207e2967690bc58e4ebb
* Remove surfaceTextureOpaque test.Jason Sams2013-02-228-556/+0
| | | | | | | This test was for an API we decided not to expose publically and have removed. Change-Id: Ic2b8449b286c8d1fb1432ccc2db47f96ad43cc4b
* Implement USAGE_IO_INPUTJason Sams2013-02-222-1/+71
| | | | Change-Id: Id5b9e3d0a17e4df15eec36d542fde6dc626138b2
* Merge "Support typed YUV allocations."Jason Sams2013-02-161-2/+7
|\
| * Support typed YUV allocations.Jason Sams2013-02-151-2/+7
| | | | | | | | Change-Id: I56e7a318dc979f0b7454fcfa5773ea6d95bbaeaa
* | Adjust offset for non-AA line drawingChris Craik2013-02-151-4/+31
|/ | | | | | | | | | | | | bug:8114304 The original .375 was chosen to make GL_LINES align with Skia drawing. The new value of .065 is chosen to be as small as possible to make triangle-based lines align with Skia, while keeping lines drawn on integer coordinates unambiguous as to which column/row they draw on. Also adds more lines in CanvasCompare test to highlight the difference Change-Id: If578684f2db320682219c3caa625cf79bc62d88f
* Merge "Implement support for drawBitmapMesh's colors array"Romain Guy2013-02-141-1/+1
|\
| * Implement support for drawBitmapMesh's colors arrayRomain Guy2013-02-131-1/+1
| | | | | | | | Change-Id: I3d901f6267c2918771ac30ff55c8d80c3ab5b725
* | Fix build.Craig Mautner2013-02-141-31/+1
| | | | | | | | Change-Id: I6fb00530536e5203d89805141792289ed7c1d8e3