/external/libbrillo/brillo/http/ |
D | http_transport_curl_test.cc | 35 handle_ = reinterpret_cast<CURL*>(100); // Mock handle value. in SetUp() 36 EXPECT_CALL(*curl_api_, EasyInit()).WillOnce(Return(handle_)); in SetUp() 37 EXPECT_CALL(*curl_api_, EasySetOptPtr(handle_, CURLOPT_CAINFO, _)) in SetUp() 39 EXPECT_CALL(*curl_api_, EasySetOptStr(handle_, CURLOPT_CAPATH, _)) in SetUp() 41 EXPECT_CALL(*curl_api_, EasySetOptInt(handle_, CURLOPT_SSL_VERIFYPEER, 1)) in SetUp() 43 EXPECT_CALL(*curl_api_, EasySetOptInt(handle_, CURLOPT_SSL_VERIFYHOST, 2)) in SetUp() 45 EXPECT_CALL(*curl_api_, EasySetOptPtr(handle_, CURLOPT_PRIVATE, _)) in SetUp() 57 CURL* handle_{nullptr}; member in brillo::http::curl::HttpCurlTransportTest 62 EasySetOptStr(handle_, CURLOPT_URL, "http://foo.bar/get")) in TEST_F() 65 EasySetOptStr(handle_, CURLOPT_USERAGENT, "User Agent")) in TEST_F() [all …]
|
D | http_connection_curl_test.cc | 156 EXPECT_CALL(*curl_api_, EasySetOptPtr(handle_, CURLOPT_PRIVATE, _)) in SetUp() 159 handle_, request_type::kPost, curl_api_, transport_); in SetUp() 164 EXPECT_CALL(*curl_api_, EasyCleanup(handle_)).Times(1); in TearDown() 174 CURL* handle_{performer_.GetCurlHandle()}; member in brillo::http::curl::HttpCurlConnectionTest 186 EasySetOptCallback(handle_, CURLOPT_DEBUGFUNCTION, _)) in TEST_F() 188 EXPECT_CALL(*curl_api_, EasySetOptInt(handle_, CURLOPT_VERBOSE, 1)) in TEST_F() 194 EasySetOptOffT(handle_, CURLOPT_POSTFIELDSIZE_LARGE, request_data.size())) in TEST_F() 197 EXPECT_CALL(*curl_api_, EasySetOptCallback(handle_, CURLOPT_READFUNCTION, _)) in TEST_F() 199 EXPECT_CALL(*curl_api_, EasySetOptPtr(handle_, CURLOPT_READDATA, _)) in TEST_F() 202 EXPECT_CALL(*curl_api_, EasySetOptPtr(handle_, CURLOPT_HTTPHEADER, _)) in TEST_F() [all …]
|
/external/webrtc/modules/audio_processing/utility/ |
D | delay_estimator_unittest.cc | 54 void* handle_; member in webrtc::__anonb0dfe00f0111::DelayEstimatorTest 70 : handle_(NULL), in DelayEstimatorTest() 96 handle_ = WebRtc_CreateDelayEstimator(farend_handle_, kLookahead); in SetUp() 97 ASSERT_TRUE(handle_ != NULL); in SetUp() 98 self_ = reinterpret_cast<DelayEstimator*>(handle_); in SetUp() 106 WebRtc_FreeDelayEstimator(handle_); in TearDown() 107 handle_ = NULL; in TearDown() 121 EXPECT_EQ(0, WebRtc_InitDelayEstimator(handle_)); in Init() 125 EXPECT_EQ(-2, WebRtc_last_delay(handle_)); // Delay in initial state. in Init() 126 EXPECT_FLOAT_EQ(0, WebRtc_last_delay_quality(handle_)); // Zero quality. in Init() [all …]
|
/external/libchrome/crypto/ |
D | scoped_capi_types.h | 51 explicit ScopedCAPIHandle(CAPIHandle handle = NULL) : handle_(handle) {} in handle_() function 58 if (handle_ != handle) { 60 free_proc(handle_); 61 handle_ = handle; 65 operator CAPIHandle() const { return handle_; } in CAPIHandle() 66 CAPIHandle get() const { return handle_; } in get() 69 CHECK(handle_ == NULL); in receive() 70 return &handle_; in receive() 74 return handle_ == handle; 78 return handle_ != handle; [all …]
|
/external/libchrome/base/ |
D | sync_socket_posix.cc | 60 SyncSocket::SyncSocket() : handle_(kInvalidHandle) {} in SyncSocket() 69 DCHECK_EQ(socket_a->handle_, kInvalidHandle); in CreatePair() 70 DCHECK_EQ(socket_b->handle_, kInvalidHandle); in CreatePair() 97 socket_a->handle_ = handles[0]; in CreatePair() 98 socket_b->handle_ = handles[1]; in CreatePair() 117 const bool retval = CloseHandle(handle_); in Close() 118 handle_ = kInvalidHandle; in Close() 124 return SendHelper(handle_, buffer, length); in Send() 131 DCHECK_NE(handle_, kInvalidHandle); in Receive() 133 if (ReadFromFD(handle_, charbuffer, length)) in Receive() [all …]
|
/external/libchrome/mojo/public/cpp/bindings/ |
D | associated_interface_request.h | 27 : handle_(std::move(handle)) {} in AssociatedInterfaceRequest() 32 handle_ = std::move(other.handle_); in AssociatedInterfaceRequest() 37 handle_ = std::move(other.handle_); 45 handle_.reset(); in decltype() 51 bool is_pending() const { return handle_.is_valid(); } in is_pending() 53 explicit operator bool() const { return handle_.is_valid(); } 55 ScopedInterfaceEndpointHandle PassHandle() { return std::move(handle_); } in PassHandle() 57 const ScopedInterfaceEndpointHandle& handle() const { return handle_; } in handle() 69 handle_.ResetWithReason(custom_reason, description); in ResetWithReason() 73 ScopedInterfaceEndpointHandle handle_;
|
D | interface_ptr_info.h | 26 : handle_(std::move(handle)), version_(version) {} in InterfacePtrInfo() 29 : handle_(std::move(other.handle_)), version_(other.version_) { in InterfacePtrInfo() 37 handle_ = std::move(other.handle_); 45 bool is_valid() const { return handle_.is_valid(); } in is_valid() 47 ScopedMessagePipeHandle PassHandle() { return std::move(handle_); } in PassHandle() 48 const ScopedMessagePipeHandle& handle() const { return handle_; } in handle() 50 handle_ = std::move(handle); in set_handle() 57 explicit operator bool() const { return handle_.is_valid(); } 60 ScopedMessagePipeHandle handle_;
|
D | associated_interface_ptr_info.h | 26 : handle_(std::move(other.handle_)), version_(other.version_) { in AssociatedInterfacePtrInfo() 32 : handle_(std::move(handle)), version_(version) {} in AssociatedInterfacePtrInfo() 38 handle_ = std::move(other.handle_); 46 bool is_valid() const { return handle_.is_valid(); } in is_valid() 48 explicit operator bool() const { return handle_.is_valid(); } 51 return std::move(handle_); in PassHandle() 53 const ScopedInterfaceEndpointHandle& handle() const { return handle_; } in handle() 55 handle_ = std::move(handle); in set_handle() 71 ScopedInterfaceEndpointHandle handle_;
|
D | interface_request.h | 36 : handle_(std::move(handle)) {} in InterfaceRequest() 40 handle_ = std::move(other.handle_); in InterfaceRequest() 43 handle_ = std::move(other.handle_); 50 handle_.reset(); in decltype() 55 bool is_pending() const { return handle_.is_valid(); } in is_pending() 57 explicit operator bool() const { return handle_.is_valid(); } 60 ScopedMessagePipeHandle PassMessagePipe() { return std::move(handle_); } in PassMessagePipe() 72 if (!handle_.is_valid()) in ResetWithReason() 79 handle_.get(), message.TakeMojoMessage(), MOJO_WRITE_MESSAGE_FLAG_NONE); in ResetWithReason() 82 handle_.reset(); in ResetWithReason() [all …]
|
/external/webrtc/modules/desktop_capture/win/ |
D | scoped_gdi_object.h | 25 ScopedGDIObject() : handle_(NULL) {} in ScopedGDIObject() 26 explicit ScopedGDIObject(T object) : handle_(object) {} in ScopedGDIObject() 28 ~ScopedGDIObject() { Traits::Close(handle_); } in ~ScopedGDIObject() 30 T Get() { return handle_; } in Get() 33 if (handle_ && object != handle_) in Set() 34 Traits::Close(handle_); in Set() 35 handle_ = object; in Set() 44 T object = handle_; in release() 45 handle_ = NULL; in release() 49 operator T() { return handle_; } in T() [all …]
|
/external/libchrome/mojo/public/cpp/system/ |
D | handle.h | 79 explicit ScopedHandleBase(HandleType handle) : handle_(handle) {} in ScopedHandleBase() 84 : handle_(other.release()) {} in ScopedHandleBase() 88 : handle_(other.release()) {} in ScopedHandleBase() 92 handle_ = other.release(); 97 const HandleType& get() const { return handle_; } in get() 99 DCHECK(handle_.is_valid()); 100 return &handle_; 113 void swap(ScopedHandleBase& other) { handle_.swap(other.handle_); } in swap() 117 rv.swap(handle_); in release() 123 handle_ = handle; [all …]
|
/external/tensorflow/tensorflow/lite/profiling/ |
D | atrace_profiler.cc | 37 handle_ = dlopen("libandroid.so", RTLD_NOW | RTLD_LOCAL); in ATraceProfiler() 38 if (handle_) { in ATraceProfiler() 42 reinterpret_cast<FpIsEnabled>(dlsym(handle_, "ATrace_isEnabled")); in ATraceProfiler() 44 dlsym(handle_, "ATrace_beginSection")); in ATraceProfiler() 46 reinterpret_cast<FpEndSection>(dlsym(handle_, "ATrace_endSection")); in ATraceProfiler() 50 dlclose(handle_); in ATraceProfiler() 51 handle_ = nullptr; in ATraceProfiler() 57 if (handle_) { in ~ATraceProfiler() 58 dlclose(handle_); in ~ATraceProfiler() 65 if (handle_ && atrace_is_enabled_()) { in BeginEvent() [all …]
|
/external/libchrome/mojo/public/js/lib/ |
D | connector.js | 11 this.handle_ = handle; 24 if (this.handle_ != null) { 25 this.handle_.close(); 26 this.handle_ = null; 53 var result = this.handle_.writeMessage( 91 var read = this.handle_.readMessage(); 92 if (this.handle_ == null) // The connector has been closed. 107 if (this.handle_ == null) 126 if (this.handle_) { 127 this.readWatcher_ = this.handle_.watch({readable: true}, [all …]
|
D | interface_endpoint_client.js | 12 this.handle_ = interfaceEndpointHandle; 36 if (this.controller_ || this.handle_.pendingAssociation()) { 40 this.controller_ = this.handle_.groupController().attachEndpointClient( 41 this.handle_, this); 50 setTimeout(this.notifyError.bind(this, this.handle_.disconnectReason()), 56 if (!this.handle_.isValid()) { 61 this.handle_.setAssociationEventHandler(undefined); 65 this.handle_.groupController().detachEndpointClient(this.handle_); 67 var handle = this.handle_; 68 this.handle_ = null; [all …]
|
/external/webrtc/common_audio/vad/ |
D | vad.cc | 25 : handle_(nullptr), aggressiveness_(aggressiveness) { in VadImpl() 29 ~VadImpl() override { WebRtcVad_Free(handle_); } in ~VadImpl() 34 int ret = WebRtcVad_Process(handle_, sample_rate_hz, audio, num_samples); in VoiceActivity() 47 if (handle_) in Reset() 48 WebRtcVad_Free(handle_); in Reset() 49 handle_ = WebRtcVad_Create(); in Reset() 50 RTC_CHECK(handle_); in Reset() 51 RTC_CHECK_EQ(WebRtcVad_Init(handle_), 0); in Reset() 52 RTC_CHECK_EQ(WebRtcVad_set_mode(handle_, aggressiveness_), 0); in Reset() 56 VadInst* handle_; member in webrtc::__anon51b2aa700111::VadImpl
|
/external/libchrome/mojo/public/cpp/bindings/lib/ |
D | interface_endpoint_client.cc | 146 handle_(std::move(handle)), in InterfaceEndpointClient() 154 DCHECK(handle_.is_valid()); in InterfaceEndpointClient() 161 if (handle_.pending_association()) { in InterfaceEndpointClient() 162 handle_.SetAssociationEventHandler(base::Bind( in InterfaceEndpointClient() 172 handle_.group_controller()->DetachEndpointClient(handle_); in ~InterfaceEndpointClient() 177 associated_group_ = std::make_unique<AssociatedGroup>(handle_); in associated_group() 185 if (!handle_.is_valid()) in PassHandle() 188 handle_.SetAssociationEventHandler( in PassHandle() 193 handle_.group_controller()->DetachEndpointClient(handle_); in PassHandle() 196 return std::move(handle_); in PassHandle() [all …]
|
/external/openscreen/platform/impl/ |
D | stream_socket_posix.cc | 43 : handle_(file_descriptor), in StreamSocketPosix() 57 if (handle_.fd != kUnsetHandleFd) { in ~StreamSocketPosix() 77 if (!IsConnectionPending(handle_.fd)) { in Accept() 86 accept(handle_.fd, new_remote_address.address(), &remote_address_size); in Accept() 112 if (bind(handle_.fd, local_address_.value().address(), in Bind() 123 if (handle_.fd == kUnsetHandleFd) { in Close() 130 const int file_descriptor_to_close = handle_.fd; in Close() 131 handle_.fd = kUnsetHandleFd; in Close() 145 int ret = connect(handle_.fd, address.address(), address.size()); in Connect() 158 if (getsockname(handle_.fd, reinterpret_cast<struct sockaddr*>(&address), in Connect() [all …]
|
/external/libchrome/base/memory/ |
D | writable_shared_memory_region.cc | 32 return std::move(region.handle_); in TakeHandleForSerialization() 38 subtle::PlatformSharedMemoryRegion handle = std::move(region.handle_); in ConvertToReadOnly() 47 subtle::PlatformSharedMemoryRegion handle = std::move(region.handle_); in ConvertToUnsafe() 62 return MapAt(0, handle_.GetSize()); in Map() 73 if (!handle_.MapAt(offset, size, &memory, &mapped_size)) in MapAt() 77 handle_.GetGUID()); in MapAt() 81 return handle_.IsValid(); in IsValid() 86 : handle_(std::move(handle)) { in WritableSharedMemoryRegion() 87 if (handle_.IsValid()) { in WritableSharedMemoryRegion() 88 CHECK_EQ(handle_.GetMode(), in WritableSharedMemoryRegion()
|
D | unsafe_shared_memory_region.cc | 31 return std::move(region.handle_); in TakeHandleForSerialization() 42 return UnsafeSharedMemoryRegion(handle_.Duplicate()); in Duplicate() 46 return MapAt(0, handle_.GetSize()); in Map() 56 if (!handle_.MapAt(offset, size, &memory, &mapped_size)) in MapAt() 60 handle_.GetGUID()); in MapAt() 64 return handle_.IsValid(); in IsValid() 69 : handle_(std::move(handle)) { in UnsafeSharedMemoryRegion() 70 if (handle_.IsValid()) { in UnsafeSharedMemoryRegion() 71 CHECK_EQ(handle_.GetMode(), in UnsafeSharedMemoryRegion()
|
D | read_only_shared_memory_region.cc | 51 return std::move(region.handle_); in TakeHandleForSerialization() 62 return ReadOnlySharedMemoryRegion(handle_.Duplicate()); in Duplicate() 66 return MapAt(0, handle_.GetSize()); in Map() 77 if (!handle_.MapAt(offset, size, &memory, &mapped_size)) in MapAt() 81 handle_.GetGUID()); in MapAt() 85 return handle_.IsValid(); in IsValid() 90 : handle_(std::move(handle)) { in ReadOnlySharedMemoryRegion() 91 if (handle_.IsValid()) { in ReadOnlySharedMemoryRegion() 92 CHECK_EQ(handle_.GetMode(), in ReadOnlySharedMemoryRegion()
|
/external/libchrome/mojo/core/ |
D | scoped_process_handle.cc | 33 : handle_(handle) { in ScopedProcessHandle() 61 return handle_.IsValid(); in is_valid() 63 return handle_ != base::kNullProcessHandle; in is_valid() 69 return handle_.Get(); in get() 71 return handle_; in get() 77 return handle_.Take(); in release() 79 return handle_; in release()
|
/external/drm_hwcomposer/include/ |
D | drmhwcomposer.h | 85 DrmHwcNativeHandle(native_handle_t *handle) : handle_(handle) { in DrmHwcNativeHandle() 89 handle_ = rhs.handle_; in DrmHwcNativeHandle() 90 rhs.handle_ = NULL; in DrmHwcNativeHandle() 97 handle_ = rhs.handle_; 98 rhs.handle_ = NULL; 107 return handle_; in get() 111 native_handle_t *handle_ = NULL;
|
/external/libtextclassifier/native/utils/memory/ |
D | mmap.h | 120 : handle_(MmapFile(filename)) {} in ScopedMmap() 122 explicit ScopedMmap(int fd) : handle_(MmapFile(fd)) {} in ScopedMmap() 125 : handle_(MmapFile(fd, segment_offset, segment_size)) {} in ScopedMmap() 128 if (handle_.ok()) { in ~ScopedMmap() 129 Unmap(handle_); in ~ScopedMmap() 133 const MmapHandle &handle() const { return handle_; } in handle() 136 MmapHandle handle_;
|
/external/libtextclassifier/native/lang_id/common/file/ |
D | mmap.h | 119 : handle_(MmapFile(filename)) {} in ScopedMmap() 121 explicit ScopedMmap(FileDescriptorOrHandle fd) : handle_(MmapFile(fd)) {} in ScopedMmap() 125 : handle_(MmapFile(fd, offset_in_bytes, size_in_bytes)) {} in ScopedMmap() 128 if (handle_.ok()) { in ~ScopedMmap() 129 Unmap(handle_); in ~ScopedMmap() 133 const MmapHandle &handle() { return handle_; } in handle() 136 MmapHandle handle_;
|
/external/libchrome/mojo/public/cpp/platform/ |
D | platform_handle.h | 102 bool is_valid_handle() const { return handle_.IsValid(); } in COMPONENT_EXPORT() 104 const base::win::ScopedHandle& GetHandle() const { return handle_; } in COMPONENT_EXPORT() 108 return std::move(handle_); in COMPONENT_EXPORT() 113 return handle_.Take(); in COMPONENT_EXPORT() 117 bool is_valid_handle() const { return handle_.is_valid(); } in COMPONENT_EXPORT() 119 const zx::handle& GetHandle() const { return handle_; } in COMPONENT_EXPORT() 123 return std::move(handle_); in COMPONENT_EXPORT() 128 return handle_.release(); in COMPONENT_EXPORT() 173 base::win::ScopedHandle handle_; in COMPONENT_EXPORT() local 175 zx::handle handle_; in COMPONENT_EXPORT() local
|