/external/clang/bindings/python/tests/cindex/ |
test_file.py | 1 from clang.cindex import Index, File 6 file = File.from_name(tu, "t.c") 7 assert str(file) == "t.c" 8 assert file.name == "t.c" 9 assert repr(file) == "<File: t.c>"
|
/external/emma/core/java12/com/vladium/util/ |
Files.java | 12 import java.io.File; 36 public static String [] readFileList (final File atfile) 88 public static File [] pathToFiles (final String [] path, final boolean canonical) 96 final String separators = ",".concat (File.pathSeparator); 112 _result.add (new File (pathname)); 117 final File [] result = new File [_result.size ()]; 125 * will return the absolute form of 'pathname' if File.getCanonicalPath() fails. 133 return new File (pathname).getCanonicalPath (); 137 return new File (pathname).getAbsolutePath () [all...] |
/external/jsilver/src/com/google/clearsilver/jsilver/resourceloader/ |
FileSystemResourceLoader.java | 5 * you may not use this file except in compliance with the License. 21 import java.io.File; 34 private final File rootDir; 36 public FileSystemResourceLoader(File rootDir) { 41 this(new File(rootDir)); 46 File file = new File(rootDir, name); local 47 // Check for non-directory rather than is-file so that reads from 49 if (file.exists() && !file.isDirectory() && file.canRead()) 73 File file = new File(rootDir, filename); local [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/ |
XmlLoader.java | 5 import java.io.File; 15 protected abstract void processResourceXml(File xmlFile, Document document, boolean isSystem) throws Exception;
|
/frameworks/compile/libbcc/include/bcc/Support/ |
InputFile.h | 5 * you may not use this file except in compliance with the License. 20 #include "bcc/Support/File.h" 25 class InputFile : public File<FileBase::kReadMode> { 26 typedef File<FileBase::kReadMode> super;
|
OutputFile.h | 5 * you may not use this file except in compliance with the License. 20 #include "bcc/Support/File.h" 29 class OutputFile : public File<FileBase::kWriteMode> { 30 typedef File<FileBase::kWriteMode> super; 38 // This is similar to the system call dup(). It creates a copy of the file
|
/frameworks/support/v4/honeycomb/android/support/v4/content/ |
ContextCompatHoneycomb.java | 5 * you may not use this file except in compliance with the License. 22 import java.io.File; 33 public static File getObbDir(Context context) {
|
/libcore/dalvik/src/main/java/dalvik/system/ |
DexClassLoader.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 29 * File dexOutputDir = context.getCodeCacheDir(); 46 * resources, delimited by {@code File.pathSeparator}, which 51 * libraries, delimited by {@code File.pathSeparator}; may be 57 super(dexPath, new File(optimizedDirectory), libraryPath, parent);
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/ |
CanWriteFileFilter.java | 3 * contributor license agreements. See the NOTICE file distributed with 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 19 import java.io.File; 23 * This filter accepts <code>File</code>s that can be written to. 29 * File dir = new File("."); 41 * File dir = new File("."); 70 * Checks to see if the file can be written to [all...] |
DirectoryFileFilter.java | 3 * contributor license agreements. See the NOTICE file distributed with 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 19 import java.io.File; 23 * This filter accepts <code>File</code>s that are directories. 29 * File dir = new File("."); 64 * Checks to see if the file is a directory. 66 * @param file the File to chec [all...] |
FileFileFilter.java | 3 * contributor license agreements. See the NOTICE file distributed with 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 19 import java.io.File; 23 * This filter accepts <code>File</code>s that are files (not directories). 29 * File dir = new File("."); 30 * String[] files = dir.list( FileFileFilter.FILE ); 41 /** Singleton instance of file filter */ 42 public static final IOFileFilter FILE = new FileFileFilter() [all...] |
HiddenFileFilter.java | 3 * contributor license agreements. See the NOTICE file distributed with 5 * The ASF licenses this file to You under the Apache License, Version 2.0 6 * (the "License"); you may not use this file except in compliance with 19 import java.io.File; 23 * This filter accepts <code>File</code>s that are hidden. 29 * File dir = new File("."); 41 * File dir = new File("."); 66 * Checks to see if the file is hidden [all...] |
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/util/ |
PngFileFilter.java | 5 * you may not use this file except in compliance with the License. 20 import java.io.File; 24 public boolean accept(File f) {
|
PsdFileFilter.java | 5 * you may not use this file except in compliance with the License. 20 import java.io.File; 24 public boolean accept(File f) {
|
/external/chromium_org/base/files/ |
file_unittest.cc | 3 // found in the LICENSE file. 6 #include "base/files/file.h" 11 using base::File; 20 // Don't create a File at all. 21 File file; local 22 EXPECT_FALSE(file.IsValid()); 23 EXPECT_EQ(base::File::FILE_ERROR_FAILED, file.error_details()); 25 File file2(base::File::FILE_ERROR_TOO_MANY_OPENED) 59 File file; local [all...] |
/cts/tests/tests/security/src/android/security/cts/ |
BannedFilesTest.java | 5 * you may not use this file except in compliance with the License. 24 import java.io.File; 57 assertFalse("/dev/socket/init_runit", new File("/dev/socket/init_runit").exists()); 58 assertFalse("/dev/socket/fotabinder", new File("/dev/socket/fotabinder").exists()); 62 assertFalse("/sbin/su", new File("/sbin/su").exists()); 63 assertFalse("/system/bin/su", new File("/system/bin/su").exists()); 64 assertFalse("/system/sbin/su", new File("/system/sbin/su").exists()); 65 assertFalse("/system/xbin/su", new File("/system/xbin/su").exists()); 66 assertFalse("/vendor/bin/su", new File("/vendor/bin/su").exists()); 76 File f = new File(i, "su") 138 File file = new File("\/dev\/diag"); local [all...] |
/external/chromium_org/webkit/browser/fileapi/ |
file_system_file_util.h | 3 // found in the LICENSE file. 8 #include "base/files/file.h" 24 // A file utility interface that provides basic file utility methods for 41 // These methods return metadata for the file most recently returned by 60 // Creates or opens a file with the given flags. 62 // This is used only by Pepper/NaCl File API. 63 virtual base::File CreateOrOpen( 68 // Ensures that the given |url| exist. This creates a empty new file 71 virtual base::File::Error EnsureFileExists [all...] |
local_file_util.h | 3 // found in the LICENSE file. 32 virtual base::File CreateOrOpen( 36 virtual base::File::Error EnsureFileExists( 39 virtual base::File::Error CreateDirectory( 44 virtual base::File::Error GetFileInfo( 47 base::File::Info* file_info, 52 virtual base::File::Error GetLocalFilePath( 56 virtual base::File::Error Touch( 61 virtual base::File::Error Truncate( 65 virtual base::File::Error CopyOrMoveFile [all...] |
transient_file_util.cc | 3 // found in the LICENSE file. 31 base::File::Error* error, 32 base::File::Info* file_info, 36 if (*error == base::File::FILE_OK && file_info->is_directory) 37 *error = base::File::FILE_ERROR_NOT_A_FILE; 38 if (*error != base::File::FILE_OK)
|
/external/littlemock/src/com/google/testing/littlemock/ |
AppDataDirGuesser.java | 5 * use this file except in compliance with the License. You may obtain a copy of 19 import java.io.File; 40 public File guessSuitableDirectoryForGeneratedClasses() { 49 File[] results = guessPath(pathFromThisClassLoader); 87 File[] guessPath(String input) { 88 List<File> results = new ArrayList<File>(); 103 File dataDir = new File("/data/data/" + packageName); 105 File cacheDir = new File(dataDir, "cache") [all...] |
/cts/hostsidetests/appsecurity/test-apps/MultiUserStorageApp/src/com/android/cts/multiuserstorageapp/ |
MultiUserStorageTest.java | 5 * you may not use this file except in compliance with the License. 27 import java.io.File; 46 private void wipeTestFiles(File dir) { 48 for (File file : dir.listFiles()) { 49 if (file.getName().startsWith(FILE_PREFIX)) { 50 Log.d(TAG, "Wiping " + file); 51 file.delete(); 67 for (File path : getAllPackageSpecificPathsExceptObb(getContext())) { 72 writeInt(new File(path, FILE_SINGLETON), uid) [all...] |
/external/chromium_org/chrome/browser/chromeos/extensions/file_system_provider/ |
provider_function.cc | 3 // found in the LICENSE file. 24 const char kEmptyIdErrorMessage[] = "Empty file system Id s not allowed."; 25 const char kMountFailedErrorMessage[] = "Mounting the file system failed."; 26 const char kUnmountFailedErrorMessage[] = "Unmounting the file system failed."; 38 base::File::Error ProviderErrorToFileError( 42 return base::File::FILE_OK; 44 return base::File::FILE_ERROR_FAILED; 46 return base::File::FILE_ERROR_IN_USE; 48 return base::File::FILE_ERROR_EXISTS; 50 return base::File::FILE_ERROR_NOT_FOUND [all...] |
/external/chromium_org/content/browser/renderer_host/ |
file_utilities_message_filter.cc | 3 // found in the LICENSE file. 25 *thread = BrowserThread::FILE; 40 base::File::Info* result, 41 base::File::Error* status) { 42 *result = base::File::Info(); 43 *status = base::File::FILE_OK; 45 // Get file metadata only when the child process has been granted 46 // permission to read the file. 53 *status = base::File::FILE_ERROR_FAILED;
|
/external/chromium_org/net/base/ |
net_errors.cc | 3 // found in the LICENSE file. 47 Error FileErrorToNetError(base::File::Error file_error) { 49 case base::File::FILE_OK: 51 case base::File::FILE_ERROR_ACCESS_DENIED: 53 case base::File::FILE_ERROR_INVALID_URL: 55 case base::File::FILE_ERROR_NOT_FOUND:
|
/external/chromium_org/webkit/browser/database/ |
vfs_backend.cc | 3 // found in the LICENSE file. 34 // If a new file is created, it must also be writable. 38 // If we're accessing an existing file, we cannot give exclusive access, and 41 // journal or master journal file; however, when in incognito mode, we use 47 // Make sure we're opening the DB directory or that a file type is set. 58 base::File VfsBackend::OpenFile(const base::FilePath& file_path, 66 return base::File(); 70 flags |= base::File::FLAG_READ; 72 flags |= base::File::FLAG_WRITE; 75 flags |= base::File::FLAG_EXCLUSIVE_READ | base::File::FLAG_EXCLUSIVE_WRITE [all...] |