1 /* 2 * Copyright (C) 2021 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 * http://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 package com.android.wm.shell.common.split; 17 18 import android.annotation.IntDef; 19 20 /** Helper utility class of methods and constants that are available to be imported in Launcher. */ 21 public class SplitScreenConstants { 22 23 /** 24 * Split position isn't specified normally meaning to use what ever it is currently set to. 25 */ 26 public static final int SPLIT_POSITION_UNDEFINED = -1; 27 28 /** 29 * Specifies that a split is positioned at the top half of the screen if 30 * in portrait mode or at the left half of the screen if in landscape mode. 31 */ 32 public static final int SPLIT_POSITION_TOP_OR_LEFT = 0; 33 34 /** 35 * Specifies that a split is positioned at the bottom half of the screen if 36 * in portrait mode or at the right half of the screen if in landscape mode. 37 */ 38 public static final int SPLIT_POSITION_BOTTOM_OR_RIGHT = 1; 39 40 @IntDef(prefix = {"SPLIT_POSITION_"}, value = { 41 SPLIT_POSITION_UNDEFINED, 42 SPLIT_POSITION_TOP_OR_LEFT, 43 SPLIT_POSITION_BOTTOM_OR_RIGHT 44 }) 45 public @interface SplitPosition { 46 } 47 } 48