/development/testrunner/test_defs/ |
D | test_walker.py | 34 def FindTests(self, path): argument 71 if not os.path.exists(path): 72 logger.Log('%s does not exist' % path) 74 realpath = os.path.realpath(path) 76 self._build_top = os.path.realpath(android_build.GetTop()) 79 (path, self._build_top)) 86 logger.SilentLog('No tests found within %s, searching upwards' % path) 90 def _IsPathInBuildTree(self, path): argument 99 return os.path.commonprefix([self._build_top, path]) == self._build_top 101 def _MakePathRelativeToBuild(self, path): argument [all …]
|
D | native_test.py | 55 build_path = os.path.join(android_build.GetTop(), self.GetBuildPath()) 56 os.path.walk(build_path, self._CollectTestSources, source_list) 85 full_path = os.path.join(os.sep, "data", "nativetest", f) 118 (name, ext) = os.path.splitext(f) 122 test_list.append(str(os.path.join(dirname, f))) 124 def _FilterOutMissing(self, path, sources): argument 139 binary = os.path.basename(f) 140 binary = os.path.splitext(binary)[0] 141 found = self._FindFileRecursively(path, binary) 143 binary = os.path.relpath(os.path.abspath(found), [all …]
|
D | host_test.py | 38 _JUNIT_BUILD_PATH = os.path.join("external", "junit") 39 _HOSTTESTLIB_BUILD_PATH = os.path.join("development", "tools", "hosttestlib") 94 path = os.path.join(options.host_lib_path, lib) 96 if not os.path.exists(path): 97 raise errors.AbortError(msg="Could not find jar %s" % path) 98 full_lib_paths.append(path)
|
D | gtest.py | 41 def SetTargetExecPath(self, path): argument 42 self._target_exec_path = path 82 if os.path.isfile(sub_tests_path): 83 self._EvaluateFile(test_file_list, os.path.basename(sub_tests_path)) 85 os.path.walk(sub_tests_path, self._CollectTestSources, test_file_list) 87 target_root_path = os.path.join('/data', 'nativetest') 94 suite.SetTargetExecPath(os.path.join(target_root_path, test_file, test_file)) 118 (name, ext) = os.path.splitext(file)
|
/development/ndk/ |
D | unify_all.py | 30 THIS_DIR = os.path.realpath(os.path.dirname(__file__)) 31 ANDROID_ROOT = os.path.dirname(os.path.dirname(THIS_DIR)) 51 return os.path.join(ANDROID_ROOT, *args) 62 subdir = os.path.relpath(root, src) 63 dst_dir = os.path.join(dst, subdir) 64 if not os.path.exists(dst_dir): 71 d_path = os.path.join(root, d) 72 if os.path.islink(d_path): 74 dst_file = os.path.join(dst_dir, d) 78 new_dir = os.path.join(dst_dir, d) [all …]
|
D | build_symbol_db.py | 24 THIS_DIR = os.path.realpath(os.path.dirname(__file__)) 45 platforms_dir = os.path.join(THIS_DIR, 'platforms') 98 symbols_dir = os.path.join( 101 if not os.path.exists(symbols_dir): 108 funcs_file = os.path.join(symbols_dir, funcs_file_name) 109 if os.path.exists(funcs_file): 113 vars_file = os.path.join(symbols_dir, vars_file_name) 114 if os.path.exists(vars_file):
|
/development/testrunner/ |
D | android_build.py | 105 root_path = os.path.join(GetTop(), "out") 123 path = os.path.join(GetHostOutDir(), "bin") 124 if not os.path.exists(path): 125 logger.Log("Error: Host bin path could not be found %s" % path) 127 return path 144 path = os.getenv("ANDROID_PRODUCT_OUT") 145 if path is None: 149 return path 164 path = os.path.join(GetProductOut(), "data", "nativetest") 165 if not os.path.exists(path): [all …]
|
D | make_tree.py | 34 self._path = os.path.join(parent._GetPath(), name) 63 path = os.path.join(android_build.GetTop(), self._path) 64 mk_parser = android_mk.CreateAndroidMK(path) 75 make_list.append(os.path.join(self._path, "Android.mk")) 90 def AddPath(self, path): argument 98 path = os.path.normpath(path) 99 mk_path = os.path.join(android_build.GetTop(), path, "Android.mk") 100 if not os.path.isfile(mk_path): 102 path_segs = path.split(os.sep)
|
/development/vndk/tools/header-checker/tests/ |
D | utils.py | 7 SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__)) 8 AOSP_DIR = os.path.abspath(os.path.join(SCRIPT_DIR, *['..'] * 5)) 11 os.path.join(AOSP_DIR, 'bionic', 'libc', 'include'), 12 os.path.join(AOSP_DIR, 'external', 'libcxx', 'include'), 13 os.path.join(AOSP_DIR, 'prebuilts', 'sdk', 'renderscript', 'clang-include'), 17 os.path.join(AOSP_DIR, 'development', 'vndk', 'tools', 'header-checker', 23 output_name = os.path.join(tmp, os.path.basename(input_path)) + '.dump'
|
D | gen_all.py | 9 SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__)) 10 INPUT_DIR = os.path.join(SCRIPT_DIR, 'input') 11 EXPECTED_DIR = os.path.join(SCRIPT_DIR, 'expected') 30 input_path = os.path.join(base, filename) 32 output_path = os.path.join(EXPECTED_DIR, input_rel_path) 37 os.makedirs(os.path.dirname(output_path), exist_ok=True)
|
/development/testrunner/coverage/ |
D | coverage.py | 43 _EMMA_JAR = os.path.join("external", "emma", "lib", "emma.jar") 48 _CORE_TARGET_PATH = os.path.join("development", "testrunner", 52 _VENDOR_TARGET_PATH = os.path.join("vendor", "*", "tests", "testinfo", 56 _TARGET_INTERMEDIATES_BASE_PATH = os.path.join("target", "common", 62 self._output_root_path = os.path.join(self._out_path, 64 self._emma_jar_path = os.path.join(self._root_path, self._EMMA_JAR) 93 output_path = os.path.join(self._out_path, 100 coverage_local_path = os.path.join(output_path, 104 report_path = os.path.join(output_path, 150 input_metadata = os.path.join(self._GetBuildIntermediatePath(target), [all …]
|
/development/vndk/tools/definition-tool/tests/ |
D | test_elfdump.py | 17 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) 18 VNDK_DEF_TOOL = os.path.join(SCRIPT_DIR, '..', 'vndk_definition_tool.py') 20 INPUT_DIR = os.path.join(SCRIPT_DIR ,'testdata', 'test_elfdump', 'input') 21 EXPECTED_DIR = os.path.join(SCRIPT_DIR, 'testdata', 'test_elfdump', 'expected') 25 def run_elf_dump(path): argument 26 cmd = [sys.executable, VNDK_DEF_TOOL, 'elfdump', path] 52 cls.expected_dir = os.path.join(EXPECTED_DIR, target_name) 53 cls.test_dir = os.path.join(cls.test_dir_base, target_name) 58 src_file = os.path.join(INPUT_DIR, 'main.c') 59 obj_file = os.path.join(cls.test_dir, 'main.o') [all …]
|
D | test_module_info.py | 7 sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) 13 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) 22 m = ModuleInfo(os.path.join(SCRIPT_DIR, 'testdata', 'test_module_info',
|
D | targets.py | 7 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) 8 ANDROID_BUILD_TOP = os.path.abspath(os.path.join(SCRIPT_DIR, *(['..'] * 5))) 21 return os.path.join(ANDROID_BUILD_TOP, 'prebuilts', 'gcc', 25 return os.path.join(ANDROID_BUILD_TOP, 'prebuilts', 'clang', 'host', 29 return os.path.join(ANDROID_BUILD_TOP, 'prebuilts', 'ndk', NDK_VERSION, 47 clang = os.path.join(self.clang_dir, 'bin', 'clang') 60 crtbegin = os.path.join(self.ndk_lib, 'crtbegin_so.o') 61 crtend = os.path.join(self.ndk_lib, 'crtend_so.o') 63 crtbegin = os.path.join(self.ndk_lib, 'crtbegin_static.o') 64 crtend = os.path.join(self.ndk_lib, 'crtend_android.o') [all …]
|
D | test_generic_refs.py | 7 sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) 16 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) 25 def __init__(self, path, exported_symbols): argument 26 self.path = path 43 input_dir = os.path.join(SCRIPT_DIR, 'testdata', 'test_generic_refs')
|
/development/ndk/platforms/android-21/include/sys/ |
D | xattr.h | 39 extern int setxattr(const char *path, const char *name, const void *value, size_t size, int flags); 40 extern int lsetxattr(const char *path, const char *name, const void *value, size_t size, int flags); 43 extern ssize_t getxattr(const char *path, const char *name, void *value, size_t size); 44 extern ssize_t lgetxattr(const char *path, const char *name, void *value, size_t size); 46 extern ssize_t listxattr(const char *path, char *list, size_t size); 47 extern ssize_t llistxattr(const char *path, char *list, size_t size); 50 extern int removexattr(const char *path, const char *name); 51 extern int lremovexattr(const char *path, const char *name);
|
/development/testrunner/tests/ |
D | android_mk_tests.py | 20 sys.path.append('../..') 30 mk_parser = android_mk.CreateAndroidMK(path='.', 36 mk_parser = android_mk.CreateAndroidMK(path='.', 42 mk_parser = android_mk.CreateAndroidMK(path='.', filename='Android_java.mk') 47 mk_parser = android_mk.CreateAndroidMK(path='.', 56 mk_parser = android_mk.CreateAndroidMK(path='.', 66 mk_parser = android_mk.CreateAndroidMK(path='.', filename='Android_java.mk') 72 mk_parser = android_mk.CreateAndroidMK(path='.', 79 mk_parser = android_mk.CreateAndroidMK(path='.',
|
/development/vndk/tools/abi-tool/ |
D | vndk_abi_tool.py | 24 def makedirs(path, exist_ok): argument 25 if exist_ok and os.path.isdir(path): 27 return os.makedirs(path) 29 def which(cmd, mode=os.F_OK | os.X_OK, path=None): argument 30 def is_executable(path): argument 31 return (os.path.exists(file_path) and \ 33 not os.path.isdir(file_path)) 34 if path is None: 35 path = os.environ.get('PATH', os.defpath) 36 for path_dir in path.split(os.pathsep): [all …]
|
/development/ndk/platforms/android-9/include/ |
D | libgen.h | 37 extern char* dirname (const char* path); 38 extern char* basename(const char* path); 52 extern int dirname_r(const char* path, char* buffer, size_t bufflen); 53 extern int basename_r(const char* path, char* buffer, size_t bufflen);
|
/development/vndk/tools/definition-tool/ |
D | vndk_definition_tool.py | 29 def makedirs(path, exist_ok): argument 30 if exist_ok and os.path.isdir(path): 32 return os.makedirs(path) 449 def _parse_from_file(self, path): argument 451 with open(path, 'rb') as f: 458 def _parse_from_dump_lines(self, path, lines): argument 464 .format(path, line_no + 1), file=sys.stderr) 487 .format(path, line_no + 1, key), file=sys.stderr) 489 def _parse_from_dump_file(self, path): argument 491 with open(path, 'r') as f: [all …]
|
/development/build/tools/ |
D | mk_sources_zip.py | 119 if not os.path.isfile(p.PROPS): 121 if not os.path.isdir(p.SRC): 133 if not os.path.exists(srcdir): 138 filepath = os.path.join(srcdir, filename) 139 if filename.endswith(".java") and os.path.isfile(filepath): 155 pkg = pkg.replace(".", os.path.sep) # e.g. android.view => android/view 160 elif os.path.isdir(filepath): 166 def checkJavaFile(path): argument 170 f = file(path) 188 arc_path = os.path.join(TOP_FOLDER, dest_pkg, os.path.basename(filepath)) [all …]
|
/development/ndk/tools/ |
D | headers-diff-bionic-vs-ndk.py | 7 import sys, os, os.path 31 path = os.path.join(platforms_root, dirname) 32 if os.path.isdir(path) and ('android' in dirname): 44 if os.path.isfile(os.path.join(root, filename)): 51 includes_root = os.path.join(root, 'include') 52 if not os.path.isdir(includes_root): 59 path = os.path.join(dirname, subdirname) 60 relpath = os.path.relpath(path, includes_root) 61 includes.append((relpath, self.scan_dir(path))) 71 arch_root = os.path.join(root, arch) [all …]
|
/development/vndk/tools/vtable-dumper/tests/ |
D | test_vndk_vtable_dumper.py | 30 SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) 33 def get_dirnames(path, n): argument 36 path = os.path.dirname(path) 37 return path 51 return os.path.join(android_build_top, 'prebuilts', 'gcc', 56 return os.path.join(android_build_top, 'prebuilts', 'clang', 'host', 61 return os.path.join(android_build_top, 'prebuilts', 'ndk', NDK_VERSION, 78 def run_vtable_dump(path, verbose=False): argument 80 return run_output([VNDK_VTABLE_DUMPER, path], verbose) 100 clangpp = os.path.join(self.clang_dir, 'bin', 'clang++') [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
D | ExternalStorage.java | 185 File path = Environment.getExternalStoragePublicDirectory( in createExternalStoragePublicPicture() local 187 File file = new File(path, "DemoPicture.jpg"); in createExternalStoragePublicPicture() 191 path.mkdirs(); in createExternalStoragePublicPicture() 211 public void onScanCompleted(String path, Uri uri) { in createExternalStoragePublicPicture() 212 Log.i("ExternalStorage", "Scanned " + path + ":"); in createExternalStoragePublicPicture() 227 File path = Environment.getExternalStoragePublicDirectory( in deleteExternalStoragePublicPicture() local 229 File file = new File(path, "DemoPicture.jpg"); in deleteExternalStoragePublicPicture() 238 File path = Environment.getExternalStoragePublicDirectory( in hasExternalStoragePublicPicture() local 240 File file = new File(path, "DemoPicture.jpg"); in hasExternalStoragePublicPicture() 253 File path = getExternalFilesDir(Environment.DIRECTORY_PICTURES); in createExternalStoragePrivatePicture() local [all …]
|
/development/python-packages/fastboot/ |
D | device.py | 34 def __init__(self, path='fastboot'): argument 43 self.path = path 47 _subprocess_check_output([self.path, '--version']) 49 raise FastbootError('Could not execute `{}`'.format(self.path)) 69 devices = _subprocess_check_output([self.path, 'devices']).splitlines() 85 output = _subprocess_check_output([self.path, 'getvar', name], 105 output = _subprocess_check_output([self.path, 'getvar', 'all'], 136 command = [self.path, 'flashall'] 155 command = [self.path, 'flash', partition] 170 command = [self.path, 'reboot'] [all …]
|