/drivers/peripheral/pin_auth/hdi_service/database/src/ |
H A D | pin_db_ops_base.c | 61 ResultCode GenerateFileName(uint64_t templateId, const char *prefix, const char *suffix, in GenerateFileName() argument 64 if (prefix == NULL || suffix == NULL || fileName == NULL) { in GenerateFileName() 88 if (GetBufFromData((uint8_t *)suffix, strlen(suffix), (uint8_t **)&buf, &bufLen) != RESULT_SUCCESS) { in GenerateFileName() 89 LOG_ERROR("copy suffix fail."); in GenerateFileName() 102 ResultCode ReadPinFile(uint8_t *data, uint32_t dataLen, uint64_t templateId, const char *suffix) in ReadPinFile() argument 104 if (data == NULL || suffix == NULL) { in ReadPinFile() 115 ResultCode ret = GenerateFileName(templateId, DEFAULT_FILE_HEAD, suffix, fileName, MAX_FILE_NAME_LEN); in ReadPinFile() 130 ResultCode WritePinFile(const uint8_t *data, uint32_t dataLen, uint64_t templateId, const char *suffix) in WritePinFile() argument 132 if (data == NULL || suffix in WritePinFile() [all...] |
H A D | pin_db.c | 113 static ResultCode RemovePinFile(const uint64_t templateId, const char *suffix, bool needCover) in RemovePinFile() argument 121 ResultCode ret = GenerateFileName(templateId, DEFAULT_FILE_HEAD, suffix, fileName, MAX_FILE_NAME_LEN); in RemovePinFile()
|
/drivers/peripheral/pin_auth/test/unittest/pin_auth/database/src/ |
H A D | pin_db_ops_base_test.cpp | 114 const char *suffix = "we"; in HWTEST_F() local 117 ResultCode result = GenerateFileName(templateId, nullptr, suffix, fileName, fileNameLen); in HWTEST_F() 123 result = GenerateFileName(templateId, prefix, suffix, nullptr, fileNameLen); in HWTEST_F() 126 result = GenerateFileName(templateId, prefix, suffix, fileName, fileNameLen); in HWTEST_F() 141 const char *suffix = "test"; in HWTEST_F() local 142 ResultCode result = ReadPinFile(nullptr, dataLen, 1, suffix); in HWTEST_F() 148 result = ReadPinFile(data, dataLen, 1, suffix); in HWTEST_F()
|
/drivers/peripheral/pin_auth/hdi_service/database/inc/ |
H A D | pin_db_ops_base.h | 37 ResultCode GenerateFileName(uint64_t templateId, const char *prefix, const char *suffix, 39 ResultCode ReadPinFile(uint8_t *data, uint32_t dataLen, uint64_t templateId, const char *suffix); 40 ResultCode WritePinFile(const uint8_t *data, uint32_t dataLen, uint64_t templateId, const char *suffix);
|
/drivers/hdf_core/framework/tools/hdi-gen/util/ |
H A D | string_helper.cpp | 57 bool StringHelper::EndWith(const std::string &value, char suffix)
in EndWith() argument 62 return value.back() == suffix;
in EndWith() 65 bool StringHelper::EndWith(const std::string &value, const std::string &suffix)
in EndWith() argument 67 size_t index = value.rfind(suffix);
in EndWith() 72 return index + suffix.size() == value.size();
in EndWith() 110 std::string suffix = value.substr(position);
in Replace() local 111 return prefix + Replace(suffix, substr, newstr);
in Replace() 121 std::string suffix = value.substr(position);
in Replace() local 122 return prefix + newStr + suffix;
in Replace()
|
H A D | string_helper.h | 26 static bool EndWith(const std::string &value, char suffix);
28 static bool EndWith(const std::string &value, const std::string &suffix);
|
/drivers/peripheral/nfc/vendor_adaptor/ |
H A D | nfc_vendor_adaptions.cpp | 86 string suffix = DEFAULT_FUNC_NAME_SUFFIX;
in GetNfcHalFuncNameSuffix() local 88 suffix = string(nfcExtInf.getNfcHalFuncNameSuffix(chipType.c_str()));
in GetNfcHalFuncNameSuffix() 90 return suffix;
in GetNfcHalFuncNameSuffix() 112 int8_t NfcVendorAdaptions::InitNfcHalInterfaces(string nfcHalSoName, string suffix)
in InitNfcHalInterfaces() argument 120 suffix = DEFAULT_FUNC_NAME_SUFFIX;
in InitNfcHalInterfaces() 129 (dlsym(nfcHalHandle, (HAL_OPEN_FUNC_NAME + suffix).c_str()));
in InitNfcHalInterfaces() 132 (dlsym(nfcHalHandle, (HAL_WRITE_FUNC_NAME + suffix).c_str()));
in InitNfcHalInterfaces() 135 (dlsym(nfcHalHandle, (HAL_CORE_INIT_FUNC_NAME + suffix).c_str()));
in InitNfcHalInterfaces() 138 (dlsym(nfcHalHandle, (HAL_PRE_DISC_FUNC_NAME + suffix).c_str()));
in InitNfcHalInterfaces() 141 (dlsym(nfcHalHandle, (HAL_CLOSE_FUNC_NAME + suffix) in InitNfcHalInterfaces() [all...] |
H A D | nfc_vendor_adaptions.h | 103 int8_t InitNfcHalInterfaces(std::string nfcHalSoName, std::string suffix);
|
/drivers/peripheral/partitionslot/hal/src/ |
H A D | partitionslot_manager.cpp | 53 int32_t PartitionSlotManager::GetSlotSuffix(int32_t slot, std::string& suffix) in GetSlotSuffix() argument 57 suffix = "_b"; in GetSlotSuffix() 59 suffix = "_a"; in GetSlotSuffix() 61 HILOG_INFO(LOG_CORE, "suffix is %{public}s", suffix.c_str()); in GetSlotSuffix()
|
/drivers/peripheral/partitionslot/hdi_service/src/ |
H A D | partitionslot_impl.cpp | 39 int32_t PartitionSlotImpl::GetSlotSuffix(int32_t slot, std::string& suffix) in GetSlotSuffix() argument 42 return PartitionSlotManager::GetInstance()->GetSlotSuffix(slot, suffix); in GetSlotSuffix()
|
/drivers/peripheral/partitionslot/test/unittest/ |
H A D | hdf_partitionslot_test.cpp | 66 std::cout << "begin get suffix by service" << std::endl; in HWTEST_F() 67 std::string suffix = ""; in HWTEST_F() local 71 ASSERT_TRUE(partitionslot->GetSlotSuffix(slot, suffix) == 0); in HWTEST_F()
|
/drivers/peripheral/partitionslot/hdi_service/include/ |
H A D | partitionslot_impl.h | 29 int32_t GetSlotSuffix(int32_t slot, std::string& suffix) override;
|
/drivers/peripheral/partitionslot/hal/include/ |
H A D | partitionslot_manager.h | 31 int32_t GetSlotSuffix(int32_t slot, std::string& suffix);
|
/drivers/hdf_core/framework/tools/hdi-gen/codegen/ |
H A D | code_emitter.cpp | 152 std::string suffix = fullName.substr(index + 1);
in InterfaceToFilePath() local 153 std::string fileName = prefix + (StringHelper::StartWith(suffix, "I") ? suffix.substr(1) : suffix) + "Proxy";
in InterfaceToFilePath()
|
/drivers/peripheral/nfc/test/unittest/mock/ |
H A D | mock.h | 43 int8_t InitNfcHalInterfaces(std::string nfcHalSoName, std::string suffix);
|
H A D | mock.cpp | 116 int8_t NfcVendorAdaptions::InitNfcHalInterfaces(std::string nfcHalSoName, std::string suffix) in InitNfcHalInterfaces() argument
|
/drivers/peripheral/camera/test/common/v1_0/src/ |
H A D | hdi_common.cpp | 31 int32_t HdiCommon::DumpImageFile(int streamId, std::string suffix, const void* buffer, int32_t size)
in DumpImageFile() argument 49 streamId, GetCurrentLocalTimeStamp(), suffix.c_str());
in DumpImageFile()
|
/drivers/peripheral/camera/test/common/v1_0/include/ |
H A D | hdi_common.h | 72 int32_t DumpImageFile(int streamId, std::string suffix, const void* buffer, int32_t size);
|
/drivers/peripheral/camera/test/ut/usb_camera/ |
H A D | usb_camera_test.cpp | 1734 void StoreFile(const unsigned char *bufStart, const uint32_t size, const char* suffix) in StoreFile() argument 1742 std::cout << "suffix = " << suffix << std::endl; in StoreFile() 1743 if (sprintf_s(path, sizeof(path), "%sfile_%d_%lld_%s", prefix, count++, start.tv_usec, suffix) < 0) { in StoreFile()
|