/development/testrunner/ |
D | android_build.py | 21 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 …]
|
D | make_tree.py | 18 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)
|
D | create_test.py | 23 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)
|
D | android_manifest.py | 25 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):
|
D | runtest.py | 35 import os 60 _CORE_TEST_PATH = os.path.join("development", "testrunner", 65 _VENDOR_TEST_PATH = os.path.join("vendor", "*", "tests", "testinfo", 86 out_base_name = os.path.basename(android_build.GetOutDir()) 101 user_test_default = os.path.join(os.environ.get("HOME"), ".android", 223 core_test_path = os.path.join(self._root_path, self._CORE_TEST_PATH) 224 if os.path.isfile(core_test_path): 227 vendor_tests_pattern = os.path.join(self._root_path, 232 if os.path.isfile(self._options.user_tests_file): 325 abs_install_path = os.path.join(self._root_path, install_path) [all …]
|
/development/testrunner/coverage/ |
D | coverage.py | 23 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/ |
D | mk_sources_zip.py | 19 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/testrunner/test_defs/ |
D | native_test.py | 21 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 …]
|
D | gtest.py | 21 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)
|
D | test_walker.py | 21 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)
|
D | host_test.py | 21 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/ |
D | headers-diff-bionic-vs-ndk.py | 7 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/scripts/ |
D | symbol.py | 23 import os 27 ANDROID_BUILD_TOP = os.environ["ANDROID_BUILD_TOP"] 32 saveddir = os.getcwd() 33 os.chdir(ANDROID_BUILD_TOP) 39 return os.path.join(ANDROID_BUILD_TOP, stream.read().strip()) 41 os.chdir(saveddir) 53 return glob.glob(os.path.join(toolchain, "*-" + tool))[0] 75 tc1 = os.environ["ANDROID_TOOLCHAIN"] 76 tc2 = os.environ["ANDROID_TOOLCHAIN_2ND_ARCH"] 85 if not os.path.exists(ToolPath("addr2line", toolchain)): [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | MessengerService.java | 24 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;
|
D | NotifyingService.java | 28 import android.os.Binder; 29 import android.os.ConditionVariable; 30 import android.os.IBinder; 31 import android.os.Parcel; 32 import android.os.RemoteException;
|
D | MessengerServiceActivities.java | 11 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/ |
D | Constants.java | 66 + 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/ |
D | ImmersiveStickyActivity.java | 20 import android.os.Bundle; 21 import android.os.Handler; 22 import android.os.Message;
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | Pictures.java | 23 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/ |
D | ExternalStorage.java | 30 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 …]
|
/development/apps/Development/src/com/android/development/ |
D | CacheAbuser.java | 32 import android.os.AsyncTask; 33 import android.os.Bundle; 34 import android.os.IBinder; 35 import android.os.IPowerManager; 36 import android.os.Process; 37 import android.os.RemoteException; 38 import android.os.ServiceManager;
|
/development/samples/Support4Demos/src/com/example/android/supportv4/content/ |
D | FileProviderExample.java | 23 import android.os.Bundle; 71 final OutputStream os = new FileOutputStream(file); in saveThumbnail() local 73 bitmap.compress(Bitmap.CompressFormat.PNG, 100, os); in saveThumbnail() 75 os.close(); in saveThumbnail()
|
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
D | MorseCode.java | 17 package com.example.android.apis.os; 24 import android.os.Bundle; 25 import android.os.Vibrator;
|
D | HeadlessSmsSendService.java | 17 package com.example.android.apis.os; 21 import android.os.IBinder;
|
/development/apps/SdkSetup/src/com/android/sdksetup/ |
D | DefaultActivity.java | 25 import android.os.Bundle; 26 import android.os.RemoteException; 27 import android.os.ServiceManager;
|