1*4d7e907cSAndroid Build Coastguard Worker/* 2*4d7e907cSAndroid Build Coastguard Worker * Copyright (C) 2019 The Android Open Source Project 3*4d7e907cSAndroid Build Coastguard Worker * 4*4d7e907cSAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); 5*4d7e907cSAndroid Build Coastguard Worker * you may not use this file except in compliance with the License. 6*4d7e907cSAndroid Build Coastguard Worker * You may obtain a copy of the License at 7*4d7e907cSAndroid Build Coastguard Worker * 8*4d7e907cSAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0 9*4d7e907cSAndroid Build Coastguard Worker * 10*4d7e907cSAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software 11*4d7e907cSAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS, 12*4d7e907cSAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*4d7e907cSAndroid Build Coastguard Worker * See the License for the specific language governing permissions and 14*4d7e907cSAndroid Build Coastguard Worker * limitations under the License. 15*4d7e907cSAndroid Build Coastguard Worker */ 16*4d7e907cSAndroid Build Coastguard Worker 17*4d7e907cSAndroid Build Coastguard Workerpackage [email protected]; 18*4d7e907cSAndroid Build Coastguard Worker 19*4d7e907cSAndroid Build Coastguard Workerimport @2.0::IGnssConfiguration; 20*4d7e907cSAndroid Build Coastguard Workerimport @2.0::GnssConstellationType; 21*4d7e907cSAndroid Build Coastguard Worker 22*4d7e907cSAndroid Build Coastguard Worker/** 23*4d7e907cSAndroid Build Coastguard Worker * Extended interface for GNSS Configuration support. 24*4d7e907cSAndroid Build Coastguard Worker */ 25*4d7e907cSAndroid Build Coastguard Workerinterface IGnssConfiguration extends @2.0::IGnssConfiguration { 26*4d7e907cSAndroid Build Coastguard Worker /** 27*4d7e907cSAndroid Build Coastguard Worker * Represents a blacklisted source, updating the GnssConstellationType to 2.0, which supports 28*4d7e907cSAndroid Build Coastguard Worker * IRNSS. 29*4d7e907cSAndroid Build Coastguard Worker */ 30*4d7e907cSAndroid Build Coastguard Worker struct BlacklistedSource { 31*4d7e907cSAndroid Build Coastguard Worker /** 32*4d7e907cSAndroid Build Coastguard Worker * Defines the constellation of the given satellite(s). 33*4d7e907cSAndroid Build Coastguard Worker */ 34*4d7e907cSAndroid Build Coastguard Worker GnssConstellationType constellation; 35*4d7e907cSAndroid Build Coastguard Worker 36*4d7e907cSAndroid Build Coastguard Worker /** 37*4d7e907cSAndroid Build Coastguard Worker * Satellite (space vehicle) ID number, as defined in GnssSvInfo::svid 38*4d7e907cSAndroid Build Coastguard Worker * 39*4d7e907cSAndroid Build Coastguard Worker * Or 0 to blacklist all svid's for the specified constellation 40*4d7e907cSAndroid Build Coastguard Worker */ 41*4d7e907cSAndroid Build Coastguard Worker int16_t svid; 42*4d7e907cSAndroid Build Coastguard Worker }; 43*4d7e907cSAndroid Build Coastguard Worker 44*4d7e907cSAndroid Build Coastguard Worker /** 45*4d7e907cSAndroid Build Coastguard Worker * Injects a vector of BlacklistedSource(s) which the HAL must not use to calculate the 46*4d7e907cSAndroid Build Coastguard Worker * GNSS location output. 47*4d7e907cSAndroid Build Coastguard Worker * 48*4d7e907cSAndroid Build Coastguard Worker * The superset of all satellite sources provided, including wildcards, in the latest call 49*4d7e907cSAndroid Build Coastguard Worker * to this method, is the set of satellites sources that must not be used in calculating 50*4d7e907cSAndroid Build Coastguard Worker * location. 51*4d7e907cSAndroid Build Coastguard Worker * 52*4d7e907cSAndroid Build Coastguard Worker * All measurements from the specified satellites, across frequency bands, are blacklisted 53*4d7e907cSAndroid Build Coastguard Worker * together. 54*4d7e907cSAndroid Build Coastguard Worker * 55*4d7e907cSAndroid Build Coastguard Worker * If this method is never called after the IGnssConfiguration.hal connection is made on boot, 56*4d7e907cSAndroid Build Coastguard Worker * or is called with an empty vector, then no satellites are to be blacklisted as a result of 57*4d7e907cSAndroid Build Coastguard Worker * this API. 58*4d7e907cSAndroid Build Coastguard Worker * 59*4d7e907cSAndroid Build Coastguard Worker * This blacklist must be considered as an additional source of which satellites 60*4d7e907cSAndroid Build Coastguard Worker * should not be trusted for location on top of existing sources of similar information 61*4d7e907cSAndroid Build Coastguard Worker * such as satellite broadcast health being unhealthy and measurement outlier removal. 62*4d7e907cSAndroid Build Coastguard Worker * 63*4d7e907cSAndroid Build Coastguard Worker * @param blacklist The BlacklistedSource(s) of satellites the HAL must not use. 64*4d7e907cSAndroid Build Coastguard Worker * 65*4d7e907cSAndroid Build Coastguard Worker * @return success Whether the HAL accepts and abides by the provided blacklist. 66*4d7e907cSAndroid Build Coastguard Worker */ 67*4d7e907cSAndroid Build Coastguard Worker setBlacklist_2_1(vec<BlacklistedSource> blacklist) generates (bool success); 68*4d7e907cSAndroid Build Coastguard Worker}; 69