Lines Matching refs:cls
28 def prepare(cls, example_name, package_name, activity_name, abi=None, adb_root=False): argument
29 cls.adb = AdbHelper(enable_switch_to_root=adb_root)
30 cls.example_path = TestHelper.testdata_path(example_name)
31 if not os.path.isdir(cls.example_path):
32 log_fatal("can't find " + cls.example_path)
33 for root, _, files in os.walk(cls.example_path):
35 cls.apk_path = os.path.join(root, 'app-profiling.apk')
37 if not hasattr(cls, 'apk_path'):
38 log_fatal("can't find app-profiling.apk under " + cls.example_path)
39 cls.package_name = package_name
40 cls.activity_name = activity_name
44 args.append(cls.apk_path)
45 cls.adb.check_run(args)
46 cls.adb_root = adb_root
47 cls.has_perf_data_for_report = False
50 cls.use_compiled_java_code = TestHelper.android_version <= 8
51 cls.testcase_dir = TestHelper.get_test_dir(cls.__name__)
54 def tearDownClass(cls): argument
55 remove(cls.testcase_dir)
56 if hasattr(cls, 'package_name'):
57 cls.adb.check_run(["uninstall", cls.package_name])