/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
BinaryDictionaryGetter.java | 70 * Generates a unique temporary file name in the app cache directory. 75 final File directory = new File(DictionaryInfoUtils.getWordListTempDirectory(context)); local 76 if (!directory.exists()) { 77 if (!directory.mkdirs()) { 78 Log.e(TAG, "Could not create the temporary directory"); 84 return File.createTempFile("xxx" + safeId, null, directory).getAbsolutePath(); 165 for (File directory : directoryList) { 166 if (!directory.isDirectory()) continue; 168 DictionaryInfoUtils.getWordListIdFromFileName(directory.getName()); 171 final File[] wordLists = directory.listFiles() [all...] |
/development/samples/training/bitmapfun/BitmapFun/src/main/java/com/example/android/bitmapfun/util/ |
DiskLruCache.java | 63 * <p>The cache stores its data in a directory on the filesystem. This 64 * directory must be exclusive to the cache; the cache may delete or overwrite 65 * files from its directory. It is an error for multiple processes to use the 66 * same cache directory at the same time. 154 private final File directory; field in class:DiskLruCache 257 throw new IllegalArgumentException("not a directory: " + dir); 288 private DiskLruCache(File directory, int appVersion, int valueCount, long maxSize) { 289 this.directory = directory; 291 this.journalFile = new File(directory, JOURNAL_FILE) [all...] |
/external/okhttp/src/main/java/com/squareup/okhttp/internal/ |
DiskLruCache.java | 51 * <p>The cache stores its data in a directory on the filesystem. This 52 * directory must be exclusive to the cache; the cache may delete or overwrite 53 * files from its directory. It is an error for multiple processes to use the 54 * same cache directory at the same time. 141 private final File directory; field in class:DiskLruCache 180 private DiskLruCache(File directory, int appVersion, int valueCount, long maxSize) { 181 this.directory = directory; 183 this.journalFile = new File(directory, JOURNAL_FILE); 184 this.journalFileTmp = new File(directory, JOURNAL_FILE_TEMP) [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
FileTest.java | 31 File directory = new File(base, UUID.randomUUID().toString()); local 32 assertTrue(directory.mkdirs()); 33 return directory; 124 // directory is? (In practice, on Android, our temporary directory is accessed through 149 // This assumes you can create symbolic links in the temporary directory. This isn't 230 // Set up a directory to test in. 233 // mkdirs returns true only if it _creates_ a directory. 234 // So we get false for a directory that already exists... 257 // Test the case where the 'directory' exists as a file [all...] |
/external/chromium/base/win/ |
pe_image.cc | 100 DWORD PEImage::GetImageDirectoryEntrySize(UINT directory) const { 103 return nt_headers->OptionalHeader.DataDirectory[directory].Size; 106 PVOID PEImage::GetImageDirectoryEntryAddr(UINT directory) const { 110 nt_headers->OptionalHeader.DataDirectory[directory].VirtualAddress); 256 PVOID directory = GetImageDirectoryEntryAddr(IMAGE_DIRECTORY_ENTRY_EXPORT); local 260 if (NULL == directory || 0 == size) 264 directory); 294 if (reinterpret_cast<char*>(func) >= reinterpret_cast<char*>(directory) && 295 reinterpret_cast<char*>(func) <= reinterpret_cast<char*>(directory) + 310 PVOID directory = GetImageDirectoryEntryAddr(IMAGE_DIRECTORY_ENTRY_BASERELOC) local 396 PVOID directory = GetImageDirectoryEntryAddr( local [all...] |
/external/chromium/chrome/common/extensions/ |
extension_unittest.cc | 1140 ScopedTempDir directory; local [all...] |
/external/chromium_org/base/win/ |
pe_image.cc | 101 DWORD PEImage::GetImageDirectoryEntrySize(UINT directory) const { 104 return nt_headers->OptionalHeader.DataDirectory[directory].Size; 107 PVOID PEImage::GetImageDirectoryEntryAddr(UINT directory) const { 111 nt_headers->OptionalHeader.DataDirectory[directory].VirtualAddress); 257 PVOID directory = GetImageDirectoryEntryAddr(IMAGE_DIRECTORY_ENTRY_EXPORT); local 261 if (NULL == directory || 0 == size) 265 directory); 295 if (reinterpret_cast<char*>(func) >= reinterpret_cast<char*>(directory) && 296 reinterpret_cast<char*>(func) <= reinterpret_cast<char*>(directory) + 311 PVOID directory = GetImageDirectoryEntryAddr(IMAGE_DIRECTORY_ENTRY_BASERELOC) local 397 PVOID directory = GetImageDirectoryEntryAddr( local [all...] |
/external/chromium_org/chrome/browser/profiles/ |
off_the_record_profile_impl.cc | 391 const base::FilePath& directory = last_selected_directory_; local 392 if (directory.empty()) { 395 return directory;
|
/external/chromium_org/content/common/ |
sandbox_win.cc | 115 base::FilePath directory; local 116 if (!PathService::Get(path, &directory)) 120 directory = base::MakeAbsoluteFilePath(directory.Append(sub_dir)); 124 directory.value().c_str()); 128 std::wstring directory_str = directory.value() + L"\\";
|
/external/chromium_org/sync/engine/ |
sync_directory_update_handler_unittest.cc | 15 #include "sync/syncable/directory.h" 35 // the received protobuf message into information in the syncable::Directory. 53 syncable::Directory* dir() { 54 return dir_maker_.directory(); 63 // Warning: This takes the syncable directory lock. 79 base::MessageLoop loop_; // Needed to initialize the directory. 238 // previously downloaded, processed, and stored in our syncable::Directory 239 // and use them to update our local state (both the Directory's local state 240 // and the model's local state, though these tests focus only on the Directory's 260 entry_factory_.reset(new TestEntryFactory(directory())); 289 syncable::Directory* directory() { function in class:syncer::SyncDirectoryUpdateHandlerApplyUpdateTest [all...] |
sync_scheduler_unittest.cc | 134 connection_.reset(new MockConnectionManager(directory(), 138 connection_.get(), directory(), workers, 220 syncable::Directory* directory() { function in class:syncer::SyncSchedulerTest 221 return dir_maker_.directory(); [all...] |
/external/chromium_org/sync/internal_api/ |
sync_encryption_handler_impl_unittest.cc | 100 syncer::syncable::Directory* directory = user_share()->directory.get(); local 104 syncable::WriteTransaction wtrans(FROM_HERE, syncable::UNITTEST, directory); [all...] |
/external/chromium_org/third_party/icu/source/test/cintltst/ |
cintltst.c | 94 /* Check whether ICU will initialize without forcing the build data directory into 290 // may not be the same as the source directory, depending on 292 // set the data path to the built data from this directory. 329 /* __FILE__ on MSVC7 does not contain the directory */ 357 // may not be the same as the source directory, depending on 359 // set the data path to the built data from this directory. 396 /* __FILE__ on MSVC7 does not contain the directory */ 413 * set, try to deduce the directory in which ICU was built, 433 * The ICU data directory must be preserved across these operations. 521 const char* directory=NULL local [all...] |
ucnvseltst.c | 167 const char* directory= ctest_dataSrcDir(); local 168 needLen = uprv_strlen(directory)+uprv_strlen(TDSRCPATH)+uprv_strlen(filename)+1; 175 strcpy(fnbuf, directory);
|
/external/chromium_org/third_party/icu/source/test/iotest/ |
iotest.cpp | 72 // may not be the same as the source directory, depending on 74 // set the data path to the built data from this directory. 111 /* __FILE__ on MSVC7 does not contain the directory */ 130 const char* directory=NULL; local 137 directory = U_TOPBUILDDIR; 140 directory = pathToDataDirectory(); 143 tdpath = (char*) malloc(sizeof(char) *(( strlen(directory) * strlen(tdrelativepath)) + 100)); 147 * directory to ..\source\data\..\test\testdata\out\testdata 149 strcpy(tdpath, directory); 713 // may not be the same as the source directory, depending o [all...] |
/external/chromium_org/third_party/libxml/src/ |
parserInternals.c | 1542 char *directory = NULL; local [all...] |
/external/chromium_org/tools/site_compare/ |
site_compare.py | 9 saving the rendered results to a specified directory, then 18 import os # Functions for walking the directory tree namespace 137 out_file.write("Does not exist in target directory\n") 138 print "File %s does not exist in target directory" % filename
|
/external/icu4c/test/cintltst/ |
cintltst.c | 102 /* Check whether ICU will initialize without forcing the build data directory into 302 // may not be the same as the source directory, depending on 304 // set the data path to the built data from this directory. 341 /* __FILE__ on MSVC7 does not contain the directory */ 369 // may not be the same as the source directory, depending on 371 // set the data path to the built data from this directory. 408 /* __FILE__ on MSVC7 does not contain the directory */ 425 * set, try to deduce the directory in which ICU was built, 445 * The ICU data directory must be preserved across these operations. 533 const char* directory=NULL local [all...] |
ucnvseltst.c | 167 const char* directory= ctest_dataSrcDir(); local 168 needLen = uprv_strlen(directory)+uprv_strlen(TDSRCPATH)+uprv_strlen(filename)+1; 175 strcpy(fnbuf, directory);
|
/external/icu4c/test/iotest/ |
iotest.cpp | 72 // may not be the same as the source directory, depending on 74 // set the data path to the built data from this directory. 111 /* __FILE__ on MSVC7 does not contain the directory */ 130 const char* directory=NULL; local 137 directory = U_TOPBUILDDIR; 140 directory = pathToDataDirectory(); 143 tdpath = (char*) malloc(sizeof(char) *(( strlen(directory) * strlen(tdrelativepath)) + 100)); 147 * directory to ..\source\data\..\test\testdata\out\testdata 149 strcpy(tdpath, directory); 714 // may not be the same as the source directory, depending o [all...] |
/external/libxml2/ |
parserInternals.c | 1542 char *directory = NULL; local [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
DictionaryInfoUtils.java | 100 * Escapes a string for any characters that may be suspicious for a file or directory name. 125 * Helper method to get the top level cache directory. 132 * Helper method to get the top level temp directory. 183 * Find out the cache directory associated with a specific locale. 189 final File directory = new File(absoluteDirectoryName); local 190 if (!directory.exists()) { 191 if (!directory.mkdirs()) { 192 Log.e(TAG, "Could not create the directory for locale" + locale); 205 * The file name is pretty much an URL-encoded version of the id inside a directory 210 * @param context the context to use for getting the directory [all...] |
/system/extras/ext4_utils/ |
make_ext4fs.c | 103 /* Read a local directory and create the same tree in the generated filesystem. 104 Calls itself recursively with each directory in the given directory. 106 directory on disk that should be copied, or NULL if this is a directory 108 dir_path is an absolute path, with trailing slash, to the same directory 134 /* root directory, check if lost+found already exists */ 220 /* insert a lost+found directory at the beginning of the dentries */ 466 char *directory = NULL; local 478 directory = canonicalize_rel_slashes(_directory) [all...] |
/external/chromium/base/ |
file_util_posix.cc | 265 LOG(ERROR) << "CopyDirectory() couldn't stat source directory: " << 273 // If the destination already exists and is a directory, then the 279 // will always have a directory for from_path. 296 LOG(ERROR) << "CopyDirectory() couldn't create directory: " << 400 // Creates and opens a temporary file in |directory|, returning the 403 int CreateAndOpenFdForTemporaryFile(FilePath directory, FilePath* path) { 405 *path = directory.Append(kTempFileName); 415 FilePath directory; local 416 if (!GetTempDir(&directory)) 418 int fd = CreateAndOpenFdForTemporaryFile(directory, path) 426 FilePath directory; local [all...] |
/external/chromium/chrome/browser/ui/views/ |
shell_dialogs_win.cc | 272 // Set up the initial directory for the dialog. 273 std::wstring directory; local 275 directory = FilePath(suggested_name).DirName().value(); 277 save_as.lpstrInitialDir = directory.c_str(); 345 // directory, and filter for .png file types. [all...] |