/external/junit/src/org/junit/rules/ |
H A D | TemporaryFolder.java | 16 * public TemporaryFolder folder= new TemporaryFolder(); 20 * File createdFile= folder.newFile("myfile.txt"); 21 * File createdFolder= folder.newFolder("subfolder"); 28 private File folder; field in class:TemporaryFolder 45 folder= newFolder(); 49 * Returns a new fresh file with the given name under the temporary folder. 58 * Returns a new fresh file with a random name under the temporary folder. 61 return File.createTempFile("junit", null, folder); 65 * Returns a new fresh folder with the given name under the temporary folder [all...] |
/external/chromium/chrome/browser/extensions/ |
H A D | extension_bookmarks_unittest.cc | 22 folder = model_->AddFolder( 23 model_->other_node(), 0, ASCIIToUTF16("outer folder")); 24 model_->AddFolder(folder, 0, ASCIIToUTF16("inner folder 1")); 25 model_->AddFolder(folder, 0, ASCIIToUTF16("inner folder 2")); 26 model_->AddURL(folder, 0, ASCIIToUTF16("Digg"), GURL("http://reddit.com")); 27 model_->AddURL(folder, 0, ASCIIToUTF16("CNet"), GURL("http://cnet.com")); 31 const BookmarkNode* folder; member in class:ExtensionBookmarksTest 55 folder, [all...] |
H A D | extension_bookmark_manager_apitest.cc | 35 const BookmarkNode* folder = model->AddFolder(bar, 0, ASCIIToUTF16("Folder")); local 38 node = model->AddURL(folder, 0, ASCIIToUTF16("BBB"),
|
/external/apache-harmony/support/src/test/java/tests/support/resource/ |
H A D | Support_Resources.java | 43 String folder = null; 48 folder = name.substring(0, index); 51 copyFile(resources, folder, name); 66 File folder = null; 68 folder = File.createTempFile("hyts_resources", "", null); 69 folder.delete(); 70 folder.mkdirs(); 74 folder.deleteOnExit(); 75 return folder; 78 public static void copyFile(File root, String folder, Strin argument [all...] |
/external/chromium_org/third_party/libjingle/source/talk/base/ |
H A D | pathutils_unittest.cc | 37 EXPECT_FALSE(path.folder().empty()); 44 EXPECT_TRUE (path.folder().empty()); 51 EXPECT_TRUE (path.folder().empty()); 58 EXPECT_FALSE(path.folder().empty());
|
H A D | pathutils.h | 40 // To establish consistent terminology, a filename never contains a folder 41 // component. A folder never contains a filename. A pathname may include 42 // a folder and/or filename component. Here are some examples: 45 // folder() /home/john/ 52 // Basename may begin, end, and/or include periods, but no folder delimiters. 65 Pathname(const std::string& folder, const std::string& filename); 67 // Set's the default folder delimiter for this Pathname 71 // Normalize changes all folder delimiters to folder_delimiter() 83 // Returns the folder and filename components. If the pathname is empty, 88 void SetPathname(const std::string& folder, cons [all...] |
H A D | unixfilesystem.h | 43 // only supports an Objective-C API for fetching the folder locations, so that 46 static void SetAppDataFolder(const std::string& folder); 47 static void SetAppTempFolder(const std::string& folder); 63 // This will attempt to delete the folder located at 'folder' 64 // It ASSERTs and returns false if you pass it a non-existant folder or a 66 virtual bool DeleteEmptyFolder(const Pathname &folder); 104 // A folder appropriate for storing temporary files (Contents are 118 // Get a temporary folder that is unique to the current user and application.
|
H A D | pathutils.cc | 49 // FOLDER_DELIMS separate folder segments and the filename 80 Pathname::Pathname(const std::string& folder, const std::string& filename) argument 82 SetPathname(folder, filename); 144 void Pathname::SetPathname(const std::string& folder, argument 146 SetFolder(folder); 156 std::string Pathname::folder() const { function in class:talk_base::Pathname 184 void Pathname::SetFolder(const std::string& folder) { argument 185 folder_.assign(folder); 186 // Ensure folder ends in a path delimiter 192 void Pathname::AppendFolder(const std::string& folder) { argument [all...] |
H A D | unixfilesystem.cc | 73 void UnixFilesystem::SetAppDataFolder(const std::string& folder) { 75 provided_app_data_folder_ = CopyString(folder); 78 void UnixFilesystem::SetAppTempFolder(const std::string& folder) { 80 provided_app_temp_folder_ = CopyString(folder); 109 LOG(LS_INFO) << "Creating folder: " << pathname; 153 bool UnixFilesystem::DeleteEmptyFolder(const Pathname &folder) { argument 154 LOG(LS_INFO) << "Deleting folder" << folder.pathname(); 156 if (!IsFolder(folder)) { 157 ASSERT(IsFolder(folder)); [all...] |
H A D | fileutils.h | 136 // It ASSERTS and returns false if the path points to a folder or a 140 // This will attempt to delete the empty folder located at 'folder' 142 // folder. It fails normally if the folder is not empty or can otherwise 144 virtual bool DeleteEmptyFolder(const Pathname &folder) = 0; 148 // folder. If the folder is empty, this returns true. 149 virtual bool DeleteFolderContents(const Pathname &folder); 151 // This deletes the contents of a folder, recursivel 153 DeleteFolderAndContents(const Pathname &folder) argument 324 DeleteEmptyFolder(const Pathname &folder) argument 328 DeleteFolderContents(const Pathname &folder) argument 332 DeleteFolderAndContents(const Pathname &folder) argument [all...] |
H A D | fileutils.cc | 204 bool FilesystemInterface::DeleteFolderContents(const Pathname &folder) { argument 206 VERIFY(IsFolder(folder)); 210 if (di->Iterate(folder)) { 215 subdir.SetFolder(folder.pathname()); 252 // If no folder is supplied, use the temporary folder 253 if (path.folder().empty()) { 264 std::string folder(path.folder()); 265 std::string filename = Filesystem::TempFilename(folder, "g [all...] |
/external/chromium_org/ui/app_list/ |
H A D | app_list_model_unittest.cc | 97 bool ItemObservedByFolder(AppListFolderItem* folder, argument 99 return item->observers_.HasObserver(folder); 244 scoped_ptr<AppListFolderItem> folder(new AppListFolderItem("folder1")); 249 folder->item_list()->AddItem(model_.CreateItem(name, name)); 253 folder.get(), folder->item_list()->item_at(0))); 255 folder.get(), folder->item_list()->item_at(num_observed_apps - 1))); 258 folder.get(), folder [all...] |
/external/chromium_org/chrome/browser/android/bookmarks/ |
H A D | bookmarks_bridge.cc | 102 const BookmarkNode* folder = GetFolderWithFallback(folder_id, type); local 104 if (!folder->is_folder() || !IsReachable(folder)) 110 env, folder->id(), GetBookmarkType(folder)); 113 // If this is the Mobile bookmarks folder then add the "Managed bookmarks" 114 // folder first, so that it's the first entry. 115 if (folder == bookmark_model_->mobile_node() && 121 // Get the folder contents 122 for (int i = 0; i < folder 148 const BookmarkNode* folder = GetFolderWithFallback(folder_id, type); local 244 const BookmarkNode* folder = GetNodeByID(folder_id, type); local [all...] |
/external/chromium_org/chrome/browser/extensions/api/bookmark_manager_private/ |
H A D | bookmark_manager_private_apitest.cc | 38 const BookmarkNode* folder = model->AddFolder(bar, 0, ASCIIToUTF16("Folder")); local 40 model->AddURL(folder, 0, ASCIIToUTF16("BBB"), GURL("http://bbb.example.com"));
|
/external/libmtp/examples/ |
H A D | newfolder.c | 3 * Example program to create a folder on the device. 41 printf(" parent = parent folder or 0 to create the new folder in the root dir\n"); 42 printf(" storage = storage id or 0 to create the new folder on the primary storage\n"); 50 printf("New folder created with ID: %d\n", newid); 57 printf("Creating new folder %s\n",path); 59 char * folder = basename(path); local 61 int newid = LIBMTP_Create_Folder(device, folder, id, 0); 67 printf("New folder created with ID: %d\n", newid);
|
/external/chromium_org/sync/syncable/ |
H A D | syncable_proto_util.cc | 23 return ((entity.has_folder() && entity.folder()) ||
|
/external/chromium_org/chrome/browser/sync/test/integration/ |
H A D | two_client_bookmarks_sync_test.cc | 215 const BookmarkNode* folder = AddFolder(0, kGenericFolderName); local 216 ASSERT_TRUE(folder != NULL); 218 0, folder, 0, kGenericURLTitle, GURL(kGenericURL)) != NULL); 253 const BookmarkNode* folder = AddFolder(0, i, title); local 254 ASSERT_TRUE(folder != NULL); 260 AddURL(0, folder, i, title, url) != NULL); 387 const BookmarkNode* folder = AddFolder(0, title); local 389 0, folder, 0, kGenericURLTitle, GURL(kGenericURL)) != NULL); 394 SetTitle(0, folder, new_title); 405 const BookmarkNode* folder local 422 const BookmarkNode* folder = AddFolder(0, title); local 449 const BookmarkNode* folder = AddFolder(0, kGenericFolderName); local 539 const BookmarkNode* folder = AddFolder(0, kGenericFolderName); local 560 const BookmarkNode* folder = AddFolder(0, kGenericFolderName); local 581 const BookmarkNode* folder = AddFolder(0, kGenericFolderName); local 602 const BookmarkNode* folder = AddFolder(0, kGenericFolderName); local 667 const BookmarkNode* folder = AddFolder(0, 1, kGenericFolderName); local 699 const BookmarkNode* folder = AddFolder(0, 1, kGenericFolderName); local 751 const BookmarkNode* folder = AddFolder(0, kGenericFolderName); local 826 const BookmarkNode* folder = AddFolder(0, 1, kGenericFolderName); local 853 const BookmarkNode* folder = AddFolder(0, 1, kGenericFolderName); local 877 const BookmarkNode* folder = AddFolder(0, kGenericFolderName); local 909 const BookmarkNode* folder = AddFolder(0, kGenericFolderName); local 940 const BookmarkNode* folder = GetBookmarkBarNode(0); local 981 const BookmarkNode* folder = GetBookmarkBarNode(0); local 1021 const BookmarkNode* folder = GetBookmarkBarNode(0); local 1053 const BookmarkNode* folder = GetBookmarkBarNode(0); local 1089 const BookmarkNode* folder = GetBookmarkBarNode(0); local 1128 const BookmarkNode* folder = AddFolder(0, i, title); local 1152 const BookmarkNode* folder = AddFolder(0, i, title); local 1384 const BookmarkNode* folder = AddFolder(i, kGenericFolderName); local [all...] |
/external/opencv/otherlibs/highgui/ |
H A D | loadsave.cpp | 60 // preprocess folder or file name - calculate its length, 66 // add folder to the path 78 // return the first folder from the path 83 // return the folder, next in the path after the specified folder. 85 const char* Next( const char* folder, int& len ) const; 167 const char* CvFilePath::Next( const char* folder, int& len ) const 169 if( !folder || folder < m_path || folder > [all...] |
/external/chromium/third_party/libjingle/source/talk/base/ |
H A D | pathutils.h | 40 // To establish consistent terminology, a filename never contains a folder 41 // component. A folder never contains a filename. A pathname may include 42 // a folder and/or filename component. Here are some examples: 45 // folder() /home/john/ 52 // Basename may begin, end, and/or include periods, but no folder delimiters. 65 Pathname(const std::string& folder, const std::string& filename); 67 // Set's the default folder delimiter for this Pathname 71 // Normalize changes all folder delimiters to folder_delimiter() 83 // Returns the folder and filename components. If the pathname is empty, 88 void SetPathname(const std::string& folder, cons [all...] |
H A D | pathutils.cc | 49 // FOLDER_DELIMS separate folder segments and the filename 80 Pathname::Pathname(const std::string& folder, const std::string& filename) argument 82 SetPathname(folder, filename); 144 void Pathname::SetPathname(const std::string& folder, argument 146 SetFolder(folder); 156 std::string Pathname::folder() const { function in class:talk_base::Pathname 184 void Pathname::SetFolder(const std::string& folder) { argument 185 folder_.assign(folder); 186 // Ensure folder ends in a path delimiter 192 void Pathname::AppendFolder(const std::string& folder) { argument [all...] |
H A D | fileutils.h | 134 // It ASSERTS and returns false if the path points to a folder or a 138 // This will attempt to delete the empty folder located at 'folder' 140 // folder. It fails normally if the folder is not empty or can otherwise 142 virtual bool DeleteEmptyFolder(const Pathname &folder) = 0; 146 // folder. If the folder is empty, this returns true. 147 virtual bool DeleteFolderContents(const Pathname &folder); 149 // This deletes the contents of a folder, recursivel 151 DeleteFolderAndContents(const Pathname &folder) argument 322 DeleteEmptyFolder(const Pathname &folder) argument 326 DeleteFolderContents(const Pathname &folder) argument 330 DeleteFolderAndContents(const Pathname &folder) argument [all...] |
H A D | fileutils.cc | 194 bool FilesystemInterface::DeleteFolderContents(const Pathname &folder) { argument 196 VERIFY(IsFolder(folder)); 198 di->Iterate(folder); 203 subdir.SetFolder(folder.pathname()); 239 // If no folder is supplied, use the temporary folder 240 if (path.folder().empty()) { 251 std::string folder(path.folder()); 252 std::string filename = Filesystem::TempFilename(folder, "g [all...] |
/external/chromium_org/chrome/browser/ui/bookmarks/ |
H A D | recently_used_folders_combo_model_unittest.cc | 99 const BookmarkNode* folder = GetModel()->AddFolder( local 102 folder, 0, ASCIIToUTF16("b")); 110 // Remove a folder, it should remove an item from the model too. 111 GetModel()->Remove(folder, folder->GetIndexOf(sub_folder)); 116 // Remove all, which should remove a folder too.
|
/external/jmonkeyengine/engine/src/core/com/jme3/asset/ |
H A D | AssetKey.java | 47 protected transient String folder; field in class:AssetKey 94 if (folder == null) 95 folder = getFolder(name); 97 return folder;
|
/external/chromium_org/chrome/browser/sync_file_system/drive_backend/ |
H A D | metadata_database_unittest.cc | 272 FileMetadata folder; local 273 folder.set_file_id(GenerateFileID()); 274 FileDetails* details = folder.mutable_details(); 278 return folder; 333 TrackedFile folder; local 334 folder.metadata = CreateFolderMetadata(parent.metadata, title); 335 folder.tracker = CreateTracker(parent.tracker, folder.metadata); 336 return folder; 355 file_resource->set_mime_type("application/vnd.google-apps.folder"); [all...] |