/frameworks/base/media/java/android/media/ |
H A D | MediaMetadataRetriever.java | 58 * @param path The path of the input media file. 59 * @throws IllegalArgumentException If the path is invalid. 61 public void setDataSource(String path) throws IllegalArgumentException { argument 64 is = new FileInputStream(path);
|
H A D | SoundPool.java | 147 * Load the sound from the specified path. 149 * @param path the path to the audio file 154 public int load(String path, int priority) argument 157 if (path.startsWith("http:")) 158 return _load(path, priority); 160 // try local path 163 File f = new File(path); 170 Log.e(TAG, "error loading " + path);
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaScanner.cpp | 100 virtual status_t scanFile(const char* path, long long lastModified, argument 103 ALOGV("scanFile: path(%s), time(%lld), size(%lld) and isDir(%d)", 104 path, lastModified, fileSize, isDirectory); 107 if ((pathStr = mEnv->NewStringUTF(path)) == NULL) { 195 JNIEnv *env, jobject thiz, jstring path, jobject client) 204 if (path == NULL) { 209 const char *pathStr = env->GetStringUTFChars(path, NULL); 219 env->ReleaseStringUTFChars(path, pathStr); 224 JNIEnv *env, jobject thiz, jstring path, 236 if (path 194 android_media_MediaScanner_processDirectory( JNIEnv *env, jobject thiz, jstring path, jobject client) argument 223 android_media_MediaScanner_processFile( JNIEnv *env, jobject thiz, jstring path, jstring mimeType, jobject client) argument [all...] |
H A D | android_media_MediaMetadataRetriever.cpp | 83 JNIEnv *env, jobject thiz, jstring path, 96 if (!path) { 103 const char *tmp = env->GetStringUTFChars(path, NULL); 109 env->ReleaseStringUTFChars(path, tmp); 82 android_media_MediaMetadataRetriever_setDataSourceAndHeaders( JNIEnv *env, jobject thiz, jstring path, jobjectArray keys, jobjectArray values) argument
|
/frameworks/base/media/jni/soundpool/ |
H A D | android_media_SoundPool.cpp | 42 android_media_SoundPool_load_URL(JNIEnv *env, jobject thiz, jstring path, jint priority) argument 46 if (path == NULL) { 50 const char* s = env->GetStringUTFChars(path, NULL); 52 env->ReleaseStringUTFChars(path, s);
|
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/ |
H A D | DefaultContainerService.java | 98 * @return Returns the new cache path where the resource has been copied into 228 public long calculateDirectorySize(String path) throws RemoteException { 231 final File directory = new File(path); 233 return MeasurementUtils.measureDirectory(path); 240 public long[] getFileSystemStats(String path) { 244 final StructStatFs stat = Libcore.os.statfs(path); 254 public void clearDirectory(String path) throws RemoteException { 257 final File directory = new File(path); 304 void eraseFiles(File path) { argument 305 if (path [all...] |
/frameworks/av/drm/drmserver/ |
H A D | DrmManagerService.cpp | 96 int uniqueId, const String8* path, const int action) { 98 return mDrmManager->getConstraints(uniqueId, path, action); 101 DrmMetadata* DrmManagerService::getMetadata(int uniqueId, const String8* path) { argument 103 return mDrmManager->getMetadata(uniqueId, path); 106 bool DrmManagerService::canHandle(int uniqueId, const String8& path, const String8& mimeType) { argument 108 return mDrmManager->canHandle(uniqueId, path, mimeType); 128 String8 DrmManagerService::getOriginalMimeType(int uniqueId, const String8& path, int fd) { argument 130 return mDrmManager->getOriginalMimeType(uniqueId, path, fd); 134 int uniqueId, const String8& path, const String8& mimeType) { 136 return mDrmManager->getDrmObjectType(uniqueId, path, mimeTyp 95 getConstraints( int uniqueId, const String8* path, const int action) argument 133 getDrmObjectType( int uniqueId, const String8& path, const String8& mimeType) argument 139 checkRightsStatus( int uniqueId, const String8& path, int action) argument 163 validateAction( int uniqueId, const String8& path, int action, const ActionDescription& description) argument 170 removeRights(int uniqueId, const String8& path) argument [all...] |
/frameworks/av/drm/libdrmframework/plugins/passthru/src/ |
H A D | DrmPassthruPlugIn.cpp | 55 DrmMetadata* DrmPassthruPlugIn::onGetMetadata(int uniqueId, const String8* path) { argument 60 int uniqueId, const String8* path, int action) { 159 bool DrmPassthruPlugIn::onCanHandle(int uniqueId, const String8& path) { argument 160 ALOGV("DrmPassthruPlugIn::canHandle: %s ", path.string()); 161 String8 extension = path.getPathExtension(); 166 String8 DrmPassthruPlugIn::onGetOriginalMimeType(int uniqueId, const String8& path, int fd) { argument 172 int uniqueId, const String8& path, const String8& mimeType) { 177 int DrmPassthruPlugIn::onCheckRightsStatus(int uniqueId, const String8& path, int action) { argument 195 bool DrmPassthruPlugIn::onValidateAction(int uniqueId, const String8& path, argument 201 status_t DrmPassthruPlugIn::onRemoveRights(int uniqueId, const String8& path) { argument 59 onGetConstraints( int uniqueId, const String8* path, int action) argument 171 onGetDrmObjectType( int uniqueId, const String8& path, const String8& mimeType) argument [all...] |
/frameworks/av/media/libeffects/factory/ |
H A D | EffectsFactory.c | 48 static int loadEffectConfigFile(const char *path); 53 static lib_entry_t *getLibrary(const char *path); 408 int loadEffectConfigFile(const char *path) argument 413 data = load_file(path, NULL); 483 l->path = strndup(node->value, PATH_MAX); 495 ALOGV("getLibrary() linked library %p for path %s", l, node->value);
|
/frameworks/av/media/libmedia/ |
H A D | IMediaRecorder.cpp | 158 status_t setOutputFile(const char* path) argument 160 ALOGV("setOutputFile(%s)", path); 163 data.writeCString(path); 383 const char* path = data.readCString(); local 384 reply->writeInt32(setOutputFile(path));
|
/frameworks/av/media/libstagefright/wifi-display/sink/ |
H A D | WifiDisplaySink.cpp | 60 const char *url, AString *host, int32_t *port, AString *path, 64 path->clear(); 76 path->setTo("/"); 79 path->setTo(slashPos); 129 AString path, user, pass; local 132 &mRTSPHost, &sourcePort, &path, &user, &pass) 59 ParseURL( const char *url, AString *host, int32_t *port, AString *path, AString *user, AString *pass) argument
|
/frameworks/base/cmds/rawbu/ |
H A D | backup.cpp | 51 const char* path; member in struct:android::special_dir 65 static int wipe (const char *path) argument 72 dir = opendir(path); 76 path, strerror(errno)); 82 strcpy(nameBuffer, path); 104 /* See if this is a path we should skip. */ 105 for (i = 0; SKIP_PATHS[i].path; i++) { 106 if (strcmp(SKIP_PATHS[i].path, nameBuffer) == 0) { 118 if (!noBackup && SKIP_PATHS[i].path != NULL) { 152 strcpy(nameBuffer, path); 236 write_header(FILE* fh, int type, const char* path, const struct stat* st) argument 438 read_header(FILE* fh, int* type, char** path, struct stat* st) argument 538 char* path = NULL; local [all...] |
/frameworks/base/core/java/android/os/storage/ |
H A D | StorageManager.java | 95 public void onStorageStateChanged(String path, String oldState, String newState) { argument 98 mListeners.get(i).sendStorageStateChanged(path, oldState, newState); 166 changeListener.onObbStateChange(ev.path, ev.state); 181 void sendObbStateChanged(String path, int state) { argument 182 ObbStateChangedStorageEvent e = new ObbStateChangedStorageEvent(path, state); 191 public final String path; field in class:StorageManager.ObbStateChangedStorageEvent 195 public ObbStateChangedStorageEvent(String path, int state) { argument 197 this.path = path; 240 public String path; field in class:StorageManager.StorageStateChangedStorageEvent 288 sendStorageStateChanged(String path, String oldState, String newState) argument [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | JWebCoreJavaBridge.java | 213 * Returns the path of the plugin data directory 283 // Failsafe fallback to just use the last path segment. 289 public void storeFilePathForContentUri(String path, String contentUri) { argument 293 mContentUriToFilePathMap.put(contentUri, path);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Region.cpp | 57 const SkPath* path, const SkRegion* clip) { 58 SkASSERT(dst && path && clip); 59 return dst->setPath(*path, *clip); 67 static jboolean Region_getBoundaryPath(JNIEnv* env, jobject, const SkRegion* region, SkPath* path) { argument 68 return region->getBoundaryPath(path); 56 Region_setPath(JNIEnv* env, jobject, SkRegion* dst, const SkPath* path, const SkRegion* clip) argument
|
/frameworks/base/core/jni/ |
H A D | android_os_SELinux.cpp | 175 * path: the location of the file system object 178 * Exception: NullPointerException is thrown if either path or context strign are NULL 180 static jboolean setFileCon(JNIEnv *env, jobject clazz, jstring path, jstring con) { argument 185 if (path == NULL) { 195 const char *objectPath = env->GetStringUTFChars(path, NULL); 208 env->ReleaseStringUTFChars(path, objectPath); 218 * Purpose: retrieves the context associated with the given path in the file system 220 * path: given path in the file system 224 * Exceptions: NullPointerException if the path objec 226 getFileCon(JNIEnv *env, jobject clazz, jstring path) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
H A D | AsecTests.java | 392 String path = ms.getSecureContainerPath(SECURE_CONTAINER_PREFIX 395 File f = new File(path, "reference"); 416 String path = ms.getSecureContainerPath(SECURE_CONTAINER_PREFIX 419 File f = new File(path, "reference"); 486 String path = ms.getSecureContainerPath(SECURE_CONTAINER_PREFIX + "testContainerSize"); 489 File f = new File(path, "reference"); 499 assertNull("Getting the path for an invalid container should return null", 530 String path; field in class:AsecTests.StorageListener 545 public void onStorageStateChanged(String path, String oldState, String newState) { argument 549 this.path 610 onStorageStateChanged(String path, String oldState, String newState) argument [all...] |
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/graphics/java/android/graphics/ |
H A D | Region.java | 99 * Set the region to the area described by the path and clip. 101 * that is identical to the pixels that would be drawn by the path 104 public boolean setPath(Path path, Region clip) { argument 105 return nativeSetPath(mNativeRegion, path.ni(), clip.mNativeRegion); 146 * the path will also be empty. 149 Path path = new Path(); 150 nativeGetBoundaryPath(mNativeRegion, path.ni()); 151 return path; 155 * Set the path to the boundary of the region. If the region is empty, the 156 * path wil 158 getBoundaryPath(Path path) argument [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | DeviceStorageMonitorService.java | 478 public void onEvent(int event, String path) { argument 479 EventLogTags.writeCacheFileDeleted(path);
|
/frameworks/base/services/jni/ |
H A D | com_android_server_BatteryService.cpp | 136 static int readFromFile(const char* path, char* buf, size_t size) argument 138 if (!path) 140 int fd = open(path, O_RDONLY, 0); 142 ALOGE("Could not open '%s'", path); 159 static void setBooleanField(JNIEnv* env, jobject obj, const char* path, jfieldID fieldID) argument 165 if (readFromFile(path, buf, SIZE) > 0) { 173 static void setIntField(JNIEnv* env, jobject obj, const char* path, jfieldID fieldID) argument 179 if (readFromFile(path, buf, SIZE) > 0) { 185 static void setVoltageField(JNIEnv* env, jobject obj, const char* path, jfieldID fieldID) argument 191 if (readFromFile(path, bu 233 char path[PATH_MAX]; local [all...] |
/frameworks/base/tests/CoreTests/android/core/ |
H A D | SSLSocketTest.java | 71 * @param path The path being requested (e.g. "/index.html"). 79 boolean secure, String path, int outerLoop, int innerLoop, 102 "GET https://" + host + path + " HTTP/1.1"); 105 writer.println("GET https://" + host + path + " HTTP/1.1\r"); 180 private void fetch(String host, int port, boolean secure, String path, argument 183 fetch(clientFactory, host, port, secure, path, outerLoop, innerLoop, 78 fetch(SSLSocketFactory socketFactory, String host, int port, boolean secure, String path, int outerLoop, int innerLoop, int delay, int timeout) argument
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
H A D | SceneManager.java | 128 public static boolean isSDCardPath(String path) { argument 129 int sdCardIndex = path.indexOf("sdcard/"); 134 sdCardIndex = path.indexOf("mnt/sdcard/");
|
/frameworks/native/cmds/dumpstate/ |
H A D | utils.c | 86 char path[255]; local 92 sprintf(path, "/proc/%d/wchan", pid); 93 if ((fd = open(path, O_RDONLY)) < 0) { 94 printf("Failed to open '%s' (%s)\n", path, strerror(errno)); 99 printf("Failed to read '%s' (%s)\n", path, strerror(errno)); 145 int dump_file(const char *title, const char* path) { argument 147 int fd = open(path, O_RDONLY); 150 if (title) printf("------ %s (%s) ------\n", title, path); 151 printf("*** %s: %s\n", path, strerror(err)); 156 if (title) printf("------ %s (%s", title, path); 301 redirect_to_file(FILE *redirect, char *path, int gzip_level) argument 366 should_dump_native_traces(const char* path) argument 446 char path[PATH_MAX]; local 519 play_sound(const char* path) argument [all...] |
/frameworks/wilhelm/tests/examples/ |
H A D | slesTestDecodeToBuffQueue.cpp | 261 /* Decode an audio path by opening a file descriptor on that path */ 262 void TestDecToBuffQueue( SLObjectItf sl, const char* path) argument 264 size_t len = strlen((const char *) path); 269 memcpy(outputPath, path, len + 1); 333 decUri.URI = (SLchar*)path;
|