/development/vndk/tools/definition-tool/tests/ |
D | test_elf_link_data.py | 15 def setUp(self): argument 16 self.x = ELFLinkData(PT_SYSTEM, '/system/lib/libx.so', None) 17 self.y = ELFLinkData(PT_SYSTEM, '/system/lib/liby.so', None) 18 self.z = ELFLinkData(PT_SYSTEM, '/system/lib/libz.so', None) 19 self.w = ELFLinkData(PT_SYSTEM, '/system/lib/libw.so', None) 20 self.v = ELFLinkData(PT_VENDOR, '/vendor/lib/libv.so', None) 22 self.x.add_dep(self.y, ELFLinkData.NEEDED) 23 self.x.add_dep(self.z, ELFLinkData.DLOPEN) 25 self.z.add_dep(self.w, ELFLinkData.NEEDED) 26 self.z.add_dep(self.w, ELFLinkData.DLOPEN) [all …]
|
D | test_tagged_dict.py | 47 def test_normalize_tag(self): argument 48 self.assertEqual('ll_ndk', TaggedDict._normalize_tag('ll-ndk')) 49 self.assertEqual('ll_ndk', TaggedDict._normalize_tag('LL-NDK')) 50 self.assertEqual('ll_ndk', TaggedDict._normalize_tag('LL_NDK')) 51 with self.assertRaises(ValueError): 55 def _check_tag_visibility(self, d, from_tag, visible_tags): argument 57 self.assertEqual(d.is_tag_visible(from_tag, to_tag), 61 def test_is_tag_visible(self): argument 66 self._check_tag_visibility(d, 'll_ndk', visible_tags) 67 self._check_tag_visibility(d, 'll_ndk_indirect', visible_tags) [all …]
|
D | test_ndk_libs.py | 15 def test_is_ll_ndk(self): argument 16 self.assertTrue(NDK_LIBS.is_ll_ndk('/system/lib/libc.so')) 17 self.assertTrue(NDK_LIBS.is_ll_ndk('/system/lib/libdl.so')) 18 self.assertTrue(NDK_LIBS.is_ll_ndk('/system/lib/liblog.so')) 19 self.assertTrue(NDK_LIBS.is_ll_ndk('/system/lib/libm.so')) 20 self.assertTrue(NDK_LIBS.is_ll_ndk('/system/lib/libstdc++.so')) 21 self.assertTrue(NDK_LIBS.is_ll_ndk('/system/lib/libvndksupport.so')) 22 self.assertTrue(NDK_LIBS.is_ll_ndk('/system/lib/libandroid_net.so')) 23 self.assertTrue(NDK_LIBS.is_ll_ndk('/system/lib/libz.so')) 25 self.assertTrue(NDK_LIBS.is_ll_ndk('/system/lib64/libc.so')) [all …]
|
D | test_elf.py | 16 def setUp(self): argument 17 self.sym_local = Elf_Sym(0, 0, 4, 0, 0, 1) 18 self.sym_global = Elf_Sym(0, 0, 4, 17, 0, 1) 19 self.sym_weak = Elf_Sym(0, 0, 4, 33, 0, 1) 20 self.sym_undef = Elf_Sym(0, 0, 4, 16, 0, 0) 22 def test_is_local(self): argument 23 self.assertTrue(self.sym_local.is_local) 24 self.assertFalse(self.sym_global.is_local) 25 self.assertFalse(self.sym_weak.is_local) 27 def test_is_global(self): argument [all …]
|
D | test_generic_refs.py | 20 def __init__(self, exported_symbols): argument 21 self.exported_symbols = exported_symbols 25 def __init__(self, path, exported_symbols): argument 26 self.path = path 27 self.elf = MockELF(exported_symbols) 31 def setUp(self): argument 32 self.ref = GenericRefs() 33 self.ref.add('/system/lib/libc.so', 35 self.ref.add('/system/lib/libm.so', 37 self.ref.add('/system/lib64/libc.so', [all …]
|
D | test_elf_linker.py | 27 def __init__(self): argument 28 self.graph = ELFLinker() 30 def add_lib(self, partition, klass, name, dt_needed=[], argument 35 lib_dir = os.path.join('/', self._PARTITION_NAMES[partition], 36 self._LIB_DIRS[klass]) 46 node = self.graph.add_lib(partition, path, elf) 47 setattr(self, name + '_' + elf.elf_class_name, node) 50 def add_multilib(self, partition, name, dt_needed=[], argument 55 self.add_lib(partition, ELF.ELFCLASS32, name, dt_needed, 57 self.add_lib(partition, ELF.ELFCLASS64, name, dt_needed, [all …]
|
/development/testrunner/test_defs/ |
D | test_suite.py | 27 def __init__(self): argument 28 self._name = None 29 self._build_path = None 30 self._build_dependencies = [] 31 self._is_continuous = False 32 self._suite = None 33 self._description = '' 34 self._extra_build_args = '' 35 self._is_full_make = False 36 self._is_granted_permissions = True [all …]
|
D | instrumentation_test.py | 36 def __init__(self): argument 37 test_suite.AbstractTestSuite.__init__(self) 38 self._package_name = None 39 self._runner_name = self.DEFAULT_RUNNER 40 self._class_name = None 41 self._target_name = None 42 self._java_package = None 44 def GetPackageName(self): argument 45 return self._package_name 47 def SetPackageName(self, package_name): argument [all …]
|
D | xml_suite_helper.py | 45 def Parse(self, element): argument 68 def _ParseCommonAttributes(self, suite_element, test_suite): argument 69 test_suite.SetName(self._ParseAttribute(suite_element, self._NAME_ATTR, 71 test_suite.SetBuildPath(self._ParseAttribute(suite_element, 72 self._BUILD_ATTR, True)) 73 test_suite.SetContinuous(self._ParseAttribute(suite_element, 74 self._CONTINUOUS_ATTR, 76 test_suite.SetIsGrantedPermissions(self._ParseAttribute(suite_element, 77 self._GRANTED_PERMISSIONS_ATTR, 79 test_suite.SetSuite(self._ParseAttribute(suite_element, self._SUITE_ATTR, False, [all …]
|
D | host_test.py | 47 def __init__(self): argument 48 test_suite.AbstractTestSuite.__init__(self) 49 self._jar_name = None 50 self._class_name = None 52 def GetBuildDependencies(self, options): argument 54 return self._LIB_BUILD_PATHS 56 def GetClassName(self): argument 57 return self._class_name 59 def SetClassName(self, class_name): argument 60 self._class_name = class_name [all …]
|
/development/tools/axl/ |
D | axl.py | 32 def __init__(self): argument 33 self.log = log.Log.getInstance() 35 def write(self, data): argument 36 self.log("BaseProtocol.write()", len(data), data) 37 return self.transport.write(data) 39 def dataReceived(self, data): argument 40 self.log("BaseProtocol.dataReceived()", len(data), data) 42 def connectionMade(self): argument 43 self.log("BaseProtocol.connectionMade()") 44 self.transport.setTcpNoDelay(1) # send immediately [all …]
|
/development/testrunner/tests/ |
D | am_instrument_parser_tests.py | 26 def testParseAmInstResult(self): argument 35 self.assertEquals(4871, bundle_dict['java_size']) 36 self.assertEquals(33846, bundle_dict['cpu_time']) 37 self.assertEquals("\nError: Failed to generate emma coverage.", 40 def testParseAmInstStatus(self): argument 78 self.assertEquals('testLaunchComplexActivity', map['test']) 79 self.assertEquals('LaunchPerformanceTest', map['class']) 80 self.assertEquals('1', map['current']) 81 self.assertEquals('2', map['numtests']) 82 self.assertEquals('InstrumentationTestRunner', map['id']) [all …]
|
/development/testrunner/coverage/ |
D | coverage_target.py | 19 def __init__(self): argument 20 self._name = None 21 self._type = None 22 self._build_path = None 23 self._paths = [] 25 def GetName(self): argument 26 return self._name 28 def SetName(self, name): argument 29 self._name = name 31 def GetPaths(self): argument [all …]
|
D | coverage.py | 59 def __init__(self, adb_interface): argument 60 self._root_path = android_build.GetTop() 61 self._out_path = android_build.GetOut() 62 self._output_root_path = os.path.join(self._out_path, 63 self._COVERAGE_REPORT_PATH) 64 self._emma_jar_path = os.path.join(self._root_path, self._EMMA_JAR) 65 self._adb = adb_interface 66 self._targets_manifest = self._ReadTargets() 68 def ExtractReport(self, argument 93 output_path = os.path.join(self._out_path, [all …]
|
D | coverage_targets.py | 49 def __init__(self, ): argument 50 self._target_map= {} 52 def __iter__(self): argument 53 return iter(self._target_map.values()) 55 def Parse(self, file_path): argument 73 target_elements = doc.getElementsByTagName(self._TARGET_TAG_NAME) 77 self._ParseCoverageTarget(target, target_element) 78 self._AddTarget(target) 80 def _AddTarget(self, target): argument 81 self._target_map[target.GetName()] = target [all …]
|
/development/testrunner/ |
D | make_tree.py | 27 def __init__(self, name, parent): argument 28 self._name = name 29 self._children_map = {} 30 self._is_leaf = False 31 self._parent = parent 32 self._includes_submake = None 34 self._path = os.path.join(parent._GetPath(), name) 36 self._path = "" 38 def _AddPath(self, path_segs): argument 46 return self [all …]
|
D | runtest.py | 83 def __init__(self): argument 85 self._root_path = android_build.GetTop() 90 self._re_make_install_path = re.compile(pattern) 92 self._adb = None 93 self._known_tests = None 94 self._options = None 95 self._test_args = None 96 self._tests_to_run = None 98 def _ProcessOptions(self): argument 102 self._TEST_FILE_NAME) [all …]
|
D | android_mk.py | 40 def __init__(self): argument 41 self._includes = Set() # variables included in makefile 42 self._variables = {} # variables defined in makefile 43 self._has_gtestlib = False 45 def _ProcessMKLine(self, line): argument 53 m = self._RE_INCLUDE.match(line) 55 self._includes.add(m.group(1)) 57 parts = line.split(self._VAR_DELIMITER) 59 self._variables[parts[0].strip()] = parts[1].strip() 62 self._has_gtestlib = True [all …]
|
D | adb_interface.py | 42 def SetEmulatorTarget(self): argument 44 self._target_arg = "-e" 46 def SetDeviceTarget(self): argument 48 self._target_arg = "-d" 50 def SetTargetSerial(self, serial): argument 52 self._target_arg = "-s %s" % serial 54 def SendCommand(self, command_string, timeout_time=60, retry_count=3): argument 69 adb_cmd = "adb %s %s" % (self._target_arg, command_string) 74 def SendShellCommand(self, cmd, timeout_time=20, retry_count=3): argument 90 return self.SendCommand("shell %s" % cmd, timeout_time=timeout_time, [all …]
|
D | android_manifest.py | 35 def __init__(self, app_path=None): argument 37 self._ParseManifest(app_path) 39 def GetAppPath(self): argument 41 return self._app_path 43 def GetPackageName(self): argument 49 manifest = self._GetManifestElement() 54 def _ParseManifest(self, app_path): argument 63 self._app_path = app_path 64 self._manifest_path = os.path.join(app_path, self.FILENAME) 65 self._dom = xml.dom.minidom.parse(self._manifest_path) [all …]
|
/development/tools/logblame/ |
D | ps.py | 12 def __init__(self, uid, pid, ppid, name): argument 13 self.uid = uid 14 self.pid = pid 15 self.ppid = ppid 16 self.name = name 18 def DisplayName(self): argument 19 if self.name: 20 return self.name 21 if self.uid: 22 return self.uid.name [all …]
|
/development/ndk/tools/ |
D | headers-diff-bionic-vs-ndk.py | 21 def __init__(self, platforms_root, archs): argument 23 self.platforms = [] 24 self.archs = archs 25 self.sysincludes = {} 26 for arch in self.archs: 27 self.sysincludes[arch] = {} 33 self.platforms.append(dirname) 35 self.platforms.sort(key = lambda s: int(s.split('-')[1])) 36 self.root = platforms_root 38 print 'Wrong platforms list \n{0}'.format(str(self.platforms)) [all …]
|
/development/python-packages/adb/ |
D | device.py | 29 def __init__(self, serial): argument 30 self.serial = serial 31 super(DeviceNotFoundError, self).__init__( 36 def __init__(self): argument 37 super(NoUniqueDeviceError, self).__init__('No unique device') 41 def __init__(self, cmd, stdout, stderr, exit_code): argument 42 super(ShellError, self).__init__( 44 self.cmd = cmd 45 self.stdout = stdout 46 self.stderr = stderr [all …]
|
/development/scripts/ |
D | stack_core.py | 70 def UpdateAbiRegexes(self): argument 72 self.width = "{16}" 73 self.spacing = " " 75 self.width = "{8}" 76 self.spacing = "" 78 …self.register_line = re.compile("(([ ]*\\b(" + self.register_names[symbol.ARCH] + ")\\b +[0-9a-f]"… 91 self.trace_line = re.compile( 95 "(?P<offset>[0-9a-f]" + self.width + ")[ \t]+" # Offset (hex number given without 104 self.sanitizer_trace_line = re.compile( 120 …self.value_line = re.compile("(.*)([0-9a-f]" + self.width + ")[ \t]+([0-9a-f]" + self.width + ")[ … [all …]
|
/development/vndk/tools/header-checker/tests/ |
D | test.py | 17 def run_and_compare(self, input_path, expected_path, cflags=[]): argument 21 self.assertEqual(actual_output, expected_output) 23 def run_and_compare_name(self, name, cflags=[]): argument 26 self.run_and_compare(input_path, expected_path, cflags) 28 def run_and_compare_name_cpp(self, name, cflags=[]): argument 29 self.run_and_compare_name(name, cflags + ['-x', 'c++', '-std=c++11']) 31 def run_and_compare_name_c_cpp(self, name, cflags=[]): argument 32 self.run_and_compare_name(name, cflags) 33 self.run_and_compare_name_cpp(name, cflags) 35 def test_func_decl_no_args(self): argument [all …]
|