/external/vulkan-validation-layers/tests/gtest-1.7.0/test/ |
gtest_premature_exit_test.cc | 54 static bool FileExists(const char* filepath) { 56 return Stat(filepath, &stat) == 0; 104 const char* const filepath = GetEnv("TEST_PREMATURE_EXIT_FILE"); local 105 ASSERT_TRUE(filepath != NULL); 106 ASSERT_NE(*filepath, '\0'); 130 const char* const filepath = GetEnv("TEST_PREMATURE_EXIT_FILE"); local 131 if (filepath != NULL && *filepath != '\0') { 132 if (PrematureExitTest::FileExists(filepath)) { 135 filepath); [all...] |
/packages/apps/Camera2/src/com/android/camera/data/ |
PhotoDataFactory.java | 41 String filePath = c.getString(PhotoDataQuery.COL_DATA); 52 + filePath + ":" + width + "x" + height); 54 dimensions = decodeBitmapDimensions(filePath); 78 filePath, 89 private Size decodeBitmapDimensions(String filePath) { 97 BitmapFactory.decodeFile(filePath, opts); 102 Log.w(TAG, "Dimension decode failed for " + filePath); 105 Bitmap b = BitmapFactory.decodeFile(filePath); 108 + " Decoding " + filePath + " failed."); 114 Log.w(TAG, "PhotoData skipped. Bitmap size 0 for " + filePath); [all...] |
/external/libchrome/base/files/ |
file_path_watcher_fsevents.cc | 40 FilePath ResolvePath(const FilePath& path) { 43 std::vector<FilePath::StringType> component_vector; 45 std::list<FilePath::StringType> 48 FilePath result; 51 FilePath component(*components.begin()); 54 FilePath current; 61 FilePath target; 65 std::vector<FilePath::StringType> target_components; 85 bool FilePathWatcherFSEvents::Watch(const FilePath& path [all...] |
file_util.cc | 38 int64_t ComputeDirectorySize(const FilePath& root_path) { 46 bool Move(const FilePath& from_path, const FilePath& to_path) { 52 bool ContentsEqual(const FilePath& filename1, const FilePath& filename2) { 86 bool TextContentsEqual(const FilePath& filename1, const FilePath& filename2) { 127 bool ReadFileToString(const FilePath& path, 164 bool ReadFileToString(const FilePath& path, std::string* contents) { 169 bool IsDirectoryEmpty(const FilePath& dir_path) [all...] |
scoped_temp_dir.cc | 32 bool ScopedTempDir::CreateUniqueTempDirUnderPath(const FilePath& base_path) { 49 bool ScopedTempDir::Set(const FilePath& path) { 73 FilePath ScopedTempDir::Take() { 74 FilePath ret = path_; 75 path_ = FilePath();
|
scoped_temp_dir.h | 37 bool CreateUniqueTempDirUnderPath(const FilePath& path) WARN_UNUSED_RESULT; 41 bool Set(const FilePath& path) WARN_UNUSED_RESULT; 48 FilePath Take(); 50 const FilePath& path() const { return path_; } 56 FilePath path_;
|
file_path_watcher_unittest.cc | 102 virtual void OnFileChanged(const FilePath& path, bool error) = 0; 121 void OnFileChanged(const FilePath& path, bool error) override { 134 void SetupWatchCallback(const FilePath& target, 163 FilePath parent_dir; 178 FilePath test_file() { 182 FilePath test_link() { 187 bool WriteFile(const FilePath& file, const std::string& content) { 192 bool SetupWatch(const FilePath& target, 214 bool FilePathWatcherTest::SetupWatch(const FilePath& target, 254 FilePath source_file(temp_dir_.path().AppendASCII("source")) [all...] |
file_path.cc | 32 using StringType = FilePath::StringType; 33 using StringPieceType = FilePath::StringPieceType; 40 const FilePath::CharType kStringTerminator = FILE_PATH_LITERAL('\0'); 42 // If this FilePath contains a drive letter specification, returns the 85 FilePath::IsSeparator(path[letter + 1]); 89 FilePath::IsSeparator(path[0]) && FilePath::IsSeparator(path[1]); 92 return path.length() > 0 && FilePath::IsSeparator(path[0]); 99 if (!FilePath::IsSeparator(*it)) 111 if (path == FilePath::kCurrentDirectory || path == FilePath::kParentDirectory [all...] |
/packages/apps/Camera2/src/com/android/camera/ |
Thumbnail.java | 29 public static Bitmap createVideoThumbnailBitmap(String filePath, int targetWidth) { 30 return createVideoThumbnailBitmap(filePath, null, targetWidth); 33 private static Bitmap createVideoThumbnailBitmap(String filePath, FileDescriptor fd, 38 if (filePath != null) { 39 retriever.setDataSource(filePath);
|
/system/core/crash_reporter/ |
crash_collector.h | 75 int WriteNewFile(const base::FilePath &filename, const char *data, int size); 83 void ForceCrashDirectory(const base::FilePath &forced_directory) { 87 base::FilePath GetCrashDirectoryInfo(mode_t *mode, 101 base::FilePath *crash_file_path, 111 base::FilePath GetCrashPath(const base::FilePath &crash_directory, 115 base::FilePath GetProcessPath(pid_t pid); 116 bool GetSymlinkTarget(const base::FilePath &symlink, 117 base::FilePath *target); 123 bool CheckHasCapacity(const base::FilePath &crash_directory) [all...] |
udev_collector.h | 49 bool ProcessUdevCrashLogs(const base::FilePath& crash_directory, 56 bool ProcessDevCoredump(const base::FilePath& crash_directory, 60 bool AppendDevCoredump(const base::FilePath& crash_directory, 61 const base::FilePath& coredump_path, 64 bool ClearDevCoredump(const base::FilePath& coredump_path); 70 log_config_path_ = base::FilePath(path);
|
udev_collector.cc | 32 using base::FilePath; 74 FilePath crash_directory; 96 bool UdevCollector::ProcessUdevCrashLogs(const FilePath& crash_directory, 113 FilePath crash_path = GetCrashPath(crash_directory, log_file_name, "log"); 127 FilePath crash_path_zipped = FilePath(crash_path.value() + ".gz"); 141 bool UdevCollector::ProcessDevCoredump(const FilePath& crash_directory, 143 FilePath coredump_path = 144 FilePath(base::StringPrintf("%s/devcd%d/data", 164 bool UdevCollector::AppendDevCoredump(const FilePath& crash_directory [all...] |
/external/autotest/client/deps/glbench/src/ |
utils.cc | 18 using base::FilePath; 25 FilePath *g_base_path = new FilePath(); 33 FilePath argv0_path = FilePath(argv0).DirName(); 34 FilePath base_path = relative ? argv0_path.Append(relative) : argv0_path; 35 g_base_path = new FilePath(base_path); 38 const FilePath& GetBasePath() { 43 FilePath filename = g_base_path->Append(name); 62 bool read_int_from_file(FilePath filename, int *value) [all...] |
/external/chromium-trace/catapult/third_party/coverage/ci/ |
install.ps1 | 28 $filepath = $basedir + $filename 30 Write-Host "Reusing" $filepath 31 return $filepath 39 $webclient.DownloadFile($url, $filepath) 46 if (Test-Path $filepath) { 47 Write-Host "File saved at" $filepath 50 $webclient.DownloadFile($url, $filepath) 52 return $filepath 102 $filepath = Download $filename $url 103 return $filepath [all...] |
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
CodecTest.java | 80 public static int getDuration(String filePath) { 81 Log.v(TAG, "getDuration - " + filePath); 84 mp.setDataSource(filePath); 96 public static boolean getCurrentPosition(String filePath) { 97 Log.v(TAG, "GetCurrentPosition - " + filePath); 103 mp.setDataSource(filePath); 126 public static boolean seekTo(String filePath) { 127 Log.v(TAG, "seekTo " + filePath); 131 mp.setDataSource(filePath); 150 public static boolean setLooping(String filePath) { [all...] |
/frameworks/base/tools/aapt2/dump/ |
Dump.cpp | 58 void tryDumpFile(IAaptContext* context, const std::string& filePath) { 60 std::unique_ptr<io::ZipFileCollection> zip = io::ZipFileCollection::create(filePath, &err); 66 context->getDiagnostics()->error(DiagMessage(filePath) 73 context->getDiagnostics()->error(DiagMessage(filePath) 79 pbTable, Source(filePath), context->getDiagnostics()); 89 Maybe<android::FileMap> file = file::mmapPath(filePath, &err); 91 context->getDiagnostics()->error(DiagMessage(filePath) << err); 100 dumpCompiledTable(pbTable, Source(filePath), context); 107 dumpCompiledFile(*pbFile, input.data(), input.size(), Source(filePath), context);
|
/prebuilts/go/darwin-x86/src/os/ |
os_windows_test.go | 7 "path/filepath" 22 err = os.Symlink("target", filepath.Join(tmpdir, "symlink")) 66 path, err := filepath.Abs("a") 78 p := filepath.VolumeName(path) + filepath.Base(path) 102 link := filepath.Join(filepath.Dir(dir), filepath.Base(dir)+"-link") 114 expected := filepath.Base(dir)
|
/prebuilts/go/linux-x86/src/os/ |
os_windows_test.go | 7 "path/filepath" 22 err = os.Symlink("target", filepath.Join(tmpdir, "symlink")) 66 path, err := filepath.Abs("a") 78 p := filepath.VolumeName(path) + filepath.Base(path) 102 link := filepath.Join(filepath.Dir(dir), filepath.Base(dir)+"-link") 114 expected := filepath.Base(dir)
|
/external/libbrillo/brillo/ |
cryptohome.h | 21 BRILLO_EXPORT base::FilePath GetUserPathPrefix(); 25 BRILLO_EXPORT base::FilePath GetRootPathPrefix(); 29 BRILLO_EXPORT base::FilePath GetUserPath(const std::string& username); 34 BRILLO_EXPORT base::FilePath GetHashedUserPath( 39 BRILLO_EXPORT base::FilePath GetRootPath(const std::string& username); 42 BRILLO_EXPORT base::FilePath GetDaemonPath(const std::string& username,
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/ |
bwe_test_fileutils.cc | 56 std::string filepath = webrtc::test::ResourcePath(filename, extension); local 57 FILE* file = fopen(filepath.c_str(), "rb"); 60 BWE_TEST_LOGGING_LOG1("Create", "Can't read file: %s", filepath.c_str()); 84 std::string filepath = webrtc::test::OutputPath() + filename + "." + local 86 FILE* file = fopen(filepath.c_str(), "wb"); 89 BWE_TEST_LOGGING_LOG1("Create", "Can't write file: %s", filepath.c_str());
|
bwe_test_baselinefile.cc | 44 BaseLineFileVerify(const std::string& filepath, bool allow_missing_file) 48 reader.reset(ResourceFileReader::Create(filepath, "bin")); 51 filepath.c_str()); 61 filepath.c_str()); 102 BaseLineFileUpdate(const std::string& filepath, 106 filepath_(filepath) { 154 std::string filepath = filename; local 155 std::replace(filepath.begin(), filepath.end(), '/', '_'); 156 filepath = std::string(kResourceSubDir) + "/" + filepath [all...] |
/system/connectivity/shill/ |
certificate_file.h | 38 virtual base::FilePath CreatePEMFromStrings( 42 void set_root_directory(const base::FilePath& root_directory) { 64 // path the output data on success or an empty FilePath otherwise. 65 base::FilePath WriteFile(const std::string& output_data); 68 base::FilePath root_directory_; 71 base::FilePath output_file_;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
dict_file_writing_utils.cpp | 41 /* static */ bool DictFileWritingUtils::createEmptyDictFile(const char *const filePath, 51 filePath, localeAsCodePointVector, attributeMap, formatVersion); 56 filePath, localeAsCodePointVector, attributeMap, formatVersion); 59 filePath, dictVersion); 85 char filePath[filePathBufSize]; 86 FileUtils::getFilePathWithSuffix(basePath, suffix, filePathBufSize, filePath); 87 return flushBufferToFile(filePath, buffer); 102 /* static */ bool DictFileWritingUtils::flushBufferToFile(const char *const filePath, 104 const int fd = open(filePath, O_WRONLY | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); 106 AKLOGE("File %s cannot be opened. errno: %d", filePath, errno) [all...] |
/external/dbus-binding-generator/chromeos-dbus-bindings/ |
method_name_generator.h | 17 class FilePath; 28 const base::FilePath& output_file);
|
/external/libchrome/base/test/ |
test_file_util.cc | 12 bool EvictFileFromSystemCacheWithRetry(const FilePath& path) { 24 void PrintTo(const FilePath& path, std::ostream* out) {
|