Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
paths_android.cc
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "flutter/fml/platform/android/paths_android.h"
6
7#include "flutter/fml/file.h"
8
9namespace fml {
10namespace paths {
11
12std::pair<bool, std::string> GetExecutablePath() {
13 return {false, ""};
14}
15
16static std::string gCachesPath;
17
18void InitializeAndroidCachesPath(std::string caches_path) {
19 gCachesPath = std::move(caches_path);
20}
21
23 // If the caches path is not initialized, the FD will be invalid and caching
24 // will be disabled throughout the system.
26}
27
28} // namespace paths
29} // namespace fml
void InitializeAndroidCachesPath(std::string caches_path)
std::pair< bool, std::string > GetExecutablePath()
fml::UniqueFD GetCachesDirectory()
static std::string gCachesPath
fml::UniqueFD OpenDirectory(const char *path, bool create_if_necessary, FilePermission permission)
Definition file_posix.cc:97