Commit Graph

382 Commits

Author SHA1 Message Date
Xavier Ducrohet
14fff84f14 Add support for Keyboard state "Soft"
Change-Id: Ief65b3988973fb3b3d9edbbb99df9354ffe85663
2009-09-22 14:16:26 -07:00
Xavier Ducrohet
54bc097702 Update the SDK/AVD manager toolbar icon tooltip to be consistent.
Change-Id: Ie4c98537035e11543dd22b870880d52506ca1b99
2009-09-21 17:20:48 -07:00
Android (Google) Code Review
5d0e8840cd Merge change 24500 into eclair
* changes:
  ADT GLE: support multiple selection and alternate selection.
2009-09-10 16:35:13 -04:00
Raphael
fc033f2836 ADT GLE: support multiple selection and alternate selection.
Change-Id: Ia7ce5fb2365898fdcae73eacbaf6d08b091d7586
2009-09-09 23:53:01 -07:00
Xavier Ducrohet
171125f678 Add preferences to DDMS (plug-in/standalone) for adb time out.
Change-Id: Ia48221e33ee5ffae4f381aa29bd99a62b148108e
2009-09-08 14:44:02 -07:00
Xavier Ducrohet
2cc9724024 GLE: remove mcc/mnc, add clipping support.
Change-Id: I9fc2ee167436ba234c6f09b1635f45b34b461c2e
2009-09-08 11:27:56 -07:00
Raphael
9135db1149 ADT: Display selection and mouse hover in GLE canvas.
Change-Id: Icc2f8331a099905d6e1aaa52b36cc17a7190cc4b
2009-09-04 17:59:56 -07:00
Android (Google) Code Review
0eb96d6433 Merge change 24047 into eclair
* changes:
  ADT: fix an NPE that can happen when an XML file resource is being refreshed by Eclipse whilst the SDK is not finished loading.
2009-09-04 17:56:34 -07:00
Raphael
6e1ee87955 ADT: fix an NPE that can happen when an XML file resource is being
refreshed by Eclipse whilst the SDK is not finished loading.

Change-Id: I970255925d98f7b84a726fa37bf1fef3d25ab520
2009-09-04 17:14:37 -07:00
Xavier Ducrohet
3ce85131be Add method profiling support to DDMS.
New button allows to start/stop tracing. When clicking stop, DDMS downloads
the trace file and starts Traceview.

Also refactored some common parts of the HPROF and tracing handlers into a
common class. The goal is to have a default, extensible implementation
of the HPROF handler that DDMS and the plug-in can reuse. This will reduce
duplicated code.

Change-Id: Ifc48926c7f6f1c3ea49a4aa94053664be83cbb06
2009-09-03 16:01:27 -07:00
Android (Google) Code Review
2b6f5d17a3 Merge change 23740 into eclair
* changes:
  Add support for opening HPROF files in Eclipse.
2009-09-02 20:18:12 -07:00
Xavier Ducrohet
be6e83d5b8 Add support for opening HPROF files in Eclipse.
The action taken on successful HPROF dump can now be configured from
the plug-in preference to be either "save to disk" or "open in eclipse".

If a plug-in supporting .hprof files (such as Eclipse Memory Analyzer Tool)
is present then the file will just be opened in the tool.

"save to disk" does not convert the file, "open in eclipse" does convert
the hprof file (using hprof-conv present in the SDK)

Change-Id: Iceb347abb2af5a2979b6028c22dcbdc3bc7250ca
2009-09-02 20:16:12 -07:00
Raphael
b1e9793d66 ADT GLE: change error display to a separate sash.
This allows GEP to display both the latest error and the latest
successful rendering. The error still needs an icon and the
canvas will need to be grayed or something.

Also the LayoutCanvas will directly use the ILayoutResult and we
won't need to custom EditData in UiElementNode so the correspond
method is @deprecated (but obviously still supported for GLE1.)

Change-Id: Ia3afed836755dbd84a4511eaed0782c85a383ac9
2009-09-02 12:39:24 -07:00
Android (Google) Code Review
34103a5962 Merge change 23640 into eclair
* changes:
  Remove unused git files.
2009-09-02 11:17:32 -07:00
Xavier Ducrohet
43713c575e Remove unused git files.
Change-Id: I1501ae5bc5d8608f149f9d404e198aa9398b665b
2009-09-02 11:14:04 -07:00
Android (Google) Code Review
5a0b7395be Merge change 23546 into eclair
* changes:
  Add "Dump HPROF file" to DDMS/DDMS plugin
2009-09-02 10:54:54 -07:00
Xavier Ducrohet
d2d24351d3 Add "Dump HPROF file" to DDMS/DDMS plugin
This uses the (new in cupcake) VM command through JDWP.
Older VMs are detected through the (also new) 'FEAT' command that notifies
which features the VM supports.

The hprof file is right now saved in /sdcard. Due to donut+ apps not having
the SD Card permission by default, we may need to change this in the (near)
future.

