Commit Graph

2598 Commits

Author SHA1 Message Date
Marco Nelissen
42dbb8b92b Three implementations of a live wallpaper showing a spinning cube.
One very basic, one slightly more elaborate (selectable shape, settings panel), and one that uses renderscript.
2009-10-06 16:11:00 -07:00
Xavier Ducrohet
09c9ce619c am b5c18403: Merge change Idc3d3b2f into eclair
Merge commit 'b5c1840392bf93edd8caaefb7136b46f2b369773' into eclair-mr2

* commit 'b5c1840392bf93edd8caaefb7136b46f2b369773':
  Moved the test data to their own package.
2009-10-06 15:28:16 -07:00
Android (Google) Code Review
b5c1840392 Merge change Idc3d3b2f into eclair
* changes:
  Moved the test data to their own package.
2009-10-06 18:19:28 -04:00
Romain Guy
0a4a1a549b am 2aaa22e0: Merge change Id7515f9a into eclair
Merge commit '2aaa22e0575faf6c83990233333fbf010fa46ef3' into eclair-mr2

* commit '2aaa22e0575faf6c83990233333fbf010fa46ef3':
  New rules for layoutopt: IncorrectHeight/WidthIn[Horizontal]ScrollView, UselessView.
2009-10-06 15:05:06 -07:00
Android (Google) Code Review
2aaa22e057 Merge change Id7515f9a into eclair
* changes:
  New rules for layoutopt: IncorrectHeight/WidthIn[Horizontal]ScrollView, UselessView.
2009-10-06 17:56:15 -04:00
Xavier Ducrohet
be4c214e44 am 8f242703: Merge change I56443773 into eclair
Merge commit '8f242703341e616f9239706a27f5ecb675f808e7' into eclair-mr2

* commit '8f242703341e616f9239706a27f5ecb675f808e7':
  Add support for loading 9-patch from a stream.
2009-10-06 12:44:24 -07:00
Xavier Ducrohet
80954af311 am 89482588: Merge change Iddb7f466 into eclair
Merge commit '894825887e9668872c1925704afcf3340b7c009b' into eclair-mr2

* commit '894825887e9668872c1925704afcf3340b7c009b':
  Put kxml back in adt-test
2009-10-06 12:44:20 -07:00
Android (Google) Code Review
8f24270334 Merge change I56443773 into eclair
* changes:
  Add support for loading 9-patch from a stream.
2009-10-06 15:35:46 -04:00
Xavier Ducrohet
db9d3e2baf Add support for loading 9-patch from a stream.
This will be used by the tests.
Also added the eclipse project files.

Change-Id: I56443773d90594475fc3f14464d48e56d5a1bbb5
2009-10-06 12:10:42 -07:00
Xavier Ducrohet
3f71486cbd Moved the test data to their own package.
This allows us to select the whole package for binary inclusion
in adt-test (which doesn't automatically take any non java file for
packaging)

Change-Id: Idc3d3b2f27623de1b0fccd7e01dd88948923081c
2009-10-06 12:06:46 -07:00
Romain Guy
1e2cbdfa84 New rules for layoutopt: IncorrectHeight/WidthIn[Horizontal]ScrollView, UselessView.
This change also refactors the uix library to remove an unnecessary class (LayoutNode.)
The refactoring helps writing cleaner script by accessing only the node object instead
of xml and node. This change also augment the capabilities of the node in Groovy scripts.

Change-Id: Id7515f9a79826909834d82496a6d9dfbc19988ad
2009-10-06 11:42:02 -07:00
Android (Google) Code Review
894825887e Merge change Iddb7f466 into eclair
* changes:
  Put kxml back in adt-test
2009-10-06 14:16:58 -04:00
Romain Guy
8e2c602625 am 16a56b8c: Fix NPE in layoutopt when trying to open non-XML files.
Merge commit '16a56b8ccd39c812c8c7b86bd83ec9c492d19de9' into eclair-mr2

* commit '16a56b8ccd39c812c8c7b86bd83ec9c492d19de9':
  Fix NPE in layoutopt when trying to open non-XML files.
2009-10-06 11:11:42 -07:00
Romain Guy
16a56b8ccd Fix NPE in layoutopt when trying to open non-XML files.
Change-Id: I59900c35996ce4465e2ecfd2eb26a19e3fa66403
2009-10-06 10:51:05 -07:00
Xavier Ducrohet
cce979fcf5 Put kxml back in adt-test
Since adt doesn't export the package, it's just easier that way.

Change-Id: Iddb7f4660ccc0bc51374128a544975596cb051aa
2009-10-06 10:45:18 -07:00
Romain Guy
426a5b44d8 am d9050e61: Merge change Idc9b152e into eclair
Merge commit 'd9050e6102fb37c8f5df02dbfd17cac728b9f0e4' into eclair-mr2

