Android-cuttlefish cvd tool
|
Typedefs | |
template<typename T > | |
using | Result = android::base::expected< T, StackTraceError > |
using | SubprocessStopper = std::function< StopperResult(Subprocess *)> |
using | Message = std::vector< std::uint8_t > |
using | MiscInfo = std::map< std::string, std::string > |
using | CvdServerClock = std::chrono::system_clock |
using | TimeStamp = std::chrono::time_point< CvdServerClock > |
using | InterruptListener = std::function< void(int)> |
using | f_func = std::function< void(const Client &)> |
using | p_func = std::function< void(const Client &, std::string &)> |
template<auto Fn> | |
using | AutoCmd = GenericCommandImpl< Fn, decltype(Fn)> |
using | AutoSensorsSocketPair = AutoSetup< SensorsSocketPair::Create > |
using | AutoSnapshotControlFiles = AutoSetup< SnapshotControlFiles::Create > |
template<auto Fn> | |
using | AutoDiagnostic = DiagnosticInformationFnImpl< Fn, decltype(Fn)> |
template<typename T > | |
using | UniqueEsysPtr = std::unique_ptr< T, EsysDeleter > |
using | TpmObjectSlot = std::shared_ptr< TpmResourceManager::ObjectSlot > |
using | SerializeTpmKeyPrivate = TpmSerializable< TPM2B_PRIVATE > |
using | SerializeTpmKeyPublic = TpmSerializable< TPM2B_PUBLIC > |
using | OnConsumedCb = std::function< void(AudioStatus, uint32_t, uint32_t)> |
using | TxBuffer = ShmBuffer |
template<auto Fn> | |
using | AutoSetup = GenericSetupImpl< Fn, decltype(Fn)> |
typedef struct cuttlefish::msg_buffer | msg_buffer |
using | GenerateProcessedFrameCallbackImpl = std::function< void(uint32_t, uint32_t, uint32_t, uint32_t, uint32_t, uint8_t *)> |
using | Build = std::variant< DeviceBuild, DirectoryBuild > |
using | BuildString = std::variant< DeviceBuildString, DirectoryBuildString > |
using | DigestsFetcher = std::function< Result< std::string >(std::string)> |
using | ChromeOsBuildString = std::variant< ChromeOsBuilder, std::string > |
Functions | |
int | RunExternalCommand (const std::string &command) |
bool | AddTapIface (const std::string &name) |
bool | ShutdownIface (const std::string &name) |
bool | BringUpIface (const std::string &name) |
bool | CreateEthernetIface (const std::string &name, const std::string &bridge_name, bool has_ipv4_bridge, bool has_ipv6_bridge, bool use_ebtables_legacy) |
std::string | MobileGatewayName (const std::string &ipaddr, uint16_t id) |
std::string | MobileNetworkName (const std::string &ipaddr, const std::string &netmask, uint16_t id) |
bool | CreateMobileIface (const std::string &name, uint16_t id, const std::string &ipaddr) |
bool | DestroyMobileIface (const std::string &name, uint16_t id, const std::string &ipaddr) |
bool | AddGateway (const std::string &name, const std::string &gateway, const std::string &netmask) |
bool | DestroyGateway (const std::string &name, const std::string &gateway, const std::string &netmask) |
bool | DestroyEthernetIface (const std::string &name, bool has_ipv4_bridge, bool has_ipv6_bridge, bool use_ebtables_legacy) |
void | CleanupEthernetIface (const std::string &name, const EthernetNetworkConfig &config) |
bool | CreateEbtables (const std::string &name, bool use_ipv4, bool use_ebtables_legacy) |
bool | DestroyEbtables (const std::string &name, bool use_ipv4, bool use_ebtables_legacy) |
bool | EbtablesBroute (const std::string &name, bool use_ipv4, bool add, bool use_ebtables_legacy) |
bool | EbtablesFilter (const std::string &name, bool use_ipv4, bool add, bool use_ebtables_legacy) |
bool | LinkTapToBridge (const std::string &tap_name, const std::string &bridge_name) |
bool | CreateTap (const std::string &name) |
bool | DeleteIface (const std::string &name) |
bool | DestroyIface (const std::string &name) |
std::optional< std::string > | GetUserName (uid_t uid) |
bool | CreateBridge (const std::string &name) |
bool | DestroyBridge (const std::string &name) |
bool | SetupBridgeGateway (const std::string &bridge_name, const std::string &ipaddr) |
void | CleanupBridgeGateway (const std::string &name, const std::string &ipaddr, const GatewayConfig &config) |
bool | StartDnsmasq (const std::string &bridge_name, const std::string &gateway, const std::string &dhcp_range) |
bool | StopDnsmasq (const std::string &name) |
bool | IptableConfig (const std::string &network, bool add) |
bool | CreateEthernetBridgeIface (const std::string &name, const std::string &ipaddr) |
bool | DestroyEthernetBridgeIface (const std::string &name, const std::string &ipaddr) |
uid_t | GetUserIDFromSock (SharedFD client_socket) |
bool | SendJsonMsg (SharedFD client_socket, const Json::Value &resp) |
std::optional< Json::Value > | RecvJsonMsg (SharedFD client_socket) |
std::string | ReqTyToStr (RequestType req_ty) |
RequestType | StrToReqTy (const std::string &req) |
RequestStatus | StrToStatus (const std::string &st) |
std::string | StatusToStr (RequestStatus st) |
std::string | IfaceTyToStr (IfaceType iface) |
IfaceType | StrToIfaceTy (const std::string &iface) |
template<typename T > | |
constexpr std::underlying_type_t< T > | Enum2Base (T t) |
ssize_t | WriteAll (SharedFD fd, const char *buf, size_t size) |
ssize_t | ReadExact (SharedFD fd, char *buf, size_t size) |
ssize_t | ReadAll (SharedFD fd, std::string *buf) |
ssize_t | ReadExact (SharedFD fd, std::string *buf) |
ssize_t | ReadExact (SharedFD fd, std::vector< char > *buf) |
ssize_t | WriteAll (SharedFD fd, std::string_view buf) |
ssize_t | WriteAll (SharedFD fd, const std::vector< char > &buf) |
bool | SendAll (SharedFD sock, std::string_view msg) |
std::string | RecvAll (SharedFD sock, const size_t count) |
template<typename T > | |
ssize_t | ReadExactBinary (SharedFD fd, T *binary_data) |
template<typename T > | |
ssize_t | WriteAllBinary (SharedFD fd, const T *binary_data) |
int | Select (SharedFDSet *read_set, SharedFDSet *write_set, SharedFDSet *error_set, struct timeval *timeout) |
static void | MakeAddress (const char *name, bool abstract, struct sockaddr_un *dest, socklen_t *len) |
TEST (SendFD, Basic) | |
Result< std::map< std::string, std::string > > | ParseKeyEqualsValue (const std::string &contents) |
std::string | SerializeKeyEqualsValue (const std::map< std::string, std::string > &key_equals_value) |
Result< void > | WriteKeyEqualsValue (const std::map< std::string, std::string > &key_equals_value, const std::string &path) |
const std::string & | HostArchStr () |
Arch | HostArch () |
bool | IsHostCompatible (Arch arch) |
std::ostream & | operator<< (std::ostream &out, Arch arch) |
Result< std::vector< std::string > > | ExtractImages (const std::string &archive_filepath, const std::string &target_directory, const std::vector< std::string > &images, const bool keep_archive) |
Result< std::string > | ExtractImage (const std::string &archive_filepath, const std::string &target_directory, const std::string &image, const bool keep_archive) |
Result< std::vector< std::string > > | ExtractArchiveContents (const std::string &archive_filepath, const std::string &target_directory, const bool keep_archive) |
std::string | ExtractArchiveToMemory (const std::string &archive_filepath, const std::string &archive_member) |
std::vector< std::string > | ArchiveContents (const std::string &archive) |
bool | EncodeBase64 (const void *data, std::size_t size, std::string *out) |
bool | DecodeBase64 (const std::string &data, std::vector< std::uint8_t > *buffer) |
TEST (Base64Test, EncodeMult3) | |
TEST (Base64Test, EncodeNonMult3) | |
TEST (Base64Test, DecodeMult3) | |
TEST (Base64Test, DecodeNonMult3) | |
TEST (Base64Test, EncodeOneZero) | |
TEST (Base64Test, EncodeTwoZeroes) | |
TEST (Base64Test, EncodeThreeZeroes) | |
DECLARE_TYPE (Le16, uint16_t, htole16, le16toh) | |
DECLARE_TYPE (Le32, uint32_t, htole32, le32toh) | |
DECLARE_TYPE (Le64, uint64_t, htole64, le64toh) | |
DECLARE_TYPE (Be16, uint16_t, htobe16, be16toh) | |
DECLARE_TYPE (Be32, uint32_t, htobe32, be32toh) | |
DECLARE_TYPE (Be64, uint64_t, htobe64, be64toh) | |
static bool | IsRunningInDocker () |
bool | IsRunningInContainer () |
template<typename Container , typename U , typename = std::enable_if_t< contains_internal_impl::HasFindImpl<Container, U>::value && (!contains_internal_impl::IsString<Container>::value && !contains_internal_impl::IsStringView<Container>::value), void>> | |
constexpr bool | Contains (Container &&container, U &&u) |
template<typename T > | |
constexpr bool | Contains (const std::string &s, T &&t) |
template<typename T > | |
constexpr bool | Contains (const std::string_view &s, T &&t) |
DeviceType | ParseDeviceType (std::string_view type_name) |
Result< std::size_t > | GetDiskUsageBytes (const std::string &path) |
Result< std::size_t > | GetDiskUsageGigabytes (const std::string &path) |
std::optional< std::string > | StringFromEnv (const std::string &varname) |
std::string | StringFromEnv (const std::string &varname, const std::string &defval) |
bool | FileExists (const std::string &path, bool follow_symlinks) |
Result< dev_t > | FileDeviceId (const std::string &path) |
Result< bool > | CanHardLink (const std::string &source, const std::string &destination) |
Result< ino_t > | FileInodeNumber (const std::string &path) |
Result< bool > | AreHardLinked (const std::string &source, const std::string &destination) |
Result< std::string > | CreateHardLink (const std::string &target, const std::string &hardlink, const bool overwrite_existing) |
Result< void > | CreateSymLink (const std::string &target, const std::string &link, const bool overwrite_existing) |
bool | FileHasContent (const std::string &path) |
Result< void > | HardLinkDirecoryContentsRecursively (const std::string &source, const std::string &destination) |
Result< void > | MoveDirectoryContents (const std::string &source, const std::string &destination) |
Result< std::vector< std::string > > | DirectoryContents (const std::string &path) |
Result< std::vector< std::string > > | DirectoryContentsPaths (const std::string &path) |
bool | DirectoryExists (const std::string &path, bool follow_symlinks) |
Result< void > | EnsureDirectoryExists (const std::string &directory_path, const mode_t mode, const std::string &group_name) |
Result< void > | ChangeGroup (const std::string &path, const std::string &group_name) |
bool | CanAccess (const std::string &path, const int mode) |
bool | IsDirectoryEmpty (const std::string &path) |
Result< void > | RecursivelyRemoveDirectory (const std::string &path) |
bool | Copy (const std::string &from, const std::string &to) |
std::string | AbsolutePath (const std::string &path) |
off_t | FileSize (const std::string &path) |
bool | MakeFileExecutable (const std::string &path) |
Result< std::chrono::system_clock::time_point > | FileModificationTime (const std::string &path) |
Result< std::string > | RenameFile (const std::string ¤t_filepath, const std::string &target_filepath) |
bool | RemoveFile (const std::string &file) |
std::string | ReadFile (const std::string &file) |
Result< std::string > | ReadFileContents (const std::string &filepath) |
std::string | CurrentDirectory () |
FileSizes | SparseFileSizes (const std::string &path) |
bool | FileIsSocket (const std::string &path) |
std::string | FindImage (const std::string &search_path, const std::vector< std::string > &pattern) |
Result< std::string > | FindFile (const std::string &path, const std::string &target_name) |
Result< void > | WalkDirectory (const std::string &dir, const std::function< bool(const std::string &)> &callback) |
Result< std::string > | EmulateAbsolutePath (const InputPathForm &path_info) |
Result< bool > | CanRename (const std::string &source, const std::string &destination) |
bool | IsDirectory (const std::string &path) |
void | CreateTempFileWithText (const std::string &filepath, const std::string &text) |
TEST_F (FilesTests, HardLinkRecursivelyFailsIfSourceIsNotADirectory) | |
TEST_F (FilesTests, HardLinkRecursively) | |
TEST_F (FilesTests, MoveDirectoryContentsFailsIfSourceIsNotADirectory) | |
TEST_F (FilesTests, MoveDirectoryContents) | |
TEST_P (EmulateAbsolutePathBase, NoHomeNoPwd) | |
INSTANTIATE_TEST_SUITE_P (CommonUtilsTest, EmulateAbsolutePathBase, testing::Values(InputOutput{.path_to_convert_="/",.expected_="/"}, InputOutput{.path_to_convert_="",.expected_=""}, InputOutput{.path_to_convert_="/a/b/c/",.expected_="/a/b/c"}, InputOutput{.path_to_convert_="/a",.expected_="/a"})) | |
TEST_P (EmulateAbsolutePathWithPwd, NoHomeYesPwd) | |
INSTANTIATE_TEST_SUITE_P (CommonUtilsTest, EmulateAbsolutePathWithPwd, testing::Values(InputOutput{.path_to_convert_="",.working_dir_="/x/y/z",.expected_=""}, InputOutput{.path_to_convert_="a",.working_dir_="/x/y/z",.expected_="/x/y/z/a"}, InputOutput{.path_to_convert_=".",.working_dir_="/x/y/z",.expected_="/x/y/z"}, InputOutput{.path_to_convert_="..",.working_dir_="/x/y/z",.expected_="/x/y"}, InputOutput{.path_to_convert_="./k/../../t/./q",.working_dir_="/x/y/z",.expected_="/x/y/t/q"})) | |
TEST_P (EmulateAbsolutePathWithHome, YesHomeNoPwd) | |
INSTANTIATE_TEST_SUITE_P (CommonUtilsTest, EmulateAbsolutePathWithHome, testing::Values(InputOutput{.path_to_convert_="~",.home_dir_="/x/y/z",.expected_="/x/y/z"}, InputOutput{.path_to_convert_="~/a",.home_dir_="/x/y/z",.expected_="/x/y/z/a"}, InputOutput{.path_to_convert_="~/.",.home_dir_="/x/y/z",.expected_="/x/y/z"}, InputOutput{.path_to_convert_="~/..",.home_dir_="/x/y/z",.expected_="/x/y"}, InputOutput{.path_to_convert_="~/k/../../t/./q",.home_dir_="/x/y/z",.expected_="/x/y/t/q"})) | |
std::ostream & | operator<< (std::ostream &out, const FlagAlias &alias) |
static bool | LikelyFlag (const std::string &next_arg) |
Result< bool > | ParseBool (const std::string &value, const std::string &name) |
static std::string | XmlEscape (const std::string &s) |
std::ostream & | operator<< (std::ostream &out, const Flag &flag) |
std::vector< std::string > | ArgsToVec (int argc, char **argv) |
static Separated | SeparateByEndOfOptionMark (std::vector< std::string > args) |
static Result< void > | ConsumeFlagsImpl (const std::vector< Flag > &flags, std::vector< std::string > &args) |
static Result< void > | ConsumeFlagsImpl (const std::vector< Flag > &flags, std::vector< std::string > &&args) |
Result< void > | ConsumeFlags (const std::vector< Flag > &flags, std::vector< std::string > &args, const bool recognize_end_of_option_mark) |
Result< void > | ConsumeFlags (const std::vector< Flag > &flags, std::vector< std::string > &&args, const bool recognize_end_of_option_mark) |
Result< void > | ConsumeFlagsConstrained (const std::vector< Flag > &flags, std::vector< std::string > &args) |
Result< void > | ConsumeFlagsConstrained (const std::vector< Flag > &flags, std::vector< std::string > &&args) |
bool | WriteGflagsCompatXml (const std::vector< Flag > &flags, std::ostream &out) |
Flag | VerbosityFlag (android::base::LogSeverity &value) |
Flag | HelpFlag (const std::vector< Flag > &flags, std::string text) |
static Result< void > | GflagsCompatBoolFlagSetter (const std::string &name, bool &value, const FlagMatch &match) |
static Flag | GflagsCompatBoolFlagBase (const std::string &name) |
Flag | HelpXmlFlag (const std::vector< Flag > &flags, std::ostream &out, bool &value, std::string text) |
Flag | InvalidFlagGuard () |
Flag | UnexpectedArgumentGuard () |
Flag | GflagsCompatFlag (const std::string &name) |
Flag | GflagsCompatFlag (const std::string &name, std::string &value) |
template<typename T > | |
std::optional< T > | ParseInteger (const std::string &value) |
template<typename T > | |
static Flag | GflagsCompatNumericFlagGeneric (const std::string &name, T &value) |
Flag | GflagsCompatFlag (const std::string &name, int32_t &value) |
template<typename T > | |
static Flag | GflagsCompatUnsignedNumericFlagGeneric (const std::string &name, T &value) |
Flag | GflagsCompatFlag (const std::string &name, std::size_t &value) |
Flag | GflagsCompatFlag (const std::string &name, bool &value) |
Flag | GflagsCompatFlag (const std::string &name, std::vector< std::string > &value) |
Flag | GflagsCompatFlag (const std::string &name, std::vector< bool > &value, const bool default_value) |
Result< bool > | HasHelpFlag (const std::vector< std::string > &args) |
Flag | GflagsCompatFlag (const std::string &name, std::int32_t &value) |
TEST (FlagParser, DuplicateAlias) | |
TEST (FlagParser, ConflictingAlias) | |
TEST (FlagParser, StringFlag) | |
TEST (FlagParser, NormalizedStringFlag) | |
std::optional< std::map< std::string, std::string > > | flagXml (const Flag &f) |
TEST (FlagParser, GflagsIncompatibleFlag) | |
TEST (FlagParser, StringFlagXml) | |
TEST (FlagParser, RepeatedStringFlag) | |
TEST (FlagParser, RepeatedListFlag) | |
TEST (FlagParser, FlagRemoval) | |
TEST (FlagParser, IntFlag) | |
TEST (FlagParser, IntFlagXml) | |
TEST (FlagParser, BoolFlag) | |
TEST (FlagParser, BoolFlagXml) | |
TEST (FlagParser, StringIntFlag) | |
TEST (FlagParser, StringVectorFlag) | |
TEST (FlagParser, BoolVectorFlag) | |
TEST (FlagParser, InvalidStringFlag) | |
TEST (FlagParser, InvalidIntFlag) | |
TEST (FlagParser, VerbosityFlag) | |
TEST (FlagParser, InvalidVerbosityFlag) | |
TEST (FlagParser, InvalidFlagGuard) | |
TEST (FlagParser, UnexpectedArgumentGuard) | |
TEST (FlagParser, EndOfOptionMark) | |
TEST (FlagParser, ConsumesConstrainedEquals) | |
TEST (FlagParser, ConsumesConstrainedSeparated) | |
TEST_F (FlagConsumesArbitraryTest, NoValues) | |
TEST_F (FlagConsumesArbitraryTest, OneValue) | |
TEST_F (FlagConsumesArbitraryTest, TwoValues) | |
TEST_F (FlagConsumesArbitraryTest, NoValuesOtherFlag) | |
TEST_F (FlagConsumesArbitraryTest, OneValueOtherFlag) | |
TEST_F (FlagConsumesArbitraryTest, TwoValuesOtherFlag) | |
Result< void > | ValidateSetupWizardMode (const std::string &setupwizard_mode) |
bool | InSandbox () |
std::vector< std::string > | GetCreatedFileListFromInotifyFd (int fd) |
std::vector< std::string > | GetFileListFromInotifyFd (int fd, uint32_t mask) |
Result< Json::Value > | ParseJson (std::string_view input) |
Result< Json::Value > | LoadFromFile (SharedFD json_fd) |
Result< Json::Value > | LoadFromFile (const std::string &path_to_file) |
template<typename T > | |
Result< T > | As (const Json::Value &v) |
template<> | |
Result< int > | As (const Json::Value &v) |
template<> | |
Result< std::string > | As (const Json::Value &v) |
template<> | |
Result< bool > | As (const Json::Value &v) |
template<> | |
Result< Json::Value > | As (const Json::Value &v) |
template<typename T > | |
Result< T > | GetValue (const Json::Value &root, const std::vector< std::string > &selectors) |
template<typename T > | |
Result< std::vector< T > > | GetArrayValues (const Json::Value &array, const std::vector< std::string > &selectors) |
bool | HasValue (const Json::Value &root, const std::vector< std::string > &selectors) |
std::string | TempDir () |
bool | NetworkInterfaceExists (const std::string &interface_name) |
std::string | MacAddressToString (const std::uint8_t mac[6]) |
std::string | Ipv6ToString (const std::uint8_t ip[16]) |
void | GenerateMobileMacForInstance (int index, std::uint8_t out[6]) |
void | GenerateEthMacForInstance (int index, std::uint8_t out[6]) |
void | GenerateWifiMacForInstance (int index, std::uint8_t out[6]) |
void | GenerateCorrespondingIpv6ForMac (const std::uint8_t mac[6], std::uint8_t out[16]) |
static Result< uid_t > | FileOwnerUid (const std::string &file_path) |
static Result< ProcStatusUids > | OwnerUids (const pid_t pid) |
static std::string | PidDirPath (const pid_t pid) |
static Result< std::string > | ReadAll (const std::string &file_path) |
static std::vector< std::string > | TokenizeByNullChar (const std::string &input) |
Result< std::vector< pid_t > > | CollectPids (const uid_t uid) |
Result< std::vector< std::string > > | GetCmdArgs (const pid_t pid) |
Result< std::string > | GetExecutablePath (const pid_t pid) |
static Result< void > | CheckExecNameFromStatus (const std::string &exec_name, const pid_t pid) |
Result< std::vector< pid_t > > | CollectPidsByExecName (const std::string &exec_name, const uid_t uid) |
Result< std::vector< pid_t > > | CollectPidsByExecPath (const std::string &exec_path, const uid_t uid) |
Result< std::vector< pid_t > > | CollectPidsByArgv0 (const std::string &expected_argv0, const uid_t uid) |
Result< uid_t > | OwnerUid (const pid_t pid) |
Result< std::unordered_map< std::string, std::string > > | GetEnvs (const pid_t pid) |
Result< ProcInfo > | ExtractProcInfo (const pid_t pid) |
Result< pid_t > | Ppid (const pid_t pid) |
TEST (ProcFileUid, SelfUidTest) | |
TEST (ProcFilePid, CurrentPidCollected) | |
std::string | ResultErrorFormat (bool color) |
template<typename T > | |
T | OutcomeDereference (std::optional< T > &&value) |
template<typename T > | |
std::conditional_t< std::is_void_v< T >, bool, T > | OutcomeDereference (Result< T > &&result) |
template<typename T > | |
std::enable_if< std::is_convertible_v< T, bool >, T >::type | OutcomeDereference (T &&value) |
bool | TypeIsSuccess (bool value) |
template<typename T > | |
bool | TypeIsSuccess (std::optional< T > &value) |
template<typename T > | |
bool | TypeIsSuccess (Result< T > &value) |
template<typename T > | |
bool | TypeIsSuccess (Result< T > &&value) |
auto | ErrorFromType (bool) |
template<typename T > | |
auto | ErrorFromType (std::optional< T >) |
template<typename T > | |
auto | ErrorFromType (Result< T > &value) |
template<typename T > | |
auto | ErrorFromType (Result< T > &&value) |
MATCHER (IsOk, "an ok result") | |
MATCHER (IsError, "an error result") | |
MATCHER_P (IsOkAndValue, result_value_matcher, "") | |
MATCHER_P (IsErrorAndMessage, message_matcher, "") | |
TEST (ResultTest, ExpectBoolGoodNoMessage) | |
TEST (ResultTest, ExpectBoolGoodWithMessage) | |
TEST (ResultTest, ExpectBoolBadNoMessage) | |
TEST (ResultTest, ExpectBoolBadWithMessage) | |
TEST (ResultTest, ExpectWithResultGoodNoMessage) | |
TEST (ResultTest, ExpectWithResultGoodWithMessage) | |
TEST (ResultTest, ExpectWithResultBadNoMessage) | |
TEST (ResultTest, ExpectWithResultBadWithMessage) | |
TEST (ResultTest, ExpectEqGoodNoMessage) | |
TEST (ResultTest, ExpectEqGoodWithMessage) | |
TEST (ResultTest, ExpectEqBadNoMessage) | |
TEST (ResultTest, ExpectEqBadWithMessage) | |
static Result< void > | Set (const FlagMatch &match, SharedFD &out) |
Flag | SharedFDFlag (SharedFD &out) |
Flag | SharedFDFlag (const std::string &name, SharedFD &out) |
void | ChangeSignalHandlers (void(*handler)(int), std::vector< int > signals) |
constexpr uint64_t | AlignToPowerOf2 (uint64_t val, uint8_t align_log) |
void | Proxy (SharedFD server, std::function< SharedFD()> conn_factory) |
std::unique_ptr< ProxyServer > | ProxyAsync (SharedFD server, std::function< SharedFD()> conn_factory) |
std::vector< std::string > | ArgsToVec (char **argv) |
std::unordered_map< std::string, std::string > | EnvpToMap (char **envp) |
static Result< void > | SendSignalImpl (const int signal, const pid_t pid, bool to_group, const bool started) |
StopperResult | KillSubprocess (Subprocess *subprocess) |
SubprocessStopper | KillSubprocessFallback (std::function< StopperResult()> nice) |
SubprocessStopper | KillSubprocessFallback (SubprocessStopper nice_stopper) |
std::ostream & | operator<< (std::ostream &out, const Command &command) |
int | Execute (const std::vector< std::string > &commands, const std::vector< std::string > &envs) |
int | Execute (const std::vector< std::string > &commands) |
Result< siginfo_t > | Execute (const std::vector< std::string > &commands, SubprocessOptions subprocess_options, int wait_options) |
Result< siginfo_t > | Execute (const std::vector< std::string > &commands, const std::vector< std::string > &envs, SubprocessOptions subprocess_options, int wait_options) |
int | RunWithManagedStdio (Command cmd_tmp, const std::string *stdin_str, std::string *stdout_str, std::string *stderr_str, SubprocessOptions options) |
Result< std::string > | RunAndCaptureStdout (Command command) |
void | AppendInNetworkByteOrder (Message *msg, const std::uint8_t b) |
void | AppendInNetworkByteOrder (Message *msg, const std::uint16_t s) |
void | AppendInNetworkByteOrder (Message *msg, const std::uint32_t w) |
void | AppendInNetworkByteOrder (Message *msg, const std::int32_t w) |
void | AppendInNetworkByteOrder (Message *msg, const std::string &str) |
void | AppendToMessage (Message *) |
template<typename T , typename... Ts> | |
void | AppendToMessage (Message *msg, T v, Ts... vals) |
template<typename... Ts> | |
Message | CreateMessage (Ts... vals) |
std::string | FromSeverity (const android::base::LogSeverity severity) |
Result< LogSeverity > | ToSeverity (const std::string &value) |
static LogSeverity | GuessSeverity (const std::string &env_var, LogSeverity default_value) |
LogSeverity | ConsoleSeverity () |
LogSeverity | LogFileSeverity () |
static std::pair< int, int > | CountSizeAndNewLines (const char *message) |
template<typename F , typename... Args> | |
static void | SplitByLines (const char *msg, const F &log_function, Args &&... args) |
std::string | StderrOutputGenerator (const struct tm &now, int pid, uint64_t tid, LogSeverity severity, const char *tag, const char *file, unsigned int line, const char *message) |
std::string | StripColorCodes (const std::string &str) |
static std::vector< SeverityTarget > | SeverityTargetsForFiles (const std::vector< std::string > &files) |
TeeLogger | LogToStderr (const std::string &log_prefix, MetadataLevel stderr_level, std::optional< android::base::LogSeverity > stderr_severity) |
TeeLogger | LogToFiles (const std::vector< std::string > &files, const std::string &log_prefix) |
TeeLogger | LogToStderrAndFiles (const std::vector< std::string > &files, const std::string &log_prefix, MetadataLevel stderr_level, std::optional< android::base::LogSeverity > stderr_severity) |
std::string | StderrOutputGenerator (const struct tm &now, int pid, uint64_t tid, android::base::LogSeverity severity, const char *tag, const char *file, unsigned int line, const char *message) |
template<typename T > | |
constexpr std::string_view | TypeName () |
template<auto T> | |
constexpr std::string_view | ValueName () |
TEST_P (OneEachTest, GetAnyAvailableOne) | |
INSTANTIATE_TEST_SUITE_P (CvdIdAllocator, OneEachTest, testing::Values(std::vector< unsigned >{}, std::vector< unsigned >{1}, std::vector< unsigned >{1, 22, 3, 43, 5})) | |
TEST_F (CvdIdAllocatorTest, ClaimAll) | |
TEST_F (CvdIdAllocatorTest, StrideBeyond) | |
TEST_F (CvdIdAllocatorTest, Consecutive) | |
TEST_F (CvdIdAllocatorTest, Take) | |
TEST_F (CvdIdAllocatorTest, TakeAll) | |
TEST_F (CvdIdAllocatorTest, TakeRange) | |
TEST_F (CvdIdAllocatorTest, Reclaim) | |
TEST (CvdIdAllocatorExpandTest, Expand) | |
SharedFD | CreateMemFDWithData (const std::string &data) |
std::string | ReadAllFDData (SharedFD fd) |
TEST (UnixSocketMessage, ExtractFileDescriptors) | |
std::pair< UnixMessageSocket, UnixMessageSocket > | UnixMessageSocketPair () |
TEST (UnixMessageSocket, SendPlainMessage) | |
TEST (UnixMessageSocket, SendFileDescriptor) | |
TEST (UnixMessageSocket, SendTwoFileDescriptors) | |
TEST (UnixMessageSocket, SendCredentials) | |
TEST (UnixMessageSocket, BadCredentialsBlocked) | |
TEST (UnixMessageSocket, AutoCredentials) | |
gid_t | GroupIdFromName (const std::string &group_name) |
bool | InGroup (const std::string &group) |
Result< std::string > | SystemWideUserHome () |
Result< std::string > | CurrentUserName () |
Result< void > | WaitForUnixSocket (const std::string &path, int timeoutSec) |
Result< void > | WaitForUnixSocketListeningWithoutConnect (const std::string &path, int timeoutSec) |
static Result< std::string > | InterfaceName (const CuttlefishConfig::InstanceSpecific &instance, const std::string &name) |
Result< IfaceConfig > | DefaultNetworkInterfaces (const CuttlefishConfig::InstanceSpecific &instance) |
std::optional< IfaceConfig > | AllocateNetworkInterfaces () |
Result< int > | AssembleCvdMain (int argc, char **argv) |
void | PackRamdisk (const std::string &ramdisk_stage_dir, const std::string &output_ramdisk) |
void | UnpackRamdisk (const std::string &original_ramdisk_path, const std::string &ramdisk_stage_dir) |
Result< std::string > | UnpackBootImage (const std::string &boot_image_path, const std::string &unpack_dir) |
bool | UnpackVendorBootImageIfNotUnpacked (const std::string &vendor_boot_image_path, const std::string &unpack_dir) |
Result< void > | RepackBootImage (const Avb &avb, const std::string &new_kernel_path, const std::string &boot_image_path, const std::string &new_boot_image_path, const std::string &build_dir) |
bool | RepackVendorBootImage (const std::string &new_ramdisk, const std::string &vendor_boot_image_path, const std::string &new_vendor_boot_image_path, const std::string &unpack_dir, bool bootconfig_supported) |
bool | RepackVendorBootImageWithEmptyRamdisk (const std::string &vendor_boot_image_path, const std::string &new_vendor_boot_image_path, const std::string &unpack_dir, bool bootconfig_supported) |
void | RepackGem5BootImage (const std::string &initrd_path, const std::optional< BootConfigPartition > &bootconfig_partition, const std::string &unpack_dir, const std::string &input_ramdisk_path) |
Result< std::string > | ReadAndroidVersionFromBootImage (const std::string &boot_image_path) |
Result< std::unordered_map< std::string, std::string > > | BootconfigArgsFromConfig (const CuttlefishConfig &config, const CuttlefishConfig::InstanceSpecific &instance) |
Result< std::string > | BootconfigArgsString (const std::unordered_map< std::string, std::string > &args, const std::string &separator) |
Result< void > | CleanPriorFiles (const std::set< std::string > &preserving, const std::vector< std::string > &clean_dirs) |
static uint64_t | AvailableSpaceAtPath (const std::string &path) |
Result< void > | CreateDynamicDiskFiles (const FetcherConfig &fetcher_config, const CuttlefishConfig &config, const SystemImageDirFlag &system_image_dir) |
Result< void > | InitializeAccessKregistryImage (const CuttlefishConfig::InstanceSpecific &instance) |
std::vector< ImagePartition > | AndroidCompositeDiskConfig (const CuttlefishConfig::InstanceSpecific &instance, const MetadataImage &metadata_image, const MiscImage &misc_image, const SystemImageDirFlag &system_image_dir) |
std::vector< ImagePartition > | AndroidEfiLoaderCompositeDiskConfig (const CuttlefishConfig::InstanceSpecific &instance, const MetadataImage &metadata, const MiscImage &misc, const SystemImageDirFlag &system_image_dir) |
DiskBuilder | ApCompositeDiskBuilder (const CuttlefishConfig &config, const CuttlefishConfig::InstanceSpecific &instance) |
Result< void > | BootloaderPresentCheck (const CuttlefishConfig::InstanceSpecific &instance) |
std::vector< ImagePartition > | ChromeOsCompositeDiskConfig (const CuttlefishConfig::InstanceSpecific &instance, const ChromeOsStateImage &chrome_os_state) |
std::vector< ImagePartition > | FuchsiaCompositeDiskConfig (const CuttlefishConfig::InstanceSpecific &instance) |
Result< void > | Gem5ImageUnpacker (const CuttlefishConfig &config) |
Result< void > | InitializeHwcomposerPmemImage (const CuttlefishConfig::InstanceSpecific &instance) |
Result< void > | RepackKernelRamdisk (const CuttlefishConfig &config, const CuttlefishConfig::InstanceSpecific &instance, const Avb &avb) |
std::vector< ImagePartition > | LinuxCompositeDiskConfig (const CuttlefishConfig::InstanceSpecific &instance) |
DiskBuilder | OsCompositeDiskBuilder (const CuttlefishConfig &config, const CuttlefishConfig::InstanceSpecific &instance, const std::optional< ChromeOsStateImage > &chrome_os_state, const MetadataImage &metadata, const MiscImage &misc, const SystemImageDirFlag &system_image_dir) |
Result< void > | InitializePflash (const CuttlefishConfig::InstanceSpecific &instance) |
Result< void > | InitializePstore (const CuttlefishConfig::InstanceSpecific &instance) |
Result< void > | InitializeSdCard (const CuttlefishConfig &config, const CuttlefishConfig::InstanceSpecific &instance) |
Result< void > | VbmetaEnforceMinimumSize (const CuttlefishConfig::InstanceSpecific &instance) |
static std::chrono::system_clock::time_point | LastUpdatedInputDisk (const std::vector< ImagePartition > &partitions) |
Result< void > | DiskImageFlagsVectorization (CuttlefishConfig &config, const FetcherConfig &fetcher_config, const AndroidEfiLoaderFlag &android_efi_loader, const BootImageFlag &boot_image, const BootloaderFlag &bootloader, const InitramfsPathFlag &initramfs_path, const KernelPathFlag &kernel_path, const SuperImageFlag &super_image, const SystemImageDirFlag &system_image_dir, const VendorBootImageFlag &vendor_boot_image) |
fruit::Component< DisplaysConfigs > | DisplaysConfigsComponent () |
fruit::Component< fruit::Required< DisplaysConfigs, ConfigFlag >, DisplaysConfigsFlag > | DisplaysConfigsFlagComponent () |
fruit::Component< fruit::Required< DisplaysConfigs >, DisplaysConfigsFragment > | DisplaysConfigsFragmentComponent () |
static std::string | XmlEscape (const std::string &s) |
fruit::Component< fruit::Required< ConfigFlag >, ParseGflags > | GflagsComponent () |
Result< CuttlefishConfig > | InitializeCuttlefishConfiguration (const std::string &root_dir, const std::vector< GuestConfig > &guest_configs, fruit::Injector<> &injector, const FetcherConfig &fetcher_config, const BootImageFlag &boot_image, const InitramfsPathFlag &initramfs_path, const KernelPathFlag &kernel_path, const SuperImageFlag &super_image, const SystemImageDirFlag &system_image_dir, const VendorBootImageFlag &vendor_boot_image, const VmManagerFlag &vm_manager_flag) |
Result< void > | SetDefaultFlagsForCrosvm (const SystemImageDirFlag &system_image_dir, const std::vector< GuestConfig > &guest_configs, std::map< std::string, std::string > &name_to_default_value) |
void | SetDefaultFlagsForGem5 () |
void | SetDefaultFlagsForOpenwrt (Arch target_arch) |
Result< void > | SetFlagDefaultsForVmm (const std::vector< GuestConfig > &guest_configs, const SystemImageDirFlag &system_image_dir, const VmManagerFlag &vm_manager_flag) |
std::string | GetConfigFilePath (const CuttlefishConfig &config) |
gfxstream::proto::GraphicsAvailability | GetGraphicsAvailabilityWithSubprocessCheck () |
Result< std::string > | ConfigureGpuSettings (const gfxstream::proto::GraphicsAvailability &graphics_availability, const std::string &gpu_mode_arg, const std::string &gpu_vhost_user_mode_arg, const std::string &gpu_renderer_features_arg, std::string &gpu_context_types_arg, const std::string &guest_hwui_renderer_arg, const std::string &guest_renderer_preload_arg, VmmMode vmm, const GuestConfig &guest_config, CuttlefishConfig::MutableInstanceSpecific &instance) |
Result< std::vector< GuestConfig > > | ReadGuestConfig (const BootImageFlag &boot_image, const KernelPathFlag &kernel_path, const SystemImageDirFlag &system_image_dir) |
bool | IsKernelModuleSigned (const char *path) |
constexpr bool | IsKernelModuleSigned (const std::string &path) |
Result< MiscInfo > | GetCombinedDynamicPartitions (const MiscInfo &vendor_info, const MiscInfo &system_info, const std::set< std::string > &extracted_images) |
Result< MiscInfo > | MergeMiscInfos (const MiscInfo &vendor_info, const MiscInfo &system_info, const MiscInfo &combined_dp_info, const std::vector< std::string > &system_partitions) |
Result< VbmetaArgs > | GetVbmetaArgs (const MiscInfo &misc_info, const std::string &image_path) |
Result< void > | ConfigureNetworkSettings (const std::string &ril_dns_arg, const CuttlefishConfig::InstanceSpecific &const_instance, CuttlefishConfig::MutableInstanceSpecific &instance) |
Result< void > | ResolveInstanceFiles (const BootImageFlag &boot_image, const InitramfsPathFlag &initramfs_path, const KernelPathFlag &kernel_path, const SuperImageFlag &super_image, const SystemImageDirFlag &system_image_dir, const VendorBootImageFlag &vendor_boot_image) |
Result< void > | RebuildSuperImageIfNecessary (const FetcherConfig &fetcher_config, const CuttlefishConfig::InstanceSpecific &instance) |
Result< bool > | SuperImageNeedsRebuilding (const FetcherConfig &fetcher_config, const std::string &default_target_zip, const std::string &system_target_zip) |
fruit::Component< TouchpadsConfigs > | TouchpadsConfigsComponent () |
fruit::Component< fruit::Required< TouchpadsConfigs, ConfigFlag >, TouchpadsConfigsFlag > | TouchpadsConfigsFlagComponent () |
TEST (DisplayConfigTest, ParseProto) | |
Result< void > | BuildDlkmImage (const std::string &src_dir, const bool is_erofs, const std::string &partition_name, const std::string &output_image) |
Result< void > | RepackSuperWithPartition (const std::string &superimg_path, const std::string &image_path, const std::string &partition_name) |
Result< void > | BuildVbmetaImage (const std::string &image_path, const std::string &vbmeta_path) |
std::vector< std::string > | Dedup (std::vector< std::string > &&vec) |
bool | SplitRamdiskModules (const std::string &ramdisk_path, const std::string &ramdisk_stage_dir, const std::string &vendor_dlkm_build_dir, const std::string &system_dlkm_build_dir) |
bool | FileEquals (const std::string &file1, const std::string &file2) |
bool | MoveIfChanged (const std::string &src, const std::string &dst) |
Result< bool > | WriteFsConfig (const char *output_path, const std::string &fs_root, const std::string &mount_point) |
Result< std::vector< uint8_t > > | WithCrc16A (const std::vector< uint8_t > &data) |
Result< std::vector< uint8_t > > | WithCrc16B (const std::vector< uint8_t > &data) |
Result< std::vector< uint8_t > > | HexToBytes (const std::string &hex_string) |
int | ConsoleForwarderMain (int argc, char **argv) |
template<typename ProtoType > | |
Result< ProtoType > | ParseTextProtoConfigHelper (const std::string &config_path) |
Result< const std::string > | GetDefaultConfigFile () |
Result< AcloudConfig > | LoadAcloudConfig (const std::string &user_config_path) |
Result< void > | EmptyCache (const std::string &cache_directory) |
Result< std::size_t > | GetCacheSize (const std::string &cache_directory) |
Result< PruneResult > | PruneCache (const std::string &cache_directory, const std::size_t allowed_size_gb) |
std::unique_ptr< CvdCommandHandler > | NewAcloudCommand (CommandSequenceExecutor &executor) |
bool | IsSubOperationSupported (const CommandRequest &request) |
Result< void > | PrepareForAcloudDeleteCommand (const std::string &host_artifacts) |
Result< std::string > | FindMiscInfo (const std::string &image_dir) |
Result< std::string > | FindImageDir (const std::string &image_dir) |
Result< std::string > | GetImageForPartition (std::string const &partition_name, std::string const &image_dir, const std::map< std::string, std::string > &image_paths) |
Result< void > | _RewriteMiscInfo (const std::string &output_file, const std::string &input_file, const std::string &lpmake_path, const std::function< Result< std::string >(const std::string &)> &get_image) |
std::unique_ptr< CvdCommandHandler > | NewAcloudMixSuperImageCommand () |
std::unique_ptr< CvdCommandHandler > | NewAcloudTranslatorCommand (InstanceManager &instance_manager) |
std::unique_ptr< CvdCommandHandler > | NewCvdBugreportCommandHandler (InstanceManager &instance_manager) |
std::unique_ptr< CvdCommandHandler > | NewCvdCacheCommandHandler () |
std::unique_ptr< CvdCommandHandler > | NewCvdClearCommandHandler (InstanceManager &instance_manager) |
std::unique_ptr< CvdCommandHandler > | NewCvdCmdlistHandler (CommandSequenceExecutor &executor) |
std::unique_ptr< CvdCommandHandler > | NewCvdCreateCommandHandler (InstanceManager &instance_manager, CommandSequenceExecutor &executor, InstanceLockFileManager &lock_manager) |
std::unique_ptr< CvdCommandHandler > | NewCvdDisplayCommandHandler (InstanceManager &instance_manager) |
std::unique_ptr< CvdCommandHandler > | NewCvdEnvCommandHandler (InstanceManager &instance_manager) |
std::unique_ptr< CvdCommandHandler > | NewCvdFetchCommandHandler () |
std::unique_ptr< CvdCommandHandler > | NewCvdFleetCommandHandler (InstanceManager &instance_manager) |
std::unique_ptr< CvdCommandHandler > | NewCvdHelpHandler (const std::vector< std::unique_ptr< CvdCommandHandler > > &server_handlers) |
std::unique_ptr< CvdCommandHandler > | NewLintCommand () |
std::unique_ptr< CvdCommandHandler > | NewLoadConfigsCommand (CommandSequenceExecutor &executor, InstanceManager &instance_manager) |
std::unique_ptr< CvdCommandHandler > | NewLoginCommand () |
std::unique_ptr< CvdCommandHandler > | NewCvdNoopHandler () |
std::unique_ptr< CvdCommandHandler > | NewCvdDevicePowerBtnCommandHandler (InstanceManager &instance_manager) |
std::unique_ptr< CvdCommandHandler > | NewCvdDevicePowerwashCommandHandler (InstanceManager &instance_manager) |
std::unique_ptr< CvdCommandHandler > | NewRemoveCvdCommandHandler (InstanceManager &instance_manager) |
std::unique_ptr< CvdCommandHandler > | NewCvdResetCommandHandler (InstanceManager &instance_manager) |
std::unique_ptr< CvdCommandHandler > | NewCvdDeviceRestartCommandHandler (InstanceManager &instance_manager) |
std::unique_ptr< CvdCommandHandler > | NewCvdSnapshotCommandHandler (InstanceManager &instance_manager) |
static Result< void > | ConsumeDaemonModeFlag (cvd_common::Args &args) |
static Result< void > | CvdResetGroup (const LocalInstanceGroup &group) |
std::unique_ptr< CvdCommandHandler > | NewCvdStartCommandHandler (InstanceManager &instance_manager) |
std::unique_ptr< CvdCommandHandler > | NewCvdStatusCommandHandler (InstanceManager &instance_manager) |
std::unique_ptr< CvdCommandHandler > | NewCvdStopCommandHandler (InstanceManager &instance_manager) |
std::unique_ptr< CvdCommandHandler > | NewTryAcloudCommand () |
std::unique_ptr< CvdCommandHandler > | NewCvdVersionHandler () |
Result< cvd_common::Args > | ExtractCvdArgs (cvd_common::Args &args) |
TEST (FrontlineParserTest, SelectorArgs) | |
std::vector< std::string > | MergeResults (std::vector< std::string > first_list, std::vector< std::string > scond_list) |
void | MergeTwoJsonObjs (Json::Value &dst, const Json::Value &src) |
This function merges two json objects and override json tree in dst with src json keys. More... | |
template<typename T > | |
std::string | GenerateFlag (const std::string &name, const T &value) |
template<typename T > | |
std::string | GenerateVecFlag (const std::string &name, const T &collection) |
template<typename T > | |
std::string | GenerateInstanceFlag (const std::string &name, const cvd::config::EnvironmentSpecification &config, T callback) |
template<typename T > | |
Result< std::string > | ResultInstanceFlag (const std::string &name, const cvd::config::EnvironmentSpecification &config, T callback) |
Result< std::vector< std::string > > | GenerateInstancesFlags (const EnvironmentSpecification &cfg) |
Result< std::vector< std::string > > | GenerateInstancesFlags (const cvd::config::EnvironmentSpecification &cfg) |
Result< EnvironmentSpecification > | ValidateCfConfigs (const Json::Value &root) |
std::vector< std::string > | GenerateMetricsFlags (const EnvironmentSpecification &config) |
std::vector< std::string > | GenerateMetricsFlags (const cvd::config::EnvironmentSpecification &) |
TEST (FlagsInheritanceTest, MergeTwoIndependentJson) | |
TEST (FlagsInheritanceTest, MergeTwoOverlappedJson) | |
Result< std::vector< std::string > > | ParseFetchCvdConfigs (const EnvironmentSpecification &config, const std::string &target_directory, const std::vector< std::string > &target_subdirectories) |
Result< std::vector< std::string > > | ParseFetchCvdConfigs (const cvd::config::EnvironmentSpecification &, const std::string &target_directory, const std::vector< std::string > &target_subdirectories) |
TEST (FlagsParserTest, ParseInvalidJson) | |
TEST (FlagsParserTest, ParseJsonWithSpellingError) | |
TEST (FlagsParserTest, ParseBasicJsonSingleInstances) | |
TEST (FlagsParserTest, ParseBasicJsonTwoInstances) | |
TEST (BootFlagsParserTest, ParseNetSimFlagEmptyJson) | |
TEST (BootFlagsParserTest, ParseNetSimFlagEnabled) | |
TEST (BootFlagsParserTest, ParseTwoInstancesBootAnimationFlagEmptyJson) | |
TEST (BootFlagsParserTest, ParseTwoInstancesBootAnimationFlagPartialJson) | |
TEST (BootFlagsParserTest, ParseTwoInstancesBootAnimationFlagFullJson) | |
TEST (BootFlagsParserTest, ParseTwoInstancesSerialNumberFlagEmptyJson) | |
TEST (BootFlagsParserTest, ParseTwoInstancesSerialNumberFlagPartialJson) | |
TEST (BootFlagsParserTest, ParseTwoInstancesSerialNumberFlagFullJson) | |
TEST (BootFlagsParserTest, ParseTwoInstancesEnforceSecurityFlagEmptyJson) | |
TEST (BootFlagsParserTest, ParseTwoInstancesEnforceSecurityFlagPartialJson) | |
TEST (BootFlagsParserTest, ParseTwoInstancesEnforceSecurityFlagFullJson) | |
static bool | EnableBootAnimation (const Instance &instance) |
static Result< std::string > | BootCfgArgs (const Instance &instance) |
Result< std::vector< std::string > > | GenerateBootFlags (const EnvironmentSpecification &cfg) |
Result< std::vector< std::string > > | GenerateBootFlags (const cvd::config::EnvironmentSpecification &) |
static std::string | VsockGuestGroup (const Instance &instance) |
std::vector< std::string > | GenerateConnectivityFlags (const EnvironmentSpecification &cfg) |
std::vector< std::string > | GenerateConnectivityFlags (const cvd::config::EnvironmentSpecification &) |
std::vector< std::string > | GenerateDiskFlags (const EnvironmentSpecification &config) |
std::vector< std::string > | GenerateDiskFlags (const cvd::config::EnvironmentSpecification &) |
Result< std::optional< std::string > > | GenerateDisplayFlag (const EnvironmentSpecification &cfg) |
bool | RecordScreen (const Instance &instance) |
std::string | GpuMode (const Instance &instance) |
Result< std::vector< std::string > > | GenerateGraphicsFlags (const EnvironmentSpecification &cfg) |
Result< std::vector< std::string > > | GenerateGraphicsFlags (const cvd::config::EnvironmentSpecification &) |
std::vector< std::string > | GenerateSecurityFlags (const EnvironmentSpecification &cfg) |
std::vector< std::string > | GenerateSecurityFlags (const cvd::config::EnvironmentSpecification &cfg) |
std::string | DeviceId (const Instance &instance) |
std::vector< std::string > | GenerateStreamingFlags (const EnvironmentSpecification &cfg) |
std::vector< std::string > | GenerateStreamingFlags (const cvd::config::EnvironmentSpecification &) |
static std::string | VmManager (const Instance &instance) |
static std::uint32_t | Cpus (const Instance &instance) |
static std::uint32_t | MemoryMb (const Instance &instance) |
static bool | UseSdcard (const Instance &instance) |
static Result< std::string > | SetupWizardMode (const Instance &instance) |
static std::string | Uuid (const Instance &instance) |
static bool | EnableSandbox (const Instance &instance) |
static bool | SimpleMediaDevice (const Instance &instance) |
static std::string | V4l2Proxy (const Instance &instance) |
static Result< std::string > | CustomConfigsFlagValue (const Instance &instance) |
static Result< std::vector< std::string > > | CustomConfigsFlags (const EnvironmentSpecification &cfg) |
Result< std::vector< std::string > > | GenerateVmFlags (const EnvironmentSpecification &cfg) |
Result< std::vector< std::string > > | GenerateVmFlags (const cvd::config::EnvironmentSpecification &) |
TEST (BootFlagsParserTest, ParseTwoInstancesBlankDataImageEmptyJson) | |
TEST (BootFlagsParserTest, ParseTwoInstancesBlankDataImagePartialJson) | |
TEST (BootFlagsParserTest, ParseTwoInstancesBlankDataImageFullJson) | |
static void | AssertProtoEquals (const Message &expected, const Message &actual) |
InstanceDisplays | DefaultDisplays () |
Result< std::optional< InstancesDisplays > > | DisplaysFlag (std::vector< std::string > args) |
TEST (BootFlagsParserTest, ParseTwoInstancesDisplaysFlagEmptyJson) | |
TEST (BootFlagsParserTest, ParseTwoInstancesDisplaysFlagEmptyGraphics) | |
TEST (BootFlagsParserTest, ParseTwoInstancesDisplaysFlagEmptyDisplays) | |
TEST (BootFlagsParserTest, ParseTwoInstancesAutoTabletDisplaysFlag) | |
TEST (VmFlagsParserTest, ParseTwoInstancesCpuFlagEmptyJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesCpuFlagPartialJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesQemu) | |
TEST (VmFlagsParserTest, ParseTwoInstancesCpuFlagFullJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesMemoryFlagEmptyJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesMemoryFlagPartialJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesMemoryFlagFullJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesSdCardFlagEmptyJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesSdCardFlagPartialJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesSdCardFlagFullJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesVmManagerFlagEmptyJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesVmManagerFlagDefault) | |
TEST (VmFlagsParserTest, ParseOneInstanceSetupWizardInvalidValue) | |
TEST (VmFlagsParserTest, ParseTwoInstancesSetupWizardFlagEmptyJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesSetupWizardFlagPartialJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesSetupWizardFlagFullJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesUuidFlagEmptyJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesUuidFlagPartialJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesUuidFlagFullJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesSandboxFlagEmptyJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesSandboxFlagPartialJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesSandboxFlagFullJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesSimpleMediaDeviceFlagEmptyJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesSimpleMediaDeviceFlagPartialJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesSimpleMediaDeviceFlagFullJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesV4l2ProxyFlagEmptyJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesV4l2ProxyFlagPartialJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesV4l2ProxyFlagFullJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesCustomActionsFlagEmptyJson) | |
TEST (VmFlagsParserTest, ParseTwoInstancesCustomActionsFlagPartialJson) | |
Result< std::vector< std::string > > | ParseLaunchCvdConfigs (EnvironmentSpecification launch) |
Result< std::vector< std::string > > | ParseLaunchCvdConfigs (cvd::config::EnvironmentSpecification) |
static Result< Json::Value > | LoadTemplateByName (const std::string &template_name) |
Result< EnvironmentSpecification > | ExtractLaunchTemplates (EnvironmentSpecification config) |
Result< cvd::config::EnvironmentSpecification > | ExtractLaunchTemplates (cvd::config::EnvironmentSpecification config) |
std::ostream & | operator<< (std::ostream &out, const Override &override) |
Result< LoadFlags > | GetFlags (std::vector< std::string > &args, const std::string &working_directory) |
Result< CvdFlags > | GetCvdFlags (const LoadFlags &flags) |
TEST (MetricsFlagsParserTest, ParseOneInstanceMetricsReportValidValue) | |
TEST (MetricsFlagsParserTest, ParseOneInstanceMetricsReportInvalidValue) | |
TEST (MetricsFlagsParserTest, ParseOneInstancesMetricsReportFlagEmptyJson) | |
TEST (MetricsFlagsParserTest, ParseTwoInstancesMetricsReportFlagEmptyJson) | |
std::string | InsName (const Instance &instance) |
std::vector< std::string > | ParseSelectorConfigs (const EnvironmentSpecification &config) |
std::vector< std::string > | ParseSelectorConfigs (const cvd::config::EnvironmentSpecification &) |
bool | ParseJsonString (std::string &json_text, Json::Value &root) |
bool | FindConfig (const std::vector< std::string > &vec, const std::string &element) |
bool | FindConfigIgnoreSpaces (const std::vector< std::string > &vec, const std::string &str) |
Result< std::vector< std::string > > | LaunchCvdParserTester (const Json::Value &root) |
Result< CvdCommandHandler * > | RequestHandler (const CommandRequest &request, const std::vector< std::unique_ptr< CvdCommandHandler > > &handlers) |
TEST_F (CvdFlagCollectionTest, Init) | |
TEST_F (CvdFlagCollectionTest, Leftover) | |
TEST_F (CvdFlagCollectionTest, AllGivenFlagsListed) | |
TEST (CvdFlagTest, FlagProxyFilter) | |
TEST (HostToolTarget, KnownFlags) | |
TEST (HostToolManager, KnownBins) | |
Result< void > | CheckProcessExitedNormally (siginfo_t infop, const int expected_exit_code) |
Result< Command > | ConstructCommand (const ConstructCommandParam ¶m) |
Result< Command > | ConstructCvdHelpCommand (const std::string &bin_file, cvd_common::Envs envs, const std::vector< std::string > &subcmd_args, const CommandRequest &request) |
Result< Command > | ConstructCvdGenericNonHelpCommand (const ConstructNonHelpForm &request_form, const CommandRequest &request) |
std::string | NoGroupMessage (const CommandRequest &request) |
Result< void > | DeAndroidSparse2 (const std::vector< std::string > &image_files) |
TEST_F (FetchCvdTests, CasDownloaderNotCalledIfNoFlags) | |
TEST_F (FetchCvdTests, CasDownloaderInvokedIfDownloaderPathSetOnCommandLine) | |
TEST_F (FetchCvdTests, CasDownloaderInvokedIfDownloaderPathSetInCasConfig) | |
Result< std::vector< std::string > > | ExtractImageContents (const std::string &image_filepath, const std::string &target_dir, const bool keep_archive) |
std::string | GetFetchLogsFileName (const std::string &target_directory) |
Result< std::vector< FetchResult > > | FetchCvdMain (const FetchFlags &flags) |
TEST (FetchCvdParserTests, CreatesCasDownloaderFlags) | |
template<typename T > | |
std::optional< T > | GetOptional (const std::vector< T > &vector, size_t i) |
template<typename T > | |
std::optional< T > | GetOptional (const std::vector< std::optional< T > > &vector, size_t i) |
Result< void > | FetchHostPackage (BuildApi &build_api, const Build &build, const std::string &target_dir, const bool keep_archives, const std::vector< std::string > &host_substitutions, FetchTracer::Trace trace) |
Result< void > | HostPackageSubstitution (const std::string &target_dir, const std::vector< std::string > &host_substitutions) |
Result< std::string > | GetCuttlefishConfigPath (const std::string &home) |
bool | IsValidGroupName (const std::string &token) |
bool | IsValidInstanceName (const std::string &token) |
Result< DeviceName > | BreakDeviceName (const std::string &device_name) |
bool | IsValidDeviceName (const std::string &token) |
Result< TimeStamp > | DeserializeTimePoint (const Json::Value &time_point_json) |
std::string | Format (const TimeStamp &time_point) |
static std::string | DevicePatternString (const std::unordered_map< std::string, std::set< int > > &device_to_ids_map) |
static Result< TypeAndId > | ParseMatchedLine (const std::smatch &device_string_match) |
Result< void > | KillCvdServerProcess () |
Result< void > | KillAllCuttlefishInstances (bool clear_runtime_dirs) |
Result< void > | ForcefullyStopGroup (const uid_t any_id_in_group) |
Result< std::vector< GroupProcInfo > > | CollectRunCvdGroups () |
Result< Json::Value > | FetchInstanceStatus (LocalInstance &instance, std::chrono::seconds timeout) |
bool | IsServerModeExpected (const std::string &exec_file) |
void | ImportResourcesFromRunningServer (std::vector< std::string > args) |
std::string | ServerSocketPath () |
std::string | GetUserType () |
void | PrintDataCollectionNotice (bool colorful=true) |
TEST (CvdAutoGenId, CvdTwoFollowedByFive) | |
TEST (CvdBasic, CvdDefaultStart) | |
TEST (CvdClear, ClearAfterThreeStarts) | |
TEST (CvdHelpFlagCollect, LauncCvd) | |
TEST (CvdDriver, CvdHelp) | |
TEST (CvdDriver, CvdOnly) | |
TEST (CvdDriver, CvdHelpWrong) | |
TEST (CvdSubtool, CvdStopHelp) | |
TEST (CvdSubtool, CvdStartHelp) | |
TEST (CvdInstanceIds, CvdTakenInstanceIds) | |
int | NumberOfOccurrences (const std::string &str, const std::string &substr) |
Result< std::string > | AndroidHostPath (const cvd_common::Envs &envs) |
template<typename T > | |
std::ostream & | operator<< (std::ostream &out, const std::vector< T > &v) |
Result< android::base::LogSeverity > | EncodeVerbosity (const std::string &verbosity) |
Result< std::string > | VerbosityToString (const android::base::LogSeverity verbosity) |
android::base::LogSeverity | SetMinimumVerbosity (const android::base::LogSeverity severity) |
Result< android::base::LogSeverity > | SetMinimumVerbosity (const std::string &severity) |
android::base::LogSeverity | GetMinimumVerbosity () |
std::string | CvdDir () |
std::string | PerUserDir () |
std::string | PerUserCacheDir () |
std::string | InstanceDatabasePath () |
std::string | InstanceLocksPath () |
std::string | DefaultBaseDir () |
Result< std::string > | GroupDirFromHome (std::string_view dir) |
std::string | AssemblyDirFromHome (const std::string &group_home_dir) |
template<typename... Ts> | |
Overload (Ts...) -> Overload< Ts... > | |
template<typename Ostream , typename... Args> | |
Ostream & | ConcatToStream (Ostream &out, Args &&... args) |
template<typename... Args> | |
std::string | ConcatToString (Args &&... args) |
std::optional< std::vector< FlagInfo > > | CollectFlagsFromHelpxml (const std::string &xml_str) |
Result< std::unique_ptr< InterruptListenerHandle > > | PushInterruptListener (InterruptListener listener) |
VersionIdentifiers | GetVersionIds () |
TEST (GpxParser, ParseFileNotFound) | |
TEST (GpxParser, ParseEmptyFile) | |
TEST (GpxParser, ParseEmptyString) | |
TEST (GpxParser, ParseEmptyRteTrkFile) | |
TEST (GpxParser, ParseEmptyRteTrkString) | |
TEST (GpxParser, ParseValidFile) | |
TEST (GpxParser, ParseValidString) | |
TEST (GpxParser, ParseFileNullAttributeFile) | |
TEST (GpxParser, ParseFileNullAttributeString) | |
TEST (GpxParser, ParseLocationMissingLatitudeFile) | |
TEST (GpxParser, ParseLocationMissingLatitudeString) | |
TEST (GpxParser, ParseLocationMissingLongitudeFile) | |
TEST (GpxParser, ParseLocationMissingLongitudeString) | |
TEST (GpxParser, ParseValidLocationFile) | |
TEST (GpxParser, ParseValidLocationString) | |
TEST (GpxParser, ParseValidDocumentFile) | |
TEST (GpxParser, ParseValidDocumentString) | |
TEST (KmlParser, ParseNonexistentFile) | |
TEST (KmlParser, ParseEmptyKmlFile) | |
TEST (KmlParser, ParseEmptyKmlString) | |
TEST (KmlParser, ParseValidKmlFile) | |
TEST (KmlParser, ParseValidKmlString) | |
TEST (KmlParser, ParseValidComplexFile) | |
TEST (KmlParser, ParseValidComplexString) | |
TEST (KmlParser, ParseOneCoordinateFile) | |
TEST (KmlParser, ParseOneCoordinateString) | |
TEST (KmlParser, ParseMultipleCoordinatesFile) | |
TEST (KmlParser, ParseMultipleCoordinatesString) | |
TEST (KmlParser, ParseBadCoordinatesFile) | |
TEST (KmlParser, ParseBadCoordinatesString) | |
TEST (KmlParser, ParseLocationNormalFile) | |
TEST (KmlParser, ParseLocationNormalString) | |
TEST (KmlParser, ParseLocationNormalMissingOptionalFieldsFile) | |
TEST (KmlParser, ParseLocationNormalMissingOptionalFieldsString) | |
TEST (KmlParser, ParseLocationMissingRequiredFieldsFile) | |
TEST (KmlParser, ParseLocationMissingRequiredFieldsString) | |
TEST (KmlParser, ParseLocationNameOnlyFirstFile) | |
TEST (KmlParser, ParseLocationNameOnlyFirstString) | |
TEST (KmlParser, ParseMultipleLocationsFile) | |
TEST (KmlParser, ParseMultipleLocationsString) | |
TEST (KmlParser, TraverseEmptyDocFile) | |
TEST (KmlParser, TraverseEmptyDocString) | |
TEST (KmlParser, TraverseDocNoPlacemarksFile) | |
TEST (KmlParser, TraverseDocNoPlacemarksString) | |
TEST (KmlParser, TraverseNestedDocFile) | |
TEST (KmlParser, TraverseNestedDocString) | |
TEST (KmlParser, ParsePlacemarkNullNameNoCrashFile) | |
TEST (KmlParser, ParsePlacemarkNullNameNoCrashString) | |
std::string | GetATCommand (const std::string &plmn, int32_t identifierType, int32_t protocolMessage, bool isEmergency) |
std::string | GetATCommand (int32_t connection_event, int32_t encryption, int32_t integrity, bool is_unprotected_emergency) |
Result< int > | CvdallocMain (int argc, char *argv[]) |
std::string | CvdallocInterfaceName (const std::string &name, int num) |
CuttlefishLogEvent * | sampleEvent () |
std::string | ProtoToString (LogEvent *event) |
TEST (MacAddressTest, ValidMacAddress) | |
TEST (MacAddressTest, MacAddressFormat) | |
Result< int > | MkenvimageSlimMain (int argc, char **argv) |
static int | parse_int (const std::string &snumber, int base) |
const std::pair< int, int > | kSimPinSizeRange (4, 8) |
template<typename T > | |
std::function< void()> | makeSafeCallback (T *me, std::function< void(T *)> f) |
template<typename T , typename... Params> | |
std::function< void()> | makeSafeCallback (T *obj, void(T::*f)(const Params &...), const Params &... params) |
template<typename T , typename... Params> | |
std::function< void()> | makeSafeCallback (T *obj, void(T::*f)(Params...), const Params &... params) |
fruit::Component< fruit::Required< const CuttlefishConfig, KernelLogPipeProvider, const CuttlefishConfig::InstanceSpecific, const vm_manager::VmManager, AutoSetup< ValidateTapDevices >::Type > > | bootStateMachineComponent () |
std::optional< MonitorCommand > | AutomotiveProxyService (const CuttlefishConfig &config) |
Result< std::optional< MonitorCommand > > | BluetoothConnector (const CuttlefishConfig &config, const CuttlefishConfig::InstanceSpecific &instance) |
Result< std::vector< MonitorCommand > > | Casimir (const CuttlefishConfig &config, const CuttlefishConfig::EnvironmentSpecific &environment, const CuttlefishConfig::InstanceSpecific &instance, LogTeeCreator &log_tee) |
Result< std::optional< MonitorCommand > > | CasimirControlServer (const CuttlefishConfig &config, const CuttlefishConfig::EnvironmentSpecific &environment, const CuttlefishConfig::InstanceSpecific &instance, GrpcSocketCreator &grpc_socket) |
std::string | ConsoleInfo (const CuttlefishConfig::InstanceSpecific &instance) |
Result< std::optional< MonitorCommand > > | ConsoleForwarder (const CuttlefishConfig::InstanceSpecific &instance) |
fruit::Component< fruit::Required< const CuttlefishConfig::InstanceSpecific, GrpcSocketCreator > > | ControlEnvProxyServerComponent () |
fruit::Component< fruit::Required< const CuttlefishConfig::InstanceSpecific > > | CvdallocComponent () |
MonitorCommand | EchoServer (GrpcSocketCreator &grpc_socket) |
Result< std::optional< MonitorCommand > > | GnssGrpcProxyServer (const CuttlefishConfig::InstanceSpecific &instance, GrpcSocketCreator &grpc_socket) |
fruit::Component< fruit::Required< const CuttlefishConfig::InstanceSpecific >, InputConnectionsProvider, LogTeeCreator > | VhostInputDevicesComponent () |
fruit::Component< fruit::Required< const CuttlefishConfig::InstanceSpecific >, KernelLogPipeProvider > | KernelLogMonitorComponent () |
std::string | LogcatInfo (const CuttlefishConfig::InstanceSpecific &instance) |
Result< MonitorCommand > | LogcatReceiver (const CuttlefishConfig::InstanceSpecific &instance) |
fruit::Component< fruit::Required< const CuttlefishConfig, const CuttlefishConfig::InstanceSpecific, LogTeeCreator > > | McuComponent () |
std::optional< MonitorCommand > | MetricsService (const CuttlefishConfig &config) |
static StopperResult | StopModemSimulator (int id) |
Result< std::optional< MonitorCommand > > | ModemSimulator (const CuttlefishConfig::InstanceSpecific &instance) |
fruit::Component< fruit::Required< const CuttlefishConfig, const CuttlefishConfig::InstanceSpecific > > | NetsimServerComponent () |
Result< MonitorCommand > | NfcConnector (const CuttlefishConfig::EnvironmentSpecific &environment, const CuttlefishConfig::InstanceSpecific &instance) |
fruit::Component< fruit::Required< const CuttlefishConfig, const CuttlefishConfig::EnvironmentSpecific, const CuttlefishConfig::InstanceSpecific, LogTeeCreator, WmediumdServer > > | OpenWrtComponent () |
fruit::Component< fruit::Required< const CuttlefishConfig, const CuttlefishConfig::EnvironmentSpecific, GrpcSocketCreator > > | OpenwrtControlServerComponent () |
Result< std::vector< MonitorCommand > > | Pica (const CuttlefishConfig &config, const CuttlefishConfig::InstanceSpecific &instance, LogTeeCreator &log_tee) |
fruit::Component< fruit::Required< const CuttlefishConfig, const CuttlefishConfig::InstanceSpecific, LogTeeCreator > > | RootCanalComponent () |
Result< std::optional< MonitorCommand > > | ScreenRecordingServer (GrpcSocketCreator &grpc_socket) |
Result< MonitorCommand > | SecureEnv (const CuttlefishConfig &config, const CuttlefishConfig::InstanceSpecific &instance, AutoSnapshotControlFiles::Type &snapshot_control_files, KernelLogPipeProvider &kernel_log_pipe_provider) |
Result< MonitorCommand > | SensorsSimulator (const CuttlefishConfig::InstanceSpecific &instance, AutoSensorsSocketPair::Type &sensors_socket_pair, KernelLogPipeProvider &kernel_log_pipe_provider) |
fruit::Component< fruit::Required< const CuttlefishConfig, KernelLogPipeProvider, InputConnectionsProvider, const CuttlefishConfig::InstanceSpecific, const CustomActionConfigProvider, WebRtcController > > | launchStreamerComponent () |
fruit::Component< fruit::Required< const CuttlefishConfig, LogTeeCreator, const CuttlefishConfig::InstanceSpecific > > | Ti50EmulatorComponent () |
Result< MonitorCommand > | TombstoneReceiver (const CuttlefishConfig::InstanceSpecific &instance) |
Result< std::optional< MonitorCommand > > | UwbConnector (const CuttlefishConfig &config, const CuttlefishConfig::InstanceSpecific &instance) |
std::optional< MonitorCommand > | VhalProxyServer (const CuttlefishConfig &config, const CuttlefishConfig::InstanceSpecific &instance) |
fruit::Component< fruit::Required< const CuttlefishConfig, LogTeeCreator, const CuttlefishConfig::InstanceSpecific > > | VhostDeviceVsockComponent () |
fruit::Component< WebRtcController > | WebRtcControllerComponent () |
fruit::Component< fruit::Required< const CuttlefishConfig, const CuttlefishConfig::EnvironmentSpecific, const CuttlefishConfig::InstanceSpecific, LogTeeCreator, GrpcSocketCreator > > | WmediumdServerComponent () |
Result< void > | RunCvdMain (int argc, char **argv) |
fruit::Component< fruit::Required< const CuttlefishConfig, const CuttlefishConfig::InstanceSpecific, AutoSnapshotControlFiles::Type, WebRtcController >, ServerLoop > | serverLoopComponent () |
static Result< void > | TestTapDevices (const CuttlefishConfig::InstanceSpecific &instance) |
Result< void > | ValidateTapDevices (const CuttlefishConfig::InstanceSpecific &instance) |
Result< void > | ValidateHostConfiguration () |
Result< void > | ValidateHostKernel () |
static void | FinalizeTcti (TSS2_TCTI_CONTEXT *tcti_context) |
static bool | CreateKey (TpmResourceManager &resource_manager, ESYS_TR parent_key, TPM2B_PUBLIC *key_public_out, TPM2B_PRIVATE *key_private_out, TpmObjectSlot *key_slot_out) |
static TpmObjectSlot | LoadKey (TpmResourceManager &resource_manager, ESYS_TR parent_key, const TPM2B_PUBLIC *key_public, const TPM2B_PRIVATE *key_private) |
static uint32_t | RoundUpToBlockSize (uint32_t num) |
TEST (TpmEncryptedSerializable, BinaryData) | |
struct | __attribute__ ((__packed__)) tpm_message_header |
bool | WriteProtectedJsonToFile (TpmResourceManager &resource_manager, const std::string &filename, Json::Value json) |
Json::Value | ReadProtectedJsonFromFile (TpmResourceManager &resource_manager, const std::string &filename) |
std::function< TpmObjectSlot(TpmResourceManager &)> | SigningKeyCreator (const std::string &unique) |
std::function< TpmObjectSlot(TpmResourceManager &)> | ParentKeyCreator (const std::string &unique) |
Result< void > | SecureEnvMain (int argc, char **argv) |
bool | matchAttestationId (keymaster_blob_t blob, const std::vector< uint8_t > &id) |
std::string | TpmCommandName (std::uint32_t command_num) |
static bool | TpmEncryptDecrypt (ESYS_CONTEXT *esys, ESYS_TR key_handle, TpmAuth auth, const TPM2B_IV &iv, uint8_t *data_in, uint8_t *data_out, size_t data_size, bool decrypt) |
bool | TpmEncrypt (ESYS_CONTEXT *esys, ESYS_TR key_handle, TpmAuth auth, const TPM2B_IV &iv, uint8_t *data_in, uint8_t *data_out, size_t data_size) |
bool | TpmDecrypt (ESYS_CONTEXT *esys, ESYS_TR key_handle, TpmAuth auth, const TPM2B_IV &iv, uint8_t *data_in, uint8_t *data_out, size_t data_size) |
gatekeeper::failure_record_t | DefaultRecord (gatekeeper::secure_id_t secure_user_id) |
static Result< secure_env::ManagedStorageData > | RecordToStorageData (const gatekeeper::failure_record_t &record) |
static Result< gatekeeper::failure_record_t > | StorageDataToRecord (const secure_env::StorageData &data) |
static Result< void > | GetFailureRecordImpl (secure_env::Storage &storage, uint32_t uid, gatekeeper::secure_id_t secure_user_id, gatekeeper::failure_record_t *record) |
static Result< void > | WriteFailureRecordImpl (secure_env::Storage &storage, uint32_t uid, gatekeeper::failure_record_t *record) |
static UniqueEsysPtr< TPM2B_DIGEST > | OneshotHmac (TpmResourceManager &resource_manager, ESYS_TR key_handle, TpmAuth auth, const uint8_t *data, size_t data_size) |
static UniqueEsysPtr< TPM2B_DIGEST > | SegmentedHmac (TpmResourceManager &resource_manager, ESYS_TR key_handle, TpmAuth key_auth, const uint8_t *data, size_t data_size) |
UniqueEsysPtr< TPM2B_DIGEST > | TpmHmac (TpmResourceManager &resource_manager, ESYS_TR key_handle, TpmAuth auth, const uint8_t *data, size_t data_size) |
UniqueEsysPtr< TPM2B_DIGEST > | TpmHmacWithContext (TpmResourceManager &resource_manager, const std::string &context, const uint8_t *data, size_t data_size) |
static keymaster_error_t | SplitEnforcedProperties (const keymaster::AuthorizationSet &key_description, keymaster::AuthorizationSet *hw_enforced, keymaster::AuthorizationSet *sw_enforced, keymaster::AuthorizationSet *hidden) |
static KeymasterKeyBlob | SerializableToKeyBlob (const Serializable &serializable) |
static bool | UpgradeIntegerTag (keymaster_tag_t tag, uint32_t value, AuthorizationSet *set, bool *set_changed) |
std::string | ToHexString (const std::vector< uint8_t > &binary) |
Result< Parsed > | Parse (int argc, char **argv) |
Result< SnapshotCmd > | ConvertToSnapshotCmd (const std::string &input) |
static Result< std::vector< int > > | InstanceNums () |
Result< Parsed > | Parse (std::vector< std::string > &args) |
std::ostream & | operator<< (std::ostream &out, const SnapshotCmd &cmd) |
Result< std::string > | HandleHostGroupSnapshot (const std::string &path) |
FetcherConfig | AvailableFilesReport () |
std::vector< std::string > | OverrideBoolArg (std::vector< std::string > args, const std::unordered_set< std::string > &flag_set) |
std::string | ValidateMetricsConfirmation (std::string use_metrics) |
static std::string | next_tombstone_path (const std::string &dir) |
int | TombstoneReceiverMain (int argc, char **argv) |
void | EstablishAndMaintainConnection (const std::string &address) |
int | AdbConnectorMain (int argc, char *argv[]) |
uint16_t | JsIndexToLinux (const int32_t &index_code) |
std::unique_ptr< AudioServer > | CreateAudioServer () |
fruit::Component< CustomActionConfigProvider > | WebRtcComponent () |
fruit::Component< ScreenConnector< DisplayHandler::WebRtcScProcessedFrame >, confui::HostServer, confui::HostVirtualInput > | CreateConfirmationUIComponent (int *frames_fd, bool *frames_are_rgba, confui::PipeConnectionPair *pipe_io_pair, InputConnector *input_connector) |
Result< void > | ControlLoop (SharedFD control_socket, DisplayHandler &display_handler, RecordingManager &recording_manager, ScreenshotHandler &screenshot_handler) |
int | CuttlefishMain () |
ASSERT_VALID_MSG_TYPE (virtio_snd_query_info, 16) | |
ASSERT_VALID_MSG_TYPE (virtio_snd_jack_info, 24) | |
ASSERT_VALID_MSG_TYPE (virtio_snd_chmap_info, 24) | |
ASSERT_VALID_MSG_TYPE (virtio_snd_pcm_info, 32) | |
ASSERT_VALID_MSG_TYPE (virtio_snd_pcm_set_params, 24) | |
ASSERT_VALID_MSG_TYPE (virtio_snd_pcm_hdr, 8) | |
ASSERT_VALID_MSG_TYPE (IoTransferMsg, 12) | |
ASSERT_VALID_MSG_TYPE (IoStatusMsg, 16) | |
Result< void > | EnforceVbMetaSize (const std::string &path) |
Result< void > | CopyDirectoryRecursively (const std::string &src_dir_path, const std::string &dest_dir_path, const bool verify_dest_dir_empty, std::function< bool(const std::string &)> predicate) |
Result< std::string > | InstanceGuestSnapshotPath (const Json::Value &meta_json, const std::string &instance_id) |
Result< Json::Value > | CreateMetaInfo (const CuttlefishConfig &cuttlefish_config, const std::string &snapshot_path) |
std::string | SnapshotMetaJsonPath (const std::string &snapshot_path) |
Result< Json::Value > | LoadMetaJson (const std::string &snapshot_path) |
Result< std::vector< std::string > > | GuestSnapshotDirectories (const std::string &snapshot_path) |
Result< RunnerExitCodes > | ReadExitCode (SharedFD monitor_socket) |
Result< SharedFD > | GetLauncherMonitorFromInstance (const CuttlefishConfig::InstanceSpecific &instance_config, const int timeout_seconds) |
Result< SharedFD > | GetLauncherMonitor (const CuttlefishConfig &config, const int instance_num, const int timeout_seconds) |
Result< std::optional< LauncherActionInfo > > | ReadLauncherActionFromFd (SharedFD monitor_socket) |
Result< void > | WaitForRead (SharedFD monitor_socket, const int timeout_seconds) |
Result< void > | RunLauncherAction (SharedFD monitor_socket, LauncherAction action, std::optional< int > timeout_seconds) |
Result< void > | RunLauncherAction (SharedFD monitor_socket, const run_cvd::ExtendedLauncherAction &extended_action, std::optional< int > timeout_seconds) |
AdbMode | StringToAdbMode (const std::string &mode) |
std::string | AdbModeToString (AdbMode mode) |
fruit::Component< AdbConfig > | AdbConfigComponent () |
fruit::Component< fruit::Required< AdbConfig, ConfigFlag >, AdbConfigFlag > | AdbConfigFlagComponent () |
fruit::Component< fruit::Required< AdbConfig >, AdbConfigFragment > | AdbConfigFragmentComponent () |
fruit::Component< fruit::Required< KernelLogPipeProvider, const AdbConfig, const CuttlefishConfig, const CuttlefishConfig::InstanceSpecific > > | LaunchAdbComponent () |
fruit::Component< TestData > | TestComponent () |
TEST (AdbConfigTest, SetFromFlags) | |
TEST (AdbConfigTest, SerializeDeserialize) | |
fruit::Component< fruit::Required< SystemImageDirFlag >, ConfigFlag > | ConfigFlagComponent () |
fruit::Component< ConfigFlag > | ConfigFlagPlaceholder () |
int | InstanceFromString (std::string instance_str) |
int | InstanceFromEnvironment () |
int | GetInstance () |
int | GetDefaultVsockCid () |
int | GetVsockServerPort (const int base, const int vsock_guest_cid) |
std::string | GetGlobalConfigFileLink () |
std::string | ForCurrentInstance (const char *prefix) |
std::string | RandomSerialNumber (const std::string &prefix) |
std::string | DefaultHostArtifactsPath (const std::string &file_name) |
std::string | HostBinaryDir () |
bool | UseQemuPrebuilt () |
std::string | DefaultQemuBinaryDir () |
std::string | HostBinaryPath (const std::string &binary_name) |
std::string | HostUsrSharePath (const std::string &file) |
std::string | HostQemuBiosPath () |
std::string | DefaultGuestImagePath (const std::string &file_name) |
std::string | DefaultEnvironmentPath (const std::string &environment_key, const std::string &default_value, const std::string &subpath) |
bool | IsValidAndroidHostOutPath (const std::string &path) |
bool | HostSupportsQemuCli () |
std::string | GetSeccompPolicyDir () |
fruit::Component< fruit::Required< ConfigFlag >, CustomActionConfigProvider > | CustomActionsComponent () |
bool | IsRestoring (const CuttlefishConfig &config) |
bool | IsValidMetricsConfigs (int value) |
Result< void > | CreateBlankImage (const std::string &image, int num_mb, const std::string &image_fmt) |
Result< void > | InitializeDataImage (const CuttlefishConfig::InstanceSpecific &instance) |
static bool | EspRequiredForBootFlow (BootFlow flow) |
static bool | EspRequiredForAPBootFlow (APBootFlow ap_boot_flow) |
static void | InitLinuxArgs (Arch target_arch, LinuxEspBuilder &linux_esp_builder) |
static void | InitChromeOsArgs (LinuxEspBuilder &linux_esp_builder) |
static bool | BuildAPImage (const CuttlefishConfig &config, const CuttlefishConfig::InstanceSpecific &instance) |
static bool | BuildOSImage (const CuttlefishConfig::InstanceSpecific &instance) |
Result< void > | InitializeEspImage (const CuttlefishConfig &config, const CuttlefishConfig::InstanceSpecific &instance) |
Result< std::optional< CuttlefishConfig::DisplayConfig > > | ParseDisplayConfig (const std::string &flag) |
Result< std::vector< CuttlefishConfig::DisplayConfig > > | ParseDisplayConfigsFromArgs (std::vector< std::string > &args) |
Result< void > | MakeFatImage (const std::string &data_image, int data_image_mb, int offset_num_mb) |
bool | CanGenerateEsp (Arch arch) |
static bool | MsdosMakeDirectories (const std::string &image_path, const std::vector< std::string > &directories) |
static bool | CopyToMsdos (const std::string &image, const std::string &path, const std::string &destination) |
template<typename T > | |
static bool | GrubMakeImage (const std::string &prefix, const std::string &format, const std::string &directory, const std::string &output, const T &modules) |
EspBuilder | PrepareESP (const std::string &image_path, Arch arch) |
EspBuilder | AddGrubConfig (const std::string &config) |
std::ostream & | operator<< (std::ostream &out, ExternalNetworkMode net) |
Result< ExternalNetworkMode > | ParseExternalNetworkMode (std::string_view str) |
fruit::Component< fruit::Required< FastbootConfig >, FastbootConfigFragment > | FastbootConfigFragmentComponent () |
fruit::Component< FastbootConfig > | FastbootConfigComponent () |
fruit::Component< fruit::Required< FastbootConfig, ConfigFlag >, FastbootConfigFlag > | FastbootConfigFlagComponent () |
fruit::Component< fruit::Required< KernelLogPipeProvider, const CuttlefishConfig::InstanceSpecific, const FastbootConfig > > | LaunchFastbootComponent () |
std::ostream & | operator<< (std::ostream &os, const CvdFile &cvd_file) |
std::ostream & | operator<< (std::ostream &out, GuestHwuiRenderer renderer) |
std::string | ToString (GuestHwuiRenderer renderer) |
Result< GuestHwuiRenderer > | ParseGuestHwuiRenderer (std::string_view str) |
GuestOs | GuestOsFromBootFlow (BootFlow boot_flow) |
std::ostream & | operator<< (std::ostream &out, GuestRendererPreload preload) |
std::string | ToString (GuestRendererPreload preload) |
Result< GuestRendererPreload > | ParseGuestRendererPreload (std::string_view str) |
uint32_t | FileCrc (const std::string &path) |
static std::map< std::string, uint32_t > | DirectoryCrc (const std::string &path) |
std::map< std::string, uint32_t > | HostToolsCrc () |
static Result< std::optional< std::int32_t > > | ParseBaseInstanceFlag (std::vector< std::string > &flags) |
static Result< std::optional< std::int32_t > > | ParseNumInstancesFlag (std::vector< std::string > &flags) |
static Result< std::vector< std::int32_t > > | ParseInstanceNums (const std::string &instance_nums_str) |
static Result< std::vector< std::int32_t > > | ParseInstanceNumsFlag (std::vector< std::string > &flags) |
static Result< std::optional< std::int32_t > > | GflagsBaseInstanceFlag () |
static Result< std::optional< std::int32_t > > | GflagsNumInstancesFlag () |
static Result< std::vector< std::int32_t > > | GflagsInstanceNumsFlag () |
std::vector< std::string > | KernelCommandLineFromConfig (const CuttlefishConfig &config, const CuttlefishConfig::InstanceSpecific &instance) |
std::string | AdbConnectorBinary () |
std::string | AutomotiveProxyBinary () |
std::string | AvbToolBinary () |
std::string | CasimirBinary () |
std::string | CasimirControlServerBinary () |
std::string | ConsoleForwarderBinary () |
std::string | ControlEnvProxyServerBinary () |
std::string | CpioBinary () |
std::string | CvdallocBinary () |
std::string | DefaultKeyboardSpec () |
std::string | DefaultMouseSpec () |
std::string | DefaultGamepadSpec () |
std::string | DefaultMultiTouchpadSpecTemplate () |
std::string | DefaultMultiTouchscreenSpecTemplate () |
std::string | DefaultRotaryDeviceSpec () |
std::string | DefaultSingleTouchpadSpecTemplate () |
std::string | DefaultSingleTouchscreenSpecTemplate () |
std::string | DefaultSwitchesSpec () |
std::string | EchoServerBinary () |
std::string | GnssGrpcProxyBinary () |
std::string | KernelLogMonitorBinary () |
std::string | LogcatReceiverBinary () |
std::string | McopyBinary () |
std::string | MetricsBinary () |
std::string | MkbootimgBinary () |
std::string | MkfsFat () |
std::string | MkuserimgMke2fsBinary () |
std::string | MmdBinary () |
std::string | ModemSimulatorBinary () |
std::string | NetsimdBinary () |
std::string | NewfsMsdos () |
std::string | OpenwrtControlServerBinary () |
std::string | PicaBinary () |
std::string | ProcessRestarterBinary () |
std::string | RootCanalBinary () |
std::string | ScreenRecordingServerBinary () |
std::string | SecureEnvBinary () |
std::string | SensorsSimulatorBinary () |
std::string | Simg2ImgBinary () |
std::string | SocketVsockProxyBinary () |
std::string | StopCvdBinary () |
std::string | TcpConnectorBinary () |
std::string | TestKeyRsa2048 () |
std::string | TestKeyRsa4096 () |
std::string | TestPubKeyRsa2048 () |
std::string | TestPubKeyRsa4096 () |
std::string | TombstoneReceiverBinary () |
std::string | UnpackBootimgBinary () |
std::string | VhalProxyServerBinary () |
std::string | VhalProxyServerConfig () |
std::string | WebRtcBinary () |
std::string | WebRtcSigServerBinary () |
std::string | WebRtcSigServerProxyBinary () |
std::string | WmediumdBinary () |
std::string | WmediumdGenConfigBinary () |
std::string | VhostUserInputBinary () |
void | DefaultSubprocessLogging (char *argv[], MetadataLevel stderr_level) |
std::unordered_map< std::string, std::string > | OpenwrtArgsFromConfig (const CuttlefishConfig::InstanceSpecific &instance) |
Result< SecureHal > | ParseSecureHal (std::string mode) |
Result< std::set< SecureHal > > | ParseSecureHals (const std::string &hals) |
Result< void > | ValidateSecureHals (const std::set< SecureHal > &secure_hals) |
std::string | ToString (SecureHal hal_in) |
Result< CuttlefishConfig::TouchpadConfig > | ParseTouchpadConfig (const std::string &flag) |
Result< std::vector< CuttlefishConfig::TouchpadConfig > > | ParseTouchpadConfigsFromArgs (std::vector< std::string > &args) |
std::string | ToString (VmmMode mode) |
std::ostream & | operator<< (std::ostream &out, VmmMode vmm) |
Result< VmmMode > | ParseVmm (std::string_view str) |
Result< std::string > | HandleCmds (const std::string &grpc_socket_path, const std::string &cmd, const std::vector< std::string > &args) |
Result< std::string > | CvdDataHome () |
Result< std::string > | CvdConfigHome () |
Result< std::string > | CvdStateHome () |
Result< std::string > | CvdCacheHome () |
std::string | CvdRuntimeDir () |
Result< std::vector< std::string > > | CvdDataDirs () |
Result< std::vector< std::string > > | CvdConfigDirs () |
Result< std::string > | ReadCvdDataFile (std::string_view path) |
Result< std::vector< std::string > > | FindCvdDataFiles (std::string_view path) |
Result< void > | WriteCvdDataFile (std::string_view path, std::string contents) |
template<typename... Args> | |
std::unordered_set< SetupFeature * > | SetupFeatureDeps (const std::tuple< Args... > &args) |
struct | __attribute__ ((packed)) GptHeader |
Result< const std::uint8_t * > | GetPartitionGUID (GptPartitionType type) |
uint64_t | AlignToPartitionSize (uint64_t size) |
Result< void > | AggregateImage (const std::vector< ImagePartition > &partitions, const std::string &output_path) |
Result< void > | CreateCompositeDisk (std::vector< ImagePartition > partitions, const std::string &header_file, const std::string &footer_file, const std::string &output_composite_path, bool read_only) |
Result< std::unique_ptr< DiskImage > > | ImageFromFile (const std::string &file_path) |
MasterBootRecord | ProtectiveMbr (uint64_t size) |
Result< bool > | IsSparseImage (const std::string &image_path) |
Result< void > | ForceRawImage (const std::string &image_path) |
void | SendHelper (const std::string &queue_name, const std::string &message) |
key_t | GenerateQueueKey (const char *str) |
void | alpha_blend_layer (std::uint8_t *frame_pixels, std::uint32_t h, std::uint32_t w, std::uint8_t *overlay) |
Result< std::vector< std::string > > | CrosvmCpuArguments (const Json::Value &vcpu_config_json) |
std::ostream & | operator<< (std::ostream &out, const DeviceBuild &build) |
std::ostream & | operator<< (std::ostream &out, const DirectoryBuild &build) |
std::ostream & | operator<< (std::ostream &out, const Build &build) |
std::tuple< std::string, std::string > | GetBuildIdAndTarget (const Build &build) |
std::optional< std::string > | GetFilepath (const Build &build) |
std::string | ConstructTargetFilepath (const std::string &directory, const std::string &filename) |
std::ostream & | operator<< (std::ostream &out, const DeviceBuildString &build_string) |
bool | operator== (const DeviceBuildString &lhs, const DeviceBuildString &rhs) |
bool | operator!= (const DeviceBuildString &lhs, const DeviceBuildString &rhs) |
std::ostream & | operator<< (std::ostream &out, const DirectoryBuildString &build_string) |
bool | operator== (const DirectoryBuildString &lhs, const DirectoryBuildString &rhs) |
bool | operator!= (const DirectoryBuildString &lhs, const DirectoryBuildString &rhs) |
std::ostream & | operator<< (std::ostream &out, const BuildString &build_string) |
std::ostream & | operator<< (std::ostream &out, const std::optional< BuildString > &build_string) |
std::optional< std::string > | GetFilepath (const BuildString &build_string) |
void | SetFilepath (BuildString &build_string, const std::string &value) |
Result< BuildString > | ParseBuildString (const std::string &build_string) |
Flag | GflagsCompatFlag (const std::string &name, std::optional< BuildString > &value) |
Flag | GflagsCompatFlag (const std::string &name, std::vector< std::optional< BuildString > > &value) |
BuildString | WithFallbackTarget (BuildString build_string, std::string fallback) |
TEST (ParseBuildStringTests, DeviceBuildStringSuccess) | |
TEST (ParseBuildStringTests, DeviceBuildStringNoTargetSuccess) | |
TEST (ParseBuildStringTests, DirectoryBuildStringSinglePathSuccess) | |
TEST (ParseBuildStringTests, DirectoryBuildStringMultiplePathSuccess) | |
TEST (ParseBuildStringTests, EmptyStringFail) | |
TEST (ParseBuildStringTests, DeviceBuildStringMultipleSlashesFail) | |
TEST (ParseBuildStringTests, FilepathExistsSuccess) | |
TEST (ParseBuildStringTests, FilepathExistsMissingBracketFail) | |
TEST (ParseBuildStringTests, FilepathBracketsButNoValueFail) | |
TEST (ParseBuildStringTests, FilepathOnlyFail) | |
TEST (SingleBuildStringGflagsCompatFlagTests, EmptyInputEmptyResultSuccess) | |
TEST (SingleBuildStringGflagsCompatFlagTests, HasValueSuccess) | |
TEST (BuildStringGflagsCompatFlagTests, EmptyInputEmptyResultSuccess) | |
TEST (BuildStringGflagsCompatFlagTests, MultiValueSuccess) | |
TEST (BuildStringGflagsCompatFlagTests, MultiEmptyValueSuccess) | |
TEST (BuildStringGflagsCompatFlagTests, MultiValueMixedWithEmptySuccess) | |
Result< ReadableZip > | OpenZip (BuildApi &build_api, const Build &build, const std::string &name) |
std::string | GetBuildZipName (const Build &build, const std::string &name) |
bool | EnsureCacheDirectory (const std::string &cache_base_path) |
std::string | ConstructBuildDesc (const std::string &build_id, const std::string &build_target) |
TEST_F (CasDownloaderTests, FailsToCreateWithInvalidConfigPath) | |
TEST_F (CasDownloaderTests, FailsToCreateWithInvalidCasDownloaderPath) | |
TEST_F (CasDownloaderTests, UsesAdcIfServiceAccountUnavailable) | |
TEST_F (CasDownloaderTests, UsesServiceAccountIfAvailable) | |
TEST_F (CasDownloaderTests, IgnoresUnsupportedFlags) | |
TEST_F (CasDownloaderTests, HandlesFalseBoolFlag) | |
TEST_F (CasDownloaderTests, HandlesUnexpectedHelpOutput) | |
TEST_F (CasDownloaderTests, PassesOptionalStatsFilepathWhenSet) | |
TEST_F (CasDownloaderTests, RecognizesValidFlags) | |
TEST_F (CasDownloaderTests, DisablesCacheIfCacheDirNotSet) | |
TEST_F (CasDownloaderTests, CacheEnabledIfCacheDirSet) | |
TEST_F (CasDownloaderTests, FailsIfDigestsFileDoesNotExist) | |
TEST_F (CasDownloaderTests, FailsIfArtifactNotInDigestsFile) | |
TEST_F (CasDownloaderTests, DownloadsDigestsOnlyIfNeeded) | |
TEST_F (CasDownloaderTests, DownloadsUncompressedIfPreferUncompressed) | |
TEST_F (CasDownloaderTests, DownloadsCompressedIfNotPreferUncompressed) | |
TEST_F (CasDownloaderTests, DownloadsCompressedIfPreferUncompressedButUnavailable) | |
TEST_F (CasDownloaderTests, PassesCasOptionsFromCommandLine) | |
int | main (int argc, char **argv) |
std::ostream & | operator<< (std::ostream &stream, const ChromeOsBuilder &cob) |
static Result< ChromeOsBuildString > | ParseChromeOsBuildString (const std::string &build_string) |
std::ostream & | operator<< (std::ostream &stream, const ChromeOsBuildString &cb) |
std::ostream & | operator<< (std::ostream &stream, const std::optional< ChromeOsBuildString > &cb) |
Flag | GflagsCompatFlag (const std::string &name, std::vector< std::optional< ChromeOsBuildString > > &value) |
Result< std::unique_ptr< CredentialSource > > | GetCredentialSource (HttpClient &http_client, const std::string &credential_source, const std::string &oauth_filepath, const bool use_gce_metadata, const std::string &credential_filepath, const std::string &service_account_filepath) |
Result< std::unique_ptr< CredentialSource > > | CreateRefreshTokenCredentialSource (HttpClient &http_client, const std::string &client_id, const std::string &client_secret, const std::string &refresh_token) |
std::unique_ptr< HttpClient > | CurlHttpClient (bool use_logging_debug_function) |
TEST (FakeHttpClientTest, WithoutUrlMatching) | |
TEST (FakeHttpClientTest, NoMatchingUrl) | |
TEST (FakeHttpClientTest, ChoosesUrl) | |
TEST (FakeHttpClientTest, InvokesCallback) | |
std::optional< std::string_view > | HeaderValue (const std::vector< HttpHeader > &headers, std::string_view header_name) |
Result< HttpResponse< std::string > > | HttpGetToFile (HttpClient &http_client, const std::string &url, const std::string &path, const std::vector< std::string > &headers) |
Result< HttpResponse< Json::Value > > | HttpPostToJson (HttpClient &http_client, const std::string &url, const std::string &data, const std::vector< std::string > &headers) |
Result< HttpResponse< Json::Value > > | HttpPostToJson (HttpClient &http_client, const std::string &url, const Json::Value &data, const std::vector< std::string > &headers) |
Result< HttpResponse< Json::Value > > | HttpGetToJson (HttpClient &http_client, const std::string &url, const std::vector< std::string > &headers) |
Result< HttpResponse< std::string > > | HttpGetToString (HttpClient &http_client, const std::string &url, const std::vector< std::string > &headers) |
Result< HttpResponse< std::string > > | HttpPostToString (HttpClient &http_client, const std::string &url, const std::string &data, const std::vector< std::string > &headers) |
std::unique_ptr< HttpClient > | RetryingServerErrorHttpClient (HttpClient &inner, int retry_attempts, std::chrono::milliseconds retry_delay) |
std::string | ScrubSecrets (const std::string &data) |
std::string | UrlEscape (std::string_view text) |
Result< std::unique_ptr< CredentialSource > > | Oauth2LoginLocal (HttpClient &http_client, const Oauth2ConsentRequest &request) |
Result< std::unique_ptr< CredentialSource > > | Oauth2LoginSsh (HttpClient &http_client, const Oauth2ConsentRequest &request) |
Result< std::unique_ptr< CredentialSource > > | CredentialForScopes (HttpClient &http_client, const std::vector< std::string > &scopes) |
Result< SeekableZipSource > | BufferZipSource (SeekableZipSource inner, size_t buffer_size) |
Result< SeekableZipSource > | CacheZipSource (SeekableZipSource inner, std::string file_path) |
Result< SeekableZipSource > | ZipSourceFromUrl (HttpClient &http_client, const std::string &url, std::vector< std::string > headers) |
std::string | Serialize (const DisjointRangeSet &range_set) |
Result< DisjointRangeSet > | DeserializeDisjointRangeSet (std::string_view data) |
Result< void > | Copy (ReadableZipSource &input, WritableZipSource &output) |
Result< ReadableZip > | ZipOpenRead (const std::string &fs_path) |
Result< WritableZip > | ZipOpenReadWrite (const std::string &fs_path) |
Result< void > | AddFile (WritableZip &zip, const std::string &fs_path) |
Result< void > | AddFileAt (WritableZip &zip, const std::string &fs_path, const std::string &zip_path) |
Result< void > | ExtractFile (ReadableZip &zip, const std::string &zip_path, const std::string &host_path) |
Result< std::string > | ReadToString (ReadableZipSource &source) |
Result< std::string > | ReadToString (ZipSourceReader &reader) |
Result< void > | AddStringAt (WritableZip &zip, const std::string &data, const std::string &zip_path) |
Variables | |
constexpr char | kEbtablesName [] = "ebtables" |
constexpr char | kEbtablesLegacyName [] = "ebtables-legacy" |
constexpr char | kWirelessIp [] = "192.168.96" |
constexpr char | kMobileIp [] = "192.168.97" |
constexpr char | kEthernetIp [] = "192.168.98" |
constexpr int | kSocketMode = 0666 |
constexpr uint32_t | kMaxIfaceNameId = 63 |
constexpr uint16_t | kCurHeaderVersion = 1 |
Current supported Header version number. More... | |
constexpr uint16_t | kMinHeaderVersion = 1 |
Oldest compatible header version number. More... | |
const std::map< RequestType, const char * > | RequestTyToStrMap |
const std::map< std::string, RequestType > | StrToRequestTyMap |
const std::map< std::string, IfaceType > | StrToIfaceTyMap |
const std::map< IfaceType, std::string > | IfaceTyToStrMap |
const std::map< RequestStatus, std::string > | ReqStatusToStrMap |
const std::map< std::string, RequestStatus > | StrToReqStatusMap |
constexpr char | kDefaultLocation [] |
static constexpr int | kSendFlags = 0 |
static constexpr int | kRecvFlags = 0 |
char | pipe_message [] = "Testing the pipe" |
static constexpr char | kProcDir [] = "/proc" |
constexpr int | DISK_SIZE_SHIFT = 16 |
constexpr int | PARTITION_SIZE_SHIFT = 12 |
constexpr std::string_view | kDefaultInterfacePrefix = "cvd" |
static constexpr char | kImageName [] = "chromeos_state.img" |
static constexpr int | kImageSizeMb = 8096 |
static constexpr char | kFilesystemFormat [] = "ext4" |
static constexpr size_t | kMetadataImageMb = 64 |
static constexpr size_t | kMetadataImageBytes = kMetadataImageMb << 20 |
constexpr std::size_t | kDefaultCacheSizeGb = 25 |
static constexpr char | kMixSuperImageHelpMessage [] |
const std::string | _MISC_INFO_FILE_NAME = "misc_info.txt" |
const std::string | _TARGET_FILES_META_DIR_NAME = "META" |
const std::string | _TARGET_FILES_IMAGES_DIR_NAME = "IMAGES" |
const std::string | _SYSTEM_IMAGE_NAME_PATTERN = "system.img" |
const std::string | _SYSTEM_EXT_IMAGE_NAME_PATTERN = "system_ext.img" |
const std::string | _PRODUCT_IMAGE_NAME_PATTERN = "product.img" |
static constexpr char | kTranslatorHelpMessage [] |
constexpr char | kSummaryHelpText [] |
static constexpr char | kHelpMessage [] |
static constexpr std::string_view | kPhoneInstanceTemplate |
static constexpr std::string_view | kTabletInstanceTemplate |
static constexpr std::string_view | kTvInstanceTemplate |
static constexpr std::string_view | kWearableInstanceTemplate |
static constexpr std::string_view | kAutoInstanceTemplate |
static constexpr std::string_view | kSlimInstanceTemplate |
static constexpr std::string_view | kGoInstanceTemplate |
static constexpr std::string_view | kFoldableInstanceTemplate |
static constexpr char | kTerminalBoldRed [] = "\033[0;1;31m" |
static constexpr char | kTerminalCyan [] = "\033[0;36m" |
static constexpr char | kTerminalRed [] = "\033[0;31m" |
static constexpr char | kTerminalReset [] = "\033[0m" |
constexpr char | kDefaultApiKey [] = "" |
constexpr char | kDefaultCredentialSource [] = "" |
constexpr char | kDefaultProjectID [] = "" |
constexpr std::chrono::seconds | kDefaultWaitRetryPeriod |
constexpr bool | kDefaultEnableCaching = true |
constexpr bool | kDefaultUseGceMetadata = false |
constexpr char | kDefaultCredentialFilepath [] = "" |
constexpr char | kDefaultServiceAccountFilepath [] = "" |
constexpr char | kDefaultBuildString [] = "" |
constexpr char | kDefaultTargetDirectory [] = "" |
constexpr bool | kDefaultKeepDownloadedArchives = false |
constexpr char | kDefaultBuildTarget [] |
constexpr char | kTargetDirectory [] = "--target_directory=/tmp/fetch_test" |
constexpr char | kDefaultBuild [] |
constexpr char | kCasDownloaderPath [] |
constexpr char | kCasCacheDir [] = "--cas_cache_dir=/tmp/cas_cache" |
constexpr char | kCasCacheMaxSize [] = "--cas_cache_max_size=10000000000" |
static constexpr char | kHostToolsSubdirectory [] = "host_tools" |
constexpr bool | kDefaultDownloadImgZip = true |
constexpr bool | kDefaultDownloadTargetFilesZip = false |
constexpr char | kDefaultOPeratorControlSocketPath [] |
constexpr char | kInternalServerFd [] = "INTERNAL_server_fd" |
static std::mutex | verbosity_mutex |
static constexpr char | kCvdMarkEnv [] = "_STARTED_BY_CVD_SERVER_" |
constexpr char | kServerExecPath [] = "/proc/self/exe" |
constexpr char | kAndroidHostOut [] = "ANDROID_HOST_OUT" |
constexpr char | kAndroidSoongHostOut [] = "ANDROID_SOONG_HOST_OUT" |
constexpr char | kAndroidProductOut [] = "ANDROID_PRODUCT_OUT" |
constexpr char | kLaunchedByAcloud [] = "LAUNCHED_BY_ACLOUD" |
constexpr android::base::LogSeverity | kCvdDefaultVerbosity = android::base::INFO |
char | kEmptyText [] |
char | kEmptyRteTrkText [] |
char | kValidText [] |
char | kNullAttributeText [] |
char | kLocationMissingLongitudeLatitudeText [] |
char | kLocationMissingLongitudeText [] |
char | kValidLocationText [] |
char | kValidDocumentText [] |
char | kEmptyKmlText [] |
char | kValidkmlText [] |
char | kValidComplexText [] |
char | kOneCoordinateText [] |
char | kMultipleCoordinatesText [] |
char | kBadCoordinatesText [] |
char | kLocationNormalText [] |
char | kLocationMissingFieldsText [] |
char | kLocationMissingRequiredFieldsText [] |
char | kLocationNameOnlyFirstText [] |
char | kMultipleLocationsText [] |
char | kTraverseEmptyDocText [] |
char | kNoPlacemarksText [] |
char | kNestedDocText [] |
char | kNullNameNoCrashText [] |
constexpr std::string_view | kCvdallocInterfacePrefix = "cvd-pi" |
static constexpr char | kUsageMessage [] |
constexpr int32_t | kMaxCommandLength = 4096 |
static const std::string | kAreaCode = "2142" |
static const std::string | kCellId = "0000B804" |
constexpr int | kRssiUnknownValue = 99 |
constexpr int | kBerUnknownValue = 99 |
constexpr int | kDbmUnknownValue = -1 |
constexpr int | kEcioUnknownValue = -1 |
constexpr int | kSnrUnknownValue = -1 |
constexpr auto | kRssiRange = std::make_pair(4, 30) |
constexpr auto | kDbmRange = std::make_pair(-120, -4) |
constexpr auto | kRsrpRange = std::make_pair(-140, -44) |
static constexpr char | kInstances [] = "instances" |
static constexpr char | kNetworkSelectionMode [] = "network_selection_mode" |
static constexpr char | kOperatorNumeric [] = "operator_numeric" |
static constexpr char | kModemTechnoloy [] = "modem_technoloy" |
static constexpr char | kPreferredNetworkMode [] = "preferred_network_mode" |
static constexpr char | kEmergencyMode [] = "emergency_mode" |
static constexpr int | kDefaultNetworkSelectionMode = 0 |
static constexpr int | kDefaultModemTechnoloy = ModemTechnology::M_MODEM_TECH_LTE |
static constexpr int | kDefaultPreferredNetworkMode |
static constexpr bool | kDefaultEmergencyMode = false |
static const std::string | kWithoutServiceCenterAddress = "00" |
static const std::string | kStatusReportIndicator = "06" |
static const std::string | kSRIAndMMSIndicator = "24" |
static const std::string | kUDHIAndSRIAndMMSIndicator = "64" |
constexpr int | kSimPukSize = 8 |
constexpr int | kSimPinMaxRetryTimes = 3 |
constexpr int | kSimPukMaxRetryTimes = 10 |
static const std::string | kDefaultPinCode = "1234" |
static const std::string | kDefaultPukCode = "12345678" |
static const std::string | MF_SIM = "3F00" |
static const std::string | DF_TELECOM = "7F10" |
static const std::string | DF_PHONEBOOK = "5F3A" |
static const std::string | DF_GRAPHICS = "5F50" |
static const std::string | DF_GSM = "7F20" |
static const std::string | DF_CDMA = "7F25" |
static const std::string | DF_ADF = "7FFF" |
constexpr int | kFooterSizeBytes = 14 |
constexpr int | kMaxNumberSizeBytes = 11 |
constexpr int | kMaxLogicalChannels = 3 |
const std::map< SimService::SimStatus, std::string > | gSimStatusResponse |
static constexpr char | kIgnoreSigtstpHelp [] |
static constexpr char | kWhenDumpedHelp [] = "restart when the process crashed" |
static constexpr char | kWhenKilledHelp [] = "restart when the process was killed" |
static constexpr char | kWhenExitedWithFailureHelp [] |
static constexpr char | kWhenExitedWithCodeHelp [] |
static constexpr char | kHelp [] |
template<class... > | |
constexpr std::false_type | CommandAlwaysFalse {} |
static constexpr char | kGreenColor [] = "\033[1;32m" |
static constexpr char | kResetColor [] = "\033[0m" |
static constexpr uint32_t | BLOCK_SIZE = 16 |
static constexpr char | kUniqueKey [] = "JsonSerializable" |
static constexpr char | kUniqueKey [] = "TpmKeyBlobMaker" |
static int | MAX_STIR_RANDOM_BUFFER_SIZE = 128 |
template<typename T > | |
int | MarshalFn = 0 |
template<typename T > | |
int | UnmarshalFn = 0 |
template<> | |
auto | MarshalFn< TPM2B_PRIVATE > = Tss2_MU_TPM2B_PRIVATE_Marshal |
template<> | |
auto | UnmarshalFn< TPM2B_PRIVATE > = Tss2_MU_TPM2B_PRIVATE_Unmarshal |
template<> | |
auto | MarshalFn< TPM2B_PUBLIC > = Tss2_MU_TPM2B_PUBLIC_Marshal |
template<> | |
auto | UnmarshalFn< TPM2B_PUBLIC > = Tss2_MU_TPM2B_PUBLIC_Unmarshal |
static std::unordered_set< std::string > | kRepeatableFlags |
static uint | num_tombstones_in_last_second = 0 |
static std::string | last_tombstone_name = "" |
static constexpr size_t | CHUNK_RECV_MAX_LEN = 1024 |
static constexpr size_t | TIMEOUT_SEC = 3 |
static const std::array< uint16_t, 17 > | kJsIndexToLinuxMapping |
constexpr auto | kOpewnrtWanIpAddressName = "wan_ipaddr" |
constexpr auto | kTouchscreenPrefix = "display_" |
constexpr auto | kTouchpadPrefix = "touch_" |
static constexpr int | kSendFlags = 0 |
static constexpr int | kRecvFlags = 0 |
constexpr uint8_t | VIRTIO_SND_CHMAP_MAX_SIZE = 18 |
const uint32_t | VIOS_VERSION = 2 |
constexpr uint64_t | kMaxAvbMetadataSize = 69632ul |
constexpr const char | kMetaInfoJsonFileName [] = "snapshot_meta_info.json" |
constexpr const char | kGuestSnapshotField [] = "guest_snapshot" |
constexpr const char | kSnapshotPathField [] = "snapshot_path" |
constexpr const char | kCfHomeField [] = "HOME" |
constexpr const char | kGuestSnapshotBase [] = "guest_vm" |
constexpr char | kLogcatSerialMode [] = "serial" |
constexpr char | kLogcatVsockMode [] = "vsock" |
constexpr char | kDefaultUuidPrefix [] |
constexpr char | kCuttlefishConfigEnvVarName [] = "CUTTLEFISH_CONFIG_FILE" |
constexpr char | kCuttlefishInstanceEnvVarName [] = "CUTTLEFISH_INSTANCE" |
constexpr char | kVsocUserPrefix [] = "vsoc-" |
constexpr char | kInternalGroupName [] = "cvd" |
constexpr char | kCvdNamePrefix [] = "cvd-" |
constexpr char | kBootStartedMessage [] = "VIRTUAL_DEVICE_BOOT_STARTED" |
constexpr char | kBootPendingMessage [] = "VIRTUAL_DEVICE_BOOT_PENDING" |
constexpr char | kBootCompletedMessage [] = "VIRTUAL_DEVICE_BOOT_COMPLETED" |
constexpr char | kBootFailedMessage [] = "VIRTUAL_DEVICE_BOOT_FAILED" |
constexpr char | kMobileNetworkConnectedMessage [] |
constexpr char | kWifiConnectedMessage [] |
constexpr char | kEthernetConnectedMessage [] |
constexpr char | kAdbdStartedMessage [] |
constexpr char | kFastbootdStartedMessage [] |
constexpr char | kHibernationExitMessage [] |
constexpr char | kFastbootStartedMessage [] |
constexpr char | kGblFastbootStartedMessage [] |
constexpr char | kScreenChangedMessage [] = "VIRTUAL_DEVICE_SCREEN_CHANGED" |
constexpr char | kDisplayPowerModeChangedMessage [] |
constexpr char | kInternalDirName [] = "internal" |
constexpr char | kGrpcSocketDirName [] = "grpc_socket" |
constexpr char | kSharedDirName [] = "shared" |
constexpr char | kLogDirName [] = "logs" |
constexpr char | kCrosvmVarEmptyDir [] = "/var/empty" |
constexpr char | kKernelLoadedMessage [] = "] Linux version" |
constexpr char | kBootloaderLoadedMessage [] = "U-Boot 20" |
constexpr char | kApName [] = "crosvm_openwrt" |
constexpr int | kDefaultInstance = 1 |
constexpr char | kVhostUserVsockModeAuto [] = "auto" |
constexpr char | kVhostUserVsockModeTrue [] = "true" |
constexpr char | kVhostUserVsockModeFalse [] = "false" |
constexpr char | kGpuModeAuto [] = "auto" |
constexpr char | kGpuModeCustom [] = "custom" |
constexpr char | kGpuModeDrmVirgl [] = "drm_virgl" |
constexpr char | kGpuModeGfxstream [] = "gfxstream" |
constexpr char | kGpuModeGfxstreamGuestAngle [] = "gfxstream_guest_angle" |
constexpr char | kGpuModeGfxstreamGuestAngleHostSwiftShader [] |
constexpr char | kGpuModeGfxstreamGuestAngleHostLavapipe [] |
constexpr char | kGpuModeGuestSwiftshader [] = "guest_swiftshader" |
constexpr char | kGpuModeNone [] = "none" |
constexpr char | kGpuVhostUserModeAuto [] = "auto" |
constexpr char | kGpuVhostUserModeOn [] = "on" |
constexpr char | kGpuVhostUserModeOff [] = "off" |
constexpr char | kHwComposerAuto [] = "auto" |
constexpr char | kHwComposerDrm [] = "drm_hwcomposer" |
constexpr char | kHwComposerRanchu [] = "ranchu" |
constexpr char | kHwComposerNone [] = "none" |
static constexpr char | kFragments [] = "fragments" |
static constexpr char | kRootDir [] = "root_dir" |
static constexpr char | kVmManager [] = "vm_manager" |
static constexpr char | kApVmManager [] = "ap_vm_manager" |
static constexpr char | kSecureHals [] = "secure_hals" |
static constexpr char | kCrosvmBinary [] = "crosvm_binary" |
static constexpr char | kGem5DebugFlags [] = "gem5_debug_flags" |
static constexpr char | kSigServerPort [] = "webrtc_sig_server_port" |
static constexpr char | kSigServerAddress [] = "webrtc_sig_server_addr" |
static constexpr char | kHostToolsVersion [] = "host_tools_version" |
static constexpr char | kEnableHostUwb [] = "enable_host_uwb" |
static constexpr char | kEnableHostUwbConnector [] = "enable_host_uwb_connector" |
static constexpr char | kPicaUciPort [] = "pica_uci_port" |
static constexpr char | kEnableHostBluetooth [] = "enable_host_bluetooth" |
static constexpr char | kEnableHostBluetoothConnector [] |
static constexpr char | kEnableAutomotiveProxy [] = "enable_automotive_proxy" |
static constexpr char | kVhalProxyServerPort [] = "vhal_proxy_server_port" |
static constexpr char | kEnableHostNfc [] = "enable_host_nfc" |
static constexpr char | kEnableHostNfcConnector [] = "enable_host_nfc_connector" |
static constexpr char | kCasimirInstanceNum [] = "casimir_instance_num" |
static constexpr char | kCasimirArgs [] = "casimir_args" |
static constexpr char | kCasimirNciPort [] = "casimir_nci_port" |
static constexpr char | kCasimirRfPort [] = "casimir_rf_port" |
static constexpr char | kNetsimRadios [] = "netsim_radios" |
static constexpr char | kNetsimInstanceNum [] = "netsim_instance_num" |
static constexpr char | kNetsimConnectorInstanceNum [] |
static constexpr char | kNetsimArgs [] = "netsim_args" |
static constexpr char | kEnableMetrics [] = "enable_metrics" |
static constexpr char | kMetricsBinary [] = "metrics_binary" |
static constexpr char | kExtraKernelCmdline [] = "extra_kernel_cmdline" |
static constexpr char | kVirtioMac80211Hwsim [] = "virtio_mac80211_hwsim" |
static constexpr char | kApRootfsImage [] = "ap_rootfs_image" |
static constexpr char | kApKernelImage [] = "ap_kernel_image" |
static constexpr char | kRootcanalArgs [] = "rootcanal_args" |
static constexpr char | kRootcanalHciPort [] = "rootcanal_hci_port" |
static constexpr char | kRootcanalLinkPort [] = "rootcanal_link_port" |
static constexpr char | kRootcanalLinkBlePort [] = "rootcanal_link_ble_port" |
static constexpr char | kRootcanalTestPort [] = "rootcanal_test_port" |
static constexpr char | kSnapshotPath [] = "snapshot_path" |
static constexpr char | kKvmPath [] = "kvm_path" |
static constexpr char | kVhostVsockPath [] = "vhost_vsock_path" |
static constexpr char | kStracedExecutables [] = "straced_host_executables" |
static constexpr char | kInstancesUdsDir [] = "instances_uds_dir" |
static constexpr char | kEnvironmentsUdsDir [] = "environments_uds_dir" |
static constexpr char | kInstanceNames [] = "instance_names" |
static constexpr char | kEnableWifi [] = "enable_wifi" |
static constexpr char | kStartWmediumd [] = "start_wmediumd" |
static constexpr char | kVhostUserMac80211Hwsim [] = "vhost_user_mac80211_hwsim" |
static constexpr char | kWmediumdApiServerSocket [] = "wmediumd_api_server_socket" |
static constexpr char | kWmediumdConfig [] = "wmediumd_config" |
static constexpr char | kWmediumdMacPrefix [] = "wmediumd_mac_prefix" |
static constexpr char | kGroupUuid [] = "group_uuid" |
static constexpr char | kInstanceDir [] = "instance_dir" |
static constexpr char | kBootImage [] = "boot_image" |
static constexpr char | kNewBootImage [] = "new_boot_image" |
static constexpr char | kInitBootImage [] = "init_boot_image" |
static constexpr char | kDataImage [] = "data_image" |
static constexpr char | kNewDataImage [] = "new_data_image" |
static constexpr char | kSuperImage [] = "super_image" |
static constexpr char | kNewSuperImage [] = "new_super_image" |
static constexpr char | kVendorBootImage [] = "vendor_boot_image" |
static constexpr char | kNewVendorBootImage [] = "new_vendor_boot_image" |
static constexpr char | kVbmetaImage [] = "vbmeta_image" |
static constexpr char | kNewVbmetaImage [] = "new_vbmeta_image" |
static constexpr char | kVbmetaSystemImage [] = "vbmeta_system_image" |
static constexpr char | kVbmetaVendorDlkmImage [] = "vbmeta_vendor_dlkm_image" |
static constexpr char | kNewVbmetaVendorDlkmImage [] |
static constexpr char | kVbmetaSystemDlkmImage [] = "vbmeta_system_dlkm_image" |
static constexpr char | kNewVbmetaSystemDlkmImage [] |
static constexpr char | kOtherosEspImage [] = "otheros_esp_image" |
static constexpr char | kAndroidEfiLoader [] = "android_efi_loader" |
static constexpr char | kChromeOsDisk [] = "chromeos_disk" |
static constexpr char | kChromeOsKernelPath [] = "chromeos_kernel_path" |
static constexpr char | kChromeOsRootImage [] = "chromeos_root_image" |
static constexpr char | kLinuxKernelPath [] = "linux_kernel_path" |
static constexpr char | kLinuxInitramfsPath [] = "linux_initramfs_path" |
static constexpr char | kLinuxRootImage [] = "linux_root_image" |
static constexpr char | kFuchsiaZedbootPath [] = "fuchsia_zedboot_path" |
static constexpr char | kFuchsiaMultibootBinPath [] = "multiboot_bin_path" |
static constexpr char | kFuchsiaRootImage [] = "fuchsia_root_image" |
static constexpr char | kCustomPartitionPath [] = "custom_partition_path" |
static constexpr char | kBlankSdcardImageMb [] = "blank_sdcard_image_mb" |
static constexpr char | kBootloader [] = "bootloader" |
static constexpr char | kInitramfsPath [] = "initramfs_path" |
static constexpr char | kKernelPath [] = "kernel_path" |
static constexpr char | kVvmtruststorePath [] = "vvmtruststore_path" |
static constexpr char | kDefaultTargetZip [] = "default_target_zip" |
static constexpr char | kSystemTargetZip [] = "system_target_zip" |
static constexpr char | kSerialNumber [] = "serial_number" |
static constexpr char | kVirtualDiskPaths [] = "virtual_disk_paths" |
static constexpr char | kGuestAndroidVersion [] = "guest_android_version" |
static constexpr char | kBootconfigSupported [] = "bootconfig_supported" |
static constexpr char | kFilenameEncryptionMode [] = "filename_encryption_mode" |
static constexpr char | kExternalNetworkMode [] = "external_network_mode" |
static constexpr char | kGnssGrpcProxyServerPort [] |
static constexpr char | kGnssFilePath [] = "gnss_file_path" |
static constexpr char | kFixedLocationFilePath [] = "fixed_location_file_path" |
static constexpr char | kGem5BinaryDir [] = "gem5_binary_dir" |
static constexpr char | kGem5CheckpointDir [] = "gem5_checkpoint_dir" |
static constexpr char | kKgdb [] = "kgdb" |
static constexpr char | kCpus [] = "cpus" |
static constexpr char | kVcpuInfo [] = "vcpu_config_path" |
static constexpr char | kDataPolicy [] = "data_policy" |
static constexpr char | kBlankDataImageMb [] = "blank_data_image_mb" |
static constexpr char | kGdbPort [] = "gdb_port" |
static constexpr char | kMemoryMb [] = "memory_mb" |
static constexpr char | kDdrMemMb [] = "ddr_mem_mb" |
static constexpr char | kSetupWizardMode [] = "setupwizard_mode" |
static constexpr char | kUserdataFormat [] = "userdata_format" |
static constexpr char | kGuestEnforceSecurity [] = "guest_enforce_security" |
static constexpr char | kUseSdcard [] = "use_sdcard" |
static constexpr char | kPauseInBootloader [] = "pause_in_bootloader" |
static constexpr char | kRunAsDaemon [] = "run_as_daemon" |
static constexpr char | kEnableMinimalMode [] = "enable_minimal_mode" |
static constexpr char | kRunModemSimulator [] = "enable_modem_simulator" |
static constexpr char | kModemSimulatorInstanceNumber [] |
static constexpr char | kModemSimulatorSimType [] = "modem_simulator_sim_type" |
static constexpr char | kGpuMode [] = "gpu_mode" |
static constexpr char | kGpuAngleFeatureOverridesEnabled [] |
static constexpr char | kGpuAngleFeatureOverridesDisabled [] |
static constexpr char | kGpuCaptureBinary [] = "gpu_capture_binary" |
static constexpr char | kGpuGfxstreamTransport [] = "gpu_gfxstream_transport" |
static constexpr char | kGpuRendererFeatures [] = "gpu_renderer_features" |
static constexpr char | kGpuContextTypes [] = "gpu_context_types" |
static constexpr char | kGuestHwuiRenderer [] = "guest_hwui_renderer" |
static constexpr char | kGuestRendererPreload [] = "guest_renderer_preload" |
static constexpr char | kVulkanDriver [] = "guest_vulkan_driver" |
static constexpr char | kGuestUsesBgraFramebuffers [] |
static constexpr char | kRestartSubprocesses [] = "restart_subprocesses" |
static constexpr char | kHWComposer [] = "hwcomposer" |
static constexpr char | kEnableGpuUdmabuf [] = "enable_gpu_udmabuf" |
static constexpr char | kEnableGpuVhostUser [] = "enable_gpu_vhost_user" |
static constexpr char | kEnableGpuExternalBlob [] = "enable_gpu_external_blob" |
static constexpr char | kEnableGpuSystemBlob [] = "enable_gpu_system_blob" |
static constexpr char | kEnableAudio [] = "enable_audio" |
static constexpr char | kEnableMouse [] = "enable_mouse" |
static constexpr char | kEnableGamepad [] = "enable_gamepad" |
static constexpr char | kCustomKeyboardConfig [] = "custom_keyboard_config" |
static constexpr char | kDomkeyMappingConfig [] = "domkey_mapping_config" |
static constexpr char | kEnableGnssGrpcProxy [] = "enable_gnss_grpc_proxy" |
static constexpr char | kEnableBootAnimation [] = "enable_bootanimation" |
static constexpr char | kEnableUsb [] = "enable_usb" |
static constexpr char | kExtraBootconfigArgsInstanced [] = "extra_bootconfig_args" |
static constexpr char | kRecordScreen [] = "record_screen" |
static constexpr char | kGem5DebugFile [] = "gem5_debug_file" |
static constexpr char | kMte [] = "mte" |
static constexpr char | kEnableKernelLog [] = "enable_kernel_log" |
static constexpr char | kBootSlot [] = "boot_slot" |
static constexpr char | kFailFast [] = "fail_fast" |
static constexpr char | kVhostUserBlock [] = "vhost_user_block" |
static constexpr char | kTi50 [] = "ti50" |
static constexpr char | kEnableJcardSimulator [] = "enable_jcard_simulator" |
static constexpr char | kWebRTCAssetsDir [] = "webrtc_assets_dir" |
static constexpr char | kWebrtcTcpPortRange [] = "webrtc_tcp_port_range" |
static constexpr char | kWebrtcUdpPortRange [] = "webrtc_udp_port_range" |
static constexpr char | kGrpcConfig [] = "grpc_config" |
static constexpr char | kSmt [] = "smt" |
static constexpr char | kCrosvmBinary [] = "crosvm_binary" |
static constexpr char | kSeccompPolicyDir [] = "seccomp_policy_dir" |
static constexpr char | kQemuBinaryDir [] = "qemu_binary_dir" |
static constexpr char | kVhostNet [] = "vhost_net" |
static constexpr char | kOpenThreadNodeId [] = "openthread_node_id" |
static constexpr char | kVhostUserVsock [] = "vhost_user_vsock" |
static constexpr char | kRilDns [] = "ril_dns" |
static constexpr char | kRilIpaddr [] = "ril_ipaddr" |
static constexpr char | kRilGateway [] = "ril_gateway" |
static constexpr char | kRilBroadcast [] = "ril_broadcast" |
static constexpr char | kRilPrefixlen [] = "ril_prefixlen" |
static constexpr char | kDisplayConfigs [] = "display_configs" |
static constexpr char | kXRes [] = "x_res" |
static constexpr char | kYRes [] = "y_res" |
static constexpr char | kDpi [] = "dpi" |
static constexpr char | kRefreshRateHz [] = "refresh_rate_hz" |
static constexpr char | kOverlays [] = "overlays" |
static constexpr char | kTouchpadConfigs [] = "touchpad_configs" |
static constexpr char | kTargetArch [] = "target_arch" |
static constexpr char | kDeviceType [] = "device_type" |
static constexpr char | kEnableSandbox [] = "enable_sandbox" |
static constexpr char | kEnableVirtiofs [] = "enable_virtiofs" |
static constexpr char | kConsole [] = "console" |
static constexpr char | kModemSimulatorPorts [] = "modem_simulator_ports" |
static constexpr char | kMobileBridgeName [] = "mobile_bridge_name" |
static constexpr char | kMobileTapName [] = "mobile_tap_name" |
static constexpr char | kMobileMac [] = "mobile_mac" |
static constexpr char | kWifiTapName [] = "wifi_tap_name" |
static constexpr char | kWifiBridgeName [] = "wifi_bridge_name" |
static constexpr char | kWifiMac [] = "wifi_mac" |
static constexpr char | kUseBridgedWifiTap [] = "use_bridged_wifi_tap" |
static constexpr char | kEthernetTapName [] = "ethernet_tap_name" |
static constexpr char | kEthernetBridgeName [] = "ethernet_bridge_name" |
static constexpr char | kEthernetMac [] = "ethernet_mac" |
static constexpr char | kEthernetIPV6 [] = "ethernet_ipv6" |
static constexpr char | kUseAllocd [] = "use_allocd" |
static constexpr char | kUseCvdalloc [] = "use_cvdalloc" |
static constexpr char | kSessionId [] = "session_id" |
static constexpr char | kVsockGuestCid [] = "vsock_guest_cid" |
static constexpr char | kVsockGuestGroup [] = "vsock_guest_group" |
static constexpr char | kUuid [] = "uuid" |
static constexpr char | kEnvironmentName [] = "environment_name" |
static constexpr char | kHostPort [] = "adb_host_port" |
static constexpr char | kFastbootHostPort [] = "fastboot_host_port" |
static constexpr char | kModemSimulatorId [] = "modem_simulator_host_id" |
static constexpr char | kAdbIPAndPort [] = "adb_ip_and_port" |
static constexpr char | kQemuVncServerPort [] = "qemu_vnc_server_port" |
static constexpr char | kTombstoneReceiverPort [] = "tombstone_receiver_port" |
static constexpr char | kAudioControlServerPort [] = "audiocontrol_server_port" |
static constexpr char | kConfigServerPort [] = "config_server_port" |
static constexpr char | kLightsServerPort [] = "lights_server_port" |
static constexpr char | kCameraServerPort [] = "camera_server_port" |
static constexpr char | kWebrtcDeviceId [] = "webrtc_device_id" |
static constexpr char | kStartRootcanal [] = "start_rootcanal" |
static constexpr char | kStartCasimir [] = "start_casimir" |
static constexpr char | kStartPica [] = "start_pica" |
static constexpr char | kStartNetsim [] = "start_netsim" |
static constexpr char | kStartWmediumdInstance [] = "start_wmediumd_instance" |
static constexpr char | kMcu [] = "mcu" |
static constexpr char | kApBootFlow [] = "ap_boot_flow" |
static constexpr char | kCrosvmUseBalloon [] = "crosvm_use_balloon" |
static constexpr char | kCrosvmUseRng [] = "crosvm_use_rng" |
static constexpr char | kCrosvmSimpleMediaDevice [] = "crosvm_simple_media_device" |
static constexpr char | kCrosvmV4l2Proxy [] = "crosvm_v4l2_proxy" |
static constexpr char | kCrosvmUsePmem [] = "use_pmem" |
static constexpr char | kEnableTapDevices [] = "enable_tap_devices" |
static constexpr char | kFrameSockPath [] = "frame_sock_path" |
static constexpr char | kWifiMacPrefix [] = "wifi_mac_prefix" |
static constexpr char | kStartVhalProxyServer [] = "start_vhal_proxy_server" |
static constexpr char | kAudioOutputStreamsCount [] = "audio_output_streams_count" |
constexpr const char | kDisplayFlag [] = "display" |
constexpr const char | kDisplayHelp [] |
static constexpr char | kBootSrcPathIA32 [] |
static constexpr char | kBootDestPathIA32 [] = "/EFI/BOOT/BOOTIA32.EFI" |
static constexpr char | kBootSrcPathAA64 [] |
static constexpr char | kBootDestPathAA64 [] = "/EFI/BOOT/BOOTAA64.EFI" |
static constexpr char | kBootDestPathRiscV64 [] = "/EFI/BOOT/BOOTRISCV64.EFI" |
static constexpr char | kMultibootModuleSrcPathIA32 [] |
static constexpr char | kMultibootModuleDestPathIA32 [] |
static constexpr char | kMultibootModuleSrcPathAA64 [] |
static constexpr char | kMultibootModuleDestPathAA64 [] |
static constexpr char | kKernelDestPath [] = "/vmlinuz" |
static constexpr char | kInitrdDestPath [] = "/initrd" |
static constexpr char | kZedbootDestPath [] = "/zedboot.zbi" |
static constexpr char | kMultibootBinDestPath [] = "/multiboot.bin" |
static constexpr char | kGrubDebianConfigDestPath [] = "/EFI/debian/grub.cfg" |
static constexpr char | kGrubUbuntuConfigDestPath [] = "/EFI/ubuntu/grub.cfg" |
static constexpr char | kGrubConfigDestDirectoryPath [] = "/boot/grub" |
static constexpr char | kGrubConfigDestPath [] = "/boot/grub/grub.cfg" |
static constexpr std::array | kGrubModulesX86 |
static constexpr char | kGrubModulesPath [] = "/usr/lib/grub/" |
static constexpr char | kGrubModulesX86Name [] = "i386-efi" |
constexpr const char | kTouchpadFlag [] = "touchpad" |
constexpr const char | kTouchpadHelp [] |
constexpr int | GPT_NUM_PARTITIONS = 128 |
constexpr int | kSectorSizeShift = 9 |
constexpr int | kSectorSize = 1 << kSectorSizeShift |
const uint32_t | MAX_MSG_SIZE = 200 |
constexpr char | kCfMetricsQueueName [] = "cf_metrics_msg_queue" |
constexpr char | kAndroidBuildServiceUrl [] |
constexpr char | kKeyDownloaderPath [] = "downloader-path" |
constexpr char | kKeyFlags [] = "flags" |
constexpr char | kFlagDigest [] = "digest" |
constexpr char | kFlagDir [] = "dir" |
constexpr char | kFlagDumpJson [] = "dump-json" |
constexpr char | kFlagDisableCache [] = "disable-cache" |
constexpr char | kFlagCasInstance [] = "cas-instance" |
constexpr char | kFlagCasAddr [] = "cas-addr" |
constexpr char | kFlagServiceAccountJson [] = "service-account-json" |
constexpr char | kFlagUseAdc [] = "use-adc" |
constexpr int | kDefaultMemoryLimit = 0 |
constexpr int | kDefaultCasConcurrency = 500 |
constexpr int | kDefaultRpcTimeout = 120 |
constexpr int | kDefaultGetCapabilitiesTimeout = 5 |
constexpr int | kDefaultGetTreeTimeout = 5 |
constexpr int | kDefaultBatchReadBlobsTimeout = 180 |
constexpr int | kDefaultBatchUpdateBlobsTimeout = 60 |
constexpr char | kAndroidBuildApiScope [] |
Classes to to enable safe access to files. POSIX kernels have an unfortunate habit of recycling file descriptors. That can cause problems like http://b/26121457 in code that doesn't manage file lifetimes properly. These classes implement an alternate interface that has some advantages:
o References to files are tightly controlled o Files are auto-closed if they go out of scope o Files are life-time aware. It is impossible to close the instance twice. o File descriptors are always initialized. By default the descriptor is set to a closed instance.
These classes are designed to mimic to POSIX interface as closely as possible. Specifically, they don't attempt to track the type of file descriptors and expose only the valid operations. This is by design, since it makes it easier to convert existing code to SharedFDs and avoids the possibility that new POSIX functionality will lead to large refactorings.
ConfUiUserSelectionMessage with a security flag
Inputs generated by something that belong to (virtualized) TEE is regarded as secure. Otherwise (e.g. inputs generated by the guest calling deliverSecureInputEvent), it is regarded as insecure.
The host marks the security field, and use it internally and exclusively.
Functions for manipulating disk files given to crosvm or QEMU.
using cuttlefish::AutoCmd = typedef GenericCommandImpl<Fn, decltype(Fn)> |
using cuttlefish::AutoDiagnostic = typedef DiagnosticInformationFnImpl<Fn, decltype(Fn)> |
using cuttlefish::AutoSensorsSocketPair = typedef AutoSetup<SensorsSocketPair::Create> |
using cuttlefish::AutoSetup = typedef GenericSetupImpl<Fn, decltype(Fn)> |
using cuttlefish::AutoSnapshotControlFiles = typedef AutoSetup<SnapshotControlFiles::Create> |
using cuttlefish::Build = typedef std::variant<DeviceBuild, DirectoryBuild> |
using cuttlefish::BuildString = typedef std::variant<DeviceBuildString, DirectoryBuildString> |
using cuttlefish::ChromeOsBuildString = typedef std::variant<ChromeOsBuilder, std::string> |
using cuttlefish::CvdServerClock = typedef std::chrono::system_clock |
using cuttlefish::DigestsFetcher = typedef std::function<Result<std::string>(std::string)> |
using cuttlefish::f_func = typedef std::function<void(const Client&)> |
using cuttlefish::GenerateProcessedFrameCallbackImpl = typedef std::function<void(uint32_t , uint32_t , uint32_t , uint32_t , uint32_t , uint8_t* )> |
using cuttlefish::InterruptListener = typedef std::function<void(int)> |
using cuttlefish::Message = typedef std::vector<std::uint8_t> |
using cuttlefish::MiscInfo = typedef std::map<std::string, std::string> |
typedef struct cuttlefish::msg_buffer cuttlefish::msg_buffer |
using cuttlefish::OnConsumedCb = typedef std::function<void(AudioStatus, uint32_t , uint32_t )> |
using cuttlefish::p_func = typedef std::function<void(const Client&, std::string&)> |
using cuttlefish::Result = typedef android::base::expected<T, StackTraceError> |
using cuttlefish::SerializeTpmKeyPrivate = typedef TpmSerializable<TPM2B_PRIVATE> |
using cuttlefish::SerializeTpmKeyPublic = typedef TpmSerializable<TPM2B_PUBLIC> |
using cuttlefish::SubprocessStopper = typedef std::function<StopperResult(Subprocess*)> |
using cuttlefish::TimeStamp = typedef std::chrono::time_point<CvdServerClock> |
using cuttlefish::TpmObjectSlot = typedef std::shared_ptr<TpmResourceManager::ObjectSlot> |
using cuttlefish::TxBuffer = typedef ShmBuffer |
using cuttlefish::UniqueEsysPtr = typedef std::unique_ptr<T, EsysDeleter> |
|
strong |
|
strong |
|
strong |
enum cuttlefish::AudioChannelMap : uint8_t |
|
strong |
enum cuttlefish::AudioJackFeatures : uint8_t |
|
strong |
|
strong |
|
strong |
enum cuttlefish::AudioStreamRate : uint8_t |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
enum cuttlefish::MetricsExitCodes : int |
enum cuttlefish::ModemServiceType : int |
enum cuttlefish::ModemSimulatorExitCodes : int |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
enum cuttlefish::RunnerExitCodes : int |
|
strong |
|
strong |
enum cuttlefish::SnapshotSocketMessage : uint8_t |
|
strong |
|
strong |
|
strong |
|
strong |
struct cuttlefish::__attribute__ | ( | (__packed__) | ) |
struct cuttlefish::__attribute__ | ( | (packed) | ) |
Result< void > cuttlefish::_RewriteMiscInfo | ( | const std::string & | output_file, |
const std::string & | input_file, | ||
const std::string & | lpmake_path, | ||
const std::function< Result< std::string >(const std::string &)> & | get_image | ||
) |
std::string cuttlefish::AbsolutePath | ( | const std::string & | path | ) |
fruit::Component< AdbConfig > cuttlefish::AdbConfigComponent | ( | ) |
fruit::Component< fruit::Required< AdbConfig, ConfigFlag >, AdbConfigFlag > cuttlefish::AdbConfigFlagComponent | ( | ) |
fruit::Component< fruit::Required< AdbConfig >, AdbConfigFragment > cuttlefish::AdbConfigFragmentComponent | ( | ) |
std::string cuttlefish::AdbConnectorBinary | ( | ) |
int cuttlefish::AdbConnectorMain | ( | int | argc, |
char * | argv[] | ||
) |
std::string cuttlefish::AdbModeToString | ( | AdbMode | mode | ) |
Result< void > cuttlefish::AddFile | ( | WritableZip & | zip, |
const std::string & | fs_path | ||
) |
Result< void > cuttlefish::AddFileAt | ( | WritableZip & | zip, |
const std::string & | fs_path, | ||
const std::string & | zip_path | ||
) |
bool cuttlefish::AddGateway | ( | const std::string & | name, |
const std::string & | gateway, | ||
const std::string & | netmask | ||
) |
EspBuilder cuttlefish::AddGrubConfig | ( | const std::string & | config | ) |
Result< void > cuttlefish::AddStringAt | ( | WritableZip & | zip, |
const std::string & | data, | ||
const std::string & | zip_path | ||
) |
bool cuttlefish::AddTapIface | ( | const std::string & | name | ) |
Result< void > cuttlefish::AggregateImage | ( | const std::vector< ImagePartition > & | partitions, |
const std::string & | output_path | ||
) |
Combine the files in partition
into a single raw disk file and write it to output_path
. The raw disk file will have a GUID Partition Table and copy in the contents of the files mentioned in partitions
.
uint64_t cuttlefish::AlignToPartitionSize | ( | uint64_t | size | ) |
|
constexpr |
std::optional< IfaceConfig > cuttlefish::AllocateNetworkInterfaces | ( | ) |
void cuttlefish::alpha_blend_layer | ( | std::uint8_t * | frame_pixels, |
std::uint32_t | h, | ||
std::uint32_t | w, | ||
std::uint8_t * | overlay | ||
) |
std::vector< ImagePartition > cuttlefish::AndroidCompositeDiskConfig | ( | const CuttlefishConfig::InstanceSpecific & | instance, |
const MetadataImage & | metadata_image, | ||
const MiscImage & | misc_image, | ||
const SystemImageDirFlag & | system_image_dir | ||
) |
std::vector< ImagePartition > cuttlefish::AndroidEfiLoaderCompositeDiskConfig | ( | const CuttlefishConfig::InstanceSpecific & | instance, |
const MetadataImage & | metadata, | ||
const MiscImage & | misc, | ||
const SystemImageDirFlag & | system_image_dir | ||
) |
Result< std::string > cuttlefish::AndroidHostPath | ( | const cvd_common::Envs & | envs | ) |
DiskBuilder cuttlefish::ApCompositeDiskBuilder | ( | const CuttlefishConfig & | config, |
const CuttlefishConfig::InstanceSpecific & | instance | ||
) |
void cuttlefish::AppendInNetworkByteOrder | ( | Message * | msg, |
const std::int32_t | w | ||
) |
void cuttlefish::AppendInNetworkByteOrder | ( | Message * | msg, |
const std::string & | str | ||
) |
void cuttlefish::AppendInNetworkByteOrder | ( | Message * | msg, |
const std::uint16_t | s | ||
) |
void cuttlefish::AppendInNetworkByteOrder | ( | Message * | msg, |
const std::uint32_t | w | ||
) |
void cuttlefish::AppendInNetworkByteOrder | ( | Message * | msg, |
const std::uint8_t | b | ||
) |
|
inline |
void cuttlefish::AppendToMessage | ( | Message * | msg, |
T | v, | ||
Ts... | vals | ||
) |
std::vector< std::string > cuttlefish::ArchiveContents | ( | const std::string & | archive | ) |
Result< bool > cuttlefish::AreHardLinked | ( | const std::string & | source, |
const std::string & | destination | ||
) |
std::vector< std::string > cuttlefish::ArgsToVec | ( | char ** | argv | ) |
std::vector< std::string > cuttlefish::ArgsToVec | ( | int | argc, |
char ** | argv | ||
) |
Result< T > cuttlefish::As | ( | const Json::Value & | v | ) |
|
inline |
|
inline |
|
inline |
|
inline |
Result< int > cuttlefish::AssembleCvdMain | ( | int | argc, |
char ** | argv | ||
) |
std::string cuttlefish::AssemblyDirFromHome | ( | const std::string & | group_home_dir | ) |
cuttlefish::ASSERT_VALID_MSG_TYPE | ( | IoStatusMsg | , |
16 | |||
) |
cuttlefish::ASSERT_VALID_MSG_TYPE | ( | IoTransferMsg | , |
12 | |||
) |
cuttlefish::ASSERT_VALID_MSG_TYPE | ( | virtio_snd_chmap_info | , |
24 | |||
) |
cuttlefish::ASSERT_VALID_MSG_TYPE | ( | virtio_snd_jack_info | , |
24 | |||
) |
cuttlefish::ASSERT_VALID_MSG_TYPE | ( | virtio_snd_pcm_hdr | , |
8 | |||
) |
cuttlefish::ASSERT_VALID_MSG_TYPE | ( | virtio_snd_pcm_info | , |
32 | |||
) |
cuttlefish::ASSERT_VALID_MSG_TYPE | ( | virtio_snd_pcm_set_params | , |
24 | |||
) |
cuttlefish::ASSERT_VALID_MSG_TYPE | ( | virtio_snd_query_info | , |
16 | |||
) |
|
static |
std::string cuttlefish::AutomotiveProxyBinary | ( | ) |
std::optional< MonitorCommand > cuttlefish::AutomotiveProxyService | ( | const CuttlefishConfig & | config | ) |
FetcherConfig cuttlefish::AvailableFilesReport | ( | ) |
|
static |
std::string cuttlefish::AvbToolBinary | ( | ) |
Result< std::optional< MonitorCommand > > cuttlefish::BluetoothConnector | ( | const CuttlefishConfig & | config, |
const CuttlefishConfig::InstanceSpecific & | instance | ||
) |
|
static |
Result< std::unordered_map< std::string, std::string > > cuttlefish::BootconfigArgsFromConfig | ( | const CuttlefishConfig & | config, |
const CuttlefishConfig::InstanceSpecific & | instance | ||
) |
Result< std::string > cuttlefish::BootconfigArgsString | ( | const std::unordered_map< std::string, std::string > & | args, |
const std::string & | separator | ||
) |
Result< void > cuttlefish::BootloaderPresentCheck | ( | const CuttlefishConfig::InstanceSpecific & | instance | ) |
fruit::Component< fruit::Required< const CuttlefishConfig, KernelLogPipeProvider, const CuttlefishConfig::InstanceSpecific, const vm_manager::VmManager, AutoSetup< ValidateTapDevices >::Type > > cuttlefish::bootStateMachineComponent | ( | ) |
Result< DeviceName > cuttlefish::BreakDeviceName | ( | const std::string & | device_name | ) |
bool cuttlefish::BringUpIface | ( | const std::string & | name | ) |
Result< SeekableZipSource > cuttlefish::BufferZipSource | ( | SeekableZipSource | inner, |
size_t | buffer_size | ||
) |
|
static |
Result< void > cuttlefish::BuildDlkmImage | ( | const std::string & | src_dir, |
const bool | is_erofs, | ||
const std::string & | partition_name, | ||
const std::string & | output_image | ||
) |
|
static |
Result< void > cuttlefish::BuildVbmetaImage | ( | const std::string & | image_path, |
const std::string & | vbmeta_path | ||
) |
Result< SeekableZipSource > cuttlefish::CacheZipSource | ( | SeekableZipSource | inner, |
std::string | file_path | ||
) |
bool cuttlefish::CanAccess | ( | const std::string & | path, |
const int | mode | ||
) |
bool cuttlefish::CanGenerateEsp | ( | Arch | arch | ) |
Result< bool > cuttlefish::CanHardLink | ( | const std::string & | source, |
const std::string & | destination | ||
) |
|
inline |
Result< std::vector< MonitorCommand > > cuttlefish::Casimir | ( | const CuttlefishConfig & | config, |
const CuttlefishConfig::EnvironmentSpecific & | environment, | ||
const CuttlefishConfig::InstanceSpecific & | instance, | ||
LogTeeCreator & | log_tee | ||
) |
std::string cuttlefish::CasimirBinary | ( | ) |
Result< std::optional< MonitorCommand > > cuttlefish::CasimirControlServer | ( | const CuttlefishConfig & | config, |
const CuttlefishConfig::EnvironmentSpecific & | environment, | ||
const CuttlefishConfig::InstanceSpecific & | instance, | ||
GrpcSocketCreator & | grpc_socket | ||
) |
std::string cuttlefish::CasimirControlServerBinary | ( | ) |
Result< void > cuttlefish::ChangeGroup | ( | const std::string & | path, |
const std::string & | group_name | ||
) |
void cuttlefish::ChangeSignalHandlers | ( | void(*)(int) | handler, |
std::vector< int > | signals | ||
) |
|
static |
Result< void > cuttlefish::CheckProcessExitedNormally | ( | siginfo_t | infop, |
const int | expected_exit_code | ||
) |
std::vector< ImagePartition > cuttlefish::ChromeOsCompositeDiskConfig | ( | const CuttlefishConfig::InstanceSpecific & | instance, |
const ChromeOsStateImage & | chrome_os_state | ||
) |
Result< void > cuttlefish::CleanPriorFiles | ( | const std::set< std::string > & | preserving, |
const std::vector< std::string > & | clean_dirs | ||
) |
void cuttlefish::CleanupBridgeGateway | ( | const std::string & | name, |
const std::string & | ipaddr, | ||
const GatewayConfig & | config | ||
) |
void cuttlefish::CleanupEthernetIface | ( | const std::string & | name, |
const EthernetNetworkConfig & | config | ||
) |
std::optional< std::vector< FlagInfo > > cuttlefish::CollectFlagsFromHelpxml | ( | const std::string & | xml_str | ) |
Result< std::vector< pid_t > > cuttlefish::CollectPids | ( | const uid_t | uid | ) |
Result< std::vector< pid_t > > cuttlefish::CollectPidsByArgv0 | ( | const std::string & | expected_argv0, |
uid_t | uid = getuid() |
||
) |
When argv[0] != exec_path, collects PIDs based on argv[0]
Result< std::vector< pid_t > > cuttlefish::CollectPidsByExecName | ( | const std::string & | exec_name, |
const uid_t | uid | ||
) |
Result< std::vector< pid_t > > cuttlefish::CollectPidsByExecPath | ( | const std::string & | exec_path, |
const uid_t | uid | ||
) |
Result< std::vector< GroupProcInfo > > cuttlefish::CollectRunCvdGroups | ( | ) |
Ostream & cuttlefish::ConcatToStream | ( | Ostream & | out, |
Args &&... | args | ||
) |
std::string cuttlefish::ConcatToString | ( | Args &&... | args | ) |
fruit::Component< fruit::Required< SystemImageDirFlag >, ConfigFlag > cuttlefish::ConfigFlagComponent | ( | ) |
fruit::Component< ConfigFlag > cuttlefish::ConfigFlagPlaceholder | ( | ) |
Result< std::string > cuttlefish::ConfigureGpuSettings | ( | const gfxstream::proto::GraphicsAvailability & | graphics_availability, |
const std::string & | gpu_mode_arg, | ||
const std::string & | gpu_vhost_user_mode_arg, | ||
const std::string & | gpu_renderer_features_arg, | ||
std::string & | gpu_context_types_arg, | ||
const std::string & | guest_hwui_renderer_arg, | ||
const std::string & | guest_renderer_preload_arg, | ||
VmmMode | vmm, | ||
const GuestConfig & | guest_config, | ||
CuttlefishConfig::MutableInstanceSpecific & | instance | ||
) |
Result< void > cuttlefish::ConfigureNetworkSettings | ( | const std::string & | ril_dns_arg, |
const CuttlefishConfig::InstanceSpecific & | const_instance, | ||
CuttlefishConfig::MutableInstanceSpecific & | instance | ||
) |
Result< std::optional< MonitorCommand > > cuttlefish::ConsoleForwarder | ( | const CuttlefishConfig::InstanceSpecific & | instance | ) |
std::string cuttlefish::ConsoleForwarderBinary | ( | ) |
int cuttlefish::ConsoleForwarderMain | ( | int | argc, |
char ** | argv | ||
) |
std::string cuttlefish::ConsoleInfo | ( | const CuttlefishConfig::InstanceSpecific & | instance | ) |
android::base::LogSeverity cuttlefish::ConsoleSeverity | ( | ) |
|
inline |
Result< Command > cuttlefish::ConstructCommand | ( | const ConstructCommandParam & | param | ) |
Result< Command > cuttlefish::ConstructCvdGenericNonHelpCommand | ( | const ConstructNonHelpForm & | request_form, |
const CommandRequest & | request | ||
) |
Result< Command > cuttlefish::ConstructCvdHelpCommand | ( | const std::string & | bin_file, |
cvd_common::Envs | envs, | ||
const std::vector< std::string > & | subcmd_args, | ||
const CommandRequest & | request | ||
) |
std::string cuttlefish::ConstructTargetFilepath | ( | const std::string & | directory, |
const std::string & | filename | ||
) |
|
static |
Result< void > cuttlefish::ConsumeFlags | ( | const std::vector< Flag > & | flags, |
std::vector< std::string > && | args, | ||
const bool | recognize_end_of_option_mark | ||
) |
Result< void > cuttlefish::ConsumeFlags | ( | const std::vector< Flag > & | flags, |
std::vector< std::string > & | args, | ||
const bool | recognize_end_of_option_mark | ||
) |
Result< void > cuttlefish::ConsumeFlagsConstrained | ( | const std::vector< Flag > & | flags, |
std::vector< std::string > && | args | ||
) |
Result< void > cuttlefish::ConsumeFlagsConstrained | ( | const std::vector< Flag > & | flags, |
std::vector< std::string > & | args | ||
) |
|
static |
|
static |
|
constexpr |
|
constexpr |
|
constexpr |
std::string cuttlefish::ControlEnvProxyServerBinary | ( | ) |
fruit::Component< fruit::Required< const CuttlefishConfig::InstanceSpecific, GrpcSocketCreator > > cuttlefish::ControlEnvProxyServerComponent | ( | ) |
Result< void > cuttlefish::ControlLoop | ( | SharedFD | control_socket, |
DisplayHandler & | display_handler, | ||
RecordingManager & | recording_manager, | ||
ScreenshotHandler & | screenshot_handler | ||
) |
Result< SnapshotCmd > cuttlefish::ConvertToSnapshotCmd | ( | const std::string & | input | ) |
bool cuttlefish::Copy | ( | const std::string & | from, |
const std::string & | to | ||
) |
Result< void > cuttlefish::Copy | ( | ReadableZipSource & | input, |
WritableZipSource & | output | ||
) |
Result< void > cuttlefish::CopyDirectoryRecursively | ( | const std::string & | src_dir_path, |
const std::string & | dest_dir_path, | ||
const bool | verify_dest_dir_empty, | ||
std::function< bool(const std::string &)> | predicate | ||
) |
On taking snapshot, we should delete dest_dir first. On Restoring, we don't delete the runtime directory, eventually. We could, however, start with deleting it.
|
static |
|
static |
std::string cuttlefish::CpioBinary | ( | ) |
|
static |
std::unique_ptr< AudioServer > cuttlefish::CreateAudioServer | ( | ) |
Result< void > cuttlefish::CreateBlankImage | ( | const std::string & | image, |
int | num_mb, | ||
const std::string & | image_fmt | ||
) |
bool cuttlefish::CreateBridge | ( | const std::string & | name | ) |
Result< void > cuttlefish::CreateCompositeDisk | ( | std::vector< ImagePartition > | partitions, |
const std::string & | header_file, | ||
const std::string & | footer_file, | ||
const std::string & | output_composite_path, | ||
bool | read_only | ||
) |
Generate the files necessary for booting with a Composite Disk.
Composite Disk is a crosvm disk format that is a layer of indirection over other disk files. The Composite Disk file lists names and offsets in the virtual disk.
For a complete single disk inside the VM, there must also be a GUID Partition Table header and footer. These are saved to header_file
and footer_file
, then the specification file containing the file paths and offsets is saved to output_composite_path
.
fruit::Component< ScreenConnector< DisplayHandler::WebRtcScProcessedFrame >, confui::HostServer, confui::HostVirtualInput > cuttlefish::CreateConfirmationUIComponent | ( | int * | frames_fd, |
bool * | frames_are_rgba, | ||
confui::PipeConnectionPair * | pipe_io_pair, | ||
InputConnector * | input_connector | ||
) |
Result< void > cuttlefish::CreateDynamicDiskFiles | ( | const FetcherConfig & | fetcher_config, |
const CuttlefishConfig & | config, | ||
const SystemImageDirFlag & | system_image_dir | ||
) |
bool cuttlefish::CreateEbtables | ( | const std::string & | name, |
bool | use_ipv4, | ||
bool | use_ebtables_legacy | ||
) |
bool cuttlefish::CreateEthernetBridgeIface | ( | const std::string & | name, |
const std::string & | ipaddr | ||
) |
bool cuttlefish::CreateEthernetIface | ( | const std::string & | name, |
const std::string & | bridge_name, | ||
bool | has_ipv4_bridge, | ||
bool | has_ipv6_bridge, | ||
bool | use_ebtables_legacy | ||
) |
Result< std::string > cuttlefish::CreateHardLink | ( | const std::string & | target, |
const std::string & | hardlink, | ||
const bool | overwrite_existing | ||
) |
|
static |
SharedFD cuttlefish::CreateMemFDWithData | ( | const std::string & | data | ) |
Message cuttlefish::CreateMessage | ( | Ts... | vals | ) |
Result< Json::Value > cuttlefish::CreateMetaInfo | ( | const CuttlefishConfig & | cuttlefish_config, |
const std::string & | snapshot_path | ||
) |
bool cuttlefish::CreateMobileIface | ( | const std::string & | name, |
uint16_t | id, | ||
const std::string & | ipaddr | ||
) |
Result< std::unique_ptr< CredentialSource > > cuttlefish::CreateRefreshTokenCredentialSource | ( | HttpClient & | http_client, |
const std::string & | client_id, | ||
const std::string & | client_secret, | ||
const std::string & | refresh_token | ||
) |
Result< void > cuttlefish::CreateSymLink | ( | const std::string & | target, |
const std::string & | link, | ||
const bool | overwrite_existing | ||
) |
bool cuttlefish::CreateTap | ( | const std::string & | name | ) |
std::string cuttlefish::CreateTempFileWithText | ( | const std::string & | filepath, |
const std::string & | text | ||
) |
Result< std::unique_ptr< CredentialSource > > cuttlefish::CredentialForScopes | ( | HttpClient & | http_client, |
const std::vector< std::string > & | scopes | ||
) |
Result< std::vector< std::string > > cuttlefish::CrosvmCpuArguments | ( | const Json::Value & | vcpu_config_json | ) |
std::unique_ptr< HttpClient > cuttlefish::CurlHttpClient | ( | bool | use_logging_debug_function | ) |
std::string cuttlefish::CurrentDirectory | ( | ) |
Result< std::string > cuttlefish::CurrentUserName | ( | ) |
fruit::Component< fruit::Required< ConfigFlag >, CustomActionConfigProvider > cuttlefish::CustomActionsComponent | ( | ) |
|
static |
|
static |
int cuttlefish::CuttlefishMain | ( | ) |
std::string cuttlefish::CvdallocBinary | ( | ) |
fruit::Component< fruit::Required< const CuttlefishConfig::InstanceSpecific > > cuttlefish::CvdallocComponent | ( | ) |
std::string cuttlefish::CvdallocInterfaceName | ( | const std::string & | name, |
int | num | ||
) |
Result< int > cuttlefish::CvdallocMain | ( | int | argc, |
char * | argv[] | ||
) |
Result< std::string > cuttlefish::CvdCacheHome | ( | ) |
Result< std::vector< std::string > > cuttlefish::CvdConfigDirs | ( | ) |
Result< std::string > cuttlefish::CvdConfigHome | ( | ) |
Result< std::vector< std::string > > cuttlefish::CvdDataDirs | ( | ) |
Result< std::string > cuttlefish::CvdDataHome | ( | ) |
std::string cuttlefish::CvdDir | ( | ) |
|
static |
std::string cuttlefish::CvdRuntimeDir | ( | ) |
Result< std::string > cuttlefish::CvdStateHome | ( | ) |
Result< void > cuttlefish::DeAndroidSparse2 | ( | const std::vector< std::string > & | image_files | ) |
Converts any Android-Sparse image files in image_files
to raw image files.
Android-Sparse is a file format invented by Android that optimizes for chunks of zeroes or repeated data. The Android build system can produce sparse files to save on size of disk files after they are extracted from a disk file, as the imag eflashing process also can handle Android-Sparse images.
crosvm has read-only support for Android-Sparse files, but QEMU does not support them.
bool cuttlefish::DecodeBase64 | ( | const std::string & | data, |
std::vector< std::uint8_t > * | buffer | ||
) |
std::vector< std::string > cuttlefish::Dedup | ( | std::vector< std::string > && | vec | ) |
std::string cuttlefish::DefaultBaseDir | ( | ) |
InstanceDisplays cuttlefish::DefaultDisplays | ( | ) |
std::string cuttlefish::DefaultEnvironmentPath | ( | const std::string & | environment_key, |
const std::string & | default_value, | ||
const std::string & | subpath | ||
) |
std::string cuttlefish::DefaultGamepadSpec | ( | ) |
std::string cuttlefish::DefaultGuestImagePath | ( | const std::string & | file_name | ) |
std::string cuttlefish::DefaultHostArtifactsPath | ( | const std::string & | file_name | ) |
std::string cuttlefish::DefaultKeyboardSpec | ( | ) |
std::string cuttlefish::DefaultMouseSpec | ( | ) |
std::string cuttlefish::DefaultMultiTouchpadSpecTemplate | ( | ) |
std::string cuttlefish::DefaultMultiTouchscreenSpecTemplate | ( | ) |
Result< IfaceConfig > cuttlefish::DefaultNetworkInterfaces | ( | const CuttlefishConfig::InstanceSpecific & | instance | ) |
std::string cuttlefish::DefaultQemuBinaryDir | ( | ) |
gatekeeper::failure_record_t cuttlefish::DefaultRecord | ( | gatekeeper::secure_id_t | secure_user_id | ) |
std::string cuttlefish::DefaultRotaryDeviceSpec | ( | ) |
std::string cuttlefish::DefaultSingleTouchpadSpecTemplate | ( | ) |
std::string cuttlefish::DefaultSingleTouchscreenSpecTemplate | ( | ) |
void cuttlefish::DefaultSubprocessLogging | ( | char * | argv[], |
MetadataLevel | stderr_level | ||
) |
std::string cuttlefish::DefaultSwitchesSpec | ( | ) |
bool cuttlefish::DeleteIface | ( | const std::string & | name | ) |
Result< DisjointRangeSet > cuttlefish::DeserializeDisjointRangeSet | ( | std::string_view | data | ) |
bool cuttlefish::DestroyBridge | ( | const std::string & | name | ) |
bool cuttlefish::DestroyEbtables | ( | const std::string & | name, |
bool | use_ipv4, | ||
bool | use_ebtables_legacy | ||
) |
bool cuttlefish::DestroyEthernetBridgeIface | ( | const std::string & | name, |
const std::string & | ipaddr | ||
) |
bool cuttlefish::DestroyEthernetIface | ( | const std::string & | name, |
bool | has_ipv4_bridge, | ||
bool | has_ipv6_bridge, | ||
bool | use_ebtables_legacy | ||
) |
bool cuttlefish::DestroyGateway | ( | const std::string & | name, |
const std::string & | gateway, | ||
const std::string & | netmask | ||
) |
bool cuttlefish::DestroyIface | ( | const std::string & | name | ) |
bool cuttlefish::DestroyMobileIface | ( | const std::string & | name, |
uint16_t | id, | ||
const std::string & | ipaddr | ||
) |
std::string cuttlefish::DeviceId | ( | const Instance & | instance | ) |
|
static |
Result< std::vector< std::string > > cuttlefish::DirectoryContents | ( | const std::string & | path | ) |
Result< std::vector< std::string > > cuttlefish::DirectoryContentsPaths | ( | const std::string & | path | ) |
|
static |
bool cuttlefish::DirectoryExists | ( | const std::string & | path, |
bool | follow_symlinks | ||
) |
Result< void > cuttlefish::DiskImageFlagsVectorization | ( | CuttlefishConfig & | config, |
const FetcherConfig & | fetcher_config, | ||
const AndroidEfiLoaderFlag & | android_efi_loader, | ||
const BootImageFlag & | boot_image, | ||
const BootloaderFlag & | bootloader, | ||
const InitramfsPathFlag & | initramfs_path, | ||
const KernelPathFlag & | kernel_path, | ||
const SuperImageFlag & | super_image, | ||
const SystemImageDirFlag & | system_image_dir, | ||
const VendorBootImageFlag & | vendor_boot_image | ||
) |
fruit::Component< DisplaysConfigs > cuttlefish::DisplaysConfigsComponent | ( | ) |
fruit::Component< fruit::Required< DisplaysConfigs, ConfigFlag >, DisplaysConfigsFlag > cuttlefish::DisplaysConfigsFlagComponent | ( | ) |
fruit::Component< fruit::Required< DisplaysConfigs >, DisplaysConfigsFragment > cuttlefish::DisplaysConfigsFragmentComponent | ( | ) |
Result< std::optional< InstancesDisplays > > cuttlefish::DisplaysFlag | ( | std::vector< std::string > | args | ) |
bool cuttlefish::EbtablesBroute | ( | const std::string & | name, |
bool | use_ipv4, | ||
bool | add, | ||
bool | use_ebtables_legacy | ||
) |
bool cuttlefish::EbtablesFilter | ( | const std::string & | name, |
bool | use_ipv4, | ||
bool | add, | ||
bool | use_ebtables_legacy | ||
) |
MonitorCommand cuttlefish::EchoServer | ( | GrpcSocketCreator & | grpc_socket | ) |
std::string cuttlefish::EchoServerBinary | ( | ) |
Result< void > cuttlefish::EmptyCache | ( | const std::string & | cache_directory | ) |
Result< std::string > cuttlefish::EmulateAbsolutePath | ( | const InputPathForm & | path_info | ) |
Returns emulated absolute path with a different process'/thread's context.
This is useful when daemon(0, 0)-started server process wants to figure out a relative path that came from its client.
The call mostly succeeds. It fails only if: home_dir isn't given so supposed to relies on the local SystemWideUserHome() but SystemWideUserHome() call fails.
|
static |
|
static |
bool cuttlefish::EncodeBase64 | ( | const void * | data, |
std::size_t | size, | ||
std::string * | out | ||
) |
Result< android::base::LogSeverity > cuttlefish::EncodeVerbosity | ( | const std::string & | verbosity | ) |
Result< void > cuttlefish::EnforceVbMetaSize | ( | const std::string & | path | ) |
bool cuttlefish::EnsureCacheDirectory | ( | const std::string & | cache_base_path | ) |
Result< void > cuttlefish::EnsureDirectoryExists | ( | const std::string & | directory_path, |
const mode_t | mode, | ||
const std::string & | group_name | ||
) |
|
constexpr |
std::unordered_map< std::string, std::string > cuttlefish::EnvpToMap | ( | char ** | envp | ) |
|
inline |
auto cuttlefish::ErrorFromType | ( | Result< T > && | value | ) |
auto cuttlefish::ErrorFromType | ( | Result< T > & | value | ) |
|
inline |
|
static |
|
static |
void cuttlefish::EstablishAndMaintainConnection | ( | const std::string & | address | ) |
int cuttlefish::Execute | ( | const std::vector< std::string > & | commands | ) |
Returns the exit status on success, negative values on error
If failed in fork() or exec(), returns -1. If the child exited from an unhandled signal, returns -1. Otherwise, returns the exit status.
TODO: Changes return type to Result<int>
For now, too many callsites expects int, and needs quite a lot of changes if we change the return type.
int cuttlefish::Execute | ( | const std::vector< std::string > & | commands, |
const std::vector< std::string > & | envs | ||
) |
Result< siginfo_t > cuttlefish::Execute | ( | const std::vector< std::string > & | commands, |
const std::vector< std::string > & | envs, | ||
SubprocessOptions | subprocess_options, | ||
int | wait_options | ||
) |
Result< siginfo_t > cuttlefish::Execute | ( | const std::vector< std::string > & | commands, |
SubprocessOptions | subprocess_options, | ||
int | wait_options | ||
) |
Similar as the two above but returns CF_ERR instead of -1, and siginfo_t instead of the exit status.
Result< std::vector< std::string > > cuttlefish::ExtractArchiveContents | ( | const std::string & | archive_filepath, |
const std::string & | target_directory, | ||
const bool | keep_archive | ||
) |
std::string cuttlefish::ExtractArchiveToMemory | ( | const std::string & | archive_filepath, |
const std::string & | archive_member | ||
) |
Result< cvd_common::Args > cuttlefish::ExtractCvdArgs | ( | cvd_common::Args & | args | ) |
Result< void > cuttlefish::ExtractFile | ( | ReadableZip & | zip, |
const std::string & | zip_path, | ||
const std::string & | host_path | ||
) |
Result< std::string > cuttlefish::ExtractImage | ( | const std::string & | archive_filepath, |
const std::string & | target_directory, | ||
const std::string & | image, | ||
const bool | keep_archive | ||
) |
Result< std::vector< std::string > > cuttlefish::ExtractImageContents | ( | const std::string & | image_filepath, |
const std::string & | target_dir, | ||
const bool | keep_archive | ||
) |
Result< std::vector< std::string > > cuttlefish::ExtractImages | ( | const std::string & | archive_filepath, |
const std::string & | target_directory, | ||
const std::vector< std::string > & | images, | ||
const bool | keep_archive | ||
) |
Result< cvd::config::EnvironmentSpecification > cuttlefish::ExtractLaunchTemplates | ( | cvd::config::EnvironmentSpecification | config | ) |
Result< EnvironmentSpecification > cuttlefish::ExtractLaunchTemplates | ( | EnvironmentSpecification | config | ) |
fruit::Component< FastbootConfig > cuttlefish::FastbootConfigComponent | ( | ) |
fruit::Component< fruit::Required< FastbootConfig, ConfigFlag >, FastbootConfigFlag > cuttlefish::FastbootConfigFlagComponent | ( | ) |
fruit::Component< fruit::Required< FastbootConfig >, FastbootConfigFragment > cuttlefish::FastbootConfigFragmentComponent | ( | ) |
Result< std::vector< FetchResult > > cuttlefish::FetchCvdMain | ( | const FetchFlags & | flags | ) |
Result< void > cuttlefish::FetchHostPackage | ( | BuildApi & | build_api, |
const Build & | build, | ||
const std::string & | target_dir, | ||
const bool | keep_archives, | ||
const std::vector< std::string > & | host_substitutions, | ||
FetchTracer::Trace | trace | ||
) |
Result< Json::Value > cuttlefish::FetchInstanceStatus | ( | LocalInstance & | instance, |
std::chrono::seconds | timeout | ||
) |
uint32_t cuttlefish::FileCrc | ( | const std::string & | path | ) |
Result< dev_t > cuttlefish::FileDeviceId | ( | const std::string & | path | ) |
bool cuttlefish::FileEquals | ( | const std::string & | file1, |
const std::string & | file2 | ||
) |
bool cuttlefish::FileExists | ( | const std::string & | path, |
bool | follow_symlinks | ||
) |
bool cuttlefish::FileHasContent | ( | const std::string & | path | ) |
Result< ino_t > cuttlefish::FileInodeNumber | ( | const std::string & | path | ) |
bool cuttlefish::FileIsSocket | ( | const std::string & | path | ) |
Result< std::chrono::system_clock::time_point > cuttlefish::FileModificationTime | ( | const std::string & | path | ) |
|
static |
off_t cuttlefish::FileSize | ( | const std::string & | path | ) |
|
static |
bool cuttlefish::FindConfig | ( | const std::vector< std::string > & | vec, |
const std::string & | element | ||
) |
bool cuttlefish::FindConfigIgnoreSpaces | ( | const std::vector< std::string > & | vec, |
const std::string & | str | ||
) |
Result< std::vector< std::string > > cuttlefish::FindCvdDataFiles | ( | std::string_view | path | ) |
Result< std::string > cuttlefish::FindFile | ( | const std::string & | path, |
const std::string & | target_name | ||
) |
std::string cuttlefish::FindImage | ( | const std::string & | search_path, |
const std::vector< std::string > & | pattern | ||
) |
Find an image file through the input path and pattern.
If it finds the file, return the path string. If it can't find the file, return empty string.
Result< std::string > cuttlefish::FindImageDir | ( | const std::string & | image_dir | ) |
Result< std::string > cuttlefish::FindMiscInfo | ( | const std::string & | image_dir | ) |
std::optional< std::map< std::string, std::string > > cuttlefish::flagXml | ( | const Flag & | f | ) |
Result< void > cuttlefish::ForcefullyStopGroup | ( | const uid_t | any_id_in_group | ) |
Result< void > cuttlefish::ForceRawImage | ( | const std::string & | image_path | ) |
std::string cuttlefish::ForCurrentInstance | ( | const char * | prefix | ) |
std::string cuttlefish::Format | ( | const TimeStamp & | time_point | ) |
std::string cuttlefish::FromSeverity | ( | const android::base::LogSeverity | severity | ) |
std::vector< ImagePartition > cuttlefish::FuchsiaCompositeDiskConfig | ( | const CuttlefishConfig::InstanceSpecific & | instance | ) |
Result< void > cuttlefish::Gem5ImageUnpacker | ( | const CuttlefishConfig & | config | ) |
Result< std::vector< std::string > > cuttlefish::GenerateBootFlags | ( | const cvd::config::EnvironmentSpecification & | ) |
Result< std::vector< std::string > > cuttlefish::GenerateBootFlags | ( | const EnvironmentSpecification & | cfg | ) |
std::vector< std::string > cuttlefish::GenerateConnectivityFlags | ( | const cvd::config::EnvironmentSpecification & | ) |
std::vector< std::string > cuttlefish::GenerateConnectivityFlags | ( | const EnvironmentSpecification & | cfg | ) |
void cuttlefish::GenerateCorrespondingIpv6ForMac | ( | const std::uint8_t | mac[6], |
std::uint8_t | out[16] | ||
) |
Linux uses mac to generate link-local IPv6 address following:
std::vector< std::string > cuttlefish::GenerateDiskFlags | ( | const cvd::config::EnvironmentSpecification & | ) |
std::vector< std::string > cuttlefish::GenerateDiskFlags | ( | const EnvironmentSpecification & | config | ) |
Result< std::optional< std::string > > cuttlefish::GenerateDisplayFlag | ( | const EnvironmentSpecification & | cfg | ) |
void cuttlefish::GenerateEthMacForInstance | ( | int | index, |
std::uint8_t | out[6] | ||
) |
std::string cuttlefish::GenerateFlag | ( | const std::string & | name, |
const T & | value | ||
) |
Result< std::vector< std::string > > cuttlefish::GenerateGraphicsFlags | ( | const cvd::config::EnvironmentSpecification & | ) |
Result< std::vector< std::string > > cuttlefish::GenerateGraphicsFlags | ( | const EnvironmentSpecification & | cfg | ) |
std::string cuttlefish::GenerateInstanceFlag | ( | const std::string & | name, |
const cvd::config::EnvironmentSpecification & | config, | ||
T | callback | ||
) |
Result< std::vector< std::string > > cuttlefish::GenerateInstancesFlags | ( | const cvd::config::EnvironmentSpecification & | cfg | ) |
Result< std::vector< std::string > > cuttlefish::GenerateInstancesFlags | ( | const EnvironmentSpecification & | cfg | ) |
std::vector< std::string > cuttlefish::GenerateMetricsFlags | ( | const cvd::config::EnvironmentSpecification & | ) |
std::vector< std::string > cuttlefish::GenerateMetricsFlags | ( | const EnvironmentSpecification & | config | ) |
void cuttlefish::GenerateMobileMacForInstance | ( | int | index, |
std::uint8_t | out[6] | ||
) |
key_t cuttlefish::GenerateQueueKey | ( | const char * | str | ) |
std::vector< std::string > cuttlefish::GenerateSecurityFlags | ( | const cvd::config::EnvironmentSpecification & | cfg | ) |
std::vector< std::string > cuttlefish::GenerateSecurityFlags | ( | const EnvironmentSpecification & | cfg | ) |
std::vector< std::string > cuttlefish::GenerateStreamingFlags | ( | const cvd::config::EnvironmentSpecification & | ) |
std::vector< std::string > cuttlefish::GenerateStreamingFlags | ( | const EnvironmentSpecification & | cfg | ) |
std::string cuttlefish::GenerateVecFlag | ( | const std::string & | name, |
const T & | collection | ||
) |
Result< std::vector< std::string > > cuttlefish::GenerateVmFlags | ( | const cvd::config::EnvironmentSpecification & | ) |
Result< std::vector< std::string > > cuttlefish::GenerateVmFlags | ( | const EnvironmentSpecification & | cfg | ) |
void cuttlefish::GenerateWifiMacForInstance | ( | int | index, |
std::uint8_t | out[6] | ||
) |
Result< std::vector< T > > cuttlefish::GetArrayValues | ( | const Json::Value & | array, |
const std::vector< std::string > & | selectors | ||
) |
std::string cuttlefish::GetATCommand | ( | const std::string & | plmn, |
int32_t | identifierType, | ||
int32_t | protocolMessage, | ||
bool | isEmergency | ||
) |
Allows for the serialization of aidl::android::hardware::radio::network::CellularIdentifierDisclosure objects into an AT command that can be processed by the cuttlefish RIL to trigger unsolicited calls to aidl::android::hardware::radio::network::IRadioNetworkIndication::cellularIdentifierDisclosed.
std::string cuttlefish::GetATCommand | ( | int32_t | connection_event, |
int32_t | encryption, | ||
int32_t | integrity, | ||
bool | is_unprotected_emergency | ||
) |
Constructs the AT command that updates the security algorithm that is reported by the cuttlefish RIL. The handler of the AT command will trigger unsolicited calls to aidl::android::hardware::radio::network::IRadioNetworkIndication::securityAlgorithmsUpdated.
std::tuple< std::string, std::string > cuttlefish::GetBuildIdAndTarget | ( | const Build & | build | ) |
std::string cuttlefish::GetBuildZipName | ( | const Build & | build, |
const std::string & | name | ||
) |
Returns the name of one of the artifact target zip files.
For example, for a target "aosp_cf_x86_phone-userdebug" at a build "5824130", the image zip file would be "aosp_cf_x86_phone-img-5824130.zip"
Result< std::size_t > cuttlefish::GetCacheSize | ( | const std::string & | cache_directory | ) |
Result< std::vector< std::string > > cuttlefish::GetCmdArgs | ( | const pid_t | pid | ) |
Result< MiscInfo > cuttlefish::GetCombinedDynamicPartitions | ( | const MiscInfo & | vendor_info, |
const MiscInfo & | system_info, | ||
const std::set< std::string > & | extracted_images | ||
) |
std::string cuttlefish::GetConfigFilePath | ( | const CuttlefishConfig & | config | ) |
std::vector< std::string > cuttlefish::GetCreatedFileListFromInotifyFd | ( | int | fd | ) |
Result< std::unique_ptr< CredentialSource > > cuttlefish::GetCredentialSource | ( | HttpClient & | http_client, |
const std::string & | credential_source, | ||
const std::string & | oauth_filepath, | ||
const bool | use_gce_metadata, | ||
const std::string & | credential_filepath, | ||
const std::string & | service_account_filepath | ||
) |
Result< std::string > cuttlefish::GetCuttlefishConfigPath | ( | const std::string & | home | ) |
Result< const std::string > cuttlefish::GetDefaultConfigFile | ( | ) |
Return path to default config file.
int cuttlefish::GetDefaultVsockCid | ( | ) |
Result< std::size_t > cuttlefish::GetDiskUsageBytes | ( | const std::string & | path | ) |
Result< std::size_t > cuttlefish::GetDiskUsageGigabytes | ( | const std::string & | path | ) |
Result< std::unordered_map< std::string, std::string > > cuttlefish::GetEnvs | ( | const pid_t | pid | ) |
Result< std::string > cuttlefish::GetExecutablePath | ( | const pid_t | pid | ) |
|
static |
std::string cuttlefish::GetFetchLogsFileName | ( | const std::string & | target_directory | ) |
std::vector< std::string > cuttlefish::GetFileListFromInotifyFd | ( | int | fd, |
uint32_t | mask | ||
) |
std::optional< std::string > cuttlefish::GetFilepath | ( | const Build & | build | ) |
std::optional< std::string > cuttlefish::GetFilepath | ( | const BuildString & | build_string | ) |
Result< LoadFlags > cuttlefish::GetFlags | ( | std::vector< std::string > & | args, |
const std::string & | working_directory | ||
) |
std::string cuttlefish::GetGlobalConfigFileLink | ( | ) |
gfxstream::proto::GraphicsAvailability cuttlefish::GetGraphicsAvailabilityWithSubprocessCheck | ( | ) |
Result< std::string > cuttlefish::GetImageForPartition | ( | std::string const & | partition_name, |
std::string const & | image_dir, | ||
const std::map< std::string, std::string > & | image_paths | ||
) |
int cuttlefish::GetInstance | ( | ) |
Result< SharedFD > cuttlefish::GetLauncherMonitor | ( | const CuttlefishConfig & | config, |
const int | instance_num, | ||
const int | timeout_seconds | ||
) |
Result< SharedFD > cuttlefish::GetLauncherMonitorFromInstance | ( | const CuttlefishConfig::InstanceSpecific & | instance_config, |
const int | timeout_seconds | ||
) |
android::base::LogSeverity cuttlefish::GetMinimumVerbosity | ( | ) |
std::optional< T > cuttlefish::GetOptional | ( | const std::vector< std::optional< T > > & | vector, |
size_t | i | ||
) |
std::optional< T > cuttlefish::GetOptional | ( | const std::vector< T > & | vector, |
size_t | i | ||
) |
Result< const std::uint8_t * > cuttlefish::GetPartitionGUID | ( | GptPartitionType | type | ) |
std::string cuttlefish::GetSeccompPolicyDir | ( | ) |
uid_t cuttlefish::GetUserIDFromSock | ( | SharedFD | client_socket | ) |
std::optional< std::string > cuttlefish::GetUserName | ( | uid_t | uid | ) |
std::string cuttlefish::GetUserType | ( | ) |
Result< T > cuttlefish::GetValue | ( | const Json::Value & | root, |
const std::vector< std::string > & | selectors | ||
) |
Result< VbmetaArgs > cuttlefish::GetVbmetaArgs | ( | const MiscInfo & | misc_info, |
const std::string & | image_path | ||
) |
VersionIdentifiers cuttlefish::GetVersionIds | ( | ) |
int cuttlefish::GetVsockServerPort | ( | const int | base, |
const int | vsock_guest_cid | ||
) |
vsock_guest_cid | per instance guest cid |
|
static |
|
static |
|
static |
Flag cuttlefish::GflagsCompatFlag | ( | const std::string & | name | ) |
Flag cuttlefish::GflagsCompatFlag | ( | const std::string & | name, |
bool & | value | ||
) |
Flag cuttlefish::GflagsCompatFlag | ( | const std::string & | name, |
int32_t & | value | ||
) |
Flag cuttlefish::GflagsCompatFlag | ( | const std::string & | name, |
std::int32_t & | value | ||
) |
Flag cuttlefish::GflagsCompatFlag | ( | const std::string & | name, |
std::optional< BuildString > & | value | ||
) |
Flag cuttlefish::GflagsCompatFlag | ( | const std::string & | name, |
std::size_t & | value | ||
) |
Flag cuttlefish::GflagsCompatFlag | ( | const std::string & | name, |
std::string & | value | ||
) |
Flag cuttlefish::GflagsCompatFlag | ( | const std::string & | name, |
std::vector< bool > & | value, | ||
const bool | default_value | ||
) |
Flag cuttlefish::GflagsCompatFlag | ( | const std::string & | name, |
std::vector< std::optional< BuildString > > & | value | ||
) |
Flag cuttlefish::GflagsCompatFlag | ( | const std::string & | name, |
std::vector< std::optional< ChromeOsBuildString > > & | value | ||
) |
Flag cuttlefish::GflagsCompatFlag | ( | const std::string & | name, |
std::vector< std::string > & | value | ||
) |
|
static |
|
static |
fruit::Component< fruit::Required< ConfigFlag >, ParseGflags > cuttlefish::GflagsComponent | ( | ) |
|
static |
|
static |
std::string cuttlefish::GnssGrpcProxyBinary | ( | ) |
Result< std::optional< MonitorCommand > > cuttlefish::GnssGrpcProxyServer | ( | const CuttlefishConfig::InstanceSpecific & | instance, |
GrpcSocketCreator & | grpc_socket | ||
) |
std::string cuttlefish::GpuMode | ( | const Instance & | instance | ) |
Result< std::string > cuttlefish::GroupDirFromHome | ( | std::string_view | dir | ) |
gid_t cuttlefish::GroupIdFromName | ( | const std::string & | group_name | ) |
|
static |
|
static |
Result< std::vector< std::string > > cuttlefish::GuestSnapshotDirectories | ( | const std::string & | snapshot_path | ) |
Result< std::string > cuttlefish::HandleCmds | ( | const std::string & | grpc_socket_path, |
const std::string & | cmd, | ||
const std::vector< std::string > & | args | ||
) |
Result< std::string > cuttlefish::HandleHostGroupSnapshot | ( | const std::string & | path | ) |
cp -r <cuttlefish home dir> <snapshot_path> write meta info for cvd: i.e. HOME, group name, instance names returns the path of generated snapshot json file
Takes the snapshot of instance group
This may includes the snapshot for cvd_env, etc. However, for now, we also take per-instance host snapshot here.
TODO(kwstephenkim): separate host instance specific snapshot from the host group snapshot
Result< void > cuttlefish::HardLinkDirecoryContentsRecursively | ( | const std::string & | source, |
const std::string & | destination | ||
) |
Result< bool > cuttlefish::HasHelpFlag | ( | const std::vector< std::string > & | args | ) |
|
inline |
std::optional< std::string_view > cuttlefish::HeaderValue | ( | const std::vector< HttpHeader > & | headers, |
std::string_view | header_name | ||
) |
Flag cuttlefish::HelpXmlFlag | ( | const std::vector< Flag > & | flags, |
std::ostream & | out, | ||
bool & | value, | ||
std::string | text | ||
) |
Result< std::vector< uint8_t > > cuttlefish::HexToBytes | ( | const std::string & | hex_string | ) |
Arch cuttlefish::HostArch | ( | ) |
const std::string & cuttlefish::HostArchStr | ( | ) |
Returns e.g. aarch64, x86_64, etc
std::string cuttlefish::HostBinaryDir | ( | ) |
std::string cuttlefish::HostBinaryPath | ( | const std::string & | binary_name | ) |
Result< void > cuttlefish::HostPackageSubstitution | ( | const std::string & | target_dir, |
const std::vector< std::string > & | host_substitutions | ||
) |
std::string cuttlefish::HostQemuBiosPath | ( | ) |
bool cuttlefish::HostSupportsQemuCli | ( | ) |
std::map< std::string, uint32_t > cuttlefish::HostToolsCrc | ( | ) |
std::string cuttlefish::HostUsrSharePath | ( | const std::string & | file | ) |
Result< HttpResponse< std::string > > cuttlefish::HttpGetToFile | ( | HttpClient & | http_client, |
const std::string & | url, | ||
const std::string & | path, | ||
const std::vector< std::string > & | headers | ||
) |
Result< HttpResponse< Json::Value > > cuttlefish::HttpGetToJson | ( | HttpClient & | http_client, |
const std::string & | url, | ||
const std::vector< std::string > & | headers | ||
) |
Result< HttpResponse< std::string > > cuttlefish::HttpGetToString | ( | HttpClient & | http_client, |
const std::string & | url, | ||
const std::vector< std::string > & | headers | ||
) |
Result< HttpResponse< Json::Value > > cuttlefish::HttpPostToJson | ( | HttpClient & | http_client, |
const std::string & | url, | ||
const Json::Value & | data, | ||
const std::vector< std::string > & | headers | ||
) |
Result< HttpResponse< Json::Value > > cuttlefish::HttpPostToJson | ( | HttpClient & | http_client, |
const std::string & | url, | ||
const std::string & | data, | ||
const std::vector< std::string > & | headers | ||
) |
Result< HttpResponse< std::string > > cuttlefish::HttpPostToString | ( | HttpClient & | http_client, |
const std::string & | url, | ||
const std::string & | data, | ||
const std::vector< std::string > & | headers | ||
) |
std::string cuttlefish::IfaceTyToStr | ( | IfaceType | iface | ) |
void cuttlefish::ImportResourcesFromRunningServer | ( | std::vector< std::string > | args | ) |
bool cuttlefish::InGroup | ( | const std::string & | group | ) |
|
static |
Result< void > cuttlefish::InitializeAccessKregistryImage | ( | const CuttlefishConfig::InstanceSpecific & | instance | ) |
Result< CuttlefishConfig > cuttlefish::InitializeCuttlefishConfiguration | ( | const std::string & | root_dir, |
const std::vector< GuestConfig > & | guest_configs, | ||
fruit::Injector<> & | injector, | ||
const FetcherConfig & | fetcher_config, | ||
const BootImageFlag & | boot_image, | ||
const InitramfsPathFlag & | initramfs_path, | ||
const KernelPathFlag & | kernel_path, | ||
const SuperImageFlag & | super_image, | ||
const SystemImageDirFlag & | system_image_dir, | ||
const VendorBootImageFlag & | vendor_boot_image, | ||
const VmManagerFlag & | vm_manager_flag | ||
) |
Result< void > cuttlefish::InitializeDataImage | ( | const CuttlefishConfig::InstanceSpecific & | instance | ) |
Result< void > cuttlefish::InitializeEspImage | ( | const CuttlefishConfig & | config, |
const CuttlefishConfig::InstanceSpecific & | instance | ||
) |
Result< void > cuttlefish::InitializeHwcomposerPmemImage | ( | const CuttlefishConfig::InstanceSpecific & | instance | ) |
Result< void > cuttlefish::InitializePflash | ( | const CuttlefishConfig::InstanceSpecific & | instance | ) |
Result< void > cuttlefish::InitializePstore | ( | const CuttlefishConfig::InstanceSpecific & | instance | ) |
Result< void > cuttlefish::InitializeSdCard | ( | const CuttlefishConfig & | config, |
const CuttlefishConfig::InstanceSpecific & | instance | ||
) |
|
static |
bool cuttlefish::InSandbox | ( | ) |
std::string cuttlefish::InsName | ( | const Instance & | instance | ) |
std::string cuttlefish::InstanceDatabasePath | ( | ) |
int cuttlefish::InstanceFromEnvironment | ( | ) |
int cuttlefish::InstanceFromString | ( | std::string | instance_str | ) |
Result< std::string > cuttlefish::InstanceGuestSnapshotPath | ( | const Json::Value & | meta_json, |
const std::string & | instance_id | ||
) |
std::string cuttlefish::InstanceLocksPath | ( | ) |
|
static |
cuttlefish::INSTANTIATE_TEST_SUITE_P | ( | CommonUtilsTest | , |
EmulateAbsolutePathBase | , | ||
testing::Values(InputOutput{.path_to_convert_="/",.expected_="/"}, InputOutput{.path_to_convert_="",.expected_=""}, InputOutput{.path_to_convert_="/a/b/c/",.expected_="/a/b/c"}, InputOutput{.path_to_convert_="/a",.expected_="/a"}) | |||
) |
cuttlefish::INSTANTIATE_TEST_SUITE_P | ( | CommonUtilsTest | , |
EmulateAbsolutePathWithHome | , | ||
testing::Values(InputOutput{.path_to_convert_="~",.home_dir_="/x/y/z",.expected_="/x/y/z"}, InputOutput{.path_to_convert_="~/a",.home_dir_="/x/y/z",.expected_="/x/y/z/a"}, InputOutput{.path_to_convert_="~/.",.home_dir_="/x/y/z",.expected_="/x/y/z"}, InputOutput{.path_to_convert_="~/..",.home_dir_="/x/y/z",.expected_="/x/y"}, InputOutput{.path_to_convert_="~/k/../../t/./q",.home_dir_="/x/y/z",.expected_="/x/y/t/q"}) | |||
) |
cuttlefish::INSTANTIATE_TEST_SUITE_P | ( | CommonUtilsTest | , |
EmulateAbsolutePathWithPwd | , | ||
testing::Values(InputOutput{.path_to_convert_="",.working_dir_="/x/y/z",.expected_=""}, InputOutput{.path_to_convert_="a",.working_dir_="/x/y/z",.expected_="/x/y/z/a"}, InputOutput{.path_to_convert_=".",.working_dir_="/x/y/z",.expected_="/x/y/z"}, InputOutput{.path_to_convert_="..",.working_dir_="/x/y/z",.expected_="/x/y"}, InputOutput{.path_to_convert_="./k/../../t/./q",.working_dir_="/x/y/z",.expected_="/x/y/t/q"}) | |||
) |
cuttlefish::INSTANTIATE_TEST_SUITE_P | ( | CvdIdAllocator | , |
OneEachTest | , | ||
testing::Values(std::vector< unsigned >{}, std::vector< unsigned >{1}, std::vector< unsigned >{1, 22, 3, 43, 5}) | |||
) |
|
static |
Flag cuttlefish::InvalidFlagGuard | ( | ) |
bool cuttlefish::IptableConfig | ( | const std::string & | network, |
bool | add | ||
) |
std::string cuttlefish::Ipv6ToString | ( | const std::uint8_t | ip[16] | ) |
|
inline |
bool cuttlefish::IsDirectoryEmpty | ( | const std::string & | path | ) |
bool cuttlefish::IsHostCompatible | ( | Arch | arch | ) |
bool cuttlefish::IsKernelModuleSigned | ( | const char * | path | ) |
|
constexpr |
bool cuttlefish::IsRestoring | ( | const CuttlefishConfig & | config | ) |
bool cuttlefish::IsRunningInContainer | ( | ) |
|
static |
bool cuttlefish::IsServerModeExpected | ( | const std::string & | exec_file | ) |
Result< bool > cuttlefish::IsSparseImage | ( | const std::string & | image_path | ) |
bool cuttlefish::IsSubOperationSupported | ( | const CommandRequest & | request | ) |
bool cuttlefish::IsValidAndroidHostOutPath | ( | const std::string & | path | ) |
bool cuttlefish::IsValidDeviceName | ( | const std::string & | token | ) |
bool cuttlefish::IsValidGroupName | ( | const std::string & | token | ) |
bool cuttlefish::IsValidInstanceName | ( | const std::string & | token | ) |
bool cuttlefish::IsValidMetricsConfigs | ( | int | value | ) |
uint16_t cuttlefish::JsIndexToLinux | ( | const int32_t & | index_code | ) |
std::vector< std::string > cuttlefish::KernelCommandLineFromConfig | ( | const CuttlefishConfig & | config, |
const CuttlefishConfig::InstanceSpecific & | instance | ||
) |
std::string cuttlefish::KernelLogMonitorBinary | ( | ) |
fruit::Component< fruit::Required< const CuttlefishConfig::InstanceSpecific >, KernelLogPipeProvider > cuttlefish::KernelLogMonitorComponent | ( | ) |
Result< void > cuttlefish::KillAllCuttlefishInstances | ( | bool | clear_runtime_dirs | ) |
Result< void > cuttlefish::KillCvdServerProcess | ( | ) |
Finds processes whose executable path is kServerExecPath, and that is owned by getuid(), and that has the "INTERNAL_server_fd" in the arguments list.
StopperResult cuttlefish::KillSubprocess | ( | Subprocess * | subprocess | ) |
SubprocessStopper cuttlefish::KillSubprocessFallback | ( | std::function< StopperResult()> | nice | ) |
SubprocessStopper cuttlefish::KillSubprocessFallback | ( | SubprocessStopper | nice_stopper | ) |
const std::pair< int, int > cuttlefish::kSimPinSizeRange | ( | 4 | , |
8 | |||
) |
|
static |
fruit::Component< fruit::Required< KernelLogPipeProvider, const AdbConfig, const CuttlefishConfig, const CuttlefishConfig::InstanceSpecific > > cuttlefish::LaunchAdbComponent | ( | ) |
Result< std::vector< std::string > > cuttlefish::LaunchCvdParserTester | ( | const Json::Value & | root | ) |
fruit::Component< fruit::Required< KernelLogPipeProvider, const CuttlefishConfig::InstanceSpecific, const FastbootConfig > > cuttlefish::LaunchFastbootComponent | ( | ) |
fruit::Component< fruit::Required< const CuttlefishConfig, KernelLogPipeProvider, InputConnectionsProvider, const CuttlefishConfig::InstanceSpecific, const CustomActionConfigProvider, WebRtcController > > cuttlefish::launchStreamerComponent | ( | ) |
|
static |
bool cuttlefish::LinkTapToBridge | ( | const std::string & | tap_name, |
const std::string & | bridge_name | ||
) |
std::vector< ImagePartition > cuttlefish::LinuxCompositeDiskConfig | ( | const CuttlefishConfig::InstanceSpecific & | instance | ) |
Result< AcloudConfig > cuttlefish::LoadAcloudConfig | ( | const std::string & | user_config_path | ) |
Result< Json::Value > cuttlefish::LoadFromFile | ( | const std::string & | path_to_file | ) |
|
static |
Result< Json::Value > cuttlefish::LoadMetaJson | ( | const std::string & | snapshot_path | ) |
|
static |
std::string cuttlefish::LogcatInfo | ( | const CuttlefishConfig::InstanceSpecific & | instance | ) |
Result< MonitorCommand > cuttlefish::LogcatReceiver | ( | const CuttlefishConfig::InstanceSpecific & | instance | ) |
std::string cuttlefish::LogcatReceiverBinary | ( | ) |
android::base::LogSeverity cuttlefish::LogFileSeverity | ( | ) |
TeeLogger cuttlefish::LogToFiles | ( | const std::vector< std::string > & | files, |
const std::string & | log_prefix | ||
) |
TeeLogger cuttlefish::LogToStderr | ( | const std::string & | log_prefix, |
MetadataLevel | stderr_level, | ||
std::optional< android::base::LogSeverity > | stderr_severity | ||
) |
TeeLogger cuttlefish::LogToStderrAndFiles | ( | const std::vector< std::string > & | files, |
const std::string & | log_prefix, | ||
MetadataLevel | stderr_level, | ||
std::optional< android::base::LogSeverity > | stderr_severity | ||
) |
std::string cuttlefish::MacAddressToString | ( | const std::uint8_t | mac[6] | ) |
int cuttlefish::main | ( | int | argc, |
char ** | argv | ||
) |
|
static |
Result< void > cuttlefish::MakeFatImage | ( | const std::string & | data_image, |
int | data_image_mb, | ||
int | offset_num_mb | ||
) |
bool cuttlefish::MakeFileExecutable | ( | const std::string & | path | ) |
std::function< void()> cuttlefish::makeSafeCallback | ( | T * | me, |
std::function< void(T *)> | f | ||
) |
std::function< void()> cuttlefish::makeSafeCallback | ( | T * | obj, |
void(T::*)(const Params &...) | f, | ||
const Params &... | params | ||
) |
std::function< void()> cuttlefish::makeSafeCallback | ( | T * | obj, |
void(T::*)(Params...) | f, | ||
const Params &... | params | ||
) |
bool cuttlefish::matchAttestationId | ( | keymaster_blob_t | blob, |
const std::vector< uint8_t > & | id | ||
) |
cuttlefish::MATCHER | ( | IsError | , |
"an error result" | |||
) |
cuttlefish::MATCHER | ( | IsOk | , |
"an ok result" | |||
) |
cuttlefish::MATCHER_P | ( | IsErrorAndMessage | , |
message_matcher | , | ||
"" | |||
) |
cuttlefish::MATCHER_P | ( | IsOkAndValue | , |
result_value_matcher | , | ||
"" | |||
) |
std::string cuttlefish::McopyBinary | ( | ) |
fruit::Component< fruit::Required< const CuttlefishConfig, const CuttlefishConfig::InstanceSpecific, LogTeeCreator > > cuttlefish::McuComponent | ( | ) |
|
static |
Result< MiscInfo > cuttlefish::MergeMiscInfos | ( | const MiscInfo & | vendor_info, |
const MiscInfo & | system_info, | ||
const MiscInfo & | combined_dp_info, | ||
const std::vector< std::string > & | system_partitions | ||
) |
std::vector< std::string > cuttlefish::MergeResults | ( | std::vector< std::string > | first_list, |
std::vector< std::string > | scond_list | ||
) |
void cuttlefish::MergeTwoJsonObjs | ( | Json::Value & | dst, |
const Json::Value & | src | ||
) |
This function merges two json objects and override json tree in dst with src json keys.
dst | : destination json object tree(modified in place) |
src | : input json object tree to be merged |
std::string cuttlefish::MetricsBinary | ( | ) |
std::optional< MonitorCommand > cuttlefish::MetricsService | ( | const CuttlefishConfig & | config | ) |
std::string cuttlefish::MkbootimgBinary | ( | ) |
Result< int > cuttlefish::MkenvimageSlimMain | ( | int | argc, |
char ** | argv | ||
) |
std::string cuttlefish::MkfsFat | ( | ) |
std::string cuttlefish::MkuserimgMke2fsBinary | ( | ) |
std::string cuttlefish::MmdBinary | ( | ) |
std::string cuttlefish::MobileGatewayName | ( | const std::string & | ipaddr, |
uint16_t | id | ||
) |
std::string cuttlefish::MobileNetworkName | ( | const std::string & | ipaddr, |
const std::string & | netmask, | ||
uint16_t | id | ||
) |
Result< std::optional< MonitorCommand > > cuttlefish::ModemSimulator | ( | const CuttlefishConfig::InstanceSpecific & | instance | ) |
std::string cuttlefish::ModemSimulatorBinary | ( | ) |
Result< void > cuttlefish::MoveDirectoryContents | ( | const std::string & | source, |
const std::string & | destination | ||
) |
bool cuttlefish::MoveIfChanged | ( | const std::string & | src, |
const std::string & | dst | ||
) |
|
static |
std::string cuttlefish::NetsimdBinary | ( | ) |
fruit::Component< fruit::Required< const CuttlefishConfig, const CuttlefishConfig::InstanceSpecific > > cuttlefish::NetsimServerComponent | ( | ) |
bool cuttlefish::NetworkInterfaceExists | ( | const std::string & | interface_name | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewAcloudCommand | ( | CommandSequenceExecutor & | executor | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewAcloudMixSuperImageCommand | ( | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewAcloudTranslatorCommand | ( | InstanceManager & | instance_manager | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewCvdBugreportCommandHandler | ( | InstanceManager & | instance_manager | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewCvdCacheCommandHandler | ( | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewCvdClearCommandHandler | ( | InstanceManager & | instance_manager | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewCvdCmdlistHandler | ( | CommandSequenceExecutor & | executor | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewCvdCreateCommandHandler | ( | InstanceManager & | instance_manager, |
CommandSequenceExecutor & | executor, | ||
InstanceLockFileManager & | lock_manager | ||
) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewCvdDevicePowerBtnCommandHandler | ( | InstanceManager & | instance_manager | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewCvdDevicePowerwashCommandHandler | ( | InstanceManager & | instance_manager | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewCvdDeviceRestartCommandHandler | ( | InstanceManager & | instance_manager | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewCvdDisplayCommandHandler | ( | InstanceManager & | instance_manager | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewCvdEnvCommandHandler | ( | InstanceManager & | instance_manager | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewCvdFetchCommandHandler | ( | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewCvdFleetCommandHandler | ( | InstanceManager & | instance_manager | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewCvdHelpHandler | ( | const std::vector< std::unique_ptr< CvdCommandHandler > > & | server_handlers | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewCvdNoopHandler | ( | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewCvdResetCommandHandler | ( | InstanceManager & | instance_manager | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewCvdSnapshotCommandHandler | ( | InstanceManager & | instance_manager | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewCvdStartCommandHandler | ( | InstanceManager & | instance_manager | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewCvdStatusCommandHandler | ( | InstanceManager & | instance_manager | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewCvdStopCommandHandler | ( | InstanceManager & | instance_manager | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewCvdVersionHandler | ( | ) |
std::string cuttlefish::NewfsMsdos | ( | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewLintCommand | ( | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewLoadConfigsCommand | ( | CommandSequenceExecutor & | executor, |
InstanceManager & | instance_manager | ||
) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewLoginCommand | ( | ) |
Create a credentials file
std::unique_ptr< CvdCommandHandler > cuttlefish::NewRemoveCvdCommandHandler | ( | InstanceManager & | instance_manager | ) |
std::unique_ptr< CvdCommandHandler > cuttlefish::NewTryAcloudCommand | ( | ) |
|
static |
Result< MonitorCommand > cuttlefish::NfcConnector | ( | const CuttlefishConfig::EnvironmentSpecific & | environment, |
const CuttlefishConfig::InstanceSpecific & | instance | ||
) |
std::string cuttlefish::NoGroupMessage | ( | const CommandRequest & | request | ) |
int cuttlefish::NumberOfOccurrences | ( | const std::string & | str, |
const std::string & | substr | ||
) |
Result< std::unique_ptr< CredentialSource > > cuttlefish::Oauth2LoginLocal | ( | HttpClient & | http_client, |
const Oauth2ConsentRequest & | request | ||
) |
Result< std::unique_ptr< CredentialSource > > cuttlefish::Oauth2LoginSsh | ( | HttpClient & | http_client, |
const Oauth2ConsentRequest & | request | ||
) |
|
static |
std::unordered_map< std::string, std::string > cuttlefish::OpenwrtArgsFromConfig | ( | const CuttlefishConfig::InstanceSpecific & | instance | ) |
fruit::Component< fruit::Required< const CuttlefishConfig, const CuttlefishConfig::EnvironmentSpecific, const CuttlefishConfig::InstanceSpecific, LogTeeCreator, WmediumdServer > > cuttlefish::OpenWrtComponent | ( | ) |
std::string cuttlefish::OpenwrtControlServerBinary | ( | ) |
fruit::Component< fruit::Required< const CuttlefishConfig, const CuttlefishConfig::EnvironmentSpecific, GrpcSocketCreator > > cuttlefish::OpenwrtControlServerComponent | ( | ) |
Result< ReadableZip > cuttlefish::OpenZip | ( | BuildApi & | build_api, |
const Build & | build, | ||
const std::string & | name | ||
) |
bool cuttlefish::operator!= | ( | const DeviceBuildString & | lhs, |
const DeviceBuildString & | rhs | ||
) |
bool cuttlefish::operator!= | ( | const DirectoryBuildString & | lhs, |
const DirectoryBuildString & | rhs | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | os, |
const CvdFile & | cvd_file | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | out, |
Arch | arch | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | out, |
const Build & | build | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | out, |
const BuildString & | build_string | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | out, |
const Command & | command | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | out, |
const DeviceBuild & | build | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | out, |
const DeviceBuildString & | build_string | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | out, |
const DirectoryBuild & | build | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | out, |
const DirectoryBuildString & | build_string | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | out, |
const Flag & | flag | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | out, |
const FlagAlias & | alias | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | out, |
const Override & | override | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | out, |
const SnapshotCmd & | cmd | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | out, |
const std::optional< BuildString > & | build_string | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | out, |
const std::vector< T > & | v | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | out, |
ExternalNetworkMode | net | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | out, |
GuestHwuiRenderer | renderer | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | out, |
GuestRendererPreload | preload | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | out, |
VmmMode | vmm | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | stream, |
const ChromeOsBuilder & | cob | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | stream, |
const ChromeOsBuildString & | cb | ||
) |
std::ostream & cuttlefish::operator<< | ( | std::ostream & | stream, |
const std::optional< ChromeOsBuildString > & | cb | ||
) |
bool cuttlefish::operator== | ( | const DeviceBuildString & | lhs, |
const DeviceBuildString & | rhs | ||
) |
bool cuttlefish::operator== | ( | const DirectoryBuildString & | lhs, |
const DirectoryBuildString & | rhs | ||
) |
DiskBuilder cuttlefish::OsCompositeDiskBuilder | ( | const CuttlefishConfig & | config, |
const CuttlefishConfig::InstanceSpecific & | instance, | ||
const std::optional< ChromeOsStateImage > & | chrome_os_state, | ||
const MetadataImage & | metadata, | ||
const MiscImage & | misc, | ||
const SystemImageDirFlag & | system_image_dir | ||
) |
std::conditional_t< std::is_void_v< T >, bool, T > cuttlefish::OutcomeDereference | ( | Result< T > && | result | ) |
T cuttlefish::OutcomeDereference | ( | std::optional< T > && | value | ) |
std::enable_if< std::is_convertible_v< T, bool >, T >::type cuttlefish::OutcomeDereference | ( | T && | value | ) |
cuttlefish::Overload | ( | Ts... | ) | -> Overload< Ts... > |
std::vector< std::string > cuttlefish::OverrideBoolArg | ( | std::vector< std::string > | args, |
const std::unordered_set< std::string > & | flag_set | ||
) |
Result< uid_t > cuttlefish::OwnerUid | ( | const pid_t | pid | ) |
|
static |
void cuttlefish::PackRamdisk | ( | const std::string & | ramdisk_stage_dir, |
const std::string & | output_ramdisk | ||
) |
std::function< TpmObjectSlot(TpmResourceManager &)> cuttlefish::ParentKeyCreator | ( | const std::string & | unique | ) |
|
static |
|
static |
Result< bool > cuttlefish::ParseBool | ( | const std::string & | value, |
const std::string & | name | ||
) |
Result< BuildString > cuttlefish::ParseBuildString | ( | const std::string & | build_string | ) |
|
static |
DeviceType cuttlefish::ParseDeviceType | ( | std::string_view | type_name | ) |
Result< std::optional< CuttlefishConfig::DisplayConfig > > cuttlefish::ParseDisplayConfig | ( | const std::string & | flag | ) |
Result< std::vector< CuttlefishConfig::DisplayConfig > > cuttlefish::ParseDisplayConfigsFromArgs | ( | std::vector< std::string > & | args | ) |
Result< ExternalNetworkMode > cuttlefish::ParseExternalNetworkMode | ( | std::string_view | str | ) |
Result< std::vector< std::string > > cuttlefish::ParseFetchCvdConfigs | ( | const cvd::config::EnvironmentSpecification & | , |
const std::string & | target_directory, | ||
const std::vector< std::string > & | target_subdirectories | ||
) |
Result< std::vector< std::string > > cuttlefish::ParseFetchCvdConfigs | ( | const EnvironmentSpecification & | config, |
const std::string & | target_directory, | ||
const std::vector< std::string > & | target_subdirectories | ||
) |
Result< GuestHwuiRenderer > cuttlefish::ParseGuestHwuiRenderer | ( | std::string_view | str | ) |
Result< GuestRendererPreload > cuttlefish::ParseGuestRendererPreload | ( | std::string_view | str | ) |
|
static |
|
static |
std::optional< T > cuttlefish::ParseInteger | ( | const std::string & | value | ) |
Result< Json::Value > cuttlefish::ParseJson | ( | std::string_view | input | ) |
bool cuttlefish::ParseJsonString | ( | std::string & | json_text, |
Json::Value & | root | ||
) |
Result< std::map< std::string, std::string > > cuttlefish::ParseKeyEqualsValue | ( | const std::string & | contents | ) |
Result< std::vector< std::string > > cuttlefish::ParseLaunchCvdConfigs | ( | cvd::config::EnvironmentSpecification | ) |
Result< std::vector< std::string > > cuttlefish::ParseLaunchCvdConfigs | ( | EnvironmentSpecification | launch | ) |
|
static |
|
static |
std::vector< std::string > cuttlefish::ParseSelectorConfigs | ( | const cvd::config::EnvironmentSpecification & | ) |
std::vector< std::string > cuttlefish::ParseSelectorConfigs | ( | const EnvironmentSpecification & | config | ) |
Result< ProtoType > cuttlefish::ParseTextProtoConfigHelper | ( | const std::string & | config_path | ) |
Result< CuttlefishConfig::TouchpadConfig > cuttlefish::ParseTouchpadConfig | ( | const std::string & | flag | ) |
Result< std::vector< CuttlefishConfig::TouchpadConfig > > cuttlefish::ParseTouchpadConfigsFromArgs | ( | std::vector< std::string > & | args | ) |
std::string cuttlefish::PerUserCacheDir | ( | ) |
std::string cuttlefish::PerUserDir | ( | ) |
Result< std::vector< MonitorCommand > > cuttlefish::Pica | ( | const CuttlefishConfig & | config, |
const CuttlefishConfig::InstanceSpecific & | instance, | ||
LogTeeCreator & | log_tee | ||
) |
std::string cuttlefish::PicaBinary | ( | ) |
|
static |
Result< pid_t > cuttlefish::Ppid | ( | const pid_t | pid | ) |
EspBuilder cuttlefish::PrepareESP | ( | const std::string & | image_path, |
Arch | arch | ||
) |
Result< void > cuttlefish::PrepareForAcloudDeleteCommand | ( | const std::string & | host_artifacts | ) |
void cuttlefish::PrintDataCollectionNotice | ( | bool | colorful = true | ) |
std::string cuttlefish::ProcessRestarterBinary | ( | ) |
MasterBootRecord cuttlefish::ProtectiveMbr | ( | uint64_t | size | ) |
Creates a "Protective" MBR Partition Table header. The GUID Partition Table Specification recommends putting this on the first sector of the disk, to protect against old disk formatting tools from misidentifying the GUID Partition Table later and doing the wrong thing.
std::string cuttlefish::ProtoToString | ( | LogEvent * | event | ) |
std::unique_ptr< ProxyServer > cuttlefish::ProxyAsync | ( | SharedFD | server, |
std::function< SharedFD()> | conn_factory | ||
) |
Result< PruneResult > cuttlefish::PruneCache | ( | const std::string & | cache_directory, |
const std::size_t | allowed_size_gb | ||
) |
Result< std::unique_ptr< InterruptListenerHandle > > cuttlefish::PushInterruptListener | ( | InterruptListener | listener | ) |
Allows reacting to interrupt-like signals (SIGINT, SIGHUP, SIGTERM). A global stack of interrupt listeners is maintained. When an interrupt signal is received the listener at top of the stack is executed. Returns an object that, when destroyed, disables the listener at the top of the stack, re-enabling the previous one. This function is not thread-safe and shouldn't be called from multiple threads, not even with synchronization. The listeners are executed in a background thread, not in the actual interrupt handler. It's ok to run blocking code in that thread, but disabling the listener may wait for the thread to finish executing, so if the code in the listener could wait for the thread that disables it a deadlock may occur. Similarly, disabling the listener from inside the listener will lead to a deadlock. The listener is given the actual signal received, one of SIGINT, SIGHUP or SIGTERM. To disable the listener (pop it from the listener stack) just destroy the returned handle.
std::string cuttlefish::RandomSerialNumber | ( | const std::string & | prefix | ) |
|
static |
ssize_t cuttlefish::ReadAll | ( | SharedFD | fd, |
std::string * | buf | ||
) |
Reads from fd until it is closed or errors, storing all data in buf.
On a successful read, returns the number of bytes read.
If a read error is encountered, returns -1. buf will contain any data read up until that point and errno will be set.
std::string cuttlefish::ReadAllFDData | ( | SharedFD | fd | ) |
Result< std::string > cuttlefish::ReadAndroidVersionFromBootImage | ( | const std::string & | boot_image_path | ) |
Result< std::string > cuttlefish::ReadCvdDataFile | ( | std::string_view | path | ) |
ssize_t cuttlefish::ReadExact | ( | SharedFD | fd, |
char * | buf, | ||
size_t | size | ||
) |
Reads from fd until reading size
bytes or errors.
On a successful read, returns buf->size().
If a read error is encountered, returns -1. buf will contain any data read up until that point and errno will be set.
When the size is 0, read(fd, buf, 0) is effectively called, which means error(s) might be detected. If detected, the return value would be -1. If not detected, the return value will be 0.
ssize_t cuttlefish::ReadExact | ( | SharedFD | fd, |
std::string * | buf | ||
) |
Reads from fd until reading buf->size() bytes or errors.
On a successful read, returns buf->size().
If a read error is encountered, returns -1. buf will contain any data read up until that point and errno will be set.
If the size of buf is 0, read(fd, buf, 0) is effectively called, which means error(s) might be detected. If detected, the return value would be -1. If not detected, the return value will be 0.
ssize_t cuttlefish::ReadExact | ( | SharedFD | fd, |
std::vector< char > * | buf | ||
) |
Reads from fd until reading buf->size() bytes or errors.
On a successful read, returns buf->size().
If a read error is encountered, returns -1. buf will contain any data read up until that point and errno will be set.
If the size of buf is 0, read(fd, buf, 0) is effectively called, which means error(s) might be detected. If detected, the return value would be -1. If not detected, the return value will be 0.
ssize_t cuttlefish::ReadExactBinary | ( | SharedFD | fd, |
T * | binary_data | ||
) |
Result< RunnerExitCodes > cuttlefish::ReadExitCode | ( | SharedFD | monitor_socket | ) |
std::string cuttlefish::ReadFile | ( | const std::string & | file | ) |
Result< std::string > cuttlefish::ReadFileContents | ( | const std::string & | filepath | ) |
Result< std::vector< GuestConfig > > cuttlefish::ReadGuestConfig | ( | const BootImageFlag & | boot_image, |
const KernelPathFlag & | kernel_path, | ||
const SystemImageDirFlag & | system_image_dir | ||
) |
Result< std::optional< LauncherActionInfo > > cuttlefish::ReadLauncherActionFromFd | ( | SharedFD | monitor_socket | ) |
Json::Value cuttlefish::ReadProtectedJsonFromFile | ( | TpmResourceManager & | resource_manager, |
const std::string & | filename | ||
) |
Result< std::string > cuttlefish::ReadToString | ( | ReadableZipSource & | source | ) |
Result< std::string > cuttlefish::ReadToString | ( | ZipSourceReader & | reader | ) |
Result< void > cuttlefish::RebuildSuperImageIfNecessary | ( | const FetcherConfig & | fetcher_config, |
const CuttlefishConfig::InstanceSpecific & | instance | ||
) |
bool cuttlefish::RecordScreen | ( | const Instance & | instance | ) |
|
static |
Result< void > cuttlefish::RecursivelyRemoveDirectory | ( | const std::string & | path | ) |
std::string cuttlefish::RecvAll | ( | SharedFD | sock, |
size_t | count | ||
) |
Receives 'count' bytes from sock, checking for socket error conditions
On successful Recv, returns a string containing the received data
If a Recv error is encountered, returns the empty string
std::optional< Json::Value > cuttlefish::RecvJsonMsg | ( | cuttlefish::SharedFD | client_socket | ) |
Receives a single Json value over client_socket
The returned option will contain the JSON object when successful, or an std::nullopt if an error is reported
bool cuttlefish::RemoveFile | ( | const std::string & | file | ) |
Result< std::string > cuttlefish::RenameFile | ( | const std::string & | current_filepath, |
const std::string & | target_filepath | ||
) |
Result< void > cuttlefish::RepackBootImage | ( | const Avb & | avb, |
const std::string & | new_kernel_path, | ||
const std::string & | boot_image_path, | ||
const std::string & | new_boot_image_path, | ||
const std::string & | build_dir | ||
) |
void cuttlefish::RepackGem5BootImage | ( | const std::string & | initrd_path, |
const std::optional< BootConfigPartition > & | bootconfig_partition, | ||
const std::string & | unpack_dir, | ||
const std::string & | input_ramdisk_path | ||
) |
Result< void > cuttlefish::RepackKernelRamdisk | ( | const CuttlefishConfig & | config, |
const CuttlefishConfig::InstanceSpecific & | instance, | ||
const Avb & | avb | ||
) |
Result< void > cuttlefish::RepackSuperWithPartition | ( | const std::string & | superimg_path, |
const std::string & | image_path, | ||
const std::string & | partition_name | ||
) |
bool cuttlefish::RepackVendorBootImage | ( | const std::string & | new_ramdisk, |
const std::string & | vendor_boot_image_path, | ||
const std::string & | new_vendor_boot_image_path, | ||
const std::string & | unpack_dir, | ||
bool | bootconfig_supported | ||
) |
bool cuttlefish::RepackVendorBootImageWithEmptyRamdisk | ( | const std::string & | vendor_boot_image_path, |
const std::string & | new_vendor_boot_image_path, | ||
const std::string & | unpack_dir, | ||
bool | bootconfig_supported | ||
) |
std::string cuttlefish::ReqTyToStr | ( | RequestType | req_ty | ) |
Result< CvdCommandHandler * > cuttlefish::RequestHandler | ( | const CommandRequest & | request, |
const std::vector< std::unique_ptr< CvdCommandHandler > > & | handlers | ||
) |
Result< void > cuttlefish::ResolveInstanceFiles | ( | const BootImageFlag & | boot_image, |
const InitramfsPathFlag & | initramfs_path, | ||
const KernelPathFlag & | kernel_path, | ||
const SuperImageFlag & | super_image, | ||
const SystemImageDirFlag & | system_image_dir, | ||
const VendorBootImageFlag & | vendor_boot_image | ||
) |
std::string cuttlefish::ResultErrorFormat | ( | bool | color | ) |
Result< std::string > cuttlefish::ResultInstanceFlag | ( | const std::string & | name, |
const cvd::config::EnvironmentSpecification & | config, | ||
T | callback | ||
) |
std::unique_ptr< HttpClient > cuttlefish::RetryingServerErrorHttpClient | ( | HttpClient & | inner, |
int | retry_attempts, | ||
std::chrono::milliseconds | retry_delay | ||
) |
std::string cuttlefish::RootCanalBinary | ( | ) |
fruit::Component< fruit::Required< const CuttlefishConfig, const CuttlefishConfig::InstanceSpecific, LogTeeCreator > > cuttlefish::RootCanalComponent | ( | ) |
|
static |
Result< void > cuttlefish::RunCvdMain | ( | int | argc, |
char ** | argv | ||
) |
int cuttlefish::RunExternalCommand | ( | const std::string & | command | ) |
Result< void > cuttlefish::RunLauncherAction | ( | SharedFD | monitor_socket, |
const run_cvd::ExtendedLauncherAction & | extended_action, | ||
std::optional< int > | timeout_seconds | ||
) |
Result< void > cuttlefish::RunLauncherAction | ( | SharedFD | monitor_socket, |
LauncherAction | action, | ||
std::optional< int > | timeout_seconds | ||
) |
int cuttlefish::RunWithManagedStdio | ( | Command | cmd_tmp, |
const std::string * | stdin_str, | ||
std::string * | stdout_str, | ||
std::string * | stderr_str, | ||
SubprocessOptions | options | ||
) |
CuttlefishLogEvent * cuttlefish::sampleEvent | ( | ) |
Result< std::optional< MonitorCommand > > cuttlefish::ScreenRecordingServer | ( | GrpcSocketCreator & | grpc_socket | ) |
std::string cuttlefish::ScreenRecordingServerBinary | ( | ) |
std::string cuttlefish::ScrubSecrets | ( | const std::string & | data | ) |
Result< MonitorCommand > cuttlefish::SecureEnv | ( | const CuttlefishConfig & | config, |
const CuttlefishConfig::InstanceSpecific & | instance, | ||
AutoSnapshotControlFiles::Type & | snapshot_control_files, | ||
KernelLogPipeProvider & | kernel_log_pipe_provider | ||
) |
std::string cuttlefish::SecureEnvBinary | ( | ) |
Result< void > cuttlefish::SecureEnvMain | ( | int | argc, |
char ** | argv | ||
) |
|
static |
int cuttlefish::Select | ( | SharedFDSet * | read_set, |
SharedFDSet * | write_set, | ||
SharedFDSet * | error_set, | ||
struct timeval * | timeout | ||
) |
SharedFD version of select.
read_set, write_set, and timeout are in/out parameters. This caller should keep a copy of the original values if it wants to preserve them.
bool cuttlefish::SendAll | ( | SharedFD | sock, |
std::string_view | msg | ||
) |
Sends contents of msg through sock, checking for socket error conditions
On successful Send, returns true
If a Send error is encountered, returns false. Some data may have already been written to 'sock' at that point.
void cuttlefish::SendHelper | ( | const std::string & | queue_name, |
const std::string & | message | ||
) |
bool cuttlefish::SendJsonMsg | ( | cuttlefish::SharedFD | client_socket, |
const Json::Value & | resp | ||
) |
Sends a Json value over client_socket
returns true if successfully sent the whole JSON object returns false otherwise
|
static |
Result< MonitorCommand > cuttlefish::SensorsSimulator | ( | const CuttlefishConfig::InstanceSpecific & | instance, |
AutoSensorsSocketPair::Type & | sensors_socket_pair, | ||
KernelLogPipeProvider & | kernel_log_pipe_provider | ||
) |
std::string cuttlefish::SensorsSimulatorBinary | ( | ) |
|
static |
|
static |
std::string cuttlefish::Serialize | ( | const DisjointRangeSet & | range_set | ) |
std::string cuttlefish::SerializeKeyEqualsValue | ( | const std::map< std::string, std::string > & | key_equals_value | ) |
fruit::Component< fruit::Required< const CuttlefishConfig, const CuttlefishConfig::InstanceSpecific, AutoSnapshotControlFiles::Type, WebRtcController >, ServerLoop > cuttlefish::serverLoopComponent | ( | ) |
std::string cuttlefish::ServerSocketPath | ( | ) |
Result< void > cuttlefish::SetDefaultFlagsForCrosvm | ( | const SystemImageDirFlag & | system_image_dir, |
const std::vector< GuestConfig > & | guest_configs, | ||
std::map< std::string, std::string > & | name_to_default_value | ||
) |
void cuttlefish::SetDefaultFlagsForGem5 | ( | ) |
void cuttlefish::SetDefaultFlagsForOpenwrt | ( | Arch | target_arch | ) |
void cuttlefish::SetFilepath | ( | BuildString & | build_string, |
const std::string & | value | ||
) |
Result< void > cuttlefish::SetFlagDefaultsForVmm | ( | const std::vector< GuestConfig > & | guest_configs, |
const SystemImageDirFlag & | system_image_dir, | ||
const VmManagerFlag & | vm_manager_flag | ||
) |
android::base::LogSeverity cuttlefish::SetMinimumVerbosity | ( | const android::base::LogSeverity | severity | ) |
Result< android::base::LogSeverity > cuttlefish::SetMinimumVerbosity | ( | const std::string & | severity | ) |
bool cuttlefish::SetupBridgeGateway | ( | const std::string & | bridge_name, |
const std::string & | ipaddr | ||
) |
std::unordered_set< SetupFeature * > cuttlefish::SetupFeatureDeps | ( | const std::tuple< Args... > & | args | ) |
|
static |
|
static |
bool cuttlefish::ShutdownIface | ( | const std::string & | name | ) |
std::function< TpmObjectSlot(TpmResourceManager &)> cuttlefish::SigningKeyCreator | ( | const std::string & | unique | ) |
std::string cuttlefish::Simg2ImgBinary | ( | ) |
|
static |
std::string cuttlefish::SnapshotMetaJsonPath | ( | const std::string & | snapshot_path | ) |
std::string cuttlefish::SocketVsockProxyBinary | ( | ) |
FileSizes cuttlefish::SparseFileSizes | ( | const std::string & | path | ) |
|
static |
|
static |
Distinguish what properties the secure_env implementation handles. If secure_env handles it, the property is put in hw_enforced
. Otherwise, the property is put in sw_enforced
, and the Keystore process inside Android will try to enforce the property.
bool cuttlefish::SplitRamdiskModules | ( | const std::string & | ramdisk_path, |
const std::string & | ramdisk_stage_dir, | ||
const std::string & | vendor_dlkm_build_dir, | ||
const std::string & | system_dlkm_build_dir | ||
) |
bool cuttlefish::StartDnsmasq | ( | const std::string & | bridge_name, |
const std::string & | gateway, | ||
const std::string & | dhcp_range | ||
) |
std::string cuttlefish::StatusToStr | ( | RequestStatus | st | ) |
std::string cuttlefish::StderrOutputGenerator | ( | const struct tm & | now, |
int | pid, | ||
uint64_t | tid, | ||
android::base::LogSeverity | severity, | ||
const char * | tag, | ||
const char * | file, | ||
unsigned int | line, | ||
const char * | message | ||
) |
std::string cuttlefish::StderrOutputGenerator | ( | const struct tm & | now, |
int | pid, | ||
uint64_t | tid, | ||
LogSeverity | severity, | ||
const char * | tag, | ||
const char * | file, | ||
unsigned int | line, | ||
const char * | message | ||
) |
std::string cuttlefish::StopCvdBinary | ( | ) |
bool cuttlefish::StopDnsmasq | ( | const std::string & | name | ) |
|
static |
|
static |
std::optional< std::string > cuttlefish::StringFromEnv | ( | const std::string & | varname | ) |
std::string cuttlefish::StringFromEnv | ( | const std::string & | varname, |
const std::string & | defval | ||
) |
AdbMode cuttlefish::StringToAdbMode | ( | const std::string & | mode | ) |
std::string cuttlefish::StripColorCodes | ( | const std::string & | str | ) |
IfaceType cuttlefish::StrToIfaceTy | ( | const std::string & | iface | ) |
RequestType cuttlefish::StrToReqTy | ( | const std::string & | req | ) |
RequestStatus cuttlefish::StrToStatus | ( | const std::string & | st | ) |
Result< bool > cuttlefish::SuperImageNeedsRebuilding | ( | const FetcherConfig & | fetcher_config, |
const std::string & | default_target_zip, | ||
const std::string & | system_target_zip | ||
) |
Result< std::string > cuttlefish::SystemWideUserHome | ( | ) |
returns the user's home defined by the system
This is done not by using HOME but by calling getpwuid(getuid())
std::string cuttlefish::TcpConnectorBinary | ( | ) |
std::string cuttlefish::TempDir | ( | ) |
cuttlefish::TEST | ( | AdbConfigTest | , |
SerializeDeserialize | |||
) |
cuttlefish::TEST | ( | AdbConfigTest | , |
SetFromFlags | |||
) |
cuttlefish::TEST | ( | Base64Test | , |
DecodeMult3 | |||
) |
cuttlefish::TEST | ( | Base64Test | , |
DecodeNonMult3 | |||
) |
cuttlefish::TEST | ( | Base64Test | , |
EncodeMult3 | |||
) |
cuttlefish::TEST | ( | Base64Test | , |
EncodeNonMult3 | |||
) |
cuttlefish::TEST | ( | Base64Test | , |
EncodeOneZero | |||
) |
cuttlefish::TEST | ( | Base64Test | , |
EncodeThreeZeroes | |||
) |
cuttlefish::TEST | ( | Base64Test | , |
EncodeTwoZeroes | |||
) |
cuttlefish::TEST | ( | BootFlagsParserTest | , |
ParseNetSimFlagEmptyJson | |||
) |
cuttlefish::TEST | ( | BootFlagsParserTest | , |
ParseNetSimFlagEnabled | |||
) |
cuttlefish::TEST | ( | BootFlagsParserTest | , |
ParseTwoInstancesAutoTabletDisplaysFlag | |||
) |
cuttlefish::TEST | ( | BootFlagsParserTest | , |
ParseTwoInstancesBlankDataImageEmptyJson | |||
) |
cuttlefish::TEST | ( | BootFlagsParserTest | , |
ParseTwoInstancesBlankDataImageFullJson | |||
) |
cuttlefish::TEST | ( | BootFlagsParserTest | , |
ParseTwoInstancesBlankDataImagePartialJson | |||
) |
cuttlefish::TEST | ( | BootFlagsParserTest | , |
ParseTwoInstancesBootAnimationFlagEmptyJson | |||
) |
cuttlefish::TEST | ( | BootFlagsParserTest | , |
ParseTwoInstancesBootAnimationFlagFullJson | |||
) |
cuttlefish::TEST | ( | BootFlagsParserTest | , |
ParseTwoInstancesBootAnimationFlagPartialJson | |||
) |
cuttlefish::TEST | ( | BootFlagsParserTest | , |
ParseTwoInstancesDisplaysFlagEmptyDisplays | |||
) |
cuttlefish::TEST | ( | BootFlagsParserTest | , |
ParseTwoInstancesDisplaysFlagEmptyGraphics | |||
) |
cuttlefish::TEST | ( | BootFlagsParserTest | , |
ParseTwoInstancesDisplaysFlagEmptyJson | |||
) |
cuttlefish::TEST | ( | BootFlagsParserTest | , |
ParseTwoInstancesEnforceSecurityFlagEmptyJson | |||
) |
cuttlefish::TEST | ( | BootFlagsParserTest | , |
ParseTwoInstancesEnforceSecurityFlagFullJson | |||
) |
cuttlefish::TEST | ( | BootFlagsParserTest | , |
ParseTwoInstancesEnforceSecurityFlagPartialJson | |||
) |
cuttlefish::TEST | ( | BootFlagsParserTest | , |
ParseTwoInstancesSerialNumberFlagEmptyJson | |||
) |
cuttlefish::TEST | ( | BootFlagsParserTest | , |
ParseTwoInstancesSerialNumberFlagFullJson | |||
) |
cuttlefish::TEST | ( | BootFlagsParserTest | , |
ParseTwoInstancesSerialNumberFlagPartialJson | |||
) |
cuttlefish::TEST | ( | BuildStringGflagsCompatFlagTests | , |
EmptyInputEmptyResultSuccess | |||
) |
cuttlefish::TEST | ( | BuildStringGflagsCompatFlagTests | , |
MultiEmptyValueSuccess | |||
) |
cuttlefish::TEST | ( | BuildStringGflagsCompatFlagTests | , |
MultiValueMixedWithEmptySuccess | |||
) |
cuttlefish::TEST | ( | BuildStringGflagsCompatFlagTests | , |
MultiValueSuccess | |||
) |
cuttlefish::TEST | ( | CvdAutoGenId | , |
CvdTwoFollowedByFive | |||
) |
cuttlefish::TEST | ( | CvdBasic | , |
CvdDefaultStart | |||
) |
cuttlefish::TEST | ( | CvdClear | , |
ClearAfterThreeStarts | |||
) |
cuttlefish::TEST | ( | CvdDriver | , |
CvdHelp | |||
) |
cuttlefish::TEST | ( | CvdDriver | , |
CvdHelpWrong | |||
) |
cuttlefish::TEST | ( | CvdDriver | , |
CvdOnly | |||
) |
cuttlefish::TEST | ( | CvdFlagTest | , |
FlagProxyFilter | |||
) |
cuttlefish::TEST | ( | CvdHelpFlagCollect | , |
LauncCvd | |||
) |
cuttlefish::TEST | ( | CvdIdAllocatorExpandTest | , |
Expand | |||
) |
cuttlefish::TEST | ( | CvdInstanceIds | , |
CvdTakenInstanceIds | |||
) |
cuttlefish::TEST | ( | CvdSubtool | , |
CvdStartHelp | |||
) |
cuttlefish::TEST | ( | CvdSubtool | , |
CvdStopHelp | |||
) |
cuttlefish::TEST | ( | DisplayConfigTest | , |
ParseProto | |||
) |
cuttlefish::TEST | ( | FakeHttpClientTest | , |
ChoosesUrl | |||
) |
cuttlefish::TEST | ( | FakeHttpClientTest | , |
InvokesCallback | |||
) |
cuttlefish::TEST | ( | FakeHttpClientTest | , |
NoMatchingUrl | |||
) |
cuttlefish::TEST | ( | FakeHttpClientTest | , |
WithoutUrlMatching | |||
) |
cuttlefish::TEST | ( | FetchCvdParserTests | , |
CreatesCasDownloaderFlags | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
BoolFlag | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
BoolFlagXml | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
BoolVectorFlag | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
ConflictingAlias | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
ConsumesConstrainedEquals | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
ConsumesConstrainedSeparated | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
DuplicateAlias | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
EndOfOptionMark | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
FlagRemoval | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
GflagsIncompatibleFlag | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
IntFlag | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
IntFlagXml | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
InvalidFlagGuard | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
InvalidIntFlag | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
InvalidStringFlag | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
InvalidVerbosityFlag | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
NormalizedStringFlag | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
RepeatedListFlag | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
RepeatedStringFlag | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
StringFlag | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
StringFlagXml | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
StringIntFlag | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
StringVectorFlag | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
UnexpectedArgumentGuard | |||
) |
cuttlefish::TEST | ( | FlagParser | , |
VerbosityFlag | |||
) |
cuttlefish::TEST | ( | FlagsInheritanceTest | , |
MergeTwoIndependentJson | |||
) |
cuttlefish::TEST | ( | FlagsInheritanceTest | , |
MergeTwoOverlappedJson | |||
) |
cuttlefish::TEST | ( | FlagsParserTest | , |
ParseBasicJsonSingleInstances | |||
) |
cuttlefish::TEST | ( | FlagsParserTest | , |
ParseBasicJsonTwoInstances | |||
) |
cuttlefish::TEST | ( | FlagsParserTest | , |
ParseInvalidJson | |||
) |
cuttlefish::TEST | ( | FlagsParserTest | , |
ParseJsonWithSpellingError | |||
) |
cuttlefish::TEST | ( | FrontlineParserTest | , |
SelectorArgs | |||
) |
cuttlefish::TEST | ( | GpxParser | , |
ParseEmptyFile | |||
) |
cuttlefish::TEST | ( | GpxParser | , |
ParseEmptyRteTrkFile | |||
) |
cuttlefish::TEST | ( | GpxParser | , |
ParseEmptyRteTrkString | |||
) |
cuttlefish::TEST | ( | GpxParser | , |
ParseEmptyString | |||
) |
cuttlefish::TEST | ( | GpxParser | , |
ParseFileNotFound | |||
) |
cuttlefish::TEST | ( | GpxParser | , |
ParseFileNullAttributeFile | |||
) |
cuttlefish::TEST | ( | GpxParser | , |
ParseFileNullAttributeString | |||
) |
cuttlefish::TEST | ( | GpxParser | , |
ParseLocationMissingLatitudeFile | |||
) |
cuttlefish::TEST | ( | GpxParser | , |
ParseLocationMissingLatitudeString | |||
) |
cuttlefish::TEST | ( | GpxParser | , |
ParseLocationMissingLongitudeFile | |||
) |
cuttlefish::TEST | ( | GpxParser | , |
ParseLocationMissingLongitudeString | |||
) |
cuttlefish::TEST | ( | GpxParser | , |
ParseValidDocumentFile | |||
) |
cuttlefish::TEST | ( | GpxParser | , |
ParseValidDocumentString | |||
) |
cuttlefish::TEST | ( | GpxParser | , |
ParseValidFile | |||
) |
cuttlefish::TEST | ( | GpxParser | , |
ParseValidLocationFile | |||
) |
cuttlefish::TEST | ( | GpxParser | , |
ParseValidLocationString | |||
) |
cuttlefish::TEST | ( | GpxParser | , |
ParseValidString | |||
) |
cuttlefish::TEST | ( | HostToolManager | , |
KnownBins | |||
) |
cuttlefish::TEST | ( | HostToolTarget | , |
KnownFlags | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseBadCoordinatesFile | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseBadCoordinatesString | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseEmptyKmlFile | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseEmptyKmlString | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseLocationMissingRequiredFieldsFile | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseLocationMissingRequiredFieldsString | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseLocationNameOnlyFirstFile | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseLocationNameOnlyFirstString | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseLocationNormalFile | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseLocationNormalMissingOptionalFieldsFile | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseLocationNormalMissingOptionalFieldsString | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseLocationNormalString | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseMultipleCoordinatesFile | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseMultipleCoordinatesString | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseMultipleLocationsFile | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseMultipleLocationsString | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseNonexistentFile | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseOneCoordinateFile | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseOneCoordinateString | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParsePlacemarkNullNameNoCrashFile | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParsePlacemarkNullNameNoCrashString | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseValidComplexFile | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseValidComplexString | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseValidKmlFile | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
ParseValidKmlString | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
TraverseDocNoPlacemarksFile | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
TraverseDocNoPlacemarksString | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
TraverseEmptyDocFile | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
TraverseEmptyDocString | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
TraverseNestedDocFile | |||
) |
cuttlefish::TEST | ( | KmlParser | , |
TraverseNestedDocString | |||
) |
cuttlefish::TEST | ( | MacAddressTest | , |
MacAddressFormat | |||
) |
cuttlefish::TEST | ( | MacAddressTest | , |
ValidMacAddress | |||
) |
cuttlefish::TEST | ( | MetricsFlagsParserTest | , |
ParseOneInstanceMetricsReportInvalidValue | |||
) |
cuttlefish::TEST | ( | MetricsFlagsParserTest | , |
ParseOneInstanceMetricsReportValidValue | |||
) |
cuttlefish::TEST | ( | MetricsFlagsParserTest | , |
ParseOneInstancesMetricsReportFlagEmptyJson | |||
) |
cuttlefish::TEST | ( | MetricsFlagsParserTest | , |
ParseTwoInstancesMetricsReportFlagEmptyJson | |||
) |
cuttlefish::TEST | ( | ParseBuildStringTests | , |
DeviceBuildStringMultipleSlashesFail | |||
) |
cuttlefish::TEST | ( | ParseBuildStringTests | , |
DeviceBuildStringNoTargetSuccess | |||
) |
cuttlefish::TEST | ( | ParseBuildStringTests | , |
DeviceBuildStringSuccess | |||
) |
cuttlefish::TEST | ( | ParseBuildStringTests | , |
DirectoryBuildStringMultiplePathSuccess | |||
) |
cuttlefish::TEST | ( | ParseBuildStringTests | , |
DirectoryBuildStringSinglePathSuccess | |||
) |
cuttlefish::TEST | ( | ParseBuildStringTests | , |
EmptyStringFail | |||
) |
cuttlefish::TEST | ( | ParseBuildStringTests | , |
FilepathBracketsButNoValueFail | |||
) |
cuttlefish::TEST | ( | ParseBuildStringTests | , |
FilepathExistsMissingBracketFail | |||
) |
cuttlefish::TEST | ( | ParseBuildStringTests | , |
FilepathExistsSuccess | |||
) |
cuttlefish::TEST | ( | ParseBuildStringTests | , |
FilepathOnlyFail | |||
) |
cuttlefish::TEST | ( | ProcFilePid | , |
CurrentPidCollected | |||
) |
cuttlefish::TEST | ( | ProcFileUid | , |
SelfUidTest | |||
) |
cuttlefish::TEST | ( | ResultTest | , |
ExpectBoolBadNoMessage | |||
) |
cuttlefish::TEST | ( | ResultTest | , |
ExpectBoolBadWithMessage | |||
) |
cuttlefish::TEST | ( | ResultTest | , |
ExpectBoolGoodNoMessage | |||
) |
cuttlefish::TEST | ( | ResultTest | , |
ExpectBoolGoodWithMessage | |||
) |
cuttlefish::TEST | ( | ResultTest | , |
ExpectEqBadNoMessage | |||
) |
cuttlefish::TEST | ( | ResultTest | , |
ExpectEqBadWithMessage | |||
) |
cuttlefish::TEST | ( | ResultTest | , |
ExpectEqGoodNoMessage | |||
) |
cuttlefish::TEST | ( | ResultTest | , |
ExpectEqGoodWithMessage | |||
) |
cuttlefish::TEST | ( | ResultTest | , |
ExpectWithResultBadNoMessage | |||
) |
cuttlefish::TEST | ( | ResultTest | , |
ExpectWithResultBadWithMessage | |||
) |
cuttlefish::TEST | ( | ResultTest | , |
ExpectWithResultGoodNoMessage | |||
) |
cuttlefish::TEST | ( | ResultTest | , |
ExpectWithResultGoodWithMessage | |||
) |
cuttlefish::TEST | ( | SendFD | , |
Basic | |||
) |
cuttlefish::TEST | ( | SingleBuildStringGflagsCompatFlagTests | , |
EmptyInputEmptyResultSuccess | |||
) |
cuttlefish::TEST | ( | SingleBuildStringGflagsCompatFlagTests | , |
HasValueSuccess | |||
) |
cuttlefish::TEST | ( | TpmEncryptedSerializable | , |
BinaryData | |||
) |
cuttlefish::TEST | ( | UnixMessageSocket | , |
AutoCredentials | |||
) |
cuttlefish::TEST | ( | UnixMessageSocket | , |
BadCredentialsBlocked | |||
) |
cuttlefish::TEST | ( | UnixMessageSocket | , |
SendCredentials | |||
) |
cuttlefish::TEST | ( | UnixMessageSocket | , |
SendFileDescriptor | |||
) |
cuttlefish::TEST | ( | UnixMessageSocket | , |
SendPlainMessage | |||
) |
cuttlefish::TEST | ( | UnixMessageSocket | , |
SendTwoFileDescriptors | |||
) |
cuttlefish::TEST | ( | UnixSocketMessage | , |
ExtractFileDescriptors | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseOneInstanceSetupWizardInvalidValue | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesCpuFlagEmptyJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesCpuFlagFullJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesCpuFlagPartialJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesCustomActionsFlagEmptyJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesCustomActionsFlagPartialJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesMemoryFlagEmptyJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesMemoryFlagFullJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesMemoryFlagPartialJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesQemu | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesSandboxFlagEmptyJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesSandboxFlagFullJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesSandboxFlagPartialJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesSdCardFlagEmptyJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesSdCardFlagFullJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesSdCardFlagPartialJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesSetupWizardFlagEmptyJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesSetupWizardFlagFullJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesSetupWizardFlagPartialJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesSimpleMediaDeviceFlagEmptyJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesSimpleMediaDeviceFlagFullJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesSimpleMediaDeviceFlagPartialJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesUuidFlagEmptyJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesUuidFlagFullJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesUuidFlagPartialJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesV4l2ProxyFlagEmptyJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesV4l2ProxyFlagFullJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesV4l2ProxyFlagPartialJson | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesVmManagerFlagDefault | |||
) |
cuttlefish::TEST | ( | VmFlagsParserTest | , |
ParseTwoInstancesVmManagerFlagEmptyJson | |||
) |
cuttlefish::TEST_F | ( | CasDownloaderTests | , |
CacheEnabledIfCacheDirSet | |||
) |
cuttlefish::TEST_F | ( | CasDownloaderTests | , |
DisablesCacheIfCacheDirNotSet | |||
) |
cuttlefish::TEST_F | ( | CasDownloaderTests | , |
DownloadsCompressedIfNotPreferUncompressed | |||
) |
cuttlefish::TEST_F | ( | CasDownloaderTests | , |
DownloadsCompressedIfPreferUncompressedButUnavailable | |||
) |
cuttlefish::TEST_F | ( | CasDownloaderTests | , |
DownloadsDigestsOnlyIfNeeded | |||
) |
cuttlefish::TEST_F | ( | CasDownloaderTests | , |
DownloadsUncompressedIfPreferUncompressed | |||
) |
cuttlefish::TEST_F | ( | CasDownloaderTests | , |
FailsIfArtifactNotInDigestsFile | |||
) |
cuttlefish::TEST_F | ( | CasDownloaderTests | , |
FailsIfDigestsFileDoesNotExist | |||
) |
cuttlefish::TEST_F | ( | CasDownloaderTests | , |
FailsToCreateWithInvalidCasDownloaderPath | |||
) |
cuttlefish::TEST_F | ( | CasDownloaderTests | , |
FailsToCreateWithInvalidConfigPath | |||
) |
cuttlefish::TEST_F | ( | CasDownloaderTests | , |
HandlesFalseBoolFlag | |||
) |
cuttlefish::TEST_F | ( | CasDownloaderTests | , |
HandlesUnexpectedHelpOutput | |||
) |
cuttlefish::TEST_F | ( | CasDownloaderTests | , |
IgnoresUnsupportedFlags | |||
) |
cuttlefish::TEST_F | ( | CasDownloaderTests | , |
PassesCasOptionsFromCommandLine | |||
) |
cuttlefish::TEST_F | ( | CasDownloaderTests | , |
PassesOptionalStatsFilepathWhenSet | |||
) |
cuttlefish::TEST_F | ( | CasDownloaderTests | , |
RecognizesValidFlags | |||
) |
cuttlefish::TEST_F | ( | CasDownloaderTests | , |
UsesAdcIfServiceAccountUnavailable | |||
) |
cuttlefish::TEST_F | ( | CasDownloaderTests | , |
UsesServiceAccountIfAvailable | |||
) |
cuttlefish::TEST_F | ( | CvdFlagCollectionTest | , |
AllGivenFlagsListed | |||
) |
cuttlefish::TEST_F | ( | CvdFlagCollectionTest | , |
Init | |||
) |
cuttlefish::TEST_F | ( | CvdFlagCollectionTest | , |
Leftover | |||
) |
cuttlefish::TEST_F | ( | CvdIdAllocatorTest | , |
ClaimAll | |||
) |
cuttlefish::TEST_F | ( | CvdIdAllocatorTest | , |
Consecutive | |||
) |
cuttlefish::TEST_F | ( | CvdIdAllocatorTest | , |
Reclaim | |||
) |
cuttlefish::TEST_F | ( | CvdIdAllocatorTest | , |
StrideBeyond | |||
) |
cuttlefish::TEST_F | ( | CvdIdAllocatorTest | , |
Take | |||
) |
cuttlefish::TEST_F | ( | CvdIdAllocatorTest | , |
TakeAll | |||
) |
cuttlefish::TEST_F | ( | CvdIdAllocatorTest | , |
TakeRange | |||
) |
cuttlefish::TEST_F | ( | FetchCvdTests | , |
CasDownloaderInvokedIfDownloaderPathSetInCasConfig | |||
) |
cuttlefish::TEST_F | ( | FetchCvdTests | , |
CasDownloaderInvokedIfDownloaderPathSetOnCommandLine | |||
) |
cuttlefish::TEST_F | ( | FetchCvdTests | , |
CasDownloaderNotCalledIfNoFlags | |||
) |
cuttlefish::TEST_F | ( | FilesTests | , |
HardLinkRecursively | |||
) |
cuttlefish::TEST_F | ( | FilesTests | , |
HardLinkRecursivelyFailsIfSourceIsNotADirectory | |||
) |
cuttlefish::TEST_F | ( | FilesTests | , |
MoveDirectoryContents | |||
) |
cuttlefish::TEST_F | ( | FilesTests | , |
MoveDirectoryContentsFailsIfSourceIsNotADirectory | |||
) |
cuttlefish::TEST_F | ( | FlagConsumesArbitraryTest | , |
NoValues | |||
) |
cuttlefish::TEST_F | ( | FlagConsumesArbitraryTest | , |
NoValuesOtherFlag | |||
) |
cuttlefish::TEST_F | ( | FlagConsumesArbitraryTest | , |
OneValue | |||
) |
cuttlefish::TEST_F | ( | FlagConsumesArbitraryTest | , |
OneValueOtherFlag | |||
) |
cuttlefish::TEST_F | ( | FlagConsumesArbitraryTest | , |
TwoValues | |||
) |
cuttlefish::TEST_F | ( | FlagConsumesArbitraryTest | , |
TwoValuesOtherFlag | |||
) |
cuttlefish::TEST_P | ( | EmulateAbsolutePathBase | , |
NoHomeNoPwd | |||
) |
cuttlefish::TEST_P | ( | EmulateAbsolutePathWithHome | , |
YesHomeNoPwd | |||
) |
cuttlefish::TEST_P | ( | EmulateAbsolutePathWithPwd | , |
NoHomeYesPwd | |||
) |
cuttlefish::TEST_P | ( | OneEachTest | , |
GetAnyAvailableOne | |||
) |
fruit::Component< TestData > cuttlefish::TestComponent | ( | ) |
std::string cuttlefish::TestKeyRsa2048 | ( | ) |
std::string cuttlefish::TestKeyRsa4096 | ( | ) |
std::string cuttlefish::TestPubKeyRsa2048 | ( | ) |
std::string cuttlefish::TestPubKeyRsa4096 | ( | ) |
|
static |
fruit::Component< fruit::Required< const CuttlefishConfig, LogTeeCreator, const CuttlefishConfig::InstanceSpecific > > cuttlefish::Ti50EmulatorComponent | ( | ) |
std::string cuttlefish::ToHexString | ( | const std::vector< uint8_t > & | binary | ) |
|
static |
Tokenizes the given string, using '\0' as a delimiter
android::base::Tokenize works mostly except the delimiter can't be '\0'. The /proc/<pid>/environ file has the list of environment variables, delimited by '\0'. Needs a dedicated tokenizer.
Result< MonitorCommand > cuttlefish::TombstoneReceiver | ( | const CuttlefishConfig::InstanceSpecific & | instance | ) |
std::string cuttlefish::TombstoneReceiverBinary | ( | ) |
int cuttlefish::TombstoneReceiverMain | ( | int | argc, |
char ** | argv | ||
) |
Result< android::base::LogSeverity > cuttlefish::ToSeverity | ( | const std::string & | value | ) |
std::string cuttlefish::ToString | ( | GuestHwuiRenderer | renderer | ) |
std::string cuttlefish::ToString | ( | GuestRendererPreload | preload | ) |
std::string cuttlefish::ToString | ( | SecureHal | hal_in | ) |
std::string cuttlefish::ToString | ( | VmmMode | mode | ) |
fruit::Component< TouchpadsConfigs > cuttlefish::TouchpadsConfigsComponent | ( | ) |
fruit::Component< fruit::Required< TouchpadsConfigs, ConfigFlag >, TouchpadsConfigsFlag > cuttlefish::TouchpadsConfigsFlagComponent | ( | ) |
std::string cuttlefish::TpmCommandName | ( | std::uint32_t | command_num | ) |
bool cuttlefish::TpmDecrypt | ( | ESYS_CONTEXT * | esys, |
ESYS_TR | key_handle, | ||
TpmAuth | auth, | ||
const TPM2B_IV & | iv, | ||
uint8_t * | data_in, | ||
uint8_t * | data_out, | ||
size_t | data_size | ||
) |
Decrypt data_in
to data_out
, which are both buffers of size data_size
.
There are no integrity guarantees on this data: if the encrypted data is corrupted, decrypting it could either fail or produce corrupted output.
bool cuttlefish::TpmEncrypt | ( | ESYS_CONTEXT * | esys, |
ESYS_TR | key_handle, | ||
TpmAuth | auth, | ||
const TPM2B_IV & | iv, | ||
uint8_t * | data_in, | ||
uint8_t * | data_out, | ||
size_t | data_size | ||
) |
Encrypt data_in
to data_out
, which are both buffers of size data_size
.
There are no integrity guarantees on this data: if the encrypted data is corrupted, decrypting it could either fail or produce corrupted output.
iv
should be generated randomly, and can be stored unencrypted next to the plaintext.
|
static |
UniqueEsysPtr< TPM2B_DIGEST > cuttlefish::TpmHmac | ( | TpmResourceManager & | resource_manager, |
ESYS_TR | key_handle, | ||
TpmAuth | auth, | ||
const uint8_t * | data, | ||
size_t | data_size | ||
) |
Returns a HMAC signature for data
with the key loaded into the TPM at key_handle
.
The signature is a byte string that certifies a process that can make TPM API calls has signed off on using another byte string (data
) for some purpose, which is implicitly tied to the signing key. In this case, the secure_env process is the only process that should have TPM access. secure_env can then transmit some data together with a signature over that data, an external system (Android) can hold onto this data and the signature, and then the secure_env process can receive the data back. The signature is used to check that the data has not been tampered with.
UniqueEsysPtr< TPM2B_DIGEST > cuttlefish::TpmHmacWithContext | ( | TpmResourceManager & | resource_manager, |
const std::string & | context, | ||
const uint8_t * | data, | ||
size_t | data_size | ||
) |
Returns a HMAC signature for data
with a key created in the TPM with context / unique-data context
.
|
inline |
bool cuttlefish::TypeIsSuccess | ( | Result< T > && | value | ) |
bool cuttlefish::TypeIsSuccess | ( | Result< T > & | value | ) |
bool cuttlefish::TypeIsSuccess | ( | std::optional< T > & | value | ) |
|
inlineconstexpr |
Flag cuttlefish::UnexpectedArgumentGuard | ( | ) |
std::pair< UnixMessageSocket, UnixMessageSocket > cuttlefish::UnixMessageSocketPair | ( | ) |
Result< std::string > cuttlefish::UnpackBootImage | ( | const std::string & | boot_image_path, |
const std::string & | unpack_dir | ||
) |
std::string cuttlefish::UnpackBootimgBinary | ( | ) |
void cuttlefish::UnpackRamdisk | ( | const std::string & | original_ramdisk_path, |
const std::string & | ramdisk_stage_dir | ||
) |
bool cuttlefish::UnpackVendorBootImageIfNotUnpacked | ( | const std::string & | vendor_boot_image_path, |
const std::string & | unpack_dir | ||
) |
|
static |
std::string cuttlefish::UrlEscape | ( | std::string_view | text | ) |
bool cuttlefish::UseQemuPrebuilt | ( | ) |
|
static |
|
static |
Result< std::optional< MonitorCommand > > cuttlefish::UwbConnector | ( | const CuttlefishConfig & | config, |
const CuttlefishConfig::InstanceSpecific & | instance | ||
) |
|
static |
Result< cvd::config::EnvironmentSpecification > cuttlefish::ValidateCfConfigs | ( | const Json::Value & | root | ) |
Result< void > cuttlefish::ValidateHostConfiguration | ( | ) |
Result< void > cuttlefish::ValidateHostKernel | ( | ) |
std::string cuttlefish::ValidateMetricsConfirmation | ( | std::string | use_metrics | ) |
Result< void > cuttlefish::ValidateSetupWizardMode | ( | const std::string & | setupwizard_mode | ) |
Result< void > cuttlefish::ValidateTapDevices | ( | const CuttlefishConfig::InstanceSpecific & | instance | ) |
|
inlineconstexpr |
Result< void > cuttlefish::VbmetaEnforceMinimumSize | ( | const CuttlefishConfig::InstanceSpecific & | instance | ) |
Flag cuttlefish::VerbosityFlag | ( | android::base::LogSeverity & | value | ) |
Result< std::string > cuttlefish::VerbosityToString | ( | const android::base::LogSeverity | verbosity | ) |
std::optional< MonitorCommand > cuttlefish::VhalProxyServer | ( | const CuttlefishConfig & | config, |
const CuttlefishConfig::InstanceSpecific & | instance | ||
) |
std::string cuttlefish::VhalProxyServerBinary | ( | ) |
std::string cuttlefish::VhalProxyServerConfig | ( | ) |
fruit::Component< fruit::Required< const CuttlefishConfig, LogTeeCreator, const CuttlefishConfig::InstanceSpecific > > cuttlefish::VhostDeviceVsockComponent | ( | ) |
fruit::Component< fruit::Required< const CuttlefishConfig::InstanceSpecific >, InputConnectionsProvider, LogTeeCreator > cuttlefish::VhostInputDevicesComponent | ( | ) |
std::string cuttlefish::VhostUserInputBinary | ( | ) |
|
static |
|
static |
Result< void > cuttlefish::WaitForUnixSocket | ( | const std::string & | path, |
int | timeoutSec | ||
) |
Result< void > cuttlefish::WaitForUnixSocketListeningWithoutConnect | ( | const std::string & | path, |
int | timeoutSec | ||
) |
Result< void > cuttlefish::WalkDirectory | ( | const std::string & | dir, |
const std::function< bool(const std::string &)> & | callback | ||
) |
std::string cuttlefish::WebRtcBinary | ( | ) |
fruit::Component< CustomActionConfigProvider > cuttlefish::WebRtcComponent | ( | ) |
fruit::Component< WebRtcController > cuttlefish::WebRtcControllerComponent | ( | ) |
std::string cuttlefish::WebRtcSigServerBinary | ( | ) |
std::string cuttlefish::WebRtcSigServerProxyBinary | ( | ) |
Result< std::vector< uint8_t > > cuttlefish::WithCrc16A | ( | const std::vector< uint8_t > & | data | ) |
Result< std::vector< uint8_t > > cuttlefish::WithCrc16B | ( | const std::vector< uint8_t > & | data | ) |
BuildString cuttlefish::WithFallbackTarget | ( | BuildString | build_string, |
std::string | fallback | ||
) |
std::string cuttlefish::WmediumdBinary | ( | ) |
std::string cuttlefish::WmediumdGenConfigBinary | ( | ) |
fruit::Component< fruit::Required< const CuttlefishConfig, const CuttlefishConfig::EnvironmentSpecific, const CuttlefishConfig::InstanceSpecific, LogTeeCreator, GrpcSocketCreator > > cuttlefish::WmediumdServerComponent | ( | ) |
ssize_t cuttlefish::WriteAll | ( | SharedFD | fd, |
const char * | buf, | ||
size_t | size | ||
) |
Writes to fd until size
bytes are written from buf
.
On a successful write, returns size
.
If a write error is encountered, returns -1. Some data may have already been written to fd at that point.
If size is 0, WriteAll returns 0 with no error set unless the fd is a regular file. If fd is a regular file, write(fd, buf, 0) is effectively called. It may detect errors; if detected, errno is set and -1 is returned. If not detected, 0 is returned with errno unchanged.
ssize_t cuttlefish::WriteAll | ( | SharedFD | fd, |
const std::vector< char > & | buf | ||
) |
Writes to fd until writing all bytes in buf.
On a successful write, returns buf.size().
If a write error is encountered, returns -1. Some data may have already been written to fd at that point.
If the size of buf is 0, WriteAll returns 0 with no error set unless the fd is a regular file. If fd is a regular file, write(fd, buf, 0) is effectively called. It may detect errors; if detected, errno is set and -1 is returned. If not detected, 0 is returned with errno unchanged.
ssize_t cuttlefish::WriteAll | ( | SharedFD | fd, |
std::string_view | buf | ||
) |
Writes to fd until writing all bytes in buf.
On a successful write, returns buf.size().
If a write error is encountered, returns -1. Some data may have already been written to fd at that point.
If the size of buf is 0, WriteAll returns 0 with no error set unless the fd is a regular file. If fd is a regular file, write(fd, buf, 0) is effectively called. It may detect errors; if detected, errno is set and -1 is returned. If not detected, 0 is returned with errno unchanged.
ssize_t cuttlefish::WriteAllBinary | ( | SharedFD | fd, |
const T * | binary_data | ||
) |
Writes to fd until sizeof(T)
bytes are written from binary_data.
On a successful write, returns sizeof(T)
.
If a write error is encountered, returns -1. Some data may have already been written to fd at that point.
If ever sizeof(T) is 0, WriteAll returns 0 with no error set unless the fd is a regular file. If fd is a regular file, write(fd, buf, 0) is effectively called. It may detect errors; if detected, errno is set and -1 is returned. If not detected, 0 is returned with errno unchanged.
Result< void > cuttlefish::WriteCvdDataFile | ( | std::string_view | path, |
std::string | contents | ||
) |
|
static |
Result< bool > cuttlefish::WriteFsConfig | ( | const char * | output_path, |
const std::string & | fs_root, | ||
const std::string & | mount_point | ||
) |
bool cuttlefish::WriteGflagsCompatXml | ( | const std::vector< Flag > & | flags, |
std::ostream & | out | ||
) |
Result< void > cuttlefish::WriteKeyEqualsValue | ( | const std::map< std::string, std::string > & | key_equals_value, |
const std::string & | path | ||
) |
bool cuttlefish::WriteProtectedJsonToFile | ( | TpmResourceManager & | resource_manager, |
const std::string & | filename, | ||
Json::Value | json | ||
) |
|
static |
|
static |
Result< ReadableZip > cuttlefish::ZipOpenRead | ( | const std::string & | fs_path | ) |
Result< WritableZip > cuttlefish::ZipOpenReadWrite | ( | const std::string & | fs_path | ) |
Result< SeekableZipSource > cuttlefish::ZipSourceFromUrl | ( | HttpClient & | http_client, |
const std::string & | url, | ||
std::vector< std::string > | headers | ||
) |
const std::string cuttlefish::_MISC_INFO_FILE_NAME = "misc_info.txt" |
const std::string cuttlefish::_PRODUCT_IMAGE_NAME_PATTERN = "product.img" |
const std::string cuttlefish::_SYSTEM_EXT_IMAGE_NAME_PATTERN = "system_ext.img" |
const std::string cuttlefish::_SYSTEM_IMAGE_NAME_PATTERN = "system.img" |
const std::string cuttlefish::_TARGET_FILES_IMAGES_DIR_NAME = "IMAGES" |
const std::string cuttlefish::_TARGET_FILES_META_DIR_NAME = "META" |
|
staticconstexpr |
|
staticconstexpr |
|
constexpr |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
constexpr |
|
constexpr |
const std::map<SimService::SimStatus, std::string> cuttlefish::gSimStatusResponse |
const std::map< IfaceType, std::string > cuttlefish::IfaceTyToStrMap |
|
inlineconstexpr |
|
staticconstexpr |
|
constexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
char cuttlefish::kBadCoordinatesText[] |
|
constexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
inlineconstexpr |
|
constexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
constexpr |
Current supported Header version number.
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
constexpr |
|
constexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
constexpr |
|
constexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
constexpr |
|
inlineconstexpr |
|
constexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
constexpr |
|
static |
|
staticconstexpr |
|
inlineconstexpr |
|
static |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
constexpr |
|
constexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
staticconstexpr |
char cuttlefish::kEmptyKmlText[] |
char cuttlefish::kEmptyRteTrkText[] |
char cuttlefish::kEmptyText[] |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
constexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
constexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
inlinestaticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
static |
|
staticconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
constexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
char cuttlefish::kLocationMissingFieldsText[] |
char cuttlefish::kLocationMissingLongitudeLatitudeText[] |
char cuttlefish::kLocationMissingLongitudeText[] |
char cuttlefish::kLocationMissingRequiredFieldsText[] |
char cuttlefish::kLocationNameOnlyFirstText[] |
char cuttlefish::kLocationNormalText[] |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
constexpr |
Oldest compatible header version number.
|
staticconstexpr |
|
staticconstexpr |
|
constexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
char cuttlefish::kMultipleCoordinatesText[] |
char cuttlefish::kMultipleLocationsText[] |
char cuttlefish::kNestedDocText[] |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
char cuttlefish::kNoPlacemarksText[] |
char cuttlefish::kNullAttributeText[] |
char cuttlefish::kNullNameNoCrashText[] |
char cuttlefish::kOneCoordinateText[] |
|
staticconstexpr |
|
staticconstexpr |
|
constexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
constexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
constexpr |
|
constexpr |
|
static |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
staticconstexpr |
|
constexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
staticconstexpr |
char cuttlefish::kTraverseEmptyDocText[] |
|
staticconstexpr |
|
static |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
char cuttlefish::kValidComplexText[] |
char cuttlefish::kValidDocumentText[] |
char cuttlefish::kValidkmlText[] |
char cuttlefish::kValidLocationText[] |
char cuttlefish::kValidText[] |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
inlineconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
constexpr |
|
static |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
static |
int cuttlefish::MarshalFn = 0 |
auto cuttlefish::MarshalFn< TPM2B_PRIVATE > = Tss2_MU_TPM2B_PRIVATE_Marshal |
auto cuttlefish::MarshalFn< TPM2B_PUBLIC > = Tss2_MU_TPM2B_PUBLIC_Marshal |
const uint32_t cuttlefish::MAX_MSG_SIZE = 200 |
|
static |
|
static |
|
static |
|
constexpr |
char cuttlefish::pipe_message[] = "Testing the pipe" |
const std::map< RequestStatus, std::string > cuttlefish::ReqStatusToStrMap |
const std::map< RequestType, const char * > cuttlefish::RequestTyToStrMap |
const std::map< std::string, IfaceType > cuttlefish::StrToIfaceTyMap |
const std::map< std::string, RequestStatus > cuttlefish::StrToReqStatusMap |
const std::map< std::string, RequestType > cuttlefish::StrToRequestTyMap |
|
staticconstexpr |
int cuttlefish::UnmarshalFn = 0 |
auto cuttlefish::UnmarshalFn< TPM2B_PRIVATE > = Tss2_MU_TPM2B_PRIVATE_Unmarshal |
auto cuttlefish::UnmarshalFn< TPM2B_PUBLIC > = Tss2_MU_TPM2B_PUBLIC_Unmarshal |
|
static |
const uint32_t cuttlefish::VIOS_VERSION = 2 |
|
constexpr |