summaryrefslogtreecommitdiff
path: root/samples/ApiDemos/src/com/example/android/apis/graphics
Commit message (Collapse)AuthorAgeFilesLines
* Update Outline APIChris Craik2014-07-181-2/+1
| | | | Change-Id: Ia9a4ce9e50473f4c1ee46fe40506c6a9736043a7
* Call setShader after setLocalMatrix.Leon Scroggins III2014-07-101-0/+1
| | | | | | | | After updating a Shader's Matrix, set the Shader on the Paint again, so it will take effect. BUG:14315916 Change-Id: Ibf732f7f417d2a52500fabf4d660be7fcfb59f43
* Add Shadow demos to ApiDemosChris Craik2014-06-192-0/+390
| | | | | bug:15724818 Change-Id: I22e3faaee9bb1d46f9c9f16cac38069071e1fc0b
* Add API demo for game style system UI interaction.Dianne Hackborn2013-12-041-12/+45
| | | | | | | | | | Shows the ideal way for a game to interact with system UI, hiding the status bar and nav bar while being played, making them visible when paused or otherwise interacting with controls of the game, and determing layout of game controls to not be covered by the status bar or nav bar. Change-Id: Ia192c31321113d81f96c06c7a69a06ef72c4682a
* Add ApiDemos for secure surfaces.Jeff Brown2012-10-241-1/+1
| | | | | | | | | Added three ApiDemos for secure surfaces. One for Activity, one for Dialog and one for SurfaceView. The mechanism is the same in each case but the API is a little different. Bug: 7368436 Change-Id: I78bc2a456b4c0f1a553120d72f433095ba7e038c
* Enhance the TouchPaint sample with stylus support.Jeff Brown2011-08-191-75/+315
| | | | | | | | Added basic stylus and hover support to the sample to illustrate the usage of pressure, size, orientation, distance, tilt and tool type information. Change-Id: I1689adc38d5904870e005300b3317c44c214fc08
* Remove the deprecated things from Config.java. These haven't been working ↵Joe Onorato2011-04-072-12/+10
| | | | | | since before 1.0. Change-Id: I01e0e2476de9098152434b9991c22483fc6e1165
* Remove use of old theme name.Dianne Hackborn2011-01-231-1/+3
| | | | Change-Id: Iebc7a81738122fbfb94f22649e07eabb39dc4afb
* am 35dfdb6f: am dbe66332: Extended camera preview to switch between multiple ↵Anirudh Dewani2010-11-291-0/+91
|\ | | | | | | | | | | | | available device cameras * commit '35dfdb6fc37cf72aab09713ce59bd8c6ec571fab': Extended camera preview to switch between multiple available device cameras
| * am dbe66332: Extended camera preview to switch between multiple available ↵Anirudh Dewani2010-11-291-0/+91
| |\ | | | | | | | | | | | | | | | | | | device cameras * commit 'dbe66332e278962c058a596353b839a2fd6dca1b': Extended camera preview to switch between multiple available device cameras
| | * Extended camera preview to switch between multiple available device camerasAnirudh Dewani2010-11-261-0/+91
| | | | | | | | | | | | Change-Id: I8e97d6182bf02cba29ae3bc9f1a7ef21a277117e
* | | Don't hardcode 320x480 size in the FingerPaint API demo.Marco Nelissen2010-11-231-2/+2
|/ / | | | | | | Change-Id: I4de9ce1e52dda68bf4c3ab7fbd9987ca6d5548a0
* | am 902b355d: Merge "Remove unused Grid object from LabelMaker.java class." ↵Jack Palevich2010-10-261-19/+4
|\| | | | | | | into gingerbread
| * Merge "Remove unused Grid object from LabelMaker.java class." into gingerbreadJack Palevich2010-10-261-19/+4
| |\
| | * Remove unused Grid object from LabelMaker.java class.Jack Palevich2010-10-251-19/+4
| | | | | | | | | | | | | | | | | | Also remove unnescessary "executable" bits from a documentation file. Change-Id: I49bf8a6f0dabece62d16956b7e02c9a846bdd69b
* | | am 83c50ca7: Merge "Update ApiDemos CameraPreview activity to properly ↵Roman Nurik2010-10-251-19/+104
|\| | | | | | | | | | | | | | | | | | | | | | | | | | center the preview in cases where the camera hardware doesn\'t support a preview size with the same aspect ratio as the device display." into gingerbread Merge commit '83c50ca740fabe25189601db90dc1f65ed4d2061' into gingerbread-plus-aosp * commit '83c50ca740fabe25189601db90dc1f65ed4d2061': Update ApiDemos CameraPreview activity to properly center the preview in cases where the camera hardware doesn't support a preview size with the same aspect ratio as the device display.
| * | Update ApiDemos CameraPreview activity to properly center the preview in ↵Roman Nurik2010-10-221-19/+104
| |/ | | | | | | | | | | cases where the camera hardware doesn't support a preview size with the same aspect ratio as the device display. Change-Id: Ic7ccc324dfe4d46f3aeb5c7edafc7cc97a6fdc49
* | resolved conflicts for merge of 4110368b to gingerbread-plus-aospJeff Brown2010-10-011-43/+40
|\| | | | | | | Change-Id: I6a75675ffcb4d9bcb1b7d321a4934b3e3fcca137
| * Improve touch paint sample to use geometrical touch width.Jeff Brown2010-09-301-43/+40
| | | | | | | | | | | | | | Added multitouch support. Fixed the trackball based drawing. Change-Id: I15d9c5c4ac26a83f476f98c1f2ef3a5841e2ffbd
* | am 98b2c359: Copy over updated NDK APIs and follow other API changes.Dianne Hackborn2010-07-131-1/+4
|\| | | | | | | | | | | | | Merge commit '98b2c359c2b3361f43e14b0c5d07a02c055dd10e' into gingerbread-plus-aosp * commit '98b2c359c2b3361f43e14b0c5d07a02c055dd10e': Copy over updated NDK APIs and follow other API changes.
| * Copy over updated NDK APIs and follow other API changes.Dianne Hackborn2010-07-131-1/+4
| | | | | | | | Change-Id: Ifec95268c9ade21963eea13357ec2f56fd7968c2
* | merge from froyo-plus-aospThe Android Open Source Project2010-06-1443-556/+480
|\ \ | |/ |/| | | Change-Id: I1f4c76c89aad748b006cfc1370a767782e4ca3e7
| * merge from open-source masterThe Android Open Source Project2010-06-1443-556/+480
| |\ | | | | | | | | | Change-Id: I7d0f3b08f6e632b689c870017374741a544bc7e8
| | * Merge "Cleaned up Samples by removing unsed imports and variables. Changed ↵Jean-Baptiste Queru2010-06-1444-565/+486
| | |\ | | | | | | | | | | | | deprecated Config.LOGD to Config.DEBUG Removed unnecessary whitespaces"
| | | * Cleaned up Samples by removing unsed imports and variables.Christian Mehlmauer2010-06-1244-565/+486
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed deprecated Config.LOGD to Config.DEBUG Removed unnecessary whitespaces Change-Id: I01414dd83eb6f9a41e56762dd7fc00e7f1115039
* | | | am 4bdec4ab: merge from open-source masterThe Android Open Source Project2010-06-021-1/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '4bdec4ab5d3deb28e29c460100a4e3c0b25d37cf' into kraken * commit '4bdec4ab5d3deb28e29c460100a4e3c0b25d37cf': removed unused imports
| * | | merge from open-source masterThe Android Open Source Project2010-06-021-1/+0
| |\| | | | | | | | | | | | | | Change-Id: I0d2492c58689315f4caaa9bcb908296c26f53ed6
| | * | removed unused importsChristian Mehlmauer2010-05-201-1/+0
| | |/ | | | | | | | | | Change-Id: I1411ee3d0229918a6ff3837894d63f775550da27
* | | am 8cc5a816: merge from open-source masterThe Android Open Source Project2010-06-022-48/+39
|\| | | | | | | | | | | | | | | | | | | | Merge commit '8cc5a8166dcdccfdb7f379a05190cef43f91c423' into kraken * commit '8cc5a8166dcdccfdb7f379a05190cef43f91c423': Updated Sensor Samples to newest API
| * | merge from open-source masterThe Android Open Source Project2010-06-022-48/+39
| |\| | | | | | | | | | Change-Id: I900ca65f70c1a66781fb5f6f37c45961416d5650
| | * Updated Sensor Samples to newest APIChristian Mehlmauer2010-05-192-48/+39
| | | | | | | | | | | | Change-Id: I88c0ce08232fed34aa99c97385155220e7d9abff
* | | Small fix to surface window sample.Dianne Hackborn2010-05-181-0/+4
| | | | | | | | | | | | Change-Id: Iaae90aaf8cfdb71c6201eba8a436450a75b2b732
* | | Add new demo of taking over a window's surface.Dianne Hackborn2010-05-181-0/+264
|/ / | | | | | | Change-Id: If76f577d2a314018d7dc7980ffa446b7cf050037
* | Improve Cube Map and FrameBufferObject samples.Jack Palevich2010-02-032-6/+17
| | | | | | | | | | | | | | | | | | Fix tabs and trailing whitespace. Expand comment to explain how we search for GL extensions. Rename and document the DEBUG_RENDER_OFFSCREEN_ONSCREEN variable. Also make it final static because its value never changes.
* | Add API Demos showing how to use cube maps and frame buffer objects.Jack Palevich2010-01-292-0/+687
| |
* | Deprecate fill_parent and introduce match_parent.Romain Guy2010-01-082-8/+5
| | | | | | | | Bug: #2361749.
* | Tool for compressing/decompressing ETC1 textures.Jack Palevich2009-12-312-16/+195
| | | | | | | | | | | | | | | | | | | | The ETC1 texture format is commonly supported by OpenGL ES 2.0-capable GPUs. For historical reasons ETC1 texture files have the default extension .PKM This tool relies on the libETC1 library to compress and decompress the image data.
* | Remove unnecessary matrix stack manipulations.Jack Palevich2009-12-221-6/+1
| | | | | | | | glDrawTexiOES does not use the matix stack, so no need to modify it.
* | Merge commit 'e897c1b4' into manualmergeDirk Dougherty2009-12-151-4/+3
|\| | | | | | | | | Conflicts: samples/ApiDemos/src/com/example/android/apis/app/_index.html
| * sdk doc change for esr: fix some broken links to resources files.Dirk Dougherty2009-12-151-4/+3
| | | | | | | | | | Bug: 2160782 Change-Id: Ie8650e4b642a96e67a2e7e62669282bc58d414ba
* | Simple Matrix Palette skinning sample.Jack Palevich2009-12-092-0/+460
| |
* | am 0a91a547: am 0ee41ccc: Merge change I1558a070 into eclair-mr2Owen Lin2009-12-071-7/+48
|\ \ | | | | | | | | | | | | | | | | | | Merge commit '0a91a547ee32d559b7b737f69430d4d0732dfca9' * commit '0a91a547ee32d559b7b737f69430d4d0732dfca9': Fix the camera preview demo.
| * | Fix the camera preview demo.Owen Lin2009-11-161-7/+48
| | | | | | | | | | | | | | | | | | The preview size will be checked now in Camera HAL. So, we change the code to get the supported preview sizes and find one of the size that match the surface's width and height.
* | | Add OpenGL ES 2.0 sample.Jack Palevich2009-11-272-0/+327
|/ / | | | | | | | | | | | | This sample renders a textured triangle using OpenGL ES 2.0. If OpenGL ES 2.0 is not available, the sample falls back to using OpenGL ES 1.0.
* | Revert "update demo to use boundary patch"Mike Reed2009-10-281-61/+74
| | | | | | | | This reverts commit 3f14f59ee679c76438f6d37bfc9535b4bc2be024.
* | update demo to use boundary patchMike Reed2009-10-281-74/+61
| |
* | Turn of log message that was accidentally left on in an earlier commit.Jack Palevich2009-10-081-1/+1
| |
* | Make robot.png a raw resource.Jack Palevich2009-10-053-3/+14
|/ | | | After all, it's being used as a raw resource.
* Remove unused getConfigSpec methods from ApiDemos sample codeJack Palevich2009-08-213-43/+0
| | | | | | | | | | | | | | | At one time during the development of GLSurfaceView, the GLSurfaceView.Renderer interface had a getConfigSpec method that was used to select the frame buffer format. This method was removed from the Renderer interface before GLSurfaceView became a public API, but the sample code still defined these now-unused methods. To reduce the chance of confusing a developer who uses the sample code, this change removes the dead, no-longer-called getConfigSpec implementations from the three samples. See GLSurfaceView.setEGLConfigChooser for the replacement technique.
* am c5c912e4: Merge change 20717 into donutWu-cheng Li2009-08-111-0/+1
|\ | | | | | | | | | | | | Merge commit 'c5c912e49bdc89a7a7778b66d1ca6b00440d2888' * commit 'c5c912e49bdc89a7a7778b66d1ca6b00440d2888': Release the camera in surfaceDestroyed().