summaryrefslogtreecommitdiff
path: root/core/java/android/ddm
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Extend the INVOKE_VIEW_METHOD of the "Generic View Operation" (VUOP) ↵Mike Schneider2022-09-151-63/+234
|\ | | | | | | DDM handler to 1) Return the invoked method's return value 2) In addition to the primitive values, support String and byte[]" into tm-qpr-dev
| * Extend the INVOKE_VIEW_METHOD of the "Generic View Operation" (VUOP) DDM ↵Mike Schneider2022-09-151-63/+234
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | handler to 1) Return the invoked method's return value 2) In addition to the primitive values, support String and byte[] This DDM API is used by some development tools (such as go/web-hv), where the ability retrieve values from views and sending strings and byte blobs allows to trigger specific view behavior. ## String support Allows passing in and returning String objects, using the (non-standard) R type specifier. This implementation is modelled after ViewHierarchyEncoder for consistency (whose result is passed back via the same DdmHandleViewDebug class). ## byte[] support Allows passing in and returning byte[] objects, using the "[Z" type specifier. For simplicity, only byte arrays are supported, though other types can be added in a backwards compatible way in the future, if needed. ## testing Added unit tests for serialization/deserialization. Unable to test `invokeViewMethod`, since it uses the `Chunk` class which is not exposed outside of the framework Test: Adding unit tests for serialization deserialization Test: Manually invoked method via go/web-hv Bug: 245727371 Change-Id: I29d2d6ec3b6eb59a5f2e7d3312dc36c00007672d
* | Take ownership of orphaned DdmHandleViewDebug code.Mike Schneider2022-09-141-0/+1
|/ | | | | | | Bug: 245727371 Change-Id: I2f221050c9704f3a1e016d69bea9f41e94805937 Test: none - just OWNERS change Ignore-AOSP-First: this is a cherry-pick of already submitted AOSP cl https://android-review.googlesource.com/c/platform/frameworks/base/+/2215744
* Refactor ddm ChunkHandler utility methods from libcore to frameworkNikita Iashchenko2021-05-258-58/+107
| | | | | | | | | | | | | | | | | As a part of internal libcore cleanup three utility methods for ddm chunks (de)serialization were removed from the CorePlatformApi set and moved to framework. As a part of API council review made following changes: * Renamed connected/disconnected callback methods to onConnected/onDisconnected, respectively * Made unregisterHandler method a part of core api * Renamed threadNotify/enableRecentAllocations setters Bug: 154796679 Bug: 184654804 Test: m droid Change-Id: I1d43f12aaf70c7c079577d3f3248248ed39f9865
* Remove some methods from DdmVmInternal.Nicolas Geoffray2021-03-053-365/+3
| | | | | Test: m Change-Id: I41bee1f48f77f61e5194fcc0e4607f04ab674c1f
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-11-041-2/+3
| | | | | | | | | | | These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Merged-In: I626caf7c1fe46c5ab1f39c2895b42a34319f771a Change-Id: I54e5ecd11e76ca1de3c5893e3a98b0108e735413
* Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-061-1/+1
| | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I0c336de56bc4a041dc97ff9b7927f62f0b44b457
* Add package name to DDM APNM packetChester Hsieh2019-12-062-19/+59
| | | | | | | | | | | | | | DDM APNM currently only reports the application/process name. For services that need to know the underlying package name, those services need to manually resolve the process's UID and map it to the package name via the shell - a slow and error-prone process. This change adds the package name to the APNM packet so users of newer versions of DDMLib can directly get the package name. Test: manual Change-Id: I92517d5bb641cc263c0d58db667b00e67fc5e58b
* Move CLIENT_PROTOCOL_VERSION to point of useOrion Hodson2019-02-041-5/+9
| | | | | | | | Removes dependency on constant that was in libcore. Bug: b/119742461 Test: m -j100 checkbuild Change-Id: I1708652edf65789ef4bdb6e83568696f70f96bdd
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-011-0/+3
| | | | | | | | | | | | | | | | | For packages: android.ddm This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I9f1ac383f0f71b8c9437756e3d526ee64ad0c558 Merged-In: Ia3e508bf6fbb48ca0fad3dc7b6dc722aac29c191
* Send nativeDebuggable byte value as part of HELLO response.Oleksiy Vyalov2016-04-051-1/+4
| | | | | | Bug: 27942453 Change-Id: I4a222c88e104040b08e603e300e54a1ca2c038fe
* Remove GLTrace supportPablo Ceballos2015-10-061-14/+1
| | | | | | | | | | GLTrace is defunct, it does not support newer GL features, breaks security requirements, and has no supported tooling now that Eclipse is at end of life. Bug 22329852 Change-Id: I64c58464f8c2c7ae6125f5d5c7884e3fd34d68ea
* Improve hierarchy viewer dump hierarchy latencySiva Velusamy2015-05-071-3/+13
| | | | | | | | | | | | | | | | | Hierarchy Viewer obtains the properties for each view by using reflection and looking for fields and methods that have the @ExportedProperty annotation. Using reflection made it quite slow for large view hierarchies. This CL adds a new method (encode) to each class that wishes to export data to hiererachy viewer. Inside this method, the object can write a sequence of key, value pairs corresponding to the values it wants exported. With this change, the dump hierarchy operation that used to take more than 10 seconds can be performed in a few hundred milliseconds. Change-Id: I199ac2e7ca3c59ebcfec7e6bd201e134c41fd583
* Adds support for Theme dumping via DDM.Jon Miranda2014-09-181-0/+21
| | | | | Bug: 17515415 Change-Id: Ice145a4b452177e36345cf2e071377bb7b3feeb3
* am 0f293905: am b2db356d: am fc1ffe89: Merge "Report runtime information to ↵Sebastien Hertz2014-05-221-2/+20
|\ | | | | | | | | | | | | DDMS" * commit '0f293905646713a5e603f75e3fa92f14e9e650d1': Report runtime information to DDMS
| * Report runtime information to DDMSSebastien Hertz2014-05-221-2/+20
| | | | | | | | | | | | | | | | Reports runtime's ABI and internal flags to be displayed by DDMS. Bug: 14888999 Bug: 14888124 Change-Id: I8a2d3f22f84a093be2fbc74464af6aa7b2a2bebb
* | am c6d0dc89: am 18582a82: am 0cd623bb: Merge "Use Runtime.gc instead of ↵Mathieu Chartier2014-04-281-1/+1
|\| | | | | | | | | | | | | System.gc for DDMS." * commit 'c6d0dc896438d8918f4f985513e92be9b4d69e87': Use Runtime.gc instead of System.gc for DDMS.
| * Use Runtime.gc instead of System.gc for DDMS.Mathieu Chartier2014-04-281-1/+1
| | | | | | | | | | | | | | | | System.gc doesn't always do a GC unless to attempt to run the finalizers after you call System.gc. Bug: 14325353 Change-Id: Iebed7fad5576d610cea13a86e7d3d46652c67478
| * Change IsMethodTracingActive to GetMethodTracingMode for frameworks.Jeff Hao2013-08-301-1/+1
| | | | | | | | | | | | (cherry picked from commit ffbe799f3824f4be705ca726988355d3943a9004) Change-Id: Ic87a254171fca7dfdf02c8643cd367055c8889cd
* | Remove unused imports from frameworks/base.John Spurlock2013-11-202-2/+0
| | | | | | | | Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
* | am 6627e5b2: Merge "Change IsMethodTracingActive to GetMethodTracingMode for ↵Jeff Hao2013-08-301-1/+1
|\ \ | |/ |/| | | | | | | | | frameworks." into klp-dev * commit '6627e5b2aef2783cfa505a48195d7b8153eda25c': Change IsMethodTracingActive to GetMethodTracingMode for frameworks.
| * Change IsMethodTracingActive to GetMethodTracingMode for frameworks.Jeff Hao2013-08-301-1/+1
| | | | | | | | | | | | | | Bug: 9968521 Change-Id: Ic63340e0d2fef18f27fdfabdd056ac5304c3d54f (cherry picked from commit ffbe799f3824f4be705ca726988355d3943a9004)
| * Add frameworks support for sample profiling from traceview gui.Jeff Hao2013-08-281-1/+51
| | | | | | | | | | | | (cherry picked from commit ca307d3138ff1e5d0bcf190eb24f3b8dbcabfaa9) Change-Id: I3553bafe24ac8deb4fa3f9a4d78939c3848b3850
* | Merge MPSE and SPSE Chunk handlers for ddms.Jeff Hao2013-08-271-34/+13
| | | | | | | | | | | | (cherry picked from commit fd224b97797dfb7e3ee1e2f56c3109d1594cf040) Change-Id: I1dab7801d47f092259916c4aea19b20d17951c2f
* | Add frameworks support for sample profiling from traceview gui.Jeff Hao2013-08-271-1/+51
|/ | | | | | (cherry picked from commit ca307d3138ff1e5d0bcf190eb24f3b8dbcabfaa9) Change-Id: Ic193ddadf01c42905fc7c35a1a8bf89fba4556e9
* Replace native Process getpid/getuid with calls to libcore equivalents.Jeff Hao2013-07-311-1/+3
| | | | | | | | | The Process natives were getting called were getting called while handling a jdwp packet before the vm had a chance to register them. (cherry-pick of 5bce6a308fc8a3c1e449cf905b8b6e8ace4ef3e2.) Change-Id: Ia2b4f79b11e427283a712b2d0c52948f394640bf
* Support invoking view methods from hierarchy viewerSiva Velusamy2013-01-221-21/+122
| | | | | | | | | | | This CL adds support for invoking any view method with primtive arguments, and setting layout parameters from the debugger (hierarchy viewer). requestLayout() and invalidate() are now just implemented using the more generic invokeMethod() command. Change-Id: Icffda251728a4963b35266786b0b6143bae7fe8e
* Support hierarchy viewer commands via DDMSiva Velusamy2013-01-164-69/+327
| | | | | | | | | | | | | | | | Hierarchy Viewer currently interfaces to the host via a socket opened by ViewServer which resides in the WindowManagerService. Since this has access to all windows, it is enabled only on debug builds. This CL adds necessary support to DDM to handle all the commands required for Hierarchy Viewer. It only misses two commands that are sent to the Window Manager (which we don't have access to from the applications). A future CL will remove the ViewServer functionality. Change-Id: I1dae316a00737b0cae4e640ccc97bf9bb1d05973
* DdmServer: add controls for OpenGL tracingSiva Velusamy2012-12-193-8/+76
| | | | | | Add a new JDWP packet to allow control of OpenGL tracing. Change-Id: Ic89e2f6299238a612df2f914581049f2cbba088c
* am 768d9e1a: Merge "Correct executable bit for source files"Kenny Root2012-11-071-0/+0
|\ | | | | | | | | * commit '768d9e1a72ceee7d4a5f608776b87b62d6ce4a04': Correct executable bit for source files
| * Correct executable bit for source filesKenny Root2012-11-071-0/+0
| | | | | | | | | | | | | | | | | | Many media files and source code files were marked as executable in Git. Remove those. Also a shell script and python script were not marked as executable. Change-Id: Ieb51bafb46c895a21d2e83696f5a901ba752b2c5
* | Report the user id of every app to ddms.Siva Velusamy2012-09-102-5/+11
|/ | | | | | | | | | This CL extends the HELO and APNM packets to include the user id of the application. This allows ddms users to differentiate between the same app running for multiple users. Bug 7110696. Change-Id: I490d0e3781b8fb9db65cf81188677a0955650511
* Remove the deprecated things from Config.java. These haven't been working ↵Joe Onorato2011-04-077-28/+21
| | | | | | since before 1.0. Change-Id: Ic2e8fa68797ea9d486f4117f3d82c98233cdab1e
* Added dumpHprofDataDdms() call.Andy McFadden2010-01-291-1/+37
| | | | | This adds a hidden dumpHprofDataDdms() method, which initiates an hprof dump that sends its data directly to DDMS.
* Add streaming method profiling support.Andy McFadden2010-01-271-0/+52
| | | | | | | | This adds a new (hidden) startMethodTracingDdms call. It's like the normal method tracing calls, but you don't specify an output file. Instead, when tracing stops, the data is sent directly to DDMS. This also adds handlers for the MPSS/MPSE requests that DDMS sends.
* Move VM feature strings (used by DDMS) into VM.Andy McFadden2010-01-221-4/+2
| | | | | | Until now, we used a place-holder in frameworks/base. Disable a test that shouldn't have been on.
* Log.d -> Log.vAndy McFadden2009-09-041-2/+2
| | | | Don't need "Got feature list request" from ddm-heap.
* auto import //branches/master/...@140412The Android Open Source Project2009-03-184-5/+228
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-039-0/+857
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-039-857/+0
|
* Initial ContributionThe Android Open Source Project2008-10-219-0/+857