Home
last modified time | relevance | path

Searched refs:_handle (Results 1 – 25 of 30) sorted by relevance

12

/external/lzma/CPP/Windows/
DSecurityUtils.h15 HANDLE _handle; variable
17 CAccessToken(): _handle(NULL) {}; in CAccessToken()
21 if (_handle == NULL) in Close()
23 bool res = BOOLToBool(::CloseHandle(_handle)); in Close()
25 _handle = NULL; in Close()
32 return BOOLToBool(::OpenProcessToken(processHandle, desiredAccess, &_handle)); in OpenProcessToken()
45 { return BOOLToBool(::AdjustTokenPrivileges(_handle, BoolToBOOL(disableAllPrivileges), in AdjustPrivileges()
68 LSA_HANDLE _handle;
73 operator LSA_HANDLE() const { return _handle; } in LSA_HANDLE()
74 CPolicy(): _handle(NULL) in CPolicy()
[all …]
DHandle.h11 HANDLE _handle;
13 operator HANDLE() { return _handle; } in HANDLE()
14 CHandle(): _handle(NULL) {} in CHandle()
16 bool IsCreated() const { return (_handle != NULL); } in IsCreated()
19 if (_handle == NULL) in Close()
21 if (!::CloseHandle(_handle)) in Close()
23 _handle = NULL; in Close()
26 void Attach(HANDLE handle) { _handle = handle; } in Attach()
29 HANDLE handle = _handle; in Detach()
30 _handle = NULL; in Detach()
DFileFind.cpp110 if (_handle == INVALID_HANDLE_VALUE) in Close()
112 if (!::FindClose(_handle)) in Close()
114 _handle = INVALID_HANDLE_VALUE; in Close()
157 _handle = ::FindFirstFileA(fs2fas(path), &fd); in FindFirst()
158 if (_handle == INVALID_HANDLE_VALUE) in FindFirst()
168 _handle = ::FindFirstFileW(fs2us(path), &fd); in FindFirst() local
170 if (_handle == INVALID_HANDLE_VALUE && USE_SUPER_PATH) in FindFirst()
174 _handle = ::FindFirstFileW(superPath, &fd); in FindFirst()
177 if (_handle == INVALID_HANDLE_VALUE) in FindFirst()
190 if (!::FindNextFileA(_handle, &fd)) in FindNext()
[all …]
DFileIO.cpp62 _handle = ::CreateFile(fs2fas(path), desiredAccess, shareMode, in Create()
69 _handle = ::CreateFileW(fs2us(path), desiredAccess, shareMode, in Create() local
72 if (_handle == INVALID_HANDLE_VALUE && USE_SUPER_PATH) in Create()
76 _handle = ::CreateFileW(superPath, desiredAccess, shareMode, in Create()
81 return (_handle != INVALID_HANDLE_VALUE); in Create()
86 if (_handle == INVALID_HANDLE_VALUE) in Close()
88 if (!::CloseHandle(_handle)) in Close()
90 _handle = INVALID_HANDLE_VALUE; in Close()
110 DWORD sizeLow = ::GetFileSize(_handle, &sizeHigh); in GetLength()
129 DWORD low = ::SetFilePointer(_handle, (LONG)(distanceToMove & 0xFFFFFFFF), &high, moveMethod); in Seek()
[all …]
DFileFind.h77 HANDLE _handle;
79 bool IsHandleAllocated() const { return _handle != INVALID_HANDLE_VALUE; } in IsHandleAllocated()
80 CFindFileBase(): _handle(INVALID_HANDLE_VALUE) {} in CFindFileBase()
144 HANDLE _handle; variable
146 operator HANDLE () { return _handle; } in HANDLE()
147 bool IsHandleAllocated() const { return _handle != INVALID_HANDLE_VALUE && _handle != 0; } in IsHandleAllocated()
148 CFindChangeNotification(): _handle(INVALID_HANDLE_VALUE) {} in CFindChangeNotification()
152 bool FindNext() { return BOOLToBool(::FindNextChangeNotification(_handle)); } in FindNext()
DFileMapping.h17_handle = ::CreateFileMapping(INVALID_HANDLE_VALUE, NULL, protect, (DWORD)(maxSize >> 32), (DWORD)… in Create()
36 _handle = ::OpenFileMapping(desiredAccess, FALSE, name); in Open()
37 if (_handle != 0) in Open()
45 …return ::MapViewOfFile(_handle, desiredAccess, (DWORD)(fileOffset >> 32), (DWORD)fileOffset, numbe… in Map()
51 …return ::MapViewOfFileEx(_handle, desiredAccess, (DWORD)(fileOffset >> 32), (DWORD)fileOffset, num… in Map()
DSynchronization.h91 …{ return (::WaitForSingleObject(_handle, timeoutInterval) == WAIT_OBJECT_0 ? 0 : ::GetLastError())…
98 _handle = ::CreateMutex(sa, BoolToBOOL(initiallyOwn), name);
99 if (name == NULL && _handle != 0)
106 _handle = ::OpenMutex(desiredAccess, BoolToBOOL(inheritHandle), name); in Open()
107 if (_handle != 0) in Open()
114 return ::ReleaseMutex(_handle) ? 0 : ::GetLastError(); in Release()
DFileIO.h67 HANDLE _handle;
77 return BOOLToBool(::DeviceIoControl(_handle, controlCode, inBuffer, inSize,
99 CFileBase(): _handle(INVALID_HANDLE_VALUE) {}; in CFileBase()
113 { return BOOLToBool(GetFileInformationByHandle(_handle, info)); } in GetFileInformation()
/external/lzma/CPP/Common/
DC_FileIO.cpp22 _handle = ::open(name, flags, 0666); in OpenBinary()
23 return _handle != -1; in OpenBinary()
28 if (_handle == -1) in Close()
30 if (close(_handle) != 0) in Close()
32 _handle = -1; in Close()
47 return ::lseek(_handle, distanceToMove, moveMethod); in Seek()
65 return read(_handle, data, size); in Read()
76 _handle = ::creat(name, 0666); in Create()
77 return _handle != -1; in Create()
89 return write(_handle, data, size); in Write()
DC_FileIO.h25 int _handle;
28 CFileBase(): _handle(-1) {}; in CFileBase()
/external/parameter-framework/upstream/utility/posix/
DDynamicLibrary.cpp42 _handle = dlopen(_path.c_str(), RTLD_LAZY); in DynamicLibrary()
44 if (_handle == nullptr) { in DynamicLibrary()
53 dlclose(_handle); in ~DynamicLibrary()
58 void *sym = dlsym(_handle, symbol.c_str()); in osGetSymbol()
/external/parameter-framework/upstream/utility/windows/
DDynamicLibrary.cpp46 _handle = reinterpret_cast<void *>(module); in DynamicLibrary()
48 if (_handle == nullptr) { in DynamicLibrary()
56 HMODULE module = reinterpret_cast<HMODULE>(_handle); in ~DynamicLibrary()
63 HMODULE module = reinterpret_cast<HMODULE>(_handle); in osGetSymbol()
/external/libusb/libusb/os/
Dwindows_common.h87 static HMODULE __dll_##name##_handle = NULL
91 __dll_##name##_handle = DLL_LOAD_LIBRARY(name); \
92 if (!__dll_##name##_handle) \
98 if (__dll_##name##_handle) { \
99 FreeLibrary(__dll_##name##_handle); \
100 __dll_##name##_handle = NULL; \
119 HMODULE h = __dll_##dll##_handle; \
/external/autotest/client/bin/net/
Dnet_tc.py62 self._handle = handle
88 return '%s:%s' % (self._handle, self._minor)
143 self._handle = None
180 return self._handle
184 self._handle = handle
252 self._handle = handle
258 return self._handle
286 return '%s:0' % self._handle
/external/mesa3d/src/vulkan/wsi/
Dwsi_common.h108 __wsi_type ## _from_handle(__VkType _handle) \
110 return (struct __wsi_type *)(uintptr_t) _handle; \
124 __VkIcdType ## _from_handle(__VkType _handle) \
126 return (__VkIcdType *)(uintptr_t) _handle; \
/external/python/cpython2/Lib/multiprocessing/
Dforking.py269 self._handle = hp
297 res = _subprocess.WaitForSingleObject(int(self._handle), msecs)
299 code = _subprocess.GetExitCodeProcess(self._handle)
312 _subprocess.TerminateProcess(int(self._handle), TERMINATE)
/external/parameter-framework/upstream/utility/
DDynamicLibrary.hpp80 void *_handle; member in DynamicLibrary
/external/spirv-llvm/test/SPIRV/
DCreatePipeFromPipeStorage.ll120 …%_handle = getelementptr inbounds %"class.cl::pipe<int __attribute__((ext_vector_type(4))), cl::pi…
121 …store %spirv.Pipe._0 addrspace(1)* %handle, %spirv.Pipe._0 addrspace(1)* addrspace(4)* %_handle, a…
138 …%_handle = getelementptr inbounds %"class.cl::pipe<int __attribute__((ext_vector_type(4))), cl::pi…
139 …store %spirv.Pipe._1 addrspace(1)* %handle, %spirv.Pipe._1 addrspace(1)* addrspace(4)* %_handle, a…
/external/python/cpython2/Lib/
Dsubprocess.py663 self._handle = hp
679 if _WaitForSingleObject(self._handle, 0) == _WAIT_OBJECT_0:
680 self.returncode = _GetExitCodeProcess(self._handle)
688 _subprocess.WaitForSingleObject(self._handle,
690 self.returncode = _subprocess.GetExitCodeProcess(self._handle)
772 _subprocess.TerminateProcess(self._handle, 1)
778 rc = _subprocess.GetExitCodeProcess(self._handle)
/external/autotest/client/cros/graphics/
Dgbm.py157 self._handle = handle
158 self._device = library.gbm_create_device(self._handle)
Ddrm.py471 self._handle = handle
/external/python/cpython2/Lib/ctypes/
D__init__.py362 self._handle = _dlopen(self._name, mode)
364 self._handle = handle
369 (self._handle & (_sys.maxint*2 + 1)),
/external/python/cpython2/Lib/ctypes/test/
Dtest_loading.py107 proc = windll.kernel32.GetProcAddress(advapi32._handle,
/external/mesa3d/src/amd/vulkan/
Dradv_private.h1280 __radv_type ## _from_handle(__VkType _handle) \
1282 return (struct __radv_type *) _handle; \
1294 __radv_type ## _from_handle(__VkType _handle) \
1296 return (struct __radv_type *)(uintptr_t) _handle; \
/external/mesa3d/src/intel/vulkan/
Danv_private.h1847 __anv_type ## _from_handle(__VkType _handle) \
1849 return (struct __anv_type *) _handle; \
1861 __anv_type ## _from_handle(__VkType _handle) \
1863 return (struct __anv_type *)(uintptr_t) _handle; \

12