Home
last modified time | relevance | path

Searched refs:string_view (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/services/incremental/
Dpath.h29 CStrWrapper(std::string_view sv);
44 void append_next_path(std::string& res, std::string_view c);
58 bool operator()(std::string_view l, std::string_view r) const;
66 inline details::CStrWrapper c_str(std::string_view sv) { in c_str()
70 std::string_view relativize(std::string_view parent, std::string_view nested);
71 inline std::string_view relativize(const char* parent, const char* nested) { in relativize()
72 return relativize(std::string_view(parent), std::string_view(nested)); in relativize()
74 inline std::string_view relativize(std::string_view parent, const char* nested) { in relativize()
75 return relativize(parent, std::string_view(nested)); in relativize()
77 inline std::string_view relativize(const char* parent, std::string_view nested) { in relativize()
[all …]
Dpath.cpp42 bool PathLess::operator()(std::string_view l, std::string_view r) const { in operator ()()
47 static void preparePathComponent(std::string_view& path, bool trimFront) { in preparePathComponent()
58 void details::append_next_path(std::string& target, std::string_view path) { in append_next_path()
69 std::string_view relativize(std::string_view parent, std::string_view nested) { in relativize()
86 bool isAbsolute(std::string_view path) { in isAbsolute()
90 std::string normalize(std::string_view path) { in normalize()
137 std::string_view basename(std::string_view path) { in basename()
155 std::string_view dirname(std::string_view path) { in dirname()
172 details::CStrWrapper::CStrWrapper(std::string_view sv) { in CStrWrapper()
181 std::optional<bool> isEmptyDir(std::string_view dir) { in isEmptyDir()
[all …]
DIncrementalService.h71 explicit IncrementalService(ServiceManagerWrapper&& sm, std::string_view rootDir);
110 StorageId createStorage(std::string_view mountPoint,
115 StorageId createLinkedStorage(std::string_view mountPoint, StorageId linkedStorage,
117 StorageId openStorage(std::string_view path);
119 int bind(StorageId storage, std::string_view source, std::string_view target, BindKind kind);
120 int unbind(StorageId storage, std::string_view target);
126 int makeFile(StorageId storage, std::string_view path, int mode, FileId id,
128 int makeDir(StorageId storage, std::string_view path, int mode = 0755);
129 int makeDirs(StorageId storage, std::string_view path, int mode = 0755);
131 int link(StorageId sourceStorageId, std::string_view oldPath, StorageId destStorageId,
[all …]
DServiceWrappers.h80 std::function<void(std::string_view root, std::string_view backingDir,
81 std::span<std::pair<std::string_view, std::string_view>> binds)>;
85 virtual Control openMount(std::string_view path) const = 0;
87 virtual ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId id,
89 virtual ErrorCode makeDir(const Control& control, std::string_view path, int mode) const = 0;
90 virtual ErrorCode makeDirs(const Control& control, std::string_view path, int mode) const = 0;
92 virtual incfs::RawMetadata getMetadata(const Control& control, std::string_view path) const = 0;
93 virtual FileId getFileId(const Control& control, std::string_view path) const = 0;
94 virtual ErrorCode link(const Control& control, std::string_view from,
95 std::string_view to) const = 0;
[all …]
DServiceWrappers.cpp145 Control openMount(std::string_view path) const final { return incfs::open(path); } in openMount()
149 ErrorCode makeFile(const Control& control, std::string_view path, int mode, FileId id, in makeFile()
153 ErrorCode makeDir(const Control& control, std::string_view path, int mode) const final { in makeDir()
156 ErrorCode makeDirs(const Control& control, std::string_view path, int mode) const final { in makeDirs()
162 incfs::RawMetadata getMetadata(const Control& control, std::string_view path) const final { in getMetadata()
165 FileId getFileId(const Control& control, std::string_view path) const final { in getFileId()
168 ErrorCode link(const Control& control, std::string_view from, std::string_view to) const final { in link()
171 ErrorCode unlink(const Control& control, std::string_view path) const final { in unlink()
272 sp<INTERFACE> RealServiceManager::getRealService(std::string_view serviceName) const { in getRealService()
DIncrementalService.cpp76 bool mkdirOrLog(std::string_view name, int mode = 0770, bool allowExisting = true) { in mkdirOrLog()
97 static std::string toMountKey(std::string_view path) { in toMountKey()
116 static std::pair<std::string, std::string> makeMountDir(std::string_view incrementalDir, in makeMountDir()
117 std::string_view path) { in makeMountDir()
131 typename Map::const_iterator findParentPath(const Map& map, std::string_view path) { in findParentPath()
150 std::string_view path) { in parseFromIncfs()
156 static bool isValidMountTarget(std::string_view path) { in isValidMountTarget()
177 static bool checkReadLogsDisabledMarker(std::string_view root) { in checkReadLogsDisabledMarker()
232 static auto openDir(std::string_view dir) { in openDir()
265 void IncrementalService::IncFsMount::cleanupFilesystem(std::string_view root) { in cleanupFilesystem()
[all …]
/frameworks/native/services/surfaceflinger/EventLog/
DEventLog.h30 static void logFrameDurations(const std::string_view& name, const int32_t* durations,
59 void writeString(const std::string_view&);
69 void doLogFrameDurations(const std::string_view& name, const int32_t* durations,
DEventLog.cpp35 void EventLog::doLogFrameDurations(const std::string_view& name, const int32_t* durations, in doLogFrameDurations()
47 void EventLog::logFrameDurations(const std::string_view& name, const int32_t* durations, in logFrameDurations()
116 void EventLog::TagBuffer::writeString(const std::string_view& value) { in writeString()
/frameworks/native/libs/adbd_auth/
Dadbd_auth.cpp182 void HandlePacket(std::string_view packet) EXCLUDES(mutex_) { in HandlePacket()
206 void AllowUsbDevice(std::string_view buf) EXCLUDES(mutex_) { in AllowUsbDevice()
227 void DenyUsbDevice(std::string_view buf) EXCLUDES(mutex_) { in DenyUsbDevice()
235 void KeyRemoved(std::string_view buf) EXCLUDES(mutex_) { in KeyRemoved()
373 HandlePacket(std::string_view(buf, rc)); in Run()
411 uint64_t PromptUser(std::string_view public_key, void* arg) EXCLUDES(mutex_) { in PromptUser()
421 uint64_t NotifyAuthenticated(std::string_view public_key) EXCLUDES(mutex_) { in NotifyAuthenticated()
442 std::string_view public_key) EXCLUDES(mutex_) { in NotifyTlsDeviceConnected()
516 using FrameworkHandlerCb = std::function<void(std::string_view)>;
549 return ctx->NotifyAuthenticated(std::string_view(public_key, len)); in adbd_auth_notify_auth()
[all …]
/frameworks/native/services/surfaceflinger/DisplayHardware/
DDisplayIdentification.cpp52 std::string_view parseEdidText(const byte_view& view) { in parseEdidText()
53 std::string_view text(reinterpret_cast<const char*>(view.data()), view.size()); in parseEdidText()
235 std::string_view displayName; in parseEdid()
236 std::string_view serialNumber; in parseEdid()
237 std::string_view asciiText; in parseEdid()
268 std::string_view modelString = displayName; in parseEdid()
285 const auto modelHash = static_cast<uint32_t>(std::hash<std::string_view>()(modelString)); in parseEdid()
DDisplayIdentification.h88 std::string_view displayName;
/frameworks/native/services/surfaceflinger/
DFrameTracker.h87 void logAndResetStats(const std::string_view& name);
123 void logStatsLocked(const std::string_view& name) const;
DFrameTracker.cpp145 void FrameTracker::logAndResetStats(const std::string_view& name) { in logAndResetStats()
223 void FrameTracker::logStatsLocked(const std::string_view& name) const { in logStatsLocked()
/frameworks/base/services/incremental/test/
DIncrementalServiceTest.cpp272 MOCK_CONST_METHOD1(openMount, Control(std::string_view path));
275 ErrorCode(const Control& control, std::string_view path, int mode, FileId id,
277 MOCK_CONST_METHOD3(makeDir, ErrorCode(const Control& control, std::string_view path, int mode));
279 ErrorCode(const Control& control, std::string_view path, int mode));
281 MOCK_CONST_METHOD2(getMetadata, RawMetadata(const Control& control, std::string_view path));
282 MOCK_CONST_METHOD2(getFileId, FileId(const Control& control, std::string_view path));
284 … ErrorCode(const Control& control, std::string_view from, std::string_view to));
285 MOCK_CONST_METHOD2(unlink, ErrorCode(const Control& control, std::string_view path));
317 Control openMountForHealth(std::string_view) { in openMountForHealth() argument
321 RawMetadata getMountInfoMetadata(const Control& control, std::string_view path) { in getMountInfoMetadata()
[all …]
/frameworks/compile/libbcc/lib/
DRSStubsWhiteList.cpp21 std::array<std::string_view, 2328> stubList = {
DRSStubsWhiteList.h26 extern std::array<std::string_view, 2328> stubList;
/frameworks/native/cmds/cmd/
Dcmd.h29 int cmdMain(const std::vector<std::string_view>& argv, android::TextOutput& outputLog,
Dmain.cpp24 std::vector<std::string_view> arguments; in main()
/frameworks/native/services/surfaceflinger/Scheduler/
DVSyncDispatchTimerQueue.h43 std::string_view name() const;
166 void note(std::string_view name, nsecs_t in, nsecs_t vs);
DVSyncDispatchTimerQueue.cpp46 std::string_view VSyncDispatchTimerQueueEntry::name() const { in name()
194 void VSyncDispatchTimerQueue::TraceBuffer::note(std::string_view name, nsecs_t alarmIn, in note()
208 std::optional<std::string_view> nextWakeupName; in rearmTimerSkippingUpdateFor()
/frameworks/ml/nn/runtime/test/android_fuzzing/
DGenerateCorpus.cpp74 const std::string_view view(ptr, size); in getHashValue()
75 const size_t value = std::hash<std::string_view>{}(view); in getHashValue()
/frameworks/ml/nn/runtime/test/
DTestCompilationCaching.cpp143 CachingDriver(std::string_view name, ErrorStatus errorStatusGetNumCacheFiles, in CachingDriver()
285 void getDeviceWithName(std::string_view deviceName, const ANeuralNetworksDevice** outputDevice) { in getDeviceWithName()
314 static constexpr std::string_view kDeviceName = "deviceTestCompilationCaching";
394 static constexpr std::string_view kDeviceName = "deviceTestCompilationCaching";
/frameworks/av/services/audiopolicy/service/
DBinderProxy.h44 explicit BinderProxy(std::string_view serviceName) in BinderProxy()
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.h34 std::string_view filePath, int ttcIndex,
/frameworks/native/cmds/idlcli/
Dutils.h101 mArgs.emplace_back(std::string_view(argv[argi])); in Args()
141 std::vector<std::string_view> mArgs;

12