/system/update_engine/update_manager/ |
H A D | real_config_provider.cc | 19 #include <base/files/file_path.h> 20 #include <base/logging.h> 44 store.Load(base::FilePath(root_prefix_ + kConfigFilePath)); 46 if (store.Load(base::FilePath(root_prefix_ + 51 store.Load(base::FilePath(root_prefix_ + kConfigFilePath));
|
H A D | real_system_provider.cc | 27 #include <base/logging.h> 28 #include <base/strings/stringprintf.h> 29 #include <base/time/time.h> 50 base::Bind(&chromeos_update_engine::HardwareInterface::IsOOBEComplete, 51 base::Unretained(hardware_), nullptr)));
|
/system/webservd/webservd/ |
H A D | firewall_interface.h | 22 #include <base/callback.h> 23 #include <base/macros.h> 34 const base::Closure& callback) = 0; 40 const base::Callback<void(bool)>& success_cb, 41 const base::Callback<void(brillo::Error*)>& failure_cb) = 0;
|
H A D | firewalld_firewall.h | 22 #include <base/macros.h> 23 #include <base/memory/weak_ptr.h> 35 void WaitForServiceAsync(dbus::Bus* bus, const base::Closure& callback) 39 const base::Callback<void(bool)>& success_cb, 40 const base::Callback<void(brillo::Error*)>& failure_cb) override; 51 base::Closure service_online_cb_; 53 base::WeakPtrFactory<FirewalldFirewall> weak_ptr_factory_{this};
|
H A D | permission_broker_firewall.h | 22 #include <base/macros.h> 23 #include <base/memory/weak_ptr.h> 36 const base::Closure& callback) override; 39 const base::Callback<void(bool)>& success_cb, 40 const base::Callback<void(brillo::Error*)>& failure_cb) override; 53 base::Closure service_online_cb_; 61 base::WeakPtrFactory<PermissionBrokerFirewall> weak_ptr_factory_{this};
|
/system/core/metricsd/uploader/ |
H A D | upload_service.cc | 24 #include <base/bind.h> 25 #include <base/files/file_util.h> 26 #include <base/logging.h> 27 #include <base/memory/scoped_vector.h> 28 #include <base/message_loop/message_loop.h> 29 #include <base/metrics/histogram.h> 30 #include <base/metrics/histogram_base.h> 31 #include <base/metrics/histogram_snapshot_manager.h> 32 #include <base/metrics/sparse_histogram.h> 33 #include <base/metric [all...] |
H A D | upload_service.h | 23 #include <base/metrics/histogram_base.h> 24 #include <base/metrics/histogram_flattener.h> 25 #include <base/metrics/histogram_snapshot_manager.h> 64 // base::StatisticsRecorder. 65 class UploadService : public base::HistogramFlattener, public brillo::Daemon { 68 const base::TimeDelta& upload_interval, 69 const base::TimeDelta& disk_persistence_interval, 70 const base::FilePath& private_metrics_directory, 71 const base::FilePath& shared_metrics_directory); 95 base [all...] |
/system/webservd/libwebserv/ |
H A D | binder_server.h | 24 #include <base/bind.h> 25 #include <base/macros.h> 26 #include <base/memory/weak_ptr.h> 44 const base::Closure& on_server_online, 45 const base::Closure& on_server_offline, 56 const base::Callback<void(ProtocolHandler*)>& callback) override; 58 const base::Callback<void(ProtocolHandler*)>& callback) override; 60 base::TimeDelta GetDefaultRequestTimeout() const override; 72 base::Closure on_server_online_; 73 base [all...] |
H A D | server.h | 28 #include <base/callback.h> 29 #include <base/macros.h> 33 #include <base/memory/ref_counted.h> 70 const base::Closure& on_server_online, 71 const base::Closure& on_server_offline); 86 const base::Closure& on_server_online, 87 const base::Closure& on_server_offline); 112 const base::Callback<void(ProtocolHandler*)>& callback) = 0; 118 const base::Callback<void(ProtocolHandler*)>& callback) = 0; 123 // is not set, the returned value will be base [all...] |
/system/bt/vendor_libs/test_vendor_lib/include/ |
H A D | vendor_manager.h | 17 #include "base/macros.h" 18 #include "base/memory/weak_ptr.h" 19 #include "base/threading/thread.h" 20 #include "base/time/time.h" 73 bool PostTask(const base::Closure& task); 76 bool PostDelayedTask(const base::Closure& task, base::TimeDelta delay); 101 base::Thread thread_; 105 base::MessageLoopForIO::FileDescriptorWatcher hci_watcher_; 109 base [all...] |
/system/connectivity/dhcp_client/ |
H A D | main.cc | 18 #include <base/command_line.h> 19 #include <base/logging.h> 53 void OnStartup(const char* daemon_name, base::CommandLine* cl) { 60 base::CommandLine::Init(argc, argv); 61 base::CommandLine* cl = base::CommandLine::ForCurrentProcess(); 68 dhcp_client::Daemon daemon(base::Bind(&OnStartup, argv[0], cl));
|
/system/connectivity/shill/ |
H A D | connection_tester.h | 24 #include <base/callback.h> 25 #include <base/cancelable_callback.h> 26 #include <base/memory/ref_counted.h> 27 #include <base/memory/weak_ptr.h> 49 const base::Closure& callback); 72 base::WeakPtrFactory<ConnectionTester> weak_ptr_factory_; 73 base::Callback<void()> tester_callback_;
|
H A D | event_dispatcher.h | 22 #include <base/callback.h> 23 #include <base/macros.h> 24 #include <base/memory/ref_counted.h> 25 #include <base/message_loop/message_loop.h> 29 namespace base { namespace 31 } // namespace base 50 // <base/message_loop_proxy.h> 51 virtual void PostTask(const base::Closure& task); 52 virtual void PostDelayedTask(const base::Closure& task, int64_t delay_ms);
|
H A D | icmp_session.h | 33 #include <base/callback.h> 34 #include <base/cancelable_callback.h> 35 #include <base/macros.h> 36 #include <base/memory/weak_ptr.h> 37 #include <base/time/default_tick_clock.h> 38 #include <base/time/tick_clock.h> 61 using IcmpSessionResult = std::vector<base::TimeDelta>; 63 base::Callback<void(const IcmpSessionResult&)>; 99 using SentRecvTimePair = std::pair<base::TimeTicks, base [all...] |
H A D | certificate_file.cc | 24 #include <base/files/file_util.h> 25 #include <base/strings/string_split.h> 26 #include <base/strings/string_util.h> 27 #include <base/strings/stringprintf.h> 31 using base::FilePath; 32 using base::SplitString; 33 using base::StringPrintf; 57 base::DeleteFile(output_file_, false); 72 return WriteFile(base::JoinString(pem_output, "")); 80 pem_data, "\n", base [all...] |
/system/tpm/trunks/ |
H A D | background_command_transceiver.h | 24 #include <base/memory/ref_counted.h> 25 #include <base/memory/weak_ptr.h> 26 #include <base/sequenced_task_runner.h> 35 // base::Thread background_thread("my thread"); 52 const scoped_refptr<base::SequencedTaskRunner>& task_runner); 66 base::WeakPtr<BackgroundCommandTransceiver> GetWeakPtr() { 71 scoped_refptr<base::SequencedTaskRunner> task_runner_; 74 base::WeakPtrFactory<BackgroundCommandTransceiver> weak_factory_;
|
H A D | background_command_transceiver_test.cc | 19 #include <base/bind.h> 20 #include <base/logging.h> 21 #include <base/message_loop/message_loop.h> 22 #include <base/run_loop.h> 23 #include <base/threading/platform_thread.h> 24 #include <base/threading/thread.h> 41 return std::string(base::PlatformThread::GetName()); 75 base::MessageLoopForIO message_loop_; 76 base::Thread test_thread_; 85 background_transceiver.SendCommand("test", base [all...] |
/system/update_engine/ |
H A D | hardware_android.cc | 19 #include <base/files/file_util.h> 71 bool HardwareAndroid::IsOOBEComplete(base::Time* out_time_of_oobe) const { 74 *out_time_of_oobe = base::Time(); 98 bool HardwareAndroid::GetNonVolatileDirectory(base::FilePath* path) const { 99 base::FilePath local_path(constants::kNonVolatileDirectory); 100 if (!base::PathExists(local_path)) { 108 bool HardwareAndroid::GetPowerwashSafeDirectory(base::FilePath* path) const {
|
H A D | hardware_chromeos.cc | 19 #include <base/files/file_util.h> 20 #include <base/logging.h> 21 #include <base/strings/string_number_conversions.h> 22 #include <base/strings/string_util.h> 75 bool HardwareChromeOS::IsOOBEComplete(base::Time* out_time_of_oobe) const { 86 *out_time_of_oobe = base::Time::FromTimeT(statbuf.st_mtime); 97 base::TrimWhitespaceASCII(return_value, base::TRIM_ALL, &return_value); 107 return HwidOverride::Read(base::FilePath("/")); 132 base [all...] |
/system/core/metricsd/collectors/ |
H A D | averaged_statistics_collector.cc | 19 #include <base/bind.h> 20 #include <base/files/file_util.h> 21 #include <base/files/file_path.h> 22 #include <base/strings/string_number_conversions.h> 23 #include <base/strings/string_split.h> 69 base::MessageLoop::current()->PostDelayedTask(FROM_HERE, 70 base::Bind(&AveragedStatisticsCollector::WaitCallback, 71 base::Unretained(this)), 72 base::TimeDelta::FromSeconds( 77 base [all...] |
/system/update_engine/include/shill/ |
H A D | dbus-proxy-mocks.h | 9 #include <base/callback_forward.h> 10 #include <base/logging.h> 11 #include <base/macros.h> 33 void(const base::Callback<void(const brillo::VariantDictionary&)>& /*success_callback*/, 34 const base::Callback<void(brillo::Error*)>& /*error_callback*/, 44 const base::Callback<void()>& /*success_callback*/, 45 const base::Callback<void(brillo::Error*)>& /*error_callback*/, 52 void(const base::Callback<void(const std::string&)>& /*success_callback*/, 53 const base::Callback<void(brillo::Error*)>& /*error_callback*/, 62 const base [all...] |
/system/media/brillo/audio/audioservice/ |
H A D | audio_daemon.cpp | 22 #include <base/bind.h> 23 #include <base/files/file_enumerator.h> 24 #include <base/files/file_path.h> 25 #include <base/time/time.h> 41 base::FileEnumerator fenum(base::FilePath(kInputDeviceDir), 42 false /*recursive*/, base::FileEnumerator::FILES); 43 for (base::FilePath name = fenum.Next(); !name.empty(); name = fenum.Next()) { 44 base::File file(name, base [all...] |
/system/tpm/attestation/common/ |
H A D | attestation_interface.h | 22 #include <base/callback_forward.h> 43 base::Callback<void(const CreateGoogleAttestedKeyReply&)>; 49 using GetKeyInfoCallback = base::Callback<void(const GetKeyInfoReply&)>; 56 base::Callback<void(const GetEndorsementInfoReply&)>; 64 base::Callback<void(const GetAttestationKeyInfoReply&)>; 72 base::Callback<void(const ActivateAttestationKeyReply&)>; 80 base::Callback<void(const CreateCertifiableKeyReply&)>; 86 using DecryptCallback = base::Callback<void(const DecryptReply&)>; 91 using SignCallback = base::Callback<void(const SignReply&)>; 98 base [all...] |
/system/tpm/tpm_manager/common/ |
H A D | print_local_data_proto.cc | 22 #include <base/strings/string_number_conversions.h> 23 #include <base/strings/stringprintf.h> 35 base::StringPrintf("[%s] {\n", value.GetTypeName().c_str()); 39 base::StringAppendF(&output, "%s", 40 base::HexEncode(value.owner_password().data(), 47 base::StringAppendF(&output, "%s", value.owner_dependency(i).c_str()); 52 base::StringAppendF(&output, "%s", 53 base::HexEncode(value.endorsement_password().data(), 60 base::StringAppendF(&output, "%s", 61 base [all...] |
/system/core/base/ |
H A D | strings_test.cpp | 17 #include "android-base/strings.h" 27 std::vector<std::string> parts = android::base::Split("", ","); 33 std::vector<std::string> parts = android::base::Split("foo", ","); 39 std::vector<std::string> parts = android::base::Split("foo,bar,baz", ","); 47 std::vector<std::string> parts = android::base::Split("foo,,bar", ","); 56 android::base::Split(std::string("foo\0bar", 7), std::string("\0", 1)); 63 std::vector<std::string> parts = android::base::Split("foo:bar,baz", ",:"); 71 std::vector<std::string> parts = android::base::Split("foo:,bar", ",:"); 79 ASSERT_EQ("", android::base::Trim("")); 83 ASSERT_EQ("foo", android::base [all...] |