Home
last modified time | relevance | path

Searched refs:suffix (Results 1 – 15 of 15) sorted by relevance

/drivers/hdf_core/framework/tools/hdi-gen/util/
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()
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/partitionslot/hal/src/
Dpartitionslot_manager.cpp49 int32_t PartitionSlotManager::GetSlotSuffix(int32_t slot, std::string& suffix) in GetSlotSuffix() argument
53 suffix = "_b"; in GetSlotSuffix()
55 suffix = "_a"; in GetSlotSuffix()
57 HILOG_INFO(LOG_CORE, "suffix is %{public}s", suffix.c_str()); in GetSlotSuffix()
/drivers/peripheral/partitionslot/hdi_service/src/
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/
Dhdf_partitionslot_test.cpp67 std::string suffix = ""; variable
71 ASSERT_TRUE(partitionslot->GetSlotSuffix(slot, suffix) == 0);
/drivers/interface/partitionslot/v1_0/
DIPartitionSlot.idl60 * @brief Obtains slot suffix string from slot id
63 * @param suffix slot suffix string.
69 GetSlotSuffix([in] int slot, [out] String suffix);
/drivers/peripheral/partitionslot/hdi_service/include/
Dpartitionslot_impl.h29 int32_t GetSlotSuffix(int32_t slot, std::string& suffix) override;
/drivers/peripheral/partitionslot/hal/include/
Dpartitionslot_manager.h31 int32_t GetSlotSuffix(int32_t slot, std::string& suffix);
/drivers/peripheral/pin_auth/hdi_service/database/src/
Dpin_db.c55 static ResultCode GenerateFileName(uint64_t templateId, const char *prefix, const char *suffix, in GenerateFileName() argument
76 …if (CopyDataToBuf((uint8_t *)suffix, strlen(suffix), (uint8_t **)&buf, &bufLen) != RESULT_SUCCESS)… in GenerateFileName()
90 …ic ResultCode ReadPinFile(uint8_t *data, uint32_t dataLen, uint64_t templateId, const char *suffix) in ReadPinFile() argument
99 …ResultCode ret = GenerateFileName(templateId, DEFAULT_FILE_HEAD, suffix, fileName, MAX_FILE_NAME_L… in ReadPinFile()
114 …ltCode WritePinFile(const uint8_t *data, uint32_t dataLen, uint64_t templateId, const char *suffix) in WritePinFile() argument
123 …ResultCode ret = GenerateFileName(templateId, DEFAULT_FILE_HEAD, suffix, fileName, MAX_FILE_NAME_L… in WritePinFile()
309 static ResultCode RemovePinFile(const uint64_t templateId, const char *suffix, bool needCover) in RemovePinFile() argument
317 …ResultCode ret = GenerateFileName(templateId, DEFAULT_FILE_HEAD, suffix, fileName, MAX_FILE_NAME_L… in RemovePinFile()
/drivers/peripheral/camera/test/hdi/v1_0/include/
Dut_common.h67 int32_t DumpImageFile(int streamId, std::string suffix, const void* buffer, int32_t size);
/drivers/peripheral/camera/test/benchmarktest/v1_0/src/
Dbenchmark_common.cpp31 int32_t Test::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/hdi/v1_0/src/
Dut_common.cpp31 int32_t Test::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/benchmarktest/v1_1/src/
Dbenchmark_common.cpp31 int32_t Test::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/hdi/v1_1/include/
Dhdi_common_v1_1.h74 int32_t DumpImageFile(int streamId, std::string suffix, const void* buffer, int32_t size);
/drivers/peripheral/camera/test/hdi/v1_1/src/
Dhdi_common_v1_1.cpp31 int32_t Test::DumpImageFile(int streamId, std::string suffix, const void* buffer, int32_t size) in DumpImageFile() argument
49 streamId, GetCurrentLocalTimeStamp(), suffix.c_str()); in DumpImageFile()