/art/test/510-checker-try-catch/src/ |
H A D | Main.java | 44 for (TestPath path : TestPath.values()) { 45 Object[] arguments = new Object[] { path.arg1, path.arg2 }; 48 if (actual != path.expected) { 49 throw new Error("Method: \"" + method + "\", path: " + path + ", " + 50 "expected: " + path.expected + ", actual: " + actual);
|
/art/tools/ |
H A D | generate_cmake_lists.py | 44 # nothing set. try to guess it based on the relative path of this env.py file. 45 this_file_path = os.path.realpath(__file__) 46 path_to_top = os.path.join(os.path.dirname(this_file_path), '../..') 47 path_to_top = os.path.realpath(path_to_top) 49 if not os.path.exists(os.path.join(path_to_top, 'build/envsetup.sh')): 73 out_art_cmakelists_dir = os.path.join(ANDROID_BUILD_TOP, 81 if (os.path.samefile(root, out_art_cmakelists_dir)): 89 f = open(os.path [all...] |
H A D | javac-helper.sh | 19 # (This avoids having to manually set a boot class path). 85 boot_class_path_list=$($TOP/art/tools/bootjars.sh $bootjars_args --path) 87 for path in $boot_class_path_list; do 88 javac_bootclasspath+=("$path") 92 echo "FATAL: Missing bootjars.sh file path list" >&2
|
H A D | desugar.sh | 19 # (This avoids having to manually set a boot class path). 44 desugar_jar=$(readlink -f "$desugar_jar") # absolute path to desugar jar 80 boot_class_path_list=$($TOP/art/tools/bootjars.sh $bootjars_args --path) 82 for path in $boot_class_path_list; do 83 desugar_args+=(--bootclasspath_entry="$path") 87 echo "FATAL: Missing bootjars.sh file path list" >&2
|
H A D | test_presubmit.py | 31 THIS_PATH = os.path.dirname(os.path.realpath(__file__)) 34 # tool -> path to a script to generate a file 36 # args -> lambda(path) that generates arguments the 'tool' in order to output to 'path' 59 path = pathlib.Path(f) 60 return str(path) in tool_dict['interesting_files'] 151 os.chdir(os.path.join(THIS_PATH, '..')) # run tool relative to 'art' directory
|
H A D | run-libjdwp-tests.sh | 90 --jdwp-path "libjdwp.so" \
|
H A D | bootjars.sh | 33 echo "Usage: $0 [--core] [--path] [--host|--target] [--help]" 39 --path) 79 # Print the file path (relative to $TOP) to the classes.jar of each boot jar in the intermediates directory. 82 # turn the file path into an absolute path if needed
|
/art/tools/checker/ |
H A D | checker.py | 31 help="path to file/folder with checking annotations") 48 c1File = ParseC1visualizerStream(os.path.basename(outputFilename), open(outputFilename, "r")) 54 c1File = ParseC1visualizerStream(os.path.basename(outputFilename), open(outputFilename, "r")) 67 def FindCheckerFiles(path): 68 """ Returns a list of files to scan for check annotations in the given path. 72 if not path: 73 Logger.fail("No source path provided") 74 elif os.path.isfile(path): 75 return [ path ] [all...] |
/art/test/595-profile-saving/ |
H A D | run | 29 --runtime-option -Xps-profile-boot-class-path \
|
/art/test/testrunner/ |
H A D | env.py | 96 # nothing set. try to guess it based on the relative path of this env.py file. 97 this_file_path = os.path.realpath(__file__) 98 path_to_top = os.path.join(os.path.dirname(this_file_path), '../../../') 99 path_to_top = os.path.realpath(path_to_top) 101 if not os.path.exists(os.path.join(path_to_top, 'build/envsetup.sh')): 172 HOST_OUT_EXECUTABLES = os.path.join(ANDROID_BUILD_TOP, 175 # Set up default values for $JACK, $DX, $SMALI, etc to the $HOST_OUT_EXECUTABLES/$name path. 180 ANDROID_JAVA_TOOLCHAIN = os.path [all...] |
/art/tools/ahat/src/main/com/android/ahat/ |
H A D | SitePrinter.java | 28 List<Site> path = new ArrayList<Site>(); 30 path.add(parent); 32 Collections.reverse(path); 61 HeapTable.render(doc, query, id, table, snapshot, path);
|
/art/libartbase/base/ |
H A D | scoped_flock.h | 43 // created at the same path) between attempts to lock it. In blocking mode, 57 static ScopedFlock DupOf(const int fd, const std::string& path, 71 LockedFile(int fd, const std::string& path, bool check_usage, bool read_only_mode) argument 72 : FdFile(fd, path, check_usage, read_only_mode) {
|
H A D | scoped_flock.cc | 93 ScopedFlock LockedFile::DupOf(const int fd, const std::string& path, argument 101 new LockedFile(dup(fd), path, false /* check_usage */, read_only_mode));
|
/art/tools/ahat/src/test/com/android/ahat/ |
H A D | InstanceTest.java | 234 List<PathElement> path = target.getPathFromGcRoot(); 235 assertEquals(6, path.size()); 237 assertEquals(main, path.get(0).instance); 238 assertEquals(".stuff", path.get(0).field); 239 assertTrue(path.get(0).isDominator); 241 assertEquals(".gcPathArray", path.get(1).field); 242 assertTrue(path.get(1).isDominator); 244 assertEquals(gcPathArray, path.get(2).instance); 245 assertEquals("[2]", path.get(2).field); 246 assertTrue(path [all...] |
/art/test/164-resolution-trampoline-dex-cache/src/ |
H A D | Main.java | 48 String path = location + "/" + TEST_NAME + (ex ? "-ex.jar" : ".jar"); 49 return (ClassLoader)ctor.newInstance(path, parent);
|
/art/tools/jfuzz/ |
H A D | run_jfuzz_test_nightly.py | 38 cwd = os.path.dirname(os.path.realpath(__file__))
|
H A D | run_dex_fuzz_test.py | 26 sys.path.append(os.path.dirname(os.path.dirname( 27 os.path.realpath(__file__))))
|
/art/libartbase/base/unix_file/ |
H A D | fd_file.h | 41 FdFile(int fd, const std::string& path, bool checkUsage); 42 FdFile(int fd, const std::string& path, bool checkUsage, bool read_only_mode); 44 FdFile(const std::string& path, int flags, bool checkUsage) argument 45 : FdFile(path, flags, 0640, checkUsage) {} 46 FdFile(const std::string& path, int flags, mode_t mode, bool checkUsage); 101 // If the file was opened with a path name and unlink = true, also calls Unlink() on the path. 105 // Call unlink() if the file was opened with a path, and if open() with the name shows that
|
H A D | fd_file.cc | 48 FdFile::FdFile(int fd, const std::string& path, bool check_usage) argument 49 : FdFile(fd, path, check_usage, false) { 52 FdFile::FdFile(int fd, const std::string& path, bool check_usage, bool read_only_mode) argument 54 fd_(fd), file_path_(path), auto_close_(true), read_only_mode_(read_only_mode) { 57 FdFile::FdFile(const std::string& path, int flags, mode_t mode, bool check_usage) argument 59 Open(path, flags, mode); 77 PLOG(WARNING) << "Failed to close file with fd=" << fd_ << " path=" << file_path_; 132 bool FdFile::Open(const std::string& path, int flags) { argument 133 return Open(path, flags, 0640); 136 bool FdFile::Open(const std::string& path, in argument [all...] |
H A D | random_access_file_test.h | 46 std::string path; local 47 path = android_data_; 48 path += "/"; 49 path += name; 50 return path;
|
/art/tools/runtime_memusage/ |
H A D | prune_sanitizer_output.py | 95 """Checks if a path is an actual directory.""" 96 if not os.path.isdir(path_name): 142 filename = os.path.basename(trace_file.name + "_filtered") 143 outfile = os.path.join(out_dir_name, filename)
|
/art/runtime/native/ |
H A D | java_lang_VMClassLoader.cc | 119 // The class wasn't loaded, yet, and our fast-path did not apply (e.g., we didn't understand the 128 const std::vector<const DexFile*>& path = local 131 env->NewObjectArray(path.size(), WellKnownClasses::java_lang_String, nullptr); 136 for (size_t i = 0; i < path.size(); ++i) { 137 const DexFile* dex_file = path[i];
|
/art/tools/common/ |
H A D | common.py | 39 # Temporary directory path on device. 131 android_data_path: string, path dalvik-cache resides in. 242 Returned path to file can be used in commands run in the environment. 248 string, environment specific path to file. 258 file_path: string, environment specific path to file. 311 path = android_root + '/bin' 317 self._shell_env['PATH'] = (path + ':' + self._shell_env['PATH']) 362 if os.path.isfile(file_path): 392 DEVICE_TMP_PATH, os.path.basename(self._host_env_path)) 410 name = os.path [all...] |
/art/test/155-java-set-resolved-type/src/ |
H A D | Main.java | 75 String path = location + "/" + TEST_NAME + (ex ? "-ex.jar" : ".jar"); 76 return (ClassLoader)ctor.newInstance(path, parent);
|
/art/runtime/ |
H A D | java_vm_ext.cc | 69 SharedLibrary(JNIEnv* env, Thread* self, const std::string& path, void* handle, argument 71 : path_(path), 238 SharedLibrary* Get(const std::string& path) REQUIRES(Locks::jni_libraries_lock_) { 239 auto it = libraries_.find(path); 243 void Put(const std::string& path, SharedLibrary* library) 245 libraries_.Put(path, library); 855 const std::string& path, 869 library = libraries_->Get(path); 924 path.c_str(), 932 VLOG(jni) << "[Shared library \"" << path << "\" alread 854 LoadNativeLibrary(JNIEnv* env, const std::string& path, jobject class_loader, std::string* error_msg) argument [all...] |