Lines Matching refs:UriHelper
26 constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, LOG_DOMAIN_PLAYER, "UriHelper"};
32 {"", UriHelper::UriType::URI_TYPE_FILE }, // empty uri head is treated as the file type uri.
33 {"file", UriHelper::UriType::URI_TYPE_FILE},
34 {"fd", UriHelper::UriType::URI_TYPE_FD},
35 {"http", UriHelper::UriType::URI_TYPE_HTTP}
113 UriHelper::UriHelper(const std::string_view &uri)
118 UriHelper::UriHelper(int32_t fd, int64_t offset, int64_t size) : fd_(dup(fd)), offset_(offset), size_(size)
123 UriHelper::~UriHelper()
131 void UriHelper::FormatMeForUri(const std::string_view &uri) noexcept
167 void UriHelper::FormatMeForFd() noexcept
169 MEDIA_LOGI("0x%{public}06" PRIXPTR " UriHelper FormatMeForFd fd is %{public}d", FAKE_POINTER(this), fd_);
176 bool UriHelper::CorrectFdParam()
200 uint8_t UriHelper::UriType() const
205 std::string UriHelper::FormattedUri() const
210 bool UriHelper::AccessCheck(uint8_t flag) const
230 bool UriHelper::ParseFdUri(std::string_view uri)
248 MEDIA_LOGI("UriHelper ParseFdUri try close fd, fd is %{public}d, Set fd: %{public}d", fd_, fd);
254 MEDIA_LOGI("UriHelper ParseFdUri dup, fd is %{public}d", fd_);