Upon completion of the dump by the VM, DDMS will give the user a file selector
to choose a place to save the file on the host machine.

Future improvements: run (our own) hat, or hprof-conv and a standard hprof
tool (Eclipse MAT integration for instance). This should be configurable
by the user.

Change-Id: I33696b0263e3d0788ad5d90cedf3cd17393d2f9b
2009-09-01 16:29:18 -07:00
Brett Chabot
60c6de766d ADT: change continuous test ant script to run both functional and unit tests. 2009-09-01 01:06:47 -07:00
Raphael
3a5851d125 ADT: GraphicalEditorPart is the new GLE2.
This CL represents the base for the new "Graphical Editor Part".

First, GLE2 has been renamed in GraphicalEditorPart. That's the
final name, I swear I won't change it again (until next month that is.)

The editor part has 3 composites: the top ConfigConfiguration
(same as usual, reused as-is), a new PaletteComposite and a new
LayoutCanavas. This last one displays the rendering image and
will deal with interactivity.

The LayoutCanvas is actually stacked with a label which displays
the rendering error. After a rendering, either the error or the
canvas is visible, depending on the success of the operation.
That would make it easier to have a different mechanism, for example
the error could be next to the last known rendering, they don't
have to be mutually exclusive.

It is worth noting that GraphicalEditorPart is 95% similar to
the GLE1, reusing all the glue code that we had to handle
layout requestes, refresh requests, sdk/framework load listeners,
configuration and file input changes, etc.

Both PaletteComposite and LayoutCanvas are currently embryonic
at best, just to make sure the editor part is structured correctly.

Change-Id: I36c2ae4d85a68e68a349adc63a718f06375e12c5
2009-08-27 09:52:49 -07:00
Xavier Ducrohet
0614664583 Make ApkBuilder create filenames supported by older rules.
'ant install' must know the debug apk filename so newer naming scheme breaks
on older rule files (1.5 and earlier).
The fix is to check for the presence of the property naming the debug,
signed, unaligned package. If the property is present, then we use
the new naming scheme ({base}[-{config}]-debug-unaligned.apk), else we use
the old one ({base}-[-{config}]-debug.apk).

Also merge the install/reinstall targets, since 'adb install -r <file>'
works even if the apk was not yet installed.

Change-Id: Id0670610a6539a3f48c955756955f950039c3cd0
2009-08-26 14:58:56 -07:00
Xavier Ducrohet
338bc1cc45 Move from arbitrary resource filters to fix ones
Resource filters are used when generating additional APK containing only
specific resources.
The previous UI allowed for any type of filters, but we are moving to a
simpler way with fixed filters.
The first one is the density. Selecting the filter will generate 4 APKs per
application: default (all resources), hdpi (only hdpi/nodpi and default
resources), mdpi, ldpi.
2009-08-25 17:17:15 -07:00
Raphael
b8a74f4551 ADT: Fix some potential NPE in the configuration composite.
This is just based on Eclipse static analysis of potential null pointers.
It doesn't mean we were ever going to have any NPE there.

Change-Id: I2a326048d2eb6afff7598f9300f48e35495ff3c2
2009-08-25 16:19:25 -07:00
Raphael
5837c3cc34 ADT: Tag classes with "@since GLE1"
This adds a @since GLE1 to all classes involved in the current GLE
and a @since GLE2 to the new classes. The idea is that both classes
are going to be mixed in the same packages and it will help later
to remove the old GLE by just searching for this specific tag.

The alternative would be to move the classes in a sub-package
layout.gle1 vs layout.gle2, but that seems unecessary.

Change-Id: I577cd81819db4c6e0209ebbd910a393fc2182619
2009-08-25 15:29:51 -07:00
Raphael
59aac85f63 ADT: Skeleton for GLE2.
This refactors the GLE base class into an interface, to make it
possible to not depend on GEF at all.

The GLE2 editor part displays and does nothing. It's just an empty shell.
To enable, setenv USE_GLE2 to anything. Unset to remove it.

Change-Id: I7a95b4a1a5a8ddf5a3f18acf7a04b1f9b3439655
2009-08-24 20:16:28 -07:00
Xavier Ducrohet
8535518cb2 Device hardware profile for config selector in GLE
- Built-in device list for now
- Config selector in GLE is changed to only have
  - MCC/MNC
  - Locale
  - Device List
  - Device config.
2009-08-21 15:03:54 -07:00
Xavier Ducrohet
9f944d673b Add basic support for full height rendering. 2009-08-21 11:32:17 -07:00
Xavier Ducrohet
c22870b7ba am c7d0cec7: Merge change 22040 into donut
Merge commit 'c7d0cec7e83d5194c35e88b17d3acc937fa87511' into eclair

* commit 'c7d0cec7e83d5194c35e88b17d3acc937fa87511':
  Fix broken XML generated during "Extract string"
