Commit Graph

58 Commits

Author SHA1 Message Date
Xavier Ducrohet
cc004309b4 Add a copy button to the screenshot dialog.
This adds the screenshot to the clipboard.

Change-Id: I3509f2e5471588d749d67b70dd4d674cd0cd2057
2009-09-30 18:21:52 -07:00
Xavier Ducrohet
0f61aa6470 Sync DDMS/Traceview/Android version on the repository source.
All apps now read source.properties located in SDK/tools
to know which version they. This is used in about box display
and in ping usage.

Change-Id: I6620c3eb703c32bfcdfd96e6a27bffc7a123b974
2009-09-25 15:18:37 -07:00
Xavier Ducrohet
aa1939f868 Fix colSpan for screenshot display from 3 to 4 in DDMS.
Change-Id: I4cf92b2f6ee66cd6f8e9b224879d8459e82949b6
2009-09-24 19:13:26 -07:00
Xavier Ducrohet
eef2447cfd Fixed screenshot command line tool to deal with new RawImage
Also added a rotate method to DDMS.

Change-Id: I9ec2774ff0679b8b4f044341470b3dfa527f9680
2009-09-24 14:49:49 -07:00
Android (Google) Code Review
f9e2be1476 Merge change 26901 into eclair
* changes:
  Move the screenshot button above the image
2009-09-24 17:09:28 -04:00
Xavier Ducrohet
5ec5c213a9 Move the screenshot button above the image
This will help when taking screenshots of large screen devices
on laptop screens.

Change-Id: Ief7b03d2f1711970e76f4dfe6086e3ea0d606c99
2009-09-24 13:20:42 -07:00
Xavier Ducrohet
f92c16e287 Make archquery use the same VM as DDMS/Traceview
archquery is used to figure out whether the VM is 32 or 64 bit, but on
MacOS X, it used the normal "java" command while the application was
forced to use java 1.5

This could lead to cases where archquery ran in 1.6 64bit but the app
in 1.5 32 bit, creating a mismatch and make the app using the wrong
SWT version.
2009-09-24 12:27:37 -07:00
Xavier Ducrohet
9f6551b303 Disable menu items based on device/app selection.
Change-Id: I78572430c68f2c1952a118814d4b467182004e23
2009-09-22 17:38:24 -07:00
Xavier Ducrohet
7b88b7525b Add support for new framebuffer protocol over adb.
This is backward compatible with the original protocol.

Change-Id: I93e811cb7775a10af82e70f31ae66d4cd74636b5
2009-09-16 16:30:50 -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
2589180d6d First pass at making adb connection timeout configurable.
ddmlib has its own preference class, so the timeout will be read from there.

Change-Id: Id492372caceca0ee2c38bcfa7423bd40d20d5648
2009-09-08 13:45:23 -07:00
Android (Google) Code Review
1c3a3c3a61 Merge change 23909 into eclair
* changes:
  Add ddms support for contacts.
2009-09-04 14:11:50 -07:00
Ken Shirriff
a0b2bacaa4 Add ddms support for contacts.
Support the new contacts authname and the aggregation event.
2009-09-03 17:58:28 -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
Xavier Ducrohet
46093a9204 Make DDMS log way less verbose.
All the Log.i() calls were in fact debug logging, so I moved them
to Log.d()

Change-Id: I47b9cd8e85e630d61506c8c2df3baf245a706e03
2009-09-02 18:03:01 -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
Xavier Ducrohet
bc4a352b19 DDMS now queries the VM for its features.
This is a first step to support method profiling on/off and hprof dump from
DDMS.

Change-Id: Id95767b458a8405a31bcbe295bb969597f0e6e03
2009-08-31 18:06:49 -07:00
Android (Google) Code Review
ed0b01a717 am 686fddb0: Merge change 8528 into donut
Merge commit '686fddb069e0031d92453703979acd7d699cf761'

* commit '686fddb069e0031d92453703979acd7d699cf761':
  Allow override of default symbol location for native heap library resolution
2009-07-24 16:09:18 -07:00
Xavier Ducrohet
bf29a5e611 Allow override of default symbol location for native heap library resolution
Default location of the symbols is $ANDROID_PRODUCT_OUT/symbols.
Setting the env variable ANDROID_SYMBOLS allows you to override this location
so that DDMS goes look for the symbol in a different location when
resolving native heap addresses.
2009-07-24 13:19:24 -07:00
Android (Google) Code Review
a19fdbbce2 am e2901002: Merge change 7975 into donut
Merge commit 'e2901002a68d5d0debd7c5c41fbf884cb66505e8'

