/base/startup/init/device_info/ |
D | device_info.cpp | 51 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()
|
D | device_info_stub.cpp | 59 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/ |
D | usb_serial_reader.cpp | 20 …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/ |
D | os_account_info.h | 66 … 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);
|
D | os_account_manager.h | 59 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/ |
D | DeviceInfoUnittest.cpp | 62 const char *serialNumber = AclGetSerial(); variable 63 EXPECT_NE(nullptr, serialNumber);
|
/base/account/os_account/frameworks/osaccount/native/src/ |
D | os_account_manager.cpp | 184 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()
|
D | os_account_info.cpp | 56 …::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/ |
D | fuzz_test_manager.cpp | 232 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/ |
D | usb_serial_reader.h | 27 …erialReader(SystemAbility *systemAbility, UsbRightManager *rightManager, std::string serialNumber);
|
/base/account/os_account/frameworks/osaccount/core/include/ |
D | os_account.h | 58 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);
|
D | ios_account.h | 64 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;
|
D | os_account_proxy.h | 60 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/ |
D | iinner_os_account.h | 55 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;
|
D | os_account_manager_service.h | 74 ErrCode GetOsAccountLocalIdBySerialNumber(const int64_t serialNumber, int &id) override; 75 ErrCode GetSerialNumberByOsAccountLocalId(const int &id, int64_t &serialNumber) override; 94 int64_t &serialNumber) override;
|
D | iinner_os_account_manager.h | 58 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;
|
D | ios_account_control.h | 31 virtual ErrCode GetSerialNumber(int64_t &serialNumber) = 0; 44 int64_t &serialNumber) = 0;
|
D | os_account_database_operator.h | 38 ErrCode GetSerialNumberFromDatabase(const std::string& storeID, int64_t &serialNumber);
|
/base/account/os_account/services/accountmgr/test/unittest/os_account/ |
D | os_account_control_file_manager_test.cpp | 403 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/ |
D | x509certificate_fuzzer.cpp | 79 long serialNumber = x509CertObj->getSerialNumber(x509CertObj); in TestQuery() local 80 if (serialNumber < 0) { in TestQuery()
|
/base/security/crypto_framework/plugin/openssl_plugin/certificate/src/ |
D | x509_crl_entry_openssl.c | 97 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/ |
D | os_account_manager_service.cpp | 524 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()
|
D | inner_os_account_manager.cpp | 58 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 …]
|
D | os_account_control_file_manager.cpp | 695 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() 736 …serialNumber = (serialNumber == Constants::CARRY_NUM) ? Constants::SERIAL_NUMBER_NUM_START : seria… in GetSerialNumber() 739 accountListJson[Constants::SERIAL_NUMBER_NUM] = serialNumber + 1; in GetSerialNumber() 743 … serialNumber = serialNumber + Constants::SERIAL_NUMBER_NUM_START_FOR_ADMIN * Constants::CARRY_NUM; in GetSerialNumber() [all …]
|
/base/account/os_account/frameworks/osaccount/core/test/unittest/ |
D | os_account_mock_test.cpp | 415 int64_t serialNumber; variable 417 g_osAccount->GetSerialNumberByOsAccountLocalId(MAIN_ACCOUNT_ID, serialNumber)); 546 int64_t serialNumber; variable 548 g_osAccount->GetSerialNumberFromDatabase(storeID, serialNumber));
|