/external/toybox/toys/other/ |
sysctl.c | 51 static int write_key(char *path, char *key, char *value) 53 int fd = open(path, O_WRONLY);; 66 // Display all keys under a path 69 char *path, *data, *key; local 74 path = dirtree_path(dt, 0); 75 data = readfile(path, 0, 0); 76 replace_char(key = path + 10, '/', '.'); // skip "/proc/sys/" 88 free(path); 96 char *path; local 105 path = xmprintf("/proc/sys/%s", key) [all...] |
/external/vogar/src/vogar/ |
Action.java | 55 * Returns this action's source path, or {@code null} if this file wasn't 106 String path = javaFile.getAbsolutePath(); local 107 int indexOfTest = path.indexOf(TEST_ROOT); 108 path = (indexOfTest != -1) 109 ? path.substring(indexOfTest + TEST_ROOT.length(), path.length() - ".java".length()) 110 : path.substring(1); 111 return path.replace(File.separatorChar, '.');
|
/external/webrtc/webrtc/base/ |
pathutils.h | 67 // returns a string representing the current directory (as a relative path, 122 inline bool CreateFolder(const Pathname& path) { 123 return Filesystem::CreateFolder(path); 125 inline bool FinishPath(Pathname& path, bool create, const std::string& append) { 127 path.AppendFolder(append); 128 return !create || CreateFolder(path); 134 inline bool GetTemporaryFolder(Pathname& path, bool create, 139 return Filesystem::GetTemporaryFolder(path, create, &application_name) 140 && FinishPath(path, create, append); 142 inline bool GetAppDataFolder(Pathname& path, bool create 149 Pathname path; local [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
SQLiteDatabaseConfiguration.java | 44 * Special path used by in-memory databases. 49 * The database path. 51 public final String path; field in class:SQLiteDatabaseConfiguration 55 * This is derived from the path but is stripped to remove PII. 96 * @param path The database path. 99 public SQLiteDatabaseConfiguration(String path, int openFlags) { 100 if (path == null) { 101 throw new IllegalArgumentException("path must not be null."); 104 this.path = path [all...] |
/frameworks/base/libs/hwui/tests/microbench/ |
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/native/libs/input/ |
InputDevice.cpp | 43 static void appendInputDeviceConfigurationFileRelativePath(String8& path, 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.string()) [all...] |
/hardware/libhardware/ |
hardware.c | 30 /** Base path of the hal modules */ 69 const char *path, 81 handle = dlopen(path, RTLD_NOW); 84 ALOGE("load: module=%s\n%s", path, err_str?err_str:"unknown"); 118 ALOGV("loaded HAL id=%s path=%s hmi=%p handle=%p", 119 id, path, *pHmi, handle); 129 * otherwise return negative. On success path will contain the path to the HAL. 131 static int hw_module_exists(char *path, size_t path_len, const char *name, 134 snprintf(path, path_len, "%s/%s.%s.so" 157 char path[PATH_MAX] = {0}; local [all...] |
/libcore/ojluni/src/main/native/ |
canonicalize_md.c | 121 /* Collapse "." and ".." names in the given path wherever possible. 128 collapse(char *path) 130 char *names = (path[0] == '/') ? path + 1 : path; /* Preserve first '/' */ 184 /* Convert a pathname to canonical form. The input path is assumed to contain 202 /* First try realpath() on the entire path */ 209 /* Something's bogus in the original path, so remove names from the end 212 char path[PATH_MAX + 1]; local 214 strncpy(path, original, sizeof(path)) [all...] |
/ndk/sources/android/libthread_db/ |
libthread_db.c | 71 char path[32]; local 76 snprintf(path, sizeof(path), "/proc/%d/task/", agent->pid); 77 dir = opendir(path);
|
/packages/apps/Camera2/src/com/android/camera/data/ |
VideoRotationMetadataLoader.java | 35 final String path = data.getData().getFilePath(); local 38 retriever.setDataSource(path);
|
/packages/apps/QuickSearchBox/tests/naughty/src/com/android/quicksearchbox/tests/naughty/ |
CrashingSuggestionProvider.java | 52 List<String> path = uri.getPathSegments(); local 54 if (path.size() > 0) { 55 query = path.get(path.size()-1);
|
HangingSuggestionProvider.java | 47 List<String> path = uri.getPathSegments(); local 49 if (path.size() > 0) { 50 query = path.get(path.size()-1);
|
/packages/apps/Settings/src/com/android/settings/ |
SettingsLicenseActivity.java | 45 final String path = SystemProperties.get(PROPERTY_LICENSE_PATH, DEFAULT_LICENSE_PATH); local 46 if (TextUtils.isEmpty(path)) { 52 final File file = new File(path); 54 Log.e(TAG, "License file " + path + " does not exist");
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_linecache.py | 5 import os.path namespace 14 TEST_PATH = os.path.dirname(support.__file__) 16 MODULE_PATH = os.path.dirname(FILENAME) 57 filename = os.path.join(TEST_PATH, entry) + '.py' 63 filename = os.path.join(MODULE_PATH, entry) + '.py' 81 filename = os.path.join(TEST_PATH, entry) + '.py'
|
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_linecache.py | 5 import os.path namespace 14 TEST_PATH = os.path.dirname(support.__file__) 16 MODULE_PATH = os.path.dirname(FILENAME) 57 filename = os.path.join(TEST_PATH, entry) + '.py' 63 filename = os.path.join(MODULE_PATH, entry) + '.py' 81 filename = os.path.join(TEST_PATH, entry) + '.py'
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/tests/ |
support.py | 8 import os.path namespace 16 test_dir = os.path.dirname(__file__) 17 proj_dir = os.path.normpath(os.path.join(test_dir, "..")) 18 grammar_path = os.path.join(test_dir, "..", "Grammar.txt") 52 yield os.path.join(dirpath, filename)
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_linecache.py | 5 import os.path namespace 14 TEST_PATH = os.path.dirname(support.__file__) 16 MODULE_PATH = os.path.dirname(FILENAME) 57 filename = os.path.join(TEST_PATH, entry) + '.py' 63 filename = os.path.join(MODULE_PATH, entry) + '.py' 81 filename = os.path.join(TEST_PATH, entry) + '.py'
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/tests/ |
support.py | 8 import os.path namespace 16 test_dir = os.path.dirname(__file__) 17 proj_dir = os.path.normpath(os.path.join(test_dir, "..")) 18 grammar_path = os.path.join(test_dir, "..", "Grammar.txt") 52 yield os.path.join(dirpath, filename)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_linecache.py | 5 import os.path namespace 14 TEST_PATH = os.path.dirname(support.__file__) 16 MODULE_PATH = os.path.dirname(FILENAME) 57 filename = os.path.join(TEST_PATH, entry) + '.py' 63 filename = os.path.join(MODULE_PATH, entry) + '.py' 81 filename = os.path.join(TEST_PATH, entry) + '.py'
|
/system/bt/service/ipc/ |
ipc_handler_linux.cpp | 51 const base::FilePath& path = local 55 CHECK(android_suffix.empty() || path.empty()); 56 if (android_suffix.empty() && path.empty()) { 57 LOG(ERROR) << "No domain socket path provided"; 73 LOG(INFO) << "Creating a Unix domain socket:" << path.value(); 79 unlink(path.value().c_str()); 90 strncpy(address.sun_path, path.value().c_str(), 99 socket_path_ = path;
|
/system/connectivity/shill/cellular/ |
modem_manager.h | 48 const std::string& path, 65 const std::string& path() const { return path_; } function in class:shill::ModemManager 79 bool ModemExists(const std::string& path) const; 83 // Removes a modem on |path|. 84 void RemoveModem(const std::string& path); 105 Modems modems_; // Maps a modem |path| to a modem instance. 116 const std::string& path, 125 void OnDeviceAdded(const std::string& path); 126 void OnDeviceRemoved(const std::string& path); 132 virtual void AddModemClassic(const std::string& path); [all...] |
/system/connectivity/shill/wimax/ |
wimax.h | 48 const RpcIdentifier& path); 72 const RpcIdentifier& path() const { return path_; } function in class:shill::WiMax
|
/system/core/debuggerd/ |
backtrace.cpp | 43 char path[PATH_MAX]; local 48 snprintf(path, sizeof(path), "/proc/%d/cmdline", pid); 49 if ((fp = fopen(path, "r"))) { 72 char path[PATH_MAX]; local 77 snprintf(path, sizeof(path), "/proc/%d/comm", tid); 78 if ((fp = fopen(path, "r"))) {
|
/system/core/fingerprintd/ |
IFingerprintDaemon.cpp | 155 const uint8_t* path = static_cast<const uint8_t *>(data.readInplace(pathSize)); local 156 const int32_t ret = setActiveGroup(group, path, pathSize);
|
/system/extras/boot_control_copy/ |
bootinfo.c | 58 char *path; local 89 path = strdup(record->blk_device); 99 path = calloc(trimmed_len + name_len + 1, 1); 100 strncpy(path, record->blk_device, trimmed_len); 101 strncpy(path + trimmed_len, name, name_len); 105 fd = open(path, flags); 106 free(path);
|