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

1234567891011>>

/system/bt/stack/test/common/
H A Dmock_btu_layer.cc19 #include <base/message_loop/message_loop.h>
21 base::MessageLoop* get_message_loop() { return nullptr;
/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/vold/
H A Dwait_for_keymaster.cpp17 #include <android-base/logging.h>
25 android::base::InitLogging(argv, &android::base::KernelLogger);
27 android::base::InitLogging(argv, &android::base::StderrLogger);
/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/bt/bta/include/
H A Dbta_closure_api.h22 #include <base/bind.h>
23 #include <base/callback_forward.h>
24 #include <base/location.h>
32 * for how to handle dynamic memory ownership/smart pointers with base::Owned(),
33 * base::Passed(), base::ConstRef() and others.
36 const base::Closure& task);
/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/base/
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 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", ",");
55 std::vector<std::string> parts = android::base::Split("foo,bar,", ",");
64 android::base::Split(std::string("foo\0bar", 7), std::string("\0", 1));
71 std::vector<std::string> parts = android::base::Split("foo:bar,baz", ",:");
79 std::vector<std::string> parts = android::base::Split("foo:,bar", ",:");
87 ASSERT_EQ("", 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
/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);

Completed in 294 milliseconds

1234567891011>>