1b018399a3a2762e95126acbe14397eca15bad772Christoph Studer/* 2b018399a3a2762e95126acbe14397eca15bad772Christoph Studer * Copyright (C) 2014 The Android Open Source Project 3b018399a3a2762e95126acbe14397eca15bad772Christoph Studer * 4b018399a3a2762e95126acbe14397eca15bad772Christoph Studer * Licensed under the Apache License, Version 2.0 (the "License"); 5b018399a3a2762e95126acbe14397eca15bad772Christoph Studer * you may not use this file except in compliance with the License. 6b018399a3a2762e95126acbe14397eca15bad772Christoph Studer * You may obtain a copy of the License at 7b018399a3a2762e95126acbe14397eca15bad772Christoph Studer * 8b018399a3a2762e95126acbe14397eca15bad772Christoph Studer * http://www.apache.org/licenses/LICENSE-2.0 9b018399a3a2762e95126acbe14397eca15bad772Christoph Studer * 10b018399a3a2762e95126acbe14397eca15bad772Christoph Studer * Unless required by applicable law or agreed to in writing, software 11b018399a3a2762e95126acbe14397eca15bad772Christoph Studer * distributed under the License is distributed on an "AS IS" BASIS, 12b018399a3a2762e95126acbe14397eca15bad772Christoph Studer * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13b018399a3a2762e95126acbe14397eca15bad772Christoph Studer * See the License for the specific language governing permissions and 14b018399a3a2762e95126acbe14397eca15bad772Christoph Studer * limitations under the License 15b018399a3a2762e95126acbe14397eca15bad772Christoph Studer */ 16b018399a3a2762e95126acbe14397eca15bad772Christoph Studer 17b018399a3a2762e95126acbe14397eca15bad772Christoph Studerpackage com.android.systemui; 18b018399a3a2762e95126acbe14397eca15bad772Christoph Studer 1927a52fa86bd279407575192fc9842b6a54624cfbChris Wrenimport com.android.internal.logging.nano.MetricsProto.MetricsEvent; 2027a52fa86bd279407575192fc9842b6a54624cfbChris Wren 21b018399a3a2762e95126acbe14397eca15bad772Christoph Studer/** 22b018399a3a2762e95126acbe14397eca15bad772Christoph Studer * Constants to be passed as sysui_* eventlog parameters. 23b018399a3a2762e95126acbe14397eca15bad772Christoph Studer */ 24b018399a3a2762e95126acbe14397eca15bad772Christoph Studerpublic class EventLogConstants { 25b018399a3a2762e95126acbe14397eca15bad772Christoph Studer /** The user swiped up on the lockscreen, unlocking the device. */ 2627a52fa86bd279407575192fc9842b6a54624cfbChris Wren private static final int SYSUI_LOCKSCREEN_GESTURE_SWIPE_UP_UNLOCK = 1; 27b018399a3a2762e95126acbe14397eca15bad772Christoph Studer /** The user swiped down on the lockscreen, going to the full shade. */ 2827a52fa86bd279407575192fc9842b6a54624cfbChris Wren private static final int SYSUI_LOCKSCREEN_GESTURE_SWIPE_DOWN_FULL_SHADE = 2; 29b018399a3a2762e95126acbe14397eca15bad772Christoph Studer /** The user tapped in an empty area, causing the unlock hint to be shown. */ 3027a52fa86bd279407575192fc9842b6a54624cfbChris Wren private static final int SYSUI_LOCKSCREEN_GESTURE_TAP_UNLOCK_HINT = 3; 31b018399a3a2762e95126acbe14397eca15bad772Christoph Studer /** The user swiped inward on the camera icon, launching the camera. */ 3227a52fa86bd279407575192fc9842b6a54624cfbChris Wren private static final int SYSUI_LOCKSCREEN_GESTURE_SWIPE_CAMERA = 4; 33b018399a3a2762e95126acbe14397eca15bad772Christoph Studer /** The user swiped inward on the dialer icon, launching the dialer. */ 3427a52fa86bd279407575192fc9842b6a54624cfbChris Wren private static final int SYSUI_LOCKSCREEN_GESTURE_SWIPE_DIALER = 5; 35b018399a3a2762e95126acbe14397eca15bad772Christoph Studer /** The user tapped the lock, locking the device. */ 3627a52fa86bd279407575192fc9842b6a54624cfbChris Wren private static final int SYSUI_LOCKSCREEN_GESTURE_TAP_LOCK = 6; 37b018399a3a2762e95126acbe14397eca15bad772Christoph Studer /** The user tapped a notification, needs to tap again to launch. */ 3827a52fa86bd279407575192fc9842b6a54624cfbChris Wren private static final int SYSUI_LOCKSCREEN_GESTURE_TAP_NOTIFICATION_ACTIVATE = 7; 3949f06f5f0d514d32da184f82fc08f58ade81df99Chris Wren /** The user swiped down to open quick settings, from keyguard. */ 4027a52fa86bd279407575192fc9842b6a54624cfbChris Wren private static final int SYSUI_LOCKSCREEN_GESTURE_SWIPE_DOWN_QS = 8; 4149f06f5f0d514d32da184f82fc08f58ade81df99Chris Wren /** The user swiped down to open quick settings, from shade. */ 4227a52fa86bd279407575192fc9842b6a54624cfbChris Wren private static final int SYSUI_SHADE_GESTURE_SWIPE_DOWN_QS = 9; 4349f06f5f0d514d32da184f82fc08f58ade81df99Chris Wren /** The user tapped on the status bar to open quick settings, from shade. */ 4427a52fa86bd279407575192fc9842b6a54624cfbChris Wren private static final int SYSUI_TAP_TO_OPEN_QS = 10; 4527a52fa86bd279407575192fc9842b6a54624cfbChris Wren 4627a52fa86bd279407575192fc9842b6a54624cfbChris Wren public static final int[] METRICS_GESTURE_TYPE_MAP = { 4727a52fa86bd279407575192fc9842b6a54624cfbChris Wren MetricsEvent.VIEW_UNKNOWN, // there is no type 0 4827a52fa86bd279407575192fc9842b6a54624cfbChris Wren MetricsEvent.ACTION_LS_UNLOCK, // SYSUI_LOCKSCREEN_GESTURE_SWIPE_UP_UNLOCK 4927a52fa86bd279407575192fc9842b6a54624cfbChris Wren MetricsEvent.ACTION_LS_SHADE, // SYSUI_LOCKSCREEN_GESTURE_SWIPE_DOWN_FULL_SHADE 5027a52fa86bd279407575192fc9842b6a54624cfbChris Wren MetricsEvent.ACTION_LS_HINT, // SYSUI_LOCKSCREEN_GESTURE_TAP_UNLOCK_HINT 5127a52fa86bd279407575192fc9842b6a54624cfbChris Wren MetricsEvent.ACTION_LS_CAMERA, // SYSUI_LOCKSCREEN_GESTURE_SWIPE_CAMERA 5227a52fa86bd279407575192fc9842b6a54624cfbChris Wren MetricsEvent.ACTION_LS_DIALER, // SYSUI_LOCKSCREEN_GESTURE_SWIPE_DIALER 5327a52fa86bd279407575192fc9842b6a54624cfbChris Wren MetricsEvent.ACTION_LS_LOCK, // SYSUI_LOCKSCREEN_GESTURE_TAP_LOCK 5427a52fa86bd279407575192fc9842b6a54624cfbChris Wren MetricsEvent.ACTION_LS_NOTE, // SYSUI_LOCKSCREEN_GESTURE_TAP_NOTIFICATION_ACTIVATE 5527a52fa86bd279407575192fc9842b6a54624cfbChris Wren MetricsEvent.ACTION_LS_QS, // SYSUI_LOCKSCREEN_GESTURE_SWIPE_DOWN_QS 5627a52fa86bd279407575192fc9842b6a54624cfbChris Wren MetricsEvent.ACTION_SHADE_QS_PULL, // SYSUI_SHADE_GESTURE_SWIPE_DOWN_QS 5727a52fa86bd279407575192fc9842b6a54624cfbChris Wren MetricsEvent.ACTION_SHADE_QS_TAP // SYSUI_TAP_TO_OPEN_QS 5827a52fa86bd279407575192fc9842b6a54624cfbChris Wren }; 59a00a785ec889602b66be3d09814c0babfb610b1cWinson 60a00a785ec889602b66be3d09814c0babfb610b1cWinson /** Secondary user tries binding to the system sysui service */ 61a00a785ec889602b66be3d09814c0babfb610b1cWinson public static final int SYSUI_RECENTS_CONNECTION_USER_BIND_SERVICE = 1; 62a00a785ec889602b66be3d09814c0babfb610b1cWinson /** Secondary user is bound to the system sysui service */ 63a00a785ec889602b66be3d09814c0babfb610b1cWinson public static final int SYSUI_RECENTS_CONNECTION_USER_SYSTEM_BOUND = 2; 64a00a785ec889602b66be3d09814c0babfb610b1cWinson /** Secondary user loses connection after system sysui has died */ 65a00a785ec889602b66be3d09814c0babfb610b1cWinson public static final int SYSUI_RECENTS_CONNECTION_USER_SYSTEM_UNBOUND = 3; 66a00a785ec889602b66be3d09814c0babfb610b1cWinson /** System sysui registers secondary user's callbacks */ 67a00a785ec889602b66be3d09814c0babfb610b1cWinson public static final int SYSUI_RECENTS_CONNECTION_SYSTEM_REGISTER_USER = 4; 68a00a785ec889602b66be3d09814c0babfb610b1cWinson /** System sysui unregisters secondary user's callbacks (after death) */ 69a00a785ec889602b66be3d09814c0babfb610b1cWinson public static final int SYSUI_RECENTS_CONNECTION_SYSTEM_UNREGISTER_USER = 5; 70b018399a3a2762e95126acbe14397eca15bad772Christoph Studer} 71