summaryrefslogtreecommitdiff
path: root/test/988-method-trace/gen_srcs.py
diff options
context:
space:
mode:
author Orion Hodson <oth@google.com> 2021-08-27 17:00:10 +0100
committer Orion Hodson <oth@google.com> 2021-08-31 18:00:18 +0000
commit611d71c6710613a69698a80d60de9725a513703d (patch)
tree080fec2740d793fc8cf61a5607c31ed51cec1b97 /test/988-method-trace/gen_srcs.py
parent98f01d1deac3a938e49f0725c58798e38ef59277 (diff)
Fix a few non-inclusive terms
Largely based on go/hiddenapi-list-renaming Bug: 161336379 Test: TH Change-Id: Iaa06eed26ab0cb9bb4e2995a148f3251386ad33d
Diffstat (limited to 'test/988-method-trace/gen_srcs.py')
-rwxr-xr-xtest/988-method-trace/gen_srcs.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/988-method-trace/gen_srcs.py b/test/988-method-trace/gen_srcs.py
index 697b17f9f7..728074beb4 100755
--- a/test/988-method-trace/gen_srcs.py
+++ b/test/988-method-trace/gen_srcs.py
@@ -38,10 +38,10 @@ IDX_METHOD_NAME = -2
IDX_CLASS_NAME = -3
# Exclude all hidden API.
-KLASS_BLACK_LIST = ['sun.misc.Unsafe', 'libcore.io.Memory', 'java.lang.StringFactory',
+KLASS_BLOCK_LIST = ['sun.misc.Unsafe', 'libcore.io.Memory', 'java.lang.StringFactory',
'java.lang.invoke.MethodHandle', # invokes are tested by 956-method-handles
'java.lang.invoke.VarHandle' ] # TODO(b/65872996): will tested separately
-METHOD_BLACK_LIST = [('java.lang.ref.Reference', 'getReferent'),
+METHOD_BLOCK_LIST = [('java.lang.ref.Reference', 'getReferent'),
('java.lang.String', 'getCharsNoCheck'),
('java.lang.System', 'arraycopy')] # arraycopy has a manual test.
@@ -201,12 +201,12 @@ class MethodInfo:
def placeholder_instance_value(self):
return KLASS_INSTANCE_INITIALIZERS.get(self.klass, 'new %s()' %(self.klass))
- def is_blacklisted(self):
- for blk in KLASS_BLACK_LIST:
+ def is_blocklisted(self):
+ for blk in KLASS_BLOCK_LIST:
if self.klass.startswith(blk):
return True
- return (self.klass, self.method_name) in METHOD_BLACK_LIST
+ return (self.klass, self.method_name) in METHOD_BLOCK_LIST
# parse the V(...) \ list of items into a MethodInfo
def parse_method_info(items):
@@ -293,8 +293,8 @@ def main():
initialize_klass_dict = collections.OrderedDict()
for i in parse_all_method_infos():
debug_print(i)
- if i.is_blacklisted():
- debug_print("Blacklisted: " + str(i))
+ if i.is_blocklisted():
+ debug_print("Blocklisted: " + str(i))
continue
call_str = format_call_to(i)