579e14016c4a972e70cd2bd0c6d89bbd7e9e941c |
19-Oct-2012 |
Dave Burke <daveburke@google.com> |
Revert "Revert "This restores JB MR0 behavior where the framework throws an exception for improper layouts that are missing layout_width and/or layout_height."" This reverts commit 57fca90ac65ecfe97acd4c93d442c3db8f815e11 Change-Id: I21b007a7d150a4c23f25a706cdba5cb86198198f
ypedArray.java
|
57fca90ac65ecfe97acd4c93d442c3db8f815e11 |
17-Oct-2012 |
Justin Ho <justinho@google.com> |
Revert "This restores JB MR0 behavior where the framework throws an exception for improper layouts that are missing layout_width and/or layout_height." This reverts commit dcf59629beed8182759a1068ab8ee997935bef82 Change-Id: I27426a0ffe993973ffb0b05ce1ed3afe73fcd87d
ypedArray.java
|
dcf59629beed8182759a1068ab8ee997935bef82 |
17-Oct-2012 |
Jim Miller <jaggies@google.com> |
This restores JB MR0 behavior where the framework throws an exception for improper layouts that are missing layout_width and/or layout_height. Revert "Revert "Revert "Fix for bug 6050753.""" This reverts commit 6868d6f349610c15256471cc3d5fa708cbfd5f1d Change-Id: I8843d92dba14c82f06d9ee59517cf11b2abbbf04
ypedArray.java
|
6868d6f349610c15256471cc3d5fa708cbfd5f1d |
16-Oct-2012 |
Mathias Agopian <mathias@google.com> |
Revert "Revert "Fix for bug 6050753."" Emergency revert -- fix reboot loop. This reverts commit 8e63bcc63fd002231f8391af8982eeb235d096c8. Change-Id: I4373b867d756de09cdf6aa0aba9e6ff8f47bcdbc
ypedArray.java
|
8e63bcc63fd002231f8391af8982eeb235d096c8 |
15-Oct-2012 |
Romain Guy <romainguy@google.com> |
Revert "Fix for bug 6050753." This reverts commit c29f031598811486d83f418fd08fbfe1fc41788a.
ypedArray.java
|
fe37f8f51d90fc4c6230e54dcd1270df5fcc6be3 |
30-Sep-2012 |
Dianne Hackborn <hackbod@google.com> |
Work on issue #6949468: android.dpi.cts.ConfigurationScreenLayoutTest... ...#testScreenLayout failures on JO This doesn't actually fix it; I have concluded that the test is broken (the platform is correctly reporting that this is a NOT LONG device because in portrait once you account for the status bar and system bar our size is 880dp high and 600dp wide, which is not enough for us to be in the LONG config). However while working on this I noticed that the code for computing the configuration of the external display was wrong. I have fixed that by putting this code for computing these parts of the configuration in a common place that both the window manager and external display code can use. Change-Id: Ic6a84b955e9ec345a87f725203a29e4712dac0ad
onfiguration.java
|
c36c49ee83123d6083c05a3e333ac43a13f664cd |
30-Sep-2012 |
Craig Mautner <cmautner@google.com> |
Changing debug for b/7094175. Fixes bug 7094175 (but not really). Change-Id: Ice2abb93f479ea0bda931e9643710668c25aa285
esources.java
|
8f301e666873e4a9feaace38a0b184a5f3ce7003 |
19-Sep-2012 |
Craig Mautner <cmautner@google.com> |
Merge "Add debug for b/7094175." into jb-mr1-dev
|
d3d9f3f1004dfee2649a26cfe8dba948cd364904 |
18-Sep-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #7173351 API REVIEW: android.util.LocaleUtil Change-Id: I08fd491eff714059e9ec874fadebe7eb556c34d5
onfiguration.java
|
0cbfcffe7b99eea85dc17e92ef204035fa6fd4f9 |
18-Sep-2012 |
Craig Mautner <cmautner@google.com> |
Add debug for b/7094175. Change-Id: Iec83b9350bfeb804dfe3da25986138c2dbaa6d45
esources.java
|
6543c292b2d1cb3547f4565f89b7cb649ad955d6 |
07-Sep-2012 |
Romain Guy <romainguy@google.com> |
Merge "The drawables cache strikes again Bug #7117785" into jb-mr1-dev
|
5f49c3023a512efbef8bc9515d310c7a72be4af2 |
07-Sep-2012 |
Romain Guy <romainguy@google.com> |
The drawables cache strikes again Bug #7117785 Draawables created from the ConstantState cache found in Resources must be mutated before they can be safely modified by apps. Failure to do so results in all drawables sharing the same constant state to be affected by the modification. In the case of the bugreport above, the status bar code plays tricks with a background drawable and modifies its color to implement a fade in/out effect. This drawable comes from a cached resource (color 0x0) and the modifications made by the status bar apply to other clients of this drawable, most notably the recents panel. This change fixes several things: - Simplifies colors caching by removing the assetCookie from the key. This should result in better reuse of cached drawables - Makes View.setBackgroundColor() honor the mutate() contract - Ensure StateListDrawable properly mutates its children before modifying them - Optimize Bitmap/ColorDrawable to mark them mutated when they are not created from an existing ConstantSate. The same optimization should be applied to other drawables in the future Change-Id: I54adb5d5b914c7d8930bf9b46f7e3f9dcbf4bcab
esources.java
|
8a802dbdabdfd27692c2e38b2c3adafe95566106 |
05-Sep-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Use "ldrtl" and "ldltr" config qualifiers for RTL / LTR resources - we cannot use "rtl" / "ltr" qualifiers as they can conflict with ISO-639 Alpha-3 codespace which uses 3 letters for identifying a language code (and could use either "rtl" or "ltr" strings for defining a language in the future). - we are using instead "ldrtl" for RTL and "ldltr" for LTR resources. Those qualifiers are defined by more than 3 chars and outside of what is defined into ISO-639. They are also more understandable as "ld" prefix is for "layoutdirection" Change-Id: Id43e948103707e09bef63ebd54ac1779dde58e72
onfiguration.java
|
5f7979993979466c79ab4f38d83c6f2aca361662 |
16-Jun-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Add support for "-rtl" in resources - fix bug #7035019 Need to have "-rtl" support for Resource Change-Id: Ic82145c2ac672729d8a6c695a5f343276a1a0a2c
onfiguration.java
esources.java
|
34743ac7d688a7ecf4daec84078fc7ec74a6dac9 |
15-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
Merge "Add API to create new contexts with custom configurations." into jb-mr1-dev
|
756220bd1912535840388a6743830d2e59ad4964 |
15-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
Add API to create new contexts with custom configurations. This allows you to, say, make a Context whose configuration is set to a different density than the actual density of the device. The main API is Context.createConfigurationContext(). There is also a new API on ContextThemeWrapper that allows you to apply an override context before its resources are retrieved, which addresses some feature requests from developers to be able to customize the context their app is running in. Change-Id: I88364986660088521e24b567e2fda22fb7042819
onfiguration.java
esources.java
|
a5d1dc9d0322d2c7b7d7f13816fd551a7042c2a3 |
14-Aug-2012 |
Scott Main <smain@google.com> |
am bd63fb87: am 6958c161: Merge "docs: misc bug fixes from external issues" into jb-dev * commit 'bd63fb875c49d69d5969df35ae159bd17cadb730': docs: misc bug fixes from external issues
|
183bf116978e3c44292c9ead2bceb47e972624a1 |
14-Aug-2012 |
Scott Main <smain@google.com> |
docs: misc bug fixes from external issues Change-Id: I380b65341200c0519a93e2f8969f70f64aec0264
esources.java
ypedArray.java
|
dde331cebd87982faded6818ad5f9927ff994c96 |
03-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
We can now (kind-of) change screen density on the fly. Preloaded drawables now have a density associated with them, so we can load the correct drawable if we are using a different density. Window manager now formally keeps track of the density for each screen, allowing it to be overridden like you can already do with size, and relies on this density to drive itself internally and the configurations it reports. There are a new set of Bitmap constructors where you provide a DisplayMetrics so they can be constructed with the correct density. (This will be for when you can have different windows in the same app running at different densities.) ActivityThread now watches for density changes, and pushes them to the DENSITY_DEVICE and Bitmap global density values for that process. A new am command allows you to change the density.
esources.java
|
908aecc3a63c5520d5b11da14a9383f885b7d126 |
01-Aug-2012 |
Dianne Hackborn <hackbod@google.com> |
Start moving away from DisplayMetrics.DENSITY_DEVICE. This puts in most of the infrastructure needed to allow us to switch between different densities at run time. The main remaining uses of the global are to initialize the Bitmap object (not sure what to do about that since it doesn't have anything passed in the constructor to get this information from), and being able to load drawables if we need a different density than what was preloaded by zygote. Change-Id: Ifdbfd6b7a5c59e6aa22e63b95b78d96af3d96848
ompatibilityInfo.java
onfiguration.java
esources.java
|
adba6ffbb949e3644f0effdaffee349b0b49688a |
22-Jun-2012 |
Scott Main <smain@google.com> |
am 101a120c: am 9be0105f: docs: fix several links * commit '101a120c27f68fb7d44e6221244cb9441dfc4285': docs: fix several links
|
9be0105fbc56eb1b1813bb7c5fe258a144867a43 |
22-Jun-2012 |
Scott Main <smain@google.com> |
docs: fix several links Change-Id: I89d9fd64dc22c90680bb05415cc966c255165af9
ackage.html
|
0597161ee43cfaa7dbe14691a134fb358a00317a |
31-May-2012 |
Philip Milne <pmilne@google.com> |
Merge "Fix for bug 6050753."
|
fb5c3dba4ddac023cfd4cdcabdfdbcf343197c94 |
19-May-2012 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #6440173: MenuItem.setIcon(Drawable) scaling incorrectly... ...when resource is aliased We were not correctly using the final resolved configuration when retrieving a drawable through Resources.getDrawable(). (It already does the correct behavior when going through TypedArray.getDrawable()). Change-Id: I9032b788b592412178e31e2e6b0181b92c20fe45
esources.java
|
0cf2c8a53350a800055e76c1c9bf0a6d44480768 |
18-May-2012 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #6515427: Add android.hardware.television and fix... ...logic for notouch in Configuration Added new TELEVISION feature. We now force the configuration to "television" if the TELEVISION feature is set, and "notouch" if the TOUCHSCREEN feature is not set. Also cleaned up documentation, deprecated some configurations that are not used. Change-Id: If1c7a284b580a8a66bda2a75f0c7fa841b3dc9b7
onfiguration.java
|
af67fc65bf113b028ff33e71cd6a45810018c273 |
08-May-2012 |
Jeff Brown <jeffbrown@google.com> |
Check for null fd when constructing AssetFileDescriptor. An AssetFileDescriptor with a null fd is pretty useless and should never happen during normal operation. It can't even be parcelled without hitting an NPE. To make it easier to find bugs where a null fd might have been generated, check at construction time. Bug: 5655036 Change-Id: I1da6dbee0cab9c11e309f3cebe698bf44dc5e27d
ssetFileDescriptor.java
|
5d911c3a95cf4db4cf1cc0c8d4d253553d50c550 |
13-Apr-2012 |
Romain Guy <romainguy@google.com> |
Properly cache color state lists. Clobbering the typed value's cookie with the alpha channel is not okay. Change-Id: Ia75481be06699b42f80eb4c59672c6cd6cf8c0a8
esources.java
|
3fb824bae3322252a68c1cf8537280a5d2bd356d |
29-Feb-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #5217606 LocaleUtils constants TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE and TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE should be renamed - replace them by the View constants Change-Id: I7c2bf0213319247d3db369b6f7c36771fdf3e509
onfiguration.java
|
c29f031598811486d83f418fd08fbfe1fc41788a |
23-Feb-2012 |
Philip Milne <pmilne@google.com> |
Fix for bug 6050753. The method: TypedArray: getLayoutDimension(int, String) throws an undocumented exception when either the width and/or height attributes are undefined. See the bug report above for reasons why this was deemed unhelpful both in the tools area and to developers in general. Fix by: 1. Documenting the conditions under which the method raises an exception. 2. Deprecating the method, advising callers to supply a default instead. Additionally, redefine the: ViewGroup: setBaseAttributes(TypedArray, int, int); methods to provide the appropriate defaults in ViewGroup subclasses as advised above. For the platform layouts the default value is WRAP_CONTENT (and is defined in the ViewGroup.LayoutParams class). The special cases are accomodated in LayoutParams subclasses in the following cases: Subclass width height FrameLayout.LayoutParams: MATCH_PARENT, MATCH_PARENT TableLayout.LayoutParams: MATCH_PARENT, WRAP_CONTENT TableRow.LayoutParams: MATCH_PARENT, WRAP_CONTENT Change-Id: I335a3bd8e2d7f7866692898ed73492635a5b61ea
ypedArray.java
|
6c997a9e880e08c354ffd809bd62df9e25e9c4d4 |
31-Jan-2012 |
Dianne Hackborn <hackbod@google.com> |
aapt now sorts the strings in the resource string pool. In our current environment with very many translations, this can save a lot of RAM -- for example over 200K in Gmail just by sorting the strings in the Gmail .apk (not the framework). Also add a new aapt command to print the contents of the resource table string pool. Change-Id: I1da037b3e2c377b890833ff57ab158965314ac48
onfiguration.java
|
32313b161f7c7d17841bf49b3d146fd19dd7fde1 |
10-Jan-2012 |
Dianne Hackborn <hackbod@google.com> |
am d476c8b8: am d3be0a76: Merge "Unhide Resources APIs for getting resources at specific densities." into ics-mr1 * commit 'd476c8b8a8a6fadea7e72426d3e93c4e6b00e543': Unhide Resources APIs for getting resources at specific densities.
|
613989772f7d7f7317349568a4809bf08b942bd7 |
09-Jan-2012 |
Dianne Hackborn <hackbod@google.com> |
Unhide Resources APIs for getting resources at specific densities. This adds Resources.getDrawableForDensity() and Resources.getValueForDensity(). These are needed for applications to correctly retrieve larger icons such as in launcher when running on a tablet. We had already exposed the APIs to tell the application which density to use for app icons on the current device, but didn't unhide these APIs that allowed you to actually retrieve them. This is safe to do without introducing a new API level (as long as we do it soon) because we know these APIs already exist in Android 4.0, and there is no reason for anyone to be removing them when building a device. Change-Id: I5138e5dc908197b66a98d20af73c5374cb5d41d3
esources.java
|
44fcb83b38b062a650ddf556fe7f5e34905df9ea |
15-Dec-2011 |
Joe Onorato <joeo@google.com> |
Add a new ui mode for "appliance" The idea is that this is a device which is more-or-less headless. It might have some limited interaction capabilities, but it's not something that you want to rely on having. Change-Id: Ib92f53a120bf83de781728011721a4859def7d9f
onfiguration.java
|
8f85e80b64b89fd38cc23b129f61ec36ddde7f15 |
15-Dec-2011 |
Romain Guy <romainguy@google.com> |
Generate even fewer GL commands Change-Id: I0f4dcacb03ef5ee7f6ebd501df98bfead5f0a7f8
esources.java
|
60201f2b4ee3fcf222310b5bf91d1d150470cab7 |
12-Nov-2011 |
Christopher Tate <ctate@google.com> |
XML parsing optimizations Traceview showed approximately 10% of total parse time inside the synthetic 'trampoline' methods generated to provide inner classes with access to their outer class's private fields. The bottleneck in this particular case is in XmlBlock and its inner class Parser. Making the bottlneck outer-class members and methods package-scope instead of private removes that 10% overhead being spent within these access trampolines. Traceview tends to overemphasize the significance of very small methods such as these trampolines. That said, the measured speed gain on the ParseLargeXmlResFg op due to this patch is between 5% and 6%. Change-Id: Ia0e3ae5408d1f9992b46e6e30dd2407090379b07
mlBlock.java
|
ab0f485e64418eb22f0a1d89d7064902b381e9c2 |
13-Sep-2011 |
Dianne Hackborn <hackbod@google.com> |
Fix problems where we were allocating TypedArray when not needed. Fixes up some recycling of TypedArray objects to reduce the number we need to allocate during inflation etc. Change-Id: I948dccc052997779001eaa99db2a710b04be01ae
esources.java
|
9b44aaefc0c8c4aafd176c2fe5af86e098422b56 |
03-Sep-2011 |
Dianne Hackborn <hackbod@google.com> |
Some more preloaded drawables. More to come. Change-Id: I28393c6e52553e960d3a765ba793cfdbf36460ff
esources.java
|
7810b5f8cffb3c2c98fd0df579f4da5a9ac6cc73 |
25-Aug-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix bug #5199577 TextView with android:password="true" is showing the "dots" on the left even if the password chars are RTL - force TextView to LOCALE text heuristic when in "password" mode - remove TEXT_LAYOUT_DIRECTION_UNKNOWN_DO_NOT_USE - LocaleUtils.getLayoutDirectionFromLocale() returns "LTR" is locale is NULL or ROOT Change-Id: I182c46aaf2d73c8b18967fffa230bfabec91ed06
onfiguration.java
|
6e90a362bc66cc67b1beae27b21d3f0148403b08 |
15-Aug-2011 |
Adam Powell <adamp@google.com> |
Fix bug 5159736 - Make DeviceDefault the default Have the framework refer to the DeviceDefault themes for ICS apps that don't explicitly request another theme. Change-Id: I27dd0bbaa60f71df4f36e47d260f556d923ba075
esources.java
|
7f9f99ea11051614a7727dfb9f9578b518e76e3c |
11-Aug-2011 |
Xavier Ducrohet <xav@android.com> |
Make some methods/fields package private so that layoutlib can access them. Change-Id: I4aeadfbaf8a4f6a459fa19937c21ac23d9e5fb64
ssetManager.java
esources.java
ypedArray.java
|
2b31d53161789358de57fd396716a6503855c5da |
23-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #4770360: older app compatibility mode is really tiny on ICS phones We were applying the density compat mode scaling multiple times to display metrics, causing bad values. Change-Id: Iafafd9a5e94b9d774cd2715bf968e91602a1bd82
ompatibilityInfo.java
esources.java
|
a47f45e4829f812ff47f9e5c9370b02284d92ae8 |
15-Jun-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Introduce LocalUtil and getLayoutDirectionFromLocale() now use likelySubtags - move code from Configuration to LocaleUtil - move unit tests Change-Id: Ic14b0131894a0c5618f00d4acb3edb0daadefe01
onfiguration.java
|
7a736fbf69dd6f03db968d7d8182024eebc0e508 |
10-Jun-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Update Configuration for renaming and fixes - rename layoutDirection to textLayoutDirection - rename constants for being clear that they cannot be used (work in progress) - fix a few issues concerning default switch case and relation to Locale Change-Id: Icfe9a9b5c0d1c0e28e5a893549b437fc4fa5df82
onfiguration.java
|
f741e679c496f7345304a6543f01d7048e31d1a7 |
10-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
resolved conflicts for merge of e2aa0490 to master Change-Id: Id0448a1598fc93aca0652b29253e02586e35a067
|
7194efd394ce0b38a74bab87206adfd9ff823742 |
09-Jun-2011 |
Fabrice Di Meglio <fdimeglio@google.com> |
Add Configuration.getLayoutDirectionFromLocale() - returns LAYOUT_DIRECTION_UNDEFINED / LAYOUT_DIRECTION_LTR / LAYOUT_DIRECTION_RTL depending on the Locale - add unit tests Change-Id: I4372734eb011cbf6270f39ba815e696b04f2352f
onfiguration.java
|
e2aa04908cfdf65ef309f1491f31a0c8846977ff |
09-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
am a1396dfe: am 02140891: Merge "Work on issue #4518815: Compatibility mode introduces compatibility regression..." into honeycomb-mr2 * commit 'a1396dfe7ad6ec6953f544be42d69d7804ab0fd4': Work on issue #4518815: Compatibility mode introduces compatibility regression...
|
5fd2169eabd77e6bfafaf456e58051a3bafb2bca |
07-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
Work on issue #4518815: Compatibility mode introduces compatibility regression... ...for Market App iRunner There were a lot of serious issues with how we updated (or often didn't update) the display and resource state when switching compatibility mode in conjunction with restarting and updating application components. This addresses everything I could find. Unfortunately it does *not* fix this particular app. I am starting to think this is just an issue in the app. This change does fix a number of other problems I could repro, such as switching the compatibility mode of an IME. Also a few changes here and there to get rid of $#*&^!! debug logs. Change-Id: Ib15572eac9ec93b4b9966ddcbbc830ce9dec1317
ompatibilityInfo.java
onfiguration.java
esources.java
|
ead40eaedb7993ca8c5153c349dd65f276d6862e |
04-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
resolved conflicts for merge of cc20b4e3 to master Change-Id: I990368443a16a0577f7a1f5623b348cca3f81ac4
|
9f2f3752ae26b6812e0ee33a61dd331b0be673c7 |
03-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
am c11f6c3e: am 7cae137e: am 79841acb: Merge "Compatibility mode never needed for normal size screens." into honeycomb-mr2 * commit 'c11f6c3e33c9f1e3964cb2427f82509fc97e3527': Compatibility mode never needed for normal size screens.
|
455591b91311d6959f521fff9acae5a06df442a8 |
03-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
am c691d7f9: am b8d10931: am fd206560: Merge "Forgot this file." into honeycomb-mr2 * commit 'c691d7f9a3621d5ef9b9d48e95c644a318b36322': Forgot this file.
|
50469db07167e3a837e10f215baa4eacb1319604 |
03-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
am 7322e557: am a4cfcf10: am 75d6b3c2: Merge "Fix issue #4502672: Wrong xml resources used for homescreen widgets." into honeycomb-mr2 * commit '7322e557cfe42da42779625d69ced2db74a9df90': Fix issue #4502672: Wrong xml resources used for homescreen widgets.
|
7dad2c24fa7811c115f850fd2a8f2ecc8874061e |
03-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
am 9b94aa18: am e5d37701: am 8ea5e1d7: Fix compat mode bugs when updating apps. * commit '9b94aa18f78e6c6281202e72b5a7451bc479fe82': Fix compat mode bugs when updating apps.
|
0e5e16a656b0002f377f1bcda2e43a97206e4046 |
03-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
am da9837fb: am c058d386: am ff762299: Merge "Small fixes and cleanup of resource config handling." into honeycomb-mr2 * commit 'da9837fb61c8aa53c67921682016d97655332089': Small fixes and cleanup of resource config handling.
|
546d64f56d0f930070289e26021f97638601e388 |
02-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
resolved conflicts for merge of 5c2e4d20 to master Change-Id: Iadbee872468ceafb54c5877046c91f6052f3c953
|
ed60f81940c5f2125518c7c31ad4f61b8a9baf3e |
02-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
resolved conflicts for merge of 76450622 to master Change-Id: I26ccd8f264e65f100d894f43cf597a781552db83
|
cc20b4e31ece564800aa2322efe3ae9da163b570 |
02-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
am a5f88510: am 2969b511: Merge "Add new supports-screen API to set maximum allowed size." into honeycomb-mr2 * commit 'a5f8851019605be26dd9a628280092e27f8a5f31': Add new supports-screen API to set maximum allowed size.
|
2762ff3dc864018352362f6d103de471f9529ba6 |
02-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
Add new supports-screen API to set maximum allowed size. Change-Id: I0a7cd4ba73a4c18558e6daee28963d5fd12c7978
ompatibilityInfo.java
|
c11f6c3e33c9f1e3964cb2427f82509fc97e3527 |
01-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
am 7cae137e: am 79841acb: Merge "Compatibility mode never needed for normal size screens." into honeycomb-mr2 * commit '7cae137ed155f2d311f020bbb3e75730344fd5fc': Compatibility mode never needed for normal size screens.
|
39ec8fb9572b6f7a6c3dbc135f32f2a8cbcd640f |
01-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
Compatibility mode never needed for normal size screens. Change-Id: I3482fa692618b9272e1e19384e766a77f2a53c5d
ompatibilityInfo.java
|
36f80f3a5a3de42d4e7ca4b53d4aa3e567f4df6f |
01-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
resolved conflicts for merge of 590ec479 to master Change-Id: I30503da6a73b9cb15eee66a67c75d50ccdc4b9f0
|
c691d7f9a3621d5ef9b9d48e95c644a318b36322 |
01-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
am b8d10931: am fd206560: Merge "Forgot this file." into honeycomb-mr2 * commit 'b8d109318f6fc88d1a59ca0e6e362963cd06960c': Forgot this file.
|
363456c7249f6545e7bde8134ff2e796c6f4c55f |
01-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
Forgot this file. Change-Id: I8aa457d8d81d283f8cc36f68eca33fcb3a86ccad
ompatibilityInfo.aidl
|
7322e557cfe42da42779625d69ced2db74a9df90 |
01-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
am a4cfcf10: am 75d6b3c2: Merge "Fix issue #4502672: Wrong xml resources used for homescreen widgets." into honeycomb-mr2 * commit 'a4cfcf10cc300a1eb5b2a4254fb7d3190c56c4f1': Fix issue #4502672: Wrong xml resources used for homescreen widgets.
|
2f0b17573d4324832f7a20402a3d2b5920bc4866 |
01-Jun-2011 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #4502672: Wrong xml resources used for homescreen widgets. There was a race in the system process between applying the initial configuration and executing code in higher-level system services like the app widget service that relies on the config. For some reason it starting showing up more after my code changes; it should now be completely fixed. Also fix the activity starting window to run in compatibility mode if its application is going to be in compatibility mode. And some various cleanup and small fixes. Change-Id: I0566933bf1bbb4259c1d99a60c0a3c19af1542e5
ompatibilityInfo.java
onfiguration.java
esources.java
|
9b94aa18f78e6c6281202e72b5a7451bc479fe82 |
28-May-2011 |
Dianne Hackborn <hackbod@google.com> |
am e5d37701: am 8ea5e1d7: Fix compat mode bugs when updating apps. * commit 'e5d377014b04022a04fd0b2b24b343d1e0ec8d2a': Fix compat mode bugs when updating apps.
|
8ea5e1d79eb1f05ee7628b0d45ea8fc8eea5330d |
28-May-2011 |
Dianne Hackborn <hackbod@google.com> |
Fix compat mode bugs when updating apps. No longer accidentally puts an app into compatibility mode. Also various cleanup, freezing screen while switching between modes. Change-Id: Ic1b3958be7800189a93f68e9dee3c5adfc45fe57
ompatibilityInfo.java
|
da9837fb61c8aa53c67921682016d97655332089 |
27-May-2011 |
Dianne Hackborn <hackbod@google.com> |
am c058d386: am ff762299: Merge "Small fixes and cleanup of resource config handling." into honeycomb-mr2 * commit 'c058d38602a1ffe00e14b4ab32c876c252eabe6d': Small fixes and cleanup of resource config handling.
|
3904d03dd01dcd43c446744e44b34615825d9679 |
27-May-2011 |
Dianne Hackborn <hackbod@google.com> |
Small fixes and cleanup of resource config handling. Change-Id: I402c31b68f2b4825cb4c610a65ee8e1da471c7bb
esources.java
|
5c2e4d20df934728f39312741ef3390fd87795ce |
27-May-2011 |
Dianne Hackborn <hackbod@google.com> |
am 8fcbfb52: am 94250ac6: Merge "Add new supports-screens attributes for declaring the compatible screens." into honeycomb-mr2 * commit '8fcbfb52607263754b6d3895a112f792c5c3a12e': Add new supports-screens attributes for declaring the compatible screens.
|
df6e980e3f63eb0f6f9eb437fa925d5009cd9c44 |
26-May-2011 |
Dianne Hackborn <hackbod@google.com> |
Add new supports-screens attributes for declaring the compatible screens. Change-Id: I40d57e4354e48accc1027c9f90916ea73eb5190d android:requiresSmallestWidthDp provides the smallest supported width. android:compatibleWidthLimitDp provides the largest compatible width.
ompatibilityInfo.java
|
76450622f08b1d0d09df7f1ad8e52afe01090770 |
26-May-2011 |
Dianne Hackborn <hackbod@google.com> |
am d5238cc1: am 7a09f72b: Merge "Rework how we decide whether to use system or status bar." into honeycomb-mr2 * commit 'd5238cc1ab8366389b2aada228f2f2e5cbb3244e': Rework how we decide whether to use system or status bar.
|
590ec479fd51e13d077212833e2ac4f848a49cc3 |
26-May-2011 |
Dianne Hackborn <hackbod@google.com> |
am 80ef2a97: am 42f8094c: Merge "Spiffy new compatibility mode UI." into honeycomb-mr2 * commit '80ef2a9745e6103efd9698577536bbfed1fd74f6': Spiffy new compatibility mode UI.
|
81e56d535c853d73ff537357da5b935f51cb779d |
26-May-2011 |
Dianne Hackborn <hackbod@google.com> |
Rework how we decide whether to use system or status bar. The PhoneWindowManager is now responsible for determing this, since it needs to do this before we can generate the configuration since we need to take into account the system bar size we will use. Also the Display should now report the screen height without including the system bar. Change-Id: I82dfcc5e327e4d13d82c373c6c870f557a99b757
ompatibilityInfo.java
|
36cd41f8efa6f6a683d3353d309ff548295af9e9 |
26-May-2011 |
Dianne Hackborn <hackbod@google.com> |
Spiffy new compatibility mode UI. Change-Id: I1207eaafae59a434fcc979ad60a83e2d685288af
ompatibilityInfo.java
|
fee1c69a49d03b651e481983432ade94fc07650a |
26-May-2011 |
Dianne Hackborn <hackbod@google.com> |
resolved conflicts for merge of 77dd616e to master Change-Id: Idb7180177b01e7d822327ccc7c76617220860da2
|
77dd616e685e2671491d911d0847efa4f832717e |
25-May-2011 |
Dianne Hackborn <hackbod@google.com> |
am 00b3a5c6: am c404e9b2: Merge "More compatibility mode improvements." into honeycomb-mr2 * commit '00b3a5c65e6ef26056178d1d7473b921671752e9': More compatibility mode improvements.
|
5be8de3420ba4c9d816b98e29bdec11715f6b626 |
25-May-2011 |
Dianne Hackborn <hackbod@google.com> |
More compatibility mode improvements. We now correctly adjust display metrics, fixing for example issues seen in Barcode Scanner. In addition the decision about when to use compatibility mode has a bug fixed where certain apps would not go out of compatibility mode even though they should be able to. Change-Id: I5971206323df0f11ce653d1c790c700f457f0582
ompatibilityInfo.java
onfiguration.java
esources.java
|
e2c7715c772d5121397591b532d04a31b3ffcc99 |
24-May-2011 |
Dianne Hackborn <hackbod@google.com> |
resolved conflicts for merge of bbca8133 to master Change-Id: I81493674dceab848e41d380a77a37e5a9be06db6
|
bbca81334e3603c7328dc526bd63032b23d5261d |
24-May-2011 |
Dianne Hackborn <hackbod@google.com> |
am 4bb78889: am 40277df7: Merge "Add "television" mode." into honeycomb-mr2 * commit '4bb78889d04594c01a6af7f6d38c1764e9f575f9': Add "television" mode.
|
e360bb6bd8ea84b8d37604fc11dfc744b18fb0de |
21-May-2011 |
Dianne Hackborn <hackbod@google.com> |
Add "television" mode. Change-Id: Ida1fdb61b036a8b489dbeda196fb4bc82e651b2b
onfiguration.java
|
161e67ff3ba26408eea09221734ad2e29a1eed11 |
20-May-2011 |
Dianne Hackborn <hackbod@google.com> |
resolved conflicts for merge of 06a8ceac to master Change-Id: Id51574c825affddfac14ad7214c5496d6a3d6e69
|
06a8ceacb0dc2713cb0bb2c93d2a750f2a58db68 |
20-May-2011 |
Dianne Hackborn <hackbod@google.com> |
am c851ea56: am 69cb8757: Add new "-swNNNdp" resource qualifier. * commit 'c851ea5672f6e042c2e89b2a2ce4a2467e1fcd2a': Add new "-swNNNdp" resource qualifier.
|
69cb87576ba163b61bb0e6477a3b7c57a9b11d40 |
20-May-2011 |
Dianne Hackborn <hackbod@google.com> |
Add new "-swNNNdp" resource qualifier. Change-Id: I0101e88ca9d8d44138bdcaf571f24b0352f4f6ce
ssetManager.java
onfiguration.java
esources.java
|
63446167b9d6d9ed3410320d17e8fe816caf6c42 |
16-May-2011 |
Dianne Hackborn <hackbod@google.com> |
am fddd927f: am 9d0f2c6d: Merge "DO NOT MERGE: From master -- Fix bug in deciding which rotation to use for an orientation." into honeycomb-mr2 * commit 'fddd927fb78bb206287203f4f447a416b525115a': DO NOT MERGE: From master -- Fix bug in deciding which rotation to use for an orientation.
|
29735689cea7bf52998c1911542dcfdd1c1d9628 |
22-Apr-2011 |
Dianne Hackborn <hackbod@google.com> |
DO NOT MERGE: From master -- Fix bug in deciding which rotation to use for an orientation. Change-Id: Ie271123271a662f3f753f381ce4c43ad7904dc4a
onfiguration.java
|
fbdf9df053800afb25453630d11bd48cbc068271 |
16-May-2011 |
Dianne Hackborn <hackbod@google.com> |
am 2a20583a: am 700ab1c7: Merge "DO NOT MERGE. Integrate from master: Improve activity manager debug dumps." into honeycomb-mr2 * commit '2a20583a5f436d66ab73cd6c0fdc73e59a3cecad': DO NOT MERGE. Integrate from master: Improve activity manager debug dumps.
|
9a84983a9fd9959671e102045eaf185b83291269 |
08-Apr-2011 |
Dianne Hackborn <hackbod@google.com> |
DO NOT MERGE. Integrate from master: Improve activity manager debug dumps. Activity manager now does all dump requests into apps asynchronously, so it can nicely timeout if there is an app problem. Also lots of general cleanup of the am dump output. Change-Id: I99447b87f77a701af52aeca984d93dfe931f065d
onfiguration.java
|
2e4a3236a7634d17f89288e9739a438ecbea0471 |
13-May-2011 |
Dianne Hackborn <hackbod@google.com> |
am 46a282f3: am 0ed2e845: Merge "DO NOT MERGE. Integrate add new screen width/height in "dp" configs." into honeycomb-mr2 * commit '46a282f323bc05606e4fe1eba795bd9ac7c99819': DO NOT MERGE. Integrate add new screen width/height in "dp" configs.
|
ebff8f92f13513ce37bd74759eb1db63f2220590 |
13-May-2011 |
Dianne Hackborn <hackbod@google.com> |
DO NOT MERGE. Integrate add new screen width/height in "dp" configs. You can now specify resource configuration variants "wNNNdp" and "hNNNdp". These are the minimum screen width/height in "dp" units. This allows you to do things like have your app adjust its layout based only on the about of horizontal space available. This introduces a new configuration change flag for screen size. Note that this configuration change happens each time the orientation changes. Applications often say they handle the orientation change to avoid being restarted at a screen rotation, and this will now cause them to be restarted. To address this, we assume the app can handle this new config change if its target SDK version is < ICS. Change-Id: I4acb73d82677b74092c1da9e4046a4951921f9f4
ssetManager.java
onfiguration.java
esources.java
|
3d0724dc220a2e027b9e38f61c39c84c28a505d5 |
13-May-2011 |
Dianne Hackborn <hackbod@google.com> |
resolved conflicts for merge of 0e59729b to master Change-Id: I2d3a6bddf66b1df0c101c45ea2fec1cf65caf01b
|
0e59729b104e48c7d935026f565c4b45f1f37d12 |
13-May-2011 |
Dianne Hackborn <hackbod@google.com> |
am 97280816: am 0f1de9ad: New compat mode front end: UI and persistence. * commit '972808164adde6c0784e9c836d06219a9cf7eb7f': New compat mode front end: UI and persistence.
|
0f1de9adde0b52d2a385a76232bd7ac30c3eeea2 |
12-May-2011 |
Dianne Hackborn <hackbod@google.com> |
New compat mode front end: UI and persistence. Adds a really crappy UI for toggling compat mode. Persists compat mode selection across boots. Turns on compat mode by default for newly installed apps. Change-Id: Idc83494397bd17c41450bc9e9a05e4386c509399
ompatibilityInfo.java
|
aa9d84c37e05f696ec158dac98ce38cf41e18314 |
10-May-2011 |
Dianne Hackborn <hackbod@google.com> |
resolved conflicts for merge of 05be6d6f to master Change-Id: Ic6a6c5bb300f6f1d43f9ed550b284282b4f16212
|
05be6d6fe09ddfb706d1bef3b20c3d37f45e3c8a |
10-May-2011 |
Dianne Hackborn <hackbod@google.com> |
am 4907d1d5: am 0c6cbf41: Merge "Better compat mode part one: start scaling windows." into honeycomb-mr2 * commit '4907d1d5e2c7d244b07579b8c52153df69754e85': Better compat mode part one: start scaling windows.
|
e2515eebf42c763c0a2d9f873a153711778cfc17 |
28-Apr-2011 |
Dianne Hackborn <hackbod@google.com> |
Better compat mode part one: start scaling windows. First step of improving app screen size compatibility mode. When running in compat mode, an application's windows are scaled up on the screen rather than being small with 1:1 pixels. Currently we scale the application to fill the entire screen, so don't use an even pixel scaling. Though this may have some negative impact on the appearance (it looks okay to me), it has a big benefit of allowing us to now treat these apps as normal full-screens apps and do the normal transition animations as you move in and out and around in them. This introduces fun stuff in the input system to take care of modifying pointer coordinates to account for the app window surface scaling. The input dispatcher is told about the scale that is being applied to each window and, when there is one, adjusts pointer events appropriately as they are being sent to the transport. Also modified is CompatibilityInfo, which has been greatly simplified to not be so insane and incomprehendible. It is now simple -- when constructed it determines if the given app is compatible with the current screen size and density, and that is that. There are new APIs on ActivityManagerService to put applications that we would traditionally consider compatible with larger screens in compatibility mode. This is the start of a facility to have a UI affordance for a user to switch apps in and out of compatibility. To test switching of modes, there is a new variation of the "am" command to do this: am screen-compat [on|off] [package] This mode switching has the fundamentals of restarting activities when it is changed, though the state still needs to be persisted and the overall mode switch cleaned up. For the few small apps I have tested, things mostly seem to be working well. I know of one problem with the text selection handles being drawn at the wrong position because at some point the window offset is being scaled incorrectly. There are probably other similar issues around the interaction between two windows because the different window coordinate spaces are done in a hacky way instead of being formally integrated into the window manager layout process. Change-Id: Ie038e3746b448135117bd860859d74e360938557
ompatibilityInfo.java
onfiguration.java
esources.java
|
b7642cbae40aa6b1c54e5b39ed046f7f52e327d9 |
26-Apr-2011 |
Jean-Baptiste Queru <jbq@google.com> |
am 31418a1e: am 45e13ec1: am 5fcfce96: am 4b72eec3: Merge "Re-assingning local variable if mStringBlocks was initialized here. NPE is thrown otherwise." * commit '31418a1e9b905593587d8bf7a4705429db549d97': Re-assingning local variable if mStringBlocks was initialized here. NPE is thrown otherwise.
|
31418a1e9b905593587d8bf7a4705429db549d97 |
26-Apr-2011 |
Jean-Baptiste Queru <jbq@google.com> |
am 45e13ec1: am 5fcfce96: am 4b72eec3: Merge "Re-assingning local variable if mStringBlocks was initialized here. NPE is thrown otherwise." * commit '45e13ec1c5cd765162b7450b1c3a4632e8979894': Re-assingning local variable if mStringBlocks was initialized here. NPE is thrown otherwise.
|
9d13264f6b5818812e61d66baaada599b8ad1faf |
22-Apr-2011 |
Dianne Hackborn <hackbod@google.com> |
Fix bug in deciding which rotation to use for an orientation. Change-Id: Icc928c2188a5865035cafcdab2efd5bae3132b1f
onfiguration.java
|
52c03d2cb9a782366e804d1910a7c8f072b05353 |
21-Apr-2011 |
Scott Main <smain@google.com> |
am a23ae0d7: am 69ccfd7a: am ca7f30eb: am b8a57841: Merge "docs: add a little info to Configuration class description" into honeycomb * commit 'a23ae0d7be890b7590a87891b894a30f25bbd3ef': docs: add a little info to Configuration class description
|
ca7f30ebb20dcf4c056f57a8c4ab3342cafaed83 |
21-Apr-2011 |
Scott Main <smain@google.com> |
am b8a57841: Merge "docs: add a little info to Configuration class description" into honeycomb * commit 'b8a57841316171d6db4311a65914720213516153': docs: add a little info to Configuration class description
|
63848e3df3a87c111617a81ff3e1f2685de7b031 |
21-Apr-2011 |
Scott Main <smain@google.com> |
docs: add a little info to Configuration class description Change-Id: I3278759bd1c323330c1143ef71d0644872caa085
onfiguration.java
|
41a5ed7cd9f56d955a797a485c11ae5e7ccfb094 |
19-Apr-2011 |
Jozef BABJAK <jozef.babjak@gmail.com> |
Re-assingning local variable if mStringBlocks was initialized here. NPE is thrown otherwise. Change-Id: Ic8648aa5ae6a61348803171243c1c217feb058ec
ssetManager.java
|
43a17654cf4bfe7f1ec22bd8b7b32daccdf27c09 |
07-Apr-2011 |
Joe Onorato <joeo@google.com> |
Remove the deprecated things from Config.java. These haven't been working since before 1.0. Change-Id: Ic2e8fa68797ea9d486f4117f3d82c98233cdab1e
ssetManager.java
tringBlock.java
|
e17aeb31030cfeed339a39a107912ad5e9178390 |
08-Apr-2011 |
Dianne Hackborn <hackbod@google.com> |
Improve activity manager debug dumps. Activity manager now does all dump requests into apps asynchronously, so it can nicely timeout if there is an app problem. Also lots of general cleanup of the am dump output. Change-Id: Id0dbccffb217315aeb85c964e379833e6aa3f5af
onfiguration.java
|
3fc982f41fda1f254bfbc35490d81cd82a0ed90a |
31-Mar-2011 |
Dianne Hackborn <hackbod@google.com> |
Add new resource configurations for screen width/height in "dp". You can now specify resource configuration variants "wNNNdp" and "hNNNdp". These are the minimum screen width/height in "dp" units. This allows you to do things like have your app adjust its layout based only on the about of horizontal space available. This introduces a new configuration change flag for screen size. Note that this configuration change happens each time the orientation changes. Applications often say they handle the orientation change to avoid being restarted at a screen rotation, and this will now cause them to be restarted. To address this, we assume the app can handle this new config change if its target SDK version is < ICS. Change-Id: I22f8afa136b4f274423978c570fa7c9855040496
ssetManager.java
onfiguration.java
esources.java
|
2f98f2670828a42ef93fe782b5be82b1dfeba6ce |
29-Mar-2011 |
Dianne Hackborn <hackbod@google.com> |
Expand screen documentation with explicit screen size dimensions. This updates the various documentation on screen sizes to discuss the exact screen dimensions that are now associated with each size. In addition, the screen sizes vs. densities table is updated to include a number of additional representative screens. Change-Id: Id07491148b1857e0265cef7139e564e190f38e03
onfiguration.java
|
179a3bda60044cf191ce9f47e3349398fc32bafb |
18-Feb-2011 |
Jesse Wilson <jessewilson@google.com> |
Save a few bytes on the zygote heap. The default LongSparseArray constructor builds two 10-element arrays that we don't need. Change-Id: I83ef4fbd8825109087cbe8990ad66d79eab33e5c
esources.java
|
1368454815aaf793fe32ba32473fd11cf7b02e0d |
31-Jan-2011 |
Dianne Hackborn <hackbod@google.com> |
am e6c6b760: DO NOT MERGE Fix issue #3408542: "resizeable" attribute required to get out of compat mode * commit 'e6c6b760eb0c1068fdfa656007ec27e482313b58': DO NOT MERGE Fix issue #3408542: "resizeable" attribute required to get out of compat mode
|
e6c6b760eb0c1068fdfa656007ec27e482313b58 |
31-Jan-2011 |
Dianne Hackborn <hackbod@google.com> |
DO NOT MERGE Fix issue #3408542: "resizeable" attribute required to get out of compat mode The "resizeable" attribute of supports-screens was never well documented, so many apps don't set it. Assuming that if they are explicitly saying they support large or xlarge screens then they are also implying that they are resizeable. Change-Id: Ibce45539d8910dfddb4f548da5464b31ac4a3a89
ompatibilityInfo.java
|
2bfa2ea1ecc538bef44ff2a7da1e2db149fd9970 |
31-Jan-2011 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #3408542: "resizeable" attribute required to get out of compat mode The "resizeable" attribute of supports-screens was never well documented, so many apps don't set it. Assuming that if they are explicitly saying they support large or xlarge screens then they are also implying that they are resizeable. Change-Id: Iaa1ad431c9868254af7581499477bff98ed109e5
ompatibilityInfo.java
|
f4f05b8f24183b9e0d6959fe8b71fb88543edd9b |
07-Jan-2011 |
Scott Main <smain@google.com> |
Update package descriptions with editorial revisions. Notably, this removes exessive info about resources from the content package, because it's not a good location and the info is avilable in the dev guide, but also added some of the info to the Resources class description. Change-Id: Ie78af26c9cec66314deb98e53078f48e16c08e70
esources.java
ackage.html
|
5cdf07524132722e0db69db1ca8dcaf3f0073265 |
17-Jan-2011 |
Jeff Brown <jeffbrown@google.com> |
Merge "Support non-rectangular input regions." into honeycomb
|
fbf097732137a32930d151f7ba6816a5b870c32a |
16-Jan-2011 |
Jeff Brown <jeffbrown@google.com> |
Support non-rectangular input regions. This enables the system bar to carve out a region through which events will be sent to the IME behind it. Bug: 3238092 Change-Id: I69b855a8d9b5b3ee525266c0861826e53e5b5028
ompatibilityInfo.java
|
3b81bc18bb661c02ad8074c39dab16644c1e65d0 |
15-Jan-2011 |
Dianne Hackborn <hackbod@google.com> |
Add manifest API to request a large heap. You can now do android:largeHeap="true" on an application. Doesn't yet do anything, waiting for Dalvik API. Also tweak package parsing so that the SDK API level is set in the configuration, allowing manifest resource value selection based on that. Change-Id: I6e035f9702a97b055416743b88f83a22ba4a9584
esources.java
|
6efd2bad954e0e5bd74916a32f036a0f149dcd4d |
13-Jan-2011 |
Christopher Lais <chris+android@zenthought.org> |
Don't drop the drawable cache completely on configuration change There was a lot of fancy code just above the clear to ensure that drawables that aren't affected by the change are kept, then the entire array was cleared. This patch removes the clear, so that the drawables that haven't changed are really kept, matching the logs, comments and larger part of the code. This patch also fixes the various constant states to return correct ChangingConfigurations. Change-Id: Ic11f6179537318d3de16dc58286989eb62a07f15 Old-Change-Id: I22495e6ed232dfe056207ce5155405af1fa82428
esources.java
|
d922ae01ca99a2b6d39a9393f86776a1d10ebd14 |
14-Jan-2011 |
Dianne Hackborn <hackbod@google.com> |
Add Holo theme for IMEs. Also clean up theme selection code to get rid of duplication. Change-Id: Idf7b21db70ee83fce24756ead877169bd08b77a9
esources.java
|
8d71769b9bc3d0e72b26217d9059ce4473a91fe5 |
13-Jan-2011 |
Christopher Lais <chris+android@zenthought.org> |
Don't drop the drawable cache completely on configuration change There was a lot of fancy code just above the clear to ensure that drawables that aren't affected by the change are kept, then the entire array was cleared. This patch removes the clear, so that the drawables that haven't changed are really kept, matching the logs, comments and larger part of the code. This patch also fixes the various constant states to return correct ChangingConfigurations. Change-Id: Ic11f6179537318d3de16dc58286989eb62a07f15 Old-Change-Id: I22495e6ed232dfe056207ce5155405af1fa82428
esources.java
|
212799338d7be336e73eb65de3dcd0338a705a11 |
02-Dec-2010 |
Bjorn Bringert <bringert@android.com> |
Only decrement mRemaining once in read(). In the old code AssetFileDescriptor.AutoCloseInputStream.read() called super.read(), which calls read(byte[] buffer, int offset, int count), which decrements mRemaining. Then read() decremented mRemaining again after super.read() returned. I'm extending the CTS tests for AssetFileDescriptor.AutoCloseInputStream to cover this. Bug: 3240844 Change-Id: I70b945abc773d3ce5c1317dad23a0d797b31f111
ssetFileDescriptor.java
|
7d3a5bcf300aea7bffb1d46f28e244ca807f5e82 |
30-Nov-2010 |
Dianne Hackborn <hackbod@google.com> |
Auto-show IME for dialogs on large screens. On a large screen the IME is not going to as significantly cover a pan & scan window, so allow it to auto-show if the app hasn't otherwise specified its visibility. Also some fixes here and there. Change-Id: I10227ec59c43454e06e6870633f53426f4d78b83
onfiguration.java
|
711e62a84fe6e127592fb14642e9d08cf25a5b75 |
30-Nov-2010 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #3225529: AlertDialogs are squishing their content views ViewRoot is now smarter about measuring WRAP/WRAP windows. Change-Id: I690fc78ddbe252d7c8070edb8e7352aec6c67ce9
onfiguration.java
|
33710fc4a95df602cffc338fdfe79e27eaea4f06 |
19-Nov-2010 |
Brad Fitzpatrick <bradfitz@android.com> |
am 096c4c44: am 251384a7: Merge "Improve performance when getting styled string." * commit '096c4c448d8110c21108f2db4a19a85099e78557': Improve performance when getting styled string.
|
096c4c448d8110c21108f2db4a19a85099e78557 |
19-Nov-2010 |
Brad Fitzpatrick <bradfitz@android.com> |
am 251384a7: Merge "Improve performance when getting styled string." * commit '251384a7595022ddbc53f4ab0fa386f9c040f1f5': Improve performance when getting styled string.
|
ac4a181d2e02f2dd375c61ce231d35e50d0d1836 |
18-Nov-2010 |
Peter Eliasson <peter.eliasson.x@sonyericsson.com> |
Improve performance when getting styled string. The style used in the composing text for input methods takes a long time to create. This is experienced as a lag when composing the first word. The bottleneck lies in the 10 calls to nativeIndexOfString which does a linear search through thousands of strings. Change-Id: I3184b2be3673d384cca19e9a70ad94b4d3085576
tringBlock.java
|
55fc850cf992cdcb0993cb109d2f716613c0dbdd |
28-Oct-2010 |
Kenny Root <kroot@google.com> |
Add path to get different DPI drawables Allow a caller to request a different density than their current display allows. This can mean a device displaying mdpi can get a resource that's in hdpi and have it pretend to be in mdpi resolution. If a drawable that's returned is not in the requested density, it will set it at the appropriate density to be scaled up later on. The API for this is hidden currently. Bug: 3134688 Change-Id: I6c3908cbdef4907b8d3f1576df9e3b0e7af1755a
ssetManager.java
esources.java
|
ae5ace55d9fc45bc11608c9fb59c9ee884fd9ea6 |
28-Oct-2010 |
Jeff Hamilton <jham@android.com> |
am bd8ff5b5: Merge "DO NOT MERGE. Fix asset file descriptor for pipe based fds." into gingerbread * commit 'bd8ff5b5d4f4c74889ce20a0c7a2f8e0ab7b6ea9': DO NOT MERGE. Fix asset file descriptor for pipe based fds.
|
145fe77dbf930761ccc8617f93014bf88afc7140 |
28-Oct-2010 |
Jeff Hamilton <jham@android.com> |
DO NOT MERGE. Fix asset file descriptor for pipe based fds. Change-Id: Ic366d01f91017109abfcfa65bd2231dd7416ce71
ssetFileDescriptor.java
|
9c7489f8bdcd08990c44250cbad64399badc72be |
22-Oct-2010 |
Dianne Hackborn <hackbod@google.com> |
am 38993d8d: Merge "Fix issue #3122240: Expose xlarge in GB." into gingerbread
|
5383f502e4479d117c89666fb2ee1ca53f3d27cf |
22-Oct-2010 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #3122240: Expose xlarge in GB. Plus some other small API cleanup. Change-Id: I1a3c60f510f99224cccac9cc3f838f04141064f8
onfiguration.java
|
fcab0f5502410b975afe045354bbae31ccba68a5 |
15-Oct-2010 |
Kenny Root <kroot@google.com> |
am 8fda1636: am bdf8034c: Merge "OBB: use PBKDF2 for key generation." into gingerbread Merge commit '8fda1636e3e35f060b9046294efd3c062a1fdb84' * commit '8fda1636e3e35f060b9046294efd3c062a1fdb84': OBB: use PBKDF2 for key generation.
|
8fda1636e3e35f060b9046294efd3c062a1fdb84 |
14-Oct-2010 |
Kenny Root <kroot@google.com> |
am bdf8034c: Merge "OBB: use PBKDF2 for key generation." into gingerbread Merge commit 'bdf8034c657147226b2390eef113ff841e0d6065' into gingerbread-plus-aosp * commit 'bdf8034c657147226b2390eef113ff841e0d6065': OBB: use PBKDF2 for key generation.
|
3b1abba6bbc895d63da3e82e9b158c01bd12eddd |
14-Oct-2010 |
Kenny Root <kroot@google.com> |
OBB: use PBKDF2 for key generation. Switch to using PBKDF2 for the key generation for OBBs. Any previously generated OBBs will stop being read correctly. A small pbkdf2gen program is available to allow generation of appropriate keys with the salts. Bug: 3059950 Change-Id: If4305c989fd692fd1150eb270dbf751e09c37295
bbInfo.java
|
9e95468bbb4b4cb48d817cee2960681aa876b12a |
01-Oct-2010 |
Kenny Root <kroot@google.com> |
am 6ce5f60c: am 38cf8867: Remove OBBs from state list when volume unmounted Merge commit '6ce5f60c791401ed0faf5d36baf4fc6612358676' * commit '6ce5f60c791401ed0faf5d36baf4fc6612358676': Remove OBBs from state list when volume unmounted
|
6ce5f60c791401ed0faf5d36baf4fc6612358676 |
01-Oct-2010 |
Kenny Root <kroot@google.com> |
am 38cf8867: Remove OBBs from state list when volume unmounted Merge commit '38cf8867a8d3e8d5159abd0bd0e6a3b0b8348b94' into gingerbread-plus-aosp * commit '38cf8867a8d3e8d5159abd0bd0e6a3b0b8348b94': Remove OBBs from state list when volume unmounted
|
38cf8867a8d3e8d5159abd0bd0e6a3b0b8348b94 |
26-Sep-2010 |
Kenny Root <kroot@google.com> |
Remove OBBs from state list when volume unmounted Don't keep tracking OBBs when the volume they're located on goes away. Remove them from our state tracking maps and then send a notification to any listener that is still around. Add a dump handler to MountService so the state of the mount lists can be inspected. Change the API to just make a callback directly to the change listener when mount is called when it's already mounted or unmount called when it's already unmounted. Change-Id: Idb4afbb943ca5ca775825f908bff334e3ce1cfcc
bbInfo.java
bbScanner.java
|
a53146c5569f8ff5f7eb55e9ad35d23ddacf2add |
07-Sep-2010 |
Christopher Tate <ctate@google.com> |
Drag/drop APIs and infrastructure A View initiates a drag-and-drop operation (hereafter just called a "drag") by calling its startDrag(ClipData) method. Within the processing of that call, two callbacks are made into the originating View. The first is to onMeasureDragThumbnail(). Similarly to the core onMeasure() method, this callback must respond by calling setDragThumbnailDimension(width, height) to declare the size of the drag thumbnail image that should be used. Following this, the View's onDrawDragThumbnail(canvas) method will be invoked to actually produce the bits of the thumbnail image. If all goes well, startDrag() will return 'true', and the drag is off and running. (The other arguments to startDrag() provide reconciliation between the current finger position and where the thumbnail should be placed on the screen relative to it.) Potential receipients of the ClipData behind the drag are notified by a new dispatch mechanism, roughly parallel to motion event dispatch. The core routine is the View's onDragEvent(event) callback, with the mechanics of dispatch itself being routed through dispatchDragEvent(event) -- as in the case of motion events, the dispatch logic is in ViewGroup, with leaf View objects not needing to consider the dispatch flow. Several different event 'actions' are delivered through this dispatch mechanism: ACTION_DRAG_STARTED: this event is propagated to every View in every window (including windows created during the course of a drag). It serves as a global notification that a drag has started with a payload whose matching ClipDescription is supplied with the event. A View that is prepared to consume the data described in this event should return 'true' from their onDragEvent() method, and ideally will also make some visible on-screen indication that they are a potential target of the drop. ACTION_DRAG_ENTERED: this event is sent once when the drag point enters the View's bounds. It is an opportunity for the View to set up feedback that they are the one who will see the drop if the finger goes up now. ACTION_DRAG_LOCATION: when the drag point is over a given View, that View will receive a stream of DRAG_LOCATION events, providing an opportunity for the View to show visual feedback tied to the drag point. ACTION_DRAG_EXITED: like DRAG_ENTERED, but called when the drag point leaves the View's bounds. The View should undo any visuals meant to emphasize their being the hovered-over target. ACTION_DROP: when the drag ends at a given point, the View under that point is sent this event, with the full ClipData of the payload. ACTION_DRAG_ENDED: paralleling the DRAG_STARTED action, this is the global broadcast that the drag has ended and all Views should return to their normal visual state. This happens after the DROP event. Change-Id: Ia8d0fb1516bce8c735d87ffd101af0976d7e84b6
ompatibilityInfo.java
|
ea7ee3f4d31b92828df005d021cf482f6332514a |
30-Sep-2010 |
Kenny Root <kroot@google.com> |
am 8bd545ab: am 212d81a0: Merge "Move all the permissions check up for unmount" into gingerbread Merge commit '8bd545ab4f7e75634c970b50ed15c20858d6ac0c' * commit '8bd545ab4f7e75634c970b50ed15c20858d6ac0c': Move all the permissions check up for unmount
|
8bd545ab4f7e75634c970b50ed15c20858d6ac0c |
29-Sep-2010 |
Kenny Root <kroot@google.com> |
am 212d81a0: Merge "Move all the permissions check up for unmount" into gingerbread Merge commit '212d81a004f50e51ed8f6d803b79f4b71546b351' into gingerbread-plus-aosp * commit '212d81a004f50e51ed8f6d803b79f4b71546b351': Move all the permissions check up for unmount
|
f1121dc1d35c7e8c317c278aad0dd4ad1358d870 |
29-Sep-2010 |
Kenny Root <kroot@google.com> |
Move all the permissions check up for unmount We have already scanned the state of the OBB in mountObb, so check the caller against the stored state in the unmountObb call. This allows us to ensure the calling binder is the same one that mounted it since we tie the lifecycle of the OBB to the lifecycle of the binder. Change-Id: I45d9cfbab5d3f5b37a6a9b594b10bd8b91cccc45
bbScanner.java
|
bff405f91001237ec94ec64f86fa2370c4509559 |
29-Sep-2010 |
Kenny Root <kroot@google.com> |
resolved conflicts for merge of d8e8186c to master Change-Id: Ica3f6cd958717ea7033cab8b4bf9cd3425c1e1c5
|
d8e8186c887fe47977721315f439465771a96374 |
29-Sep-2010 |
Kenny Root <kroot@google.com> |
am 05105f7a: Update OBB API to include callbacks Merge commit '05105f7abe02b2dff91d6260b3628c8b97816bab' into gingerbread-plus-aosp * commit '05105f7abe02b2dff91d6260b3628c8b97816bab': Update OBB API to include callbacks
|
05105f7abe02b2dff91d6260b3628c8b97816bab |
23-Sep-2010 |
Kenny Root <kroot@google.com> |
Update OBB API to include callbacks Add a callback for users of the StorageManager API to be able to receive notifications when the requested operation completes for mountObb and unmountObb. Add NDK API to get to ObbInfo like the Java API has. Also update the docs for the API and remove the "STOPSHIP" comments. Change-Id: I23a4409c7f8b74d3169614beba920b4d667990a4
bbInfo.java
bbScanner.java
|
acc4e041d27c24b45fb190c493717fda987b52c2 |
04-Sep-2010 |
Dianne Hackborn <hackbod@google.com> |
am 69717ccd: DO NOT MERGE. Some stuff that is Not Ready. Merge commit '69717ccd13bb5568b912701ab39d603cfa7091cc' into gingerbread-plus-aosp * commit '69717ccd13bb5568b912701ab39d603cfa7091cc': DO NOT MERGE. Some stuff that is Not Ready.
|
69717ccd13bb5568b912701ab39d603cfa7091cc |
03-Sep-2010 |
Dianne Hackborn <hackbod@google.com> |
DO NOT MERGE. Some stuff that is Not Ready. Change-Id: I8fdba32722d86b92c791dbf7c6c0166bcdb02852
onfiguration.java
|
0c0250c8515f8b2502db6472c16f99980b7a4101 |
21-Aug-2010 |
Gilles Debunne <debunne@google.com> |
am bbe5fb2b: am 189de282: Merge "Fix for a Resource system bug that displayed the wrong name for missing asset." into gingerbread Merge commit 'bbe5fb2b73172a6b42b3406354a3556bd53916e1' * commit 'bbe5fb2b73172a6b42b3406354a3556bd53916e1': Fix for a Resource system bug that displayed the wrong name for missing asset.
|
e49564e0f710ba4a1405cfdfde068cb776ee474e |
21-Aug-2010 |
Kenny Root <kroot@google.com> |
am 821afa9a: am 54d41379: Merge "Add OBB flags to support overlays" into gingerbread Merge commit '821afa9aec8d3a4ffd2e72ce797d8097eaf13973' * commit '821afa9aec8d3a4ffd2e72ce797d8097eaf13973': Add OBB flags to support overlays
|
bbe5fb2b73172a6b42b3406354a3556bd53916e1 |
20-Aug-2010 |
Gilles Debunne <debunne@google.com> |
am 189de282: Merge "Fix for a Resource system bug that displayed the wrong name for missing asset." into gingerbread Merge commit '189de2820932fd5dc98b9639fdc420a57cfa2316' into gingerbread-plus-aosp * commit '189de2820932fd5dc98b9639fdc420a57cfa2316': Fix for a Resource system bug that displayed the wrong name for missing asset.
|
189de2820932fd5dc98b9639fdc420a57cfa2316 |
20-Aug-2010 |
Gilles Debunne <debunne@google.com> |
Merge "Fix for a Resource system bug that displayed the wrong name for missing asset." into gingerbread
|
75399683a418fff55539e6028341caa2e7572362 |
19-Aug-2010 |
Gilles Debunne <debunne@google.com> |
Fix for a Resource system bug that displayed the wrong name for missing asset. I didn't reproduce the bug and cannot ensure that this will fix it. The monkey with identical parameters stops with an ANR. Bug http://b/issue?id=2931528 Change-Id: I45f156c6a694f2d67fe514e0f0bb367aa017f08e
ypedArray.java
|
821afa9aec8d3a4ffd2e72ce797d8097eaf13973 |
19-Aug-2010 |
Kenny Root <kroot@google.com> |
am 54d41379: Merge "Add OBB flags to support overlays" into gingerbread Merge commit '54d41379357d1d800d0a7bd7c5dc56111710482a' into gingerbread-plus-aosp * commit '54d41379357d1d800d0a7bd7c5dc56111710482a': Add OBB flags to support overlays
|
02ca31fbae9f35dd30f79de6927fae11b549391a |
12-Aug-2010 |
Kenny Root <kroot@google.com> |
Add OBB flags to support overlays * Add flags field in OBB footer to support overlays. * Remove unused 'crypto' and 'filesystem' fields in obbtool (could later be supported in the "flags" field of the OBB footer). * Add notes to document OBB classes before shipping. Change-Id: I386b43c32c5edef55210acb5d3322639c08010ba
bbInfo.java
|
a006b47298539d89dc7a06b54c070cb3e986352a |
14-Apr-2010 |
Bjorn Bringert <bringert@android.com> |
New API and implementation of DB and memory-backed FDs This depends on a kernel patch that implements read(2) in the ashmem driver. Bug http://b/issue?id=2595601 Change-Id: Ie3b10aa471aada21812b35e63954c1b2f0a7b042
ssetFileDescriptor.java
|
def1537e9e8d0dd190cde5310ddae8b921088c9b |
15-Aug-2010 |
Dianne Hackborn <hackbod@google.com> |
More fragment work: - Introduce FragmentManager as a public API, deprecating the fragment APIs on Activity. (They will be removed soon.) - Add APIs to write a fragment reference to a bundle and later retrieve it. - Add Fragment API to set another fragment as its target, for delivering results. - Change when onInflate() is called and formalize its meaning in relation to the fragment arguments that were previously introduced. - Change onDestroyView() to always be called, regardless of when onCreateView() returns. It now also is called slightly differently, after the view hierarchy's state is saved. - Fix some issues with DialogFragment's lifecycle with its associated Dialog and state save/restore. - Preference can now have a Bundle associated with it to provide arguments to a fragment. The data for this Bundle call be supplied via <extra> tags under a PreferenceScreen. - PreferenceActivity's header XML tags are now <preference-headers> and <header>, and you can supply <extra> tags under a <header> to set arguments for the header's fragment. Change-Id: I22c212c9fa862d50840201ca16e51f9de5ef0031
esources.java
|
7b6d0d99b6904b511996267efae215fe9cb5e98f |
11-Aug-2010 |
Dianne Hackborn <hackbod@google.com> |
am 679ac09a: am a5ae50cd: Merge "More native work." into gingerbread Merge commit '679ac09a5c22175354f3a04b28456b323839530e' * commit '679ac09a5c22175354f3a04b28456b323839530e': More native work.
|
679ac09a5c22175354f3a04b28456b323839530e |
11-Aug-2010 |
Dianne Hackborn <hackbod@google.com> |
am a5ae50cd: Merge "More native work." into gingerbread Merge commit 'a5ae50cd838b5725c63ed485292aae4edd1a98cb' into gingerbread-plus-aosp * commit 'a5ae50cd838b5725c63ed485292aae4edd1a98cb': More native work.
|
08d5b8fad8d46ccb64db2fdcb4d66972ec87bf48 |
04-Aug-2010 |
Dianne Hackborn <hackbod@google.com> |
More native work. Implement save/restore of state, and add native APIs for configuration information. Change-Id: I2a3ddc2ba605db58d7c8b2b31b9215fb323f90b5
esources.java
|
23fdaf6fb62a9b5154b2508916a21c678462c5d0 |
06-Aug-2010 |
Dianne Hackborn <hackbod@google.com> |
Add new ContentProvider for doing conversions to data streams. This introduces basic infrastructure that should allow content providers holding complex data to perform on-demand conversion of their data to streams of various types. It is achieved through two new content provider APIs, one to interrogate the possible stream MIME types the provider can return, and the other to request a stream of data in a particular MIME type. Because implementations of this will often need to do on-demand data conversion, there is also a utility intoduced in ContentProvider for subclasses to easily run a function to write data into a pipe that is read by the client. This feature is mostly intended for cut and paste and drag and drop, as the complex data interchange allowing the source and destination to negotiate data types and copy (possible large) data between them. However because it is fundamental facility of ContentProvider, it can be used in other places, such as for more advanced GET_CONTENT data exchanges. An example implementation of this would be in ContactsProvider, which can now provider a data stream when a client opens certain pieces of it data, to return data as flat text, a vcard, or other format. Change-Id: I58627ea4ed359aa7cf2c66274adb18306c209cb2
ssetFileDescriptor.java
|
ab847c44d0549a47717f16ead806b03eecc957db |
05-Aug-2010 |
Scott Main <smain@google.com> |
am c9de8c34: am 97c2d840: am 8dd87ad9: fix some doc errors in the resources; add link to resource docs for ColorStateList class Merge commit 'c9de8c34a32af1b305b49096ee96da4c35acd2e8' * commit 'c9de8c34a32af1b305b49096ee96da4c35acd2e8': fix some doc errors in the resources;
|
c9de8c34a32af1b305b49096ee96da4c35acd2e8 |
05-Aug-2010 |
Scott Main <smain@google.com> |
am 97c2d840: am 8dd87ad9: fix some doc errors in the resources; add link to resource docs for ColorStateList class Merge commit '97c2d840a10813164d82571775a3566637d6c5de' into gingerbread-plus-aosp * commit '97c2d840a10813164d82571775a3566637d6c5de': fix some doc errors in the resources;
|
97c2d840a10813164d82571775a3566637d6c5de |
05-Aug-2010 |
Scott Main <smain@google.com> |
am 8dd87ad9: fix some doc errors in the resources; add link to resource docs for ColorStateList class Merge commit '8dd87ad9440bc63bc312b06f292adcd2642b1c41' into gingerbread * commit '8dd87ad9440bc63bc312b06f292adcd2642b1c41': fix some doc errors in the resources;
|
8dd87ad9440bc63bc312b06f292adcd2642b1c41 |
05-Aug-2010 |
Scott Main <smain@google.com> |
fix some doc errors in the resources; add link to resource docs for ColorStateList class Change-Id: I7f59bfd136d5bd3c2ea066b6123ee13ccd57f502
olorStateList.java
|
7d6bddc9a22b1eccc360417a1ca4d1f63a3df4f1 |
22-Jul-2010 |
Daniel Sandler <dsandler@google.com> |
More readable Configuration#toString() output. Change-Id: I761cba019d7c09c79db59b705dbd3390c62c94e2
onfiguration.java
|
63ae85f0e17f09892e87e2b02de38599289eac5a |
21-Jul-2010 |
The Android Open Source Project <initial-contribution@android.com> |
am 42ef77f3: merge from open-source master Merge commit '42ef77f3603ae54990d6718db79afae61e91dc61' * commit '42ef77f3603ae54990d6718db79afae61e91dc61': Shoud specify the Resource class instance as an argument of the method
|
42ef77f3603ae54990d6718db79afae61e91dc61 |
21-Jul-2010 |
The Android Open Source Project <initial-contribution@android.com> |
merge from open-source master Change-Id: Ide1539b6777faf232d5360d6dc89a5d255982747
|
708654c0b8d45001bc333a3b7b9fd845c81c6f26 |
20-Jul-2010 |
Masanori Ogino <ogino.masanori@sharp.co.jp> |
Shoud specify the Resource class instance as an argument of the method newDrawable and change the name from 'DrawableCacheClear' to 'clearDrawableCache' (additional changes for ID:15815) https://review.source.android.com/#change,15815 Change-Id: I6bf19b8e6e187df8c8e3cb57d9e04278ddfe5055
esources.java
|
bf4564f03daf9a43bafae8cbfe6c3cecd60847f0 |
16-Jul-2010 |
The Android Open Source Project <initial-contribution@android.com> |
am 5adfe6c5: merge from open-source master Merge commit '5adfe6c56369b48e10493c0bb9e9b64ac553a19f' * commit '5adfe6c56369b48e10493c0bb9e9b64ac553a19f': Fix the problem that color drawable cache key conflicts another drawable one.
|
5adfe6c56369b48e10493c0bb9e9b64ac553a19f |
16-Jul-2010 |
The Android Open Source Project <initial-contribution@android.com> |
merge from open-source master Change-Id: Iacd42b06fa01fa6dfd18b81f07ce4b6da922dfff
|
fb4e1e24a93c7e6bc0fcdb3f5cfadfbc19503cd8 |
16-Jul-2010 |
Kenny Root <kroot@google.com> |
resolved conflicts for merge of 181bb0ab to master Change-Id: I2284e7c671d127da0d124fbabae8d887727fd5bf
|
6ba776ad34a8029e4d0c784ce0092f1fcbc91bef |
16-Jul-2010 |
Christopher Tate <ctate@google.com> |
am 078ccbdb: am 2c40582a: Merge "Add native C APIs for working with the Asset Manager" into gingerbread Merge commit '078ccbdbb98c118aa87cab2fef61ff90dd128358' * commit '078ccbdbb98c118aa87cab2fef61ff90dd128358': Add native C APIs for working with the Asset Manager
|
02c8730c1bf19daf48bec8c6995df676a00a73b1 |
01-Jul-2010 |
Kenny Root <kroot@google.com> |
Add API to call to vold for mounting OBBs * Unhide StorageService class; hide all the USB-related items * Add application-visible API to StorageManager for OBB files * Add class for parceling OBB info across binders (ObbInfo) * Add a JNI glue class to libutils/ObbFile (ObbScanner) * Add API to MountService to deal with calling into vold and checking permissions Change-Id: I33ecf9606b8ff535f3a2ada83931da6bbef41cfd
bbInfo.aidl
bbInfo.java
bbScanner.java
|
c7d9d2790f0b7a036d70bac2f100b42790ff0979 |
09-Jul-2010 |
Masanori Ogino <ogino.masanori@sharp.co.jp> |
Fix the problem that color drawable cache key conflicts another drawable one. The cache key of a color drawable resource may be the same as another drawable resource's value. Change-Id: Ia971bb242ceac5e8f9346094009a10f356399ab9 (Reduced duplicated codes and replace TAB to white spaces) And try to fix compile error.
esources.java
|
6cce32b6adbb3a9725fc730ba0e0068a74657e60 |
13-Jul-2010 |
Christopher Tate <ctate@google.com> |
Add native C APIs for working with the Asset Manager Change-Id: I493b142c4b35e5cc1a1e85283bb5dfb306a6d261
ssetManager.java
|
1ad636c31501b1f407a3bf504d14689c1d5c7f5a |
02-Jul-2010 |
Elliott Hughes <enh@google.com> |
Defer to ICU's knowledge of language-specific grammatical quantity rules. Also improve the documentation to make it a little less unclear what this is all about. In particular, explain why the original submitter's complaint about "zero" never being used in English, is expected behavior. Bug: 2663392 Change-Id: Iade3b4f5c549ce01a95fd0e7e5c6ea394178eda3
luralRules.java
esources.java
|
14cee9f688c32d63d8521188e7422811629bb7c2 |
24-Apr-2010 |
Dianne Hackborn <hackbod@google.com> |
New xlarge screen size. Not complete, only for experimentation at this point. This includes a reworking of how screen size configurations are matched, so that if you are on a larger screen we can select configurations for smaller screens if there aren't any exactly matching the current screen. The screen size at which we switch to xlarge has been arbitrarily chosen; the compatibility behavior has not yet been defined. Change-Id: I1a33b3818eeb51a68fb72397568c39ab040a07f5
ompatibilityInfo.java
onfiguration.java
|
694f79b5d1196640d1beb680b7d1fc68e6e77cbd |
18-Mar-2010 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #2519590: Lock screen stuck in landscape mode Well, mostly. There is still a problem here where the first time you show the lock screen it just doesn't draw itself. I assume this is something breaking in the view hierarchy as it floounders around removing and adding new views as it is first being shown... but no idea at this point what is the actual case. Change-Id: Iba99ae3242931c8673b17b106c86fc99e2c52abe
onfiguration.java
|
a839703e0dec352bba9c7e4165e91b9083f58185 |
12-Mar-2010 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #2483335: android.content.res.cts.ConfigurationTest test's are failing Change-Id: Ic2d10809c88f24d84e58d9f2edfd95912af29038
onfiguration.java
|
15a4d2ffd04dc6c70f2cd17dae12ac6bc14c69ab |
12-Mar-2010 |
Kenny Root <kroot@google.com> |
Add correct copyright headers to multiple files Format for the list of changes shows the origin commit reference followed by the file name. 33931-p9 awt/org/apache/harmony/awt/gl/font/AndroidGlyphVector.java 33931-p9 awt/org/apache/harmony/awt/gl/image/PngDecoderJava.java 133776-p9 core/java/android/app/IntentService.java 127013-p9 core/java/android/appwidget/AppWidgetHost.java 27863-p9 core/java/android/bluetooth/BluetoothAudioGateway.java 60765-p9 core/java/android/content/SyncResult.java 43920-p9 core/java/android/content/pm/ActivityInfo.java 43920-p9 core/java/android/content/pm/ApplicationInfo.java 43920-p9 core/java/android/content/pm/InstrumentationInfo.java 43920-p9 core/java/android/content/pm/PackageInfo.java 44103-p9 core/java/android/content/pm/PackageItemInfo.java 68960-p9 core/java/android/content/pm/PackageStats.java 43920-p9 core/java/android/content/pm/ResolveInfo.java 43920-p9 core/java/android/content/pm/ServiceInfo.java 60641-p9 core/java/android/content/res/Configuration.java 60734-p9 core/java/android/content/res/TypedArray.java 137672-p9 core/java/android/inputmethodservice/ExtractButton.java 123112-p9 core/java/android/inputmethodservice/ExtractEditText.java 119291-p9 core/java/android/inputmethodservice/IInputMethodSessionWrapper.java 112946-p9 core/java/android/inputmethodservice/IInputMethodWrapper.java 115078-p9 core/java/android/os/BatteryStats.java 124790-p9 core/java/android/text/style/UpdateAppearance.java 45083-p9 core/java/android/view/RawInputEvent.java 101491-p9 core/java/android/view/inputmethod/EditorInfo.java 114701-p9 core/java/android/view/inputmethod/ExtractedText.java 123112-p9 core/java/android/view/inputmethod/ExtractedTextRequest.java 119291-p9 core/java/com/android/internal/os/HandlerCaller.java 129279-p9 core/java/com/android/internal/os/PkgUsageStats.java 114701-p9 core/java/com/android/internal/view/IInputConnectionWrapper.java 114701-p9 core/java/com/android/internal/view/InputConnectionWrapper.java 84364-p9 opengl/java/android/opengl/EGLLogWrapper.java 11355-p9 opengl/tools/glgen/src/CFunc.java 11355-p9 opengl/tools/glgen/src/CType.java 11355-p9 opengl/tools/glgen/src/CodeEmitter.java 11355-p9 opengl/tools/glgen/src/GenerateGL.java 11355-p9 opengl/tools/glgen/src/JFunc.java 11355-p9 opengl/tools/glgen/src/JType.java 11355-p9 opengl/tools/glgen/src/JniCodeEmitter.java 11355-p9 opengl/tools/glgen/src/ParameterChecker.java 57236-p9 services/java/com/android/server/status/AnimatedImageView.java 66754-p9 services/java/com/android/server/status/CloseDragHandle.java 57188-p9 services/java/com/android/server/status/DateView.java 46928-p9 services/java/com/android/server/status/ExpandedView.java 70590-p9 services/java/com/android/server/status/FixedSizeDrawable.java 45968-p9 services/java/com/android/server/status/IconData.java 57470-p9 services/java/com/android/server/status/IconMerger.java 82719-p9 services/java/com/android/server/status/LatestItemView.java 45968-p9 services/java/com/android/server/status/NotificationData.java 66754-p9 services/java/com/android/server/status/NotificationLinearLayout.java 57458-p9 services/java/com/android/server/status/NotificationViewList.java 45968-p9 services/java/com/android/server/status/StatusBarException.java 45968-p9 services/java/com/android/server/status/StatusBarIcon.java 46130-p9 services/java/com/android/server/status/StatusBarNotification.java 45968-p9 services/java/com/android/server/status/StatusBarView.java 46199-p9 services/java/com/android/server/status/Ticker.java 62286-p9 services/java/com/android/server/status/TickerView.java 57188-p9 services/java/com/android/server/status/TrackingView.java 86041-p9 telephony/java/android/telephony/PhoneStateListener.java 87020-p9 telephony/java/com/android/internal/telephony/TelephonyIntents.java 136269-p9 telephony/java/com/android/internal/telephony/gsm/SpnOverride.java 34409-p9 tests/FrameworkTest/src/com/android/frameworktest/FrameworkTestApplication.java 55717-p9 tests/FrameworkTest/src/com/android/frameworktest/performance/InvalidateCycle.java 128994-p9 tests/ImfTest/src/com/android/imftest/samples/AutoCompleteTextViewActivityLandscape.java 128994-p9 tests/ImfTest/src/com/android/imftest/samples/AutoCompleteTextViewActivityPortrait.java 129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityNonScrollablePanScan.java 129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityNonScrollableResize.java 129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityScrollablePanScan.java 129372-p9 tests/ImfTest/src/com/android/imftest/samples/BigEditTextActivityScrollableResize.java 128994-p9 tests/ImfTest/src/com/android/imftest/samples/BottomEditTextActivityPanScan.java 128994-p9 tests/ImfTest/src/com/android/imftest/samples/BottomEditTextActivityResize.java 127341-p9 tests/ImfTest/src/com/android/imftest/samples/ButtonActivity.java 129347-p9 tests/ImfTest/src/com/android/imftest/samples/DialogActivity.java 129372-p9 tests/ImfTest/src/com/android/imftest/samples/EditTextActivityDialog.java 128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityNoScrollPanScan.java 128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityScrollPanScan.java 128994-p9 tests/ImfTest/src/com/android/imftest/samples/ManyEditTextActivityScrollResize.java 128994-p9 tests/ImfTest/src/com/android/imftest/samples/OneEditTextActivityNotSelected.java 128994-p9 tests/ImfTest/src/com/android/imftest/samples/OneEditTextActivitySelected.java 25959-p9 tests/framework-tests/src/android/test/FrameworkTests.java 46162-p9 tests/framework-tests/src/com/android/internal/http/multipart/MultipartTest.java 77101-p9 tools/layoutlib/bridge/tests/com/android/layoutlib/bridge/NinePatchTest.java 9788976b1465ce982b5ae7c741345edd0ecd9322 core/java/android/accounts/AuthenticatorDescription.java 53332883543868fb83e111a07306368b7772b340 core/java/android/app/UiModeManager.java 93e7e22ec91dbc641d10ca6d70423e1357a95bba core/java/android/app/FullBackupAgent.java 328c0e7986aa6bb7752ec6de3da9c999920bb55f core/java/android/content/CursorEntityIterator.java 307da1a46b4c9b711bafe8fbaaa6b98e8868c18e core/java/android/content/SyncQueue.java 307da1a46b4c9b711bafe8fbaaa6b98e8868c18e core/java/android/content/SyncOperation.java eb034652c2037a47ebfd99779e8383bb8bb528af core/java/android/content/pm/LabeledIntent.java 49237345d83e62fdb9eb8d50b13ad086636a04fa core/java/android/content/pm/FeatureInfo.java a2b6c3775ed6b8924232d6a01bae4a19740a15f8 core/java/android/content/pm/PackageInfoLite.java 3ecd5f437580e49d80beecd29489d5fb1f7a7db0 core/java/android/content/pm/RegisteredServicesCacheListener.java 5ebbb4a6b3e16f711735ae0615b9a9ea64faad38 core/java/android/content/pm/XmlSerializerAndParser.java c4516a7b62de525e3d6d5e76851bdfaf12c11f05 core/java/android/database/sqlite/SQLiteTransactionListener.java 9bbc21a773cbdfbef2876a75c32bda5839647751 core/java/com/android/internal/backup/LocalTransport.java 21f1bd17b2dfe361acbb28453b3f3b1a110932fa core/java/com/android/internal/content/PackageMonitor.java 4c62fc0e1e5ea9c69a12a7d1cf8b3ec8b2d114a3 core/java/com/android/internal/view/BaseSurfaceHolder.java 4c62fc0e1e5ea9c69a12a7d1cf8b3ec8b2d114a3 core/java/com/android/internal/view/BaseIWindow.java e540833fdff4d58e37c9ba859388e24e2945ed45 core/java/com/android/internal/os/SamplingProfilerIntegration.java 192ab903887bbb8e7c7b6da5c581573850e30f46 core/tests/coretests/src/android/widget/expandablelistview/PositionTesterContextMenuListener.java 1619367ab823150fa8856d419abe02ceb75886f1 media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaProfileReader.java 27f8002e591b5c579f75b2580183b5d1c4219cd4 opengl/tools/glgen/stubs/gles11/glGetString.java 560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glGetProgramInfoLog.java 560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glGetShaderInfoLog.java 560814f6b11abe83ff0c4ed18cac015c276b3181 opengl/tools/glgen/stubs/gles11/glShaderSource.java 1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/GenerateGLES.java 1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/Jsr239CodeEmitter.java 1c4907ee77392afb768c2f088e0dedbe4239f6fb opengl/tools/glgen/src/GLESCodeEmitter.java 69e21f5f6e0d04539cd92848ea009dd615d88c2c opengl/tests/gldual/src/com/android/gldual/TriangleRenderer.java c028be4f3b8c7476b46859f66c3f33d528adf181 packages/DefaultContainerService/src/com/android/defcontainer/DefaultContainerService.java 7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerMeasurement.java 7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerTestActivity.java 7c6efa13f129dbae5319f0981a430d4662f43354 tests/BrowserPowerTest/src/com/android/browserpowertest/PowerTestRunner.java df8a3f31d871db25e952972c2eb346a71186e9e3 tests/BrowserTestPlugin/src/com/android/testplugin/TestPlugin.java cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/ActivityManagerPermissionTests.java cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/ServiceManagerPermissionTests.java cfaef699e1dfb3a75d5b51f3b15816f13670fd51 tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java Copyright header moved to top in following file: core/tests/coretests/src/android/widget/ListViewTest.java Change-Id: I3c3198be5a0ba36e18679ed834170432bf0b8418
onfiguration.java
ypedArray.java
|
cf244ada58539ce857ec041d7288d0271204fbb6 |
10-Mar-2010 |
Dianne Hackborn <hackbod@google.com> |
Add ability for some manifest attributes to reference resources. This loosens our restriction on many manifest attributes requiring literal string values, to allow various ones to use values from resources. This is only allowed if the resource value does not change from configuration changes, and the restriction is still in place for attributes that are core to security (requesting permissions) or market operation (used libraries and features etc). Change-Id: I4da02f6a5196cb6a7dbcff9ac25403904c42c2c8
ypedArray.java
|
7299c41630935a2b106e73e5603579a7747f7535 |
05-Mar-2010 |
Dianne Hackborn <hackbod@google.com> |
Refactor car mode. Extract all UI behavior from dock observer and ACTION_DOCK_EVENT. Also introduce a desk type to go along with the car type all through the resource system, since we now need to have corresponding high-level broadcasts for desk dock mode. As part of that I also reworked some of the logic for switching modes to all funnel through a single update() call that looks all of the current state to decide what to do next, and fixed various locking issues. In addition I found there were bugs in the configuration change handling causing us to only switch into the car mode config and then never get out of it. Unfortunately now that we are actually changing the configuration for each mode change, the transitions between them are really crummy as we restart all kinds of activities. :(
onfiguration.java
|
ef05e076ced1a32c5c0aaee28403779834adb2ba |
02-Mar-2010 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #2448075: aapt doesn't fix up activity-alias 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.
onfiguration.java
|
2269d1572e5fcfb725ea55f5764d8c3280d69f6d |
25-Feb-2010 |
Dianne Hackborn <hackbod@google.com> |
Re-arrange android-common so framework no longer links with it. 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.
esources.java
tringBlock.java
ypedArray.java
mlBlock.java
|
c3b91fd26a940f8cee54888f91b490cb1768b03c |
24-Feb-2010 |
Dianne Hackborn <hackbod@google.com> |
Fix crash in PendingIntentRecord debug output. Add null checks to a few places to avoid crashes when dumping debug data. Also add some sanity checks for accessing content providers in the activity manager.
ssetManager.java
mlBlock.java
|
e36d6e277e49475076b7872d36ea6a5c5b996e9d |
18-Feb-2010 |
Dianne Hackborn <hackbod@google.com> |
Work on issue #2263557: PMF3000 showing hybrid of portrait and landscape modes 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.
onfiguration.java
esources.java
|
27b28b3f62bd3b54fa13acd5d035940b9be464f3 |
09-Feb-2010 |
Tobias Haamel <haamel@google.com> |
Introduce special UI modes for night and car usage. 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.
ssetManager.java
onfiguration.java
esources.java
|
3a19833750de7f8872ad44892054e409b2d77614 |
22-Jan-2010 |
Kenny Root <kroot@google.com> |
Multiple asset adding in one shot for AssetManager Add a hidden convenience method to allow adding multiple assets to an AssetManager at once. Change-Id: I56753a85904a2c8e9a405cba2ea3cb85ec40e1cc
ssetManager.java
|
79dc8ccddd846816d4e0e55405ad0dbefa5b0ff6 |
04-Jan-2010 |
Romain Guy <romainguy@android.com> |
Fix typo in ColorStateList documentation.
olorStateList.java
|
d4a4729c0cac582a2dcec7c8cfb316b81885a0f0 |
21-Dec-2009 |
Tom Taylor <tomtaylor@google.com> |
Update imports to android-common Several files were moved to android-common. Update all the references to import those files from the new location.
esources.java
tringBlock.java
ypedArray.java
mlBlock.java
|
60d7db4c3e3d60060e7ac021445ea1f510b7a1fb |
17-Nov-2009 |
Dianne Hackborn <hackbod@google.com> |
Fix #2262593: 42 ANR reports from android.process.acore There was a lock in AssetManager that purported to be per-instance (mSync) but was actually static. A lot of code used it like it was per-instance, but this would actually block all instances. This is now changed to fix the name and make everything except the actual static data lock on the specific AssetManager instance. Change-Id: Ie8e9ad60f962184e76b2301f7a2790d0c2487063
ssetManager.java
|
553399518f39cd9f31f2bb6f502866c3c9d6d1a5 |
02-Nov-2009 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #2226370: Resource versions match with equality Also fixed turned-around increment of version number for resources. :( Change-Id: I604137272da984bcd69cee4f174e6b7f2c786e46
esources.java
|
3b3e145d3c41fd68974e08f799b1fd1f8f060cf0 |
25-Sep-2009 |
Dianne Hackborn <hackbod@google.com> |
A variety of work on animations. - The lock screen now fades in and out. - Fixed a bug where we would accidentally freeze the screen when switching to an activity with a different orientation than the current (but the screen itself is in the current orientation). This would mess up the animations on the car dock. - New API to force a particular animation for an activity transition (untested). - New wallpaper animations. - Resources now uses the next API version when in a development build, to help applications being developed against such builds. Change-Id: I2d9998f8400967ff09a04d693dc4ce55f0dbef5b
esources.java
|
b5c17a64edbdac47d8aa48951b50ea0a8e982655 |
22-Sep-2009 |
Mike Reed <reed@google.com> |
experimental fix for compatibility mode. When we scale up by 1.5 (240 dpi), we put stretched ninepatches on exact pixel boundaries when we walk the inverse matrix (e.g. 2/3, 1+1/3, 2, 2+2/3, 3+1/3, 4, ...). These are not stable, since any variance in the inverse matrix (even in the lowest bit) can cause some other part of the ninepatch to start a hair to the left, resulting in misaligning every 3 pixels. The fix changes the matrix' phase enough to keep all of the stretched ninepatches in phase.
ompatibilityInfo.java
|
93e462b79d6896da10e15e74c5aec6beb098dddf |
16-Sep-2009 |
Dianne Hackborn <hackbod@google.com> |
Implement issue #1780928: Need support hiding nav keys. This implements support for devices whose hardware can hide their navigation keys. It works much like the existing keyboardHidden configuration, and for compatibility uses the same configuration change bit. Also add FLAG_TURN_ON_SCREEN for windows, which has the system cause the screen to be turned on when the window is displayed. Great fun when used with FLAG_SHOW_WHEN_LOCKED! Change-Id: I0b867f19af85cfd8786a14cea194b34f7bdd9b7a
onfiguration.java
|
c2974809373697147cbe5754835cc871fb93aef1 |
14-Sep-2009 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #2116977: buttons are huge and bent Now that we are using preloaded drawables in compatibilty mode, when constructing them from their constant state we need to set the new drawable's target density appropriately. Change-Id: I3665cbea09d38b9ac5f45f8c380dc8641f86b266
esources.java
|
19382ac1a4e4e7c23a1346d299368763f149de9c |
12-Sep-2009 |
Dianne Hackborn <hackbod@google.com> |
Some optizations to wallpaper drawing/scrolling. First, fix some issues with the final wallpaper bitmap we use: ensure it is always 16bpp, and make sure dithering of its bitmap is turned off. We take of dithering when loading, to make sure we don't use it when drawing. Also add new APIs to return the wallpaper with the equivalent of Launcher's old FastBitmapDrawable. As doing this, also load the default wallpaper the same way as custom ones, taking care to resize it as needed at load time. Finally implement a mechanism for the window manager to wait for the wallpaper to redraw at its new position before returning from the application's call to change the offset. This ensures that the wallpaper better tracks the application. Note that there is a timeout in this wait that is relatively short, and if it expires we will run for a while without waiting. Change-Id: Ife449437746da85958bd447e0a6cf3d2223b398c
esources.java
|
8cae124af2142687a6833dbaab8a43df6dd67b43 |
10-Sep-2009 |
Dianne Hackborn <hackbod@google.com> |
Various cleanup around resources and nine-patches. Remove the stuff that doesn't use preloaded drawables when in compatibility mode, since this works fine ever since we were able to deal with drawables in a different density than the canvas. Change the snapshot function on View to return a snapshot at the same size that will actually be drawn on screen (when in compatibility mode), to be able to show scaling artifacts and all. This change was original an attempt to fix issue #2101917: Text field edges appears to be improperly rounded. That turns out to probably be something deeper in the graphics system, but also included here is the debugging code I did to try to track down the problem to make it easy to turn on again later. Change-Id: I34bfca629639c7ff103f3989d88874112ef778d9
ssetManager.java
esources.java
|
7341d7a104b47996445d069a695e155a07184606 |
14-Aug-2009 |
Dianne Hackborn <hackbod@google.com> |
More work on wallpapers. - Do better about figuring out when to stop them and other related window management. - Fix problem where we were not redrawing the surface when the orientation changed. This was the cause of the device hang.
esources.java
|
a9f1dd021f8f6ee777bc4d27913bd40c42e753af |
13-Aug-2009 |
Eric Fischer <enf@google.com> |
Make <font size> and <font height> in string resources respect density. This unfortunately requires API changes because the existing text markup classes had no access to the screen density. TextPaint gains a "density" field so that TextView can pass the density along. AbsoluteSizeSpan gains a new flag to indicate that its argument is in dip instead of in physical pixels. LineHeightSpan gains an inner interface whose chooseHeight() method includes a TextPaint argument so it can get at the density. And when StringBlock creates the markup objects, it now uses the density-aware versions. Bug 1976971, Bug 2031746
tringBlock.java
|
90f77218a24ac66bea52faef79c30d45420ce135 |
12-Aug-2009 |
Dianne Hackborn <hackbod@google.com> |
am b8546001: Merge change 20878 into donut Merge commit 'b8546001701405a76dad7e6235046e592296fac2' * commit 'b8546001701405a76dad7e6235046e592296fac2': Fix issue #2048263: More debugging information
|
82e1ee93eece8fb0aec6acc3ef4ee7b1c86feec7 |
12-Aug-2009 |
Dianne Hackborn <hackbod@google.com> |
Fix issue #2048263: More debugging information We now hopefully do better about generating the anr reports, and include information about the malloc loaded assets in meminfo.
ssetManager.java
|
afcf686cb070313ae5ce6c54ac381a3a86a60ed2 |
31-Jul-2009 |
Android (Google) Code Review <android-gerrit@google.com> |
am 25dff70f: Merge change 9039 into donut Merge commit '25dff70f153529b87f5ad4a92f4de21e8950b1de' * commit '25dff70f153529b87f5ad4a92f4de21e8950b1de': Fix #2018814: System cannot correctly render assets with "wrap_content" attribute in QVGA
|
0d221012ff5fd314711c00ed30e9b807b9c454c1 |
30-Jul-2009 |
Dianne Hackborn <hackbod@google.com> |
Fix #2018814: System cannot correctly render assets with "wrap_content" attribute in QVGA It turns out we were not returning the density for anything retrieved from a TypedArray... which basically means any bitmap references from a layout or style...!!! This is now fixed. Also fiddle with the density compatibility mode to turn on smoothing in certain situations, helping the look of things when they need to scale and we couldn't do the scaling at load time.
ssetManager.java
ypedArray.java
|
30b06eb8b98b6e6dc685cf65ad4faa25a85008c5 |
24-Jul-2009 |
Mitsuru Oshima <oshima@google.com> |
am 589cebe2: * Use the scaled size for surface view instead of native. The surface will be always scaled by surface flinger in compatiblity mode. The original approach confused the app because the surface size and the view size were different. * a few clean up. remo Merge commit '589cebe2d58591403de4a77077941c0454bc91bc' * commit '589cebe2d58591403de4a77077941c0454bc91bc': * Use the scaled size for surface view instead of native. The surface will be always scaled
|
589cebe2d58591403de4a77077941c0454bc91bc |
23-Jul-2009 |
Mitsuru Oshima <oshima@google.com> |
* Use the scaled size for surface view instead of native. The surface will be always scaled by surface flinger in compatiblity mode. The original approach confused the app because the surface size and the view size were different. * a few clean up. removed unsed arguments, obsolete conditions from getTranslator() (expandable check was a bug)
ompatibilityInfo.java
|
c00c04d7d8758a5ade185d465624e47dcf1bd7c0 |
22-Jul-2009 |
Dianne Hackborn <hackbod@google.com> |
am 11b822d2: Simplify density compatibility to a boolean. Merge commit '11b822d2a91ea17c34c0cb1c11e80a9a30d72864' * commit '11b822d2a91ea17c34c0cb1c11e80a9a30d72864': Simplify density compatibility to a boolean.
|
11b822d2a91ea17c34c0cb1c11e80a9a30d72864 |
22-Jul-2009 |
Dianne Hackborn <hackbod@google.com> |
Simplify density compatibility to a boolean. Instead of a list, we now just have a single boolean indicating whether an application is density aware, and this set set to true by default as of Donut.
ompatibilityInfo.java
|
a8339dfec9d1b2c6d6fd2f8268f8075d184f64c0 |
22-Jul-2009 |
Android (Google) Code Review <android-gerrit@google.com> |
am 9fc20b0e: Merge change 8126 into donut Merge commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf' * commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf': First pass at reworking screen density/size APIs.
|
c4db95c077f826585d20be2f3db4043c53d30cf5 |
22-Jul-2009 |
Dianne Hackborn <hackbod@google.com> |
First pass at reworking screen density/size APIs. This changes the names of the directories in aapt, to what you see in the list of DpiTest resources. Also adds a new "long" configuration for wide screens, which the platform sets appropriate, and introduces a new kind of resizeability for not large but significantly larger than normal screens which may have compatibility issues.
ompatibilityInfo.java
onfiguration.java
|
fead9b8ad0c6e64066fb73f4285b088ab68f452b |
22-Jul-2009 |
Android (Google) Code Review <android-gerrit@google.com> |
am fe6f45c8: Merge change 8098 into donut Merge commit 'fe6f45c81463d2d28e11ac6083f2653e1286c5ef' * commit 'fe6f45c81463d2d28e11ac6083f2653e1286c5ef': cast is floor. Use round instead.
|
61324e58c549670c015010d0be14c6af76e3e9f7 |
22-Jul-2009 |
Mitsuru Oshima <oshima@google.com> |
cast is floor. Use round instead. This fixes a few layout issues (that was due to smaller widnow size)
ompatibilityInfo.java
|
a065b01904d5017232c9b51ccb174412ff57e138 |
20-Jul-2009 |
Mitsuru Oshima <oshima@google.com> |
am 841f13c8: * Reverted the change in PackageParser that I checked by accident * More surface view fix. - correct event translation on surface view. - use compatible window * removed FLAG_NO_COMPATIBILITY_SCALE. It was my misunderstanding of how SurfaceView works, Merge commit '841f13c8e9ff3f7695b6c18a8abcec3c947983ff' * commit '841f13c8e9ff3f7695b6c18a8abcec3c947983ff': * Reverted the change in PackageParser that I checked by accident
|
bec99bffeecacb1af603966391014895f9a16025 |
20-Jul-2009 |
Android (Google) Code Review <android-gerrit@google.com> |
am 5c536e91: Merge change 7840 into donut Merge commit '5c536e9162721c460699a041959a0d67de1d20db' * commit '5c536e9162721c460699a041959a0d67de1d20db': Fix issue where scaled bitmap sizes could be wrong.
|
469b4c67adc77a87eb2c9ed9217edf1778002828 |
20-Jul-2009 |
Android (Google) Code Review <android-gerrit@google.com> |
am aad0fcc9: Merge change 7783 into donut Merge commit 'aad0fcc9619eb72c18a6afff48ebc9d4011f0f54' * commit 'aad0fcc9619eb72c18a6afff48ebc9d4011f0f54': Add "nodpi" density, and expose a bunch of density-related APIs.
|
841f13c8e9ff3f7695b6c18a8abcec3c947983ff |
18-Jul-2009 |
Mitsuru Oshima <oshima@google.com> |
* Reverted the change in PackageParser that I checked by accident * More surface view fix. - correct event translation on surface view. - use compatible window * removed FLAG_NO_COMPATIBILITY_SCALE. It was my misunderstanding of how SurfaceView works, and this was not necessary. * Added compatibility related info to package dumpsys
ompatibilityInfo.java
|
2784ff0af88128f66ae690b73d48fb7e4a211e68 |
19-Jul-2009 |
Dianne Hackborn <hackbod@google.com> |
Fix issue where scaled bitmap sizes could be wrong. The Bitmap functions to get the scaled width/height couldn't actually do the right thing because they didn't know the destination they would be drawing to. Now there are two forms of them, taking an explicit parameter specifying the destination.
ompatibilityInfo.java
|
a53b828635fce8b6b2d3e3377d74d72070056623 |
17-Jul-2009 |
Dianne Hackborn <hackbod@google.com> |
Add "nodpi" density, and expose a bunch of density-related APIs. Also update the DpiTest app to use nodpi images, and try to have a mode where it turns off compatibility though it's not quite working.
ompatibilityInfo.java
esources.java
|
0fde7de9d660e4acdb8404f954f75d8c331b5d45 |
17-Jul-2009 |
Android (Google) Code Review <android-gerrit@google.com> |
am 54f09101: Merge change 7613 into donut Merge commit '54f09101381fa63dca35ae4ea0ba3802ee863236' * commit '54f09101381fa63dca35ae4ea0ba3802ee863236': * Use Fede In/Out animation if one of opening/closing apps is in compatibility mode.
|
5a2b91dc14e4c92e91c6abcc795f54ac98ee5866 |
17-Jul-2009 |
Mitsuru Oshima <oshima@google.com> |
* Use Fede In/Out animation if one of opening/closing apps is in compatibility mode. * preserve compatibility window flag when the app updates window's layout params. * Added assertion in DEFAULT_COMPATIBILITY_INFO object to prevent unintentional modification. * A few minor updates * log/dump message improvement * Removed unnecessary method in FadeInOutAnimator * Fixed 100 char issue in WindwoManagerServer.java
ompatibilityInfo.java
|
6630e4a1dc40850eb7a4ddc8aaa06479469e8c4d |
15-Jul-2009 |
Android (Google) Code Review <android-gerrit@google.com> |
am b5c735d3: Merge change 7106 into donut Merge commit 'b5c735d35c8c1d2fb4e4654fbffcdb62d5acab4d' * commit 'b5c735d35c8c1d2fb4e4654fbffcdb62d5acab4d': Return adjusted display for WindowManager.getDefaultDisplay()
|
ddd12535f095d8d056716c3290faf50ec52a538a |
14-Jul-2009 |
Mitsuru Oshima <oshima@google.com> |
Return adjusted display for WindowManager.getDefaultDisplay()
esources.java
|
a62e3e4d0f4d18f4b8d31876e035d3ae57f88f40 |
13-Jul-2009 |
Mitsuru Oshima <oshima@google.com> |
am ba3ba579: * Use cached resources for widgets Merge commit 'ba3ba57921dedaaef669719c0359c0caf60e008b' * commit 'ba3ba57921dedaaef669719c0359c0caf60e008b': * Use cached resources for widgets
|
ba3ba57921dedaaef669719c0359c0caf60e008b |
09-Jul-2009 |
Mitsuru Oshima <oshima@google.com> |
* Use cached resources for widgets
esources.java
|
c3f60ddaeadb69c1e85198e609e575f55ecc28ac |
09-Jul-2009 |
Mitsuru Oshima <oshima@google.com> |
am 1ecf5d28: Re-implementation of large screen support using window manager. * added background filler surface to fill the outer rim. Using the same layer as dim surface because they never co-exists (in the same window) * clean up the obsolete code in Compatibilt Merge commit '1ecf5d28817f0a051e77488380dcd5bc622ea169' * commit '1ecf5d28817f0a051e77488380dcd5bc622ea169': Re-implementation of large screen support using window manager.
|
1ecf5d28817f0a051e77488380dcd5bc622ea169 |
07-Jul-2009 |
Mitsuru Oshima <oshima@google.com> |
Re-implementation of large screen support using window manager. * added background filler surface to fill the outer rim. Using the same layer as dim surface because they never co-exists (in the same window) * clean up the obsolete code in CompatibiltyMode/ViewRoot for support large screen support.
ompatibilityInfo.java
|
507f8ed2e05f97b20307b900fbc7308e0f8fdb83 |
09-Jun-2009 |
Kenny Root <kenny@the-b.org> |
Fix Configuration documentation for new constants * Added KEYBOARD_NOKEYS link to Javadoc for keyboard. * Added NAVIGATION_NONAV link to Javadoc for navigation.
onfiguration.java
|
569076c9f6bdadb4d3285a26e069634a839b5b87 |
03-Jul-2009 |
Mitsuru Oshima <oshima@google.com> |
widgets scaling fix. Use container's compatibility info and display metrics when container and widgets disagree.
ompatibilityInfo.java
esources.java
|
723738cfaec3dd7b0fe152c872c41bebf94074c4 |
26-Jun-2009 |
Dianne Hackborn <hackbod@google.com> |
Expand support for different screen sizes. Applications can now declare that they support small, normal, or large screens. Resource selection can also be done based on these sizes. By default, pre-Donut apps are false for small and large, and Donut or later apps are assumed to support all sizes. In either case they can use <supports-screens> in their manifest to declare what they actually support.
ssetManager.java
ompatibilityInfo.java
onfiguration.java
esources.java
|
64f59342d41849bd365cb43fad7505d5e3daa417 |
21-Jun-2009 |
Mitsuru Oshima <oshima@google.com> |
* new screen resolution support impl. * use full window for activities, and shift & clip the content * refactored the compatibility code, and introdcued Translator class to handle cooridnate translations. * removed a workaround to handle an activity with configChagne=rotation in old implementation. * I'll fix background issue on rotation in next CL. * removed unnecessary scaling code in SurfaceView, which I forgot to remove when I changed SurfaceView not to scale the content.
ompatibilityInfo.java
esources.java
|
63e7155c7d1d0c3f0027400aa09e9a45f648a80d |
19-Jun-2009 |
Android (Google) Code Review <android-gerrit@google.com> |
Merge change 4696 into donut * changes: Fix targetSdkVersion, make resize mode a flag, delayed dexopt, easy ApplicationInfo.
|
5c1e00b14d2ef10ec76abf3e951fa8003a67f558 |
19-Jun-2009 |
Dianne Hackborn <hackbod@google.com> |
Fix targetSdkVersion, make resize mode a flag, delayed dexopt, easy ApplicationInfo. - Fix a bug where targetSdkVersion could not be set if minSdkVersion. Stupid, stupid. Also make sure to fail if minSdkVersion is for a code name. Really stupid. - Change the API for resize compatibility mode to be a bit in the flags field, instead of a separate boolean. - Implement delayed dexopting, to avoid the looong full dexopt during boot. This is only enabled for "eng" builds. When in this mode, the activity manager will make sure that a dexopt has been done before loading an .apk into a process, and will try to avoid displaying ANRs if they are due to the dexopt causing some operation to take longer than it normally would (though I make no guarantees about this totally working). - Add API to Context to get the ApplicationInfo for its package, for easy access to things like targetSdkVersion.
ompatibilityInfo.java
|
fdbf6a7eac39a23e0e910c29678fe00d4eb56c99 |
19-Jun-2009 |
Romain Guy <romainguy@android.com> |
Fixes #1922373. Resolves a case of keys collision in Resources' cache. The Resources class keeps a cache of known resources. The keys used by the cache are stored as int primitives. For any given drawable resource, a key is built thusly: TypeValue.assetCookie << 24 | TypedValue.data In the case of a plain color drawable, assetCookie always equals -1, that is 0xFF once right-shifted and the data contains the color value. Which means the key for the following two colors is the same: 0xFF000000 0x00000000 Because of the int storage and the use of the (constant in this case) asset cookie, the alpha channel of a color is ignored. That means that if you first load an opaque black color (0xFF000000), subsequent loads of a totally transparent black color (0x00000000) will give you an opaque black color. A workaround is to use a transparent color that is not black, 0x00000001 for instance. Note that this issue would arise with any color and any opacity level. The solution to fix this issue is simply to change the cache to use longs instead of ints to represent the keys. A key thus becomes: TypedValue.assetCookie << 32 | TypedValue.data This allows us correct storage of all colors at the cost of a few bytes. The tradeoff is that we can keep caching ColorDrawable, which is definitely worth it.
esources.java
|
e5fb328825995aa33b5b7ecf8b5bee2b17f81715 |
10-Jun-2009 |
Mitsuru Oshima <oshima@google.com> |
resolution support fix/improvement * adding compatibility menu * backup gravity * set expanable=true if the screen size is hvga * density. * added "supports any density" mode. I'll add sdk check later. * disallow to catch orientation change event if the app is not expandable. This was causing layout problem under non-expandable mode. I discussed this with Mike C and we agreed to do this approach for now. We'll revisit if this causes problem to a lot of applications.
ompatibilityInfo.java
esources.java
|
2f5e6b2d31f445a4e9faf3a7ace94f9ef6948336 |
05-Jun-2009 |
Mitsuru Oshima <oshima@google.com> |
A workaround to fix rotation issue. I'm remote now and hard to do troubleshooting (i cannot rotate emulator in nx..)
ompatibilityInfo.java
|
9189cabb0b6c6c28232fe6f412b7ba7a37352a6a |
03-Jun-2009 |
Mitsuru Oshima <oshima@google.com> |
* Moved supports-density tag under manifest * Refactored Compatibility code * Added CompatibilityInfo class * Removed getApplicationScale from Context * Added Resources#getCompatibilityInfo so that RootView can get the compatibility info w/o going through Context * Expandable support * Added expandable tag under manifest * Old application w/o expandable is given the default screen size ([320, 480] x density). * The non-expandable window is centered.
ompatibilityInfo.java
esources.java
|
963cd006c45716b034f656bf7e7179e6476f7e4d |
29-May-2009 |
Bjorn Bringert <bringert@android.com> |
Allow creating AssetFileDescriptors for MemoryFiles. This allows content providers to use in-memory data to implement ContentProvider.openAssetFile(), instead of just normal files and sockets as before. To test cross-process use of AssetFileDescriptors for MemoryFiles, a test content provider and a client for it are added to AndroidTests. Fixes http://b/issue?id=1871731
ssetFileDescriptor.java
|
13735a255dedd2c2e3b0cff66f0be2e17671f553 |
29-Apr-2009 |
Mitsuru Oshima <> |
Merge branch 'readonly-p4-donut' into donut
|
8169daed2f7a8731d478b884b1f455c747b88478 |
29-Apr-2009 |
Mitsuru Oshima <> |
AI 147976: Compatibility mode support. Part 2. * Introduced ApplicationScale (may not be good name. CompatibilityScale? CanvasScale? Pls let me know if you have better idea) * Changes to RootView / SurfaceView - Makes the app believe it's running in the supported density/resolution. - Makes the window manager believe it's running at the right density/resolution. * Added methods to Rect/Event for scaling up/down. Known issues: * certain kind of images (such as nine patch for buttons) seesm to be loaded not by app, thus does not take the scale into account, which, in turn, is causing layout issue. * ZoomButton in MapView is rendered in wrong place * Transparent region on Surface is not correct * Specifying different densities in one process is not working. BUG=1770627 Automated import of CL 147976
esources.java
|
1d442e0d990b581357f33f5463c7c5cb49b551e8 |
21-Apr-2009 |
Dianne Hackborn <hackbod@google.com> |
More optimization of dumpsys output. There are three major classes of changes here: - Avoid writing lines where their values are often empty, false, or some other typical thing. - Use partial writes to the PrintWriter to avoid creating temporary strings. - Use StringBuilder where we need to generate real String objects (and where possible cache the result).
onfiguration.java
|
f8a7ceaef2e7d5cd530c9426bde91b6fa9a40b75 |
11-Apr-2009 |
Andy Stadler <> |
AI 145778: Manual merge changes 145382-145384 from cupcake. Automated import of CL 145778
onfiguration.java
esources.java
|
c39a6e0c51e182338deb8b63d07933b585134929 |
11-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@137873
olorStateList.java
|
b2a3dd88a53cc8c6d19f6dc8ec4f3d6c4abd9b54 |
09-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@137197
ssetManager.java
|
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 |
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
ssetFileDescriptor.java
ssetManager.java
olorStateList.java
onfiguration.aidl
onfiguration.java
luralRules.java
esources.java
tringBlock.java
ypedArray.java
mlBlock.java
mlResourceParser.java
ackage.html
|
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 |
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
ssetFileDescriptor.java
ssetManager.java
olorStateList.java
onfiguration.aidl
onfiguration.java
luralRules.java
esources.java
tringBlock.java
ypedArray.java
mlBlock.java
mlResourceParser.java
ackage.html
|
076357b8567458d4b6dfdcf839ef751634cd2bfb |
03-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@132589
ssetFileDescriptor.java
olorStateList.java
esources.java
tringBlock.java
ypedArray.java
|
3dec7d563a2f3e1eb967ce2054a00b6620e3558c |
03-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@137055
ssetFileDescriptor.java
olorStateList.java
esources.java
tringBlock.java
ypedArray.java
|
d24b8183b93e781080b2c16c487e60d51c12da31 |
11-Feb-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@130745
olorStateList.java
esources.java
|
f013e1afd1e68af5e3b868c26a653bbfb39538f8 |
18-Dec-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Code drop from //branches/cupcake/...@124589
olorStateList.java
onfiguration.java
luralRules.java
esources.java
tringBlock.java
|
54b6cfa9a9e5b861a9930af873580d6dc20f773c |
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
ssetFileDescriptor.java
ssetManager.java
olorStateList.java
onfiguration.aidl
onfiguration.java
luralRules.java
esources.java
tringBlock.java
ypedArray.java
mlBlock.java
mlResourceParser.java
ackage.html
|