Home
last modified time | relevance | path

Searched refs:GetInstance (Results 1 – 25 of 255) sorted by relevance

1234567891011

/external/libchrome/base/memory/
Dsingleton_unittest.cc29 static IntSingleton* GetInstance() { in GetInstance() function in base::__anon95a3c0160111::IntSingleton
40 static Init5Singleton* GetInstance() { in GetInstance() function in base::__anon95a3c0160111::Init5Singleton
56 return &IntSingleton::GetInstance()->value_; in SingletonInt()
60 return &Init5Singleton::GetInstance()->value_; in SingletonInt5()
84 static CallbackSingletonWithNoLeakTrait* GetInstance() { in GetInstance() function in base::__anon95a3c0160111::CallbackSingletonWithNoLeakTrait
97 static CallbackSingletonWithLeakTrait* GetInstance() { in GetInstance() function in base::__anon95a3c0160111::CallbackSingletonWithLeakTrait
108 static CallbackSingletonWithStaticTrait* GetInstance() { in GetInstance() function in base::__anon95a3c0160111::CallbackSingletonWithStaticTrait
128 static AlignedTestSingleton* GetInstance() { in GetInstance() function in base::__anon95a3c0160111::AlignedTestSingleton
138 CallbackSingletonWithNoLeakTrait::GetInstance()->callback_ = CallOnQuit; in SingletonNoLeak()
142 CallbackSingletonWithLeakTrait::GetInstance()->callback_ = CallOnQuit; in SingletonLeak()
[all …]
/external/tensorflow/tensorflow/compiler/tf2tensorrt/plugin/
Dtrt_plugin_factory_test.cc89 if (PluginFactoryTensorRT::GetInstance()->IsPlugin( in RegisterStubPlugin()
93 return PluginFactoryTensorRT::GetInstance()->RegisterPlugin( in RegisterStubPlugin()
100 PluginFactoryTensorRT::GetInstance()->IsPlugin(StubPlugin::kPluginName)); in TEST_F()
104 PluginFactoryTensorRT::GetInstance()->IsPlugin(StubPlugin::kPluginName)); in TEST_F()
110 PluginFactoryTensorRT::GetInstance()->IsPlugin(StubPlugin::kPluginName)); in TEST_F()
112 PluginFactoryTensorRT::GetInstance()->DestroyPlugins(); in TEST_F()
113 ASSERT_TRUE(PluginFactoryTensorRT::GetInstance()->CreatePlugin( in TEST_F()
115 ASSERT_EQ(1, PluginFactoryTensorRT::GetInstance()->CountOwnedPlugins()); in TEST_F()
116 PluginFactoryTensorRT::GetInstance()->DestroyPlugins(); in TEST_F()
117 ASSERT_EQ(0, PluginFactoryTensorRT::GetInstance()->CountOwnedPlugins()); in TEST_F()
/external/libchrome/base/task_scheduler/
Dpost_task.cc72 DCHECK(TaskScheduler::GetInstance()) in PostDelayedTaskWithTraits()
76 TaskScheduler::GetInstance()->PostDelayedTaskWithTraits( in PostDelayedTaskWithTraits()
90 DCHECK(TaskScheduler::GetInstance()) in CreateTaskRunnerWithTraits()
94 return TaskScheduler::GetInstance()->CreateTaskRunnerWithTraits( in CreateTaskRunnerWithTraits()
100 DCHECK(TaskScheduler::GetInstance()) in CreateSequencedTaskRunnerWithTraits()
104 return TaskScheduler::GetInstance()->CreateSequencedTaskRunnerWithTraits( in CreateSequencedTaskRunnerWithTraits()
111 DCHECK(TaskScheduler::GetInstance()) in CreateSingleThreadTaskRunnerWithTraits()
115 return TaskScheduler::GetInstance()->CreateSingleThreadTaskRunnerWithTraits( in CreateSingleThreadTaskRunnerWithTraits()
123 DCHECK(TaskScheduler::GetInstance()) in CreateCOMSTATaskRunnerWithTraits()
127 return TaskScheduler::GetInstance()->CreateCOMSTATaskRunnerWithTraits( in CreateCOMSTATaskRunnerWithTraits()
Dservice_thread_unittest.cc71 TaskScheduler::GetInstance()->StartWithDefaultParams(); in TEST()
104 TaskScheduler::GetInstance()->JoinForTesting(); in TEST()
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/
Dbwe_test_logging.h132 webrtc::testing::bwe::Logging::GetInstance()->SetGlobalContext(name); \
137 webrtc::testing::bwe::Logging::GetInstance()->SetGlobalEnable(enabled); \
157 webrtc::testing::bwe::Logging::GetInstance()->Log(format, _1); \
162 webrtc::testing::bwe::Logging::GetInstance()->Log(format, _1, _2); \
167 webrtc::testing::bwe::Logging::GetInstance()->Log(format, _1, _2, _3); \
172 webrtc::testing::bwe::Logging::GetInstance()->Log(format, _1, _2, _3, \
178 webrtc::testing::bwe::Logging::GetInstance()->Log(format, _1, _2, _3, \
186 webrtc::testing::bwe::Logging::GetInstance()->Plot(figure, value); \
193 webrtc::testing::bwe::Logging::GetInstance()->Plot(figure, value, \
200 webrtc::testing::bwe::Logging::GetInstance()->PlotBar(figure, name, value, \
[all …]
Dbwe_test_logging.cc37 Logging::GetInstance()->PushState(ToString(name), timestamp_ms, enabled); in Context()
42 Logging::GetInstance()->PushState(name, timestamp_ms, enabled); in Context()
47 Logging::GetInstance()->PushState(name, timestamp_ms, enabled); in Context()
51 Logging::GetInstance()->PopState(); in ~Context()
54 Logging* Logging::GetInstance() { in GetInstance() function in webrtc::testing::bwe::Logging
/external/libbrillo/brillo/
Dflag_helper_unittest.cc46 brillo::FlagHelper::GetInstance()->set_command_line_for_testing( in TEST_F()
108 brillo::FlagHelper::GetInstance()->set_command_line_for_testing( in TEST_F()
168 brillo::FlagHelper::GetInstance()->set_command_line_for_testing( in TEST_F()
197 brillo::FlagHelper::GetInstance()->set_command_line_for_testing( in TEST_F()
211 brillo::FlagHelper::GetInstance()->set_command_line_for_testing( in TEST_F()
231 brillo::FlagHelper::GetInstance()->set_command_line_for_testing( in TEST_F()
258 brillo::FlagHelper::GetInstance()->set_command_line_for_testing( in TEST_F()
279 brillo::FlagHelper::GetInstance()->set_command_line_for_testing( in TEST_F()
301 brillo::FlagHelper::GetInstance()->set_command_line_for_testing( in TEST_F()
324 brillo::FlagHelper::GetInstance()->set_command_line_for_testing( in TEST_F()
[all …]
Dflag_helper.h189 brillo::FlagHelper::GetInstance()->AddFlag(std::unique_ptr<brillo::Flag>( \
208 brillo::FlagHelper::GetInstance()->AddFlag( \
211 brillo::FlagHelper::GetInstance()->AddFlag( \
222 static FlagHelper* GetInstance();
Dflag_helper.cc164 brillo::FlagHelper* FlagHelper::GetInstance() { in GetInstance() function in brillo::FlagHelper
179 brillo::FlagHelper* helper = GetInstance(); in Init()
186 GetInstance()->SetUsageMessage(help_usage); in Init()
188 GetInstance()->UpdateFlagValues(); in Init()
/external/libchrome/base/test/
Dscoped_task_environment.cc122 CHECK(!TaskScheduler::GetInstance()); in ScopedTaskEnvironment()
138 task_scheduler_ = TaskScheduler::GetInstance(); in ScopedTaskEnvironment()
139 TaskScheduler::GetInstance()->Start({worker_pool_params, worker_pool_params, in ScopedTaskEnvironment()
151 CHECK_EQ(TaskScheduler::GetInstance(), task_scheduler_); in ~ScopedTaskEnvironment()
155 TaskScheduler::GetInstance()->FlushForTesting(); in ~ScopedTaskEnvironment()
156 TaskScheduler::GetInstance()->Shutdown(); in ~ScopedTaskEnvironment()
157 TaskScheduler::GetInstance()->JoinForTesting(); in ~ScopedTaskEnvironment()
Dscoped_feature_list.cc93 base::FieldTrialParamAssociator::GetInstance()->ClearParamsForTesting( in ~ScopedFeatureList()
164 FeatureList* feature_list = FeatureList::GetInstance(); in InitWithFeaturesAndFieldTrials()
173 FeatureList::GetInstance()->GetFeatureOverrides(&current_enabled_features, in InitWithFeaturesAndFieldTrials()
225 FieldTrialParamAssociator::GetInstance()->AssociateFieldTrialParams( in InitAndEnableFeatureWithParameters()
/external/libchrome/base/threading/
Dthread_id_name_manager_unittest.cc20 base::ThreadIdNameManager* manager = base::ThreadIdNameManager::GetInstance(); in TEST_F()
35 base::ThreadIdNameManager* manager = base::ThreadIdNameManager::GetInstance(); in TEST_F()
51 base::ThreadIdNameManager* manager = base::ThreadIdNameManager::GetInstance(); in TEST_F()
66 base::ThreadIdNameManager* manager = base::ThreadIdNameManager::GetInstance(); in TEST_F()
78 base::ThreadIdNameManager* manager = base::ThreadIdNameManager::GetInstance(); in TEST_F()
/external/libchrome/libchrome_tools/patch/
Dshared_memory_mapping.patch19 - SharedMemoryTracker::GetInstance()->IncrementMemoryUsage(*this);
21 + // SharedMemoryTracker::GetInstance()->IncrementMemoryUsage(*this);
28 - SharedMemoryTracker::GetInstance()->DecrementMemoryUsage(*this);
30 + // SharedMemoryTracker::GetInstance()->DecrementMemoryUsage(*this);
Dmojom_disable_trace_and_mem_dump.patch18 - base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(
20 + // base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(
29 - base::trace_event::MemoryDumpManager::GetInstance()
31 + // base::trace_event::MemoryDumpManager::GetInstance()
62 - base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(
67 - base::trace_event::MemoryDumpManager::GetInstance()->UnregisterDumpProvider(
92 +// base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(
97 +// base::trace_event::MemoryDumpManager::GetInstance()->UnregisterDumpProvider(
Dtrace_event.patch31 + static TraceLog* GetInstance() {
176 - SharedMemoryTracker::GetInstance()->IncrementMemoryUsage(*this);
178 + // SharedMemoryTracker::GetInstance()->IncrementMemoryUsage(*this);
186 - SharedMemoryTracker::GetInstance()->DecrementMemoryUsage(*this);
188 + // SharedMemoryTracker::GetInstance()->DecrementMemoryUsage(*this);
/external/sfntly/cpp/src/test/
Dserialization_test.cc30 factory1.Attach(FontFactory::GetInstance()); in TestSerialization()
35 factory2.Attach(FontFactory::GetInstance()); in TestSerialization()
45 factory3.Attach(FontFactory::GetInstance()); in TestSerialization()
96 factory1.Attach(FontFactory::GetInstance()); in TestSerializationBitmap()
101 factory2.Attach(FontFactory::GetInstance()); in TestSerializationBitmap()
111 factory3.Attach(FontFactory::GetInstance()); in TestSerializationBitmap()
Dfont_parsing_test.cc39 factory.Attach(FontFactory::GetInstance()); in TestFontParsing()
103 factory.Attach(FontFactory::GetInstance()); in TestTTFReadWrite()
121 factory.Attach(FontFactory::GetInstance()); in TestTTFMemoryBasedReadWrite()
/external/libchrome/base/android/
Dscoped_hardware_buffer_handle.cc48 AndroidHardwareBufferCompat::GetInstance().Release(buffer_); in reset()
61 AndroidHardwareBufferCompat::GetInstance().Acquire(buffer_); in Clone()
78 AndroidHardwareBufferCompat::GetInstance().SendHandleToUnixSocket( in SerializeAsFileDescriptor()
98 AndroidHardwareBufferCompat::GetInstance().RecvHandleFromUnixSocket( in DeserializeFromFileDescriptor()
/external/perfetto/src/tracing/api_impl/
Dconsumer_api.cc277 static TracingController* GetInstance();
298 TracingController* TracingController::GetInstance() { in GetInstance() function in perfetto::consumer::__anon4d5fe0b30111::TracingController
406 return TracingController::GetInstance()->Create(config_proto, config_len, in Create()
412 return TracingController::GetInstance()->StartTracing(handle); in StartTracing()
416 return TracingController::GetInstance()->PollState(handle); in PollState()
420 return TracingController::GetInstance()->ReadTrace(handle); in ReadTrace()
424 TracingController::GetInstance()->Destroy(handle); in Destroy()
/external/sfntly/cpp/src/sample/subtly/
Dutils.cc31 font_factory.Attach(FontFactory::GetInstance()); in LoadFont()
39 font_factory.Attach(FontFactory::GetInstance()); in LoadFontBuilder()
65 font_factory.Attach(FontFactory::GetInstance()); in SerializeFont()
/external/googletest/googletest/test/
Dgtest-typed-test_test.cc193 EXPECT_STREQ(::testing::UnitTest::GetInstance() in TYPED_TEST()
199 EXPECT_STREQ(::testing::UnitTest::GetInstance() in TYPED_TEST()
315 EXPECT_STREQ(::testing::UnitTest::GetInstance() in TYPED_TEST_P()
321 EXPECT_STREQ(::testing::UnitTest::GetInstance() in TYPED_TEST_P()
425 return testing::UnitTest::GetInstance()->current_test_info()->name(); in GetTestName()
Dgoogletest-listener-test.cc271 UnitTest::GetInstance()->listeners().Append( in main()
273 UnitTest::GetInstance()->listeners().Append( in main()
275 UnitTest::GetInstance()->listeners().Append( in main()
403 if (UnitTest::GetInstance()->Failed()) in main()
/external/tensorflow/tensorflow/core/common_runtime/
Dscoped_allocator_mgr_test.cc59 sa_instances_[i] = sac->GetInstance(scope_id_ + 1 + i); in SaveInstances()
156 ScopedAllocatorInstance* inst0 = sac->GetInstance(scope_id_ + 1); in TEST_F()
162 ScopedAllocatorInstance* inst1 = sac->GetInstance(scope_id_ + 2); in TEST_F()
166 ScopedAllocatorInstance* inst2 = sac->GetInstance(scope_id_ + 3); in TEST_F()
/external/webrtc/webrtc/modules/audio_device/android/
Dbuild_info.cc18 : j_environment_(JVM::GetInstance()->environment()), in BuildInfo()
19 j_build_info_(JVM::GetInstance()->GetClass( in BuildInfo()
/external/google-breakpad/src/testing/gtest/test/
Dgtest-listener_test.cc208 UnitTest::GetInstance()->listeners().Append( in main()
210 UnitTest::GetInstance()->listeners().Append( in main()
309 if (UnitTest::GetInstance()->Failed()) in main()

1234567891011