Home
last modified time | relevance | path

Searched refs:fullPath (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/libs/hwui/jni/
Dandroid_graphics_drawable_VectorDrawable.cpp139 VectorDrawable::FullPath* fullPath = reinterpret_cast<VectorDrawable::FullPath*>(fullPathPtr); in updateFullPathPropertiesAndStrokeStyles() local
140 fullPath->mutateStagingProperties()->updateProperties(strokeWidth, strokeColor, strokeAlpha, in updateFullPathPropertiesAndStrokeStyles()
159 VectorDrawable::FullPath* fullPath = reinterpret_cast<VectorDrawable::FullPath*>(fullPathPtr); in getFullPathProperties() local
161 bool success = fullPath->stagingProperties()->copyProperties(pathProperties, length); in getFullPathProperties()
277 VectorDrawable::FullPath* fullPath = reinterpret_cast<VectorDrawable::FullPath*>(fullPathPtr); in getStrokeWidth() local
278 return fullPath->stagingProperties()->getStrokeWidth(); in getStrokeWidth()
282 VectorDrawable::FullPath* fullPath = reinterpret_cast<VectorDrawable::FullPath*>(fullPathPtr); in setStrokeWidth() local
283 fullPath->mutateStagingProperties()->setStrokeWidth(strokeWidth); in setStrokeWidth()
287 VectorDrawable::FullPath* fullPath = reinterpret_cast<VectorDrawable::FullPath*>(fullPathPtr); in getStrokeColor() local
288 return fullPath->stagingProperties()->getStrokeColor(); in getStrokeColor()
[all …]
Dandroid_graphics_drawable_AnimatedVectorDrawable.cpp124 VectorDrawable::FullPath* fullPath = reinterpret_cast<VectorDrawable::FullPath*>(nativePtr); in createPathColorPropertyHolder() local
125 FullPathColorPropertyValuesHolder* newHolder = new FullPathColorPropertyValuesHolder(fullPath, in createPathColorPropertyHolder()
132 VectorDrawable::FullPath* fullPath = reinterpret_cast<VectorDrawable::FullPath*>(nativePtr); in createPathPropertyHolder() local
133 FullPathPropertyValuesHolder* newHolder = new FullPathPropertyValuesHolder(fullPath, in createPathPropertyHolder()
/frameworks/native/opengl/libs/EGL/
DMultifileBlobCache.cpp148 std::string fullPath = mMultifileDirName + "/" + entryName; in MultifileBlobCache() local
157 if (stat(fullPath.c_str(), &st) != 0) { in MultifileBlobCache()
158 ALOGE("Failed to stat %s", fullPath.c_str()); in MultifileBlobCache()
165 if (remove(fullPath.c_str()) != 0) { in MultifileBlobCache()
166 ALOGE("INIT: Error removing %s: %s", fullPath.c_str(), in MultifileBlobCache()
173 int fd = open(fullPath.c_str(), O_RDONLY); in MultifileBlobCache()
175 ALOGE("Cache error - failed to open fullPath: %s, error: %s", fullPath.c_str(), in MultifileBlobCache()
185 fullPath.c_str(), std::strerror(errno)); in MultifileBlobCache()
193 if (remove(fullPath.c_str()) != 0) { in MultifileBlobCache()
194 ALOGE("INIT: Error removing %s: %s", fullPath.c_str(), in MultifileBlobCache()
[all …]
DMultifileBlobCache.h79 void initWriteToDisk(uint32_t entryHash, std::string fullPath, uint8_t* buffer, in initWriteToDisk() argument
83 mFullPath = std::move(fullPath); in initWriteToDisk()
/frameworks/native/cmds/rawbu/
Dbackup.cpp259 char* fullPath = nullptr; in backup_dir() local
286 if (fullPath != nullptr) { in backup_dir()
287 free(fullPath); in backup_dir()
289 fullPath = (char*)malloc(srcLen + strlen(de->d_name) + 2); in backup_dir()
290 strcpy(fullPath, srcPath); in backup_dir()
291 fullPath[srcLen] = '/'; in backup_dir()
292 strcpy(fullPath+srcLen+1, de->d_name); in backup_dir()
297 if (strcmp(SKIP_PATHS[i].path, fullPath) == 0) { in backup_dir()
306 int ret = lstat(fullPath, &statBuffer); in backup_dir()
310 fullPath, strerror(errno)); in backup_dir()
[all …]
/frameworks/base/tools/aapt/
DFileFinder.cpp61 String8 fullPath = appendPathCopy(basePath, entryName); in findFiles() local
63 if (isDirectory(fullPath.c_str()) ) { in findFiles()
65 findFiles(fullPath, extensions, fileStore,copy); in findFiles()
70 if (isFile(fullPath.c_str()) ) { in findFiles()
71 checkAndAddFile(fullPath,dw->entryStats(),extensions,fileStore); in findFiles()
DDirectoryWalker.h81 String8 fullPath = appendPathCopy(mBasePath, mEntry.d_name); in nextEntry() local
82 stat(fullPath.c_str(),&mStats); in nextEntry()
DAaptAssets.cpp100 String8 fullPath(root); in isHidden() local
101 appendPath(fullPath, String8(path)); in isHidden()
102 FileType type = getFileType(fullPath.c_str()); in isHidden()
/frameworks/native/cmds/installd/tests/
Dinstalld_cache_test.cpp75 const std::string fullPath = StringPrintf("/data/local/tmp/user/0/%s", path); in mkdir() local
76 ::mkdir(fullPath.c_str(), 0755); in mkdir()
80 const std::string fullPath = StringPrintf("/data/local/tmp/user/0/%s", path); in touch() local
81 int fd = ::open(fullPath.c_str(), O_RDWR | O_CREAT, 0644); in touch()
86 ::utime(fullPath.c_str(), &times); in touch()
90 const std::string fullPath = StringPrintf("/data/local/tmp/user/0/%s", path); in exists() local
91 return ::access(fullPath.c_str(), F_OK); in exists()
95 const std::string fullPath = StringPrintf("/data/local/tmp/user/0/%s", path); in size() local
97 if (!stat(fullPath.c_str(), &buf)) { in size()
115 const std::string fullPath = StringPrintf("/data/local/tmp/user/0/%s", path); in setxattr() local
[all …]
Dinstalld_service_test.cpp128 const std::string fullPath = get_full_path(path); in mkdir() local
129 EXPECT_EQ(::mkdir(fullPath.c_str(), mode), 0); in mkdir()
130 EXPECT_EQ(::chown(fullPath.c_str(), owner, group), 0); in mkdir()
131 EXPECT_EQ(::chmod(fullPath.c_str(), mode), 0); in mkdir()
1103 const auto fullPath = "/data/local/tmp/" + path; in CheckFileAccess() local
1104 ASSERT_TRUE(exists(fullPath.c_str())) << "For path: " << fullPath; in CheckFileAccess()
1106 ASSERT_EQ(0, stat(fullPath.c_str(), &st)); in CheckFileAccess()
1107 ASSERT_EQ(uid, st.st_uid) << "For path: " << fullPath; in CheckFileAccess()
1108 ASSERT_EQ(gid, st.st_gid) << "For path: " << fullPath; in CheckFileAccess()
1109 ASSERT_EQ(mode, st.st_mode) << "For path: " << fullPath; in CheckFileAccess()
/frameworks/native/cmds/cmd/
Dcmd.cpp73 auto fullPath = std::filesystem::current_path(); in openFile() local
74 fullPath /= path8.c_str(); in openFile()
76 mErrorLog << "Open attempt after active for: " << fullPath << endl; in openFile()
80 ALOGD("openFile: %s, full=%s", path8.c_str(), fullPath.c_str()); in openFile()
101 int fd = open(fullPath.c_str(), flags, S_IRWXU|S_IRWXG); in openFile()
111 getfilecon(fullPath.c_str(), &tmp); in openFile()
121 …no access to write file context " << context.get() << " (from path " << fullPath.c_str() << ", con… in openFile()
133 … no access to read file context " << context.get() << " (from path " << fullPath.c_str() << ", con… in openFile()
/frameworks/layoutlib/bridge/src/android/graphics/fonts/
DSystemFonts_Delegate.java71 /*package*/ static ByteBuffer mmap(@NonNull String fullPath) { in mmap() argument
78 try (FileInputStream file = new FileInputStream(fullPath)) { in mmap()
87 Log.e(TAG, "Error mapping font file " + fullPath); in mmap()
91 return SystemFonts.mmap_Original(fullPath); in mmap()
/frameworks/compile/slang/
Dslang_rs_reflect_utils.cpp297 std::string fullPath = path1; in JoinPath() local
298 if (fullPath[fullPath.length() - 1] != OS_PATH_SEPARATOR) { in JoinPath()
299 fullPath += OS_PATH_SEPARATOR; in JoinPath()
302 fullPath += path2.substr(1, string::npos); in JoinPath()
304 fullPath += path2; in JoinPath()
306 return fullPath; in JoinPath()
/frameworks/base/graphics/java/android/graphics/fonts/
DSystemFonts.java93 private static @Nullable ByteBuffer mmap(@NonNull String fullPath) { in mmap() argument
94 try (FileInputStream file = new FileInputStream(fullPath)) { in mmap()
239 final String fullPath = fontConfig.getFile().getAbsolutePath(); in createFontFamily() local
240 ByteBuffer buffer = cache.get(fullPath); in createFontFamily()
242 if (cache.containsKey(fullPath)) { in createFontFamily()
245 buffer = mmap(fullPath); in createFontFamily()
246 cache.put(fullPath, buffer); in createFontFamily()
254 font = new Font.Builder(buffer, new File(fullPath), languageTags) in createFontFamily()
/frameworks/rs/cpu_ref/
DrsCpuExecutable.cpp128 std::string *fullPath) { in createSharedLibrary() argument
130 if (fullPath) { in createSharedLibrary()
131 *fullPath = sharedLibName; in createSharedLibrary()
180 void* SharedLibraryUtils::loadAndDeleteSharedLibrary(const char *fullPath) { in loadAndDeleteSharedLibrary() argument
181 void *loaded = dlopen(fullPath, RTLD_NOW | RTLD_LOCAL); in loadAndDeleteSharedLibrary()
183 ALOGE("Unable to open shared library (%s): %s", fullPath, dlerror()); in loadAndDeleteSharedLibrary()
187 int r = unlink(fullPath); in loadAndDeleteSharedLibrary()
189 ALOGE("Could not unlink copy %s", fullPath); in loadAndDeleteSharedLibrary()
DrsCpuExecutable.h61 static void* loadAndDeleteSharedLibrary(const char *fullPath);
/frameworks/rs/
DrsFont.cpp755 char fullPath[1024]; in renderText() local
758 strlcpy(fullPath, root, sizeof(fullPath)); in renderText()
759 strlcat(fullPath, "/fonts/Roboto-Regular.ttf", sizeof(fullPath)); in renderText()
760 fullPath[sizeof(fullPath)-1] = '\0'; in renderText()
761 mDefault.set(Font::create(mRSC, fullPath, 8, mRSC->getDPI())); in renderText()
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerBaseTest.java598 StringBuilder fullPath = new StringBuilder(sdPath); in createFileOnSD() local
600 fullPath.append(File.separatorChar).append(subdirectory); in createFileOnSD()
605 file = File.createTempFile("DMTEST_", null, new File(fullPath.toString())); in createFileOnSD()
608 fullPath.append(File.separatorChar).append(filename); in createFileOnSD()
609 file = new File(fullPath.toString()); in createFileOnSD()
/frameworks/base/packages/SettingsLib/AvatarPicker/src/
DAvatarPhotoController.java383 final File fullPath = new File(parentDir, fileName); in createTempImageUri() local
385 fullPath.delete(); in createTempImageUri()
387 return FileProvider.getUriForFile(mContext, mFileAuthority, fullPath); in createTempImageUri()
/frameworks/base/native/android/
Dsystem_fonts.cpp206 std::string fullPath = filePath; in isFontFileAvailable() local
208 if (stat(fullPath.c_str(), &st) != 0) { in isFontFileAvailable()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageAbiHelperImpl.java84 String fullPath = codePath.getAbsolutePath(); in calculateBundledApkRoot() local
85 String[] parts = fullPath.split(File.separator); in calculateBundledApkRoot()
/frameworks/base/services/incremental/
DIncrementalService.cpp314 auto fullPath = base::StringPrintf("%s/%s", path, entry->d_name); in rmDirContent() local
316 if (const auto err = rmDirContent(fullPath.c_str()); err != 0) { in rmDirContent()
317 PLOG(WARNING) << "Failed to delete " << fullPath << " content"; in rmDirContent()
320 if (const auto err = ::rmdir(fullPath.c_str()); err != 0) { in rmDirContent()
321 PLOG(WARNING) << "Failed to rmdir " << fullPath; in rmDirContent()
325 if (const auto err = ::unlink(fullPath.c_str()); err != 0) { in rmDirContent()
326 PLOG(WARNING) << "Failed to delete " << fullPath; in rmDirContent()