Home
last modified time | relevance | path

Searched refs:ref_ (Results 1 – 25 of 28) sorted by relevance

12

/external/tensorflow/tensorflow/core/lib/core/
Drefcount.h57 mutable std::atomic_int_fast32_t ref_;
88 inline RefCounted::RefCounted() : ref_(1) {} in RefCounted()
90 inline RefCounted::~RefCounted() { DCHECK_EQ(ref_.load(), 0); } in ~RefCounted()
93 DCHECK_GE(ref_.load(), 1); in Ref()
94 ref_.fetch_add(1, std::memory_order_relaxed); in Ref()
98 DCHECK_GT(ref_.load(), 0); in Unref()
101 if (RefCountIsOne() || ref_.fetch_sub(1) == 1) { in Unref()
103 DCHECK((ref_.store(0), true)); in Unref()
112 return (ref_.load(std::memory_order_acquire) == 1); in RefCountIsOne()
/external/libvpx/libvpx/test/
Dvariance_test.cc299 ref_ = new uint8_t[block_size() * unit]; in SetUp()
301 ASSERT_TRUE(ref_ != NULL); in SetUp()
306 ref_ = CONVERT_TO_BYTEPTR(ref_); in SetUp()
316 ref_ = reinterpret_cast<uint8_t *>(CONVERT_TO_SHORTPTR(ref_)); in TearDown()
321 delete[] ref_; in TearDown()
323 ref_ = NULL; in TearDown()
349 uint8_t *ref_; member in __anon1951444d0111::MainTestClass
375 memset(ref_, j, block_size()); in ZeroTest()
377 uint16_t *const ref16 = CONVERT_TO_SHORTPTR(ref_); in ZeroTest()
382 var = params_.func(src_, width(), ref_, width(), &sse)); in ZeroTest()
[all …]
/external/libaom/libaom/test/
Dvariance_test.cc419 ref_ = new uint8_t[block_size() * unit]; in SetUp()
421 ASSERT_TRUE(ref_ != NULL); in SetUp()
425 ref_ = CONVERT_TO_BYTEPTR(ref_); in SetUp()
433 ref_ = reinterpret_cast<uint8_t *>(CONVERT_TO_SHORTPTR(ref_)); in TearDown()
437 delete[] ref_; in TearDown()
439 ref_ = NULL; in TearDown()
465 uint8_t *ref_; member in __anondaf906eb0111::MainTestClass
491 memset(ref_, j, block_size()); in ZeroTest()
493 uint16_t *const ref16 = CONVERT_TO_SHORTPTR(ref_); in ZeroTest()
498 var = params_.func(src_, width(), ref_, width(), &sse)); in ZeroTest()
[all …]
Dcomp_mask_variance_test.cc75 uint8_t *ref_; member in AV1CompMaskVariance::AV1CompMaskVarianceTest
87 ref_ = ref_buffer_ + (8 * MAX_SB_SIZE); in SetUp()
113 aom_comp_mask_pred_c(comp_pred1_, pred_, w, h, ref_, MAX_SB_SIZE, mask, w, in RunCheckOutput()
115 test_impl(comp_pred2_, pred_, w, h, ref_, MAX_SB_SIZE, mask, w, inv); in RunCheckOutput()
139 func(comp_pred1_, pred_, w, h, ref_, MAX_SB_SIZE, mask, w, 0); in RunSpeedTest()
206 NULL, NULL, 0, 0, NULL, comp_pred1_, pred_, w, h, subx, suby, ref_, in RunCheckOutput()
211 w, h, subx, suby, ref_, MAX_SB_SIZE, mask, in RunCheckOutput()
242 w, h, subx, suby, ref_, MAX_SB_SIZE, mask, w, in RunSpeedTest()
320 uint16_t *ref_; member in AV1CompMaskVariance::AV1HighbdCompMaskVarianceTest
336 ref_ = ref_buffer_ + (8 * MAX_SB_SIZE); in SetUp()
[all …]
Dsum_squares_test.cc248 ref_ = reinterpret_cast<uint8_t *>(aom_memalign(32, 256 * 256 * 2)); in SetUp()
250 ASSERT_TRUE(ref_ != NULL); in SetUp()
256 aom_free(ref_); in TearDown()
262 uint16_t *pRef = (uint16_t *)ref_; in GenRandomData()
269 ref_[ii * stride + jj] = rnd_.Rand8(); in GenRandomData()
297 uint8_t *ref_; member in __anon6906355a0111::SSETest
316 GenExtremeData(width, height, stride, ref_, limit); in RunTest()
319 GenExtremeData(width, height, stride, ref_, 0); in RunTest()
324 uint8_t *pRef = ref_; in RunTest()
327 pRef = CONVERT_TO_BYTEPTR(ref_); in RunTest()
/external/grpc-grpc-java/services/src/generated/main/java/io/grpc/channelz/v1/
DServer.java60 if (ref_ != null) { in Server()
61 subBuilder = ref_.toBuilder(); in Server()
63 ref_ = input.readMessage(io.grpc.channelz.v1.ServerRef.parser(), extensionRegistry); in Server()
65 subBuilder.mergeFrom(ref_); in Server()
66 ref_ = subBuilder.buildPartial(); in Server()
122 private io.grpc.channelz.v1.ServerRef ref_; field in Server
131 return ref_ != null; in hasRef()
141 return ref_ == null ? io.grpc.channelz.v1.ServerRef.getDefaultInstance() : ref_; in getRef()
259 if (ref_ != null) { in writeTo()
276 if (ref_ != null) { in getSerializedSize()
[all …]
DSocket.java59 if (ref_ != null) { in Socket()
60 subBuilder = ref_.toBuilder(); in Socket()
62 ref_ = input.readMessage(io.grpc.channelz.v1.SocketRef.parser(), extensionRegistry); in Socket()
64 subBuilder.mergeFrom(ref_); in Socket()
65 ref_ = subBuilder.buildPartial(); in Socket()
153 private io.grpc.channelz.v1.SocketRef ref_; field in Socket
162 return ref_ != null; in hasRef()
172 return ref_ == null ? io.grpc.channelz.v1.SocketRef.getDefaultInstance() : ref_; in getRef()
376 if (ref_ != null) { in writeTo()
402 if (ref_ != null) { in getSerializedSize()
[all …]
DChannel.java61 if (ref_ != null) { in Channel()
62 subBuilder = ref_.toBuilder(); in Channel()
64 ref_ = input.readMessage(io.grpc.channelz.v1.ChannelRef.parser(), extensionRegistry); in Channel()
66 subBuilder.mergeFrom(ref_); in Channel()
67 ref_ = subBuilder.buildPartial(); in Channel()
147 private io.grpc.channelz.v1.ChannelRef ref_; field in Channel
156 return ref_ != null; in hasRef()
166 return ref_ == null ? io.grpc.channelz.v1.ChannelRef.getDefaultInstance() : ref_; in getRef()
414 if (ref_ != null) { in writeTo()
437 if (ref_ != null) { in getSerializedSize()
[all …]
DSubchannel.java62 if (ref_ != null) { in Subchannel()
63 subBuilder = ref_.toBuilder(); in Subchannel()
65 ref_ = input.readMessage(io.grpc.channelz.v1.SubchannelRef.parser(), extensionRegistry); in Subchannel()
67 subBuilder.mergeFrom(ref_); in Subchannel()
68 ref_ = subBuilder.buildPartial(); in Subchannel()
148 private io.grpc.channelz.v1.SubchannelRef ref_; field in Subchannel
157 return ref_ != null; in hasRef()
167 return ref_ == null ? io.grpc.channelz.v1.SubchannelRef.getDefaultInstance() : ref_; in getRef()
415 if (ref_ != null) { in writeTo()
438 if (ref_ != null) { in getSerializedSize()
[all …]
/external/tensorflow/tensorflow/core/framework/
Dtracking_allocator.cc25 ref_(1), in TrackingAllocator()
49 ++ref_; in AllocateRaw()
65 ++ref_; in AllocateRaw()
70 ++ref_; in AllocateRaw()
200 CHECK_GE(ref_, 1); in UnRef()
201 --ref_; in UnRef()
202 return (ref_ == 0); in UnRef()
Dtracking_allocator.h102 int ref_ GUARDED_BY(mu_);
/external/webrtc/webrtc/p2p/base/
Dtransportcontroller.h129 RefCountedChannel() : impl_(nullptr), ref_(0) {} in RefCountedChannel()
131 : impl_(impl), ref_(0) {} in RefCountedChannel()
133 void AddRef() { ++ref_; } in AddRef()
135 ASSERT(ref_ > 0); in DecRef()
136 --ref_; in DecRef()
138 int ref() const { return ref_; } in ref()
145 int ref_; member
/external/libchrome/base/
Dvalue_iterators.h42 reference* operator->() { return &ref_; }
45 reference ref_;
88 const reference* operator->() const { return &ref_; }
91 const reference ref_;
Dvalue_iterators.cc14 dict_iterator::pointer::pointer(const reference& ref) : ref_(ref) {} in pointer()
69 const_dict_iterator::pointer::pointer(const reference& ref) : ref_(ref) {} in pointer()
/external/libchrome/base/memory/
Dweak_ptr.h156 ref_ = internal::WeakReference(); in reset()
163 WeakReference ref_; variable
197 ptr.ref_, static_cast<Derived*>(reinterpret_cast<Base*>(ptr.ptr_))); in AsWeakPtrImpl()
243 return ref_.is_valid() ? reinterpret_cast<T*>(ptr_) : nullptr; in get()
Dweak_ptr.cc73 : ref_(ref), ptr_(ptr) { in WeakPtrBase()
/external/expat/xmlwf/
Dxmlwin32url.cxx73 ULONG ref_; member in Callback
82 return ref_++; in STDMETHODIMP_()
88 if (--ref_ == 0) { in STDMETHODIMP_()
92 return ref_; in STDMETHODIMP_()
260 ref_(0), in Callback()
/external/arm-neon-tests/
DMakefile.gcc62 REFLIST = $(addprefix ref_, $(REFNAMES))
65 REFLIST_INT = $(addprefix ref_, $(REFNAMES_INT))
DMakefile56 REFLIST = $(addprefix ref_, $(REFNAMES))
59 REFLIST_INT = $(addprefix ref_, $(REFNAMES_INT))
/external/google-breakpad/src/testing/include/gmock/
Dgmock-actions.h539 explicit ReturnRefAction(T& ref) : ref_(ref) {} // NOLINT in ReturnRefAction()
551 return Action<F>(new Impl<F>(ref_));
562 explicit Impl(T& ref) : ref_(ref) {} // NOLINT in Impl()
565 return ref_; in Perform()
569 T& ref_;
574 T& ref_; variable
/external/libchrome/base/metrics/
Dfield_trial.cc421 ref_(FieldTrialList::FieldTrialAllocator::kReferenceNull) { in FieldTrial()
1090 if (!field_trial->ref_) in GetParamsFromSharedMemory()
1095 field_trial->ref_); in GetParamsFromSharedMemory()
1098 global_->field_trial_allocator_->GetAllocSize(field_trial->ref_); in GetParamsFromSharedMemory()
1157 trial->ref_ = new_ref; in ClearParamsFromSharedMemoryForTesting()
1355 trial->ref_ = mem_iter.GetAsReference(entry); in CreateTrialsFromSharedMemory()
1428 if (field_trial->ref_) in AddToAllocatorWhileLocked()
1454 field_trial->ref_ = ref; in AddToAllocatorWhileLocked()
1466 FieldTrial::FieldTrialRef ref = field_trial->ref_; in ActivateFieldTrialEntryWhileLocked()
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googlemock/include/gmock/
Dgmock-actions.h657 explicit ReturnRefAction(T& ref) : ref_(ref) {} // NOLINT
669 return Action<F>(new Impl<F>(ref_));
680 explicit Impl(T& ref) : ref_(ref) {} // NOLINT
683 return ref_;
687 T& ref_;
692 T& ref_;
/external/googletest/googlemock/include/gmock/
Dgmock-actions.h636 explicit ReturnRefAction(T& ref) : ref_(ref) {} // NOLINT
648 return Action<F>(new Impl<F>(ref_));
659 explicit Impl(T& ref) : ref_(ref) {} // NOLINT
661 Result Perform(const ArgumentTuple&) override { return ref_; }
664 T& ref_;
669 T& ref_;
/external/deqp/external/vulkancts/modules/vulkan/texture/
DvktTextureShadowTests.cpp214 FilterCase (int tex_, const float ref_, const tcu::Vec2& minCoord_, const tcu::Vec2& maxCoord_) in FilterCase()
218 , ref (ref_) in FilterCase()
418 …FilterCase (const int tex_, const float ref_, const tcu::Vec2& bottomLeft_, const tcu::Vec2& topRi… in FilterCase()
422 , ref (ref_) in FilterCase()
635 FilterCase (const int tex_, float ref_, const tcu::Vec3& minCoord_, const tcu::Vec3& maxCoord_) in FilterCase()
639 , ref (ref_) in FilterCase()
/external/deqp/modules/gles3/functional/
Des3fTextureShadowTests.cpp190 …FilterCase (const glu::Texture2D* tex_, const float ref_, const tcu::Vec2& minCoord_, const tcu::V… in FilterCase()
194 , ref (ref_) in FilterCase()
441 …FilterCase (const glu::TextureCube* tex_, const float ref_, const tcu::Vec2& bottomLeft_, const tc… in FilterCase()
445 , ref (ref_) in FilterCase()
734 …FilterCase (const glu::Texture2DArray* tex_, float ref_, const tcu::Vec3& minCoord_, const tcu::Ve… in FilterCase()
738 , ref (ref_) in FilterCase()

12