Lines Matching refs:api
89 def decode_api_level(api: str, api_map: ApiMap) -> int:
97 return int(api)
101 if api == "current":
104 return api_map[api]
157 def should_omit_version(version: Version, arch: Arch, api: int, llndk: bool,
179 if not symbol_in_api(version.tags, arch, api):
184 def should_omit_symbol(symbol: Symbol, arch: Arch, api: int, llndk: bool,
195 if not symbol_in_api(symbol.tags, arch, api):
215 def symbol_in_api(tags: Iterable[Tag], arch: Arch, api: int) -> bool:
227 return api == FUTURE_API_LEVEL
234 return api >= int(get_tag_value(introduced_tag))
237 def symbol_versioned_in_api(tags: Iterable[Tag], api: int) -> bool:
251 return api >= int(get_tag_value(tag))
273 api: int, llndk: bool, apex: bool) -> None:
277 self.api = api
308 if should_omit_version(version, self.arch, self.api, self.llndk,
313 if should_omit_symbol(symbol, self.arch, self.api, self.llndk,