summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Fix issue #2485441: SettingsBackupAgent crashed system serverDianne Hackborn2010-03-031-44/+46
| | | | | Need to take care of fixing up backupAdjust as well as reporting it to ProGuard.
* Fix issue #2482423: Settings is broken due to dead-code strippingDianne Hackborn2010-03-021-15/+58
| | | | | Take care of more custom classes in layouts, and also scan through preference XMLs.
* Fix issue #2448075: aapt doesn't fix up activity-alias ↵Dianne Hackborn2010-03-016-10/+97
| | | | | | | | | | | | | | android:targetActivity links And related: - The aapt tool now sets a resource configurations sdk level to match any configs that have been set (for example if you specify density your sdk level will be at least 4). - New option to modify the targetPackage attribute of instrumentation. - Clean up of aapt options help. - Fix of UI type values to leave 0 for "unspecified". - Make the UI mode config APIs public.
* Re-arrange android-common so framework no longer links with it.Dianne Hackborn2010-02-252-2/+2
| | | | | | | This is the framework part, moving classes around so the framework no longer needs to link to android-common. Makes some APIs public, others that didn't need to be public are private in the framework, some small things are copied.
* Create own reference for minSdkVersion in aaptKenny Root2010-02-241-3/+3
| | | | | | | Fix bug where applications defining a minSdkVersion were experiencing transient errors from memory corruption in aapt. Change-Id: I839d5eda7388baac6133e735fa59f9799ca2822d
* Scan for android namespace in manifestKenny Root2010-02-241-2/+2
| | | | | | | | android:minSdkVersion wasn't being correctly scanned because the namespace was incorrect. This fixes that problem so packages aren't generated as UTF-8 when minSdkVersion is less than 7. Change-Id: I8f45d47ea886915da6a4770f6e111e6085d61bee
* Merge "Remove empty finalize methods."Carl Shapiro2010-02-243-15/+0
|\
| * Remove empty finalize methods.Carl Shapiro2010-02-243-15/+0
| |
* | Merge "New update of preloaded classes for Froyo."Jesse Wilson2010-02-244-3/+25
|\ \
| * | New update of preloaded classes for Froyo.Jesse Wilson2010-02-244-3/+25
| |/
* | Merge "Fix the layoutlib to still support fill_parent."Xavier Ducrohet2010-02-242-2/+6
|\ \
| * | Fix the layoutlib to still support fill_parent.Xavier Ducrohet2010-02-232-2/+6
| |/ | | | | | | Change-Id: I5e1825f1f853cf9e31b2ee262edce636a030429d
* | Use UTF-8 strings to avoid duplicate caching, part 1Kenny Root2010-02-231-2/+6
|/ | | | | | | | | | | | StringBlock instances containing UTF-8 strings use a cache to convert into UTF-16, but using that cache and then using a JNI call to NewString causes the UTF-8 string as well as two copies of the UTF-16 string to be held in memory. Getting the UTF-8 string directly from the StringPool eliminates one copy of the UTF-16 string being held in memory. This is part 1. Part 2 will include ResXMLParser optimizations. Change-Id: Ibd4509a485db746d59cd4b9501f544877139276c
* Use direct reference to enum in AaptAssetsKenny Root2010-02-191-6/+6
| | | | | | | The second argument to the getNavHiddenName can be NULL, so use a direct reference to the class to get the enum values instead of the argument. Change-Id: I0444572c23cb4de9e7da15a8310a49cf4619bb15
* Work on issue #2263557: PMF3000 showing hybrid of portrait and landscape modesDianne Hackborn2010-02-181-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a bunch of reworking of how configuration changes are handled: - When orientation is changing (for whatever reason), the window manager no longer tries to pre-emptively compute a new configuration. Instead, it just determines change is happening and tells the window manager. - The activity manager is now responsible for giving the window manager the final configuration it is using. This is both so it knows whem the activity manager is done with its configuration updates, and so the window manager can use the "real" configuration. - When an orientation or other configuration change is happening, freeze the screen and keep it frozen until the activity manager has given us the final configuration. - The window manager can now send new configurations to its clients during its layout pass, as part of a resize, if it has determined that it has changed. This allows for a new View.onConfigurationChanged() API for any view to easily find out when the configuration has changed. - ViewRoot now also works with the activity thread to make sure the process's current resources are updated to the new configuration when it receives one from a window. This ensures that at the time onConfigurationChanged() and other view callbacks are happening, the correct configuration is in force. - There is now a sequence number associated with Configuration, which ActivityThread uses to avoid using stale configurations. This is needed now that it can receive configurations asynchronously from both the window manager and activity manager. - The hack for keeping the locale has been removed, and underlying problem fixed by having Configuration initialize its locale to "unknown" instead of a valid default value.
* Merge "Change buf size holding integer in ResourceTable"Kenny Root2010-02-181-1/+1
|\
| * Change buf size holding integer in ResourceTableKenny Root2010-02-181-1/+1
| | | | | | | | | | | | | | A 32-bit integer can be 10 characters long plus a byte for \0 at the end. Change-Id: I58040fe6e1674e78bcc6e07463ff36fb26e280f4
* | Fix enum referenceKenny Root2010-02-181-8/+8
|/ | | | | | | | Was using argument that is set default to NULL as a shortcut to an enum's value. Change it to reference to class directly to avoid a null pointer dereference. Change-Id: I16b8ee15af4f095f027113131d574b70768994b0
* Dump original-package entries.Jeff Hamilton2010-02-121-0/+9
| | | | Change-Id: I29b20811847555ff9858ef47cca69c8b992b24ea
* Fix in layoutlib due to some changes in the frameworks.Xavier Ducrohet2010-02-112-37/+10
| | | | | | | Some methods disappear or became abstract in the base class (breaking @Override) Change-Id: Id4d298ee84ba008ac97ecaaf90b19003ac09f104
* Introduce special UI modes for night and car usage.Tobias Haamel2010-02-115-5/+120
| | | | | | | | | | | | | | | | | | The device mode is now called ui mode. Furthermore is the order of precedence for the resources now in such a way that the ui mode needs to be specified after the orientation and before the density. The ui mode can be set, like it is done for the locale, as follows: IActivityManager am = ActivityManagerNative.getDefault(); Configuration config = am.getConfiguration(); config.uiMode = Configuration.UI_MODE_TYPE_CAR | Configuration.UI_MODE_NIGHT_ANY; am.updateConfiguration(config); To allow users to disable the car mode and set the night mode the IUiModeManager interface is used. The automatic night mode switching will be added in a separate change.
* New external storage APIs.Dianne Hackborn2010-02-091-0/+12
| | | | | | | | | | | This implements the spec for external storage organization, and properly reflects how the media scanner organizes the files it finds. Also includes package manager support for removing app private files from external storage when the application is uninstalled. For the new APIs and paths, the main place to look is Environment and Context.
* Add --auto-add-overlay option to aapt.Xavier Ducrohet2010-02-044-6/+16
| | | | | | | This option allows resources only present in overlays to be added automatically instead of being declared through <add-resource> Change-Id: Iff782311056f6a045193e57d204f7d3413e11b26
* Add the --rename-manifest-package option to aapt.Jeff Hamilton2010-02-016-8/+91
| | | | | | | It allows you to force override the manifest package listed in the AndroidManifest.xml when creating an APK file. Change-Id: I7eac7943c4e56610b65728ae54773a273634fd9d
* am 6efe03b1: am 6f9e2c64: Merge "Find layout classes in all "layout-*" ↵Ying Wang2010-01-271-3/+9
|\ | | | | | | | | | | | | | | | | dirs." into eclair Merge commit '6efe03b19e0734361b262f9a0be4d225088d7f9e' * commit '6efe03b19e0734361b262f9a0be4d225088d7f9e': Find layout classes in all "layout-*" dirs.
| * am 6f9e2c64: Merge "Find layout classes in all "layout-*" dirs." into eclairYing Wang2010-01-211-3/+9
| |\ | | | | | | | | | | | | | | | | | | Merge commit '6f9e2c648c0588a2eedef2746c9750ed9c6945be' into eclair-plus-aosp * commit '6f9e2c648c0588a2eedef2746c9750ed9c6945be': Find layout classes in all "layout-*" dirs.
| | * Find layout classes in all "layout-*" dirs.Ying Wang2010-01-201-3/+9
| | | | | | | | | | | | | | | Before this CL, the generated keep flags for layout classes are incomplete, such as layout classes in res/layout-port/ and res/layout-land and so on.
* | | am 3bd6dc65: am b44051ee: Merge "ADT/Layoutlib: implement sweep gradient." ↵Xavier Ducrohet2010-01-223-60/+140
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | into eclair Merge commit '3bd6dc653521281db25df77f055b3ec0b4659454' * commit '3bd6dc653521281db25df77f055b3ec0b4659454': ADT/Layoutlib: implement sweep gradient.
| * | am b44051ee: Merge "ADT/Layoutlib: implement sweep gradient." into eclairXavier Ducrohet2010-01-203-60/+140
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit 'b44051eee04450888a7dcb1cd2e6f31d0edfb678' into eclair-plus-aosp * commit 'b44051eee04450888a7dcb1cd2e6f31d0edfb678': ADT/Layoutlib: implement sweep gradient.
| | * ADT/Layoutlib: implement sweep gradient.Xavier Ducrohet2010-01-193-60/+140
| | | | | | | | | | | | Change-Id: I2d460decff82f5f64b0a5cfeaa68156aad4fb3e6
* | | am 60e3c09e: am 6866daee: Merge "ADT/Layoutlib: implement radial gradient." ↵Xavier Ducrohet2010-01-223-219/+338
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | into eclair Merge commit '60e3c09ec0fa73a3e650f4aec89c763599c2e0b7' * commit '60e3c09ec0fa73a3e650f4aec89c763599c2e0b7': ADT/Layoutlib: implement radial gradient.
| * | am 6866daee: Merge "ADT/Layoutlib: implement radial gradient." into eclairXavier Ducrohet2010-01-193-219/+338
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit '6866daee6a18992e8f2c9a948e873bbfc2090fb0' into eclair-plus-aosp * commit '6866daee6a18992e8f2c9a948e873bbfc2090fb0': ADT/Layoutlib: implement radial gradient.
| | * Merge "ADT/Layoutlib: implement radial gradient." into eclairXavier Ducrohet2010-01-193-219/+338
| | |\
| | | * ADT/Layoutlib: implement radial gradient.Xavier Ducrohet2010-01-193-219/+338
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also refactored some parts of LinearGradient to reuse them in the radial gradient Change-Id: I2ec69bd60190bd014217d989177dcc7269188dea
* | | | am 3c05f1fb: am b5fb50a1: Merge "Add instrumentation as a source tag for ↵Ying Wang2010-01-221-36/+44
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | proguard keep options." into eclair Merge commit '3c05f1fbac2ce35483f61dbd5d5bfb6341da6d9c' * commit '3c05f1fbac2ce35483f61dbd5d5bfb6341da6d9c': Add instrumentation as a source tag for proguard keep options.
| * | | am b5fb50a1: Merge "Add instrumentation as a source tag for proguard keep ↵Ying Wang2010-01-191-36/+44
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | options." into eclair Merge commit 'b5fb50a133c6fc7fc93d6241912dd9ec24de6ace' into eclair-plus-aosp * commit 'b5fb50a133c6fc7fc93d6241912dd9ec24de6ace': Add instrumentation as a source tag for proguard keep options.
| | * | Merge "Add instrumentation as a source tag for proguard keep options." into ↵Ying Wang2010-01-191-36/+44
| | |\ \ | | | |/ | | |/| | | | | eclair
| | | * Add instrumentation as a source tag for proguard keep options.Ying Wang2010-01-131-36/+44
| | | |
* | | | am da84d6a1: am 908a8111: Merge "ADT/Layoutlib: Add dash support to stroke." ↵Xavier Ducrohet2010-01-213-38/+92
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | into eclair Merge commit 'da84d6a1b1c37376d48f92ae59b76f1c891772f6' * commit 'da84d6a1b1c37376d48f92ae59b76f1c891772f6': ADT/Layoutlib: Add dash support to stroke.
| * | | am 908a8111: Merge "ADT/Layoutlib: Add dash support to stroke." into eclairXavier Ducrohet2010-01-183-38/+92
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | Merge commit '908a81119061092468067789acbec9b99d79ad5f' into eclair-plus-aosp * commit '908a81119061092468067789acbec9b99d79ad5f': ADT/Layoutlib: Add dash support to stroke.
| | * | ADT/Layoutlib: Add dash support to stroke.Xavier Ducrohet2010-01-153-38/+92
| | | | | | | | | | | | | | | | Change-Id: I09a7e84948be013cbb11f6d9774ab81df897b424
* | | | am c0ea805c: am 2b30a4a5: Merge "ADT/Layoutlib: properly handle stroke ↵Xavier Ducrohet2010-01-212-2/+41
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | information." into eclair Merge commit 'c0ea805c649666b55d4dde09eb72dcccfa8bccc3' * commit 'c0ea805c649666b55d4dde09eb72dcccfa8bccc3': ADT/Layoutlib: properly handle stroke information.
| * | | am 2b30a4a5: Merge "ADT/Layoutlib: properly handle stroke information." into ↵Xavier Ducrohet2010-01-182-2/+41
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | eclair Merge commit '2b30a4a50e24080fdd8b796e4a64447f223d4522' into eclair-plus-aosp * commit '2b30a4a50e24080fdd8b796e4a64447f223d4522': ADT/Layoutlib: properly handle stroke information.
| | * | ADT/Layoutlib: properly handle stroke information.Xavier Ducrohet2010-01-142-2/+41
| | | | | | | | | | | | | | | | Change-Id: Iec9284d0e65d1313739e361d1fd5a522646fd1fd
* | | | Merge "relocate GoogleLoginService"Doug Zongker2010-01-211-1/+0
|\ \ \ \
| * | | | relocate GoogleLoginServiceDoug Zongker2010-01-211-1/+0
| | | | | | | | | | | | | | | | | | | | Change-Id: I79f4ff658ab136adcc54c432db76f34d2de5f6ac
* | | | | am 20cc5570: am 79f05bb4: Merge "ADT/Layoutlib: improved gradient drawing ↵Xavier Ducrohet2010-01-211-3/+9
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for perf." into eclair Merge commit '20cc55703348827fbd80ff0410777a537f01e10e' * commit '20cc55703348827fbd80ff0410777a537f01e10e': ADT/Layoutlib: improved gradient drawing for perf.
| * | | | am 79f05bb4: Merge "ADT/Layoutlib: improved gradient drawing for perf." into ↵Xavier Ducrohet2010-01-141-3/+9
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | eclair Merge commit '79f05bb4a502d5768f84cf975f791f3ba981e0e5' into eclair-plus-aosp * commit '79f05bb4a502d5768f84cf975f791f3ba981e0e5': ADT/Layoutlib: improved gradient drawing for perf.
| | * | | Merge "ADT/Layoutlib: improved gradient drawing for perf." into eclairXavier Ducrohet2010-01-141-3/+9
| | |\ \ \
| | | * | | ADT/Layoutlib: improved gradient drawing for perf.Xavier Ducrohet2010-01-141-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I79b909d7787e4442e7cfdf196de1ac0c077da7f8