Home
last modified time | relevance | path

Searched refs:suffix (Results 1 - 19 of 19) sorted by relevance

/drivers/peripheral/pin_auth/hdi_service/database/src/
H A Dpin_db_ops_base.c61 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 Dpin_db.c113 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 Dpin_db_ops_base_test.cpp114 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 Dpin_db_ops_base.h37 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 Dstring_helper.cpp57 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 Dstring_helper.h26 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 Dnfc_vendor_adaptions.cpp86 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 Dnfc_vendor_adaptions.h103 int8_t InitNfcHalInterfaces(std::string nfcHalSoName, std::string suffix);
/drivers/peripheral/partitionslot/hal/src/
H A Dpartitionslot_manager.cpp53 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 Dpartitionslot_impl.cpp39 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 Dhdf_partitionslot_test.cpp66 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 Dpartitionslot_impl.h29 int32_t GetSlotSuffix(int32_t slot, std::string& suffix) override;
/drivers/peripheral/partitionslot/hal/include/
H A Dpartitionslot_manager.h31 int32_t GetSlotSuffix(int32_t slot, std::string& suffix);
/drivers/hdf_core/framework/tools/hdi-gen/codegen/
H A Dcode_emitter.cpp152 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 Dmock.h43 int8_t InitNfcHalInterfaces(std::string nfcHalSoName, std::string suffix);
H A Dmock.cpp116 int8_t NfcVendorAdaptions::InitNfcHalInterfaces(std::string nfcHalSoName, std::string suffix) in InitNfcHalInterfaces() argument
/drivers/peripheral/camera/test/common/v1_0/src/
H A Dhdi_common.cpp31 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 Dhdi_common.h72 int32_t DumpImageFile(int streamId, std::string suffix, const void* buffer, int32_t size);
/drivers/peripheral/camera/test/ut/usb_camera/
H A Dusb_camera_test.cpp1734 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()

Completed in 11 milliseconds