Home
last modified time | relevance | path

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

1234567

/external/libbrillo/brillo/http/
Dhttp_transport_curl_unittest.cc34 handle_ = reinterpret_cast<CURL*>(100); // Mock handle value. in SetUp()
35 EXPECT_CALL(*curl_api_, EasyInit()).WillOnce(Return(handle_)); in SetUp()
36 EXPECT_CALL(*curl_api_, EasySetOptStr(handle_, CURLOPT_CAPATH, _)) in SetUp()
38 EXPECT_CALL(*curl_api_, EasySetOptInt(handle_, CURLOPT_SSL_VERIFYPEER, 1)) in SetUp()
40 EXPECT_CALL(*curl_api_, EasySetOptInt(handle_, CURLOPT_SSL_VERIFYHOST, 2)) in SetUp()
42 EXPECT_CALL(*curl_api_, EasySetOptPtr(handle_, CURLOPT_PRIVATE, _)) in SetUp()
54 CURL* handle_{nullptr}; member in brillo::http::curl::HttpCurlTransportTest
59 EasySetOptStr(handle_, CURLOPT_URL, "http://foo.bar/get")) in TEST_F()
62 EasySetOptStr(handle_, CURLOPT_USERAGENT, "User Agent")) in TEST_F()
65 EasySetOptStr(handle_, CURLOPT_REFERER, "http://foo.bar/baz")) in TEST_F()
[all …]
Dhttp_connection_curl_unittest.cc155 EXPECT_CALL(*curl_api_, EasySetOptPtr(handle_, CURLOPT_PRIVATE, _)) in SetUp()
158 handle_, request_type::kPost, curl_api_, transport_); in SetUp()
163 EXPECT_CALL(*curl_api_, EasyCleanup(handle_)).Times(1); in TearDown()
173 CURL* handle_{performer_.GetCurlHandle()}; member in brillo::http::curl::HttpCurlConnectionTest
185 EasySetOptCallback(handle_, CURLOPT_DEBUGFUNCTION, _)) in TEST_F()
187 EXPECT_CALL(*curl_api_, EasySetOptInt(handle_, CURLOPT_VERBOSE, 1)) in TEST_F()
193 EasySetOptOffT(handle_, CURLOPT_POSTFIELDSIZE_LARGE, request_data.size())) in TEST_F()
196 EXPECT_CALL(*curl_api_, EasySetOptCallback(handle_, CURLOPT_READFUNCTION, _)) in TEST_F()
198 EXPECT_CALL(*curl_api_, EasySetOptPtr(handle_, CURLOPT_READDATA, _)) in TEST_F()
201 EXPECT_CALL(*curl_api_, EasySetOptPtr(handle_, CURLOPT_HTTPHEADER, _)) in TEST_F()
[all …]
/external/webrtc/webrtc/modules/audio_processing/utility/
Ddelay_estimator_unittest.cc51 void* handle_; member in __anon8154affe0111::DelayEstimatorTest
67 : handle_(NULL), in DelayEstimatorTest()
93 handle_ = WebRtc_CreateDelayEstimator(farend_handle_, kLookahead); in SetUp()
94 ASSERT_TRUE(handle_ != NULL); in SetUp()
95 self_ = reinterpret_cast<DelayEstimator*>(handle_); in SetUp()
103 WebRtc_FreeDelayEstimator(handle_); in TearDown()
104 handle_ = NULL; in TearDown()
118 EXPECT_EQ(0, WebRtc_InitDelayEstimator(handle_)); in Init()
122 EXPECT_EQ(-2, WebRtc_last_delay(handle_)); // Delay in initial state. in Init()
123 EXPECT_FLOAT_EQ(0, WebRtc_last_delay_quality(handle_)); // Zero quality. in Init()
[all …]
/external/v8/src/
Dprototype-inl.h22 handle_(receiver), in PrototypeIterator()
26 CHECK(!handle_.is_null()); in PrototypeIterator()
59 handle_(receiver_map->GetPrototypeChainRootMap(isolate_)->prototype(), in PrototypeIterator()
62 is_at_end_(handle_->IsNull(isolate_)), in PrototypeIterator()
65 DCHECK(handle_->IsJSReceiver()); in PrototypeIterator()
66 Map* map = JSReceiver::cast(*handle_)->map(); in PrototypeIterator()
74 DCHECK(!handle_.is_null()); in HasAccess()
75 if (handle_->IsAccessCheckNeeded()) { in HasAccess()
77 Handle<JSObject>::cast(handle_)); in HasAccess()
83 if (handle_.is_null() && object_->IsJSProxy()) { in Advance()
[all …]
Dmaybe-handles-inl.h21 handle_(Handle<Object>::null()) {} in MaybeObjectHandle()
27 handle_ = handle(heap_object, isolate); in MaybeObjectHandle()
30 handle_ = handle(object->ToObject(), isolate); in MaybeObjectHandle()
36 : reference_type_(HeapObjectReferenceType::STRONG), handle_(object) {} in MaybeObjectHandle()
40 handle_(object, isolate) {} in MaybeObjectHandle()
45 : reference_type_(reference_type), handle_(handle(object, isolate)) {} in MaybeObjectHandle()
49 : reference_type_(reference_type), handle_(object) {} in MaybeObjectHandle()
61 return HeapObjectReference::Weak(*handle_.ToHandleChecked());
63 return MaybeObject::FromObject(*handle_.ToHandleChecked());
69 return HeapObjectReference::Weak(*handle_.ToHandleChecked());
[all …]
/external/libchrome/crypto/
Dscoped_capi_types.h51 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/
Dsync_socket_posix.cc60 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/
Dassociated_interface_request.h27 : 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_;
Dinterface_ptr_info.h26 : 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_;
Dinterface_request.h36 : 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 …]
Dassociated_interface_ptr_info.h26 : 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_;
/external/libchrome/mojo/public/cpp/system/
Dhandle.h79 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/webrtc/webrtc/modules/desktop_capture/win/
Dscoped_gdi_object.h26 ScopedGDIObject() : handle_(NULL) {} in ScopedGDIObject()
27 explicit ScopedGDIObject(T object) : handle_(object) {} in ScopedGDIObject()
30 Traits::Close(handle_); in ~ScopedGDIObject()
34 return handle_; in Get()
38 if (handle_ && object != handle_) in Set()
39 Traits::Close(handle_); in Set()
40 handle_ = object; in Set()
49 T object = handle_; in release()
50 handle_ = NULL; in release()
54 operator T() { return handle_; } in T()
[all …]
/external/libchrome/mojo/public/js/lib/
Dconnector.js11 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 …]
Dinterface_endpoint_client.js12 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/webrtc/common_audio/vad/
Dvad.cc22 : handle_(nullptr), aggressiveness_(aggressiveness) { in VadImpl()
26 ~VadImpl() override { WebRtcVad_Free(handle_); } in ~VadImpl()
31 int ret = WebRtcVad_Process(handle_, sample_rate_hz, audio, num_samples); in VoiceActivity()
44 if (handle_) in Reset()
45 WebRtcVad_Free(handle_); in Reset()
46 handle_ = WebRtcVad_Create(); in Reset()
47 RTC_CHECK(handle_); in Reset()
48 RTC_CHECK_EQ(WebRtcVad_Init(handle_), 0); in Reset()
49 RTC_CHECK_EQ(WebRtcVad_set_mode(handle_, aggressiveness_), 0); in Reset()
53 VadInst* handle_; member in webrtc::__anon377c8cff0111::VadImpl
/external/libchrome/mojo/public/cpp/bindings/lib/
Dinterface_endpoint_client.cc146 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/libchrome/base/memory/
Dwritable_shared_memory_region.cc32 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()
Dunsafe_shared_memory_region.cc31 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()
Dread_only_shared_memory_region.cc51 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/
Dscoped_process_handle.cc33 : 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/
Ddrmhwcomposer.h85 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;
108 return handle_; in get()
112 native_handle_t *handle_ = NULL;
/external/libtextclassifier/utils/memory/
Dmmap.h120 : 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() { return handle_; } in handle()
136 MmapHandle handle_;
/external/libchrome/mojo/public/cpp/platform/
Dplatform_handle.h102 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
/external/libchrome/mojo/public/js/
Dbindings.js50 this.handle_ = null;
61 this.handle_ = ptrInfoOrHandle.handle;
63 this.handle_ = ptrInfoOrHandle;
68 return this.interfaceEndpointClient_ !== null || this.handle_ !== null;
85 if (this.handle_) {
86 this.handle_.close();
87 this.handle_ = null;
114 this.router_.connector_.handle_, this.version);
115 this.router_.connector_.handle_ = null;
118 result = new mojo.InterfacePtrInfo(this.handle_, this.version);
[all …]

1234567