• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1--
2-- Copyright 2024 The Android Open Source Project
3--
4-- Licensed under the Apache License, Version 2.0 (the "License");
5-- you may not use this file except in compliance with the License.
6-- You may obtain a copy of the License at
7--
8--     https://www.apache.org/licenses/LICENSE-2.0
9--
10-- Unless required by applicable law or agreed to in writing, software
11-- distributed under the License is distributed on an "AS IS" BASIS,
12-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-- See the License for the specific language governing permissions and
14-- limitations under the License.
15
16-- (Deprecated) Table to store parameters that will be matched with CUJs using
17-- the CUJ name.
18--
19-- Note that this list should not be used anymore: in recent android versions
20-- each CUJ reports an instant event on their ui thread that can be used to
21-- automatically find the thread id.
22-- This is kept for compatibility with old android versions, as a fallback only.
23-- TODO: b/358038927 - Remove this list in 2025
24DROP TABLE IF EXISTS android_jank_cuj_param_set;
25CREATE TABLE android_jank_cuj_param_set (cuj_name_glob STRING, main_thread_override STRING);
26INSERT INTO android_jank_cuj_param_set (cuj_name_glob, main_thread_override)
27VALUES
28('SPLASHSCREEN_EXIT_ANIM', 'll.splashscreen'),
29('SPLASHSCREEN_AVD', 'll.splashscreen'),
30('ONE_HANDED_ENTER_TRANSITION::*', 'wmshell.main'),
31('ONE_HANDED_EXIT_TRANSITION::*', 'wmshell.main'),
32('PIP_TRANSITION::*', 'wmshell.main'),
33('BACK_PANEL_ARROW', 'BackPanelUiThre');
34
35
36-- Matches each CUJ with the right set of parameters.
37DROP TABLE IF EXISTS android_jank_cuj_param;
38CREATE PERFETTO TABLE android_jank_cuj_param AS
39SELECT cuj_id, main_thread_override
40FROM android_jank_cuj
41LEFT JOIN android_jank_cuj_param_set ON cuj_name GLOB cuj_name_glob;
42