* commit 'e2901002a68d5d0debd7c5c41fbf884cb66505e8':
  Add support for preview versions of platforms.
2009-07-20 23:34:03 -07:00
Xavier Ducrohet
f2869cf9a9 Add support for preview versions of platforms.
ro.build.version.codename is a new property indicating whether a platform
is in its release form (value = REL) or in development (value = dev branch
name such as Donut). When the codename indicates a development/preview version
then the API level must be ignored and this codename is used as a unique
identifier of the platform.

IAndroidTarget has been changed to return an instance of a new class
AndroidVersion instead of the api level directly. This class helps deals with
the logic of comparing version from targets or devices.

This change impacts all of the sdk manager to deal with targets identified by
codename instead of api level. This in turn impacts everything that relies
on the sdkmanager: ADT (build, launch, project creation), the AVD manager,
the SDK updater.
2009-07-20 18:11:21 -07:00
Android (Google) Code Review
0e5a1d377d am 2ea1594b: Merge change 4111 into donut
Merge commit '2ea1594b1a62c61ee28456ed7279348ed399119a'

* commit '2ea1594b1a62c61ee28456ed7279348ed399119a':
  Move package installation logic from ADT to ddmlib.
2009-06-17 18:46:08 -07:00
Brett Chabot
377c706e0c Move package installation logic from ADT to ddmlib. 2009-06-15 19:25:48 -07:00
Raphael
9aa9fcf0c1 am 0dbf4c8b: Change scripts to support x86_64 for DDMS.
Merge commit '0dbf4c8bcfc95bc09cca46e523094c3be9ab0d48'

* commit '0dbf4c8bcfc95bc09cca46e523094c3be9ab0d48':
  Change scripts to support x86_64 for DDMS.
2009-06-05 00:29:53 -07:00
Android (Google) Code Review
ab16f45d67 am 79508571: Merge change 3195 into donut
Merge commit '79508571c00bfdfb7e46f99d3df1c4ecd5f9a282'

* commit '79508571c00bfdfb7e46f99d3df1c4ecd5f9a282':
  Change the SDK, DDMS and Traceview to work with the new SWT libraries.
2009-06-04 23:48:05 -07:00
Raphael
0dbf4c8bcf Change scripts to support x86_64 for DDMS. 2009-06-04 16:58:55 -07:00
Xavier Ducrohet
c5a89e256c Change the SDK, DDMS and Traceview to work with the new SWT libraries.
The SDK now contains 32 and 64 bit version of SWT. DDMS and Traceview
use the archquery java app to check the architecture of the VM to decide
which version of SWT should be used to run the apps.
2009-06-04 14:50:43 -07:00
Jack Palevich
055fcd23fb Use bash instead of sh because of the '[[' command
The '[[' command is not guaranteed to be present in /bin/sh, and in fact
is missing in stock Ubuntu 8.04
2009-05-28 15:10:26 -07:00
Jack Palevich
dd3cf52f6f Improve Linux 32-bit JVM detection logic.
Now we detect if the JVM we are about to run is 32-bit or not,
rather than checking if the CPU is capable of executing 64-bit
code or not.
2009-05-28 15:09:59 -07:00
Jack Palevich
c73dabc0d7 Use bash instead of sh because of the '[[' command
The '[[' command is not guaranteed to be present in /bin/sh, and in fact
is missing in stock Ubuntu 8.04
2009-05-28 14:53:02 -07:00
Jack Palevich
5715029663 Improve Linux 32-bit JVM detection logic.
Now we detect if the JVM we are about to run is 32-bit or not,
rather than checking if the CPU is capable of executing 64-bit
code or not.
2009-05-27 18:06:52 -07:00
Android (Google) Code Review
435f32e41c am 06b9f977: Merge change 2118 into donut
Merge commit '06b9f977c36980e0e8ac4bca4fad6da0b46eac7a'

* commit '06b9f977c36980e0e8ac4bca4fad6da0b46eac7a':
  Add work-around for running DDMS on 64-bit Linux.
2009-05-20 16:14:15 -07:00
Jack Palevich
92b6f2b72b Add work-around for running DDMS on 64-bit Linux. 2009-05-20 14:42:04 -07:00
Android (Google) Code Review
47d9b4efb2 am d06f8e2f: Merge change 1730 into donut
Merge commit 'd06f8e2f4cb97b5a397793ba7b53e62ab73925f8'

