/external/webrtc/webrtc/modules/audio_processing/utility/ |
D | delay_estimator_unittest.cc | 51 void* handle_; member in __anon9e4dd89b0111::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/ |
D | prototype.h | 37 handle_(receiver), in isolate_() 41 CHECK(!handle_.is_null()); in isolate_() 74 handle_(receiver_map->GetPrototypeChainRootMap(isolate_)->prototype(), 77 is_at_end_(handle_->IsNull(isolate_)), 80 DCHECK(handle_->IsJSReceiver()); 81 Map* map = JSReceiver::cast(*handle_)->map(); 91 DCHECK(!handle_.is_null()); in HasAccess() 92 if (handle_->IsAccessCheckNeeded()) { in HasAccess() 94 Handle<JSObject>::cast(handle_)); in HasAccess() 101 DCHECK(handle_.is_null()); in GetCurrent() [all …]
|
/external/libbrillo/brillo/http/ |
D | http_transport_curl_unittest.cc | 34 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 …]
|
D | http_connection_curl_unittest.cc | 155 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/libmojo/mojo/edk/embedder/ |
D | scoped_platform_handle.h | 20 explicit ScopedPlatformHandle(PlatformHandle handle) : handle_(handle) {} in ScopedPlatformHandle() 21 ~ScopedPlatformHandle() { handle_.CloseIfNecessary(); } in ~ScopedPlatformHandle() 25 : handle_(other.release()) {} in ScopedPlatformHandle() 29 handle_ = other.release(); 33 const PlatformHandle& get() const { return handle_; } in get() 36 PlatformHandle temp = handle_; in swap() 37 handle_ = other.handle_; in swap() 38 other.handle_ = temp; in swap() 42 PlatformHandle rv = handle_; in release() 43 handle_ = PlatformHandle(); in release() [all …]
|
/external/libchrome/base/ |
D | sync_socket_posix.cc | 59 SyncSocket::SyncSocket() : handle_(kInvalidHandle) {} in SyncSocket() 68 DCHECK_EQ(socket_a->handle_, kInvalidHandle); in CreatePair() 69 DCHECK_EQ(socket_b->handle_, kInvalidHandle); in CreatePair() 96 socket_a->handle_ = handles[0]; in CreatePair() 97 socket_b->handle_ = handles[1]; in CreatePair() 116 const bool retval = CloseHandle(handle_); in Close() 117 handle_ = kInvalidHandle; in Close() 123 return SendHelper(handle_, buffer, length); in Send() 130 DCHECK_NE(handle_, kInvalidHandle); in Receive() 132 if (ReadFromFD(handle_, charbuffer, length)) in Receive() [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/webrtc/webrtc/modules/desktop_capture/win/ |
D | scoped_gdi_object.h | 26 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/libmojo/mojo/public/cpp/bindings/ |
D | associated_interface_request.h | 29 handle_ = std::move(other.handle_); in AssociatedInterfaceRequest() 33 handle_ = std::move(other.handle_); 41 handle_.reset(); in decltype() 47 bool is_pending() const { return handle_.is_valid(); } in is_pending() 50 handle_ = std::move(handle); in Bind() 54 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 | 24 : handle_(std::move(handle)), version_(version) {} in InterfacePtrInfo() 27 : handle_(std::move(other.handle_)), version_(other.version_) { in InterfacePtrInfo() 35 handle_ = std::move(other.handle_); 43 bool is_valid() const { return handle_.is_valid(); } in is_valid() 45 ScopedMessagePipeHandle PassHandle() { return std::move(handle_); } in PassHandle() 46 const ScopedMessagePipeHandle& handle() const { return handle_; } in handle() 48 handle_ = std::move(handle); in set_handle() 55 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() 49 return std::move(handle_); in PassHandle() 51 const ScopedInterfaceEndpointHandle& handle() const { return handle_; } in handle() 53 handle_ = std::move(handle); in set_handle() 69 ScopedInterfaceEndpointHandle handle_;
|
D | interface_request.h | 51 handle_ = std::move(other.handle_); in InterfaceRequest() 54 handle_ = std::move(other.handle_); 61 handle_.reset(); in decltype() 68 void Bind(ScopedMessagePipeHandle handle) { handle_ = std::move(handle); } in Bind() 71 bool is_pending() const { return handle_.is_valid(); } in is_pending() 74 ScopedMessagePipeHandle PassMessagePipe() { return std::move(handle_); } in PassMessagePipe() 86 if (!handle_.is_valid()) in ResetWithReason() 93 handle_.get(), message.TakeMojoMessage(), MOJO_WRITE_MESSAGE_FLAG_NONE); in ResetWithReason() 96 handle_.reset(); in ResetWithReason() 100 ScopedMessagePipeHandle handle_;
|
/external/webrtc/webrtc/common_audio/vad/ |
D | vad.cc | 22 : 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::__anonc032eb7c0111::VadImpl
|
/external/libmojo/mojo/public/cpp/bindings/lib/ |
D | interface_endpoint_client.cc | 142 handle_(std::move(handle)), in InterfaceEndpointClient() 150 DCHECK(handle_.is_valid()); in InterfaceEndpointClient() 157 if (handle_.pending_association()) { in InterfaceEndpointClient() 158 handle_.SetAssociationEventHandler(base::Bind( in InterfaceEndpointClient() 169 handle_.group_controller()->DetachEndpointClient(handle_); in ~InterfaceEndpointClient() 174 associated_group_ = base::MakeUnique<AssociatedGroup>(handle_); in associated_group() 182 if (!handle_.is_valid()) in PassHandle() 185 handle_.SetAssociationEventHandler( in PassHandle() 190 handle_.group_controller()->DetachEndpointClient(handle_); in PassHandle() 193 return std::move(handle_); in PassHandle() [all …]
|
/external/libmojo/mojo/public/js/ |
D | bindings.js | 34 this.handle_ = null; 46 this.handle_ = ptrInfoOrHandle.handle; 48 this.handle_ = ptrInfoOrHandle; 53 return this.router_ !== null || this.handle_ !== null; 66 if (this.handle_) { 67 core.close(this.handle_); 68 this.handle_ = null; 86 this.router_.connector_.handle_, this.version); 87 this.router_.connector_.handle_ = null; 90 result = new types.InterfacePtrInfo(this.handle_, this.version); [all …]
|
D | connector.js | 15 this.handle_ = handle; 34 if (this.handle_ != null) { 35 core.close(this.handle_); 36 this.handle_ = null; 47 var result = core.writeMessage(this.handle_, 86 var wait = core.wait(this.handle_, core.HANDLE_SIGNAL_READABLE, 93 var read = core.readMessage(this.handle_, 95 if (this.handle_ == null) // The connector has been closed.
|
/external/libmojo/mojo/public/cpp/system/ |
D | handle.h | 78 explicit ScopedHandleBase(HandleType handle) : handle_(handle) {} in ScopedHandleBase() 83 : handle_(other.release()) {} in ScopedHandleBase() 86 ScopedHandleBase(ScopedHandleBase&& other) : handle_(other.release()) {} in ScopedHandleBase() 90 handle_ = other.release(); 95 const HandleType& get() const { return handle_; } in get() 96 const HandleType* operator->() const { return &handle_; } 108 void swap(ScopedHandleBase& other) { handle_.swap(other.handle_); } in swap() 112 rv.swap(handle_); in release() 118 handle_ = handle; 121 bool is_valid() const { return handle_.is_valid(); } in is_valid() [all …]
|
D | watcher.cc | 33 return handle_.is_valid(); in IsWatching() 44 handle_ = handle; in Start() 45 MojoResult result = MojoWatch(handle_.value(), signals, in Start() 49 handle_.set_value(kInvalidHandleValue); in Start() 63 if (!handle_.is_valid()) in Cancel() 67 MojoCancelWatch(handle_.value(), reinterpret_cast<uintptr_t>(this)); in Cancel() 71 handle_.set_value(kInvalidHandleValue); in Cancel() 80 handle_.set_value(kInvalidHandleValue); in OnHandleReady()
|
/external/tensorflow/tensorflow/compiler/xla/client/ |
D | computation.cc | 28 : handle_(handle), parent_(parent) {} in Computation() 31 : handle_(std::move(computation.handle_)), parent_(computation.parent_) { in Computation() 42 *request.mutable_computation() = handle_; in Snapshot() 55 handle_ = computation.handle_; in operator =() 63 handle_.Clear(); in ResetWithoutFreeing() 69 *request.mutable_computation() = handle_; in GetProgramShape()
|
/external/perfetto/include/perfetto/base/ |
D | weak_ptr.h | 63 return handle_ ? *handle_.get() : nullptr; in get() 72 explicit WeakPtr(const std::shared_ptr<T*>& handle) : handle_(handle) {} in WeakPtr() 74 std::shared_ptr<T*> handle_; variable 81 explicit WeakPtrFactory(T* owner) : handle_(new T* {owner}) { in WeakPtrFactory() 86 *(handle_.get()) = nullptr; in ~WeakPtrFactory() 91 return WeakPtr<T>(handle_); in GetWeakPtr() 98 std::shared_ptr<T*> handle_; variable
|
/external/libtextclassifier/util/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() { return handle_; } in handle() 136 MmapHandle handle_;
|
/external/drm_hwcomposer/ |
D | drmhwcomposer.h | 85 : gralloc_(gralloc), handle_(handle) { in DrmHwcNativeHandle() 91 handle_ = rhs.handle_; in DrmHwcNativeHandle() 92 rhs.handle_ = NULL; in DrmHwcNativeHandle() 101 handle_ = rhs.handle_; 102 rhs.handle_ = NULL; 111 return handle_; in get() 116 native_handle_t *handle_ = NULL; variable
|
/external/webrtc/webrtc/base/ |
D | latebindingsymboltable.cc | 65 handle_(kInvalidDllHandle), in LateBindingSymbolTable() 75 return handle_ != kInvalidDllHandle; in IsLoaded() 95 handle_ = dlopen(dll_path, in LoadFromPath() 116 if (handle_ == kInvalidDllHandle) { in LoadFromPath() 126 if (!LoadSymbol(handle_, info_->symbol_names[i], &table_[i])) { in LoadFromPath() 141 if (dlclose(handle_) != 0) { in Unload() 148 handle_ = kInvalidDllHandle; in Unload()
|
/external/webrtc/webrtc/modules/audio_device/linux/ |
D | latebindingsymboltable_linux.h | 52 : handle_(kInvalidDllHandle), in LateBindingSymbolTable() 72 return handle_ != kInvalidDllHandle; in IsLoaded() 88 handle_ = InternalLoadDll(kDllName); in Load() 92 if (!InternalLoadSymbols(handle_, NumSymbols(), kSymbolNames, symbols_)) { in Load() 104 InternalUnloadDll(handle_); in Unload() 105 handle_ = kInvalidDllHandle; in Unload() 118 DllHandle handle_;
|
/external/libmojo/mojo/edk/system/ |
D | channel_win.cc | 81 handle_(std::move(handle)), in ChannelWin() 83 CHECK(handle_.is_valid()); in ChannelWin() 85 wait_for_connect_ = handle_.get().needs_connection; in ChannelWin() 154 handle_.get().handle, this); in StartOnIOThread() 157 BOOL ok = ConnectNamedPipe(handle_.get().handle, in StartOnIOThread() 198 CHECK(handle_.is_valid()); in ShutDownOnIOThread() 199 CancelIo(handle_.get().handle); in ShutDownOnIOThread() 201 ignore_result(handle_.release()); in ShutDownOnIOThread() 202 handle_.reset(); in ShutDownOnIOThread() 287 BOOL ok = ReadFile(handle_.get().handle, in ReadMore() [all …]
|