Merge commit '24bf2fa3e4aebc0aa311dd3a14ea60f4af56fa39' into eclair-mr2
* commit '24bf2fa3e4aebc0aa311dd3a14ea60f4af56fa39':
Add tests from layoutlib to adt-tests
Merge commit 'b6e85c0548be6b52e11e64f893cc6e5d49a740f2' into eclair-mr2
* commit 'b6e85c0548be6b52e11e64f893cc6e5d49a740f2':
Add sdklib tests to the adt-tests Unit tests.
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.
Merge commit 'e96bc57aad64d435c1986bf415cb1c5f974426b9' into eclair-mr2
* commit 'e96bc57aad64d435c1986bf415cb1c5f974426b9':
Fix best match resource selection when there's only one match.
Merge commit '06d3ec157ee7bebbf550924af267ee168336e085' into eclair-mr2
* commit '06d3ec157ee7bebbf550924af267ee168336e085':
Only process XML files in layoutopt.
Merge commit 'd01b8dd3c73add238bb4b632ece4a42e44bae126' into eclair-mr2
* commit 'd01b8dd3c73add238bb4b632ece4a42e44bae126':
Add new rules to layoutopt: UseCompoundDrawables and UselessLayout.
The UI workflow:
- user selects the new "Create project from existingsample" radio button
- user selects an SDK target in the NPW
- a popup is filled with all available samples
This also fixes 2 edge cases:
- when the selected sample contains a build|default.propertie that is
a base of the currently selected SDK target, don't reset it.
- when the user manually changes the project name or the app name for
the sample, simply empty the fields and the next selected sample
will recompute the adequate names. Any non-empty user input is never
overridden.
SDK BUG 2121819
Change-Id: I69afafa460b86942046ef6baca3d4c7ee7dbe97d
Resource with qualifiers take precedence over the ones without
even if the qualifiers are not present on the requested configuration.
Change-Id: I0d19889064e8031179ea6ee13c93a4198fe971fd
This simple dialog lets the user choose a screen size (from a fixed list) and
a resolution (as returned by SWT's Display class).
This is used by the AVD start options dialog to help users figure out
the pixel density of their monitor.
Change-Id: I3eec0e7fac850c82e836d2bc0291a491f29f516e
This is displayed when clicking the Start button in the AVD manager.
The dialog allows to easily scale the emulator to match an arbitrary screen size
and to wipe the user data if needed.
The required monitor dpi is computed using java.awt.Toolkit, but (at least
on MacOS) it doesn't return the correct value, so it can be user supplied.
It's stored at least while the app is running and if possible in the settings
of the ADV/SDK Manager/Updater.
The wipe-data and scale flags are stored and reused while the app keeps
running as well.
Change-Id: Ia2f3ff5f4de285a3d505c6914d6b89cc663be284
While the test is in the java package as the parser, it's in a different
plug-in and this prevents accessing package-protected methods.
Change-Id: Ib17765095e4da518d62ee65cb9e1987d0e22be6e
It was a display issue only, meaning the actual XML node was
being deleted but the Ui model was not updated properly. The
actual cause is that this is a mandatory node, and mandatory
nodes must stay as "fake nodes" in the Ui model. However
only one such node needs to stay in the hierarchy.
SDK BUG 2147112
Change-Id: I68e3d343bb95169865ad8dcad77004cbd51fafc3
Merge commit '91175e6fdd24e57e297580934963b32cde500fb1'
* commit '91175e6fdd24e57e297580934963b32cde500fb1':
Replace icon template with new style and multiple densities.
Merge commit '739c75d4fa45c6b141e2ac71fb8b51677327ba0b'
* commit '739c75d4fa45c6b141e2ac71fb8b51677327ba0b':
Add a copy button to the screenshot dialog.
Merge commit 'dcec68b99c0cc33a7f73fe3c2b0ef261e1e53a07'
* commit 'dcec68b99c0cc33a7f73fe3c2b0ef261e1e53a07':
Add support for xdpi and ydpi in the device config for the GLE.