• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
17 /* UwbTestLoopBackTestResult is unused now*/
18 /*package com.android.server.uwb.test;
19 
20 import com.android.server.uwb.util.UwbUtil;
21 
22 public class UwbTestLoopBackTestResult {
23     public int mStatus;
24     public  long mTxtsInt;
25     public  int mTxtsFrac;
26     public  long mRxtsInt;
27     public  int mRxtsFrac;
28     public  float mAoaAzimuth;
29     public  float mAoaElevation;
30     public  int mPhr;
31     public  byte[] mPsduData;
32 
33     *//* Vendor Specific Data *//*
34     public byte[] mVendorExtnData;
35 
36     public UwbTestLoopBackTestResult(int status, long txtsInt, int txtsFrac, long rxtsInt,
37             int rxtsFrac, int aoaAzimuth, int aoaElevation,  int phr, byte[] psduData,
38             byte[] vendorExtnData) {
39         *//* Vendor Specific data  *//*
40         this.mStatus = status;
41         this.mTxtsInt = txtsInt;
42         this.mTxtsFrac = txtsFrac;
43         this.mRxtsInt = rxtsInt;
44         this.mRxtsFrac = rxtsFrac;
45         this.mAoaAzimuth =
46                 UwbUtil.convertQFormatToFloat(UwbUtil.twos_compliment(aoaAzimuth, 16), 9, 7);
47         this.mAoaElevation =
48                 UwbUtil.convertQFormatToFloat(UwbUtil.twos_compliment(aoaElevation, 16), 9, 7);
49         this.mPhr = phr;
50         this.mPsduData = psduData;
51 
52         *//* Vendor Specific Data *//*
53         this.mVendorExtnData = vendorExtnData;
54 
55     }
56 
57     public int getStatus() {
58         return mStatus;
59     }
60 
61 
62     public long getTxTsInt() {
63         return mTxtsInt;
64     }
65 
66     public int getTxTsFrac() {
67         return mTxtsFrac;
68     }
69 
70     public long getRxTsInt() {
71         return mRxtsInt;
72     }
73 
74     public int getRxTsFrac() {
75         return mRxtsFrac;
76     }
77 
78     public float getAoaAzimuth() {
79         return mAoaAzimuth;
80     }
81 
82     public float getAoaElevation() {
83         return mAoaElevation;
84     }
85 
86     public int getPhr() {
87         return mPhr;
88     }
89 
90     public byte[] getPsduData() {
91         return mPsduData;
92     }
93 
94     *//* Vendor Specific Data *//*
95 
96     public byte[] getVendorExtnData() {
97         return mVendorExtnData;
98     }
99 
100     @Override
101     public String toString() {
102         return " UwbTestLoopBackTestResult { "
103                 + " Status = " + mStatus
104                 + ", TxtsInt = " + mTxtsInt
105                 + ", TxtsFrac = " + mTxtsFrac
106                 + ", RxtsInt = " + mRxtsInt
107                 + ", RxtsFrac = " + mRxtsFrac
108                 + ", AoaAzimuth = " + mAoaAzimuth
109                 + ", AoaElevation = " + mAoaElevation
110                 + ", Phr = " + mPhr
111                 + ", PsduData = " + UwbUtil.toHexString(mPsduData)
112                 + *//* Vendor Specific Data *//*
113                 ", VendorExtnData = " + UwbUtil.toHexString(mVendorExtnData)
114                 + '}';
115     }
116 }*/
117