/base/startup/init/device_info/ |
D | device_info.cpp | 50 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()
|
D | device_info_stub.cpp | 99 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/ |
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/test/fuzztest/osaccount_stub/getosaccountlocalidbyserialnumberstub_fuzzer/ |
D | getosaccountlocalidbyserialnumberstub_fuzzer.cpp | 38 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/ |
D | os_account_info.h | 54 … OsAccountInfo(int localId, const std::string localName, OsAccountType type, int64_t serialNumber); 57 int64_t serialNumber); 111 void SetSerialNumber(const int64_t serialNumber);
|
D | os_account_manager.h | 376 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/ |
D | os_account_manager.cpp | 216 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()
|
D | os_account_info.cpp | 49 …::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/ |
D | x509_cert_match_parameters.h | 32 CfBlob *serialNumber; member
|
/base/usb/usb_manager/services/native/include/ |
D | usb_serial_reader.h | 27 …erialReader(SystemAbility *systemAbility, UsbRightManager *rightManager, std::string serialNumber);
|
/base/startup/init/test/unittest/deviceinfo/ |
D | DeviceInfoUnittest.cpp | 200 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/ |
D | iinner_os_account.h | 62 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;
|
D | os_account_manager_service.h | 84 ErrCode GetOsAccountLocalIdBySerialNumber(const int64_t serialNumber, int &id) override; 85 ErrCode GetSerialNumberByOsAccountLocalId(const int &id, int64_t &serialNumber) override; 104 int64_t &serialNumber) override;
|
D | os_account_database_operator.h | 37 ErrCode GetSerialNumberFromDatabase(const std::string &storeID, int64_t &serialNumber);
|
D | ios_account_control.h | 32 virtual ErrCode GetSerialNumber(int64_t &serialNumber) = 0; 45 int64_t &serialNumber) = 0;
|
/base/account/os_account/frameworks/osaccount/core/include/ |
D | os_account.h | 64 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);
|
D | ios_account.h | 71 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;
|
D | os_account_proxy.h | 65 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/ |
D | os_account_control_file_manager_test.cpp | 416 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/ |
D | inner_os_account_manager.cpp | 77 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 …]
|
D | os_account_manager_service.cpp | 605 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()
|
D | os_account_control_file_manager.cpp | 971 …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() 1014 …serialNumber = (serialNumber == Constants::CARRY_NUM) ? Constants::SERIAL_NUMBER_NUM_START : seria… in GetSerialNumber() [all …]
|
/base/account/os_account/services/accountmgr/test/unittest/os_account/mock/ |
D | mock_os_account_control_file_manager.h | 38 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/ |
D | os_account_mock_test.cpp | 427 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/ |
D | x509_crl_entry_openssl.c | 96 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()
|