/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src/org/eclipse/releng/ |
VersionNumberStripper.java | 15 import java.io.File; 51 File file=new File(directory); local 53 File [] files = file.listFiles(); 72 files[i].renameTo(new File(targetPath));
|
/external/proguard/src/proguard/wtk/ |
ProGuardObfuscator.java | 33 * following lines in the file 53 public void createScriptFile(File jadFile, 54 File projectDir) 56 // We don't really need to create a script file; 61 public void run(File obfuscatedJarFile, 73 // Parse the default configuration file. 86 configuration.programJars.add(new ClassPathEntry(new File(jarFileName), false)); 131 new ClassPathEntry(new File(classPathString.substring(index, next_index)),
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
MutexFileProvider.java | 5 * you may not use this file except in compliance with the License. 21 import java.io.File; 25 * This class provides a shared file to several threads. Only one thread 26 * at a time can use the file. To acquire the file a thread has to 29 * when another one wants to acquire the file. In case a release is requested 30 * the thread owning the file must release it as soon as possible. If no 31 * callback is provided a thread that acquires the file must release it 33 * have the file for less time. 42 private final File mFile [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
GenericSignatureFormatErrorTest.java | 8 import java.io.File; 25 File tf = File.createTempFile("classes", ".dex"); 36 // SideEffect: strange issue (exception: 'could not open dex file', 41 * dex1.bytes is a jar file with a classes.dex in it. 43 * with the following java file: 56 File tf = File.createTempFile("classes", ".dex"); 69 //System.out.println("file length:"+tf.length());
|
/libcore/luni/src/test/java/libcore/java/sql/ |
ConnectionTest.java | 5 import java.io.File; 13 private File dbFile = null; 52 File tmpDir = new File(tmp); 55 dbFile = File.createTempFile("OldJDBCDriverTest", ".db", tmpDir); 57 System.err.println("error creating temporary DB file.");
|
OldSQLTest.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 35 protected File dbFile; 39 File tmpDir = new File(tmp); 41 dbFile = File.createTempFile("sqliteTest", ".db", tmpDir);
|
/packages/apps/Camera2/src/com/android/camera/one/ |
AbstractOneCamera.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 70 protected static String makeDebugDir(File root, String folderName) { 96 File destFolder = new File(new File(root, folderName), burstFolderName);
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
ExternalStorage.java | 5 * you may not use this file except in compliance with the License. 39 import java.io.File; 102 "File getExternalFilesDir", 185 File path = Environment.getExternalStoragePublicDirectory( 187 File file = new File(path, "DemoPicture.jpg"); local 194 // resource into the external file. Note that this code does 199 OutputStream os = new FileOutputStream(file); 206 // Tell the media scanner about the new file so that it i 229 File file = new File(path, "DemoPicture.jpg"); local 240 File file = new File(path, "DemoPicture.jpg"); local 254 File file = new File(path, "DemoPicture.jpg"); local 293 File file = new File(path, "DemoPicture.jpg"); local 305 File file = new File(path, "DemoPicture.jpg"); local 316 File file = new File(getExternalFilesDir(null), "DemoFile.jpg"); local 341 File file = new File(getExternalFilesDir(null), "DemoFile.jpg"); local 350 File file = new File(getExternalFilesDir(null), "DemoFile.jpg"); local [all...] |
/external/chromium_org/content/browser/fileapi/ |
file_system_operation_impl_write_unittest.cc | 3 // found in the LICENSE file. 46 void AssertStatusEq(base::File::Error expected, 47 base::File::Error actual) { 57 : status_(base::File::FILE_OK), 58 cancel_status_(base::File::FILE_ERROR_FAILED), 75 virtual_path_ = base::FilePath(FILE_PATH_LITERAL("temporary file")); 84 base::Bind(&AssertStatusEq, base::File::FILE_OK)); 97 base::File::Error status() const { return status_; } 98 base::File::Error cancel_status() const { return cancel_status_; } 132 void DidWrite(base::File::Error status, int64 bytes, bool complete) [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/compiler/tests/ |
rc_test_helpers.c | 14 /* This file contains some helper functions for filling out the rc_instruction 72 struct match_info File; 110 tokens.File.String = src_str + matches[3].rm_so; 111 tokens.File.Length = match_length(matches, 3); 127 /* File */ 128 if (!strncmp(tokens.File.String, "temp", tokens.File.Length)) { 129 src_reg->File = RC_FILE_TEMPORARY; 130 } else if (!strncmp(tokens.File.String, "input", tokens.File.Length)) [all...] |
/external/mesa3d/src/gallium/drivers/r300/compiler/tests/ |
rc_test_helpers.c | 14 /* This file contains some helper functions for filling out the rc_instruction 72 struct match_info File; 110 tokens.File.String = src_str + matches[3].rm_so; 111 tokens.File.Length = match_length(matches, 3); 127 /* File */ 128 if (!strncmp(tokens.File.String, "temp", tokens.File.Length)) { 129 src_reg->File = RC_FILE_TEMPORARY; 130 } else if (!strncmp(tokens.File.String, "input", tokens.File.Length)) [all...] |
/external/chromium_org/base/files/ |
file_posix.cc | 3 // found in the LICENSE file. 5 #include "base/files/file.h" 28 COMPILE_ASSERT(File::FROM_BEGIN == SEEK_SET && 29 File::FROM_CURRENT == SEEK_CUR && 30 File::FROM_END == SEEK_END, whence_matches_system); 47 // wrap them in order to minimize the number of #ifdef's in this file. 49 static bool IsOpenAppend(PlatformFile file) { 50 return (fcntl(file, F_GETFL) & O_APPEND) != 0; 53 static int CallFtruncate(PlatformFile file, int64 length) { 54 return HANDLE_EINTR(ftruncate(file, length)) [all...] |
file_win.cc | 3 // found in the LICENSE file. 5 #include "base/files/file.h" 16 void File::InitializeUnsafe(const FilePath& name, uint32 flags) { 100 bool File::IsValid() const { 104 PlatformFile File::GetPlatformFile() const { 108 PlatformFile File::TakePlatformFile() { 112 void File::Close() { 119 int64 File::Seek(Whence whence, int64 offset) { 133 int File::Read(int64 offset, char* data, int size) { 156 int File::ReadAtCurrentPos(char* data, int size) [all...] |
file_util_proxy_unittest.cc | 3 // found in the LICENSE file. 21 error_(File::FILE_OK), 31 void DidFinish(File::Error error) { 36 void DidGetFileInfo(File::Error error, 37 const File::Info& file_info) { 54 File::Error error_; 57 File::Info file_info_; 67 File::Info expected_info; 78 EXPECT_EQ(File::FILE_OK, error_); 90 File::Info expected_info [all...] |
/external/chromium_org/chrome/browser/chromeos/drive/fileapi/ |
fileapi_worker.cc | 3 // found in the LICENSE file. 27 // - File::FLAG_OPEN: Open the existing file. Fail if not exists. 28 // - File::FLAG_CREATE: Create the file if not exists. Fail if exists. 29 // - File::FLAG_OPEN_ALWAYS: Open the existing file. Create a new file 31 // - File::FLAG_CREATE_ALWAYS: Create a new file if not exists. If exist [all...] |
/frameworks/support/tests/java/android/support/v4/content/ |
FileProviderTest.java | 5 * you may not use this file except in compliance with the License. 30 import java.io.File; 45 private static final String TEST_FILE = "file.test"; 62 File file = buildPath(mContext.getFilesDir(), "file.test"); local 63 assertEquals("content://authority/tag/file.test", 64 strat.getUriForFile(file).toString()); 66 file = buildPath(mContext.getFilesDir(), "subdir", "file.test") 82 File file = buildPath(mContext.getFilesDir(), "..", "file.test"); local 95 File file = buildPath(mContext.getFilesDir(), "file.test"); local 112 File file = buildPath(mContext.getFilesDir(), "file.test"); local 136 File file = buildPath(mContext.getFilesDir(), "lol\\"wat?foo&bar", "wat.txt"); local 149 File file = buildPath(mContext.getFilesDir(), "file.txt"); local 170 final File file = new File(mContext.getFilesDir(), TEST_FILE); local 186 final File file = new File(mContext.getFilesDir(), TEST_FILE); local 214 final File file = new File(mContext.getFilesDir(), TEST_FILE); local 231 final File file = new File(mContext.getFilesDir(), TEST_FILE); local 238 final File file = new File(mContext.getFilesDir(), TEST_FILE); local 254 final File file = new File(mContext.getFilesDir(), TEST_FILE); local 274 final File file = new File(mContext.getFilesDir(), TEST_FILE); local [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/program/ |
programopt.c | 26 * \file programopt.c 91 newInst[i].DstReg.File = PROGRAM_OUTPUT; 94 newInst[i].SrcReg[0].File = PROGRAM_STATE_VAR; 97 newInst[i].SrcReg[1].File = PROGRAM_INPUT; 163 newInst[0].DstReg.File = PROGRAM_TEMPORARY; 166 newInst[0].SrcReg[0].File = PROGRAM_INPUT; 169 newInst[0].SrcReg[1].File = PROGRAM_STATE_VAR; 175 newInst[i].DstReg.File = PROGRAM_TEMPORARY; 178 newInst[i].SrcReg[0].File = PROGRAM_INPUT; 181 newInst[i].SrcReg[1].File = PROGRAM_STATE_VAR [all...] |
/external/mesa3d/src/mesa/program/ |
programopt.c | 26 * \file programopt.c 91 newInst[i].DstReg.File = PROGRAM_OUTPUT; 94 newInst[i].SrcReg[0].File = PROGRAM_STATE_VAR; 97 newInst[i].SrcReg[1].File = PROGRAM_INPUT; 163 newInst[0].DstReg.File = PROGRAM_TEMPORARY; 166 newInst[0].SrcReg[0].File = PROGRAM_INPUT; 169 newInst[0].SrcReg[1].File = PROGRAM_STATE_VAR; 175 newInst[i].DstReg.File = PROGRAM_TEMPORARY; 178 newInst[i].SrcReg[0].File = PROGRAM_INPUT; 181 newInst[i].SrcReg[1].File = PROGRAM_STATE_VAR [all...] |
/cts/common/host-side/java-scanner/src/com/android/compatibility/common/scanner/ |
JavaScanner.java | 5 * you may not use this file except in compliance with the License. 22 import java.io.File; 49 private final File mSourceDir; 50 private final File mDocletDir; 56 JavaScanner(File sourceDir, File docletDir) { 95 private static String getSourcePath(File sourceDir) { 105 private static ArrayList<String> getSourceFiles(File sourceDir) { 107 final File[] files = sourceDir.listFiles(new FileFilter() { 108 public boolean accept(File pathname) [all...] |
/dalvik/dexgen/src/com/android/dexgen/util/ |
PathHolder.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 34 /** {@code non-null;} common file name prefix of the created files */ 39 * location for storage of temporary files and common file name prefix for these 43 * @param fileNamePrefix {@code non-null;} common file name prefix across all the temporary 63 return dirLocation + File.separator + fileNamePrefix + DEX_FILE_EXTENSION; 71 return dirLocation + File.separator + fileNamePrefix + JAR_FILE_EXTENSION;
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
ClassPathOpener.java | 5 * you may not use this file except in compliance with the License. 22 import java.io.File; 57 * Provides the file name and byte array for a class path element. 63 * @param bytes {@code non-null;} file data 79 * Informs consumer that processing of an archive file has begun. 81 * @param file {@code non-null;} archive file being processed 83 void onProcessArchiveStart(File file); 142 File file = new File(pathname) local [all...] |
/dalvik/dx/tests/127-merge-stress/com/android/dx/merge/ |
MergeTest.java | 6 import java.io.File; 21 Dex toMerge = new Dex(new File(fileName1)); 22 Dex toMerge2 = new Dex(new File(fileName2));
|
/external/apache-http/src/org/apache/http/entity/ |
FileEntity.java | 8 * or more contributor license agreements. See the NOTICE file 10 * regarding copyright ownership. The ASF licenses this file 12 * "License"); you may not use this file except in compliance 34 import java.io.File; 41 * An entity whose content is retrieved from a file. 51 protected final File file; field in class:FileEntity 53 public FileEntity(final File file, final String contentType) { 55 if (file == null) [all...] |
/external/chromium_org/base/android/ |
content_uri_utils.cc | 3 // found in the LICENSE file. 27 File OpenContentUriForRead(const FilePath& content_uri) { 34 return File(); 35 return File(fd);
|
/external/chromium_org/base/android/java/src/org/chromium/base/library_loader/ |
LibraryLoaderHelper.java | 3 // found in the LICENSE file. 13 import java.io.File; 79 * if that failed due to the library file was not found, 92 File libFile = getWorkaroundLibFile(context, library); 109 * @return the directory file object 111 public static File getWorkaroundLibDir(Context context) { 115 private static File getWorkaroundLibFile(Context context, String library) { 117 return new File(getWorkaroundLibDir(context), libName); 121 * Unpack native libraries from the APK file. The method is supposed to 135 File libDir = getWorkaroundLibDir(context) 140 ZipFile file = new ZipFile(new File(appInfo.sourceDir), ZipFile.OPEN_READ); local [all...] |