xref: /aosp_15_r20/system/nfc/src/fuzzers/integration/fakes/nfc_adaptation_fakes.cc (revision 7eba2f3b06c51ae21384f6a4f14577b668a869b3)
1 #include "NfcAdaptation.h"
2 
3 uint8_t appl_dta_mode_flag = 0;
4 unsigned int t5t_mute_legacy = 0;
5 bool nfc_nci_reset_keep_cfg_enabled = false;
6 uint8_t nfc_nci_reset_type = 0x00;
7 
8 NfcAdaptation* NfcAdaptation::mpInstance = nullptr;
9 
GetInstance()10 NfcAdaptation& NfcAdaptation::GetInstance() {
11   if (!mpInstance) {
12     mpInstance = new NfcAdaptation;
13     mpInstance->InitializeHalDeviceContext();
14   }
15   return *mpInstance;
16 }
17 
GetVendorConfigs(std::map<std::string,ConfigValue> &)18 void NfcAdaptation::GetVendorConfigs(std::map<std::string, ConfigValue>&) {}
19 
NfcAdaptation()20 NfcAdaptation::NfcAdaptation() {}
~NfcAdaptation()21 NfcAdaptation::~NfcAdaptation() { mpInstance = nullptr; }
22 
InitializeHalDeviceContext()23 void NfcAdaptation::InitializeHalDeviceContext() {}
24 
25 class NfcHalDeathRecipient : public virtual android::RefBase {};
26 
ThreadCondVar()27 ThreadCondVar::ThreadCondVar() {}
~ThreadCondVar()28 ThreadCondVar::~ThreadCondVar() {}
~ThreadMutex()29 ThreadMutex::~ThreadMutex() {}
ThreadMutex()30 ThreadMutex::ThreadMutex() {}
31