2009-08-19 22:26:20 -07:00
Xavier Ducrohet
6849e85918 Fix broken XML generated during "Extract string"
BUG: 2066455
2009-08-19 18:53:41 -07:00
Xavier Ducrohet
900234fc0a Move ConfigComposite in its own package. 2009-08-19 18:18:37 -07:00
Xavier Ducrohet
ffb7b7f81d Refactor Config UI out of Layout Editor. 2009-08-19 17:52:23 -07:00
Xavier Ducrohet
a4876df288 Update some version number for Eclair SDK. 2009-08-18 17:34:01 -07:00
Xavier Ducrohet
b182b3d8ce am b172b1a5: Merge change 21617 into donut
Merge commit 'b172b1a5b041394cfdfc11bdadb10ef051f86c08' into eclair

* commit 'b172b1a5b041394cfdfc11bdadb10ef051f86c08':
  ADT Export wizard now calls ZipAlign
2009-08-18 13:00:27 -07:00
Xavier Ducrohet
cff7894961 am f07bd569: Merge change 21242 into donut
Merge commit 'f07bd569c361969e64aaebd9da1ddab15d86d425' into eclair

* commit 'f07bd569c361969e64aaebd9da1ddab15d86d425':
  Codename in minsdkversion for release platform shows 'null' in error string
2009-08-18 08:44:54 -07:00
Xavier Ducrohet
d41eb690ed am 49ac0f9d: Merge change 21210 into donut
Merge commit '49ac0f9df009ace5175267ad60be51114ee19817' into eclair

* commit '49ac0f9df009ace5175267ad60be51114ee19817':
  Make sure that the android pref folder is always present when queried.
2009-08-18 08:44:22 -07:00
Xavier Ducrohet
6c7a34862f am 0d223cab: Merge change 21051 into donut
Merge commit '0d223cab6aa4912cfba11a9ccf8f2fcb7bb3218e' into eclair

* commit '0d223cab6aa4912cfba11a9ccf8f2fcb7bb3218e':
  Add support for the new qualifier in the config selector.
2009-08-18 08:30:38 -07:00
Xavier Ducrohet
ed235c7891 ADT Export wizard now calls ZipAlign 2009-08-17 16:07:11 -07:00
Android (Google) Code Review
f07bd569c3 Merge change 21242 into donut
* changes:
  Codename in minsdkversion for release platform shows 'null' in error string
2009-08-14 10:54:48 -07:00
Xavier Ducrohet
60775b89cd Codename in minsdkversion for release platform shows 'null' in error string 2009-08-13 21:49:14 -07:00
Android (Google) Code Review
49ac0f9df0 Merge change 21210 into donut
* changes:
  Make sure that the android pref folder is always present when queried.
2009-08-13 21:35:06 -07:00
Xavier Ducrohet
c2a9fe5249 Make sure that the android pref folder is always present when queried.
BUG: 2053511
2009-08-13 21:10:01 -07:00
Xavier Ducrohet
6d88a98af4 am 0cef5c46: Merge change 21056 into donut
Merge commit '0cef5c4666b9c77161421c8a52b7dddff42f12da' into eclair

* commit '0cef5c4666b9c77161421c8a52b7dddff42f12da':
  Add a functional test that renders all the layouts of ApiDemos
2009-08-13 18:43:57 -07:00
Xavier Ducrohet
8a6310d0e5 am 2f8d7a9f: Merge change 21036 into donut
Merge commit '2f8d7a9fffe7e6c01900a4c59a8567e8ca00264f' into eclair

* commit '2f8d7a9fffe7e6c01900a4c59a8567e8ca00264f':
  Also display error on empty minSdkVersion for preview targets.
2009-08-13 18:43:41 -07:00
Android (Google) Code Review
0d223cab6a Merge change 21051 into donut
* changes:
  Add support for the new qualifier in the config selector.
2009-08-13 14:35:44 -07:00
Xavier Ducrohet
cf2970bea8 Add support for the new qualifier in the config selector. 2009-08-13 11:51:23 -07:00
Android (Google) Code Review
0cef5c4666 Merge change 21056 into donut
* changes:
  Add a functional test that renders all the layouts of ApiDemos
2009-08-13 11:48:53 -07:00
Xavier Ducrohet
6bc7ad58df Add a functional test that renders all the layouts of ApiDemos 2009-08-13 11:47:54 -07:00
Android (Google) Code Review
2f8d7a9fff Merge change 21036 into donut
* changes:
  Also display error on empty minSdkVersion for preview targets.
2009-08-13 11:04:48 -07:00
Brett Chabot
6aaaec7dc8 am 838b1ea6: Merge change 21052 into donut
Merge commit '838b1ea6c541f2ab7e149ba7f617424dd80e9f11'

* commit '838b1ea6c541f2ab7e149ba7f617424dd80e9f11':
  Update ADT tests README
2009-08-12 21:36:22 -07:00
Android (Google) Code Review
838b1ea6c5 Merge change 21052 into donut
* changes:
  Update ADT tests README
2009-08-12 20:21:19 -07:00
Brett Chabot
851e6b2d3d Update ADT tests README
BUG 2051310
2009-08-12 19:49:03 -07:00