Searched refs:handle_ (Results 1 - 25 of 149) sorted by relevance

123456

/external/chromium_org/mojo/embedder/
H A Dscoped_platform_handle.h21 explicit ScopedPlatformHandle(PlatformHandle handle) : handle_(handle) {}
22 ~ScopedPlatformHandle() { handle_.CloseIfNecessary(); }
25 ScopedPlatformHandle(RValue other) : handle_(other.object->release()) {}
27 handle_ = other.object->release();
31 const PlatformHandle& get() const { return handle_; }
34 PlatformHandle temp = handle_;
35 handle_ = other.handle_;
36 other.handle_ = temp;
40 PlatformHandle rv = handle_;
53 PlatformHandle handle_; member in class:mojo::embedder::ScopedPlatformHandle
[all...]
/external/qemu/android/base/files/
H A DScopedHandle.h33 ScopedHandle() : handle_(INVALID_HANDLE_VALUE) {}
36 explicit ScopedHandle(HANDLE handle) : handle_(handle) {}
42 bool valid() const { return handle_ != INVALID_HANDLE_VALUE; }
45 HANDLE get() const { return handle_; }
49 HANDLE h = handle_;
50 handle_ = INVALID_HANDLE_VALUE;
56 if (handle_ != INVALID_HANDLE_VALUE) {
57 ::CloseHandle(handle_);
58 handle_ = INVALID_HANDLE_VALUE;
64 HANDLE handle = handle_;
72 HANDLE handle_; member in class:android::base::ScopedHandle
[all...]
/external/chromium_org/base/memory/
H A Dscoped_open_process.h16 ScopedOpenProcess() : handle_(kNullProcessHandle) {
28 return OpenProcessHandle(pid, &handle_);
33 if (handle_ == kNullProcessHandle)
36 CloseProcessHandle(handle_);
37 handle_ = kNullProcessHandle;
40 ProcessHandle handle() const { return handle_; }
43 ProcessHandle handle_; member in class:base::ScopedOpenProcess
/external/chromium_org/ppapi/cpp/private/
H A Dpass_file_handle.cc16 : handle_(PP_kInvalidFileHandle) {
20 : handle_(handle) {
24 : handle_(handle.Release()) {
32 PP_FileHandle released = handle_;
33 handle_ = PP_kInvalidFileHandle;
38 if (handle_ != PP_kInvalidFileHandle) {
40 CloseHandle(handle_);
42 close(handle_);
44 handle_ = PP_kInvalidFileHandle;
/external/chromium_org/v8/src/
H A Dprototype.h35 handle_(receiver),
37 CHECK(!handle_.is_null());
58 handle_(handle(receiver_map->prototype(), receiver_map->GetIsolate())),
63 DCHECK(handle_.is_null());
67 DCHECK(!iterator.handle_.is_null());
68 return iterator.handle_;
71 if (handle_.is_null() && object_->IsJSProxy()) {
75 } else if (!handle_.is_null() && handle_->IsJSProxy()) {
77 handle_
124 Handle<Object> handle_; member in class:v8::internal::PrototypeIterator
[all...]
/external/chromium_org/third_party/webrtc/modules/desktop_capture/win/
H A Dscoped_gdi_object.h26 ScopedGDIObject() : handle_(NULL) {}
27 explicit ScopedGDIObject(T object) : handle_(object) {}
30 Traits::Close(handle_);
34 return handle_;
38 if (handle_ && object != handle_)
39 Traits::Close(handle_);
40 handle_ = object;
49 T object = handle_;
50 handle_
57 T handle_; member in class:webrtc::win::ScopedGDIObject
[all...]
/external/chromium_org/chrome/installer/test/
H A Dresource_updater.cc15 ResourceUpdater::ResourceUpdater() : handle_(NULL) {
19 if (handle_ != NULL) {
21 BOOL result = EndUpdateResource(handle_, TRUE);
27 DCHECK(handle_ == NULL);
28 handle_ = BeginUpdateResource(pe_image_path.value().c_str(), FALSE);
29 if (handle_ == NULL) {
41 DCHECK(handle_ != NULL);
45 if (UpdateResource(handle_, type.c_str(), name.c_str(), language_id,
58 DCHECK(handle_ != NULL);
60 if (EndUpdateResource(handle_, FALS
[all...]
/external/chromium_org/crypto/
H A Dscoped_capi_types.h50 explicit ScopedCAPIHandle(CAPIHandle handle = NULL) : handle_(handle) {}
57 if (handle_ != handle) {
59 free_proc(handle_);
60 handle_ = handle;
64 operator CAPIHandle() const { return handle_; }
65 CAPIHandle get() const { return handle_; }
68 CHECK(handle_ == NULL);
69 return &handle_;
73 return handle_ == handle;
77 return handle_ !
93 CAPIHandle handle_; member in class:crypto::ScopedCAPIHandle
[all...]
/external/chromium_org/media/base/
H A Dbitstream_buffer.h19 handle_(handle),
24 base::SharedMemoryHandle handle() const { return handle_; }
29 base::SharedMemoryHandle handle_; member in class:media::BitstreamBuffer
/external/chromium_org/ipc/
H A Dipc_channel_factory.cc15 : handle_(handle), mode_(mode) {
19 return handle_.name;
24 return Channel::Create(handle_, mode_, listener);
28 ChannelHandle handle_; member in class:IPC::__anon8470::PlatformChannelFactory
/external/chromium_org/base/win/
H A Dscoped_handle.h40 GenericScopedHandle() : handle_(Traits::NullHandle()) {}
42 explicit GenericScopedHandle(Handle handle) : handle_(Traits::NullHandle()) {
47 GenericScopedHandle(RValue other) : handle_(Traits::NullHandle()) {
56 return Traits::IsHandleValid(handle_);
68 if (handle_ != handle) {
72 handle_ = handle;
80 return handle_;
84 return handle_;
89 Handle temp = handle_;
90 handle_
110 Handle handle_; member in class:base::win::GenericScopedHandle
[all...]
/external/chromium_org/mojo/public/cpp/bindings/
H A Dinterface_request.h20 handle_ = other.object->handle_.Pass();
23 handle_ = other.object->handle_.Pass();
28 bool is_pending() const { return handle_.is_valid(); }
31 handle_ = handle.Pass();
35 return handle_.Pass();
39 ScopedMessagePipeHandle handle_; member in class:mojo::InterfaceRequest
/external/chromium_org/net/dns/
H A Ddns_config_watcher_mac.cc27 handle_ = dlopen("/usr/lib/libSystem.dylib",
29 if (!handle_)
33 dlsym(handle_, "dns_configuration_notify_key"));
36 dlsym(handle_, "dns_configuration_copy"));
39 dlsym(handle_, "dns_configuration_free"));
43 if (handle_)
44 dlclose(handle_);
52 void* handle_; member in class:__anon9192::DnsInfoApi
/external/chromium_org/extensions/renderer/
H A Dscoped_persistent.h26 handle_.Reset(GetIsolate(handle), handle);
31 void reset() { handle_.Reset(); }
33 bool IsEmpty() const { return handle_.IsEmpty(); }
36 if (handle_.IsEmpty())
38 return v8::Local<T>::New(GetIsolate(handle_), handle_);
42 if (handle_.IsEmpty())
44 return v8::Local<T>::New(isolate, handle_);
50 handle_.SetWeak(parameters, callback);
72 v8::Persistent<T> handle_; member in class:extensions::ScopedPersistent
[all...]
/external/chromium_org/media/audio/pulse/
H A Dpulse_input.cc37 handle_(NULL),
47 DCHECK(!handle_);
53 if (!pulse::CreateInputStream(pa_mainloop_, pa_context_, &handle_, params_,
58 DCHECK(handle_);
66 DCHECK(handle_);
77 pa_stream_drop(handle_);
82 pa_stream_set_read_callback(handle_, &ReadCallback, this);
83 pa_stream_readable_size(handle_);
86 pa_operation* operation = pa_stream_cork(handle_, 0, NULL, NULL);
101 pa_operation* operation = pa_stream_flush(handle_,
[all...]
/external/chromium_org/base/synchronization/
H A Dwaitable_event_win.cc17 : handle_(CreateEvent(NULL, manual_reset, signaled, NULL)) {
20 CHECK(handle_.IsValid());
24 : handle_(handle) {
25 CHECK(handle_.IsValid()) << "Tried to create WaitableEvent from NULL handle";
32 return handle_.Take();
36 ResetEvent(handle_.Get());
40 SetEvent(handle_.Get());
49 DWORD result = WaitForSingleObject(handle_.Get(), INFINITE);
62 DWORD result = WaitForSingleObject(handle_.Get(),
/external/chromium_org/base/threading/
H A Dplatform_thread.h77 : handle_(0),
82 : handle_(handle),
88 : handle_(handle),
93 return handle_ == other.handle_;
97 return !handle_;
101 return handle_;
107 Handle handle_; member in class:base::PlatformThreadHandle
/external/chromium_org/base/
H A Dsync_socket_nacl.cc18 SyncSocket::SyncSocket() : handle_(kInvalidHandle) {
49 if (handle_ != kInvalidHandle) {
50 if (close(handle_) < 0)
52 handle_ = kInvalidHandle;
58 const ssize_t bytes_written = write(handle_, buffer, length);
63 const ssize_t bytes_read = read(handle_, buffer, length);
H A Dsync_socket_posix.cc56 SyncSocket::SyncSocket() : handle_(kInvalidHandle) {}
65 DCHECK_EQ(socket_a->handle_, kInvalidHandle);
66 DCHECK_EQ(socket_b->handle_, kInvalidHandle);
93 socket_a->handle_ = handles[0];
94 socket_b->handle_ = handles[1];
113 const bool retval = CloseHandle(handle_);
114 handle_ = kInvalidHandle;
120 return SendHelper(handle_, buffer, length);
127 DCHECK_NE(handle_, kInvalidHandle);
129 if (ReadFromFD(handle_, charbuffe
[all...]
/external/chromium_org/chrome/browser/extensions/api/braille_display_private/
H A Dbrlapi_connection.cc43 virtual bool Connected() OVERRIDE { return handle_; }
62 scoped_ptr<brlapi_handle_t, base::FreeDeleter> handle_; member in class:extensions::api::braille_display_private::BrlapiConnectionImpl
83 DCHECK(!handle_);
84 handle_.reset((brlapi_handle_t*) malloc(
86 int fd = libbrlapi_loader_->brlapi__openConnection(handle_.get(), NULL, NULL);
88 handle_.reset();
101 handle_.get(), path, pathElements, NULL) < 0) {
130 handle_.get(), brlapi_rangeType_command, extraKeys,
150 if (!handle_) {
155 handle_
[all...]
/external/chromium_org/third_party/webrtc/modules/audio_processing/utility/
H A Ddelay_estimator_unittest.cc51 void* handle_; member in class:__anon15920::DelayEstimatorTest
67 : handle_(NULL),
93 handle_ = WebRtc_CreateDelayEstimator(farend_handle_, kLookahead);
94 ASSERT_TRUE(handle_ != NULL);
95 self_ = reinterpret_cast<DelayEstimator*>(handle_);
103 WebRtc_FreeDelayEstimator(handle_);
104 handle_ = NULL;
118 EXPECT_EQ(0, WebRtc_InitDelayEstimator(handle_));
122 EXPECT_EQ(-2, WebRtc_last_delay(handle_)); // Delay in initial state.
123 EXPECT_FLOAT_EQ(0, WebRtc_last_delay_quality(handle_)); // Zer
[all...]
/external/chromium_org/base/files/
H A Dfile_path_watcher_win.cc26 : handle_(INVALID_HANDLE_VALUE),
70 HANDLE handle_; member in class:base::__anon2255::FilePathWatcherImpl
72 // ObjectWatcher to watch handle_ for events.
109 watcher_.StartWatching(handle_, this);
135 if (handle_ != INVALID_HANDLE_VALUE)
149 DCHECK(object == handle_);
201 if (handle_ != INVALID_HANDLE_VALUE)
202 watcher_.StartWatching(handle_, this);
245 if (handle_ != INVALID_HANDLE_VALUE)
249 // create a watch handle in |handle_|
[all...]
/external/chromium_org/mojo/public/js/bindings/
H A Dconnector.js13 this.handle_ = handle;
28 if (this.handle_ != null) {
29 core.close(this.handle_);
30 this.handle_ = null;
41 var result = core.writeMessage(this.handle_,
80 this.readWaitCookie_ = support.asyncWait(this.handle_,
87 var read = core.readMessage(this.handle_,
/external/chromium_org/third_party/webrtc/base/
H A Dlatebindingsymboltable.cc65 handle_(kInvalidDllHandle),
75 return handle_ != kInvalidDllHandle;
95 handle_ = dlopen(dll_path,
116 if (handle_ == kInvalidDllHandle) {
126 if (!LoadSymbol(handle_, info_->symbol_names[i], &table_[i])) {
141 if (dlclose(handle_) != 0) {
148 handle_ = kInvalidDllHandle;
/external/chromium_org/third_party/webrtc/modules/audio_device/linux/
H A Dlatebindingsymboltable_linux.h69 : handle_(kInvalidDllHandle),
89 return handle_ != kInvalidDllHandle;
105 handle_ = InternalLoadDll(kDllName);
109 if (!InternalLoadSymbols(handle_, NumSymbols(), kSymbolNames, symbols_)) {
121 InternalUnloadDll(handle_);
122 handle_ = kInvalidDllHandle;
135 DllHandle handle_;

Completed in 717 milliseconds

123456