Home
last modified time | relevance | path

Searched refs:os (Results 1 – 25 of 1326) sorted by relevance

12345678910>>...54

/development/tools/checkstyle/gitlint/
Dutils.py17 import os
46 if (os.path.isabs(program) and os.path.isfile(program) and
47 os.access(program, os.X_OK)):
51 locations = os.environ.get("PATH").split(os.pathsep)
53 candidate = os.path.join(location, program)
54 if os.path.isfile(candidate) and os.access(candidate, os.X_OK):
66 dirname = os.path.dirname(filename)
67 if not os.path.exists(dirname):
68 os.makedirs(dirname)
75 filename = os.path.abspath(filename)[1:]
[all …]
Dgit.py16 import os.path
65 assert os.path.isabs(root), "Root has to be absolute, got: %s" % root
73 '--ignore-submodules=all']).decode('utf-8').split(os.linesep)
85 return dict((os.path.join(root, _remove_filename_quotes(filename)), mode)
93 commit]).decode('utf-8').split(os.linesep)
102 return dict((os.path.join(root, _remove_filename_quotes(filename)),
130 os.linesep.encode('utf-8'))
/development/testrunner/
Dandroid_build.py21 import os
43 root_path = os.getenv("ANDROID_BUILD_TOP")
62 host_out_path = os.getenv("ANDROID_HOST_OUT")
103 root_path = os.getenv("OUT_DIR")
105 root_path = os.path.join(GetTop(), "out")
123 path = os.path.join(GetHostOutDir(), "bin")
124 if not os.path.exists(path):
144 path = os.getenv("ANDROID_PRODUCT_OUT")
164 path = os.path.join(GetProductOut(), "data", "nativetest")
165 if not os.path.exists(path):
[all …]
Dmake_tree.py18 import os
34 self._path = os.path.join(parent._GetPath(), name)
63 path = os.path.join(android_build.GetTop(), self._path)
75 make_list.append(os.path.join(self._path, "Android.mk"))
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)
Dcreate_test.py23 import os
103 if os.path.exists(tests_manifest_path):
114 if not os.path.exists(tests_path):
115 os.mkdir(tests_path)
140 if os.path.exists(tests_mk_path):
164 if not os.path.exists(tests_path):
165 os.mkdir(tests_path)
223 if not os.path.exists(app_path):
241 if not os.path.exists(src_path):
242 os.mkdir(src_path)
Dandroid_manifest.py25 import os
64 self._manifest_path = os.path.join(app_path, self.FILENAME)
121 manifest_path = os.path.join(path, AndroidManifest.FILENAME)
122 if os.path.isfile(manifest_path):
/development/testrunner/coverage/
Dcoverage.py23 import os
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,
[all …]
/development/build/tools/
Dmk_sources_zip.py19 import os
119 if not os.path.isfile(p.PROPS):
121 if not os.path.isdir(p.SRC):
133 if not os.path.exists(srcdir):
137 for filename in os.listdir(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):
188 arc_path = os.path.join(TOP_FOLDER, dest_pkg, os.path.basename(filepath))
[all …]
/development/scripts/
Dsymbol.py23 import os
29 ANDROID_BUILD_TOP = os.environ["ANDROID_BUILD_TOP"]
34 saveddir = os.getcwd()
35 os.chdir(ANDROID_BUILD_TOP)
41 return os.path.join(ANDROID_BUILD_TOP, stream.read().strip())
43 os.chdir(saveddir)
59 return glob.glob(os.path.join(toolchain, "*-" + tool))[0]
87 if not os.path.exists(ToolPath("addr2line", toolchain)):
187 if not os.path.exists(symbols):
189 if not os.path.exists(symbols):
[all …]
Dgdbclient.py21 import os
70 saved_pwd = os.environ['PWD']
71 os.environ['PWD'] = root
73 os.environ['PWD'] = saved_pwd
100 local_path = os.path.join(sysroot, "system", "bin", "linker")
105 if not os.path.exists(local_path):
157 root = os.environ["ANDROID_BUILD_TOP"]
158 symbols_dir = os.path.join(sysroot, "system", "lib64" if is64bit else "lib")
159 vendor_dir = os.path.join(sysroot, "vendor", "lib64" if is64bit else "lib")
164 solib_search_path += [os.path.join(symbols_dir, x) for x in symbols_paths]
[all …]
/development/testrunner/test_defs/
Dnative_test.py21 import os
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)))
139 binary = os.path.basename(f)
140 binary = os.path.splitext(binary)[0]
143 binary = os.path.relpath(os.path.abspath(found),
144 os.path.abspath(path))
[all …]
Dtest_walker.py21 import os
71 if not os.path.exists(path):
74 realpath = os.path.realpath(path)
76 self._build_top = os.path.realpath(android_build.GetTop())
99 return os.path.commonprefix([self._build_top, path]) == self._build_top
131 if not os.path.isdir(path):
161 for filename in os.listdir(path):
162 self._FindSubTests(os.path.join(path, filename), tests,
239 dirpath = os.path.dirname(path)
Dgtest.py21 import os
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)
Dhost_test.py21 import os
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):
/development/ndk/tools/
Dheaders-diff-bionic-vs-ndk.py7 import sys, os, os.path
30 for dirname in os.listdir(platforms_root):
31 path = os.path.join(platforms_root, dirname)
32 if os.path.isdir(path) and ('android' in dirname):
43 for filename in os.listdir(root):
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):
57 for dirname, dirnames, filenames in os.walk(includes_root):
59 path = os.path.join(dirname, subdirname)
[all …]
/development/samples/SupportLeanbackShowcase/
Dbuild-local.py4 import os
28 if not os.path.exists(leanback_maven_metadata_path):
38 current_path = os.getcwd()
46 if not (os.path.isdir(repo_path) or os.path.isdir(support_frameworks_path)):
53 replace(os.getcwd()+"/local.properties", r'(.*)LOCAL_REPO(.*)', 'LOCAL_REPO='+repo_path)
54 replace(os.getcwd()+"/local.properties", r'(.*)LIBRARY_VERSION(.*)', 'LIBRARY_VERSION='+library_ver…
Dbuild-release.py4 import os
27 replace(os.getcwd()+"/local.properties", r'(.*)LOCAL_REPO(.*)', 'LOCAL_REPO=')
28 replace(os.getcwd()+"/local.properties", r'(.*)LIBRARY_VERSION(.*)', 'LIBRARY_VERSION=')
/development/tools/checkstyle/
Dcheckstyle.py23 import os
32 MAIN_DIRECTORY = os.path.normpath(os.path.dirname(__file__))
33 CHECKSTYLE_JAR = os.path.join(MAIN_DIRECTORY, 'checkstyle.jar')
34 CHECKSTYLE_STYLE = os.path.join(MAIN_DIRECTORY, 'android-style.xml')
54 java_files = map(os.path.abspath, java_files)
134 checkstyle_env = os.environ.copy()
172 file_name = os.path.relpath(file_name)
250 rel_path = os.path.relpath(file_name)
254 tmp_file_name = os.path.join(tmp_dir_name, rel_path)
256 if not os.path.exists(os.path.dirname(tmp_file_name)):
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/app/
DMessengerService.java24 import android.os.Binder;
25 import android.os.Handler;
26 import android.os.IBinder;
27 import android.os.Message;
28 import android.os.Messenger;
29 import android.os.RemoteException;
DNotifyingService.java28 import android.os.Binder;
29 import android.os.ConditionVariable;
30 import android.os.IBinder;
31 import android.os.Parcel;
32 import android.os.RemoteException;
DMessengerServiceActivities.java11 import android.os.Bundle;
12 import android.os.Handler;
13 import android.os.IBinder;
14 import android.os.Message;
15 import android.os.Messenger;
16 import android.os.RemoteException;
/development/samples/training/threadsample/src/com/example/android/threadsample/
DConstants.java66 + android.os.Build.VERSION.RELEASE + ";"
67 + Locale.getDefault().toString() + "; " + android.os.Build.DEVICE
68 + "/" + android.os.Build.ID + ")";
/development/samples/devbytes/ui/ImmersiveMode/src/main/java/com/example/android/immersive/
DImmersiveStickyActivity.java20 import android.os.Bundle;
21 import android.os.Handler;
22 import android.os.Message;
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DPictures.java23 import android.os.Bundle;
73 ByteArrayOutputStream os = new ByteArrayOutputStream(); in onDraw() local
74 mPicture.writeToStream(os); in onDraw()
75 InputStream is = new ByteArrayInputStream(os.toByteArray()); in onDraw()
/development/samples/ApiDemos/src/com/example/android/apis/content/
DExternalStorage.java30 import android.os.Bundle;
31 import android.os.Environment;
199 OutputStream os = new FileOutputStream(file); in createExternalStoragePublicPicture() local
202 os.write(data); in createExternalStoragePublicPicture()
204 os.close(); in createExternalStoragePublicPicture()
263 OutputStream os = new FileOutputStream(file); in createExternalStoragePrivatePicture() local
266 os.write(data); in createExternalStoragePrivatePicture()
268 os.close(); in createExternalStoragePrivatePicture()
325 OutputStream os = new FileOutputStream(file); in createExternalStoragePrivateFile() local
328 os.write(data); in createExternalStoragePrivateFile()
[all …]

12345678910>>...54