• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1--
2-- Copyright 2020 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--
16SELECT "directly_connected" as type, s.name, s1.name as start_name, s2.name as end_name  FROM slice s
17JOIN DIRECTLY_CONNECTED_FLOW(s.id) c
18JOIN slice s1 ON s1.id = c.slice_out
19JOIN slice s2 ON s2.id = c.slice_in
20UNION
21SELECT "following" as type, s.name, s1.name as start_name, s2.name as end_name  FROM slice s
22JOIN FOLLOWING_FLOW(s.id) c
23JOIN slice s1 ON s1.id = c.slice_out
24JOIN slice s2 ON s2.id = c.slice_in
25UNION
26SELECT "preceding" as type, s.name, s1.name as start_name, s2.name as end_name  FROM slice s
27JOIN PRECEDING_FLOW(s.id) c
28JOIN slice s1 ON s1.id = c.slice_out
29JOIN slice s2 ON s2.id = c.slice_in
30ORDER BY type, s.name, s1.name, s2.name ASC
31