Home
last modified time | relevance | path

Searched refs:serialNumber (Results 1 – 25 of 54) sorted by relevance

123

/base/startup/init/device_info/
Ddevice_info.cpp51 static char serialNumber[MAX_SERIAL_LEN] = {"1234567890"}; in AclGetSerial() local
57 ret = strcpy_s(serialNumber, sizeof(serialNumber), result.c_str()); in AclGetSerial()
63 int ret = strcpy_s(serialNumber, sizeof(serialNumber), tmpSerial); in AclGetSerial()
67 BEGET_LOGI("AclGetSerial %s", serialNumber); in AclGetSerial()
68 return serialNumber; in AclGetSerial()
Ddevice_info_stub.cpp59 const char *serialNumber = GetSerial_(); in REGISTER_SYSTEM_ABILITY_BY_ID() local
60 DINFO_CHECK(serialNumber != nullptr, break, "Failed to get serialNumber"); in REGISTER_SYSTEM_ABILITY_BY_ID()
61 reply.WriteString16(Str8ToStr16(serialNumber)); in REGISTER_SYSTEM_ABILITY_BY_ID()
/base/usb/usb_manager/services/native/src/
Dusb_serial_reader.cpp20 …SerialReader(SystemAbility *systemAbility, UsbRightManager *rightManager, std::string serialNumber) in UsbSerialReader() argument
24 serialNumber_ = serialNumber; in UsbSerialReader()
/base/account/os_account/interfaces/innerkits/osaccount/native/include/
Dos_account_info.h66 … OsAccountInfo(int localId, const std::string localName, OsAccountType type, int64_t serialNumber);
69 …ool isVerified, std::string photo, int64_t createTime, int64_t lastLoginTime, int64_t serialNumber,
120 void SetSerialNumber(const int64_t serialNumber);
Dos_account_manager.h59 static ErrCode GetOsAccountLocalIdBySerialNumber(const int64_t serialNumber, int &id);
60 static ErrCode GetSerialNumberByOsAccountLocalId(const int &id, int64_t &serialNumber);
70 static ErrCode GetSerialNumberFromDatabase(const std::string& storeID, int64_t &serialNumber);
/base/startup/init/test/unittest/deviceinfo/
DDeviceInfoUnittest.cpp62 const char *serialNumber = AclGetSerial(); variable
63 EXPECT_NE(nullptr, serialNumber);
/base/account/os_account/frameworks/osaccount/native/src/
Dos_account_manager.cpp184 ErrCode OsAccountManager::GetOsAccountLocalIdBySerialNumber(const int64_t serialNumber, int &id) in GetOsAccountLocalIdBySerialNumber() argument
186 return OsAccount::GetInstance().GetOsAccountLocalIdBySerialNumber(serialNumber, id); in GetOsAccountLocalIdBySerialNumber()
189 ErrCode OsAccountManager::GetSerialNumberByOsAccountLocalId(const int &id, int64_t &serialNumber) in GetSerialNumberByOsAccountLocalId() argument
191 return OsAccount::GetInstance().GetSerialNumberByOsAccountLocalId(id, serialNumber); in GetSerialNumberByOsAccountLocalId()
234 …de OsAccountManager::GetSerialNumberFromDatabase(const std::string& storeID, int64_t &serialNumber) in GetSerialNumberFromDatabase() argument
236 return OsAccount::GetInstance().GetSerialNumberFromDatabase(storeID, serialNumber); in GetSerialNumberFromDatabase()
Dos_account_info.cpp56 …::OsAccountInfo(int localId, const std::string localName, OsAccountType type, int64_t serialNumber) in OsAccountInfo() argument
57 : localId_(localId), localName_(localName), type_(type), serialNumber_(serialNumber) in OsAccountInfo()
72 int64_t serialNumber, bool isCreateCompleted) in OsAccountInfo() argument
81 serialNumber_(serialNumber), in OsAccountInfo()
318 void OsAccountInfo::SetSerialNumber(const int64_t serialNumber) in SetSerialNumber() argument
320 serialNumber_ = serialNumber; in SetSerialNumber()
/base/account/os_account/test/systemtest/common/resource/fuzzTest/src/
Dfuzz_test_manager.cpp232 int64_t serialNumber = GetS64Param(); in RegisterOsAccountManager() local
233 OsAccountManager::GetOsAccountLocalIdBySerialNumber(serialNumber, id); in RegisterOsAccountManager()
238 int64_t serialNumber = GetS64Param(); in RegisterOsAccountManager() local
239 OsAccountManager::GetSerialNumberByOsAccountLocalId(id, serialNumber); in RegisterOsAccountManager()
281 int64_t serialNumber = GetS64Param(); in RegisterOsAccountManager() local
282 OsAccountManager::GetSerialNumberFromDatabase(storeID, serialNumber); in RegisterOsAccountManager()
/base/usb/usb_manager/services/native/include/
Dusb_serial_reader.h27 …erialReader(SystemAbility *systemAbility, UsbRightManager *rightManager, std::string serialNumber);
/base/account/os_account/frameworks/osaccount/core/include/
Dos_account.h58 ErrCode GetOsAccountLocalIdBySerialNumber(const int64_t serialNumber, int &id);
59 ErrCode GetSerialNumberByOsAccountLocalId(const int &id, int64_t &serialNumber);
69 ErrCode GetSerialNumberFromDatabase(const std::string& storeID, int64_t &serialNumber);
Dios_account.h64 virtual ErrCode GetOsAccountLocalIdBySerialNumber(const int64_t serialNumber, int &id) = 0;
65 virtual ErrCode GetSerialNumberByOsAccountLocalId(const int &id, int64_t &serialNumber) = 0;
79 …virtual ErrCode GetSerialNumberFromDatabase(const std::string& storeID, int64_t &serialNumber) = 0;
Dos_account_proxy.h60 ErrCode GetOsAccountLocalIdBySerialNumber(const int64_t serialNumber, int &id) override;
61 ErrCode GetSerialNumberByOsAccountLocalId(const int &id, int64_t &serialNumber) override;
75 ErrCode GetSerialNumberFromDatabase(const std::string& storeID, int64_t &serialNumber) override;
/base/account/os_account/services/accountmgr/include/osaccount/
Diinner_os_account.h55 virtual ErrCode GetOsAccountLocalIdBySerialNumber(const int64_t serialNumber, int &id) = 0;
56 virtual ErrCode GetSerialNumberByOsAccountLocalId(const int &id, int64_t &serialNumber) = 0;
67 …virtual ErrCode GetSerialNumberFromDatabase(const std::string& storeID, int64_t &serialNumber) = 0;
Dos_account_manager_service.h74 ErrCode GetOsAccountLocalIdBySerialNumber(const int64_t serialNumber, int &id) override;
75 ErrCode GetSerialNumberByOsAccountLocalId(const int &id, int64_t &serialNumber) override;
94 int64_t &serialNumber) override;
Diinner_os_account_manager.h58 ErrCode GetOsAccountLocalIdBySerialNumber(const int64_t serialNumber, int &id) override;
59 ErrCode GetSerialNumberByOsAccountLocalId(const int &id, int64_t &serialNumber) override;
70 ErrCode GetSerialNumberFromDatabase(const std::string& storeID, int64_t &serialNumber) override;
Dios_account_control.h31 virtual ErrCode GetSerialNumber(int64_t &serialNumber) = 0;
44 int64_t &serialNumber) = 0;
Dos_account_database_operator.h38 ErrCode GetSerialNumberFromDatabase(const std::string& storeID, int64_t &serialNumber);
/base/account/os_account/services/accountmgr/test/unittest/os_account/
Dos_account_control_file_manager_test.cpp403 int64_t serialNumber = -1; variable
404 ret = osAccountControlManager_->GetSerialNumberFromDatabase(storeID_, serialNumber);
406 EXPECT_NE(serialNumber, -1);
447 int64_t serialNumber = -1; variable
448 ret = osAccountControlManager_->GetSerialNumberFromDatabase(storeID_, serialNumber);
450 EXPECT_NE(serialNumber, -1);
455 EXPECT_EQ(serialNumber, serialNumberByDefault);
/base/security/crypto_framework/test/fuzztest/certificate/x509certificate_fuzzer/
Dx509certificate_fuzzer.cpp79 long serialNumber = x509CertObj->getSerialNumber(x509CertObj); in TestQuery() local
80 if (serialNumber < 0) { in TestQuery()
/base/security/crypto_framework/plugin/openssl_plugin/certificate/src/
Dx509_crl_entry_openssl.c97 const ASN1_INTEGER *serialNumber = X509_REVOKED_get0_serialNumber(rev); in GetSerialNumber() local
98 if (serialNumber == NULL) { in GetSerialNumber()
103 return ASN1_INTEGER_get(serialNumber); in GetSerialNumber()
/base/account/os_account/services/accountmgr/src/osaccount/
Dos_account_manager_service.cpp524 ErrCode OsAccountManagerService::GetOsAccountLocalIdBySerialNumber(const int64_t serialNumber, int … in GetOsAccountLocalIdBySerialNumber() argument
526 return innerManager_->GetOsAccountLocalIdBySerialNumber(serialNumber, id); in GetOsAccountLocalIdBySerialNumber()
529 …de OsAccountManagerService::GetSerialNumberByOsAccountLocalId(const int &id, int64_t &serialNumber) in GetSerialNumberByOsAccountLocalId() argument
535 return innerManager_->GetSerialNumberByOsAccountLocalId(id, serialNumber); in GetSerialNumberByOsAccountLocalId()
654 int64_t &serialNumber) in GetSerialNumberFromDatabase() argument
656 return innerManager_->GetSerialNumberFromDatabase(storeID, serialNumber); in GetSerialNumberFromDatabase()
721 int64_t serialNumber = osAccountInfo.GetSerialNumber(); in DumpStateByAccounts() local
722 state.emplace_back(DUMP_TAB_CHARACTER + "Serial Number: " + std::to_string(serialNumber)); in DumpStateByAccounts()
Dinner_os_account_manager.cpp58 int64_t serialNumber = in CreateBaseAdminAccount() local
61 … Constants::ADMIN_LOCAL_ID, Constants::ADMIN_LOCAL_NAME, OsAccountType::ADMIN, serialNumber); in CreateBaseAdminAccount()
78 int64_t serialNumber = 0; in CreateBaseStandardAccount() local
79 osAccountControl_->GetSerialNumber(serialNumber); in CreateBaseStandardAccount()
81 … Constants::START_USER_ID, Constants::STANDARD_LOCAL_NAME, OsAccountType::ADMIN, serialNumber); in CreateBaseStandardAccount()
275 int64_t serialNumber; in PrepareOsAccountInfo() local
276 ErrCode errCode = osAccountControl_->GetSerialNumber(serialNumber); in PrepareOsAccountInfo()
294 osAccountInfo = OsAccountInfo(id, name, type, serialNumber); in PrepareOsAccountInfo()
1232 ErrCode IInnerOsAccountManager::GetOsAccountLocalIdBySerialNumber(const int64_t serialNumber, int &… in GetOsAccountLocalIdBySerialNumber() argument
1234 if (serialNumber == in GetOsAccountLocalIdBySerialNumber()
[all …]
Dos_account_control_file_manager.cpp695 ErrCode OsAccountControlFileManager::GetSerialNumber(int64_t &serialNumber) in GetSerialNumber() argument
705 serialNumber, in GetSerialNumber()
707 if (serialNumber == Constants::CARRY_NUM) { in GetSerialNumber()
709 serialNumber = Constants::SERIAL_NUMBER_NUM_START; in GetSerialNumber()
723 while (serialNumber < Constants::CARRY_NUM) { in GetSerialNumber()
727 … Constants::SERIAL_NUMBER_NUM_START_FOR_ADMIN * Constants::CARRY_NUM + serialNumber) { in GetSerialNumber()
735 serialNumber++; in GetSerialNumber()
736serialNumber = (serialNumber == Constants::CARRY_NUM) ? Constants::SERIAL_NUMBER_NUM_START : seria… in GetSerialNumber()
739 accountListJson[Constants::SERIAL_NUMBER_NUM] = serialNumber + 1; in GetSerialNumber()
743serialNumber = serialNumber + Constants::SERIAL_NUMBER_NUM_START_FOR_ADMIN * Constants::CARRY_NUM; in GetSerialNumber()
[all …]
/base/account/os_account/frameworks/osaccount/core/test/unittest/
Dos_account_mock_test.cpp415 int64_t serialNumber; variable
417 g_osAccount->GetSerialNumberByOsAccountLocalId(MAIN_ACCOUNT_ID, serialNumber));
546 int64_t serialNumber; variable
548 g_osAccount->GetSerialNumberFromDatabase(storeID, serialNumber));

123