/ndk/build/core/ |
D | definitions-host.mk | 31 host-path = $(if $(strip $1),$(call cygwin-to-host-path,$1)) 33 host-path = $1 142 host-c-includes = $(patsubst %,-I%,$(call host-path,$1)) 186 windows-path-is-absolute = $(if $(filter /% $(ndk-windows-drive-patterns),$(subst \,/,$1)),true) 189 host-path-is-absolute = $(call windows-path-is-absolute,$1) 191 host-path-is-absolute = $(if $(filter /%,$1),true) 194 -test-host-path-is-absolute.relative-paths = \ 195 $(call test-expect,,$(call host-path-is-absolute,foo))\ 196 $(call test-expect,,$(call host-path-is-absolute,foo/bar))\ 197 $(call test-expect,,$(call host-path-is-absolute,.))\ [all …]
|
D | default-build-commands.mk | 31 $(call host-path, $1) \ 33 $(call host-path, $2 $(PRIVATE_LIBGCC) $4) \ 76 --sysroot=$(call host-path,$(PRIVATE_SYSROOT_LINK)) \ 80 -o $(call host-path,$(LOCAL_BUILT_MODULE)) 91 --sysroot=$(call host-path,$(PRIVATE_SYSROOT_LINK)) \ 92 -Wl,-rpath-link=$(call host-path,$(PRIVATE_SYSROOT_LINK)/usr/lib) \ 93 -Wl,-rpath-link=$(call host-path,$(TARGET_OUT)) \ 97 -o $(call host-path,$(LOCAL_BUILT_MODULE)) 101 $(PRIVATE_AR) $(call host-path,$(LOCAL_BUILT_MODULE)) $(PRIVATE_AR_OBJECTS) 107 cmd-strip = $(PRIVATE_STRIP) --strip-unneeded $(call host-path,$1) [all …]
|
D | setup-imports.mk | 33 $(call import-add-path,$(__path))\ 35 $(call import-add-path-optional,$(NDK_ROOT)/sources) 36 $(call import-add-path-optional,$(NDK_ROOT)/../development/ndk/sources)
|
/ndk/sources/host-tools/make-3.81/ |
D | vpath.c | 51 static int selective_vpath_search PARAMS ((struct vpath *path, char **file, FILE_TIMESTAMP *mtime_p… 177 register struct vpath *path, *lastpath; in construct_vpath_list() local 180 path = vpaths; in construct_vpath_list() 181 while (path != 0) in construct_vpath_list() 183 struct vpath *next = path->next; in construct_vpath_list() 186 || (((percent == 0 && path->percent == 0) in construct_vpath_list() 187 || (percent - pattern == path->percent - path->pattern)) in construct_vpath_list() 188 && streq (pattern, path->pattern))) in construct_vpath_list() 192 vpaths = path->next; in construct_vpath_list() 197 free (path->pattern); in construct_vpath_list() [all …]
|
/ndk/sources/android/libthread_db/gdb-6.6/ |
D | libthread_db.c | 58 char path[64]; in _get_task_permitted_caps() local 67 snprintf(path, sizeof path, "/proc/%d/task/%d/status", pid, tid); in _get_task_permitted_caps() 68 fd = open(path, O_RDONLY); in _get_task_permitted_caps() 70 D("Could not open %s: %s\n", path, strerror(errno)); in _get_task_permitted_caps() 80 D("Could not read %s: %s\n", path, strerror(errno)); in _get_task_permitted_caps() 90 path, len, buff); in _get_task_permitted_caps() 99 D("Found CapPerm of %lld in %s\n", *cap, path); in _get_task_permitted_caps() 102 D("Cannot read CapPerm from %s: '%.*s'\n", path, 24, perm); in _get_task_permitted_caps() 131 char path[64]; in td_ta_new() local 157 snprintf(path, sizeof path, "/proc/%d/task", target_pid); in td_ta_new() [all …]
|
/ndk/sources/host-tools/make-3.81/tests/ |
D | test_driver.pl | 949 local ($path); 954 foreach $path (sort keys (%dirtree)) 956 if ($dirtree {$path} =~ /^DIR$/) 958 mkdir ("$basedir/$path", 0777) 959 || &error ("Couldn't mkdir $basedir/$path: $!\n", 1); 961 elsif ($dirtree {$path} =~ /^FILE:(.*)$/) 963 &create_file ("$basedir/$path", $1 . "\n"); 965 elsif ($dirtree {$path} =~ /^LINK:(.*)$/) 967 symlink ("$basedir/$1", "$basedir/$path") 968 || &error ("Couldn't symlink $basedir/$path -> $basedir/$1: $!\n", 1); [all …]
|
/ndk/sources/android/crazy_linker/src/ |
D | crazy_linker_system.cpp | 21 bool FileDescriptor::OpenReadOnly(const char* path) { in OpenReadOnly() argument 23 fd_ = TEMP_FAILURE_RETRY(::open(path, O_RDONLY)); in OpenReadOnly() 27 bool FileDescriptor::OpenReadWrite(const char* path) { in OpenReadWrite() argument 29 fd_ = TEMP_FAILURE_RETRY(::open(path, O_RDWR)); in OpenReadWrite() 72 bool PathExists(const char* path) { in PathExists() argument 74 if (TEMP_FAILURE_RETRY(stat(path, &st)) < 0) in PathExists() 80 bool PathIsFile(const char* path) { in PathIsFile() argument 82 if (TEMP_FAILURE_RETRY(stat(path, &st)) < 0) in PathIsFile()
|
D | crazy_linker_proc_maps_unittest.cpp | 51 char path[512]; in TEST() local 55 reinterpret_cast<void*>(0x400694c2), &load_address, path, sizeof(path))); in TEST() 57 EXPECT_STREQ("/system/bin/mksh", path); in TEST() 62 char path[512]; in TEST() local 66 reinterpret_cast<void*>(0x50000000), &load_address, path, sizeof(path))); in TEST() 155 const char* path; in TEST() member 204 if (!kData[n].path) { in TEST() 206 EXPECT_FALSE(entry.path); in TEST() 209 kData[n].path, strlen(kData[n].path), entry.path, entry.path_len); in TEST()
|
D | crazy_linker_system_mock.cpp | 72 void SetPath(const char* path) { path_.Assign(path); } in SetPath() argument 103 void SetCurrentDir(const char* path) { current_dir_ = path; } in SetCurrentDir() argument 111 MockFileEntry* FindFileEntry(const char* path) { in FindFileEntry() argument 114 if (entry->GetPath() && !strcmp(path, entry->GetPath())) in FindFileEntry() 259 MockFileHandle* NewMockFileHandle(const char* path, in NewMockFileHandle() argument 266 Panic("Unsupported open mode (%d): %s", open_mode, path); in NewMockFileHandle() 268 MockFileEntry* entry = s_mock_fs.FindFileEntry(path); in NewMockFileHandle() 270 Panic("Missing mock file entry: %s", path); in NewMockFileHandle() 281 bool PathExists(const char* path) { in PathExists() argument 283 return s_mock_fs.FindFileEntry(path) != NULL; in PathExists() [all …]
|
D | crazy_linker_proc_maps.cpp | 75 entry->path = NULL; in ParseProcMapsLine() 114 entry->path = tok_start; in ParseProcMapsLine() 134 bool Open(const char* path) { in Open() argument 136 LineReader reader(path); in Open() 147 const char* old_path = entry.path; in Open() 152 entry.path = const_cast<const char*>(new_path); in Open() 174 ::free(const_cast<char*>(entry.path)); in Reset() 226 if (!entry.path) { in FindElfBinaryForAddress() 231 LOG("ELF binary path too long: '%s'\n", entry.path); in FindElfBinaryForAddress() 234 memcpy(path_buffer, entry.path, entry.path_len); in FindElfBinaryForAddress() [all …]
|
D | crazy_linker_system.h | 45 FileDescriptor(const char* path) : fd_(kEmptyFD) { OpenReadOnly(path); } in FileDescriptor() argument 51 bool OpenReadOnly(const char* path); 52 bool OpenReadWrite(const char* path);
|
D | crazy_linker_rdebug.cpp | 46 bool FindElfDynamicSection(const char* path, in FindElfDynamicSection() argument 54 if (!fd.OpenReadOnly(path) || in FindElfDynamicSection() 67 path); in FindElfDynamicSection() 72 LOG("%s: Invalid program header values: %s\n", __FUNCTION__, path); in FindElfDynamicSection() 125 size_t path_len = strlen(path); in FindElfDynamicSection() 129 if (!entry.path || entry.path_len != path_len || in FindElfDynamicSection() 130 memcmp(entry.path, path, path_len) != 0) in FindElfDynamicSection() 206 String path; in Init() local 210 if (!FindExecutablePath(&path)) in Init() 215 path.c_str(), &self_maps, &dynamic_addr, &dynamic_size)) { in Init() [all …]
|
D | crazy_linker_system_mock.h | 24 void AddRegularFile(const char* path, const char* data, size_t data_size); 28 void SetCurrentDir(const char* path);
|
/ndk/sources/android/libthread_db/gdb-7.3.x/ |
D | libthread_db.c | 54 char path[64]; in _get_task_permitted_caps() local 63 snprintf(path, sizeof path, "/proc/%d/task/%d/status", pid, tid); in _get_task_permitted_caps() 64 fd = open(path, O_RDONLY); in _get_task_permitted_caps() 66 D("Could not open %s: %s\n", path, strerror(errno)); in _get_task_permitted_caps() 76 D("Could not read %s: %s\n", path, strerror(errno)); in _get_task_permitted_caps() 86 path, len, buff); in _get_task_permitted_caps() 95 D("Found CapPerm of %lld in %s\n", *cap, path); in _get_task_permitted_caps() 98 D("Cannot read CapPerm from %s: '%.*s'\n", path, 24, perm); in _get_task_permitted_caps() 128 char path[64]; in td_ta_new() local 154 snprintf(path, sizeof path, "/proc/%d/task", target_pid); in td_ta_new() [all …]
|
/ndk/sources/android/libthread_db/gdb-7.6/ |
D | libthread_db.c | 66 char path[64]; in _get_task_permitted_caps() local 75 snprintf(path, sizeof path, "/proc/%d/task/%d/status", pid, tid); in _get_task_permitted_caps() 76 fd = open(path, O_RDONLY); in _get_task_permitted_caps() 78 D("Could not open %s: %s\n", path, strerror(errno)); in _get_task_permitted_caps() 88 D("Could not read %s: %s\n", path, strerror(errno)); in _get_task_permitted_caps() 98 path, len, buff); in _get_task_permitted_caps() 107 D("Found CapPerm of %lld in %s\n", *cap, path); in _get_task_permitted_caps() 110 D("Cannot read CapPerm from %s: '%.*s'\n", path, 24, perm); in _get_task_permitted_caps() 140 char path[64]; in td_ta_new() local 166 snprintf(path, sizeof path, "/proc/%d/task", target_pid); in td_ta_new() [all …]
|
/ndk/sources/third_party/googletest/googletest/test/ |
D | gtest_xml_outfiles_test.py | 71 self.output_dir_ = os.path.join(gtest_test_utils.GetTempDir(), 80 os.remove(os.path.join(self.output_dir_, GTEST_OUTPUT_1_TEST + ".xml")) 84 os.remove(os.path.join(self.output_dir_, GTEST_OUTPUT_2_TEST + ".xml")) 112 output_file1 = os.path.join(self.output_dir_, output_file_name1) 114 output_file2 = os.path.join(self.output_dir_, output_file_name2) 115 self.assert_(os.path.isfile(output_file1) or os.path.isfile(output_file2), 119 if os.path.isfile(output_file1):
|
D | gtest_test_utils.py | 66 _flag_map = {'source_dir': os.path.dirname(sys.argv[0]), 67 'build_dir': os.path.dirname(sys.argv[0])} 114 return os.path.abspath(GetFlag('source_dir')) 120 return os.path.abspath(GetFlag('build_dir')) 156 path = os.path.abspath(os.path.join(build_dir or GetBuildDir(), 158 if (IS_WINDOWS or IS_CYGWIN) and not path.endswith('.exe'): 159 path += '.exe' 161 if not os.path.exists(path): 169 return path
|
/ndk/toolchains/llvm-3.5/ |
D | setup-common.mk | 109 --sysroot=$(call host-path,$(PRIVATE_SYSROOT_LINK)) \ 113 -o $(call host-path,$(LOCAL_BUILT_MODULE)) && \ 114 …$(call host-mv, $(call host-path,$(LOCAL_BUILT_MODULE)), $(call host-path,$(LOCAL_BUILT_MODULE)).b… 119 …--file $(call host-path, $(LOCAL_BUILT_MODULE)).bc $(patsubst %.bc,%.so,$(call host-path,$(LOCAL_B… 126 --sysroot=$(call host-path,$(PRIVATE_SYSROOT_LINK)) \ 130 -o $(call host-path,$(LOCAL_BUILT_MODULE)) && \ 131 …$(call host-mv, $(call host-path,$(LOCAL_BUILT_MODULE)), $(call host-path,$(LOCAL_BUILT_MODULE)).b… 136 --file $(call host-path,$(LOCAL_BUILT_MODULE)).bc $(call host-path,$(LOCAL_BUILT_MODULE))
|
/ndk/toolchains/llvm-3.4/ |
D | setup-common.mk | 109 --sysroot=$(call host-path,$(PRIVATE_SYSROOT_LINK)) \ 113 -o $(call host-path,$(LOCAL_BUILT_MODULE)) && \ 114 …$(call host-mv, $(call host-path,$(LOCAL_BUILT_MODULE)), $(call host-path,$(LOCAL_BUILT_MODULE)).b… 119 …--file $(call host-path, $(LOCAL_BUILT_MODULE)).bc $(patsubst %.bc,%.so,$(call host-path,$(LOCAL_B… 126 --sysroot=$(call host-path,$(PRIVATE_SYSROOT_LINK)) \ 130 -o $(call host-path,$(LOCAL_BUILT_MODULE)) && \ 131 …$(call host-mv, $(call host-path,$(LOCAL_BUILT_MODULE)), $(call host-path,$(LOCAL_BUILT_MODULE)).b… 136 --file $(call host-path,$(LOCAL_BUILT_MODULE)).bc $(call host-path,$(LOCAL_BUILT_MODULE))
|
/ndk/sources/host-tools/make-3.81/w32/ |
D | pathstuff.c | 126 convert_path_to_nutc(char *path) in convert_path_to_nutc() argument 138 for (p = path, etok = strpbrk(p, ":;"), count = 0; in convert_path_to_nutc() 163 nutc_path_len = strlen(path) + (count*2) + 1; in convert_path_to_nutc() 173 for (p = path, etok = strpbrk(p, ":;"); in convert_path_to_nutc() 196 rval = savestring(path, strlen(path)); in convert_path_to_nutc() 219 nutc_path_len = strlen(path) + 3; in convert_path_to_nutc() 223 p = path; in convert_path_to_nutc() 237 rval = savestring(path, strlen(path)); in convert_path_to_nutc()
|
/ndk/build/tools/toolchain-patches/mclinker/ |
D | 0006-Fix-mingw-and-darwin-builds.patch | 32 std::string path(FindFileData.cFileName); 33 fs::PathCache::entry_type* entry = pDir.m_Cache.insert(path, exist); 35 - entry->setValue(path); 36 + entry->setValue(sys::fs::Path(path)); 45 path += std::string(FindFileData.cFileName); 46 entry = pIter.m_pParent->m_Cache.insert(path, exist); 48 - entry->setValue(path); 49 + entry->setValue(sys::fs::Path(path));
|
/ndk/tests/abcc/src/compiler/abcc/ |
D | AbccService.java | 87 String path = real_data.getString("working_dir"); in onTransact() local 88 if (path == null ) { in onTransact() 93 mWorkingDir = path; in onTransact() 137 String path = intent.getStringExtra("working_dir"); in extractIntentInfo() local 138 Log.i(TAG, "Got working_dir from intent: " + path); in extractIntentInfo() 139 if (path != null) in extractIntentInfo() 140 mWorkingDir = path; in extractIntentInfo() 144 path = intent.getStringExtra("toolchain_sysroot"); in extractIntentInfo() 145 if (path != null) in extractIntentInfo() 146 mSysroot = path; in extractIntentInfo()
|
/ndk/sources/android/crazy_linker/tests/ |
D | test_util.h | 164 const char* path() const { return path_; } in path() function 182 void Open(const char* path, const char* mode) { in Open() argument 183 file_ = fopen(path, mode); in Open() 185 Panic("Could not open file for reading: %s: %s\n", path, strerror(errno)); in Open() 196 String path; in GetCurrentExecutable() local 197 path.Resize(PATH_MAX); in GetCurrentExecutable() 199 TEMP_FAILURE_RETRY(readlink("/proc/self/exe", path.ptr(), path.size())); in GetCurrentExecutable() 203 return path; in GetCurrentExecutable() 208 String path = GetCurrentExecutable(); in GetCurrentExecutableDirectory() local 210 const char* p = reinterpret_cast<const char*>(strrchr(path.c_str(), '/')); in GetCurrentExecutableDirectory() [all …]
|
D | test_search_path_list.cpp | 96 CopyFile("libfoo.so", exe_path.c_str(), "libfoo.so", temp_dir_1.path()); in main() 99 CopyFile("libfoo2.so", exe_path.c_str(), "libfoo.so", temp_dir_2.path()); in main() 118 setenv("LD_LIBRARY_PATH", temp_dir_1.path(), 1); in main() 120 crazy_context_add_search_path(context, temp_dir_2.path()); in main()
|
/ndk/ |
D | ndk-gdb.py | 46 for path in PATHS: 47 if os.path.isdir(path): 49 full = path + os.sep + program + ext 50 if os.path.isfile(full): 68 ndk_host = os.path.basename( 69 os.path.dirname( 70 os.path.dirname(sys.executable))) 120 NDK = os.path.abspath(os.path.dirname(sys.argv[0])).replace('\\','/') 218 if os.path.isdir(PYPRPR_GNUSTDCXX_BASE): 221 if os.path.isdir(os.path.join(PYPRPR_GNUSTDCXX_BASE, d)) ] [all …]
|