summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Add notice files for aapt and aidl.Xavier Ducrohet2011-02-282-0/+380
| | | | Change-Id: I51da138475618287760043059790aba87f4c3f35
* am b732b7b5: am ce57a7f3: am 6504490c: am dff6b8e7: Merge "Add ↵Xavier Ducrohet2011-02-283-6/+20
|\ | | | | | | | | | | | | | | | | | | | | | | | | --non-constant-id to aapt." * commit 'b732b7b5e8192501360edc15fb8c6399d11fb97d': GpsLocationProvider: Clean up HAL initialization/cleanup sequence Fixed GSM encoded network initiated position request Ensuring thread-safe usage of DateFormat. Fixing infinite loop for zero duration. Fix for an infinite loop while scrolling lists. WAPPushManager, WAP Push over SMS message handler Add --non-constant-id to aapt.
| * am ce57a7f3: am 6504490c: am dff6b8e7: Merge "Add --non-constant-id to aapt."Xavier Ducrohet2011-02-283-6/+20
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ce57a7f35344e76689d30f45964d1e37b78280cb': GpsLocationProvider: Clean up HAL initialization/cleanup sequence Fixed GSM encoded network initiated position request Ensuring thread-safe usage of DateFormat. Fixing infinite loop for zero duration. Fix for an infinite loop while scrolling lists. WAPPushManager, WAP Push over SMS message handler Add --non-constant-id to aapt.
| | * am 6504490c: am dff6b8e7: Merge "Add --non-constant-id to aapt."Xavier Ducrohet2011-02-283-6/+20
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6504490cde3ec5d48321d539e654d1f2072b33f9': GpsLocationProvider: Clean up HAL initialization/cleanup sequence Fixed GSM encoded network initiated position request Ensuring thread-safe usage of DateFormat. Fixing infinite loop for zero duration. Fix for an infinite loop while scrolling lists. WAPPushManager, WAP Push over SMS message handler Add --non-constant-id to aapt.
| | | * am dff6b8e7: Merge "Add --non-constant-id to aapt."Xavier Ducrohet2011-02-283-6/+20
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'dff6b8e71dda9f5d841fa26408714aec2aef1505': GpsLocationProvider: Clean up HAL initialization/cleanup sequence Fixed GSM encoded network initiated position request Ensuring thread-safe usage of DateFormat. Fixing infinite loop for zero duration. Fix for an infinite loop while scrolling lists. WAPPushManager, WAP Push over SMS message handler Add --non-constant-id to aapt.
| | | | * Add --non-constant-id to aapt.Xavier Ducrohet2011-02-143-6/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This option enbables creating resource constant in the R class that are not actual constant, but simply static fields. The goal is to build library projects with these types of IDs so that the constant does not get inlined in the library code, since the ID for the library resources only are not the final values. The final resource IDs, generated from the main project and its library(ies), will have proper constant with the final values. This allows us to generate binary library bundle (a jar file and associated resources) that can be distributed. Additionally, this will let us make the library project support in Eclipse much more robust and a better user experience overall. Change-Id: Ibe2f08d68493fde658fc3f7606abf7446f312ad2
| | * | | am 1175ef7e: Merge "LayoutLib: Adapt the HC layoutlib to GB. do not merge." ↵Xavier Ducrohet2011-02-2440-1422/+296
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into gingerbread * commit '1175ef7e2e4f68532d8ade672d7f5502d9946ce4': LayoutLib: Adapt the HC layoutlib to GB. do not merge.
| | | * | | LayoutLib: Adapt the HC layoutlib to GB. do not merge.Xavier Ducrohet2011-02-2340-1422/+296
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I0b2016987a65fabbc0ce7011514543349e9fb929
| * | | | | resolved conflicts for merge of 86e43034 to honeycomb-plus-aospXavier Ducrohet2011-02-2461-539/+1436
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | Change-Id: Ia9ad4c3b79821fef6ab8493f4c93ca58f877f9ce
| | * | | | resolved conflicts for merge of a4350fc0 to gingerbread-plus-aospXavier Ducrohet2011-02-24138-8365/+17266
| | |\ \ \ \ | | | |/ / / | | | | / / | | | |/ / | | |/| | Change-Id: I065af5d555fa2197847ad47c84003dcd11fe26c7
| | | * | LayoutLib: Original import of Honeycomb's layoutlib. do not merge.Xavier Ducrohet2011-02-23141-8401/+17623
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | frameworks/base.git @ f0a53435f14d23d9555fc46014352ee6a7baa647 Change-Id: Ibc215751693dc7650683b61bb458f7c8beaf8060
* | | | | LayoutLib: fix incorrect indices in one of the 2 native_drawTextRun methods.Xavier Ducrohet2011-02-241-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes http://b.android.com/15007 Change-Id: Iff06180def92c5fa25e82520b76192c089edd8cc
* | | | | LayoutLib: move tests to their own project.Xavier Ducrohet2011-02-2412-66/+67
| | | | | | | | | | | | | | | | | | | | Change-Id: I8a9e128e4a17ab57ec7b126a378035d9ce5bc168
* | | | | LayoutLib: Add debug mode.Xavier Ducrohet2011-02-2316-14/+62
| | | | | | | | | | | | | | | | | | | | Change-Id: If4263c7dba63a063f84e0c6988c270eb6d291ac3
* | | | | LayoutLib: downsize the SparseArray when possible.Xavier Ducrohet2011-02-231-3/+11
| | | | | | | | | | | | | | | | | | | | Change-Id: I570b93ab161414b7729f8d2dce8ddadb706f186b
* | | | | LayoutLib: misc fixes.Xavier Ducrohet2011-02-234-27/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - implement some Paint methods that are needed for 2.x - fix the phone system bar to display the icons on the right. Change-Id: I3a938b14ec9a449dbc23a33303a3c8405a5369a8
* | | | | LayoutLib: Hold onto delegate references.Xavier Ducrohet2011-02-2337-141/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When an object is given a delegate to hold onto, keep the reference to the delegate instead of its native integer. Also change the way the finalizer works by not explicitely deleting the delegate. Instead we want the delegate to be deleted when nothing holds a reference to it. To do this, instead of using a regular SparseArray, we use a SparseArray of WeakReferences. Because the main Java object that "owns" the delegate does not actually holds a reference to the delegate, we fake this by having the delegate manager hold a reference to delegates for the main object. This is added/removed as the object is created and the native finalized is called. This makes layoutlib behave more like the JNI code where the native objects are reference counted, and where the Java object can be deleted but the delegate it owns is kept around (usually because another type of delegates hold a reference on it.) To properly handle the WeakReferences, we need to be able to regularly clear the SparseArray of WeakReference that were referencing objects that have been GC'ed. Since the SparseArray is regularly being compacted (actually only when items are removed), we use a custom SparseWeakArray (started as a straight copy of SparseArray) that handles the WeakReference and takes care of compacting the array by removing deleted indices and WeakReference that returns null. Since our specific use case doesn't call actually delete() or remove(), the compacting only happens when the array needs to be resized. Change-Id: Iacc5c1ff5b21732b8816fda87eb090da12d034e0
* | | | | LayoutLib: Import of SparseArray as SparseWeakArray.Xavier Ducrohet2011-02-231-0/+338
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a straight copy for easy review of the customization. Change-Id: I351ec570c3e7a025561939ab05c1ae7eded30b38
* | | | | Add new axes for joysticks and mouse wheels.Jeff Brown2011-02-191-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added API on InputDevice to query the set of axes available. Added API on KeyEvent and MotionEvent to convert keycodes and axes to symbolic name strings for diagnostic purposes. Added API on KeyEvent to query if a given key code is a gamepad button. Added a new "axis" element to key layout files to specify the mapping between raw absolute axis values and motion axis ids. Expanded the axis bitfield to 64bits to allow for future growth. Modified the Makefile for keyboard prebuilts to run the keymap validation tool during the build. Added layouts for two game controllers. Added default actions for game pad button keys. Added more tests. Fixed a bunch of bugs. Change-Id: I73f9166c3b3c5bcf4970845b58088ad467525525
* | | | | LayoutLib: remove assert in resource resolution.Xavier Ducrohet2011-02-181-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These code paths were valid in case there's a mismatch between the style/theme/version of Android Change-Id: I8cb3b2a3f3a1ef5c37ccec0c8ddbb7add69bfbe0
* | | | | LayoutLib: support defStyleRes in obtainStyledAttributes.Xavier Ducrohet2011-02-181-24/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix the Spinner rendering. Change-Id: I20a71d9e07f6c86652a74fba3fc05a027a057ff8
* | | | | LayoutLib: properly handle @null references in more places.Xavier Ducrohet2011-02-181-0/+24
| | | | | | | | | | | | | | | | | | | | Change-Id: I240298ab79c19ab0e49cb6da19d6b0187493d3b5
* | | | | LayoutLib: add support for layout_only render.Xavier Ducrohet2011-02-172-42/+49
| | | | | | | | | | | | | | | | | | | | Change-Id: I1cd791cf9560156c1ac488f8e454240c84e29cc6
* | | | | am 1858c95e: am 02d2b5a4: LayoutLib: When possible ensure parsers are popped ↵Xavier Ducrohet2011-02-145-21/+46
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | from the stack. * commit '1858c95e99f81ac46eea93288cb8866260b3d5d8': LayoutLib: When possible ensure parsers are popped from the stack.
| * | | | am 02d2b5a4: LayoutLib: When possible ensure parsers are popped from the stack.Xavier Ducrohet2011-02-145-21/+46
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit '02d2b5a4031c80bfe1012ce2f4f7b3695762abd9': LayoutLib: When possible ensure parsers are popped from the stack.
| | * | | | LayoutLib: When possible ensure parsers are popped from the stack.Xavier Ducrohet2011-02-145-21/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some parser consumers (seems to be mostly resource inflation) don't use the pull parser up to the END_DOCUMENT tag, making the parser not pop itself from the parser stack automatically. This is likely due to the XML resources being very shallow (1-2 levels max), and the inflater just reading the content that it expects instead of parsing till the document is done. This ensures that *some* parsers are pop'ed from the stack when used. Some other parsers we don't really control and hope the user will parse till END_DOCUMENT. Change-Id: Ie1f5762983fed2b2ae97b896218ae12b493e7ad9
* | | | | | LayoutLib: remove some exceptions.Xavier Ducrohet2011-02-095-46/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to move away from throwing anything and instead log errors/warnings. Change-Id: Ib1af71a90c06e8565fbd0c061ba56f4d19baa3df
* | | | | | LayoutLib: Annotate the custom delegate methods.Xavier Ducrohet2011-02-0950-271/+540
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Every method implementing a delegate needed by the layoutlib_create bytecode modification must now be annotated with LayoutlibDelegate. The methods in the original source code that are delegated are already automatically annotated. Now with the implementations being annotated we can do bi-directional tests and find not only missing implementations but also dead obsolete code. This will be useful when backporting to earlier versions of Android, or when native (non public) method disappear. In fact, the new test detected one such method in Shader. Change-Id: I491708b68ac2736ca5669aa86cd5e930a00f9db3
* | | | | | LayoutLib: now depends on tools-common-prebuilt.Xavier Ducrohet2011-02-092-2/+2
|/ / / / / | | | | | | | | | | | | | | | Change-Id: I11196c2363da378027fb8ca001e7dce0f58f657f
* | | | | am dc3fc3dc: Merge "LayoutLib: fix the background of title/action bars." ↵Xavier Ducrohet2011-02-084-13/+30
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | into honeycomb * commit 'dc3fc3dc2717461113a2963c224cb190457599d8': LayoutLib: fix the background of title/action bars.
| * | | | LayoutLib: fix the background of title/action bars.Xavier Ducrohet2011-02-074-13/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The bars are supposed to sit on top of the window so that if they are transparent (which is the default case for the action bar), the window background shows through. Fix this using a layout to represent the window content (all but the system bar) in which the title/action bars and the layout content sits. This layout receives the windowBackground drawable. Change-Id: I8072c5ff52f585fa32acb589d8526e1c13cbcd94
* | | | | am 4dd2299d: LayoutLib: Update to latest API fix.Xavier Ducrohet2011-02-071-1/+1
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit '4dd2299d5766bf14479578772a0946c5399a0158': LayoutLib: Update to latest API fix.
| * | | | LayoutLib: Update to latest API fix.Xavier Ducrohet2011-02-071-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I5147010e4f16a5c2ea0b98709c42f7ecd9412ff6
* | | | | am 62a99c0b: Merge "LayoutLib: Handle color state list in methods returning ↵Xavier Ducrohet2011-02-071-7/+4
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | an int." into honeycomb * commit '62a99c0b3bca70262ab205a5688ff69cbbbaee78': LayoutLib: Handle color state list in methods returning an int.
| * | | | Merge "LayoutLib: Handle color state list in methods returning an int." into ↵Xavier Ducrohet2011-02-071-7/+4
| |\ \ \ \ | | | | | | | | | | | | | | | | | | honeycomb
| | * | | | LayoutLib: Handle color state list in methods returning an int.Xavier Ducrohet2011-02-061-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ia35ea09b992a239873026c7ef1629a01dd2e6cec
* | | | | | am 83d72da7: Merge "LayoutLib: improved rendering for system/title/action ↵Xavier Ducrohet2011-02-0614-131/+251
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bars." into honeycomb * commit '83d72da7f69f71fd20bd11fc4f98166532136248': LayoutLib: improved rendering for system/title/action bars.
| * | | | | LayoutLib: improved rendering for system/title/action bars.Xavier Ducrohet2011-02-0614-131/+251
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I926531e9ad4a7b98e04e23cac3837794f7c89449
* | | | | | am 35064e5e: Merge "LayoutLib: add implementation of ↵Xavier Ducrohet2011-02-043-6/+178
|\ \ \ \ \ \ | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bridge.renderDrawable()" into honeycomb * commit '35064e5e3a04bda6211166630ccd49d522a8bd92': LayoutLib: add implementation of Bridge.renderDrawable()
| * | | | | LayoutLib: add implementation of Bridge.renderDrawable()Xavier Ducrohet2011-02-043-6/+178
| |/ / / / | | | | | | | | | | | | | | | Change-Id: Ic4d96488fd1a2e5b7d24353bebc8fdb24262c1d1
* | | | | am b0d34f9c: LayoutLib: split RenderSession\'s base method into RenderAction.Xavier Ducrohet2011-02-043-244/+348
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit 'b0d34f9c99cbd43e8238c5952b19d032f02dd168': LayoutLib: split RenderSession's base method into RenderAction.
| * | | | LayoutLib: split RenderSession's base method into RenderAction.Xavier Ducrohet2011-02-043-244/+348
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow us to create RenderDrawable that extends RenderAction. Change-Id: If9cd350453ceffae4859a925a7b436502b311f9c
* | | | | am 1126422e: LayoutLib: update to the new API.Xavier Ducrohet2011-02-042-7/+8
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit '1126422ee1f532d8582a4e3b56dbfe505c15e775': LayoutLib: update to the new API.
| * | | | LayoutLib: update to the new API.Xavier Ducrohet2011-02-042-7/+8
| | | | | | | | | | | | | | | | | | | | Change-Id: Ice028933cd2270c81c3d17f7bef7c5a9d14bd802
* | | | | am 3944b784: Merge "LayoutLib: Replace custom BitmapFactory by a simpler ↵Xavier Ducrohet2011-02-045-606/+136
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | delegate" into honeycomb * commit '3944b784e980b5e2cad69b2c8eb5dbc7c1fafc4a': LayoutLib: Replace custom BitmapFactory by a simpler delegate
| * | | | LayoutLib: Replace custom BitmapFactory by a simpler delegateXavier Ducrohet2011-02-045-606/+136
| | | | | | | | | | | | | | | | | | | | Change-Id: Ie61a0a5b4426e64bb71a22d76d05efa4c0865e5e
* | | | | am 331e93e5: Merge "LayoutLib: render system/title/action bars." into honeycombXavier Ducrohet2011-02-0421-201/+770
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit '331e93e5a20227665d2db8a46778b9544b91879a': LayoutLib: render system/title/action bars.
| * | | | LayoutLib: render system/title/action bars.Xavier Ducrohet2011-02-0421-201/+770
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also a few generic fixes in the layoutlib itself to support this. Change-Id: Ie3f24c9056bd3cc72f39f8a4f2c0861be15bff55
* | | | | am 5e76e0ae: Merge "LayoutLib: Fix some rendering issues" into honeycombXavier Ducrohet2011-02-032-5/+9
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit '5e76e0aea28042287553ffa21826f59f601a3d2b': LayoutLib: Fix some rendering issues
| * | | | LayoutLib: Fix some rendering issuesXavier Ducrohet2011-02-022-5/+9
| | | | | | | | | | | | | | | | | | | | Change-Id: I662a39a783de5bc7f3063f46cedaab11c7e6496e