* commit 'd9050e6102fb37c8f5df02dbfd17cac728b9f0e4':
  Add layoutopt to the SDK.
2009-10-06 10:14:25 -07:00
Android (Google) Code Review
d9050e6102 Merge change Idc9b152e into eclair
* changes:
  Add layoutopt to the SDK.
2009-10-06 13:05:53 -04:00
Xavier Ducrohet
1651a351c0 am 67d9bcdf: Only create folder if not present.
Merge commit '67d9bcdf5cfe8c2862280ea6e55c4beed05432ef' into eclair-mr2

* commit '67d9bcdf5cfe8c2862280ea6e55c4beed05432ef':
  Only create folder if not present.
2009-10-05 21:06:37 -07:00
Xavier Ducrohet
67d9bcdf5c Only create folder if not present.
Change-Id: I77673e0f43d7a00f42e2a97663bd9aed2aaf09f2
2009-10-05 20:55:13 -07:00
Xavier Ducrohet
fab088f454 am 8251e4ef: Merge change Iab62c8e9 into eclair
Merge commit '8251e4ef4672be54a3f38748c05fd66c967c64b4' into eclair-mr2

* commit '8251e4ef4672be54a3f38748c05fd66c967c64b4':
  Add layoutlib.jar to the classpath of adt-tests
2009-10-05 20:20:11 -07:00
Android (Google) Code Review
8251e4ef46 Merge change Iab62c8e9 into eclair
* changes:
  Add layoutlib.jar to the classpath of adt-tests
2009-10-05 23:09:40 -04:00
Xavier Ducrohet
4aab78e0b9 Add layoutlib.jar to the classpath of adt-tests
Change-Id: Iab62c8e9849873e91640484c70110660aabd4b8e
2009-10-05 20:08:31 -07:00
Xavier Ducrohet
c3bcbabdcf am ee7c4739: Merge change Ic1eff784 into eclair
Merge commit 'ee7c473929c62bb9f9f0e21e9ca850174b9041a1' into eclair-mr2

* commit 'ee7c473929c62bb9f9f0e21e9ca850174b9041a1':
  Fix script (and build)
2009-10-05 19:44:34 -07:00
Romain Guy
9d489ddff9 Add layoutopt to the SDK.
Change-Id: Idc9b152e2a5abffaa9feb2cf70791d8288cfa1dd
2009-10-05 19:38:40 -07:00
Android (Google) Code Review
ee7c473929 Merge change Ic1eff784 into eclair
* changes:
  Fix script (and build)
2009-10-05 22:35:24 -04:00
Xavier Ducrohet
ef6dcb646c Fix script (and build)
Change-Id: Ic1eff7843219c42867e477ad8bfbdf89167a0061
2009-10-05 19:33:35 -07:00
Romain Guy
104f9a747d am b7e69d20: Merge change Ic8fe0b36 into eclair
Merge commit 'b7e69d20a42297d0d80a0a0a0f88320d8e536ff5' into eclair-mr2

* commit 'b7e69d20a42297d0d80a0a0a0f88320d8e536ff5':
  Add 3 more rules to layoutopt/uix:
2009-10-05 18:15:03 -07:00
Android (Google) Code Review
b7e69d20a4 Merge change Ic8fe0b36 into eclair
* changes:
  Add 3 more rules to layoutopt/uix: - InefficientWeight - NestedScrollingWidgets - TooManyChildren
2009-10-05 21:07:00 -04:00
Romain Guy
4796120e05 Add 3 more rules to layoutopt/uix:
- InefficientWeight
- NestedScrollingWidgets
- TooManyChildren

Change-Id: Ic8fe0b36e0a7cac523d223e5f8d96d7959919da6
2009-10-05 18:05:44 -07:00
Dianne Hackborn
6677ac2777 am d2fc4352: Merge change I6b618094 into eclair
Merge commit 'd2fc4352293b3c9c3a3570a52826f6d98d0d052c' into eclair-mr2

* commit 'd2fc4352293b3c9c3a3570a52826f6d98d0d052c':
  Fix build.
2009-10-05 17:42:28 -07:00
Android (Google) Code Review
d2fc435229 Merge change I6b618094 into eclair
* changes:
  Fix build.
2009-10-05 20:36:06 -04:00
Dianne Hackborn
42abc11092 Fix build.
Change-Id: I6b6180942d102745bd5717fcc5d0ea9e00211f18
2009-10-05 17:35:26 -07:00
Xavier Ducrohet
6261190466 am 24bf2fa3: Add tests from layoutlib to adt-tests
Merge commit '24bf2fa3e4aebc0aa311dd3a14ea60f4af56fa39' into eclair-mr2

