Loading services/core/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ java_library_static { ":gsiservice_aidl", "java/com/android/server/EventLogTags.logtags", "java/com/android/server/am/EventLogTags.logtags", "java/com/android/server/policy/EventLogTags.logtags", ], libs: [ Loading services/core/java/com/android/server/policy/EventLogTags.logtags 0 → 100644 +8 −0 Original line number Diff line number Diff line # See system/core/logcat/event.logtags for a description of the format of this file. option java_package com.android.server.policy # 0 for screen off, 1 for screen on 70000 screen_toggled (screen_state|1|5) 70001 intercept_power (action|3),(mPowerKeyHandled|1),(mPowerKeyPressCounter|1) services/core/java/com/android/server/policy/PhoneWindowManager.java +5 −6 Original line number Diff line number Diff line Loading @@ -167,7 +167,6 @@ import android.service.dreams.IDreamManager; import android.service.vr.IPersistentVrStateCallbacks; import android.speech.RecognizerIntent; import android.telecom.TelecomManager; import android.util.EventLog; import android.util.Log; import android.util.LongSparseArray; import android.util.MutableBoolean; Loading Loading @@ -3807,9 +3806,9 @@ public class PhoneWindowManager implements WindowManagerPolicy { } case KeyEvent.KEYCODE_POWER: { Slog.d(TAG, "interceptKeyBeforeQueueing: KEYCODE_POWER " + KeyEvent.actionToString(event.getAction()) + " mPowerKeyHandled=" + mPowerKeyHandled + " b/128933363"); EventLogTags.writeInterceptPower( KeyEvent.actionToString(event.getAction()), mPowerKeyHandled ? 1 : 0, mPowerKeyPressCounter); // Any activity on the power button stops the accessibility shortcut cancelPendingAccessibilityShortcutAction(); result &= ~ACTION_PASS_TO_USER; Loading Loading @@ -4359,7 +4358,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { // Called on the PowerManager's Notifier thread. @Override public void finishedGoingToSleep(int why) { EventLog.writeEvent(70000, 0); EventLogTags.writeScreenToggled(0); if (DEBUG_WAKEUP) { Slog.i(TAG, "Finished going to sleep... (why=" + WindowManagerPolicyConstants.offReasonToString(why) + ")"); Loading Loading @@ -4391,7 +4390,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { // Called on the PowerManager's Notifier thread. @Override public void startedWakingUp(@OnReason int why) { EventLog.writeEvent(70000, 1); EventLogTags.writeScreenToggled(1); if (DEBUG_WAKEUP) { Slog.i(TAG, "Started waking up... (why=" + WindowManagerPolicyConstants.onReasonToString(why) + ")"); Loading Loading
services/core/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ java_library_static { ":gsiservice_aidl", "java/com/android/server/EventLogTags.logtags", "java/com/android/server/am/EventLogTags.logtags", "java/com/android/server/policy/EventLogTags.logtags", ], libs: [ Loading
services/core/java/com/android/server/policy/EventLogTags.logtags 0 → 100644 +8 −0 Original line number Diff line number Diff line # See system/core/logcat/event.logtags for a description of the format of this file. option java_package com.android.server.policy # 0 for screen off, 1 for screen on 70000 screen_toggled (screen_state|1|5) 70001 intercept_power (action|3),(mPowerKeyHandled|1),(mPowerKeyPressCounter|1)
services/core/java/com/android/server/policy/PhoneWindowManager.java +5 −6 Original line number Diff line number Diff line Loading @@ -167,7 +167,6 @@ import android.service.dreams.IDreamManager; import android.service.vr.IPersistentVrStateCallbacks; import android.speech.RecognizerIntent; import android.telecom.TelecomManager; import android.util.EventLog; import android.util.Log; import android.util.LongSparseArray; import android.util.MutableBoolean; Loading Loading @@ -3807,9 +3806,9 @@ public class PhoneWindowManager implements WindowManagerPolicy { } case KeyEvent.KEYCODE_POWER: { Slog.d(TAG, "interceptKeyBeforeQueueing: KEYCODE_POWER " + KeyEvent.actionToString(event.getAction()) + " mPowerKeyHandled=" + mPowerKeyHandled + " b/128933363"); EventLogTags.writeInterceptPower( KeyEvent.actionToString(event.getAction()), mPowerKeyHandled ? 1 : 0, mPowerKeyPressCounter); // Any activity on the power button stops the accessibility shortcut cancelPendingAccessibilityShortcutAction(); result &= ~ACTION_PASS_TO_USER; Loading Loading @@ -4359,7 +4358,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { // Called on the PowerManager's Notifier thread. @Override public void finishedGoingToSleep(int why) { EventLog.writeEvent(70000, 0); EventLogTags.writeScreenToggled(0); if (DEBUG_WAKEUP) { Slog.i(TAG, "Finished going to sleep... (why=" + WindowManagerPolicyConstants.offReasonToString(why) + ")"); Loading Loading @@ -4391,7 +4390,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { // Called on the PowerManager's Notifier thread. @Override public void startedWakingUp(@OnReason int why) { EventLog.writeEvent(70000, 1); EventLogTags.writeScreenToggled(1); if (DEBUG_WAKEUP) { Slog.i(TAG, "Started waking up... (why=" + WindowManagerPolicyConstants.onReasonToString(why) + ")"); Loading