Android-cuttlefish cvd tool
ti50_emulator_legacy.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// Legacy Ti50 emulator support for older 3-stage `ti50-emulator-kernel`
19// bundles. This code is no longer used on any new standalone `ti50a-emulator`
20// build and only exists to support older branches.
21
22#include <string>
23#include <unordered_set>
24#include <vector>
25
26#include "fruit/macro.h"
27
35
36namespace cuttlefish {
37
39 public:
41 LogTeeCreator& log_tee));
42
43 // CommandSource
45
46 // SetupFeature
47 std::string Name() const override;
48 bool Enabled() const override;
49
50 // StatusCheckCommandSource
52
53 private:
54 std::unordered_set<SetupFeature*> Dependencies() const override;
55 Result<void> ResultSetup() override;
56
60};
61
62} // namespace cuttlefish
Definition: cuttlefish_config.h:264
Definition: fd.h:87
Definition: ti50_emulator_legacy.h:38
Fd ctrl_sock_
Definition: ti50_emulator_legacy.h:59
std::unordered_set< SetupFeature * > Dependencies() const override
Definition: ti50_emulator_legacy.cc:200
Result< void > WaitForAvailability() override
Definition: ti50_emulator_legacy.cc:179
const CuttlefishConfig::InstanceSpecific instance_
Definition: ti50_emulator_legacy.h:57
bool Enabled() const override
Definition: ti50_emulator_legacy.cc:175
INJECT(LegacyTi50Emulator(const CuttlefishConfig::InstanceSpecific &instance, LogTeeCreator &log_tee))
std::string Name() const override
Definition: ti50_emulator_legacy.cc:173
Result< std::vector< MonitorCommand > > Commands() override
Definition: ti50_emulator_legacy.cc:151
Result< void > ResultSetup() override
Definition: ti50_emulator_legacy.cc:204
LogTeeCreator & log_tee_
Definition: ti50_emulator_legacy.h:58
Definition: log_tee_creator.h:28
Definition: alloc_driver.h:21
tl::expected< T, StackTraceError< E > > Result
Definition: result_type.h:30