Loading services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +17 −0 Original line number Diff line number Diff line Loading @@ -204,6 +204,7 @@ import java.util.OptionalInt; import java.util.WeakHashMap; import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import java.util.function.Consumer; import java.util.function.IntConsumer; Loading Loading @@ -5992,7 +5993,23 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub @BinderThread private void dumpAsProtoNoCheck(FileDescriptor fd) { final ProtoOutputStream proto = new ProtoOutputStream(fd); // Dump in the format of an ImeTracing trace with a single entry. final long magicNumber = ((long) InputMethodManagerServiceTraceFileProto.MAGIC_NUMBER_H << 32) | InputMethodManagerServiceTraceFileProto.MAGIC_NUMBER_L; final long timeOffsetNs = TimeUnit.MILLISECONDS.toNanos(System.currentTimeMillis()) - SystemClock.elapsedRealtimeNanos(); proto.write(InputMethodManagerServiceTraceFileProto.MAGIC_NUMBER, magicNumber); proto.write(InputMethodManagerServiceTraceFileProto.REAL_TO_ELAPSED_TIME_OFFSET_NANOS, timeOffsetNs); final long token = proto.start(InputMethodManagerServiceTraceFileProto.ENTRY); proto.write(InputMethodManagerServiceTraceProto.ELAPSED_REALTIME_NANOS, SystemClock.elapsedRealtimeNanos()); proto.write(InputMethodManagerServiceTraceProto.WHERE, "InputMethodManagerService.mPriorityDumper#dumpAsProtoNoCheck"); dumpDebug(proto, InputMethodManagerServiceTraceProto.INPUT_METHOD_MANAGER_SERVICE); proto.end(token); proto.flush(); } }; Loading Loading
services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +17 −0 Original line number Diff line number Diff line Loading @@ -204,6 +204,7 @@ import java.util.OptionalInt; import java.util.WeakHashMap; import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import java.util.function.Consumer; import java.util.function.IntConsumer; Loading Loading @@ -5992,7 +5993,23 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub @BinderThread private void dumpAsProtoNoCheck(FileDescriptor fd) { final ProtoOutputStream proto = new ProtoOutputStream(fd); // Dump in the format of an ImeTracing trace with a single entry. final long magicNumber = ((long) InputMethodManagerServiceTraceFileProto.MAGIC_NUMBER_H << 32) | InputMethodManagerServiceTraceFileProto.MAGIC_NUMBER_L; final long timeOffsetNs = TimeUnit.MILLISECONDS.toNanos(System.currentTimeMillis()) - SystemClock.elapsedRealtimeNanos(); proto.write(InputMethodManagerServiceTraceFileProto.MAGIC_NUMBER, magicNumber); proto.write(InputMethodManagerServiceTraceFileProto.REAL_TO_ELAPSED_TIME_OFFSET_NANOS, timeOffsetNs); final long token = proto.start(InputMethodManagerServiceTraceFileProto.ENTRY); proto.write(InputMethodManagerServiceTraceProto.ELAPSED_REALTIME_NANOS, SystemClock.elapsedRealtimeNanos()); proto.write(InputMethodManagerServiceTraceProto.WHERE, "InputMethodManagerService.mPriorityDumper#dumpAsProtoNoCheck"); dumpDebug(proto, InputMethodManagerServiceTraceProto.INPUT_METHOD_MANAGER_SERVICE); proto.end(token); proto.flush(); } }; Loading