am 1b3aeb48
: fix SurfaceFlinger DDMS debugging
* commit '1b3aeb4844fe198c1fb61064d0cec3f5ac63f7d3': fix SurfaceFlinger DDMS debugging
This commit is contained in:
commit
eb38d85260
@ -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
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user