Home
last modified time | relevance | path

Searched refs:MAX_PATH (Results 1 – 25 of 230) sorted by relevance

12345678910

/external/chromium_org/base/test/
Dtest_shortcut_win.cc28 wchar_t long_expected_path_chars[MAX_PATH] = {0}; in ValidatePathsAreEqual()
29 wchar_t long_actual_path_chars[MAX_PATH] = {0}; in ValidatePathsAreEqual()
40 expected_path.value().c_str(), long_expected_path_chars, MAX_PATH)) in ValidatePathsAreEqual()
43 actual_path.value().c_str(), long_actual_path_chars, MAX_PATH)) in ValidatePathsAreEqual()
61 wchar_t read_target[MAX_PATH] = {0}; in ValidateShortcut()
62 wchar_t read_working_dir[MAX_PATH] = {0}; in ValidateShortcut()
63 wchar_t read_arguments[MAX_PATH] = {0}; in ValidateShortcut()
64 wchar_t read_description[MAX_PATH] = {0}; in ValidateShortcut()
65 wchar_t read_icon[MAX_PATH] = {0}; in ValidateShortcut()
89 i_shell_link->GetPath(read_target, MAX_PATH, NULL, SLGP_SHORTPATH))); in ValidateShortcut()
[all …]
/external/lzma/CPP/Windows/
DFileDir.cpp45 UINT needLength = ::GetWindowsDirectory(path.GetBuffer(MAX_PATH + 1), MAX_PATH + 1); in MyGetWindowsDirectory()
47 return (needLength > 0 && needLength <= MAX_PATH); in MyGetWindowsDirectory()
52 UINT needLength = ::GetSystemDirectory(path.GetBuffer(MAX_PATH + 1), MAX_PATH + 1); in MyGetSystemDirectory()
54 return (needLength > 0 && needLength <= MAX_PATH); in MyGetSystemDirectory()
64 UINT needLength = ::GetWindowsDirectoryW(path.GetBuffer(MAX_PATH + 1), MAX_PATH + 1); in MyGetWindowsDirectory()
66 return (needLength > 0 && needLength <= MAX_PATH); in MyGetWindowsDirectory()
79 UINT needLength = ::GetSystemDirectoryW(path.GetBuffer(MAX_PATH + 1), MAX_PATH + 1); in MyGetSystemDirectory()
81 return (needLength > 0 && needLength <= MAX_PATH); in MyGetSystemDirectory()
486 DWORD needLength = ::GetShortPathName(longPath, shortPath.GetBuffer(MAX_PATH + 1), MAX_PATH + 1); in MyGetShortPathName()
488 return (needLength > 0 && needLength < MAX_PATH); in MyGetShortPathName()
[all …]
DDLL.cpp77 TCHAR fullPath[MAX_PATH + 2]; in MyGetModuleFileName()
78 DWORD size = ::GetModuleFileName(hModule, fullPath, MAX_PATH + 1); in MyGetModuleFileName()
79 if (size <= MAX_PATH && size != 0) in MyGetModuleFileName()
93 wchar_t fullPath[MAX_PATH + 2]; in MyGetModuleFileName()
94 DWORD size = ::GetModuleFileNameW(hModule, fullPath, MAX_PATH + 1); in MyGetModuleFileName()
95 if (size <= MAX_PATH && size != 0) in MyGetModuleFileName()
/external/chromium_org/third_party/libusb/src/msvc/
Dmissing.c34 static char value[MAX_PATH]; in getenv()
35 TCHAR wValue[MAX_PATH]; in getenv()
36 WCHAR wName[MAX_PATH]; in getenv()
44 if (MultiByteToWideChar(CP_UTF8, 0, name, -1, wName, MAX_PATH) <= 0) { in getenv()
48 wName[MAX_PATH - 1] = 0; // Be sure it's NUL terminated in getenv()
73 value, MAX_PATH, in getenv()
78 value[MAX_PATH - 1] = 0; // Be sure it's NUL terminated in getenv()
/external/linux-tools-perf/util/
Dcgroup.c15 char mountpoint[MAX_PATH+1], tokens[MAX_PATH+1], type[MAX_PATH+1]; in cgroupfs_find_mountpoint()
28 while (fscanf(fp, "%*s %"STR(MAX_PATH)"s %"STR(MAX_PATH)"s %" in cgroupfs_find_mountpoint()
29 STR(MAX_PATH)"s %*d %*d\n", in cgroupfs_find_mountpoint()
60 char path[MAX_PATH+1]; in open_cgroup()
61 char mnt[MAX_PATH+1]; in open_cgroup()
65 if (cgroupfs_find_mountpoint(mnt, MAX_PATH+1)) in open_cgroup()
68 snprintf(path, MAX_PATH, "%s/%s", mnt, name); in open_cgroup()
/external/chromium_org/base/
Dfile_util_win.cc48 if (stripped_from.value().length() >= MAX_PATH || in ShellCopy()
49 stripped_to.value().length() >= MAX_PATH) { in ShellCopy()
56 wchar_t double_terminated_path_from[MAX_PATH + 1] = {0}; in ShellCopy()
57 wchar_t double_terminated_path_to[MAX_PATH + 1] = {0}; in ShellCopy()
79 wchar_t file_path[MAX_PATH]; in MakeAbsoluteFilePath()
80 if (!_wfullpath(file_path, input.value().c_str(), MAX_PATH)) in MakeAbsoluteFilePath()
88 if (path.value().length() >= MAX_PATH) in DeleteFile()
108 wchar_t double_terminated_path[MAX_PATH + 1] = {0}; in DeleteFile()
136 if (path.value().length() >= MAX_PATH) in DeleteFileAfterReboot()
217 wchar_t temp_path[MAX_PATH + 1]; in GetTempDir()
[all …]
Dbase_paths_win.cc23 wchar_t system_buffer[MAX_PATH]; in GetQuickLaunchPath()
59 wchar_t system_buffer[MAX_PATH]; in PathProviderWin()
65 GetModuleFileName(NULL, system_buffer, MAX_PATH); in PathProviderWin()
72 GetModuleFileName(this_module, system_buffer, MAX_PATH); in PathProviderWin()
77 GetWindowsDirectory(system_buffer, MAX_PATH); in PathProviderWin()
81 GetSystemDirectory(system_buffer, MAX_PATH); in PathProviderWin()
Dfile_version_info_win.cc40 wchar_t system_buffer[MAX_PATH]; in CreateFileVersionInfoForModule()
42 if (!GetModuleFileName(module, system_buffer, MAX_PATH)) in CreateFileVersionInfoForModule()
167 wchar_t sub_block[MAX_PATH]; in GetValue()
170 _snwprintf_s(sub_block, MAX_PATH, MAX_PATH, in GetValue()
/external/skia/tools/
Dwin_dbghelp.cpp52 char debug_app_name[MAX_PATH] = "";
61 char debug_binaries_path[MAX_PATH] = "";
80 char debug_cdb_path[MAX_PATH] = "";
128 char szPath[MAX_PATH]; in GenerateDumpAndPrintCallstack()
129 char szFileName[MAX_PATH]; in GenerateDumpAndPrintCallstack()
130 char szFileNameOutput[MAX_PATH]; in GenerateDumpAndPrintCallstack()
133 DWORD dwBufferSize = MAX_PATH; in GenerateDumpAndPrintCallstack()
174 char command[MAX_PATH * 4]; in GenerateDumpAndPrintCallstack()
221 char app_name[MAX_PATH]; in setUpDebuggingFromArgs()
226 char binaries_path[MAX_PATH]; in setUpDebuggingFromArgs()
[all …]
/external/chromium_org/tools/gyp/test/module/src/
Dprogram.c11 #define MAX_PATH PATH_MAX macro
23 char bin_path[MAX_PATH + 1];
27 char module_path[MAX_PATH + 1]; in CallModule()
40 if (_makepath_s(module_path, MAX_PATH, drive, dir, module, MODULE_SUFFIX)) { in CallModule()
63 int path_size = snprintf(module_path, MAX_PATH, "%s/%s%s", bin_dir, module, in CallModule()
66 if (path_size < 0 || path_size > MAX_PATH) { in CallModule()
95 if (!GetModuleFileName(NULL, bin_path, MAX_PATH)) { in main()
/external/chromium_org/sandbox/win/src/
Dfile_policy_test.cc274 wchar_t buff[MAX_PATH]; in TEST()
287 wchar_t temp_directory[MAX_PATH]; in TEST()
288 wchar_t temp_file_name[MAX_PATH]; in TEST()
289 ASSERT_NE(::GetTempPath(MAX_PATH, temp_directory), 0u); in TEST()
295 wchar_t command_read[MAX_PATH + 20] = {0}; in TEST()
297 wchar_t command_write[MAX_PATH + 20] = {0}; in TEST()
317 wchar_t temp_directory[MAX_PATH]; in TEST()
318 wchar_t temp_file_name[MAX_PATH]; in TEST()
319 ASSERT_NE(::GetTempPath(MAX_PATH, temp_directory), 0u); in TEST()
322 wcscat_s(temp_directory, MAX_PATH, L"*"); in TEST()
[all …]
Dwin_utils_unittest.cc16 wchar_t temp_directory[MAX_PATH]; in TEST()
17 wchar_t my_folder[MAX_PATH]; in TEST()
18 ASSERT_NE(::GetTempPath(MAX_PATH, temp_directory), 0u); in TEST()
58 wchar_t temp_directory[MAX_PATH]; in TEST()
59 wchar_t my_folder[MAX_PATH]; in TEST()
60 ASSERT_NE(::GetTempPath(MAX_PATH, temp_directory), 0u); in TEST()
Dprocess_policy_test.cc25 wchar_t windows_path[MAX_PATH] = {0}; in MakeFullPathToSystem32()
26 ::GetSystemWindowsDirectoryW(windows_path, MAX_PATH); in MakeFullPathToSystem32()
156 wchar_t current_directory[MAX_PATH + 1]; in Process_RunApp4()
159 DWORD ret = ::GetCurrentDirectory(MAX_PATH, current_directory); in Process_RunApp4()
163 if (ret < MAX_PATH) { in Process_RunApp4()
299 wchar_t current_directory[MAX_PATH]; in TEST()
300 DWORD ret = ::GetCurrentDirectory(MAX_PATH, current_directory); in TEST()
301 ASSERT_TRUE(0 != ret && ret < MAX_PATH); in TEST()
303 wcscat_s(current_directory, MAX_PATH, L"\\"); in TEST()
Dhandle_inheritance_test.cc21 wchar_t temp_directory[MAX_PATH]; in TEST()
22 wchar_t temp_file_name[MAX_PATH]; in TEST()
23 ASSERT_NE(::GetTempPath(MAX_PATH, temp_directory), 0u); in TEST()
/external/chromium_org/chrome_frame/
Dchrome_frame_helper_main.cc103 wchar_t title_buffer[MAX_PATH] = {0}; in CloseHelperWindowsEnumProc()
104 if (GetWindowText(hwnd, title_buffer, MAX_PATH)) { in CloseHelperWindowsEnumProc()
106 wchar_t class_buffer[MAX_PATH] = {0}; in CloseHelperWindowsEnumProc()
107 if (GetClassName(hwnd, class_buffer, MAX_PATH)) { in CloseHelperWindowsEnumProc()
168 wchar_t reg_path_buffer[MAX_PATH] = {0}; in UninstallUserLevelChromeFrame()
175 wchar_t exe_buffer[MAX_PATH] = {0}; in UninstallUserLevelChromeFrame()
176 wchar_t args_buffer[MAX_PATH] = {0}; in UninstallUserLevelChromeFrame()
179 MAX_PATH, in UninstallUserLevelChromeFrame()
183 MAX_PATH, in UninstallUserLevelChromeFrame()
196 wchar_t argument_string[MAX_PATH * 3] = {0}; in UninstallUserLevelChromeFrame()
Dchrome_frame_helper_util.cc83 const int buf_size = MAX_PATH; in IsWindowOfClass()
97 const int buf_size = MAX_PATH; in IsNamedWindow()
230 wchar_t bho_clsid_as_string[MAX_PATH] = {0}; in IsBHOLoadingPolicyRegistered()
236 wchar_t reg_path_buffer[MAX_PATH] = {0}; in IsBHOLoadingPolicyRegistered()
238 MAX_PATH - 1, in IsBHOLoadingPolicyRegistered()
268 wchar_t version_buffer[MAX_PATH] = {0}; in IsSystemLevelChromeFrameInstalled()
271 MAX_PATH, in IsSystemLevelChromeFrameInstalled()
Dcrash_server_init.cc55 wchar_t exe_path[MAX_PATH * 2] = {0}; in IsRunningSystemInstall()
62 wchar_t program_files_path[MAX_PATH] = {0}; in IsRunningSystemInstall()
88 wchar_t temp_path[MAX_PATH + 1] = {0}; in InitializeCrashReporting()
89 DWORD path_len = ::GetTempPath(MAX_PATH, temp_path); in InitializeCrashReporting()
/external/chromium/base/
Dfile_util_win.cc52 wchar_t device_name[MAX_PATH]; in DevicePathToDriveLetterPath()
61 if (QueryDosDevice(drive, device_name, MAX_PATH) && in DevicePathToDriveLetterPath()
82 wchar_t file_path_buf[MAX_PATH]; in AbsolutePath()
83 if (!_wfullpath(file_path_buf, path->value().c_str(), MAX_PATH)) in AbsolutePath()
122 if (path.value().length() >= MAX_PATH) in Delete()
142 wchar_t double_terminated_path[MAX_PATH + 1] = {0}; in Delete()
170 if (path.value().length() >= MAX_PATH) in DeleteAfterReboot()
183 if (from_path.value().length() >= MAX_PATH || in Move()
184 to_path.value().length() >= MAX_PATH) { in Move()
238 if (from_path.value().length() >= MAX_PATH || in CopyFile()
[all …]
Dbase_paths_win.cc27 wchar_t system_buffer[MAX_PATH]; in PathProviderWin()
33 GetModuleFileName(NULL, system_buffer, MAX_PATH); in PathProviderWin()
40 GetModuleFileName(this_module, system_buffer, MAX_PATH); in PathProviderWin()
45 GetWindowsDirectory(system_buffer, MAX_PATH); in PathProviderWin()
49 GetSystemDirectory(system_buffer, MAX_PATH); in PathProviderWin()
/external/clang/tools/libclang/
DCIndexer.cpp56 char path[MAX_PATH]; in getClangResourcesPath()
59 GetModuleFileNameA((HINSTANCE)mbi.AllocationBase, path, MAX_PATH); in getClangResourcesPath()
62 char w32path[MAX_PATH]; in getClangResourcesPath()
65 cygwin_conv_path(CCP_WIN_A_TO_POSIX, w32path, path, MAX_PATH); in getClangResourcesPath()
/external/qemu/android/utils/
Dpath.h42 # undef MAX_PATH
43 # define MAX_PATH 1024 macro
45 # define PATH_MAX MAX_PATH
48 # define MAX_PATH PATH_MAX macro
/external/chromium_org/sandbox/win/sandbox_poc/
Dmain_ui_window.cc175 wchar_t current_dir[MAX_PATH]; in SpawnTargetWndProc()
176 if (GetCurrentDirectory(MAX_PATH, current_dir)) { in SpawnTargetWndProc()
322 wchar_t dll_path[MAX_PATH]; in OnLaunchDll()
323 wchar_t entry_point[MAX_PATH]; in OnLaunchDll()
324 wchar_t log_file[MAX_PATH]; in OnLaunchDll()
326 int dll_name_len = ::GetWindowText(edit_box_dll_name, dll_path, MAX_PATH); in OnLaunchDll()
328 entry_point, MAX_PATH); in OnLaunchDll()
330 ::GetWindowText(edit_log_file, log_file, MAX_PATH); in OnLaunchDll()
482 wchar_t log_pipe[MAX_PATH] = {0}; in SpawnTarget()
483 wnsprintf(log_pipe, MAX_PATH - 1, in SpawnTarget()
[all …]
/external/chromium_org/win8/delegate_execute/
Dcrash_server_init.cc30 wchar_t exe_path[MAX_PATH * 2] = {0}; in IsRunningSystemInstall()
37 wchar_t program_files_path[MAX_PATH] = {0}; in IsRunningSystemInstall()
70 wchar_t temp_path[MAX_PATH + 1] = {0}; in InitializeCrashReporting()
71 DWORD path_len = ::GetTempPath(MAX_PATH, temp_path); in InitializeCrashReporting()
/external/chromium_org/chrome/installer/mini_installer/
Dmini_string_test.cc29 StackString<MAX_PATH> str; in TEST_F()
30 EXPECT_EQ(MAX_PATH, str.capacity()); in TEST_F()
46 EXPECT_GT(static_cast<size_t>(MAX_PATH), str.length()); in TEST_F()
69 StackString<MAX_PATH> str; in TEST_F()
/external/skia/tools/skpdiff/
Dskpdiff_util.cpp132 char pathDirGlob[MAX_PATH]; in get_directory()
137 SkASSERT(pathLength + 2 <= MAX_PATH); in get_directory()
141 SkASSERT(pathLength + 3 <= MAX_PATH); in get_directory()
198 SkString fullPath(MAX_PATH); in get_absolute_path()
199 if (_fullpath(fullPath.writable_str(), path.c_str(), MAX_PATH) == NULL) { in get_absolute_path()

12345678910