Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 114) sorted by relevance

12345

/development/testrunner/test_defs/
Dtest_walker.py34 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 …]
Dnative_test.py55 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 …]
Dhost_test.py38 _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)
Dgtest.py41 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)
Dinstrumentation_test.py212 def HasInstrumentationTest(path): argument
218 manifest_parser = android_manifest.CreateAndroidManifest(path)
285 def _IsJavaFile(self, path): argument
287 return os.path.isfile(path) and self._IsJavaFileName(path)
291 return os.path.splitext(filename)[1] == '.java'
293 def _IsJavaPackage(self, path): argument
305 if not os.path.isdir(path):
307 for file_name in os.listdir(path):
323 filename = os.path.basename(java_file_path)
324 class_name = os.path.splitext(filename)[0]
[all …]
/development/testrunner/
Dandroid_build.py105 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 …]
Dmake_tree.py34 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)
Dandroid_manifest.py64 self._manifest_path = os.path.join(app_path, self.FILENAME)
112 def CreateAndroidManifest(path): argument
121 manifest_path = os.path.join(path, AndroidManifest.FILENAME)
122 if os.path.isfile(manifest_path):
124 manifest._ParseManifest(path)
/development/testrunner/coverage/
Dcoverage.py43 _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/tools/checkstyle/gitlint/
Dutils.py46 if (os.path.isabs(program) and os.path.isfile(program) and
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):
75 filename = os.path.abspath(filename)[1:]
76 home_folder = os.path.expanduser('~')
77 base_cache_dir = os.path.join(home_folder, '.git-lint', 'cache')
79 return os.path.join(base_cache_dir, name, filename)
96 if (os.path.exists(cache_filename) and
[all …]
/development/ndk/platforms/android-21/include/sys/
Dxattr.h39 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/
Dandroid_mk_tests.py20 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/build/tools/
Dmk_sources_zip.py119 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/
Dheaders-diff-bionic-vs-ndk.py7 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/samples/ApiDemos/src/com/example/android/apis/content/
DExternalStorage.java185 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/ndk/platforms/android-3/include/
Dlibgen.h37 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/ide/emacs/
Dandroid-common.el128 (let ((path (concat (android-find-build-tree-root) "out/target/product/"
130 (when (not (file-exists-p path))
132 add an entry to android-product-map." path (android-product))))
133 path))
141 (let ((path (concat (android-find-build-tree-root) "out/host/"
143 (if (file-exists-p path)
144 path
/development/tools/idegen/src/
DEclipse.java69 String path = sourceRoot.getPath().substring(2); in generateFrom() local
72 if (bucket.matches(path)) { in generateFrom()
119 String path = sourceRoot.getPath(); in constructExcluding() local
132 if (!nextPath.startsWith(path)) { in constructExcluding()
139 classpath.append(nextPath.substring(path.length() + 1)) in constructExcluding()
149 if (!excludedPath.startsWith(path)) { in constructExcluding()
156 classpath.append(excludedPath.substring(path.length() + 1)) in constructExcluding()
184 private boolean matches(String path) { in matches() argument
185 return pattern.matcher(path).find(); in matches()
/development/samples/SampleSyncAdapter/samplesyncadapter_server/
Ddashboard.py62 path = os.path.join(os.path.dirname(__file__), 'templates', 'simple_form.html')
63 self.response.out.write(template.render(path, template_values))
149 path = os.path.join(os.path.dirname(__file__), 'templates', 'edit_avatar.html')
150 self.response.out.write(template.render(path, template_values))
191 path = os.path.join(os.path.dirname(__file__), 'templates', 'contacts.html')
192 self.response.out.write(template.render(path, template_values))
/development/samples/browseable/BeamLargeFiles/src/com.example.android.common/assetprovider/
DAssetProvider.java66 String path = uri.getPath(); in getType() local
69 if (!fileExists(path)) { in getType()
92 String path = uri.getPath(); in openAssetFile() local
94 return mAssets.openFd(path); in openAssetFile()
106 private boolean fileExists(String path) { in fileExists() argument
109 mAssets.openFd(path).close(); in fileExists()
/development/samples/XmlAdapters/src/com/example/android/xmladapters/
DXmlDocumentProvider.java272 List<String> path = resourceUri.getPathSegments(); in getResourceXmlPullParser() local
273 if (path == null) { in getResourceXmlPullParser()
276 int len = path.size(); in getResourceXmlPullParser()
280 id = Integer.parseInt(path.get(0)); in getResourceXmlPullParser()
285 id = r.getIdentifier(path.get(1), path.get(0), authority); in getResourceXmlPullParser()
380 StringBuilder path = new StringBuilder(); in parseWith() local
397 pathLengthStack.push(path.length()); in parseWith()
398 path.append('/'); in parseWith()
407 path.append(prefix); in parseWith()
408 path.append(':'); in parseWith()
[all …]
/development/ndk/platforms/android-17/samples/Teapot/src/com/sample/helper/
DNDKHelper.java75 public boolean loadTexture(String path) in loadTexture() argument
80 String str = path; in loadTexture()
81 if (!path.startsWith("/")) in loadTexture()
83 str = "/" + path; in loadTexture()
93 .open(path)); in loadTexture()
105 Log.w("NDKHelper", "Coundn't load a file:" + path); in loadTexture()
117 public Bitmap openBitmap(String path, boolean iScalePOT) in openBitmap() argument
123 .open(path)); in openBitmap()
139 Log.w("NDKHelper", "Coundn't load a file:" + path); in openBitmap()
/development/ndk/platforms/android-18/samples/MoreTeapots/src/com/sample/helper/
DNDKHelper.java75 public boolean loadTexture(String path) in loadTexture() argument
80 String str = path; in loadTexture()
81 if (!path.startsWith("/")) in loadTexture()
83 str = "/" + path; in loadTexture()
93 .open(path)); in loadTexture()
105 Log.w("NDKHelper", "Coundn't load a file:" + path); in loadTexture()
117 public Bitmap openBitmap(String path, boolean iScalePOT) in openBitmap() argument
123 .open(path)); in openBitmap()
139 Log.w("NDKHelper", "Coundn't load a file:" + path); in openBitmap()
/development/samples/Obb/src/com/example/android/obbapp/
DObbMountActivity.java62 mPath = (TextView) findViewById(R.id.path); in onCreate()
69 mPath.setText(state.path); in onCreate()
80 public void onObbStateChange(String path, int state) {
81 Log.d(TAG, "path=" + path + "; state=" + state);
140 public CharSequence path; field in ObbMountActivity.ObbState
142 ObbState(StorageManager storageManager, CharSequence status, CharSequence path) { in ObbState() argument
145 this.path = path; in ObbState()
/development/tools/checkstyle/
Dcheckstyle.py32 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)
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)):
257 os.makedirs(os.path.dirname(tmp_file_name))
281 if not os.path.exists(config_xml):

12345