summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/wm/WindowManagerService.java
diff options
context:
space:
mode:
Diffstat (limited to 'services/java/com/android/server/wm/WindowManagerService.java')
-rw-r--r--services/java/com/android/server/wm/WindowManagerService.java25
1 files changed, 1 insertions, 24 deletions
diff --git a/services/java/com/android/server/wm/WindowManagerService.java b/services/java/com/android/server/wm/WindowManagerService.java
index 72aab7b..966f4c1 100644
--- a/services/java/com/android/server/wm/WindowManagerService.java
+++ b/services/java/com/android/server/wm/WindowManagerService.java
@@ -8129,7 +8129,7 @@ public class WindowManagerService extends IWindowManager.Stub
boolean recoveringMemory) {
if (DEBUG_WINDOW_TRACE) {
Slog.v(TAG, "performLayoutAndPlaceSurfacesLockedInner: entry. Called by "
- + getCallers(3));
+ + Debug.getCallers(3));
}
if (mDisplay == null) {
Slog.i(TAG, "skipping performLayoutAndPlaceSurfacesLockedInner with no mDisplay");
@@ -9621,27 +9621,4 @@ public class WindowManagerService extends IWindowManager.Stub
mH.sendMessage(mH.obtainMessage(H.BULK_UPDATE_PARAMETERS, bulkUpdateParams,
pendingLayoutChanges));
}
-
- /**
- * Never call directly. Only call through getCallers(int) or getCaller(). Otherwise
- * the depth will be off.
- * @param depth What level stack to return.
- * @return A String indicating who the caller of the method that calls this is.
- */
- static String getCaller(int depth) {
- StackTraceElement caller = Thread.currentThread().getStackTrace()[5 + depth];
- return caller.getClassName() + "." + caller.getMethodName() + ":" + caller.getLineNumber();
- }
-
- static String getCallers(final int depth) {
- StringBuffer sb = new StringBuffer();
- for (int i = 0; i < depth; i++) {
- sb.append(getCaller(i)).append(" ");
- }
- return sb.toString();
- }
-
- static String getCaller() {
- return getCallers(1);
- }
}