/external/googletest/googletest/samples/ |
D | sample6_unittest.cc | 62 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 …]
|
D | sample7_unittest.cc | 68 ~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 …]
|
D | sample8_unittest.cc | 98 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/ |
D | sample6_unittest.cc | 63 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 …]
|
D | sample7_unittest.cc | 70 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 …]
|
D | sample8_unittest.cc | 106 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/ |
D | window_operator_table.cc | 96 : 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/ |
D | lookup_table_op.h | 180 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 …]
|
D | lookup_table_op.cc | 54 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/ |
D | test_collective_executor_mgr.h | 57 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_);
|
D | graph_runner.cc | 60 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/ |
D | flat_hash_map_op_kernels.cc | 70 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/ |
D | map.h | 718 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/ |
D | table_based_table_builder.cc | 40 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/ |
D | bigtable_sample_keys_dataset_op.cc | 39 : 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
|
D | bigtable_prefix_key_dataset_op.cc | 45 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
|
D | bigtable_range_key_dataset_op.cc | 49 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
|
D | bigtable_sample_key_pairs_dataset_op.cc | 62 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/ |
D | compiler-source-position-table.cc | 31 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()
|
D | node-origin-table.cc | 46 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/ |
D | proto_translation_table_unittest.cc | 58 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 …]
|
D | ftrace_config_muxer_unittest.cc | 167 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/ |
D | base_rendezvous_mgr.cc | 47 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()
|
D | graph_mgr.cc | 57 : 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/ |
D | dso_test_utils.cc | 33 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
|