Home
last modified time | relevance | path

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

/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.cpp109 if (_handle == INVALID_HANDLE_VALUE) in Close()
111 if (!::FindClose(_handle)) in Close()
113 _handle = INVALID_HANDLE_VALUE; in Close()
125 _handle = ::FindFirstFileA(fs2fas(path), &fd); in FindFirst()
126 if (_handle == INVALID_HANDLE_VALUE) in FindFirst()
136 _handle = ::FindFirstFileW(fs2us(path), &fd); in FindFirst() local
138 if (_handle == INVALID_HANDLE_VALUE && USE_SUPER_PATH) in FindFirst()
142 _handle = ::FindFirstFileW(longPath, &fd); in FindFirst()
145 if (_handle == INVALID_HANDLE_VALUE) in FindFirst()
158 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()
141 HANDLE _handle; variable
143 operator HANDLE () { return _handle; } in HANDLE()
144 bool IsHandleAllocated() const { return _handle != INVALID_HANDLE_VALUE && _handle != 0; } in IsHandleAllocated()
145 CFindChangeNotification(): _handle(INVALID_HANDLE_VALUE) {} in CFindChangeNotification()
149 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.h65 HANDLE _handle;
75 return BOOLToBool(::DeviceIoControl(_handle, controlCode, inBuffer, inSize,
97 CFileBase(): _handle(INVALID_HANDLE_VALUE) {}; in CFileBase()
111 { 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/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/libusb/libusb/
Dcore.c860 struct libusb_device_handle *_handle; in libusb_open() local
866 _handle = malloc(sizeof(*_handle) + priv_size); in libusb_open()
867 if (!_handle) in libusb_open()
870 r = pthread_mutex_init(&_handle->lock, NULL); in libusb_open()
874 _handle->dev = libusb_ref_device(dev); in libusb_open()
875 _handle->claimed_interfaces = 0; in libusb_open()
876 memset(&_handle->os_priv, 0, priv_size); in libusb_open()
878 r = usbi_backend->open(_handle); in libusb_open()
881 free(_handle); in libusb_open()
886 list_add(&_handle->list, &ctx->open_devs); in libusb_open()
[all …]
/external/drm_gralloc/
Dgralloc_drm_handle.h65 static inline struct gralloc_drm_handle_t *gralloc_drm_handle(buffer_handle_t _handle) in gralloc_drm_handle() argument
68 (struct gralloc_drm_handle_t *) _handle; in gralloc_drm_handle()
Dgralloc_drm.cpp154 static struct gralloc_drm_bo_t *validate_handle(buffer_handle_t _handle, in validate_handle() argument
157 struct gralloc_drm_handle_t *handle = gralloc_drm_handle(_handle); in validate_handle()
326 void gralloc_drm_resolve_format(buffer_handle_t _handle, in gralloc_drm_resolve_format() argument
329 struct gralloc_drm_handle_t *handle = gralloc_drm_handle(_handle); in gralloc_drm_resolve_format()
Dgralloc_drm.h121 void gralloc_drm_resolve_format(buffer_handle_t _handle, uint32_t *pitches, uint32_t *offsets, uint…
/external/chromium-trace/catapult/telemetry/telemetry/internal/backends/chrome_inspector/
Dtracing_backend.py40 self._handle = stream_handle
59 'handle': self._handle, 'size': 32768}}
74 req = {'method': 'IO.close', 'params': {'handle': self._handle}}
/external/parameter-framework/upstream/utility/
DDynamicLibrary.hpp80 void *_handle; member in DynamicLibrary
/external/autotest/client/cros/graphics/
Ddrm.py311 self._handle = handle
/external/libnl/include/
Dnetlink-types.h450 uint32_t pre ##_handle; \
/external/chromium-trace/catapult/tracing/third_party/css-element-queries/test/
Dmootools-more-yui-compressed.min.js1_handle:function(a,b){if(a.preventKeyboardPropagation){return}var c=!!this._manager;if(c&&this._ac…
/external/curl/lib/
Durl.c5943 if((data->set.out)->_handle == NULL) { in Curl_setup_conn()
/external/guice/extensions/persist/lib/
Dlog4j-1.2.14.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...
/external/slf4j/log4j-over-slf4j/compatibility/lib/
Dlog4j-1.2.14.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/ ...