Home | History | Annotate | Download | only in apilint

Lines Matching refs:API

18 Enforces common Android public API design patterns.  It ignores lint messages from
19 a previous API level, if provided.
25 $ git blame api/current.txt -t -e > /tmp/currentblame.txt
168 api = {}
188 # parse and don't build up entire API
193 api[clazz.fullname] = clazz
205 return api
243 """Records an API failure to be processed later."""
316 error(clazz, None, "CL3", "Callbacks must be abstract class to enable extension in future API levels")
1042 """Find all style issues in the given API stream."""
1049 def examine_api(api):
1050 """Find all style issues in the given parsed API."""
1053 for key in sorted(api.keys()):
1054 examine_clazz(api[key])
1059 """Find any incompatible API changes between two levels."""
1062 def class_exists(api, test):
1063 return test.fullname in api
1065 def ctor_exists(api, clazz, test):
1070 def all_methods(api, clazz):
1073 methods.extend(all_methods(api, api[clazz.extends]))
1076 def method_exists(api, clazz, test):
1077 methods = all_methods(api, clazz)
1082 def field_exists(api, clazz, test):
1114 parser = argparse.ArgumentParser(description="Enforces common Android public API design \
1115 patterns. It ignores lint messages from a previous API level, if provided.")
1140 # ignore errors from previous API level
1150 print "%s API compatibility issues %s\n" % ((format(fg=WHITE, bg=BLUE, bold=True), format(reset=True)))
1156 print "%s API style issues %s\n" % ((format(fg=WHITE, bg=BLUE, bold=True), format(reset=True)))