Android-cuttlefish cvd tool
ti50_current.h
Go to the documentation of this file.
1//
2// Copyright (C) 2024 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16#pragma once
17
18#include <string>
19#include <unordered_set>
20#include <vector>
21
22#include "fruit/macro.h"
23
30
31namespace cuttlefish {
32
34 public:
36 LogTeeCreator& log_tee));
37
38 // CommandSource
40
41 // SetupFeature
42 std::string Name() const override;
43 bool Enabled() const override;
44
45 // StatusCheckCommandSource
47
48 private:
49 std::unordered_set<SetupFeature*> Dependencies() const override;
50 Result<void> ResultSetup() override;
51
54};
55
56} // namespace cuttlefish
Definition: cuttlefish_config.h:264
Definition: log_tee_creator.h:28
Definition: ti50_current.h:33
Result< void > ResultSetup() override
Definition: ti50_current.cc:103
Result< void > WaitForAvailability() override
Definition: ti50_current.cc:76
INJECT(Ti50Emulator(const CuttlefishConfig::InstanceSpecific &instance, LogTeeCreator &log_tee))
const CuttlefishConfig::InstanceSpecific instance_
Definition: ti50_current.h:52
bool Enabled() const override
Definition: ti50_current.cc:72
std::string Name() const override
Definition: ti50_current.cc:70
Result< std::vector< MonitorCommand > > Commands() override
Definition: ti50_current.cc:44
std::unordered_set< SetupFeature * > Dependencies() const override
Definition: ti50_current.cc:99
LogTeeCreator & log_tee_
Definition: ti50_current.h:53
Definition: alloc_driver.h:21
tl::expected< T, StackTraceError< E > > Result
Definition: result_type.h:30