Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 566) sorted by relevance

12345678910>>...23

/frameworks/base/services/jni/
Dcom_android_server_BatteryService.cpp136 static int readFromFile(const char* path, char* buf, size_t size) in readFromFile() argument
138 if (!path) in readFromFile()
140 int fd = open(path, O_RDONLY, 0); in readFromFile()
142 ALOGE("Could not open '%s'", path); in readFromFile()
159 static void setBooleanField(JNIEnv* env, jobject obj, const char* path, jfieldID fieldID) in setBooleanField() argument
165 if (readFromFile(path, buf, SIZE) > 0) { in setBooleanField()
173 static void setIntField(JNIEnv* env, jobject obj, const char* path, jfieldID fieldID) in setIntField() argument
179 if (readFromFile(path, buf, SIZE) > 0) { in setIntField()
185 static void setVoltageField(JNIEnv* env, jobject obj, const char* path, jfieldID fieldID) in setVoltageField() argument
191 if (readFromFile(path, buf, SIZE) > 0) { in setVoltageField()
[all …]
/frameworks/base/cmds/installd/tests/
Dinstalld_utils_test.cpp52 android_app_dir.path = TEST_APP_DIR; in SetUp()
55 android_app_private_dir.path = TEST_APP_PRIVATE_DIR; in SetUp()
58 android_data_dir.path = TEST_DATA_DIR; in SetUp()
61 android_asec_dir.path = TEST_ASEC_DIR; in SetUp()
67 android_system_dirs.dirs[0].path = TEST_SYSTEM_DIR1; in SetUp()
70 android_system_dirs.dirs[1].path = TEST_SYSTEM_DIR2; in SetUp()
244 EXPECT_STREQ("/mnt/asec/", test1.path) in TEST_F()
248 free(test1.path); in TEST_F()
255 EXPECT_STREQ("/data/app/", test3.path) in TEST_F()
259 free(test3.path); in TEST_F()
[all …]
/frameworks/av/media/libmedia/
DMediaScanner.cpp69 char * path = strtok(skipList, ","); in loadSkipList() local
71 while (path) { in loadSkipList()
72 mSkipIndex[i++] = strlen(path); in loadSkipList()
73 path = strtok(NULL, ","); in loadSkipList()
82 const char *path, MediaScannerClient &client) { in processDirectory() argument
83 int pathLength = strlen(path); in processDirectory()
93 strcpy(pathBuffer, path); in processDirectory()
109 bool MediaScanner::shouldSkipDirectory(char *path) { in shouldSkipDirectory() argument
110 if (path && mSkipList && mSkipIndex) { in shouldSkipDirectory()
111 int len = strlen(path); in shouldSkipDirectory()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteDatabaseConfiguration.java51 public final String path; field in SQLiteDatabaseConfiguration
99 public SQLiteDatabaseConfiguration(String path, int openFlags) { in SQLiteDatabaseConfiguration() argument
100 if (path == null) { in SQLiteDatabaseConfiguration()
104 this.path = path; in SQLiteDatabaseConfiguration()
105 label = stripPathForLogs(path); in SQLiteDatabaseConfiguration()
123 this.path = other.path; in SQLiteDatabaseConfiguration()
138 if (!path.equals(other.path)) { in updateParametersFrom()
156 return path.equalsIgnoreCase(MEMORY_DB_PATH); in isInMemoryDb()
159 private static String stripPathForLogs(String path) { in stripPathForLogs() argument
160 if (path.indexOf('@') == -1) { in stripPathForLogs()
[all …]
/frameworks/base/libs/androidfw/
DAssetManager.cpp79 String8 path(root); in idmapPathForPackagePath() local
80 path.appendPath(kIdmapCacheDir); in idmapPathForPackagePath()
96 path.appendPath(filename); in idmapPathForPackagePath()
97 path.append("@idmap"); in idmapPathForPackagePath()
99 return path; in idmapPathForPackagePath()
155 bool AssetManager::addAssetPath(const String8& path, void** cookie) in addAssetPath() argument
161 String8 realPath(path); in addAssetPath()
167 ap.path = realPath; in addAssetPath()
169 ap.path = path; in addAssetPath()
170 ap.type = ::getFileType(path.string()); in addAssetPath()
[all …]
DInputDevice.cpp43 static void appendInputDeviceConfigurationFileRelativePath(String8& path, in appendInputDeviceConfigurationFileRelativePath() argument
45 path.append(CONFIGURATION_FILE_DIR[type]); in appendInputDeviceConfigurationFileRelativePath()
51 path.append(&ch, 1); in appendInputDeviceConfigurationFileRelativePath()
53 path.append(CONFIGURATION_FILE_EXTENSION[type]); in appendInputDeviceConfigurationFileRelativePath()
89 String8 path; in getInputDeviceConfigurationFilePathByName() local
90 path.setTo(getenv("ANDROID_ROOT")); in getInputDeviceConfigurationFilePathByName()
91 path.append("/usr/"); in getInputDeviceConfigurationFilePathByName()
92 appendInputDeviceConfigurationFileRelativePath(path, name, type); in getInputDeviceConfigurationFilePathByName()
94 ALOGD("Probing for system provided input device configuration file: path='%s'", path.string()); in getInputDeviceConfigurationFilePathByName()
96 if (!access(path.string(), R_OK)) { in getInputDeviceConfigurationFilePathByName()
[all …]
/frameworks/base/tests/DumpRenderTree2/assets/
Drun_apache2.py42 tmp_WebKit = os.path.join("/tmp", "WebKit")
43 if not os.path.exists(tmp_WebKit):
49 script_location = os.path.abspath(os.path.dirname(sys.argv[0]))
50 android_tree_root = os.path.join(script_location, parent, parent, parent, parent, parent)
51 android_tree_root = os.path.normpath(android_tree_root)
54 webkit_path = os.path.join("external", "webkit")
57 layout_tests_path = os.path.normpath(os.path.join(os.getcwd(), options.tests_root_directory))
59 layout_tests_path = os.path.join(webkit_path, "LayoutTests")
60 http_conf_path = os.path.join(layout_tests_path, "http", "conf")
63 envvars_path = os.path.join("/etc", "apache2", "envvars")
[all …]
/frameworks/base/cmds/installd/
Dutils.c21 int create_pkg_path_in_dir(char path[PKG_PATH_MAX], in create_pkg_path_in_dir()
41 char *dst = path; in create_pkg_path_in_dir()
44 if (append_and_increment(&dst, dir->path, &dst_size) < 0 in create_pkg_path_in_dir()
58 int create_pkg_path(char path[PKG_PATH_MAX], in create_pkg_path()
79 if (append_and_increment(&dst, android_data_dir.path, &dst_size) < 0 in create_pkg_path()
94 dir.path = prefix; in create_pkg_path()
97 return create_pkg_path_in_dir(path, &dir, pkgname, postfix); in create_pkg_path()
104 int create_persona_path(char path[PKG_PATH_MAX], in create_persona_path()
117 char *dst = path; in create_persona_path()
120 if (append_and_increment(&dst, android_data_dir.path, &dst_size) < 0 in create_persona_path()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DPathDestructionActivity.java64 Path path = new Path(); in getRandomPath() local
65 path.moveTo(left, top); in getRandomPath()
66 path.lineTo(right, top); in getRandomPath()
67 path.lineTo(right, bottom); in getRandomPath()
68 path.lineTo(left, bottom); in getRandomPath()
69 path.close(); in getRandomPath()
70 return path; in getRandomPath()
82 Path path; in onDraw() local
84 path = getRandomPath(); in onDraw()
86 canvas.drawPath(path, strokePaint); in onDraw()
[all …]
DTextOnPathActivity.java45 Path path = new Path(); in makePath() local
46 buildPath(path); in makePath()
47 return path; in makePath()
50 private void buildPath(Path path) { in buildPath() argument
51 path.moveTo(0.0f, 0.0f); in buildPath()
52 path.cubicTo(0.0f, 0.0f, 100.0f, 150.0f, 100.0f, 200.0f); in buildPath()
53 path.cubicTo(100.0f, 200.0f, 50.0f, 300.0f, -80.0f, 200.0f); in buildPath()
54 path.cubicTo(-80.0f, 200.0f, 100.0f, 200.0f, 200.0f, 0.0f); in buildPath()
58 Path path = new Path(); in makeStraightPath() local
59 buildStraightPath(path); in makeStraightPath()
[all …]
DPathsCacheActivity.java49 Path path = new Path(); in makePath() local
50 buildPath(path); in makePath()
51 return path; in makePath()
54 private void buildPath(Path path) { in buildPath() argument
55 path.moveTo(0.0f, 0.0f); in buildPath()
56 path.cubicTo(0.0f, 0.0f, 100.0f, 150.0f, 100.0f, 200.0f); in buildPath()
57 path.cubicTo(100.0f, 200.0f, 50.0f, 300.0f, -80.0f, 200.0f); in buildPath()
58 path.cubicTo(-80.0f, 200.0f, 100.0f, 200.0f, 200.0f, 0.0f); in buildPath()
96 Path path = makePath(); in onDraw() local
99 mPathList.add(path); in onDraw()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/storage/
DStorageManagerBaseTest.java171 public void onObbStateChange(String path, int state) { in onObbStateChange() argument
175 Log.i(LOG_TAG, "OfficialPath is now: " + path); in onObbStateChange()
177 mOfficialPath = path; in onObbStateChange()
278 String path = mSm.getMountedObbPath(obbPath); in openFileOnMountedObb() local
279 assertTrue("Path should not be null!", path != null); in openFileOnMountedObb()
281 File inFile = new File(path, fileName); in openFileOnMountedObb()
285 Log.i(LOG_TAG, "Opened file: " + fileName + " for read at path: " + path); in openFileOnMountedObb()
465 protected void doValidateIntContents(String path, String filename, int start, int end) { in doValidateIntContents() argument
466 File inFile = new File(path, filename); in doValidateIntContents()
468 Log.i(LOG_TAG, "Validating file " + filename + " at " + path); in doValidateIntContents()
[all …]
/frameworks/base/libs/hwui/
DPathCache.cpp29 void computePathBounds(const SkPath* path, const SkPaint* paint, in computePathBounds() argument
31 const SkRect& bounds = path->getBounds(); in computePathBounds()
57 void PathCache::remove(SkPath* path) { in remove() argument
61 if (mCache.getKeyAt(i).path == path) { in remove()
76 void PathCache::removeDeferred(SkPath* path) { in removeDeferred() argument
78 mGarbage.push(path); in removeDeferred()
90 PathTexture* PathCache::get(SkPath* path, SkPaint* paint) { in get() argument
91 const SkPath* sourcePath = path->getSourcePath(); in get()
92 if (sourcePath && sourcePath->getGenerationID() == path->getGenerationID()) { in get()
93 path = const_cast<SkPath*>(sourcePath); in get()
[all …]
DPathCache.h35 PathCacheEntry(SkPath* path, SkPaint* paint): in PathCacheEntry()
37 this->path = path; in PathCacheEntry()
41 path = NULL; in PathCacheEntry()
46 LTE_INT(path) { in lessThan()
52 SkPath* path; member
69 PathTexture* get(SkPath* path, SkPaint* paint);
73 void remove(SkPath* path);
78 void removeDeferred(SkPath* path);
DShapeCache.cpp38 SkPath path; in getRoundRect() local
41 path.addRoundRect(r, rx, ry, SkPath::kCW_Direction); in getRoundRect()
43 texture = addTexture(entry, &path, paint); in getRoundRect()
62 SkPath path; in getCircle() local
63 path.addCircle(radius, radius, radius, SkPath::kCW_Direction); in getCircle()
65 texture = addTexture(entry, &path, paint); in getCircle()
84 SkPath path; in getOval() local
87 path.addOval(r, SkPath::kCW_Direction); in getOval()
89 texture = addTexture(entry, &path, paint); in getOval()
150 SkPath path; in getArc() local
[all …]
/frameworks/base/drm/java/android/drm/
DDrmManagerClient.java357 public ContentValues getConstraints(String path, int action) { in getConstraints() argument
358 if (null == path || path.equals("") || !DrmStore.Action.isValid(action)) { in getConstraints()
361 return _getConstraints(mUniqueId, path, action); in getConstraints()
372 public ContentValues getMetadata(String path) { in getMetadata() argument
373 if (null == path || path.equals("")) { in getMetadata()
376 return _getMetadata(mUniqueId, path); in getMetadata()
459 public boolean canHandle(String path, String mimeType) { in canHandle() argument
460 if ((null == path || path.equals("")) && (null == mimeType || mimeType.equals(""))) { in canHandle()
463 return _canHandle(mUniqueId, path, mimeType); in canHandle()
546 public int getDrmObjectType(String path, String mimeType) { in getDrmObjectType() argument
[all …]
/frameworks/base/include/androidfw/
DAssetManager.h95 bool addAssetPath(const String8& path, void** cookie);
224 String8 path; member
230 const asset_path& path);
232 const asset_path& path);
234 const asset_path& path, const char* locale, const char* vendor);
235 String8 createPathNameLocked(const asset_path& path, const char* locale,
237 String8 createPathNameLocked(const asset_path& path, const char* rootDir);
241 ZipFileRO* getZipFileLocked(const asset_path& path);
247 const asset_path& path, const char* rootDir, const char* dirName);
248 SortedVector<AssetDir::FileInfo>* scanDirLocked(const String8& path);
[all …]
/frameworks/base/cmds/rawbu/
Dbackup.cpp51 const char* path; member
65 static int wipe (const char *path) in wipe() argument
72 dir = opendir(path); in wipe()
76 path, strerror(errno)); in wipe()
82 strcpy(nameBuffer, path); in wipe()
105 for (i = 0; SKIP_PATHS[i].path; i++) { in wipe()
106 if (strcmp(SKIP_PATHS[i].path, nameBuffer) == 0) { in wipe()
118 if (!noBackup && SKIP_PATHS[i].path != NULL) { in wipe()
152 strcpy(nameBuffer, path); in wipe()
236 static int write_header(FILE* fh, int type, const char* path, const struct stat* st) in write_header() argument
[all …]
/frameworks/compile/mclinker/unittests/
DMemoryAreaTest.cpp50 Path path(TOPDIR); in TEST_F() local
51 path.append("unittests/test3.txt"); in TEST_F()
54 MemoryArea* area = AreaFactory->produce(path, FileHandle::ReadOnly); in TEST_F()
65 Path path(TOPDIR); in TEST_F() local
66 path.append("unittests/test2.txt"); in TEST_F()
68 MemoryArea* area = AreaFactory->produce(path, FileHandle::ReadOnly); in TEST_F()
80 area->handler()->open(path, FileHandle::ReadOnly); in TEST_F()
93 Path path(TOPDIR) ; in TEST_F() local
94 path.append("unittests/test3.txt") ; in TEST_F()
96 MemoryArea* area = AreaFactory->produce(path, FileHandle::ReadOnly) ; in TEST_F()
[all …]
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
DFileList.java57 String path = (String)map.get("path"); in onKeyDown() local
58 if ((new File(path)).isDirectory()) { in onKeyDown()
59 mPath = path; in onKeyDown()
63 processFile(path, false); in onKeyDown()
97 String path = sb.toString(); in getData() local
98 File c = new File(path); in getData()
101 addItem(myData, "<"+files[i]+">", path); in getData()
106 addItem(myData, files[i], path); in getData()
113 protected void addItem(List<Map> data, String name, String path) in addItem() argument
117 temp.put("path", path); in addItem()
[all …]
/frameworks/base/test-runner/src/junit/runner/
DTestCaseClassLoader.java113 String path= (String) fPathItems.elementAt(i); in lookupClassData() local
115 if (isJar(path)) { in lookupClassData()
116 data= loadJarData(path, fileName); in lookupClassData()
118 data= loadFileData(path, fileName); in lookupClassData()
132 private byte[] loadFileData(String path, String fileName) { in loadFileData() argument
133 File file= new File(path, fileName); in loadFileData()
157 private byte[] loadJarData(String path, String fileName) { in loadJarData() argument
160 File archive= new File(path); in loadJarData()
216 String path= p.getProperty(key); in readExcludedPackages() local
217 path= path.trim(); in readExcludedPackages()
[all …]
/frameworks/base/media/java/android/media/
DMediaScanner.java359 FileEntry(long rowId, String path, long lastModified, int format) { in FileEntry() argument
361 mPath = path; in FileEntry()
374 String path; field in MediaScanner.PlaylistEntry
439 public FileEntry beginFile(String path, String mimeType, long lastModified, in beginFile() argument
446 if (!noMedia && isNoMediaFile(path)) { in beginFile()
458 MediaFile.MediaFileType mediaFileType = MediaFile.getFileType(path); in beginFile()
468 mFileType = getFileTypeFromDrm(path); in beginFile()
472 FileEntry entry = makeEntryFor(path); in beginFile()
480 entry = new FileEntry(0, path, lastModified, in beginFile()
502 mPath = path; in beginFile()
[all …]
/frameworks/av/drm/common/
DDrmEngineBase.cpp30 int uniqueId, const String8* path, int action) { in getConstraints() argument
31 return onGetConstraints(uniqueId, path, action); in getConstraints()
34 DrmMetadata* DrmEngineBase::getMetadata(int uniqueId, const String8* path) { in getMetadata() argument
35 return onGetMetadata(uniqueId, path); in getMetadata()
51 bool DrmEngineBase::canHandle(int uniqueId, const String8& path) { in canHandle() argument
52 return onCanHandle(uniqueId, path); in canHandle()
69 String8 DrmEngineBase::getOriginalMimeType(int uniqueId, const String8& path, int fd) { in getOriginalMimeType() argument
70 return onGetOriginalMimeType(uniqueId, path, fd); in getOriginalMimeType()
73 int DrmEngineBase::getDrmObjectType(int uniqueId, const String8& path, const String8& mimeType) { in getDrmObjectType() argument
74 return onGetDrmObjectType(uniqueId, path, mimeType); in getDrmObjectType()
[all …]
/frameworks/native/cmds/dumpstate/
Dutils.c86 char path[255]; in show_wchan() local
92 sprintf(path, "/proc/%d/wchan", pid); in show_wchan()
93 if ((fd = open(path, O_RDONLY)) < 0) { in show_wchan()
94 printf("Failed to open '%s' (%s)\n", path, strerror(errno)); in show_wchan()
99 printf("Failed to read '%s' (%s)\n", path, strerror(errno)); in show_wchan()
145 int dump_file(const char *title, const char* path) { in dump_file() argument
147 int fd = open(path, O_RDONLY); in dump_file()
150 if (title) printf("------ %s (%s) ------\n", title, path); in dump_file()
151 printf("*** %s: %s\n", path, strerror(err)); in dump_file()
156 if (title) printf("------ %s (%s", title, path); in dump_file()
[all …]
/frameworks/av/drm/libdrmframework/
DDrmManagerClientImpl.cpp99 int uniqueId, const String8* path, const int action) { in getConstraints() argument
101 if ((NULL != path) && (EMPTY_STRING != *path)) { in getConstraints()
103 getDrmManagerService()->getConstraints(uniqueId, path, action); in getConstraints()
108 DrmMetadata* DrmManagerClientImpl::getMetadata(int uniqueId, const String8* path) { in getMetadata() argument
110 if ((NULL != path) && (EMPTY_STRING != *path)) { in getMetadata()
111 drmMetadata = getDrmManagerService()->getMetadata(uniqueId, path); in getMetadata()
117 int uniqueId, const String8& path, const String8& mimeType) { in canHandle() argument
119 if ((EMPTY_STRING != path) || (EMPTY_STRING != mimeType)) { in canHandle()
120 retCode = getDrmManagerService()->canHandle(uniqueId, path, mimeType); in canHandle()
150 int uniqueId, const String8& path, int fd) { in getOriginalMimeType() argument
[all …]

12345678910>>...23