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.cpp50 static char serialNumber[MAX_SERIAL_LEN] = {0}; in AclGetSerial() local
56 ret = strcpy_s(serialNumber, sizeof(serialNumber), result.c_str()); in AclGetSerial()
62 int ret = strcpy_s(serialNumber, sizeof(serialNumber), tmpSerial); in AclGetSerial()
66 return serialNumber; in AclGetSerial()
Ddevice_info_stub.cpp99 const char *serialNumber = GetSerial_(); in OnRemoteRequest() local
100 DINFO_CHECK(serialNumber != nullptr, break, "Failed to get serialNumber"); in OnRemoteRequest()
101 reply.WriteString16(Str8ToStr16(serialNumber)); in OnRemoteRequest()
/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/test/fuzztest/osaccount_stub/getosaccountlocalidbyserialnumberstub_fuzzer/
Dgetosaccountlocalidbyserialnumberstub_fuzzer.cpp38 int64_t serialNumber = static_cast<int64_t>(size); in GetOsAccountLocalIdBySerialNumberStubFuzzTest() local
39 if (!datas.WriteInt64(serialNumber)) { in GetOsAccountLocalIdBySerialNumberStubFuzzTest()
/base/account/os_account/interfaces/innerkits/osaccount/native/include/
Dos_account_info.h54 … OsAccountInfo(int localId, const std::string localName, OsAccountType type, int64_t serialNumber);
57 int64_t serialNumber);
111 void SetSerialNumber(const int64_t serialNumber);
Dos_account_manager.h376 static ErrCode GetOsAccountLocalIdBySerialNumber(const int64_t serialNumber, int &id);
384 static ErrCode GetSerialNumberByOsAccountLocalId(const int &id, int64_t &serialNumber);
450 static ErrCode GetSerialNumberFromDatabase(const std::string& storeID, int64_t &serialNumber);
/base/account/os_account/frameworks/osaccount/native/src/
Dos_account_manager.cpp216 ErrCode OsAccountManager::GetOsAccountLocalIdBySerialNumber(const int64_t serialNumber, int &id) in GetOsAccountLocalIdBySerialNumber() argument
218 return OsAccount::GetInstance().GetOsAccountLocalIdBySerialNumber(serialNumber, id); in GetOsAccountLocalIdBySerialNumber()
221 ErrCode OsAccountManager::GetSerialNumberByOsAccountLocalId(const int &id, int64_t &serialNumber) in GetSerialNumberByOsAccountLocalId() argument
223 return OsAccount::GetInstance().GetSerialNumberByOsAccountLocalId(id, serialNumber); in GetSerialNumberByOsAccountLocalId()
266 …de OsAccountManager::GetSerialNumberFromDatabase(const std::string& storeID, int64_t &serialNumber) in GetSerialNumberFromDatabase() argument
268 return OsAccount::GetInstance().GetSerialNumberFromDatabase(storeID, serialNumber); in GetSerialNumberFromDatabase()
Dos_account_info.cpp49 …::OsAccountInfo(int localId, const std::string localName, OsAccountType type, int64_t serialNumber) in OsAccountInfo() argument
50 : localId_(localId), localName_(localName), type_(type), serialNumber_(serialNumber) in OsAccountInfo()
54 int64_t serialNumber) in OsAccountInfo() argument
55 …d_(localId), localName_(localName), shortName_(shortName), type_(type), serialNumber_(serialNumber) in OsAccountInfo()
319 void OsAccountInfo::SetSerialNumber(const int64_t serialNumber) in SetSerialNumber() argument
321 serialNumber_ = serialNumber; in SetSerialNumber()
/base/security/certificate_framework/interfaces/innerkits/certificate/
Dx509_cert_match_parameters.h32 CfBlob *serialNumber; member
/base/usb/usb_manager/services/native/include/
Dusb_serial_reader.h27 …erialReader(SystemAbility *systemAbility, UsbRightManager *rightManager, std::string serialNumber);
/base/startup/init/test/unittest/deviceinfo/
DDeviceInfoUnittest.cpp200 const char *serialNumber = AclGetSerial(); variable
201 EXPECT_NE(nullptr, serialNumber);
220 const char *serialNumber = AclGetSerial(); variable
221 EXPECT_NE(nullptr, serialNumber);
/base/account/os_account/services/accountmgr/include/osaccount/
Diinner_os_account.h62 virtual ErrCode GetOsAccountLocalIdBySerialNumber(const int64_t serialNumber, int &id) = 0;
63 virtual ErrCode GetSerialNumberByOsAccountLocalId(const int &id, int64_t &serialNumber) = 0;
76 …virtual ErrCode GetSerialNumberFromDatabase(const std::string& storeID, int64_t &serialNumber) = 0;
Dos_account_manager_service.h84 ErrCode GetOsAccountLocalIdBySerialNumber(const int64_t serialNumber, int &id) override;
85 ErrCode GetSerialNumberByOsAccountLocalId(const int &id, int64_t &serialNumber) override;
104 int64_t &serialNumber) override;
Dos_account_database_operator.h37 ErrCode GetSerialNumberFromDatabase(const std::string &storeID, int64_t &serialNumber);
Dios_account_control.h32 virtual ErrCode GetSerialNumber(int64_t &serialNumber) = 0;
45 int64_t &serialNumber) = 0;
/base/account/os_account/frameworks/osaccount/core/include/
Dos_account.h64 ErrCode GetOsAccountLocalIdBySerialNumber(const int64_t serialNumber, int &id);
65 ErrCode GetSerialNumberByOsAccountLocalId(const int &id, int64_t &serialNumber);
75 ErrCode GetSerialNumberFromDatabase(const std::string& storeID, int64_t &serialNumber);
Dios_account.h71 virtual ErrCode GetOsAccountLocalIdBySerialNumber(const int64_t serialNumber, int &id) = 0;
72 virtual ErrCode GetSerialNumberByOsAccountLocalId(const int &id, int64_t &serialNumber) = 0;
86 …virtual ErrCode GetSerialNumberFromDatabase(const std::string& storeID, int64_t &serialNumber) = 0;
Dos_account_proxy.h65 ErrCode GetOsAccountLocalIdBySerialNumber(const int64_t serialNumber, int &id) override;
66 ErrCode GetSerialNumberByOsAccountLocalId(const int &id, int64_t &serialNumber) override;
80 ErrCode GetSerialNumberFromDatabase(const std::string& storeID, int64_t &serialNumber) override;
/base/account/os_account/services/accountmgr/test/unittest/os_account/
Dos_account_control_file_manager_test.cpp416 int64_t serialNumber = -1; variable
417 ret = g_controlManager->GetSerialNumberFromDatabase(storeID_, serialNumber);
419 EXPECT_NE(serialNumber, -1);
460 int64_t serialNumber = -1; variable
461 ret = g_controlManager->GetSerialNumberFromDatabase(storeID_, serialNumber);
463 EXPECT_NE(serialNumber, -1);
468 EXPECT_EQ(serialNumber, serialNumberByDefault);
/base/account/os_account/services/accountmgr/src/osaccount/
Dinner_os_account_manager.cpp77 int64_t serialNumber = in CreateBaseAdminAccount() local
80 … Constants::ADMIN_LOCAL_ID, Constants::ADMIN_LOCAL_NAME, OsAccountType::ADMIN, serialNumber); in CreateBaseAdminAccount()
101 int64_t serialNumber = 0; in CreateBaseStandardAccount() local
102 osAccountControl_->GetSerialNumber(serialNumber); in CreateBaseStandardAccount()
105 Constants::STANDARD_LOCAL_NAME, OsAccountType::ADMIN, serialNumber); in CreateBaseStandardAccount()
107 … OsAccountInfo osAccountInfo(Constants::START_USER_ID, "", OsAccountType::ADMIN, serialNumber); in CreateBaseStandardAccount()
252 int64_t serialNumber; in RetryToGetAccount() local
253 ErrCode errCode = osAccountControl_->GetSerialNumber(serialNumber); in RetryToGetAccount()
277 osAccountInfo = OsAccountInfo(id, localName, shortName, type, serialNumber); in RetryToGetAccount()
279 osAccountInfo = OsAccountInfo(id, localName, type, serialNumber); in RetryToGetAccount()
[all …]
Dos_account_manager_service.cpp605 ErrCode OsAccountManagerService::GetOsAccountLocalIdBySerialNumber(const int64_t serialNumber, int … in GetOsAccountLocalIdBySerialNumber() argument
607 return innerManager_.GetOsAccountLocalIdBySerialNumber(serialNumber, id); in GetOsAccountLocalIdBySerialNumber()
610 …de OsAccountManagerService::GetSerialNumberByOsAccountLocalId(const int &id, int64_t &serialNumber) in GetSerialNumberByOsAccountLocalId() argument
616 return innerManager_.GetSerialNumberByOsAccountLocalId(id, serialNumber); in GetSerialNumberByOsAccountLocalId()
735 int64_t &serialNumber) in GetSerialNumberFromDatabase() argument
737 return innerManager_.GetSerialNumberFromDatabase(storeID, serialNumber); in GetSerialNumberFromDatabase()
801 int64_t serialNumber = osAccountInfo.GetSerialNumber(); in DumpStateByAccounts() local
802 state.emplace_back(DUMP_TAB_CHARACTER + "Serial Number: " + std::to_string(serialNumber)); in DumpStateByAccounts()
Dos_account_control_file_manager.cpp971 …l AccountExistsWithSerialNumber(const std::vector<OsAccountInfo>& osAccountInfos, int serialNumber) in AccountExistsWithSerialNumber() argument
975 Constants::SERIAL_NUMBER_NUM_START_FOR_ADMIN * Constants::CARRY_NUM + serialNumber) { in AccountExistsWithSerialNumber()
982 ErrCode OsAccountControlFileManager::GetSerialNumber(int64_t &serialNumber) in GetSerialNumber() argument
992 serialNumber, OHOS::AccountSA::JsonType::NUMBER); in GetSerialNumber()
993 if (serialNumber == Constants::CARRY_NUM) { in GetSerialNumber()
995 serialNumber = Constants::SERIAL_NUMBER_NUM_START; in GetSerialNumber()
1007 while (serialNumber < Constants::CARRY_NUM) { in GetSerialNumber()
1009 exists = AccountExistsWithSerialNumber(osAccountInfos, serialNumber); in GetSerialNumber()
1013 serialNumber++; in GetSerialNumber()
1014serialNumber = (serialNumber == Constants::CARRY_NUM) ? Constants::SERIAL_NUMBER_NUM_START : seria… in GetSerialNumber()
[all …]
/base/account/os_account/services/accountmgr/test/unittest/os_account/mock/
Dmock_os_account_control_file_manager.h38 MOCK_METHOD1(GetSerialNumber, ErrCode(int64_t &serialNumber));
69 int64_t &serialNumber) { return ERR_OK; } in GetSerialNumberFromDatabase() argument
/base/account/os_account/frameworks/osaccount/core/test/unittest/
Dos_account_mock_test.cpp427 int64_t serialNumber; variable
429 g_osAccount->GetSerialNumberByOsAccountLocalId(MAIN_ACCOUNT_ID, serialNumber));
558 int64_t serialNumber; variable
560 g_osAccount->GetSerialNumberFromDatabase(storeID, serialNumber));
/base/security/certificate_framework/frameworks/adapter/v1.0/src/
Dx509_crl_entry_openssl.c96 const ASN1_INTEGER *serialNumber = X509_REVOKED_get0_serialNumber(rev); in GetSerialNumber() local
97 if (serialNumber == NULL) { in GetSerialNumber()
104 int serialNumLen = i2d_ASN1_INTEGER((ASN1_INTEGER *)serialNumber, &serialNumBytes); in GetSerialNumber()

123