Searched refs:base (Results 1 - 25 of 1314) sorted by relevance

1234567891011>>

/system/bt/bta/include/
H A Dbta_closure_api.h22 #include <base/bind.h>
23 #include <base/callback_forward.h>
24 #include <base/location.h>
30 * for how to handle dynamic memory ownership/smart pointers with base::Owned(),
31 * base::Passed(), base::ConstRef() and others.
34 const base::Closure& task);
/system/update_engine/common/
H A Dfake_clock.h29 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 Dclock_interface.h22 #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 Dclock.cc23 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/core/adb/
H A Dadb_unique_fd.h19 #include <android-base/unique_fd.h>
26 using unique_fd = android::base::unique_fd_impl<AdbCloser>;
/system/update_engine/update_manager/
H A Devaluation_context.h24 #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/core/base/
H A Dstrings_test.cpp17 #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...]
H A Dparsedouble_test.cpp17 #include "android-base/parsedouble.h"
23 ASSERT_FALSE(android::base::ParseDouble("", &d));
24 ASSERT_FALSE(android::base::ParseDouble("x", &d));
25 ASSERT_FALSE(android::base::ParseDouble("123.4x", &d));
27 ASSERT_TRUE(android::base::ParseDouble("123.4", &d));
29 ASSERT_TRUE(android::base::ParseDouble("-123.4", &d));
32 ASSERT_TRUE(android::base::ParseDouble("0", &d, 0.0));
34 ASSERT_FALSE(android::base::ParseDouble("0", &d, 1e-9));
35 ASSERT_FALSE(android::base::ParseDouble("3.0", &d, -1.0, 2.0));
36 ASSERT_TRUE(android::base
[all...]
H A Dparseint_test.cpp17 #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...]
H A Dtest_main.cpp19 #include "android-base/logging.h"
23 android::base::InitLogging(argv, android::base::StderrLogger);
H A Derrors_unix.cpp17 #include "android-base/errors.h"
22 namespace base { namespace in namespace:android
28 } // namespace base
H A Dproperties_test.cpp17 #include "android-base/properties.h"
29 android::base::SetProperty("debug.libbase.property_test", "hello");
31 std::string s = android::base::GetProperty("debug.libbase.property_test", "");
34 android::base::SetProperty("debug.libbase.property_test", "world");
35 s = android::base::GetProperty("debug.libbase.property_test", "");
38 s = android::base::GetProperty("this.property.does.not.exist", "");
41 s = android::base::GetProperty("this.property.does.not.exist", "default");
49 android::base::SetProperty("debug.libbase.property_test", "");
50 std::string s = android::base::GetProperty("debug.libbase.property_test", "default");
55 android::base
[all...]
/system/bt/service/test/
H A Dmain.cc17 #include <base/at_exit.h>
18 #include <base/command_line.h>
19 #include <base/logging.h>
24 base::AtExitManager exit_manager;
25 base::CommandLine::Init(argc, argv);
H A Dsettings_unittest.cc17 #include <base/at_exit.h>
18 #include <base/command_line.h>
19 #include <base/macros.h>
34 void SetUp() override { base::CommandLine::Reset(); }
36 void TearDown() override { base::CommandLine::Reset(); }
39 base::AtExitManager exit_manager_;
47 const base::CommandLine::CharType* argv[] = {"program"};
48 EXPECT_TRUE(base::CommandLine::Init(arraysize(argv), argv));
53 const base::CommandLine::CharType* argv[] = {
55 EXPECT_TRUE(base
[all...]
/system/tpm/attestation/
H A Dattestation_testrunner.cc17 #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 Dtpm_manager_testrunner.cc17 #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 Dtrunks_testrunner.cc17 #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;
H A Dbackground_command_transceiver.cc19 #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/threading/thread_task_runner_handle.h>
31 base::WaitableEvent* event,
40 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
42 base
[all...]
/system/bt/service/ipc/
H A Dipc_handler_linux.h21 #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
51 // Stops the IPC thread. This helper is needed since base::Thread requires
70 base::ScopedFD socket_;
74 base::FilePath socket_path_;
78 base
[all...]
/system/core/debuggerd/tombstoned/include/tombstoned/
H A Dtombstoned.h21 #include <android-base/unique_fd.h>
25 bool tombstoned_connect(pid_t pid, android::base::unique_fd* tombstoned_socket,
26 android::base::unique_fd* output_fd, DebuggerdDumpType dump_type);
/system/connectivity/wifilogd/tests/
H A Dmain.cpp17 #include "android-base/logging.h"
23 ::android::base::InitLogging(argv, android::base::StderrLogger);
/system/update_engine/
H A Dutils_android.h22 #include <base/files/file_util.h>
31 base::FilePath* device);
/system/tools/aidl/
H A Dlogging.h20 // We must include windows.h before android-base/logging.h on Windows.
25 #include <android-base/logging.h>
/system/connectivity/wificond/tests/
H A Dmain.cpp20 #include <android-base/logging.h>
26 android::base::InitLogging(argv, android::base::StderrLogger);
/system/core/bootstat/
H A Dtestrunner.cpp17 #include <android-base/logging.h>
22 android::base::InitLogging(argv, android::base::StderrLogger);

Completed in 360 milliseconds

1234567891011>>