Searched refs:folder (Results 1 - 25 of 155) sorted by relevance

1234567

/external/junit/src/org/junit/rules/
H A DTemporaryFolder.java16 * 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 Dextension_bookmarks_unittest.cc22 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 Dextension_bookmark_manager_apitest.cc35 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 DSupport_Resources.java43 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 Dpathutils_unittest.cc37 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 Dpathutils.h40 // 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 Dunixfilesystem.h43 // 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 Dpathutils.cc49 // 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 Dunixfilesystem.cc73 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 Dfileutils.h136 // 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 Dfileutils.cc204 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/chrome/browser/extensions/api/bookmark_manager_private/
H A Dbookmark_manager_private_apitest.cc37 const BookmarkNode* folder = model->AddFolder(bar, 0, ASCIIToUTF16("Folder")); local
39 model->AddURL(folder, 0, ASCIIToUTF16("BBB"), GURL("http://bbb.example.com"));
/external/libmtp/examples/
H A Dnewfolder.c3 * 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);
H A Dpathutils.c32 lookup_folder_id (LIBMTP_folder_t * folder, char * path, char * parent) argument
40 if (folder == NULL) {
44 current = malloc (strlen(parent) + strlen(folder->name) + 2);
45 sprintf(current,"%s/%s",parent,folder->name);
48 return folder->folder_id;
51 ret = lookup_folder_id (folder->child, path, current);
57 ret = lookup_folder_id (folder->sibling, path, parent);
86 // Check if path is a folder
/external/chromium_org/sync/syncable/
H A Dsyncable_proto_util.cc23 return ((entity.has_folder() && entity.folder()) ||
/external/chromium_org/chrome/browser/sync/test/integration/
H A Dtwo_client_bookmarks_sync_test.cc215 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 Dloadsave.cpp60 // 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 Dpathutils.h40 // 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 Dpathutils.cc49 // 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 Dfileutils.h134 // 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 Dfileutils.cc194 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/jmonkeyengine/engine/src/core/com/jme3/asset/
H A DAssetKey.java47 protected transient String folder; field in class:AssetKey
94 if (folder == null)
95 folder = getFolder(name);
97 return folder;
/external/chromium_org/third_party/lzma_sdk/
H A D7zIn.c252 CSzFolder *folder = p->db.Folders + folderIndex; local
255 for (i = 0; i < folder->NumPackStreams; i++)
536 static SRes SzGetNextFolderItem(CSzData *sd, CSzFolder *folder, ISzAlloc *alloc) argument
544 folder->NumCoders = numCoders;
546 MY_ALLOC(CSzCoderInfo, folder->Coders, (size_t)numCoders, alloc);
549 SzCoderInfo_Init(folder->Coders + i);
554 CSzCoderInfo *coder = folder->Coders + i;
613 folder->NumBindPairs = numBindPairs = numOutStreams - 1;
614 MY_ALLOC(CSzBindPair, folder->BindPairs, (size_t)numBindPairs, alloc);
618 CSzBindPair *bp = folder
675 CSzFolder *folder = (*folders) + i; local
702 CSzFolder *folder = (*folders) + i; local
827 CSzFolder *folder = folders + i; local
1161 CSzFolder *folder; local
1349 CSzFolder *folder = p->db.Folders + folderIndex; local
[all...]
/external/lzma/C/
H A D7zIn.c252 CSzFolder *folder = p->db.Folders + folderIndex; local
255 for (i = 0; i < folder->NumPackStreams; i++)
536 static SRes SzGetNextFolderItem(CSzData *sd, CSzFolder *folder, ISzAlloc *alloc) argument
544 folder->NumCoders = numCoders;
546 MY_ALLOC(CSzCoderInfo, folder->Coders, (size_t)numCoders, alloc);
549 SzCoderInfo_Init(folder->Coders + i);
554 CSzCoderInfo *coder = folder->Coders + i;
613 folder->NumBindPairs = numBindPairs = numOutStreams - 1;
614 MY_ALLOC(CSzBindPair, folder->BindPairs, (size_t)numBindPairs, alloc);
618 CSzBindPair *bp = folder
675 CSzFolder *folder = (*folders) + i; local
702 CSzFolder *folder = (*folders) + i; local
827 CSzFolder *folder = folders + i; local
1161 CSzFolder *folder; local
1349 CSzFolder *folder = p->db.Folders + folderIndex; local
[all...]
/external/lzma/CPP/7zip/Archive/7z/
H A D7zDecode.cpp15 static void ConvertFolderItemInfoToBindInfo(const CFolder &folder, argument
20 for (i = 0; i < folder.BindPairs.Size(); i++)
23 bindPair.InIndex = (UInt32)folder.BindPairs[i].InIndex;
24 bindPair.OutIndex = (UInt32)folder.BindPairs[i].OutIndex;
28 for (i = 0; i < folder.Coders.Size(); i++)
31 const CCoderInfo &coderInfo = folder.Coders[i];
37 if (folder.FindBindPairForOutStream(outStreamIndex) < 0)
40 for (i = 0; i < folder.PackStreams.Size(); i++)
41 bindInfo.InStreams.Add((UInt32)folder.PackStreams[i]);

Completed in 490 milliseconds

1234567