Searched refs:base (Results 251 - 275 of 1314) sorted by relevance

<<11121314151617181920>>

/system/bt/btif/include/
H A Dbtif_common.h25 #include <base/bind.h>
26 #include <base/tracked_objects.h>
176 extern bt_status_t do_in_jni_thread(const base::Closure& task);
178 const base::Closure& task);
184 base::Callback<R(Args...)> jni_thread_wrapper(
185 const tracked_objects::Location& from_here, base::Callback<R(Args...)> cb) {
186 return base::Bind(
188 base::Callback<R(Args...)> cb, Args... args) {
190 base::Bind(cb, std::forward<Args>(args)...));
/system/core/adb/
H A Dadb_io_test.cpp30 #include <android-base/file.h>
31 #include <android-base/test_utils.h>
51 ASSERT_TRUE(android::base::WriteStringToFd(expected, tf.fd)) << strerror(errno);
65 ASSERT_TRUE(android::base::WriteStringToFd(expected, tf.fd)) << strerror(errno);
79 ASSERT_TRUE(android::base::WriteStringToFd(input, tf.fd)) << strerror(errno);
102 ASSERT_TRUE(android::base::ReadFdToString(tf.fd, &s));
119 ASSERT_TRUE(android::base::ReadFdToString(tf.fd, &s));
142 ASSERT_TRUE(android::base::ReadFdToString(tf.fd, &s));
155 ASSERT_TRUE(android::base::ReadFdToString(tf.fd, &s));
H A Dbugreport.cpp24 #include <android-base/file.h>
25 #include <android-base/strings.h>
99 destination = android::base::StringPrintf("%s%c%s", dest_dir_.c_str(),
119 line_message_ = action + " " + android::base::Basename(dest_file_);
126 dest_file_ = android::base::Basename(path);
134 if (android::base::StartsWith(line, BUGZ_BEGIN_PREFIX)) {
136 } else if (android::base::StartsWith(line, BUGZ_OK_PREFIX)) {
138 } else if (android::base::StartsWith(line, BUGZ_FAIL_PREFIX)) {
142 } else if (show_progress_ && android::base::StartsWith(line, BUGZ_PROGRESS_PREFIX)) {
205 std::string bugz_version = android::base
[all...]
H A Dsocket_spec.cpp23 #include <android-base/parseint.h>
24 #include <android-base/parsenetaddress.h>
25 #include <android-base/stringprintf.h>
26 #include <android-base/strings.h>
32 using android::base::StartsWith;
33 using android::base::StringPrintf;
78 // Otherwise, delegate to android::base::ParseNetAddress.
79 if (android::base::ParseInt(&spec[4], &port_value)) {
92 if (!android::base::ParseNetAddress(addr, &hostname_value, &port_value, nullptr, error)) {
/system/update_engine/
H A Dboot_control_android.cc19 #include <base/bind.h>
20 #include <base/files/file_util.h>
21 #include <base/logging.h>
22 #include <base/strings/string_util.h>
100 base::FilePath misc_device;
122 base::FilePath path = misc_device.DirName().Append(partition_name + suffix);
123 if (!base::PathExists(path)) {
179 base::Callback<void(bool)> callback) {
191 FROM_HERE, base::Bind(callback, result.success)) !=
H A Dboot_control_chromeos.cc21 #include <base/bind.h>
22 #include <base/files/file_path.h>
23 #include <base/files/file_util.h>
24 #include <base/strings/string_util.h>
65 void OnMarkBootSuccessfulDone(base::Callback<void(bool)> callback,
250 base::Callback<void(bool)> callback) {
253 base::Bind(&OnMarkBootSuccessfulDone, callback)) != 0;
258 base::FilePath device_path(device);
262 return base::FilePath("/sys/block").Append(device_path.BaseName()).value();
270 !base
[all...]
H A Dupdate_engine_client_android.cc23 #include <base/bind.h>
24 #include <base/callback.h>
25 #include <base/command_line.h>
26 #include <base/logging.h>
27 #include <base/strings/string_split.h>
134 base::CommandLine::Init(argc_, argv_);
143 base::CommandLine::ForCurrentProcess()->GetArgs();
194 std::vector<std::string> headers = base::SplitString(
195 FLAGS_headers, "\n", base::KEEP_WHITESPACE, base
[all...]
H A Dimage_properties_chromeos.cc22 #include <base/files/file_util.h>
23 #include <base/logging.h>
75 store->Load(base::FilePath(path + kLsbRelease));
146 base::FilePath path(root_prefix_str + kStatefulPartition + kLsbRelease);
147 if (!base::DirectoryExists(path.DirName()))
148 base::CreateDirectory(path.DirName());
/system/update_engine/update_manager/
H A Dpolicy.h69 base::Time first_seen;
79 base::Time failures_last_updated;
99 std::vector<std::tuple<int, chromeos_update_engine::ErrorCode, base::Time>>
107 base::Time p2p_first_attempted;
113 base::Time backoff_expiry;
121 base::TimeDelta scatter_wait_period;
124 base::TimeDelta scatter_wait_period_max;
178 base::Time backoff_expiry;
180 base::TimeDelta scatter_wait_period;
H A Dchromeos_policy.h22 #include <base/time/time.h>
36 base::Time backoff_expiry;
47 base::TimeDelta wait_period;
119 const base::TimeDelta kZeroInterval;
146 base::Time* next_update_check) const;
151 static base::TimeDelta FuzzedInterval(PRNG* prng, int interval, int fuzz);
H A Dreal_updater_provider.h43 Variable<base::Time>* var_updater_started_time() override {
47 Variable<base::Time>* var_last_checked_time() override {
51 Variable<base::Time>* var_update_completed_time() override {
104 ConstCopyVariable<base::Time> var_updater_started_time_;
105 std::unique_ptr<Variable<base::Time>> var_last_checked_time_;
106 std::unique_ptr<Variable<base::Time>> var_update_completed_time_;
/system/bt/service/
H A Dlow_energy_advertiser.cc19 #include <base/bind.h>
20 #include <base/logging.h>
136 advertiser_id_, false, base::Bind(&DoNothing), 0, 0,
137 base::Bind(&DoNothing));
178 base::Bind(&LowEnergyAdvertiser::EnableCallback,
179 base::Unretained(this), true, advertiser_id_),
182 base::Bind(&LowEnergyAdvertiser::EnableCallback,
183 base::Unretained(this), false, advertiser_id_));
206 base::Bind(&LowEnergyAdvertiser::EnableCallback, base
[all...]
/system/core/fastboot/
H A Dprotocol.cpp41 #include <android-base/file.h>
42 #include <android-base/stringprintf.h>
43 #include <android-base/unique_fd.h>
52 using android::base::unique_fd;
53 using android::base::WriteStringToFile;
65 g_error = android::base::StringPrintf("status read failed (%s)", strerror(errno));
72 g_error = android::base::StringPrintf("status malformed (%d bytes)", r);
91 g_error = android::base::StringPrintf("remote: %s", status + 4);
101 g_error = android::base::StringPrintf("data size too large (%d)", dsize);
119 g_error = android::base
[all...]
/system/connectivity/wificond/tests/
H A Dlooper_backed_event_loop_unittest.cpp21 #include <android-base/logging.h>
22 #include <android-base/unique_fd.h>
36 android::base::unique_fd send_fd;
37 android::base::unique_fd receive_fd;
43 receive_fd = android::base::unique_fd(fds[0]);
44 send_fd = android::base::unique_fd(fds[1]);
/system/core/base/
H A Dstrings.cpp17 #include "android-base/strings.h"
26 namespace base { namespace in namespace:android
37 size_t base = 0; local
40 found = s.find_first_of(delimiters, base);
41 result.push_back(s.substr(base, found - base));
43 base = found + 1;
120 } // namespace base
/system/extras/simpleperf/
H A Dcmd_report_sample_test.cpp19 #include <android-base/file.h>
20 #include <android-base/test_utils.h>
54 ASSERT_TRUE(android::base::ReadFileToString(tmpfile2.path, &data));
67 ASSERT_TRUE(android::base::ReadFileToString(tmpfile2.path, &data));
79 ASSERT_TRUE(android::base::ReadFileToString(tmpfile2.path, &data));
91 ASSERT_TRUE(android::base::ReadFileToString(tmpfile2.path, &data));
H A Dgtest_main.cpp23 #include <android-base/file.h>
24 #include <android-base/logging.h>
25 #include <android-base/test_utils.h>
58 if (!android::base::WriteStringToFile(content, tmp_file.path)) {
98 if (!android::base::WriteFully(fhelper.fd(), data.data(), data.size())) {
135 if (!android::base::Readlink("/proc/self/exe", &executable_path)) {
163 android::base::InitLogging(argv, android::base::StderrLogger);
164 android::base::LogSeverity log_severity = android::base
[all...]
/system/tpm/trunks/
H A Dtrunks_dbus_proxy.cc19 #include <base/bind.h>
53 origin_thread_id_ = base::PlatformThread::CurrentId();
59 if (origin_thread_id_ != base::PlatformThread::CurrentId()) {
75 trunks::kSendCommand, base::Bind(on_success), base::Bind(on_error),
80 if (origin_thread_id_ != base::PlatformThread::CurrentId()) {
/system/core/debuggerd/tombstoned/
H A Dtombstoned.cpp34 #include <android-base/logging.h>
35 #include <android-base/properties.h>
36 #include <android-base/stringprintf.h>
37 #include <android-base/unique_fd.h>
47 using android::base::GetIntProperty;
48 using android::base::StringPrintf;
49 using android::base::unique_fd;
224 event_base* base = event_get_base(crash->crash_event); local
225 event_assign(crash->crash_event, base, crash->crash_fd, EV_TIMEOUT | EV_READ,
239 event_base* base local
385 event_base* base = event_base_new(); local
[all...]
/system/tpm/attestation/server/
H A Dattestation_service.cc21 #include <base/callback.h>
51 worker_thread_.reset(new base::Thread("Attestation Service Worker"));
53 base::Thread::Options(base::MessageLoop::TYPE_IO, 0));
68 FROM_HERE, base::Bind(&DatabaseImpl::Initialize,
69 base::Unretained(default_database_.get())));
84 base::Closure task =
85 base::Bind(&AttestationService::CreateGoogleAttestedKeyTask,
86 base::Unretained(this), request, result);
87 base
[all...]
H A Dattestation_service_test.cc19 #include <base/bind.h>
20 #include <base/callback.h>
21 #include <base/message_loop/message_loop.h>
22 #include <base/run_loop.h>
82 base::Bind(&AttestationServiceTest::FakeCAEnroll,
83 base::Unretained(this), state));
90 base::Bind(&AttestationServiceTest::FakeCASign, base::Unretained(this),
192 base::MessageLoop message_loop_;
193 base
[all...]
/system/bt/service/ipc/
H A Dipc_manager.h21 #include <base/macros.h>
22 #include <base/memory/ref_counted.h>
/system/core/adb/sysdeps/win32/
H A Dstat.cpp26 #include <android-base/utf8.h>
42 if (!android::base::UTF8ToWide(path, &path_wide)) {
/system/core/init/
H A Duevent_listener.h26 #include <android-base/unique_fd.h>
56 android::base::unique_fd device_fd_;
/system/core/libbinderwrapper/include/binderwrapper/
H A Dbinder_wrapper.h24 #include <base/callback.h>
73 const ::base::Closure& callback) = 0;

Completed in 457 milliseconds

<<11121314151617181920>>