* commit '24bf2fa3e4aebc0aa311dd3a14ea60f4af56fa39':
  Add tests from layoutlib to adt-tests
2009-10-05 17:10:56 -07:00
Nicolas Catania
1925281cfa New module to compile android packages from emacs. 2009-10-05 16:51:09 -07:00
Xavier Ducrohet
24bf2fa3e4 Add tests from layoutlib to adt-tests
Change-Id: Ia7bac7fad90b77fe34fb4a4371d6d5945993efe9
2009-10-05 15:57:17 -07:00
Xavier Ducrohet
9eb66652e4 am b6e85c05: Merge change Ieb4e722b into eclair
Merge commit 'b6e85c0548be6b52e11e64f893cc6e5d49a740f2' into eclair-mr2

* commit 'b6e85c0548be6b52e11e64f893cc6e5d49a740f2':
  Add sdklib tests to the adt-tests Unit tests.
2009-10-05 14:52:17 -07:00
Android (Google) Code Review
b6e85c0548 Merge change Ieb4e722b into eclair
* changes:
  Add sdklib tests to the adt-tests Unit tests.
2009-10-05 17:45:04 -04:00
Brett Chabot
af86962d86 am 6cc64cd2: Merge change I90b4c0e7 into eclair
Merge commit '6cc64cd26d1ce9319dd2f430b564b8b2de9b482f' into eclair-mr2

* commit '6cc64cd26d1ce9319dd2f430b564b8b2de9b482f':
  Fix Eclipse sample tests.
2009-10-05 14:35:14 -07:00
Android (Google) Code Review
6cc64cd26d Merge change I90b4c0e7 into eclair
* changes:
  Fix Eclipse sample tests.
2009-10-05 17:26:31 -04:00
Android (Google) Code Review
c2c1efc02f Merge change I27666897 into eclair-mr2
* changes:
  Make robot.png a raw resource.
2009-10-05 17:00:09 -04:00
Jack Palevich
27666897d0 Make robot.png a raw resource.
After all, it's being used as a raw resource.
2009-10-05 13:59:20 -07:00
Android (Google) Code Review
888dfd731b Merge change Ia7a9186b into eclair-mr2
* changes:
  Remove non-working high-res robot texture.
2009-10-05 16:44:20 -04:00
Jack Palevich
a7a9186b12 Remove non-working high-res robot texture.
This was added with good intentions, as part of the general drive to
provide high-res textures.

Unfortunately, most OpenGL ES drivers require that a texture's dimensions
be a power of two on each side. The original texture was 128 x 128, and
someone helpfully created a 192 x 192 high res texture. But 192 is not
a power of two, so the hihg-res texture would not render.

We could create a 256 x 256 texture, which would work, but that's not
really needed for this particular texture, and we'd prefer if the
texture stayed small for rendering performance reasons.
2009-10-05 13:40:44 -07:00
Brett Chabot
071276efbd Fix Eclipse sample tests. 2009-10-05 13:39:38 -07:00
Xavier Ducrohet
b7d28abce3 Add sdklib tests to the adt-tests Unit tests.
Change-Id: Ieb4e722b1b5a29cef250e2cb5575a71e09f956c3
2009-10-05 13:01:11 -07:00
Xavier Ducrohet
0dda405c6e am e96bc57a: Merge change I7d761ffa into eclair
Merge commit 'e96bc57aad64d435c1986bf415cb1c5f974426b9' into eclair-mr2

* commit 'e96bc57aad64d435c1986bf415cb1c5f974426b9':
  Fix best match resource selection when there's only one match.
2009-10-05 12:42:12 -07:00
Romain Guy
8fbe805f16 am 06d3ec15: Only process XML files in layoutopt.
Merge commit '06d3ec157ee7bebbf550924af267ee168336e085' into eclair-mr2

* commit '06d3ec157ee7bebbf550924af267ee168336e085':
  Only process XML files in layoutopt.
2009-10-05 12:42:08 -07:00
Romain Guy
1db3cfa4f8 am d01b8dd3: Merge change I5dfb2567 into eclair
Merge commit 'd01b8dd3c73add238bb4b632ece4a42e44bae126' into eclair-mr2

* commit 'd01b8dd3c73add238bb4b632ece4a42e44bae126':
  Add new rules to layoutopt: UseCompoundDrawables and UselessLayout.
2009-10-05 12:42:04 -07:00
Android (Google) Code Review
e96bc57aad Merge change I7d761ffa into eclair
* changes:
  Fix best match resource selection when there's only one match.
2009-10-05 15:29:16 -04:00
Xavier Ducrohet
98fcd41e1f Fix best match resource selection when there's only one match.
Was using the wrong index.

Change-Id: I7d761ffa553f0aeec176a4752185dde238991e5e
2009-10-05 12:15:08 -07:00