/external/lzma/CPP/Windows/ |
D | SecurityUtils.h | 15 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 …]
|
D | Handle.h | 11 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()
|
D | FileFind.cpp | 110 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 …]
|
D | FileIO.cpp | 62 _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 …]
|
D | FileFind.h | 77 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()
|
D | FileMapping.h | 17 …_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()
|
D | Synchronization.h | 91 …{ 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()
|
/external/oj-libjdwp/src/solaris/npt/ |
D | npt_md.h | 41 void *_handle; \ 46 _handle = dlopen(path, RTLD_LAZY); \ 47 if ( _handle == NULL ) NPT_ERROR("Cannot open library"); \ 48 _sym = dlsym(_handle, "nptInitialize"); \ 52 (*(pnpt))->libhandle = _handle; \ 57 void *_handle; \ 61 _handle = (npt)->libhandle; \ 62 _sym = dlsym(_handle, "nptTerminate"); \ 65 if ( _handle != NULL ) (void)dlclose(_handle); \
|
/external/lzma/CPP/Common/ |
D | C_FileIO.cpp | 22 _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()
|
/external/libxcam/xcore/ |
D | analyzer_loader.cpp | 27 : _handle (NULL) in AnalyzerLoader() 71 if (_handle != NULL) in open_handle() 72 return _handle; in open_handle() 81 _handle = handle; in open_handle() 104 if (!_handle) in close_handle() 106 dlclose (_handle); in close_handle() 107 _handle = NULL; in close_handle()
|
/external/python/cpython3/Lib/asyncio/ |
D | windows_utils.py | 87 self._handle = handle 90 if self._handle is not None: 98 return self._handle 101 if self._handle is None: 103 return self._handle 106 if self._handle is not None: 107 CloseHandle(self._handle) 108 self._handle = None 111 if self._handle is not None:
|
/external/tensorflow/tensorflow/python/ops/ |
D | critical_section_ops.py | 177 self._handle = gen_resource_variable_ops.mutex_v2( 185 return self._handle.op.name 221 lock = gen_resource_variable_ops.mutex_lock(self._handle) 267 with ops.colocate_with(self._handle): 284 handle=self._handle, 333 return x is self._handle 338 self._handle.op.get_attr("shared_name")) 339 and (x.op.device == self._handle.op.device 340 or _get_colocation(x.op) == _get_colocation(self._handle.op))) 374 (list(resource_intersection), self._handle, sg, sg.handle))
|
D | resource_variable_ops.py | 241 self._handle = handle 254 self._handle, ignore_lookup_error=True) 547 self._handle = eager_safe_variable_handle( 571 gen_resource_variable_ops.var_is_initialized_op(self._handle)) 573 with ops.name_scope("Assign") as n, ops.colocate_with(self._handle): 577 self._handle, 583 with ops.name_scope("Read"), ops.colocate_with(self._handle): 586 with ops.device(self._handle.device): 603 gen_resource_variable_ops.assign_variable_op(self._handle, 629 handle=self._handle, handle_device=self._handle.device) [all …]
|
D | session_ops.py | 56 self._handle = compat.as_str_any(handle) 67 return self._handle 73 self._resource_handle.device = self._handle.split(";")[-1] 76 self._resource_handle.name = self._handle 91 return self._handle 98 holder, reader = _get_handle_reader(self._session.graph, self._handle, 100 return self._session.run(reader, feed_dict={holder: self._handle}) 108 holder, deleter = _get_handle_deleter(self._session.graph, 0, self._handle) 119 return self._handle
|
D | tensor_array_ops.py | 143 self._handle = handle 164 self._handle, self._flow = create() 166 self._handle, self._flow = create() 178 return self._handle 226 handle=self._handle, 242 with ops.name_scope(name, "TensorArrayGrad", [self._handle]): 243 with ops.colocate_with(self._handle): 245 handle=self._handle, source=source, flow_in=flow, name=name) 260 handle=self._handle, 272 with ops.name_scope(name, "TensorArrayWrite", [self._handle, index, value]): [all …]
|
/external/tensorflow/tensorflow/python/eager/ |
D | pywrap_tfe_test.py | 52 ctx._handle, ctx.device_name, "MatMul", None, None, a_2_by_2, 57 ctx._handle, ctx.device_name, "MatMul", None, None, a_100_by_784, 67 ctx._handle, ctx.device_name, "MatMul", None, None, m, m, "transpose_a", 70 ctx._handle, ctx.device_name, "MatMul", None, None, a_2_by_2, a_2_by_2, 83 ctx._handle, ctx.device_name, "MatMul", None, None, a_2_by_2, 98 ctx._handle, ctx.device_name, "MatMul", None, None, m, m, 114 pywrap_tensorflow.TFE_Py_FastPathExecute(ctx._handle, ctx.device_name, 130 ctx._handle, ctx.device_name, "AddN", None, None, 147 pywrap_tensorflow.TFE_Py_FastPathExecute(ctx._handle, ctx.device_name, 163 ctx._handle, ctx.device_name, "IdentityN", None, None, [all …]
|
D | def_function.py | 145 self._handle = resource_variable_ops.eager_safe_variable_handle( 171 resource_variable_ops.var_is_initialized_op(self._handle)) 173 with ops.name_scope("Assign") as n, ops.colocate_with(self._handle): 175 self._handle, lifted_initializer, name=n) 176 with ops.name_scope("Read"), ops.colocate_with(self._handle): 179 with ops.device(self._handle.device): 187 with ops.name_scope("Assign") as n, ops.colocate_with(self._handle): 189 self._handle, 199 resource_variable_ops.var_is_initialized_op(self._handle), 209 handle=self._handle, handle_device=self._handle.device)
|
/external/tensorflow/tensorflow/contrib/eager/python/ |
D | parameter_server.py | 157 self._handle = _eager_safe_variable_handle( 169 self._handle = _eager_safe_variable_handle( 192 self._handle = _eager_safe_variable_handle( 209 resource_variable_ops.var_is_initialized_op(self._handle)) 211 with ops.name_scope("Assign") as n, ops.colocate_with(self._handle): 214 self._handle, 218 with ops.name_scope("Read"), ops.colocate_with(self._handle): 221 with ops.device(self._handle.device): 227 resource_variable_ops.assign_variable_op(self._handle,
|
/external/parameter-framework/upstream/utility/posix/ |
D | DynamicLibrary.cpp | 42 _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/ |
D | DynamicLibrary.cpp | 46 _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/ |
D | windows_common.h | 87 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/python/cpython3/Lib/multiprocessing/ |
D | connection.py | 115 _handle = None variable in _ConnectionBase 124 self._handle = handle 131 if self._handle is not None: 135 if self._handle is None: 156 return self._handle is None 171 return self._handle 175 if self._handle is not None: 179 self._handle = None 277 _CloseHandle(self._handle) 280 ov, err = _winapi.WriteFile(self._handle, buf, overlapped=True) [all …]
|
D | popen_spawn_win32.py | 81 self._handle = hp 104 res = _winapi.WaitForSingleObject(int(self._handle), msecs) 106 code = _winapi.GetExitCodeProcess(self._handle) 119 _winapi.TerminateProcess(int(self._handle), TERMINATE)
|
/external/autotest/client/bin/net/ |
D | net_tc.py | 62 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/v8/src/ |
D | roots-inl.h | 23 Handle<type> ReadOnlyRoots::name##_handle() { \ 34 Handle<String> ReadOnlyRoots::name##_handle() { \ 45 Handle<Symbol> ReadOnlyRoots::name##_handle() { \ 56 Handle<Symbol> ReadOnlyRoots::name##_handle() { \
|