| Commit message (Collapse) | Author | Age | Files | Lines |
| |\
| |
| |
| | |
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
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |/
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
| |
Test: m
Change-Id: I41bee1f48f77f61e5194fcc0e4607f04ab674c1f
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
Removes dependency on constant that was in libcore.
Bug: b/119742461
Test: m -j100 checkbuild
Change-Id: I1708652edf65789ef4bdb6e83568696f70f96bdd
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Bug: 27942453
Change-Id: I4a222c88e104040b08e603e300e54a1ca2c038fe
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
| |
Bug: 17515415
Change-Id: Ice145a4b452177e36345cf2e071377bb7b3feeb3
|
| |\
| |
| |
| |
| |
| |
| | |
DDMS"
* commit '0f293905646713a5e603f75e3fa92f14e9e650d1':
Report runtime information to DDMS
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Reports runtime's ABI and internal flags to be displayed by DDMS.
Bug: 14888999
Bug: 14888124
Change-Id: I8a2d3f22f84a093be2fbc74464af6aa7b2a2bebb
|
| |\|
| |
| |
| |
| |
| |
| | |
System.gc for DDMS."
* commit 'c6d0dc896438d8918f4f985513e92be9b4d69e87':
Use Runtime.gc instead of System.gc for DDMS.
|
| | |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
| |
| |
| |
| |
| | |
(cherry picked from commit ffbe799f3824f4be705ca726988355d3943a9004)
Change-Id: Ic87a254171fca7dfdf02c8643cd367055c8889cd
|
| | |
| |
| |
| | |
Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
|
| |\ \
| |/
|/|
| |
| |
| |
| | |
frameworks." into klp-dev
* commit '6627e5b2aef2783cfa505a48195d7b8153eda25c':
Change IsMethodTracingActive to GetMethodTracingMode for frameworks.
|
| | |
| |
| |
| |
| |
| |
| | |
Bug: 9968521
Change-Id: Ic63340e0d2fef18f27fdfabdd056ac5304c3d54f
(cherry picked from commit ffbe799f3824f4be705ca726988355d3943a9004)
|
| | |
| |
| |
| |
| |
| | |
(cherry picked from commit ca307d3138ff1e5d0bcf190eb24f3b8dbcabfaa9)
Change-Id: I3553bafe24ac8deb4fa3f9a4d78939c3848b3850
|
| | |
| |
| |
| |
| |
| | |
(cherry picked from commit fd224b97797dfb7e3ee1e2f56c3109d1594cf040)
Change-Id: I1dab7801d47f092259916c4aea19b20d17951c2f
|
| |/
|
|
|
|
| |
(cherry picked from commit ca307d3138ff1e5d0bcf190eb24f3b8dbcabfaa9)
Change-Id: Ic193ddadf01c42905fc7c35a1a8bf89fba4556e9
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Add a new JDWP packet to allow control of OpenGL tracing.
Change-Id: Ic89e2f6299238a612df2f914581049f2cbba088c
|
| |\
| |
| |
| |
| | |
* commit '768d9e1a72ceee7d4a5f608776b87b62d6ce4a04':
Correct executable bit for source files
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |/
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
since before 1.0.
Change-Id: Ic2e8fa68797ea9d486f4117f3d82c98233cdab1e
|
| |
|
|
|
| |
This adds a hidden dumpHprofDataDdms() method, which initiates an hprof
dump that sends its data directly to DDMS.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Until now, we used a place-holder in frameworks/base.
Disable a test that shouldn't have been on.
|
| |
|
|
| |
Don't need "Got feature list request" from ddm-heap.
|
| | |
|
| | |
|
| | |
|
| |
|