Android-cuttlefish cvd tool
Functions | Variables
cuttlefish::oemlock::anonymous_namespace{oemlock.cpp} Namespace Reference

Functions

Result< void > InitializeDefaultState (secure_env::Storage &storage)
 
Result< bool > ReadFlag (secure_env::Storage &storage, int bit)
 
Result< void > WriteFlag (secure_env::Storage &storage, int bit, bool value)
 

Variables

constexpr char kStateKey [] = "oemlock_state"
 
constexpr int kAllowedByCarrierBit = 0
 
constexpr int kAllowedByDeviceBit = 1
 
constexpr int kOemLockedBit = 2
 
constexpr uint8_t kDefaultState
 

Function Documentation

◆ InitializeDefaultState()

Result< void > cuttlefish::oemlock::anonymous_namespace{oemlock.cpp}::InitializeDefaultState ( secure_env::Storage storage)

◆ ReadFlag()

Result< bool > cuttlefish::oemlock::anonymous_namespace{oemlock.cpp}::ReadFlag ( secure_env::Storage storage,
int  bit 
)

◆ WriteFlag()

Result< void > cuttlefish::oemlock::anonymous_namespace{oemlock.cpp}::WriteFlag ( secure_env::Storage storage,
int  bit,
bool  value 
)

Variable Documentation

◆ kAllowedByCarrierBit

constexpr int cuttlefish::oemlock::anonymous_namespace{oemlock.cpp}::kAllowedByCarrierBit = 0
constexpr

◆ kAllowedByDeviceBit

constexpr int cuttlefish::oemlock::anonymous_namespace{oemlock.cpp}::kAllowedByDeviceBit = 1
constexpr

◆ kDefaultState

constexpr uint8_t cuttlefish::oemlock::anonymous_namespace{oemlock.cpp}::kDefaultState
constexpr
Initial value:
=
constexpr int kAllowedByCarrierBit
Definition: oemlock.cpp:25
constexpr int kAllowedByDeviceBit
Definition: oemlock.cpp:26

◆ kOemLockedBit

constexpr int cuttlefish::oemlock::anonymous_namespace{oemlock.cpp}::kOemLockedBit = 2
constexpr

◆ kStateKey

constexpr char cuttlefish::oemlock::anonymous_namespace{oemlock.cpp}::kStateKey[] = "oemlock_state"
constexpr