/external/webrtc/webrtc/call/ |
D | bitrate_allocator_unittest.cc | 39 BitrateAllocatorTest() : allocator_(new BitrateAllocator()) { in BitrateAllocatorTest() 40 allocator_->OnNetworkChanged(300000u, 0, 0); in BitrateAllocatorTest() 44 rtc::scoped_ptr<BitrateAllocator> allocator_; member in webrtc::BitrateAllocatorTest 50 allocator_->AddBitrateObserver(&bitrate_observer, 100000, 1500000); in TEST_F() 52 allocator_->OnNetworkChanged(200000, 0, 0); in TEST_F() 57 allocator_->OnNetworkChanged(4000000, 0, 0); in TEST_F() 60 allocator_->AddBitrateObserver(&bitrate_observer, 100000, 4000000); in TEST_F() 64 allocator_->AddBitrateObserver(&bitrate_observer, 100000, 1500000); in TEST_F() 67 allocator_->OnNetworkChanged(1500000, 0, 0); in TEST_F() 75 allocator_->AddBitrateObserver(&bitrate_observer_1, 100000, 300000); in TEST_F() [all …]
|
/external/libchrome/base/metrics/ |
D | persistent_memory_allocator_unittest.cc | 78 allocator_.reset(); in SetUp() 80 allocator_.reset(new PersistentMemoryAllocator( in SetUp() 86 allocator_.reset(); in TearDown() 90 PersistentMemoryAllocator::Iterator iter(allocator_.get()); in CountIterables() 105 std::unique_ptr<PersistentMemoryAllocator> allocator_; member in base::PersistentMemoryAllocatorTest 109 allocator_->CreateTrackingHistograms(allocator_->Name()); in TEST_F() 112 EXPECT_EQ(TEST_ID, allocator_->Id()); in TEST_F() 113 EXPECT_TRUE(allocator_->used_histogram_); in TEST_F() 115 allocator_->used_histogram_->histogram_name()); in TEST_F() 117 allocator_->GetMemoryState()); in TEST_F() [all …]
|
D | persistent_histogram_allocator_unittest.cc | 40 allocator_ = GlobalHistogramAllocator::Get()->memory_allocator(); in CreatePersistentHistogramAllocator() 44 allocator_ = nullptr; in DestroyPersistentHistogramAllocator() 50 PersistentMemoryAllocator* allocator_ = nullptr; member in base::PersistentHistogramAllocatorTest 58 allocator_->GetMemoryInfo(&meminfo0); in TEST_F() 66 allocator_->GetMemoryInfo(&meminfo1); in TEST_F() 74 allocator_->GetMemoryInfo(&meminfo2); in TEST_F() 82 allocator_->GetMemoryInfo(&meminfo3); in TEST_F() 93 allocator_->GetMemoryInfo(&meminfo4); in TEST_F() 96 PersistentMemoryAllocator::Iterator iter(allocator_); in TEST_F() 358 PersistentMemoryAllocator::Iterator iter(allocator_); in TEST_F() [all …]
|
D | persistent_memory_allocator.cc | 154 : allocator_(allocator), last_record_(kReferenceQueue), record_count_(0) {} in Iterator() 159 : allocator_(allocator), last_record_(0), record_count_(0) { in Iterator() 180 allocator_->GetBlock(starting_after, 0, 0, false, false); in Reset() 215 allocator_->GetBlock(last, 0, 0, true, false); in GetNext() 233 block = allocator_->GetBlock(next, 0, 0, false, false); in GetNext() 235 allocator_->SetCorrupt(); in GetNext() 258 allocator_->shared_meta()->freeptr.load(std::memory_order_relaxed), in GetNext() 259 allocator_->mem_size_); in GetNext() 263 allocator_->SetCorrupt(); in GetNext() 1151 : allocator_(allocator), in DelayedPersistentAllocation() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | owning_device_memory.h | 44 OwningDeviceMemory() : device_ordinal_(-1), allocator_(nullptr) {} in OwningDeviceMemory() 48 : mem_(mem), device_ordinal_(device_ordinal), allocator_(allocator) { in OwningDeviceMemory() 55 allocator_(other.allocator_) { in OwningDeviceMemory() 57 other.allocator_ = nullptr; in OwningDeviceMemory() 61 if (allocator_ != nullptr) { 66 allocator_ = other.allocator_; 69 other.allocator_ = nullptr; 75 if (allocator_ != nullptr) { 82 if (allocator_ != nullptr) { in ~OwningDeviceMemory() 88 DeviceMemoryAllocator* allocator() const { return allocator_; } in allocator() [all …]
|
D | shaped_buffer.cc | 112 allocator_(allocator) {} in ScopedShapedBuffer() 116 : ShapedBuffer(std::move(shaped_buffer)), allocator_(allocator) {} in ScopedShapedBuffer() 119 : ShapedBuffer(static_cast<ShapedBuffer&&>(s)), allocator_(s.allocator_) { in ScopedShapedBuffer() 121 s.allocator_ = nullptr; in ScopedShapedBuffer() 128 allocator_ = s.allocator_; in operator =() 130 s.allocator_ = nullptr; in operator =() 144 if (allocator_ == nullptr) { in Deallocate() 155 TF_CHECK_OK(allocator_->Deallocate(device_ordinal(), memory_base)); in Deallocate()
|
D | owning_device_memory.cc | 23 CHECK(allocator_ != nullptr) in Free() 26 auto status = allocator_->Deallocate(device_ordinal_, mem_); in Free() 31 allocator_ = nullptr; in Free()
|
/external/tensorflow/tensorflow/core/framework/ |
D | tracking_allocator.cc | 24 : allocator_(allocator), in TrackingAllocator() 29 track_sizes_locally_(track_sizes && !allocator_->TracksAllocationSizes()), in TrackingAllocator() 35 void* ptr = allocator_->AllocateRaw(alignment, num_bytes, allocation_attr); in AllocateRaw() 41 if (allocator_->TracksAllocationSizes()) { in AllocateRaw() 42 size_t allocated_bytes = allocator_->AllocatedSize(ptr); in AllocateRaw() 55 size_t allocated_bytes = allocator_->AllocatedSizeSlow(ptr); in AllocateRaw() 83 bool tracks_allocation_sizes = allocator_->TracksAllocationSizes(); in DeallocateRaw() 86 allocated_bytes = allocator_->AllocatedSize(ptr); in DeallocateRaw() 96 Allocator* allocator = allocator_; in DeallocateRaw() 113 return track_sizes_locally_ || allocator_->TracksAllocationSizes(); in TracksAllocationSizes() [all …]
|
/external/google-breakpad/src/common/ |
D | memory_unittest.cc | 70 PageAllocator allocator_; in TEST() local 71 wasteful_vector<int> v(&allocator_); in TEST() 77 PageAllocator allocator_; in TEST() local 78 wasteful_vector<unsigned> v(&allocator_); in TEST() 92 PageAllocator allocator_; in TEST() local 93 wasteful_vector<unsigned> v(&allocator_); in TEST() 96 ASSERT_TRUE(allocator_.OwnsPointer(&v[0])); in TEST()
|
D | memory.h | 168 explicit PageStdAllocator(PageAllocator& allocator): allocator_(allocator) {} in PageStdAllocator() 170 : allocator_(other.allocator_) {} in PageStdAllocator() 173 return static_cast<pointer>(allocator_.Alloc(sizeof(T) * n)); 190 PageAllocator& allocator_; member
|
/external/webrtc/talk/app/webrtc/ |
D | datachannel_unittest.cc | 513 SctpSidAllocator allocator_; member in SctpSidAllocatorTest 520 EXPECT_TRUE(allocator_.AllocateSid(rtc::SSL_SERVER, &id)); in TEST_F() 522 EXPECT_TRUE(allocator_.AllocateSid(rtc::SSL_CLIENT, &id)); in TEST_F() 524 EXPECT_TRUE(allocator_.AllocateSid(rtc::SSL_SERVER, &id)); in TEST_F() 526 EXPECT_TRUE(allocator_.AllocateSid(rtc::SSL_CLIENT, &id)); in TEST_F() 533 EXPECT_TRUE(allocator_.ReserveSid(old_id)); in TEST_F() 536 EXPECT_TRUE(allocator_.AllocateSid(rtc::SSL_SERVER, &new_id)); in TEST_F() 540 EXPECT_TRUE(allocator_.ReserveSid(old_id)); in TEST_F() 541 EXPECT_TRUE(allocator_.AllocateSid(rtc::SSL_CLIENT, &new_id)); in TEST_F() 549 EXPECT_TRUE(allocator_.ReserveSid(odd_id)); in TEST_F() [all …]
|
/external/webrtc/webrtc/p2p/client/ |
D | portallocator_unittest.cc | 105 allocator_.reset(new cricket::BasicPortAllocator( in PortAllocatorTest() 109 allocator_->set_step_delay(cricket::kMinimumStepDelay); in PortAllocatorTest() 139 return allocator_->SetPortRange(min_port, max_port); in SetPortRange() 143 allocator_.reset(new cricket::BasicPortAllocator(&network_manager_)); in ResetWithNoServersOrNat() 144 allocator_->set_step_delay(cricket::kMinimumStepDelay); in ResetWithNoServersOrNat() 175 allocator_->AddTurnServer(turn_server); in AddTurnServers() 206 allocator_->CreateSession( in CreateSession() 324 return *allocator_; in allocator() 341 for (size_t i = 0; i < allocator_->turn_servers().size(); ++i) { in HasRelayAddress() 342 cricket::RelayServerConfig server_config = allocator_->turn_servers()[i]; in HasRelayAddress() [all …]
|
D | basicportallocator.cc | 150 allocator_(allocator), network_thread_(NULL), in BasicPortAllocatorSession() 156 allocator_->network_manager()->SignalNetworksChanged.connect( in BasicPortAllocatorSession() 158 allocator_->network_manager()->StartUpdating(); in BasicPortAllocatorSession() 162 allocator_->network_manager()->StopUpdating(); in ~BasicPortAllocatorSession() 246 PortConfiguration* config = new PortConfiguration(allocator_->stun_servers(), in GetPortConfigurations() 250 for (const RelayServerConfig& turn_server : allocator_->turn_servers()) { in GetPortConfigurations() 315 rtc::NetworkManager* network_manager = allocator_->network_manager(); in GetNetworks() 334 return allocator_->network_ignore_mask() & in GetNetworks() 442 if (allocator_->proxy().type != rtc::PROXY_NONE) in AddAllocatedPort() 443 port->set_proxy(allocator_->user_agent(), allocator_->proxy()); in AddAllocatedPort() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
D | buffer_comparator_test.cc | 32 allocator_(stream_exec_->platform(), {stream_exec_}), in BufferComparatorTest() 45 allocator_ in CompareEqualFloatBuffers() 50 allocator_ in CompareEqualFloatBuffers() 64 return F16BufferComparator::Create(lhs_buffer, compiler_, &allocator_, in CompareEqualFloatBuffers() 73 StreamExecutorMemoryAllocator allocator_; member in xla::gpu::__anon7e51ca1b0111::BufferComparatorTest
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | threadpool_device.cc | 50 allocator_(allocator), in ThreadPoolDevice() 77 return allocator_; in GetAllocator() 88 return allocator_; in GetScopedAllocator() 96 if (parsed.FromProto(allocator_, tensor_proto)) { in MakeTensorFromProto()
|
D | local_device.cc | 63 explicit EigenAllocator(tensorflow::Allocator* a) : allocator_(a) {} in EigenAllocator() 65 return allocator_->AllocateRaw(64, num_bytes); in allocate() 68 allocator_->DeallocateRaw(buffer); in deallocate() 70 tensorflow::Allocator* allocator_; member in tensorflow::LocalDevice::EigenThreadPoolInfo::EigenAllocator
|
D | pool_allocator.cc | 43 allocator_(allocator), in PoolAllocator() 130 void* ptr = allocator_->Alloc(kPoolAlignment, num_bytes); in AllocateRaw() 140 allocator_->Free(cp, cp->num_bytes); in DeallocateRaw() 160 allocator_->Free(pr->ptr, pr->num_bytes); in Clear() 214 allocator_->Free(prec->ptr, prec->num_bytes); in EvictOne()
|
/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | local_client_allocation_test.cc | 50 int64 allocation_count_before = allocator_->allocation_count(); in XLA_TEST_F() 65 EXPECT_GT(allocator_->allocation_count(), allocation_count_before); in XLA_TEST_F() 68 int64 deallocation_count_before = allocator_->deallocation_count(); in XLA_TEST_F() 70 EXPECT_EQ(deallocation_count_before + 1, allocator_->deallocation_count()); in XLA_TEST_F()
|
/external/v8/src/zone/ |
D | zone.cc | 36 allocator_(allocator), in Zone() 41 allocator_->ZoneCreation(this); in Zone() 45 allocator_->ZoneDestruction(this); in ~Zone() 91 allocator_->ReturnSegment(current); in DeleteAll() 103 Segment* result = allocator_->GetSegment(requested_size); in NewSegment()
|
/external/tensorflow/tensorflow/core/distributed_runtime/ |
D | tensor_coding.cc | 32 allocator_ = nullptr; in Clear() 50 allocator_ = device_->GetAllocator(alloc_attrs_); in InitAlloc() 57 if (!tensor_.FromProto(allocator_, meta_.tensor())) { in InitFrom() 78 Tensor t(allocator_, meta_.tensor().dtype(), shape, allocation_attr); in InitPartial() 159 Tensor t(allocator_, tensor_meta->dtype(), shape); in ParseTensorSubmessage() 199 Tensor t(allocator_, tensor_meta->dtype(), shape); in ParseTensorSubmessage() 280 if (!parsed.FromProto(allocator_, meta_.tensor())) { in ParseSlow()
|
/external/libchrome/base/debug/ |
D | activity_tracker.cc | 177 : allocator_(allocator), in ActivityTrackerMemoryAllocator() 201 if (allocator_->ChangeType(cached, object_type_, object_free_type_, false)) in GetObjectReference() 219 if (allocator_->ChangeType(found, object_type_, object_free_type_, false)) in GetObjectReference() 233 Reference allocated = allocator_->Allocate(object_size_, object_type_); in GetObjectReference() 235 allocator_->MakeIterable(allocated); in GetObjectReference() 241 bool success = allocator_->ChangeType(ref, object_free_type_, object_type_, in ReleaseObjectReference() 1395 allocator_->GetAsObject<ThreadActivityTracker::Header>(mem_reference); in CreateTrackerForCurrentThread() 1398 DCHECK_LE(stack_memory_size_, allocator_->GetAllocSize(mem_reference)); in CreateTrackerForCurrentThread() 1521 PersistentMemoryAllocator::Iterator iter(allocator_.get()); in CleanupAfterProcess() 1534 const void* memory = allocator_->GetAsArray<char>( in CleanupAfterProcess() [all …]
|
/external/gemmlowp/internal/ |
D | pack.h | 53 : allocator_(allocator), pos_(0) { in PackedSideBlock() 56 allocator_->Reserve<std::uint8_t>(params_.l2_width * params_.l2_depth); in PackedSideBlock() 58 allocator_->Reserve<std::int32_t>(params_.l2_width); in PackedSideBlock() 76 return allocator_->GetPointer<std::uint8_t>(data_handle_) + pos_; in current_data() 80 return allocator_->GetPointer<std::uint8_t>(data_handle_) + pos_; in current_data() 84 return allocator_->GetPointer<std::int32_t>(sums_of_each_slice_handle_); in sums_of_each_slice() 88 return allocator_->GetPointer<const std::int32_t>( in sums_of_each_slice() 103 Allocator* const allocator_; variable
|
/external/tensorflow/tensorflow/compiler/xrt/ |
D | xrt_state.cc | 138 allocator_(allocator) { in XRTBufferAllocation() 152 Status s = allocator_->Deallocate(device_ordinal_, allocation_); in ~XRTBufferAllocation() 172 allocator_(allocator), in XRTTupleAllocation() 306 new XRTTupleAllocation(parent->device_ordinal(), parent->allocator_, in MakeSubBuffer() 332 parent->allocator_); in MakeSubBuffer() 359 allocator != element.allocation->allocator_) { in ExpandTreeOfTuples() 457 element.allocation->allocator_); in MakeTuple() 511 allocator_->platform(), device_ordinal_); in ToShapedBuffer() 549 buffer.second->allocation(), device_ordinal_, allocator_); in ToDeviceMemoryTree()
|
/external/tensorflow/tensorflow/compiler/tf2tensorrt/utils/ |
D | trt_allocator.cc | 83 void* mem = allocator_->AllocateRaw(alignment, total_size); in allocate() 98 : allocator_(allocator) { in TRTDeviceAllocator() 111 allocator_->DeallocateRaw(memory); in free()
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
D | linux_dumper.cc | 80 threads_(&allocator_, 8), in LinuxDumper() 81 mappings_(&allocator_), in LinuxDumper() 82 auxv_(&allocator_, AT_MAX + 1) { in LinuxDumper() 111 linux_gate = allocator_.Alloc(mapping.size); in ElfFileIdentifierForMapping() 305 LineReader* const line_reader = new(allocator_) LineReader(fd); in EnumerateMappings() 357 MappingInfo* const module = new(allocator_) MappingInfo; in EnumerateMappings()
|