Home
last modified time | relevance | path

Searched refs:table_ (Results 1 – 25 of 89) sorted by relevance

1234

/external/googletest/googletest/samples/
Dsample6_unittest.cc62 PrimeTableTest() : table_(CreatePrimeTable<T>()) {} in PrimeTableTest()
64 ~PrimeTableTest() override { delete table_; } in ~PrimeTableTest()
73 PrimeTable* const table_; member in __anon7a7d0ec10111::PrimeTableTest
107 EXPECT_FALSE(this->table_->IsPrime(-5)); in TYPED_TEST()
108 EXPECT_FALSE(this->table_->IsPrime(0)); in TYPED_TEST()
109 EXPECT_FALSE(this->table_->IsPrime(1)); in TYPED_TEST()
110 EXPECT_FALSE(this->table_->IsPrime(4)); in TYPED_TEST()
111 EXPECT_FALSE(this->table_->IsPrime(6)); in TYPED_TEST()
112 EXPECT_FALSE(this->table_->IsPrime(100)); in TYPED_TEST()
116 EXPECT_TRUE(this->table_->IsPrime(2)); in TYPED_TEST()
[all …]
Dsample7_unittest.cc68 ~PrimeTableTestSmpl7() override { delete table_; } in ~PrimeTableTestSmpl7()
69 void SetUp() override { table_ = (*GetParam())(); } in SetUp()
71 delete table_; in TearDown()
72 table_ = nullptr; in TearDown()
76 PrimeTable* table_; member in __anonc9dc18420111::PrimeTableTestSmpl7
80 EXPECT_FALSE(table_->IsPrime(-5)); in TEST_P()
81 EXPECT_FALSE(table_->IsPrime(0)); in TEST_P()
82 EXPECT_FALSE(table_->IsPrime(1)); in TEST_P()
83 EXPECT_FALSE(table_->IsPrime(4)); in TEST_P()
84 EXPECT_FALSE(table_->IsPrime(6)); in TEST_P()
[all …]
Dsample8_unittest.cc98 table_ = new HybridPrimeTable(force_on_the_fly, max_precalculated); in SetUp()
101 delete table_; in TearDown()
102 table_ = nullptr; in TearDown()
104 HybridPrimeTable* table_; member in __anon193b21c30111::PrimeTableTest
114 EXPECT_FALSE(table_->IsPrime(-5)); in TEST_P()
115 EXPECT_FALSE(table_->IsPrime(0)); in TEST_P()
116 EXPECT_FALSE(table_->IsPrime(1)); in TEST_P()
117 EXPECT_FALSE(table_->IsPrime(4)); in TEST_P()
118 EXPECT_FALSE(table_->IsPrime(6)); in TEST_P()
119 EXPECT_FALSE(table_->IsPrime(100)); in TEST_P()
[all …]
/external/google-breakpad/src/testing/gtest/samples/
Dsample6_unittest.cc63 PrimeTableTest() : table_(CreatePrimeTable<T>()) {} in PrimeTableTest()
65 virtual ~PrimeTableTest() { delete table_; } in ~PrimeTableTest()
74 PrimeTable* const table_; member in PrimeTableTest
108 EXPECT_FALSE(this->table_->IsPrime(-5)); in TYPED_TEST()
109 EXPECT_FALSE(this->table_->IsPrime(0)); in TYPED_TEST()
110 EXPECT_FALSE(this->table_->IsPrime(1)); in TYPED_TEST()
111 EXPECT_FALSE(this->table_->IsPrime(4)); in TYPED_TEST()
112 EXPECT_FALSE(this->table_->IsPrime(6)); in TYPED_TEST()
113 EXPECT_FALSE(this->table_->IsPrime(100)); in TYPED_TEST()
117 EXPECT_TRUE(this->table_->IsPrime(2)); in TYPED_TEST()
[all …]
Dsample7_unittest.cc70 virtual ~PrimeTableTest() { delete table_; } in ~PrimeTableTest()
71 virtual void SetUp() { table_ = (*GetParam())(); } in SetUp()
73 delete table_; in TearDown()
74 table_ = NULL; in TearDown()
78 PrimeTable* table_; member in PrimeTableTest
82 EXPECT_FALSE(table_->IsPrime(-5)); in TEST_P()
83 EXPECT_FALSE(table_->IsPrime(0)); in TEST_P()
84 EXPECT_FALSE(table_->IsPrime(1)); in TEST_P()
85 EXPECT_FALSE(table_->IsPrime(4)); in TEST_P()
86 EXPECT_FALSE(table_->IsPrime(6)); in TEST_P()
[all …]
Dsample8_unittest.cc106 table_ = new HybridPrimeTable(force_on_the_fly, max_precalculated); in SetUp()
109 delete table_; in TearDown()
110 table_ = NULL; in TearDown()
112 HybridPrimeTable* table_; member in PrimeTableTest
122 EXPECT_FALSE(table_->IsPrime(-5)); in TEST_P()
123 EXPECT_FALSE(table_->IsPrime(0)); in TEST_P()
124 EXPECT_FALSE(table_->IsPrime(1)); in TEST_P()
125 EXPECT_FALSE(table_->IsPrime(4)); in TEST_P()
126 EXPECT_FALSE(table_->IsPrime(6)); in TEST_P()
127 EXPECT_FALSE(table_->IsPrime(100)); in TEST_P()
[all …]
/external/perfetto/src/trace_processor/
Dwindow_operator_table.cc96 : Table::Cursor(table), table_(table) {} in Cursor()
100 *this = Cursor(table_); in Filter()
101 window_start_ = table_->window_start_; in Filter()
102 window_end_ = table_->window_start_ + table_->window_dur_; in Filter()
103 step_size_ = table_->quantum_ == 0 ? table_->window_dur_ : table_->quantum_; in Filter()
125 static_cast<sqlite_int64>(table_->quantum_)); in Column()
130 static_cast<sqlite_int64>(table_->window_start_)); in Column()
134 sqlite3_result_int(context, static_cast<int>(table_->window_dur_)); in Column()
/external/tensorflow/tensorflow/core/kernels/
Dlookup_table_op.h180 return table_ ? table_->size() : 0; in size()
188 const int64 size = table_->size(); in ExportValues()
200 for (auto it = table_->begin(); it != table_->end(); ++it, ++i) { in ExportValues()
216 if (!table_) { in DoPrepare()
217 table_ = std::unique_ptr<std::unordered_map<K, V>>( in DoPrepare()
229 if (!table_) { in DoInsert()
238 const V& previous_value = gtl::LookupOrInsert(table_.get(), key, value); in DoInsert()
256 *table_, SubtleMustCopyIfIntegral(key_values(i)), default_val); in DoFind()
262 if (table_) { in MemoryUsed()
263 const int64 num_elements = table_->size(); in MemoryUsed()
[all …]
Dlookup_table_op.cc54 return table_.size(); in size()
66 table_, SubtleMustCopyIfIntegral(key_values(i)), default_val); in Find()
78 table_.clear(); in DoInsert()
81 gtl::InsertOrUpdate(&table_, SubtleMustCopyIfIntegral(key_values(i)), in DoInsert()
97 table_.erase(SubtleMustCopyIfIntegral(key_values(i))); in Remove()
109 int64 size = table_.size(); in ExportValues()
121 for (auto it = table_.begin(); it != table_.end(); ++it, ++i) { in ExportValues()
139 for (unsigned i = 0; i < table_.bucket_count(); ++i) { in MemoryUsed()
140 size_t bucket_size = table_.bucket_size(i); in MemoryUsed()
152 std::unordered_map<K, V> table_ GUARDED_BY(mu_);
[all …]
/external/tensorflow/tensorflow/core/common_runtime/
Dtest_collective_executor_mgr.h57 for (auto& iter : table_) { in ~TestCollectiveExecutorMgr()
65 auto iter = table_.find(step_id); in FindOrCreate()
66 if (iter != table_.end()) { in FindOrCreate()
70 table_[step_id] = ce; in FindOrCreate()
78 auto iter = table_.find(step_id); in Cleanup()
79 if (iter != table_.end()) { in Cleanup()
81 table_.erase(iter); in Cleanup()
113 gtl::FlatMap<int64, CollectiveExecutor*> table_ GUARDED_BY(mu_);
Dgraph_runner.cc60 if (table_.count(edge_name) > 0) { in Send()
63 table_[edge_name] = val; in Send()
74 if (table_.count(key) <= 0) { in RecvAsync()
77 tensor = table_[key]; in RecvAsync()
89 Table table_ GUARDED_BY(mu_);
/external/tensorflow/tensorflow/core/kernels/lookup_tables/
Dflat_hash_map_op_kernels.cc70 table_.reserve(table_.size() + keys.size()); in Initialize()
72 table_.insert_or_assign(string(keys[i]), values[i]); in Initialize()
85 table_.reserve(table_.size() + keys.size()); in Initialize()
87 table_.insert_or_assign(keys[i], values[i]); in Initialize()
114 table_.prefetch(keys[i + prefetch_lookahead]); in Lookup()
133 table_.prefetch(keys[i + prefetch_lookahead]); in Lookup()
141 uint64 Size() const override { return table_.size(); } in Size()
151 auto it = table_.find(key_to_find); in LookupHelper()
152 if (it != table_.end()) { in LookupHelper()
164 absl::flat_hash_map<string, ValueType> table_; member in tensorflow::tables::StaticStringFlatHashMap
/external/protobuf/src/google/protobuf/
Dmap.h718 table_(NULL), in InnerMap()
721 table_ = CreateEmptyTable(n); in InnerMap()
726 if (table_ != NULL) { in ~InnerMap()
728 Dealloc<void*>(table_, num_buckets_); in ~InnerMap()
807 m_->table_[m_->index_of_first_non_null_] != NULL); in SearchFrom()
812 node_ = static_cast<Node*>(m_->table_[bucket_index_]); in SearchFrom()
815 Tree* tree = static_cast<Tree*>(m_->table_[bucket_index_]); in SearchFrom()
841 Tree* tree = static_cast<Tree*>(m_->table_[bucket_index_]);
868 if (m_->table_[bucket_index_] == static_cast<void*>(node_)) in revalidate_if_necessary()
873 Node* l = static_cast<Node*>(m_->table_[bucket_index_]); in revalidate_if_necessary()
[all …]
/external/sfntly/cpp/src/sfntly/table/
Dtable_based_table_builder.cc40 table_ = NULL; in SubDataSet()
63 if (!table_) { in GetTable()
66 table_.Attach(down_cast<Table*>(SubBuildTable(data))); in GetTable()
68 return table_; in GetTable()
/external/tensorflow/tensorflow/contrib/bigtable/kernels/
Dbigtable_sample_keys_dataset_op.cc39 : DatasetBase(DatasetContext(ctx)), table_(table) { in Dataset()
40 table_->Ref(); in Dataset()
43 ~Dataset() override { table_->Unref(); } in ~Dataset()
66 BigtableTableResource* table() const { return table_; } in table()
115 BigtableTableResource* const table_; member in tensorflow::data::__anon1f04cb770111::BigtableSampleKeysDatasetOp::Dataset
Dbigtable_prefix_key_dataset_op.cc45 table_(table), in Dataset()
47 table_->Ref(); in Dataset()
50 ~Dataset() override { table_->Unref(); } in ~Dataset()
73 BigtableTableResource* table() const { return table_; } in table()
107 BigtableTableResource* const table_; member in tensorflow::data::__anonda069bf00111::BigtablePrefixKeyDatasetOp::Dataset
Dbigtable_range_key_dataset_op.cc49 table_(table), in Dataset()
52 table_->Ref(); in Dataset()
55 ~Dataset() override { table_->Unref(); } in ~Dataset()
78 BigtableTableResource* table() const { return table_; } in table()
113 BigtableTableResource* const table_; member in tensorflow::data::__anon5ac2f30f0111::BigtableRangeKeyDatasetOp::Dataset
Dbigtable_sample_key_pairs_dataset_op.cc62 table_(table), in Dataset()
65 table_->Ref(); in Dataset()
68 ~Dataset() override { table_->Unref(); } in ~Dataset()
111 BigtableTableResource& table() const { return *table_; } in table()
200 BigtableTableResource* const table_; member in tensorflow::data::__anon197895220111::BigtableSampleKeyPairsDatasetOp::Dataset
/external/v8/src/compiler/
Dcompiler-source-position-table.cc31 table_(graph->zone()) {} in SourcePositionTable()
46 return table_.Get(node); in GetSourcePosition()
51 table_.Set(node, position); in SetSourcePosition()
57 for (auto i : table_) { in PrintJson()
Dnode-origin-table.cc46 table_(graph->zone()) {} in NodeOriginTable()
61 return table_.Get(node); in GetNodeOrigin()
65 table_.Set(node, no); in SetNodeOrigin()
71 for (auto i : table_) { in PrintJson()
/external/perfetto/src/traced/probes/ftrace/
Dproto_translation_table_unittest.cc58 table_ = ProtoTranslationTable::Create(&ftrace_procfs, GetStaticEventInfo(), in SetUp()
60 PERFETTO_CHECK(table_); in SetUp()
63 std::unique_ptr<ProtoTranslationTable> table_; member in perfetto::__anon2dc93b250111::AllTranslationTableTest
73 EXPECT_TRUE(table_); in TEST_P()
74 EXPECT_TRUE(table_->GetEvent(GroupAndName("ftrace", "print"))); in TEST_P()
75 EXPECT_TRUE(table_->GetEvent(GroupAndName("sched", "sched_switch"))); in TEST_P()
76 EXPECT_TRUE(table_->GetEvent(GroupAndName("sched", "sched_wakeup"))); in TEST_P()
77 EXPECT_TRUE(table_->GetEvent(GroupAndName("ext4", "ext4_da_write_begin"))); in TEST_P()
78 for (const Event& event : table_->events()) { in TEST_P()
90 ASSERT_EQ(table_->common_fields().size(), 1u); in TEST_P()
[all …]
Dftrace_config_muxer_unittest.cc167 std::unique_ptr<ProtoTranslationTable> table_ = CreateFakeTable(); member in perfetto::__anon935c1af60111::FtraceConfigMuxerTest
363 FtraceConfigMuxer model(&ftrace, table_.get()); in TEST_F()
402 FtraceConfigMuxer model(&ftrace, table_.get()); in TEST_F()
418 FtraceConfigMuxer model(&ftrace, table_.get()); in TEST_F()
449 FtraceConfigMuxer model(&ftrace, table_.get()); in TEST_F()
477 FtraceConfigMuxer model(&ftrace, table_.get()); in TEST_F()
503 FtraceConfigMuxer model(&ftrace, table_.get()); in TEST_F()
507 model.GetFtraceEventsForTesting(config, table_.get()); in TEST_F()
515 FtraceConfigMuxer model(&ftrace, table_.get()); in TEST_F()
520 model.GetFtraceEventsForTesting(config, table_.get()); in TEST_F()
[all …]
/external/tensorflow/tensorflow/core/distributed_runtime/
Dbase_rendezvous_mgr.cc47 for (auto& p : table_) { in ~BaseRendezvousMgr()
59 auto iter = table_.find(step_id); in FindOrCreate()
60 if (iter == table_.end()) { in FindOrCreate()
62 iter = table_.insert({step_id, rr}).first; in FindOrCreate()
108 auto iter = table_.find(step_id); in Cleanup()
109 if (iter != table_.end()) { in Cleanup()
111 table_.erase(iter); in Cleanup()
123 for (const auto& entry : table_) { in CleanupAll()
126 table_.clear(); in CleanupAll()
Dgraph_mgr.cc57 : worker_env_(worker_env), device_mgr_(device_mgr), table_(5) { in GraphMgr()
68 for (auto p : table_) p.second->Unref(); in ~GraphMgr()
301 CHECK(table_.insert({*handle, item}).second); in Register()
311 auto iter = table_.find(handle); in Deregister()
312 if (iter == table_.end()) { in Deregister()
317 table_.erase(iter); in Deregister()
328 for (const auto& entry : table_) { in DeregisterAll()
331 table_.clear(); in DeregisterAll()
402 auto iter = table_.find(handle); in ExecuteAsync()
403 if (iter != table_.end()) { in ExecuteAsync()
/external/perf_data_converter/src/quipper/
Ddso_test_utils.cc33 ElfStringTable() : table_("", 1) {} // index 0 is the empty string. in ElfStringTable()
36 GElf_Word ret = table_.size(); in Add()
37 table_.append(value.data(), value.size() + 1); // Include the '\0'. in Add()
41 const string &table() { return table_; } in table()
44 string table_; member in quipper::testing::__anon7404dfdb0111::ElfStringTable

1234