/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, "system", "bin", 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 full_path = os.path.join(path, binary) 142 if os.path.exists(full_path): [all …]
|
D | host_test.py | 37 _JUNIT_BUILD_PATH = os.path.join("external", "junit") 38 _HOSTTESTLIB_BUILD_PATH = os.path.join("development", "tools", "hosttestlib") 93 path = os.path.join(options.host_lib_path, lib) 95 if not os.path.exists(path): 96 raise errors.AbortError(msg="Could not find jar %s" % path) 97 full_lib_paths.append(path)
|
D | gtest.py | 41 def SetTargetExecPath(self, path): argument 42 self._target_exec_path = path 81 if os.path.isfile(sub_tests_path): 82 self._EvaluateFile(test_file_list, os.path.basename(sub_tests_path)) 84 os.path.walk(sub_tests_path, self._CollectTestSources, test_file_list) 86 target_root_path = os.path.join('/data', 'nativetest') 92 suite.SetTargetExecPath(os.path.join(target_root_path, test_file)) 115 (name, ext) = os.path.splitext(file)
|
D | instrumentation_test.py | 202 def HasInstrumentationTest(path): argument 208 manifest_parser = android_manifest.CreateAndroidManifest(path) 275 def _IsJavaFile(self, path): argument 277 return os.path.isfile(path) and self._IsJavaFileName(path) 281 return os.path.splitext(filename)[1] == '.java' 283 def _IsJavaPackage(self, path): argument 295 if not os.path.isdir(path): 297 for file_name in os.listdir(path): 313 filename = os.path.basename(java_file_path) 314 class_name = os.path.splitext(filename)[0] [all …]
|
/development/testrunner/ |
D | android_build.py | 89 path = os.path.join(GetTop(), "out", "host", os_arch, "bin") 90 if not os.path.exists(path): 91 logger.Log("Error: Host bin path could not be found %s" % path) 93 return path 110 path = os.getenv("ANDROID_PRODUCT_OUT") 111 if path is None: 114 return path 131 path = os.path.join(GetProductOut(), "system", "bin") 132 if not os.path.exists(path): 135 return path [all …]
|
D | coverage.py | 41 _EMMA_JAR = os.path.join("external", "emma", "lib", "emma.jar") 44 _COVERAGE_REPORT_PATH = os.path.join("out", "emma") 46 _CORE_TARGET_PATH = os.path.join("development", "testrunner", 50 _VENDOR_TARGET_PATH = os.path.join("vendor", "*", "tests", "testinfo", 54 _TARGET_INTERMEDIATES_BASE_PATH = os.path.join("out", "target", "common", 59 self._output_root_path = os.path.join(self._root_path, 61 self._emma_jar_path = os.path.join(self._root_path, self._EMMA_JAR) 87 output_path = os.path.join(self._root_path, 94 coverage_local_path = os.path.join(output_path, 98 report_path = os.path.join(output_path, [all …]
|
D | android_manifest.py | 64 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/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/tools/emulator/opengl/shared/OpenglCodecCommon/ |
D | UnixStream.cpp | 51 make_unix_path(char *path, size_t pathlen, int port_number) in make_unix_path() argument 84 snprintf(path, pathlen, "%s/qemu-gles-%d", tmp, port_number); in make_unix_path() 91 char path[PATH_MAX]; in listen() local 93 if (make_unix_path(path, sizeof(path), port) < 0) { in listen() 97 m_sock = socket_local_server(path, ANDROID_SOCKET_NAMESPACE_FILESYSTEM, SOCK_STREAM); in listen() 128 char path[PATH_MAX]; in connect() local 130 if (make_unix_path(path, sizeof(path), port) < 0) in connect() 133 m_sock = socket_local_client(path, ANDROID_SOCKET_NAMESPACE_FILESYSTEM, SOCK_STREAM); in connect()
|
D | Win32PipeStream.cpp | 57 make_pipe_name(char *path, size_t pathlen, int port_number) in make_pipe_name() argument 59 snprintf(path, pathlen, "\\\\.\\pipe\\qemu-gles-%d", port_number); in make_pipe_name() 85 char path[NAMED_PIPE_MAX+1]; in accept() local 89 make_pipe_name(path, sizeof(path), m_port); in accept() 92 path, // pipe name in accept() 125 char path[NAMED_PIPE_MAX+1]; in connect() local 129 make_pipe_name(path, sizeof(path), port); in connect() 136 path, // pipe name in connect() 164 if ( !WaitNamedPipe(path, 5000) ) { in connect()
|
/development/samples/GlobalTime/src/com/android/globaltime/ |
D | Clock.java | 70 private static void drawLine(Path path, in drawLine() argument 87 path.moveTo(p0x - ox, p0y - oy); in drawLine() 88 path.lineTo(p1x - ox, p1y - oy); in drawLine() 89 path.lineTo(p1x + ox, p1y + oy); in drawLine() 90 path.lineTo(p0x + ox, p0y + oy); in drawLine() 91 path.close(); in drawLine() 99 private static void drawVArrow(Path path, in drawVArrow() argument 101 path.moveTo(cx - width / 2.0f, cy); in drawVArrow() 102 path.lineTo(cx, cy + height); in drawVArrow() 103 path.lineTo(cx + width / 2.0f, cy); in drawVArrow() [all …]
|
/development/ndk/platforms/android-3/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);
|
D | fcntl.h | 46 extern int open(const char* path, int mode, ...); 47 extern int openat(int fd, const char* path, int mode, ...); 50 extern int creat(const char* path, mode_t mode);
|
/development/scripts/ |
D | divide_and_compress.py | 149 self.index_fp = open(os.path.join(self.output_dir, 'main.py'), 'w') 151 os.path.walk(self.base_path, self.CompressDirectory, 1) 170 archive_path = os.path.join(self.output_dir, self.current_archive) 173 root, ext = os.path.splitext(archive_path) 195 def OpenZipFileAtPath(self, path, mode=None, compress=zipfile.ZIP_DEFLATED): argument 198 if os.path.exists(path): 204 return zipfile.ZipFile(path, mode) 206 return zipfile.ZipFile(path, mode, compress) 228 zip_queue.append(os.path.join(dir_path, filename)) 237 if os.path.isfile(target_file): [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/build/tools/ |
D | mk_sources_zip.py | 108 if not os.path.isfile(p.PROPS): 110 if not os.path.isdir(p.SRC): 122 if not os.path.exists(srcdir): 127 filepath = os.path.join(srcdir, filename) 128 if filename.endswith(".java") and os.path.isfile(filepath): 141 pkg = pkg.replace(".", os.path.sep) # e.g. android.view => android/view 146 elif os.path.isdir(filepath): 151 def checkJavaFile(path): argument 155 f = file(path) 171 arc_path = os.path.join(TOP_FOLDER, dest_pkg, os.path.basename(filepath)) [all …]
|
/development/ide/xcode/animatorTest/animatorTest.xcodeproj/ |
D | project.pbxproj | 221 …; lastKnownFileType = sourcecode.cpp.cpp; name = SkFontHost_FONTPATH.cpp; path = ../../../libs/gra… 222 …= 30; lastKnownFileType = sourcecode.cpp.cpp; name = SkFontHost_none.cpp; path = ../../../libs/gra… 223 …coding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = pathTest.cpp; path = ../../../tests/sk… 224 …ing = 30; lastKnownFileType = sourcecode.cpp.cpp; name = cameraTest3.cpp; path = ../../../tests/sk… 225 …ding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = ditherTest.cpp; path = ../../../tests/sk… 226 …= 30; lastKnownFileType = sourcecode.cpp.cpp; name = imageditherTest.cpp; path = ../../../tests/sk… 227 …oding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = layerTest.cpp; path = ../../../tests/sk… 228 …coding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = maskTest.cpp; path = ../../../tests/sk… 229 …ding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = mipmapTest.cpp; path = ../../../tests/sk… 230 … = 30; lastKnownFileType = sourcecode.cpp.cpp; name = pathEffectTest.cpp; path = ../../../tests/sk… [all …]
|
/development/ide/emacs/ |
D | android-common.el | 128 (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/ |
D | Eclipse.java | 69 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/tools/elftree/ |
D | elftree.c | 93 char *path; member 97 static void add_search_dir(char *path) in add_search_dir() argument 100 dir->path = malloc(strlen(path) + 1); in add_search_dir() 101 strcpy(dir->path, path); in add_search_dir() 146 static int dump_file(struct tree_state *t, char *name, char *path); 151 char path[PATH_MAX]; in dump_needed() local 157 snprintf(path, PATH_MAX, "%s/%s", dir->path, name); in dump_needed() 158 fd = open(path, O_RDONLY); in dump_needed() 161 dump_file(t, name, path); in dump_needed() 293 char path[PATH_MAX]; in add_search_dirs() local [all …]
|
/development/samples/SampleSyncAdapter/samplesyncadapter_server/ |
D | dashboard.py | 62 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/XmlAdapters/src/com/example/android/xmladapters/ |
D | XmlDocumentProvider.java | 272 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/ide/xcode/graphics.xcodeproj/ |
D | project.pbxproj | 253 …ng = 30; lastKnownFileType = sourcecode.cpp.cpp; name = SkRasterizer.cpp; path = ../../libs/graphi… 254 … PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = SkColorFilter.h; … 255 … PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = SkRasterizer.h; s… 256 … PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = SkTypeface.h; sou… 257 … = 30; lastKnownFileType = sourcecode.cpp.cpp; name = SkColorFilters.cpp; path = ../../libs/graphi… 258 …ng = 30; lastKnownFileType = sourcecode.cpp.cpp; name = SkCullPoints.cpp; path = ../../libs/graphi… 259 …g = 30; lastKnownFileType = sourcecode.cpp.cpp; name = SkColorFilter.cpp; path = ../../libs/graphi… 260 … 4; lastKnownFileType = sourcecode.cpp.cpp; name = SkPicturePlayback.cpp; path = ../../libs/graphi… 261 …ding = 4; lastKnownFileType = sourcecode.c.h; name = SkPicturePlayback.h; path = ../../libs/graphi… 262 … = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SkPictureRecord.cpp; path = ../../libs/graphi… [all …]
|
/development/samples/Obb/src/com/example/android/obbapp/ |
D | ObbMountActivity.java | 62 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()
|