Commit Graph

32 Commits

Author SHA1 Message Date
Xavier Ducrohet
3b9d33b3e0 Fix RawImage.getARGB to force alpha to 0xFF for buffers with no alpha.
Change-Id: I6b95f5758c36979cca06483f1ff797ba67ecd056
2009-10-13 19:24:58 -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
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
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
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
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
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
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
The Android Open Source Project
d2f2b1d7b7 auto import from //depot/cupcake/@132589 2009-03-03 14:03:58 -08:00
The Android Open Source Project
b8747bc7b1 auto import from //depot/cupcake/@137055 2009-03-02 22:54:20 -08:00
The Android Open Source Project
ff4b5f241f auto import from //branches/cupcake/...@132276 2009-02-19 10:57:29 -08:00
The Android Open Source Project
e3c5766074 auto import from //branches/cupcake/...@130745 2009-02-10 15:43:58 -08:00
The Android Open Source Project
95cf464c5a auto import from //branches/cupcake/...@125939 2009-01-09 17:51:19 -08:00
The Android Open Source Project
e943f2fd8e Code drop from //branches/cupcake/...@124589 2008-12-17 18:04:04 -08:00
The Android Open Source Project
5c11852110 Initial Contribution 2008-10-21 07:00:00 -07:00