Lines Matching refs:name
67 self.name = raw[1].strip(";")
98 self.name = raw[1]
143 self.fullname = self.pkg.name + "." + self.fullname
146 self.name = self.fullname[self.fullname.rindex(".")+1:]
159 self.name = raw[raw.index("package")+1]
160 self.name_path = self.name.split(".")
268 if re.match("[A-Z0-9_]+", f.name) is None:
271 if f.name.startswith("MIN_") or f.name.startswith("MAX_"):
289 if re.search("[A-Z]{2,}", clazz.name) is not None:
291 if re.match("[^A-Z]", clazz.name):
302 if re.search("[A-Z]{2,}", m.name) is not None:
304 if re.match("[^a-z]", m.name):
314 if clazz.name.endswith("Callbacks"):
316 if clazz.name.endswith("Observer"):
319 if clazz.name.endswith("Callback"):
324 if not re.match("on[A-Z][a-z]*", m.name):
335 if clazz.name.endswith("Listener"):
340 if not re.match("on[A-Z][a-z]*", m.name):
343 if len(clazz.methods) == 1 and clazz.name.startswith("On"):
345 if (m.name + "Listener").lower() != clazz.name.lower():
358 if f.name.startswith("EXTRA_"): continue
359 if f.name == "SERVICE_INTERFACE" or f.name == "PROVIDER_INTERFACE": continue
360 if "INTERACTION" in f.name: continue
363 if "_ACTION" in f.name or "ACTION_" in f.name or ".action." in f.value.lower():
364 if not f.name.startswith("ACTION_"):
374 prefix = clazz.pkg.name + ".action"
375 expected = prefix + "." + f.name[7:]
392 if f.name.startswith("ACTION_"): continue
395 if "_EXTRA" in f.name or "EXTRA_" in f.name or ".extra" in f.value.lower():
396 if not f.name.startswith("EXTRA_"):
399 if clazz.pkg.name == "android.content" and clazz.name == "Intent":
401 elif clazz.pkg.name == "android.app.admin":
404 prefix = clazz.pkg.name + ".extra"
405 expected = prefix + "." + f.name[6:]
425 creator = [ i for i in clazz.fields if i.name == "CREATOR" ]
426 write = [ i for i in clazz.methods if i.name == "writeToParcel" ]
427 describe = [ i for i in clazz.methods if i.name == "describeContents" ]
480 if not re.match("[a-z]([a-zA-Z]+)?", f.name):
483 if re.match("[ms][A-Z]", f.name):
486 if re.match("[A-Z_]+", f.name):
495 methods = [ m.name for m in clazz.methods ]
498 if m.name.startswith("register"):
499 other = "unregister" + m.name[8:]
502 if m.name.startswith("unregister"):
503 other = "register" + m.name[10:]
507 if m.name.startswith("add") or m.name.startswith("remove"):
511 if m.name.startswith("add"):
512 other = "remove" + m.name[3:]
515 if m.name.startswith("remove") and not m.name.startswith("removeAll"):
516 other = "add" + m.name[6:]
520 if m.name.startswith("register") or m.name.startswith("unregister"):
533 if clazz.name == "Intent": return
537 if m.name.startswith("create") and m.name.endswith("Intent"):
549 if not clazz.name.endswith("Service"):
554 if f.name == "SERVICE_INTERFACE":
561 if not clazz.name.endswith("Provider"):
566 if f.name == "PROVIDER_INTERFACE":
573 if not clazz.name.endswith("Receiver"):
578 if not clazz.name.endswith("Activity"):
584 if not re.match("on[A-Z]", m.name):
595 if not clazz.name.endswith("Builder"): return
597 if clazz.name != "Builder":
602 if m.name == "build":
606 if m.name.startswith("get"): continue
607 if m.name.startswith("clear"): continue
609 if m.name.startswith("with"):
612 if m.name.startswith("set"):
628 if clazz.pkg.name.startswith("com.android"):
658 cr = rank(clazz.pkg.name)
688 if m.name == actual:
693 if re.match("is[A-Z]", m.name):
694 target = m.name[2:]
696 error_if_exists(sets, m.name, expected, "setHas" + target)
697 elif re.match("has[A-Z]", m.name):
698 target = m.name[3:]
700 error_if_exists(sets, m.name, expected, "setIs" + target)
701 error_if_exists(sets, m.name, expected, "set" + target)
702 elif re.match("get[A-Z]", m.name):
703 target = m.name[3:]
705 error_if_exists(sets, m.name, expected, "setIs" + target)
706 error_if_exists(sets, m.name, expected, "setHas" + target)
709 if re.match("set[A-Z]", m.name):
710 target = m.name[3:]
712 error_if_exists(sets, m.name, expected, "is" + target)
713 error_if_exists(sets, m.name, expected, "has" + target)
734 if "FLAG_" in f.name:
740 scope = f.name[0:f.name.index("FLAG_")]
753 if clazz.name == "android.content.ContentProviderClient": continue
754 if clazz.name == "android.os.Binder": continue
755 if clazz.name == "android.os.IBinder": continue
794 if not clazz.name.endswith("Manager"): return
852 overloads[m.name].append(m)
854 for name, methods in overloads.items():
913 if m.name.startswith("unregister"): continue
914 if m.name.startswith("remove"): continue
915 if re.match("on[A-Z]+", m.name): continue
917 by_name[m.name].append(m)
921 found[m.name] = m
925 for m in by_name[f.name]:
948 if "Listener" in m.name or "Callback" in m.name: continue
962 …if clazz.name in ["anim","animator","color","dimen","drawable","interpolator","layout","transition…
964 if re.match("[a-z1-9_]+$", f.name): continue
968 if clazz.name in ["array","attr","id","bool","fraction","integer"]:
970 if re.match("config_[a-z][a-zA-Z1-9]*$", f.name): continue
971 if re.match("layout_[a-z][a-zA-Z1-9]*$", f.name): continue
972 if re.match("state_[a-z_]*$", f.name): continue
974 if re.match("[a-z][a-zA-Z1-9]*$", f.name): continue
978 if clazz.name in ["style"]:
980 if re.match("[A-Z][A-Za-z1-9]+(_[A-Z][A-Za-z1-9]+?)*$", f.name): continue
998 has_stream.add(m.name)
1001 if m.name not in has_stream:
1008 if not clazz.name.endswith("Manager"): return
1077 if clazz.extends.endswith("Exception") and not clazz.name.endswith("Exception"):
1098 if m.name.endswith(k):
1100 if m.name.endswith("Nanos") or m.name.endswith("Micros"):
1102 if m.name.endswith("Seconds"):
1111 if m.name.endswith("Fraction") and typ != "float":
1113 if m.name.endswith("Percentage") and typ != "int":
1124 …if m.name in ["close","release","destroy","finish","finalize","disconnect","shutdown","stop","free…
1131 if clazz.pkg.name.startswith("java"): return
1132 if clazz.pkg.name.startswith("junit"): return
1133 if clazz.pkg.name.startswith("org.apache"): return
1134 if clazz.pkg.name.startswith("org.xml"): return
1135 if clazz.pkg.name.startswith("org.json"): return
1136 if clazz.pkg.name.startswith("org.w3c"): return
1137 if clazz.pkg.name.startswith("android.icu."): return