/frameworks/compile/mclinker/unittests/ |
H A D | FileHandleTest.cpp | 41 mcld::sys::fs::Path path(TOPDIR); 42 path.append("unittests/test.txt"); 43 ASSERT_TRUE(m_pTestee->open(path, FileHandle::OpenMode(FileHandle::ReadOnly), 59 mcld::sys::fs::Path path(TOPDIR); 60 path.append("unittests/test.txt"); 62 int fd = ::open(path.native().c_str(), O_RDONLY); 83 mcld::sys::fs::Path path(TOPDIR); 84 path.append("unittests/test.txt"); 85 ASSERT_TRUE(m_pTestee->open(path, FileHandle::OpenMode(FileHandle::ReadOnly),
|
H A D | MCRegionFragmentTest.cpp | 41 Path path(TOPDIR); 42 path.append("unittests/test3.txt"); 44 MemoryArea* area = areaFactory->produce(path, MemoryArea::ReadWrite); 56 Path path(TOPDIR); 57 path.append("unittests/test3.txt"); 59 MemoryArea* area = areaFactory->produce(path, MemoryArea::ReadWrite);
|
/frameworks/native/libs/input/ |
H A D | InputDevice.cpp | 43 static void appendInputDeviceConfigurationFileRelativePath(String8& path, argument 45 path.append(CONFIGURATION_FILE_DIR[type]); 51 path.append(&ch, 1); 53 path.append(CONFIGURATION_FILE_EXTENSION[type]); 89 String8 path; local 90 path.setTo(getenv("ANDROID_ROOT")); 91 path.append("/usr/"); 92 appendInputDeviceConfigurationFileRelativePath(path, name, type); 94 ALOGD("Probing for system provided input device configuration file: path='%s'", path [all...] |
/frameworks/av/media/libeffects/downmix/ |
H A D | Android.mk | 19 $(call include-path-for, audio-effects) \ 20 $(call include-path-for, audio-utils)
|
/frameworks/base/core/java/android/os/storage/ |
H A D | OnObbStateChangeListener.java | 80 * @param path path to the OBB file the state change has happened on 83 public void onObbStateChange(String path, int state) { argument
|
/frameworks/base/media/java/android/media/ |
H A D | MediaScannerClient.java | 24 public void scanFile(String path, long lastModified, long fileSize, argument
|
/frameworks/base/tools/aapt2/flatten/ |
H A D | Archive.h | 39 std::string path; member in namespace:aapt 47 virtual bool startEntry(const StringPiece& path, uint32_t flags) = 0; 59 const StringPiece& path); 62 const StringPiece& path);
|
/frameworks/av/include/media/stagefright/ |
H A D | StagefrightMediaScanner.h | 30 const char *path, const char *mimeType, 40 const char *path, const char *mimeType,
|
/frameworks/base/core/jni/ |
H A D | android_util_FileObserver.cpp | 75 jstring path = NULL; local 79 path = env->NewStringUTF(event->name); 82 env->CallVoidMethod(object, method_onEvent, event->wd, event->mask, path); 87 if (path != NULL) 89 env->DeleteLocalRef(path); 109 const char* path = env->GetStringUTFChars(pathString, NULL); local 111 res = inotify_add_watch(fd, path, mask); 113 env->ReleaseStringUTFChars(pathString, path);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | PathMeasure.java | 24 * of a path, and/or to find the position and tangent along it, call 27 * Note that once a path is associated with the measure object, it is 28 * undefined if the path is subsequently modified and the the measure object 29 * is used. If the path is modified, you must call setPath with the path. 37 * Create a PathMeasure object associated with the specified path object 39 * path's length, and the position and tangent of any position along the 40 * path. 42 * Note that once a path is associated with the measure object, it is 43 * undefined if the path i 50 PathMeasure(Path path, boolean forceClosed) argument 60 setPath(Path path, boolean forceClosed) argument [all...] |
/frameworks/base/tools/aapt/tests/ |
H A D | MockCacheUpdater.h | 18 // Make sure all the directories along this path exist 19 virtual void ensureDirectoriesExist(String8 path) argument 25 virtual void deleteFile(String8 path) { argument
|
H A D | MockDirectoryWalker.h | 19 // entries. It takes a path and a map of filenames and their modification times. 24 StringDirectoryWalker(String8& path, Vector< pair<String8,time_t> >& data) argument 25 : mPos(0), mBasePath(path), mData(data) { 31 virtual bool openDir(String8 path) { argument 34 return path == mBasePath; 36 virtual bool openDir(const char* path) { argument 37 String8 p(path); 79 // Base path
|
/frameworks/support/v4/donut/android/support/v4/view/animation/ |
H A D | PathInterpolatorCompatBase.java | 23 * Base implementation for path interpolator compatibility. 31 public static Interpolator create(Path path) { argument 32 return new PathInterpolatorDonut(path);
|
/frameworks/base/include/androidfw/ |
H A D | AssetManager.h | 95 * added asset path will be examined first when searching for assets, 103 bool addAssetPath(const String8& path, int32_t* cookie, 105 bool addOverlayPath(const String8& path, int32_t* cookie); 123 * Return an asset path in the manager. 'which' must be between 0 and 163 * path hierarchy, and will not be seen by "AssetDir" or included 187 * Open a directory within a particular path of the asset manager. 241 asset_path() : path(""), type(kFileTypeRegular), idmap(""), 243 String8 path; member in struct:android::AssetManager::asset_path 251 const asset_path& path); 253 const asset_path& path); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | HeadsUpAppearInterpolator.java | 31 Path path = new Path(); 32 path.moveTo(0, 0); 40 path.cubicTo(x1 * 0.9f / xTot, 0f, 43 path.cubicTo((x1 + x2 * 0.4f) / xTot, y1 / y3, 46 path.cubicTo((x1 + x2 + x3 * 0.4f) / xTot, y2 / y3, 49 return path;
|
/frameworks/base/tools/aapt/ |
H A D | DirectoryWalker.h | 28 virtual bool openDir(String8 path) = 0; 29 virtual bool openDir(const char* path) = 0; 44 // Base path 57 virtual bool openDir(String8 path) { argument 58 mBasePath = path; 67 virtual bool openDir(const char* path) { argument 68 String8 p(path);
|
/frameworks/base/tools/aapt2/io/ |
H A D | FileSystem.cpp | 34 if (Maybe<android::FileMap> map = file::mmapPath(mSource.path, nullptr)) { 61 IFile* FileCollection::insertFile(const StringPiece& path) { argument 62 return (mFiles[path.toString()] = util::make_unique<RegularFile>(Source(path))).get(); 65 IFile* FileCollection::findFile(const StringPiece& path) { argument 66 auto iter = mFiles.find(path.toString());
|
/frameworks/base/tools/aapt2/util/ |
H A D | Files.cpp | 36 FileType getFileType(const StringPiece& path) { argument 38 if (stat(path.data(), &sb) < 0) { 89 inline static int mkdirImpl(const StringPiece& path) { argument 91 return _mkdir(path.toString().c_str()); 93 return mkdir(path.toString().c_str(), S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IXGRP); 97 bool mkdirs(const StringPiece& path) { argument 98 const char* start = path.begin(); 99 const char* end = path.end(); 109 return mkdirImpl(path) == 0 || errno == EEXIST; 112 StringPiece getStem(const StringPiece& path) { argument 123 getFilename(const StringPiece& path) argument 134 getExtension(const StringPiece& path) argument 166 mmapPath(const StringPiece& path, std::string* outError) argument 194 appendArgsFromFile(const StringPiece& path, std::vector<std::string>* outArgList, std::string* outError) argument [all...] |
/frameworks/base/core/java/android/os/ |
H A D | FileObserver.java | 88 public int startWatching(String path, int mask, FileObserver observer) { argument 89 int wfd = startWatching(m_fd, path, mask); 105 public void onEvent(int wfd, int mask, String path) { argument 122 observer.onEvent(mask, path); 131 private native int startWatching(int fd, String path, int mask); argument 148 * Equivalent to FileObserver(path, FileObserver.ALL_EVENTS). 150 public FileObserver(String path) { argument 151 this(path, ALL_EVENTS); 159 * @param path The file or directory to monitor 162 public FileObserver(String path, in argument 209 onEvent(int event, String path) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
H A D | StorageManagerBaseTest.java | 81 * @param obbFilePath path to the OBB image file 82 * @param pathToContentsFile path to a file on the mounted OBB volume to open after the OBB 88 assertTrue("path to contents file cannot be null!", pathToContentsFile != null); 100 // the official OBB file path and the mount-request file path should be the same, but 140 * Returns the official path of the OBB file that was mounted 142 * This is not the mount path, but the normalized path to the actual OBB file 144 * @return a {@link String} representation of the path to the OBB file that was mounted 171 public void onObbStateChange(String path, in argument 465 doValidateIntContents(String path, String filename, int start, int end) argument 495 doValidateTextContents(String path, String filename, String contents) argument 530 doValidateZeroLongFile(String path, String filename, long size, boolean checkContents) argument [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | TextOnPathActivity.java | 45 Path path = new Path(); 46 buildPath(path); 47 return path; 50 private static void buildPath(Path path) { argument 51 path.moveTo(0.0f, 0.0f); 52 path.cubicTo(0.0f, 0.0f, 100.0f, 150.0f, 100.0f, 200.0f); 53 path.cubicTo(100.0f, 200.0f, 50.0f, 300.0f, -80.0f, 200.0f); 54 path.cubicTo(-80.0f, 200.0f, 100.0f, 200.0f, 200.0f, 0.0f); 58 Path path = new Path(); 59 buildStraightPath(path); 63 buildStraightPath(Path path) argument [all...] |
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/ |
H A D | DrawView.java | 39 float[] path = new float[200]; field in class:DrawView 107 ret = new Region(Arrays.copyOf(path, len), img); 114 path[0] = imgPoint[0]; 115 path[1] = imgPoint[1]; 130 if (len + size * 2 >= path.length) { 131 path = Arrays.copyOf(path, 2 * (len + size * 2)); 135 path[len] = imgMoveList[i]; 136 path[len + 1] = imgMoveList[i + 1]; 142 if (len + 2 >= path [all...] |
/frameworks/base/libs/hwui/tests/microbench/ |
H A D | ShadowBench.cpp | 83 SkPath path; local 84 path.addRoundRect(SkRect::MakeWH(100, 100), 5, 5); 89 tessellateShadows(shadowData, true, path, &ambient, &spot); 99 SkPath path; local 100 path.reset(); 101 path.addRoundRect(SkRect::MakeLTRB(0, 0, 100, 100), 5, 5); 106 tessellateShadows(shadowData, false, path, ambient.get(), spot.get());
|
/frameworks/av/media/libstagefright/id3/ |
H A D | testid3.cpp | 71 void scanFile(const char *path) { argument 72 sp<FileSource> file = new FileSource(path); 77 printf("FAIL %s\n", path); 79 printf("SUCCESS %s\n", path); 112 void scan(const char *path) { argument 114 if (stat(path, &st) == 0 && S_ISREG(st.st_mode)) { 115 scanFile(path); 119 DIR *dir = opendir(path); 134 strcpy(newPath, path);
|
/frameworks/native/cmds/dumpstate/ |
H A D | dumpstate.h | 84 /* full path of the directory where the bugreport files will be written */ 100 int dump_file(const char *title, const char *path); 103 int read_file_as_long(const char *path, long int *output); 108 int dump_file_from_fd(const char *title, const char *path, int fd); 117 bool (*skip)(const char *path), 118 int (*dump_from_fd)(const char *title, const char *path, int fd)); 155 void redirect_to_file(FILE *redirect, char *path); 158 void create_parent_dirs(const char *path); 185 void play_sound(const char *path); 191 void take_screenshot(const std::string& path); [all...] |