summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Fix Paint_Delegate with missing native method.Xavier Ducrohet2012-04-232-2/+21
| | | | Change-Id: I39638dcb323fdd1ec3cb58dcad05757145d09026
* Add new API to find smallest/largest screen size.Dianne Hackborn2012-04-191-0/+4
| | | | Change-Id: I790801fceaf84ee2e3b1c9d32828285ad3231d0e
* Merge "Support loading keyboard layout overlays from resources."Jeff Brown2012-04-171-1/+2
|\
| * Support loading keyboard layout overlays from resources.Jeff Brown2012-04-171-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added the concept of a keyboard layout overlay, which is a key character map file that has "type OVERLAY". Added support for loading keyboard layout overlays from resources dynamically. The layouts are reloaded whenever they are changed in the Settings application or an application is installed. This is somewhat more aggressive than necessary so we might want to optimize it later. Before system-ready, the input system uses just the generic keyboard layouts that are included on the device system image. After system-ready, it considers the user's selected keyboard layout overlay and attempts to load it as necessary. We need to wait until system-ready before doing this because we need to be in a state where it is safe to start applications or access their resources. Bug: 6110399 Change-Id: Iae0886d3356649b0d2440aa00910a888cedd8323
* | Merge "Add new scale-up window manager animation."Dianne Hackborn2012-04-161-0/+6
|\ \
| * | Add new scale-up window manager animation.Dianne Hackborn2012-04-161-0/+6
| |/ | | | | | | | | | | Like zoom thumbnail, but without the thumbnail. Change-Id: I9486dd204398b87c9e70ff0d05d03f4a22449cd6
* | Add new aapt dump badging output explaining implicit badging.Dianne Hackborn2012-04-161-1/+46
|/ | | | | | | | New uses-implied-feature and uses-implied-permission tell you about any features or permissions that aapt is automatically adding to your app, and why it is doing so. Change-Id: I45edb055408e1259699c994f956166ce67e8db5d
* Request key maps from input manager service.Jeff Brown2012-04-101-2/+4
| | | | | | | | | | | | | | | | | | Instead of each application loading the KeyCharacterMap from the file system, get them from the input manager service as part of the InputDevice object. Refactored InputManager to be a proper singleton instead of having a bunch of static methods. InputManager now maintains a cache of all InputDevice objects that it has loaded. Currently we never invalidate the cache which can cause InputDevice to return stale motion ranges if the device is reconfigured. This will be fixed in a future change. Added a fake InputDevice with ID -1 to represent the virtual keyboard. Change-Id: If7a695839ad0972317a5aab89e9d1e42ace28eb7
* Merge "Adding a line for android-debuggable to 'dump badging' if ↵Dan Morrill2012-04-101-0/+10
|\ | | | | | | AndroidManifest.xml is configured as such. This is to be used by e.g. Play Store to warn the developer that they are about to publish a security hole."
| * Adding a line for android-debuggable to 'dump badging' if AndroidManifest.xmlDan Morrill2012-04-031-0/+10
| | | | | | | | | | | | | | is configured as such. This is to be used by e.g. Play Store to warn the developer that they are about to publish a security hole. Change-Id: Ib6f8537462cbc00ed0504435bdeee2aae0c5b69b
* | Merge "Implement call log permission compatibility."Dianne Hackborn2012-04-061-0/+24
|\ \
| * | Implement call log permission compatibility.Dianne Hackborn2012-04-051-0/+24
| | | | | | | | | | | | | | | | | | | | | If a pre-JellyBean application requests read/write contacts, it will implicitly be given read/write call log. Change-Id: I029db4b09fda737bb8fba4e1611355ebdbbfd34f
* | | Move some APIs from window manager to input manager.Jeff Brown2012-04-051-117/+0
|/ / | | | | | | | | | | | | | | | | | | Simplified input injection API down to just one call. Removed all input state reading API. It was only used by the window manager policy and required a permission that applications could not obtain. READ_INPUT_STATE is now unused and deprecated. Change-Id: I41278141586ddee9468cae0fb59ff0dced6cbc00
* | Merge "Clean up status bar, system bar, navigation bar management."Dianne Hackborn2012-04-051-3/+2
|\ \
| * | Clean up status bar, system bar, navigation bar management.Dianne Hackborn2012-04-041-3/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The status bar and navigation bar are two completely separate elements, with their own semantics. The system bar now classifies itself as a navigation bar, since that is really how it behaves. This required rewriting the HDMI resizing code, so that it is all done by PhoneWindowManager since that is what is responsible for the size of the navigation bar (and thus now system bar). This actually gets rid of a fair amount of code, and means we can also do the same thing for a pure navigation bar. Likewise the system bar now has the navigation bar ability to be hidden when requested by system UI flags. To get the behavior we want on Xoom, we only allow the nav bar to be hidden when it will help provide a better aspect ratio for showing widescreen videos. Finally the nav/system bar now animates when hidden and shown. Change-Id: Ie927154b68376a0b61802f99171ff56b8da92e7a
* | Embed layout padding in nine patch imagesAmith Yamasani2012-04-042-20/+177
|/ | | | | | | | | | | | | - Added a new custom PNG chunk that carries the layout padding ints. - Extract the padding ticks from .9.png images and store in the chunk. - Load the padding information at runtime into Bitmap and NinePatchDrawable. - The new chunk is ordered first so that it doesn't cause a problem in older versions of the platform. Bug: 6087201 Change-Id: I5de46167a1d44b3ec21065b0c165e594b1dc8399
* Merge "Add Delegate for ViewRootImpl#isInTouchMode to prevent IPC call in ↵Xavier Ducrohet2012-03-233-4/+49
|\ | | | | | | Eclipse."
| * Add Delegate for ViewRootImpl#isInTouchMode to prevent IPC call in Eclipse.Xavier Ducrohet2012-03-233-4/+49
| | | | | | | | | | | | Also fix some new/removed method from BitmapFactory. Change-Id: I606bd8bee6ff1e2c6c9472b4672175bfdaff45de
* | Add new thumbnail animation.Dianne Hackborn2012-03-231-0/+6
|/ | | | | | | | | | Use it for recent tasks switching. Not perfect yet by far, but something. Also fix issue #6186758: Twitter crashes after tapping on a tweet on JRM75D Change-Id: I49bf6c94aafde875ac652dedaf96d6c08cc9e7d2
* frameworks/base: move Zip* from libandroidfw to libutilsColin Cross2012-03-221-1/+1
| | | | | | | ZipUtils is needed by build/tools, move it from libandroidfw (frameworks/base) to libutils (frameworks/native). Change-Id: I2b4b7adcdf68eb25ee7cba5dd3b69eadf0523af3
* Use qsort_r_compat() as a portable wrapper for qsort_r().Jeff Brown2012-03-192-15/+2
| | | | Change-Id: Ie79f81625947f4e95122047605d994c86e872e74
* Fix build break on glibc, for real.Jeff Brown2012-03-191-0/+4
| | | | Change-Id: I8bbec237229b05f96c708d41f3c4da17e2a90e2b
* Fix build break on glibc hosts.Jeff Brown2012-03-191-0/+10
| | | | Change-Id: Ida70bec6ea972d042982428353cbbc33cde25136
* aapt: Preprocess images in parallel.Jeff Brown2012-03-174-14/+50
| | | | | | | | | Currently hardcoded to use up to 4 threads. This change substantially reduces the amount of time spent preprocessing framework resources to just a few seconds. Change-Id: I02fdd283fb529a152aeb22ac87f278779fd77983
* Use quicksort to sort the string pool.Jeff Brown2012-03-162-6/+10
| | | | | | | | | | | The current implementation of Vector::sort uses insertion sort on the assumption that the data is mostly sorted. It isn't. This change brings the total time spent sorting packages by config down to 500ms from about 93 seconds. Bug: 6186278 Change-Id: Iec8da11e09297acd6c73733d063b0fa9dacf69f7
* Add some comments about StringPool sort order.Jeff Brown2012-03-161-2/+4
| | | | Change-Id: I57f24d46328a6bfef883819eaf95c03114d573bb
* Merge "Remove dead code in StringPool."Jeff Brown2012-03-164-106/+22
|\
| * Remove dead code in StringPool.Jeff Brown2012-03-164-106/+22
| | | | | | | | | | | | | | The sorted string pool option was no longer used. Neither were strings with associated identifiers. Change-Id: Ic5f6368637fbeedfda873d63f4ad0f3ea9d0d603
* | Merge "Make StringPool entry types trivially movable."Jeff Brown2012-03-161-0/+9
|\ \ | |/
| * Make StringPool entry types trivially movable.Jeff Brown2012-03-161-0/+9
| | | | | | | | Change-Id: If93957a840a0f1cae2e6ef291eeeb1b0c7c20958
* | LayoutLib: Properly support attr ns when used in styles.Xavier Ducrohet2012-03-164-198/+183
|/ | | | Change-Id: I885864588928589d7c9a34b94339917c5be47fa5
* Fix sdk layout rendering in JB.Xavier Ducrohet2012-03-156-13/+316
| | | | | | | | | | | | | Since JB, com.android.internal.R does not contain all the resources, instead only the ones that are accessed through Java. This means we need to dynamically generate IDs for resources that are private and only accessed from other XML resources. This is done through the DynamicIdMap class. Also add a PolicyManager and a PowerManager since those are now needed by ViewRootImpl?!? Change-Id: If2ae8ad79502fa084d852664a44aefd46e01aec6
* Add new "options" argument to all startActivity APIs.Dianne Hackborn2012-03-141-0/+17
| | | | | | | | This will be used to allow new features to be requested... such as, say, a special kind of animation. Right now there are no options defined. Change-Id: I4eb6f27275cdd4bf186f6da316ab93a2372ad4b7
* Add new READ_EXTERNAL_STORAGE permission.Dianne Hackborn2012-03-121-0/+12
| | | | | | Also adds some initial compatibility code for dealing with it. Change-Id: I104bff11798349e4aaa6da9b7be787b257daa1bb
* Merge "Dispatch screen state change events to Views Bug #6120957"Romain Guy2012-03-081-1/+2
|\
| * Dispatch screen state change events to ViewsRomain Guy2012-03-081-1/+2
| | | | | | | | | | | | | | | | | | | | Bug #6120957 Using this new callback, views can interrupt and resume their animations or other periodic tasks based on the current state of the display. Change-Id: I398f4abd421e9c5f207107bf1009a7b92cf45daa
* | Merge "Fix an issue where a non-styled string could be made into a styled ↵Ben Gruver2012-03-081-1/+3
|\ \ | |/ |/| | | string"
| * Fix an issue where a non-styled string could be made into a styled stringBen Gruver2012-03-071-1/+3
| | | | | | | | | | | | | | | | If a styled version of an otherwise identical string is encountered before a non-styled version, aapt merges the two, effectively making the non-styled string have a spurious style. Change-Id: I424a61c0c83c59e0b9c8939e457402efd06a7a4f
* | Merge "Fix the build"Romain Guy2012-03-081-0/+5
|\ \
| * | Fix the buildRomain Guy2012-03-081-0/+5
| |/ | | | | | | Change-Id: Ia86ba9b1c432ab3f8107557e95b12c9eedc4d9f7
* | Fix up getAttributeFlags() functionBen Gruver2012-03-071-6/+2
|/ | | | | | | | In addition to a couple of minor clean-up items, this fixes an issue that can rarely cause incorrect parsing of attribute flag values, when there is a '|' character in the few bytes past the end of the attribute value being parsed. Change-Id: I6050b1c2db60720c7c0ab7df9eba8cfc629b320e
* am 77fdcbff: am f038868d: am 44e63a21: Support rendering layout that use the ↵Xavier Ducrohet2012-02-272-3/+13
|\ | | | | | | | | | | | | new res-auto namespace. * commit '77fdcbff8b458dd3430b38e60aee1a28ca92a738': Support rendering layout that use the new res-auto namespace.
| * am f038868d: am 44e63a21: Support rendering layout that use the new res-auto ↵Xavier Ducrohet2012-02-242-3/+13
| |\ | | | | | | | | | | | | | | | | | | namespace. * commit 'f038868d74af534effceaa8f1d932f9576f4f647': Support rendering layout that use the new res-auto namespace.
| | * am 44e63a21: Support rendering layout that use the new res-auto namespace.Xavier Ducrohet2012-02-242-3/+13
| | |\ | | | | | | | | | | | | | | | | * commit '44e63a218cf8fcab9b4418246a512bd0b0c9157b': Support rendering layout that use the new res-auto namespace.
| | | * Support rendering layout that use the new res-auto namespace.Xavier Ducrohet2012-02-242-3/+13
| | | | | | | | | | | | | | | | Change-Id: I9b89c965dc8c9458e74c15ab8ff765e16e1b32c2
* | | | resolved conflicts for merge of 34706a4c to masterDianne Hackborn2012-02-241-5/+6
|\ \ \ \ | |/ / / | | | | | | | | Change-Id: I4dd24f3b917aa7e3d2c4b0fae51e951dfcf88ba8
| * | | am e65a9ab1: am 5786f5cf: Merge "Fix build." into ics-mr1Dianne Hackborn2012-02-241-5/+8
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit 'e65a9ab1ea42d1f6190bee844ee666b7910d71ef': Fix build.
| | * | am 5786f5cf: Merge "Fix build." into ics-mr1Dianne Hackborn2012-02-241-5/+8
| | |\ \ | | | |/ | | | | | | | | | | | | * commit '5786f5cf1b248b79f938b3fa3c5d534159261f09': Fix build.
| | | * Merge "Fix build." into ics-mr1Dianne Hackborn2012-02-241-5/+8
| | | |\
| | | | * Fix build.Dianne Hackborn2012-02-241-5/+8
| | | | | | | | | | | | | | | | | | | | Change-Id: Id3262bff0df598ecc81a4346dee9febd3aaa60c9