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.server.uwb.util; 17 18 import android.annotation.IntDef; 19 20 import java.lang.annotation.Retention; 21 import java.lang.annotation.RetentionPolicy; 22 23 /** 24 * Constants used by UWB modules. 25 */ 26 public class Constants { 27 28 public static final byte[] FIRA_APPLET_AID = 29 new byte[] { (byte) 0xA0, (byte) 0x00, (byte) 0x00, (byte) 0x08, 30 (byte) 0x67, (byte) 0x46, (byte) 0x41, (byte) 0x50, (byte) 0x00 }; 31 32 /** 33 * The UWB session type 34 */ 35 @IntDef(prefix = {"UWB_SESSION_TYPE_"}, value = { 36 UWB_SESSION_TYPE_UNICAST, 37 UWB_SESSION_TYPE_MULTICAST, 38 }) 39 @Retention(RetentionPolicy.SOURCE) 40 public @interface UwbSessionType { 41 } 42 43 /** 44 * Unicast UWB session (1 controller, 1 controlee). 45 */ 46 public static final int UWB_SESSION_TYPE_UNICAST = 0; 47 /** 48 * Multicast UWB session (1 controller, multiple controlees). 49 */ 50 public static final int UWB_SESSION_TYPE_MULTICAST = 1; 51 Constants()52 private Constants() { 53 } 54 } 55