diff options
author | Mathias Agopian <mathias@google.com> | 2012-10-07 16:41:12 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2012-10-07 16:41:12 -0700 |
commit | 1b3aeb4844fe198c1fb61064d0cec3f5ac63f7d3 (patch) | |
tree | 634ebfcedefbbeb38724c0876f3719c1d2c5a712 /services | |
parent | 6d24eef4b6443afa8d361437c0a3a575b69609ae (diff) | |
download | frameworks_native-1b3aeb4844fe198c1fb61064d0cec3f5ac63f7d3.zip frameworks_native-1b3aeb4844fe198c1fb61064d0cec3f5ac63f7d3.tar.gz frameworks_native-1b3aeb4844fe198c1fb61064d0cec3f5ac63f7d3.tar.bz2 |
fix SurfaceFlinger DDMS debugging
DdmHandleAppName.setAppName() signature changed which broke
this debugging feature.
Needed for debugging b\7267680
Change-Id: I4482bf5a441e91bef89d1ddea9a4152333be7f88
Diffstat (limited to 'services')
-rw-r--r-- | services/surfaceflinger/Android.mk | 3 | ||||
-rw-r--r-- | services/surfaceflinger/DdmConnection.cpp | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/services/surfaceflinger/Android.mk b/services/surfaceflinger/Android.mk index 6db89f0..0d559e7 100644 --- a/services/surfaceflinger/Android.mk +++ b/services/surfaceflinger/Android.mk @@ -3,7 +3,6 @@ include $(CLEAR_VARS) LOCAL_SRC_FILES:= \ Client.cpp \ - DdmConnection.cpp \ DisplayDevice.cpp \ EventThread.cpp \ Layer.cpp \ @@ -58,6 +57,8 @@ include $(BUILD_SHARED_LIBRARY) # uses jni which may not be available in PDK ifneq ($(wildcard libnativehelper/include),) include $(CLEAR_VARS) +LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\" + LOCAL_SRC_FILES:= \ DdmConnection.cpp diff --git a/services/surfaceflinger/DdmConnection.cpp b/services/surfaceflinger/DdmConnection.cpp index ece965c..d2c977d 100644 --- a/services/surfaceflinger/DdmConnection.cpp +++ b/services/surfaceflinger/DdmConnection.cpp @@ -78,10 +78,10 @@ void DdmConnection::start(const char* name) { startClass = env->FindClass("android/ddm/DdmHandleAppName"); if (startClass) { startMeth = env->GetStaticMethodID(startClass, - "setAppName", "(Ljava/lang/String;)V"); + "setAppName", "(Ljava/lang/String;I)V"); if (startMeth) { jstring str = env->NewStringUTF(name); - env->CallStaticVoidMethod(startClass, startMeth, str); + env->CallStaticVoidMethod(startClass, startMeth, str, getuid()); env->DeleteLocalRef(str); } } |