/frameworks/base/cmds/dumpstate/ |
H A D | utils.c | 75 char path[255]; local 81 sprintf(path, "/proc/%d/wchan", pid); 82 if ((fd = open(path, O_RDONLY)) < 0) { 83 printf("Failed to open '%s' (%s)\n", path, strerror(errno)); 88 printf("Failed to read '%s' (%s)\n", path, strerror(errno)); 100 int dump_file(const char *title, const char* path) { argument 102 int fd = open(path, O_RDONLY); 105 if (title) printf("------ %s (%s) ------\n", title, path); 106 printf("*** %s: %s\n", path, strerror(err)); 111 if (title) printf("------ %s (%s", title, path); 255 redirect_to_file(FILE *redirect, char *path, int gzip_level) argument 384 char path[PATH_MAX], data[PATH_MAX]; local [all...] |
/frameworks/base/cmds/rawbu/ |
H A D | backup.cpp | 49 const char* path; member in struct:android::special_dir 63 static int wipe (const char *path) argument 70 dir = opendir(path); 74 path, strerror(errno)); 80 strcpy(nameBuffer, path); 102 /* See if this is a path we should skip. */ 103 for (i = 0; SKIP_PATHS[i].path; i++) { 104 if (strcmp(SKIP_PATHS[i].path, nameBuffer) == 0) { 116 if (!noBackup && SKIP_PATHS[i].path != NULL) { 150 strcpy(nameBuffer, path); 230 write_header(FILE* fh, int type, const char* path, const struct stat* st) argument 424 read_header(FILE* fh, int* type, char** path, struct stat* st) argument 521 char* path = NULL; local [all...] |
/frameworks/base/core/java/android/server/ |
H A D | BluetoothA2dpService.java | 134 String path = mBluetoothService.getObjectPathFromAddress(address); 136 avrcpVolumeUpNative(path); 138 avrcpVolumeDownNative(path); 245 String path = mBluetoothService.getObjectPathFromAddress(device.getAddress()); 246 String propValues[] = (String []) getSinkPropertiesNative(path); 269 for (String path: paths) { 270 String address = mBluetoothService.getAddressFromObjectPath(path); 341 String path = mBluetoothService.getObjectPathFromAddress(device.getAddress()); 342 if (path == null) 348 if (!connectSinkNative(path)) { 459 onSinkPropertyChanged(String path, String []propValues) argument 580 connectSinkNative(String path) argument 581 disconnectSinkNative(String path) argument 582 suspendSinkNative(String path) argument 583 resumeSinkNative(String path) argument 584 getSinkPropertiesNative(String path) argument 585 avrcpVolumeUpNative(String path) argument 586 avrcpVolumeDownNative(String path) argument [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | CookieManager.java | 46 private static final String PATH = "path"; 127 String path; field in class:CookieManager.Cookie 148 path = defaultPath; 153 // An exact match means that domain, path, and name are equal. If 158 return domain.equals(in.domain) && path.equals(in.path) && 181 if (urlPath.startsWith(path)) { 182 int len = path.length(); 184 Log.w(LOGTAG, "Empty cookie path"); 188 if (path 781 parseCookie(String host, String path, String cookieString) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Region.cpp | 34 const SkPath* path, const SkRegion* clip) { 35 SkASSERT(dst && path && clip); 36 return dst->setPath(*path, *clip); 44 static jboolean Region_getBoundaryPath(JNIEnv* env, jobject, const SkRegion* region, SkPath* path) { argument 45 return region->getBoundaryPath(path); 33 Region_setPath(JNIEnv* env, jobject, SkRegion* dst, const SkPath* path, const SkRegion* clip) argument
|
H A D | Path.cpp | 62 static void setFillType(JNIEnv* env, jobject clazz, SkPath* path, argument 64 path->setFillType(ft);
|
/frameworks/base/core/jni/ |
H A D | android_database_SQLiteDatabase.cpp | 66 static char *createStr(const char *path) { argument 67 int len = strlen(path); 69 strncpy(str, path, len); 81 static void registerLoggingFunc(const char *path) { argument 88 int err = sqlite3_config(SQLITE_CONFIG_LOG, &sqlLogger, (void *)createStr(path)); 96 /* public native void dbopen(String path, int flags, String locale); */ 180 char const *path = env->GetStringUTFChars(databaseName, NULL); local 181 if (path == NULL) { 185 char *dbNameStr = createStr(path); 186 env->ReleaseStringUTFChars(databaseName, path); [all...] |
H A D | android_bluetooth_common.cpp | 123 const char *path, 134 msg = dbus_message_new_method_call(BLUEZ_DBUS_BASE_IFC, path, ifc, func); 180 const char *path, 191 path, ifc, func, 207 const char *path, 223 msg = dbus_message_new_method_call(BLUEZ_DBUS_BASE_IFC, path, ifc, func); 253 const char *path, 262 path, ifc, func, 270 const char *path, 279 path, if 115 dbus_func_args_async_valist(JNIEnv *env, DBusConnection *conn, int timeout_ms, void (*user_cb)(DBusMessage *, void *, void*), void *user, void *nat, const char *path, const char *ifc, const char *func, int first_arg_type, va_list args) argument 174 dbus_func_args_async(JNIEnv *env, DBusConnection *conn, int timeout_ms, void (*reply)(DBusMessage *, void *, void*), void *user, void *nat, const char *path, const char *ifc, const char *func, int first_arg_type, ...) argument 203 dbus_func_args_timeout_valist(JNIEnv *env, DBusConnection *conn, int timeout_ms, DBusError *err, const char *path, const char *ifc, const char *func, int first_arg_type, va_list args) argument 250 dbus_func_args_timeout(JNIEnv *env, DBusConnection *conn, int timeout_ms, const char *path, const char *ifc, const char *func, int first_arg_type, ...) argument 268 dbus_func_args(JNIEnv *env, DBusConnection *conn, const char *path, const char *ifc, const char *func, int first_arg_type, ...) argument 285 dbus_func_args_error(JNIEnv *env, DBusConnection *conn, DBusError *err, const char *path, const char *ifc, const char *func, int first_arg_type, ...) argument [all...] |
H A D | android_server_BluetoothService.cpp | 153 LOGE("%s: Can't register object path %s for remote device agent!", 328 jstring path, 338 const char *c_path = env->GetStringUTFChars(path, NULL); 348 env->ReleaseStringUTFChars(path, c_path); 549 jstring path) 559 const char *c_path = env->GetStringUTFChars(path, NULL); 564 env->ReleaseStringUTFChars(path, c_path); 698 static jboolean setDevicePropertyNative(JNIEnv *env, jobject object, jstring path, argument 709 const char *c_path = env->GetStringUTFChars(path, NULL); 717 env->ReleaseStringUTFChars(path, c_pat 327 getDeviceServiceChannelNative(JNIEnv *env, jobject object, jstring path, jstring pattern, jint attr_id) argument 548 getDevicePropertiesNative(JNIEnv *env, jobject object, jstring path) argument 743 setDevicePropertyBooleanNative(JNIEnv *env, jobject object, jstring path, jstring key, jint value) argument 785 discoverServicesNative(JNIEnv *env, jobject object, jstring path, jstring pattern) argument [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | Region.java | 91 * Set the region to the area described by the path and clip. 93 * that is identical to the pixels that would be drawn by the path 96 public boolean setPath(Path path, Region clip) { argument 97 return nativeSetPath(mNativeRegion, path.ni(), clip.mNativeRegion); 138 * the path will also be empty. 141 Path path = new Path(); 142 nativeGetBoundaryPath(mNativeRegion, path.ni()); 143 return path; 147 * Set the path to the boundary of the region. If the region is empty, the 148 * path wil 150 getBoundaryPath(Path path) argument [all...] |
/frameworks/base/libs/utils/ |
H A D | BackupHelpers.cpp | 549 write_text_file(const char* path, const char* data) argument 555 fd = creat(path, 0666); 557 fprintf(stderr, "creat %s failed\n", path); 564 fprintf(stderr, "error (%s) writing to file %s\n", strerror(errno), path); 574 compare_file(const char* path, const unsigned char* data, int len) argument 579 fd = open(path, O_RDONLY); 581 fprintf(stderr, "compare_file error (%s) opening %s\n", strerror(errno), path);
|
/frameworks/base/media/libdrm/mobile1/src/objmng/ |
H A D | drm_file.c | 49 static int calcDirSize(char *path, int len, uint8_t includeSubdirs); 123 * calculate the size of everything inside path pointed directory 124 * this function will use path pointed buffer to store some extra info 126 * @param path the directory path need to calculate 127 * @param len length of the path buffer, not the path string length 128 * @param includeSubdirs also calculate all the subdirs in path holds? 131 static int calcDirSize(char *path, int len, uint8_t includeSubdirs) argument 139 int dirPathLen = strlen(path); [all...] |
/frameworks/base/media/libmedia/ |
H A D | IMediaRecorder.cpp | 140 status_t setOutputFile(const char* path) argument 142 LOGV("setOutputFile(%s)", path); 145 data.writeCString(path); 365 const char* path = data.readCString(); local 366 reply->writeInt32(setOutputFile(path));
|
/frameworks/base/media/libmediaplayerservice/ |
H A D | VorbisPlayer.cpp | 133 status_t VorbisPlayer::setdatasource(const char *path, int fd, int64_t offset, int64_t length) argument 135 LOGV("setDataSource url=%s, fd=%d\n", path, fd); 144 if (path) { 145 mFile = fopen(path, "r"); 155 if (path) { 156 ret = stat(path, &sb);
|
/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/cmds/installd/ |
H A D | commands.c | 180 static int is_valid_apk_path(const char *path) argument 184 if (strncmp(path, APK_DIR_PREFIX, len)) { 186 if (strncmp(path, PROTECTED_DIR_PREFIX, len)) { 188 if (strncmp(path, SDCARD_DIR_PREFIX, len)) { 189 LOGE("invalid apk path '%s' (bad prefix)\n", path); 196 if ((nosubdircheck != 1) && strchr(path + len, '/')) { 197 LOGE("invalid apk path '%s' (subdir?)\n", path); 200 if (path[le 226 rm_dex(const char *path) argument 323 char path[PKG_PATH_MAX]; local 403 create_cache_path(char path[PKG_PATH_MAX], const char *src) argument 595 create_move_path(char path[PKG_PATH_MAX], const char* prefix, const char* pkgname, const char* leaf) argument 608 mkinnerdirs(char* path, int basepos, mode_t mode, int uid, int gid, struct stat* statbuf) argument [all...] |
/frameworks/base/core/java/android/app/ |
H A D | ApplicationThreadNative.java | 355 String path = data.readString(); 358 profilerControl(start, path, fd); 782 public void profilerControl(boolean start, String path, argument 787 data.writeString(path);
|
H A D | IApplicationThread.java | 99 void profilerControl(boolean start, String path, ParcelFileDescriptor fd) argument
|
/frameworks/base/core/java/android/os/ |
H A D | Process.java | 772 public static final native void readProcLines(String path, argument 776 public static final native int[] getPids(String path, int[] lastArray); argument
|
/frameworks/base/core/java/android/widget/ |
H A D | VideoView.java | 173 public void setVideoPath(String path) { argument 174 setVideoURI(Uri.parse(path));
|
/frameworks/base/media/java/android/media/ |
H A D | JetPlayer.java | 205 * Loads a .jet file from a given path. 206 * @param path the path to the .jet file, for instance "/sdcard/mygame/music.jet". 209 public boolean loadJetFile(String path) { argument 210 return native_loadJetFromFile(path);
|
/frameworks/base/media/jni/soundpool/ |
H A D | SoundPool.cpp | 173 int SoundPool::load(const char* path, int priority) argument 175 LOGV("load: path=%s, priority=%d", path, priority); 177 sp<Sample> sample = new Sample(++mNextSampleID, path);
|
/frameworks/base/tools/aidl/ |
H A D | aidl.cpp | 622 // create the path to the destination folder based on the 651 check_outputFileName(const string& path) { argument 652 size_t len = path.length(); 654 if (path[i] == OS_PATH_SEPARATOR) { 655 string p = path.substr(0, i); 656 if (access(path.data(), F_OK) != 0) {
|
/frameworks/base/awt/java/awt/ |
H A D | Toolkit.java | 356 * @param path 357 * the path. 360 private static ResourceBundle loadResources(String path) { argument 362 return ResourceBundle.getBundle(path);
|
/frameworks/base/core/java/android/content/ |
H A D | IntentFilter.java | 43 * and/or path) in an Intent. It also includes a "priority" value which is 63 * itself divided into three attributes: type, scheme, authority, and path. 73 * To specify a path, you also must specify both one or more authorities and 80 * <strong>data scheme+authority+path</strong> if specified) must match. 112 * Intent's data path <em>and</em> both a scheme and authority in the filter 127 private static final String PATH_STR = "path"; 202 * authority, and path. 765 * path to be considered. If any paths are 770 * <p>The path given here can either be a literal that must directly 776 * @param path Eithe 787 addDataPath(String path, int type) argument [all...] |