/system/connectivity/dhcp_client/ |
H A D | message_loop_event_dispatcher.cc | 19 #include <base/location.h> 20 #include <base/message_loop/message_loop.h> 21 #include <base/time/time.h> 28 bool MessageLoopEventDispatcher::PostTask(const base::Closure& task) { 29 if (!base::MessageLoop::current()) 31 base::MessageLoop::current()->PostTask(FROM_HERE, task); 35 bool MessageLoopEventDispatcher::PostDelayedTask(const base::Closure& task, 37 if (!base::MessageLoop::current()) 39 base::MessageLoop::current()->PostDelayedTask( 40 FROM_HERE, task, base [all...] |
H A D | testrunner.cc | 17 #include <base/at_exit.h> 18 #include <base/command_line.h> 23 base::AtExitManager exit_manager; 24 base::CommandLine::Init(argc, argv);
|
/system/update_engine/common/ |
H A D | fake_clock.h | 29 base::Time GetWallclockTime() override { 33 base::Time GetMonotonicTime() override { 37 base::Time GetBootTime() override { 41 void SetWallclockTime(const base::Time &time) { 45 void SetMonotonicTime(const base::Time &time) { 49 void SetBootTime(const base::Time &time) { 54 base::Time wallclock_time_; 55 base::Time monotonic_time_; 56 base::Time boot_time_;
|
H A D | clock_interface.h | 22 #include <base/time/time.h> 34 // Gets the current time e.g. similar to base::Time::Now(). 35 virtual base::Time GetWallclockTime() = 0; 42 virtual base::Time GetMonotonicTime() = 0; 49 virtual base::Time GetBootTime() = 0;
|
H A D | clock.cc | 23 base::Time Clock::GetWallclockTime() { 24 return base::Time::Now(); 27 base::Time Clock::GetMonotonicTime() { 35 return base::Time(); 39 now_tv.tv_usec = now_ts.tv_nsec/base::Time::kNanosecondsPerMicrosecond; 40 return base::Time::FromTimeVal(now_tv); 43 base::Time Clock::GetBootTime() { 50 return base::Time(); 54 now_tv.tv_usec = now_ts.tv_nsec/base::Time::kNanosecondsPerMicrosecond; 55 return base [all...] |
/system/update_engine/update_manager/ |
H A D | evaluation_context.h | 24 #include <base/bind.h> 25 #include <base/callback.h> 26 #include <base/memory/ref_counted.h> 27 #include <base/memory/weak_ptr.h> 28 #include <base/time/time.h> 65 class EvaluationContext : public base::RefCounted<EvaluationContext>, 70 base::TimeDelta evaluation_timeout, 71 base::TimeDelta expiration_timeout, 72 std::unique_ptr<base::Callback<void(EvaluationContext*)>> unregister_cb); 74 base [all...] |
/system/connectivity/apmanager/ |
H A D | event_dispatcher.cc | 19 #include <base/location.h> 20 #include <base/message_loop/message_loop.h> 21 #include <base/time/time.h> 27 base::LazyInstance<EventDispatcher> g_event_dispatcher 39 bool EventDispatcher::PostTask(const base::Closure& task) { 40 if (!base::MessageLoop::current()) 42 base::MessageLoop::current()->PostTask(FROM_HERE, task); 46 bool EventDispatcher::PostDelayedTask(const base::Closure& task, 48 if (!base::MessageLoop::current()) 50 base [all...] |
H A D | testrunner.cc | 17 #include <base/at_exit.h> 18 #include <base/command_line.h> 23 base::AtExitManager exit_manager; 24 base::CommandLine::Init(argc, argv);
|
H A D | event_dispatcher.h | 20 #include <base/callback.h> 21 #include <base/lazy_instance.h> 34 // <base/message_loop_proxy.h> 35 virtual bool PostTask(const base::Closure& task); 36 virtual bool PostDelayedTask(const base::Closure& task, 43 friend struct base::DefaultLazyInstanceTraits<EventDispatcher>;
|
/system/connectivity/shill/ |
H A D | callbacks.h | 23 #include <base/callback.h> 32 typedef base::Callback<void(const Error&)> ResultCallback; 33 typedef base::Callback<void(const Error&, bool)> ResultBoolCallback; 34 typedef base::Callback<void(const Error&, 36 typedef base::Callback<void(const Error&)> EnabledStateChangedCallback; 37 typedef base::Callback<void(const KeyValueStore&, 39 typedef base::Callback<void(const std::vector<KeyValueStore>&, 41 typedef base::Callback<void(const std::string&, 43 typedef base::Callback<void(const std::string&, const Error&)> StringCallback; 44 typedef base [all...] |
H A D | store_factory.h | 20 #include <base/lazy_instance.h> 22 namespace base { namespace 35 StoreInterface* CreateStore(const base::FilePath& path); 41 friend struct base::DefaultLazyInstanceTraits<StoreFactory>;
|
H A D | file_reader.h | 22 #include <base/macros.h> 23 #include <base/files/file_path.h> 24 #include <base/files/scoped_file.h> 40 bool Open(const base::FilePath& file_path); 49 base::ScopedFILE file_;
|
H A D | result_aggregator.h | 20 #include <base/cancelable_callback.h> 21 #include <base/macros.h> 22 #include <base/memory/ref_counted.h> 92 class ResultAggregator : public base::RefCounted<ResultAggregator> { 105 base::WeakPtrFactory<ResultAggregator> weak_ptr_factory_; 107 base::CancelableClosure timeout_callback_;
|
/system/connectivity/shill/wimax/ |
H A D | mock_wimax_network_proxy.cc | 19 #include <base/callback.h>
|
/system/bt/service/test/ |
H A D | main.cpp | 21 #include <base/at_exit.h> 22 #include <base/command_line.h> 23 #include <base/logging.h> 28 base::AtExitManager exit_manager; 29 base::CommandLine::Init(argc, argv);
|
/system/core/base/ |
H A D | parseint_test.cpp | 17 #include "android-base/parseint.h" 23 ASSERT_FALSE(android::base::ParseInt("x", &i)); 24 ASSERT_FALSE(android::base::ParseInt("123x", &i)); 26 ASSERT_TRUE(android::base::ParseInt("123", &i)); 28 ASSERT_TRUE(android::base::ParseInt("-123", &i)); 32 ASSERT_TRUE(android::base::ParseInt("1234", &s)); 35 ASSERT_TRUE(android::base::ParseInt("12", &i, 0, 15)); 37 ASSERT_FALSE(android::base::ParseInt("-12", &i, 0, 15)); 38 ASSERT_FALSE(android::base::ParseInt("16", &i, 0, 15)); 43 ASSERT_FALSE(android::base [all...] |
/system/tpm/attestation/ |
H A D | attestation_testrunner.cc | 17 #include <base/at_exit.h> 18 #include <base/command_line.h> 19 #include <base/logging.h> 24 base::CommandLine::Init(argc, argv); 28 base::AtExitManager exit_manager;
|
/system/tpm/tpm_manager/ |
H A D | tpm_manager_testrunner.cc | 17 #include <base/at_exit.h> 18 #include <base/command_line.h> 19 #include <base/logging.h> 24 base::CommandLine::Init(argc, argv); 28 base::AtExitManager exit_manager;
|
/system/tpm/trunks/ |
H A D | background_command_transceiver.cc | 19 #include <base/bind.h> 20 #include <base/callback.h> 21 #include <base/location.h> 22 #include <base/logging.h> 23 #include <base/single_thread_task_runner.h> 24 #include <base/synchronization/waitable_event.h> 25 #include <base/thread_task_runner_handle.h> 31 base::WaitableEvent* event, 40 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 42 base [all...] |
H A D | trunks_testrunner.cc | 17 #include <base/at_exit.h> 18 #include <base/command_line.h> 19 #include <base/logging.h> 24 base::CommandLine::Init(argc, argv); 28 base::AtExitManager exit_manager;
|
/system/update_engine/include/power_manager/ |
H A D | dbus-proxy-mocks.h | 8 #include <base/callback_forward.h> 9 #include <base/logging.h> 10 #include <base/macros.h> 30 void(const base::Callback<void()>& /*success_callback*/, 31 const base::Callback<void(brillo::Error*)>& /*error_callback*/, 39 const base::Callback<void()>& /*success_callback*/, 40 const base::Callback<void(brillo::Error*)>& /*error_callback*/, 48 const base::Callback<void()>& /*success_callback*/, 49 const base::Callback<void(brillo::Error*)>& /*error_callback*/, 57 const base [all...] |
/system/bt/service/ipc/ |
H A D | ipc_handler_linux.h | 21 #include <base/files/file_path.h> 22 #include <base/files/scoped_file.h> 23 #include <base/macros.h> 24 #include <base/threading/thread.h> 29 namespace base { namespace 31 } // namespace base 52 // Stops the IPC thread. This helper is needed since base::Thread requires 67 base::ScopedFD socket_; 71 base::FilePath socket_path_; 75 base [all...] |
/system/core/crash_reporter/ |
H A D | unclean_shutdown_collector.cc | 19 #include <base/files/file_util.h> 20 #include <base/logging.h> 30 using base::FilePath; 43 base::CreateDirectory(file_path.DirName()); 44 if (base::WriteFile(file_path, "", 0) != 0) { 52 if (!base::DeleteFile(FilePath(unclean_shutdown_file_), false)) { 58 base::DeleteFile(powerd_suspended_file_, false); 64 if (!base::PathExists(unclean_file_path)) { 87 if (base::PathExists(powerd_suspended_file_)) {
|
/system/core/metricsd/collectors/ |
H A D | cpu_usage_collector.cc | 19 #include <base/bind.h> 20 #include <base/files/file_path.h> 21 #include <base/files/file_util.h> 22 #include <base/message_loop/message_loop.h> 23 #include <base/strings/string_number_conversions.h> 24 #include <base/strings/string_split.h> 25 #include <base/strings/string_util.h> 26 #include <base/sys_info.h> 41 using base::TimeDelta; 50 num_cpu_ = base [all...] |
/system/webservd/webservd/ |
H A D | temp_file_manager.h | 22 #include <base/files/file_path.h> 23 #include <base/macros.h> 36 virtual bool DeleteFile(const base::FilePath& path) = 0; 42 TempFileManager(const base::FilePath& temp_dir_path, 50 base::FilePath CreateTempFileName(const std::string& request_id); 57 void DeleteFiles(const std::vector<base::FilePath>& files); 60 base::FilePath temp_dir_path_; 65 std::map<std::string, std::vector<base::FilePath>> request_files_; 74 bool DeleteFile(const base::FilePath& path) override;
|