* commit 'd06f8e2f4cb97b5a397793ba7b53e62ab73925f8':
  Make the ddmlib API use IDevice instead of Device
2009-05-15 16:25:37 -07:00
Xavier Ducrohet
114b9b7b31 Make the ddmlib API use IDevice instead of Device
Device is now private. All the API is using IDevice.
Updated ddms, ADT, hierarchyviewer and other tools that relied on ddmlib.
2009-05-15 14:01:12 -07:00
Android (Google) Code Review
91d128f0f0 am 83674be9: Merge change 1699 into donut
Merge commit '83674be98d72991dc907cd47bd5a73c68c949c35'

* commit '83674be98d72991dc907cd47bd5a73c68c949c35':
  Make IDevice#getSyncService() throws an IOException.
2009-05-14 16:03:04 -07:00
Xavier Ducrohet
2d83a425c2 Make IDevice#getSyncService() throws an IOException.
This lets callers differentiate between errors when connecting to adb and
errors because adb couldn't talk to the device.
2009-05-14 15:18:56 -07:00
Android (Google) Code Review
dfad285364 am ae23694: Merge change 776 into donut
Merge commit 'ae23694d167404857034b269b6a0cce4da790d64'

* commit 'ae23694d167404857034b269b6a0cce4da790d64':
  Make sure we request the Client allocation status even if we fail to open a debugger port for it.
2009-04-30 10:59:06 -07:00
Xavier Ducrohet
1003a3b691 Make sure we request the Client allocation status even if we fail to open a debugger port for it. 2009-04-29 18:18:36 -07:00
Android (Google) Code Review
27d57ebff0 am dc7622d: Merge change 609 into donut
Merge commit 'dc7622dca5bd355d57dd07c332d40b2a16b79bdc'

* commit 'dc7622dca5bd355d57dd07c332d40b2a16b79bdc':
  Fix the opt-in window for usage stat so that it works when running from ADT.
2009-04-29 12:06:40 -07:00
Raphael
6cbe3d9692 am aa8c266: Split development/.gitignore into separate gitignore files p
Merge commit 'aa8c266ed05c08af71bfdaa48de44bec3d581102'

* commit 'aa8c266ed05c08af71bfdaa48de44bec3d581102':
  Split development/.gitignore into separate gitignore files per project.
2009-04-29 12:06:40 -07:00
Xavier Ducrohet
fe3af81580 Fix the opt-in window for usage stat so that it works when running from ADT. 2009-04-27 15:05:06 -07:00
Raphael
aa8c266ed0 Split development/.gitignore into separate gitignore files per project.
Added missing gitignore for layoutlib_utils.
Changed mkstubs build path to use prebuilt/asm-3.1 instead of asm-3.1 project.
2009-04-26 18:12:36 -07:00
Brett Chabot
ac2a8469f2 AI 143919: am: CL 143918 am: CL 143917 ADT Android JUnit: Change logic to provide an explicit project or package to run to the device InstrumentationTestRunner, instead of providing the potentially huge list of test classes. Discontinue support for running all tests in a source folder.
Original author: brettchabot
  Merged from: //branches/cupcake/...
  Original author: android-build
  Merged from: //branches/donutburger/...

Automated import of CL 143919
2009-03-31 19:16:14 -07:00
Brett Chabot
47eccd8c05 AI 143918: am: CL 143917 ADT Android JUnit: Change logic to provide an explicit project or package to run to the device InstrumentationTestRunner, instead of providing the potentially huge list of test classes. Discontinue support for running all tests in a source folder.
Original author: brettchabot
  Merged from: //branches/cupcake/...

Automated import of CL 143918
2009-03-31 19:15:42 -07:00
Andy McFadden
024d1c2375 Automated import from //branches/donutburger/...@140700,140700 2009-03-24 18:15:56 -07:00
The Android Open Source Project
700ccfcc01 auto import //branches/master/...@140412 2009-03-18 22:20:25 -07:00
The Android Open Source Project
6ffae015b4 auto import from //branches/cupcake_rel/...@140373 2009-03-18 17:39:43 -07:00
The Android Open Source Project
52d4c30ca5 auto import from //depot/cupcake/@135843 2009-03-03 19:29:09 -08:00
The Android Open Source Project
d4aee0c0ca auto import from //depot/cupcake/@135843 2009-03-03 18:28:16 -08:00