Searched refs:allocated_id (Results 1 – 2 of 2) sorted by relevance
/external/webrtc/pc/ |
D | data_channel_unittest.cc | 688 int allocated_id = -1; in TEST_F() local 689 EXPECT_TRUE(allocator_.AllocateSid(rtc::SSL_SERVER, &allocated_id)); in TEST_F() 690 EXPECT_EQ(odd_id + 2, allocated_id); in TEST_F() 692 EXPECT_TRUE(allocator_.AllocateSid(rtc::SSL_CLIENT, &allocated_id)); in TEST_F() 693 EXPECT_EQ(even_id + 2, allocated_id); in TEST_F() 695 EXPECT_TRUE(allocator_.AllocateSid(rtc::SSL_SERVER, &allocated_id)); in TEST_F() 696 EXPECT_EQ(odd_id + 4, allocated_id); in TEST_F() 698 EXPECT_TRUE(allocator_.AllocateSid(rtc::SSL_CLIENT, &allocated_id)); in TEST_F() 699 EXPECT_EQ(even_id + 4, allocated_id); in TEST_F() 705 EXPECT_TRUE(allocator_.AllocateSid(rtc::SSL_SERVER, &allocated_id)); in TEST_F() [all …]
|
/external/tensorflow/tensorflow/lite/delegates/gpu/common/memory_management/ |
D | greedy_by_size_assignment.cc | 90 for (const auto& allocated_id : ordered_allocs) { in GreedyBySizeAssignment() local 91 if (usage_records[allocated_id].last_task < rec->first_task || in GreedyBySizeAssignment() 92 usage_records[allocated_id].first_task > rec->last_task) { in GreedyBySizeAssignment() 97 size_t cur_offset = assignment->offsets[allocated_id]; in GreedyBySizeAssignment() 109 prev_offset, cur_offset + usage_records[allocated_id].tensor_size); in GreedyBySizeAssignment()
|