/external/chromium_org/third_party/webrtc/base/ |
D | scoped_ref_ptr.h | 73 scoped_refptr() : ptr_(NULL) { in scoped_refptr() 76 scoped_refptr(T* p) : ptr_(p) { in scoped_refptr() 77 if (ptr_) in scoped_refptr() 78 ptr_->AddRef(); in scoped_refptr() 81 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) { in scoped_refptr() 82 if (ptr_) in scoped_refptr() 83 ptr_->AddRef(); in scoped_refptr() 87 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) { in scoped_refptr() 88 if (ptr_) in scoped_refptr() 89 ptr_->AddRef(); in scoped_refptr() [all …]
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
D | scoped_ref_ptr.h | 90 scoped_refptr() : ptr_(NULL) { in scoped_refptr() 93 scoped_refptr(T* p) : ptr_(p) { in scoped_refptr() 94 if (ptr_) in scoped_refptr() 95 ptr_->AddRef(); in scoped_refptr() 98 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) { in scoped_refptr() 99 if (ptr_) in scoped_refptr() 100 ptr_->AddRef(); in scoped_refptr() 104 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) { in scoped_refptr() 105 if (ptr_) in scoped_refptr() 106 ptr_->AddRef(); in scoped_refptr() [all …]
|
/external/webrtc/src/system_wrappers/interface/ |
D | scoped_refptr.h | 64 scoped_refptr() : ptr_(NULL) { in scoped_refptr() 67 scoped_refptr(T* p) : ptr_(p) { in scoped_refptr() 68 if (ptr_) in scoped_refptr() 69 ptr_->AddRef(); in scoped_refptr() 72 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) { in scoped_refptr() 73 if (ptr_) in scoped_refptr() 74 ptr_->AddRef(); in scoped_refptr() 78 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) { in scoped_refptr() 79 if (ptr_) in scoped_refptr() 80 ptr_->AddRef(); in scoped_refptr() [all …]
|
/external/chromium_org/third_party/webrtc/system_wrappers/interface/ |
D | scoped_refptr.h | 71 scoped_refptr() : ptr_(NULL) { in scoped_refptr() 74 scoped_refptr(T* p) : ptr_(p) { in scoped_refptr() 75 if (ptr_) in scoped_refptr() 76 ptr_->AddRef(); in scoped_refptr() 79 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) { in scoped_refptr() 80 if (ptr_) in scoped_refptr() 81 ptr_->AddRef(); in scoped_refptr() 85 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) { in scoped_refptr() 86 if (ptr_) in scoped_refptr() 87 ptr_->AddRef(); in scoped_refptr() [all …]
|
/external/libcxx/test/support/ |
D | min_allocator.h | 26 const void* ptr_; variable 29 min_pointer(std::nullptr_t) : ptr_(nullptr) {} in min_pointer() 31 min_pointer(min_pointer<T> p) : ptr_(p.ptr_) {} in min_pointer() 33 explicit operator bool() const {return ptr_ != nullptr;} 35 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;} 43 void* ptr_; variable 46 min_pointer(std::nullptr_t) : ptr_(nullptr) {} in min_pointer() 53 min_pointer(min_pointer<T> p) : ptr_(p.ptr_) {} in min_pointer() 55 explicit operator bool() const {return ptr_ != nullptr;} 57 friend bool operator==(min_pointer x, min_pointer y) {return x.ptr_ == y.ptr_;} [all …]
|
/external/chromium_org/base/ |
D | big_endian.cc | 12 : ptr_(buf), end_(ptr_ + len) {} in BigEndianReader() 15 if (ptr_ + len > end_) in Skip() 17 ptr_ += len; in Skip() 22 if (ptr_ + len > end_) in ReadBytes() 24 memcpy(out, ptr_, len); in ReadBytes() 25 ptr_ += len; in ReadBytes() 30 if (ptr_ + len > end_) in ReadPiece() 32 *out = base::StringPiece(ptr_, len); in ReadPiece() 33 ptr_ += len; in ReadPiece() 39 if (ptr_ + sizeof(T) > end_) in Read() [all …]
|
/external/chromium_org/third_party/cld/base/ |
D | scoped_ptr.h | 54 explicit scoped_ptr(C* p = NULL) : ptr_(p) { } in ptr_() function 60 delete ptr_; in ~scoped_ptr() local 67 if (p != ptr_) { 69 delete ptr_; variable 70 ptr_ = p; 77 assert(ptr_ != NULL); 78 return *ptr_; 81 assert(ptr_ != NULL); 82 return ptr_; 84 C* get() const { return ptr_; } in get() [all …]
|
/external/chromium_org/base/memory/ |
D | ref_counted.h | 268 scoped_refptr() : ptr_(NULL) { 271 scoped_refptr(T* p) : ptr_(p) { 272 if (ptr_) 273 ptr_->AddRef(); 276 scoped_refptr(const scoped_refptr<T>& r) : ptr_(r.ptr_) { 277 if (ptr_) 278 ptr_->AddRef(); 282 scoped_refptr(const scoped_refptr<U>& r) : ptr_(r.get()) { 283 if (ptr_) 284 ptr_->AddRef(); [all …]
|
/external/chromium_org/base/win/ |
D | scoped_comptr.h | 55 if (ptr_ != NULL) { in Release() 56 ptr_->Release(); in Release() 57 ptr_ = NULL; in Release() 64 Interface* p = ptr_; in Detach() 65 ptr_ = NULL; in Detach() 71 DCHECK(!ptr_); in Attach() 72 ptr_ = p; in Attach() 80 DCHECK(!ptr_) << "Object leak. Pointer must be NULL"; in Receive() 81 return &ptr_; in Receive() 92 DCHECK(ptr_ != NULL); in QueryInterface() [all …]
|
/external/lldb/include/lldb/Utility/ |
D | PythonPointer.h | 29 element_type* ptr_; 34 ptr_(p), in ptr_() function 38 Py_INCREF(ptr_); in ptr_() 42 ptr_(r.ptr_), 46 Py_INCREF(ptr_); 52 Py_XDECREF(ptr_); in ~PythonPointer() 58 return PythonPointer(ptr_,true); in StealReference() 64 return PythonPointer(ptr_, false); in DuplicateReference() 67 element_type get() const {return ptr_;} in get() 69 bool IsNull() { return ptr_ == NULL; } in IsNull() [all …]
|
/external/chromium_org/skia/ext/ |
D | refptr.h | 47 RefPtr() : ptr_(NULL) {} in RefPtr() 50 : ptr_(other.get()) { in RefPtr() 51 SkSafeRef(ptr_); in RefPtr() 56 : ptr_(other.get()) { in RefPtr() 57 SkSafeRef(ptr_); in RefPtr() 65 SkRefCnt_SafeAssign(ptr_, other.get()); 71 SkRefCnt_SafeAssign(ptr_, other.get()); 76 T* to_unref = ptr_; in clear() 77 ptr_ = NULL; in clear() 81 T* get() const { return ptr_; } in get() [all …]
|
/external/regex-re2/re2/ |
D | stringpiece.h | 31 const char* ptr_; 38 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece() 40 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int>(strlen(str))) { } in StringPiece() 42 : ptr_(str.data()), length_(static_cast<int>(str.size())) { } in StringPiece() 43 StringPiece(const char* offset, int len) : ptr_(offset), length_(len) { } in StringPiece() 49 const char* data() const { return ptr_; } in data() 54 void clear() { ptr_ = NULL; length_ = 0; } in clear() 55 void set(const char* data, int len) { ptr_ = data; length_ = len; } in set() 57 ptr_ = str; in set() 64 ptr_ = reinterpret_cast<const char*>(data); in set() [all …]
|
/external/chromium_org/mojo/public/cpp/bindings/ |
D | struct_ptr.h | 32 StructPtr() : ptr_(NULL) {} in StructPtr() 34 delete ptr_; in ~StructPtr() local 37 StructPtr(RValue other) : ptr_(NULL) { Take(other.object); } in StructPtr() 49 if (ptr_) { in reset() 50 delete ptr_; in reset() local 51 ptr_ = NULL; in reset() 55 bool is_null() const { return ptr_ == NULL; } in is_null() 58 assert(ptr_); 59 return *ptr_; 62 assert(ptr_); [all …]
|
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/base/strings/ |
D | string_piece.cc | 39 memcpy(buf, ptr_ + pos, ret); in copy() 47 const char* result = std::search(ptr_ + pos, ptr_ + length_, in find() 48 s.ptr_, s.ptr_ + s.length_); in find() 49 const size_type xpos = result - ptr_; in find() 57 const char* result = std::find(ptr_ + pos, ptr_ + length_, c); in find() 58 return result != ptr_ + length_ ? static_cast<size_t>(result - ptr_) : npos; in find() 68 const char* last = ptr_ + std::min(length_ - s.length_, pos) + s.length_; in rfind() 69 const char* result = std::find_end(ptr_, last, s.ptr_, s.ptr_ + s.length_); in rfind() 70 return result != last ? static_cast<size_t>(result - ptr_) : npos; in rfind() 78 if (ptr_[i] == c) in rfind() [all …]
|
D | string_piece.h | 49 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece() 51 : ptr_(str), length_((str == NULL) ? 0 : strlen(str)) { } in StringPiece() 53 : ptr_(str.data()), length_(str.size()) { } in StringPiece() 55 : ptr_(offset), length_(len) { } in StringPiece() 61 const char* data() const { return ptr_; } in data() 67 ptr_ = NULL; in clear() 71 ptr_ = data; in set() 75 ptr_ = str; in set() 79 ptr_ = reinterpret_cast<const char*>(data); in set() 83 char operator[](size_type i) const { return ptr_[i]; } [all …]
|
/external/regex-re2/util/ |
D | stringpiece.cc | 33 target->assign(ptr_, length_); in CopyToString() 38 memcpy(buf, ptr_ + pos, ret); in copy() 46 const char* result = std::search(ptr_ + pos, ptr_ + length_, in find() 47 s.ptr_, s.ptr_ + s.length_); in find() 48 const size_type xpos = result - ptr_; in find() 56 const char* result = std::find(ptr_ + pos, ptr_ + length_, c); in find() 57 return result != ptr_ + length_ ? result - ptr_ : npos; in find() 65 const char* last = ptr_ + min(ulen - s.length_, pos) + s.length_; in rfind() 66 const char* result = std::find_end(ptr_, last, s.ptr_, s.ptr_ + s.length_); in rfind() 67 return result != last ? result - ptr_ : npos; in rfind() [all …]
|
/external/chromium_org/third_party/re2/util/ |
D | stringpiece.cc | 33 target->assign(ptr_, length_); in CopyToString() 38 memcpy(buf, ptr_ + pos, ret); in copy() 46 const char* result = std::search(ptr_ + pos, ptr_ + length_, in find() 47 s.ptr_, s.ptr_ + s.length_); in find() 48 const size_type xpos = result - ptr_; in find() 56 const char* result = std::find(ptr_ + pos, ptr_ + length_, c); in find() 57 return result != ptr_ + length_ ? result - ptr_ : npos; in find() 65 const char* last = ptr_ + min(ulen - s.length_, pos) + s.length_; in rfind() 66 const char* result = std::find_end(ptr_, last, s.ptr_, s.ptr_ + s.length_); in rfind() 67 return result != last ? result - ptr_ : npos; in rfind() [all …]
|
/external/chromium_org/third_party/re2/re2/ |
D | stringpiece.h | 34 const char* ptr_; 41 StringPiece() : ptr_(NULL), length_(0) { } in StringPiece() 43 : ptr_(str), length_((str == NULL) ? 0 : static_cast<int>(strlen(str))) { } in StringPiece() 45 : ptr_(str.data()), length_(static_cast<int>(str.size())) { } in StringPiece() 46 StringPiece(const char* offset, int len) : ptr_(offset), length_(len) { } in StringPiece() 52 const char* data() const { return ptr_; } in data() 57 void clear() { ptr_ = NULL; length_ = 0; } in clear() 58 void set(const char* data, int len) { ptr_ = data; length_ = len; } in set() 60 ptr_ = str; in set() 67 ptr_ = reinterpret_cast<const char*>(data); in set() [all …]
|
/external/chromium_org/content/public/browser/ |
D | notification_details.h | 21 NotificationDetails() : ptr_(NULL) {} in NotificationDetails() 22 NotificationDetails(const NotificationDetails& other) : ptr_(other.ptr_) {} in NotificationDetails() 28 uintptr_t map_key() const { return reinterpret_cast<uintptr_t>(ptr_); } in map_key() 31 return ptr_ != other.ptr_; 35 return ptr_ == other.ptr_; 39 explicit NotificationDetails(const void* ptr) : ptr_(ptr) {} in NotificationDetails() 43 const void* ptr_; variable 56 T* ptr() const { return static_cast<T*>(const_cast<void*>(ptr_)); } in ptr()
|
D | notification_source.h | 21 NotificationSource(const NotificationSource& other) : ptr_(other.ptr_) {} in NotificationSource() 27 uintptr_t map_key() const { return reinterpret_cast<uintptr_t>(ptr_); } in map_key() 30 return ptr_ != other.ptr_; 33 return ptr_ == other.ptr_; 37 explicit NotificationSource(const void* ptr) : ptr_(ptr) {} in NotificationSource() 41 const void* ptr_; variable 54 T* ptr() const { return static_cast<T*>(const_cast<void*>(ptr_)); } in ptr()
|
/external/chromium_org/third_party/android_crazy_linker/src/src/ |
D | crazy_linker_util.cpp | 29 Assign(other.ptr_, other.size_); in String() 43 if (ptr_ != const_cast<char*>(kEmpty)) { in ~String() 44 free(ptr_); in ~String() 45 ptr_ = const_cast<char*>(kEmpty); in ~String() 57 memcpy(ptr_, str, len); in Assign() 58 ptr_[len] = '\0'; in Assign() 67 memcpy(ptr_ + old_size, str, len); in Append() 81 memset(ptr_ + size_, '\0', new_size - size_); in Resize() 84 if (ptr_ != kEmpty) in Resize() 85 ptr_[size_] = '\0'; in Resize() [all …]
|
/external/ceres-solver/include/ceres/internal/ |
D | scoped_ptr.h | 70 explicit scoped_ptr(C* p = NULL) : ptr_(p) { } in ptr_() function 76 delete ptr_; in ~scoped_ptr() local 83 if (p != ptr_) { 85 delete ptr_; variable 86 ptr_ = p; 93 assert(ptr_ != NULL); 94 return *ptr_; 97 assert(ptr_ != NULL); 98 return ptr_; 100 C* get() const { return ptr_; } in get() [all …]
|
/external/chromium_org/crypto/ |
D | openssl_util.h | 19 ScopedOpenSSL() : ptr_(NULL) { } in ScopedOpenSSL() 20 explicit ScopedOpenSSL(T* ptr) : ptr_(ptr) { } in ScopedOpenSSL() 25 T* get() const { return ptr_; } in get() 27 T* ptr = ptr_; in release() 28 ptr_ = NULL; in release() 32 if (ptr != ptr_) { in reset() 33 if (ptr_) (*destructor)(ptr_); in reset() 34 ptr_ = ptr; in reset() 39 T* ptr_;
|
/external/chromium_org/third_party/tcmalloc/chromium/src/ |
D | raw_printer.cc | 43 ptr_(buf), in RawPrinter() 46 *ptr_ = '\0'; in RawPrinter() 51 if (limit_ > ptr_) { in Printf() 54 int avail = limit_ - ptr_; in Printf() 57 const int r = perftools_vsnprintf(ptr_, avail+1, format, ap); in Printf() 61 ptr_ = limit_; in Printf() 64 ptr_ = limit_; in Printf() 66 ptr_ += r; in Printf()
|
/external/chromium_org/third_party/tcmalloc/vendor/src/ |
D | raw_printer.cc | 43 ptr_(buf), in RawPrinter() 46 *ptr_ = '\0'; in RawPrinter() 51 if (limit_ > ptr_) { in Printf() 54 int avail = limit_ - ptr_; in Printf() 57 const int r = perftools_vsnprintf(ptr_, avail+1, format, ap); in Printf() 61 ptr_ = limit_; in Printf() 64 ptr_ = limit_; in Printf() 66 ptr_ += r; in Printf()
|