/external/lldb/source/Core/ |
DataBufferMemoryMap.cpp | 5 // This file is distributed under the University of Illinois Open Source 19 #include "lldb/Host/File.h" 98 // Memory map "length" bytes from "file" starting "offset" 99 // bytes into the file. If "length" is set to SIZE_MAX, then 116 log->Printf("DataBufferMemoryMap::MemoryMapFromFileSpec(file=\"%s\", offset=0x%" PRIx64 ", length=0x%" PRIx64 ", writeable=%i", 125 uint32_t options = File::eOpenOptionRead; 127 options |= File::eOpenOptionWrite; 129 File file; local 130 Error error (file.Open(path, options)) [all...] |
/external/lldb/tools/lldb-perf/lib/ |
Results.cpp | 5 // This file is distributed under the University of Illinois Open Source 173 CFURLRef file = CFURLCreateFromFileSystemRepresentation(NULL, (const UInt8*)out_path, strlen(out_path), FALSE); local 175 CFURLWriteDataAndPropertiesToResource(file, xmlData, NULL, NULL);
|
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/stub/command/ |
FileRetrCommandHandler.java | 5 * you may not use this file except in compliance with the License.
30 * CommandHandler for the RETR command. Returns the contents of the specified file on the
34 * The <code>file</code> property specifies the pathname for the file whose contents should
35 * be returned from this command. The file path is relative to the CLASSPATH (using the
38 * An exception is thrown if the <code>file</code> property has not been set or if the specified
39 * file does not exist or cannot be read.
43 * <li>{@link #PATHNAME_KEY} ("pathname") - the pathname of the file submitted on the invocation (the first command parameter)
54 private String file;
field in class:FileRetrCommandHandler 63 * Create new instance using the specified file pathname [all...] |
/external/ppp/pppd/plugins/pppoatm/ |
text2atm.c | 193 static int search(FILE *file,const char *text,struct sockaddr *addr,int length, 200 while (fgets(line,MAX_ATM_NAME_LEN,file)) { 216 FILE *file; local 219 if (!(file = fopen(HOSTS_ATM,"r"))) return TRY_OTHER; 220 result = search(file,text,addr,length,flags); 221 (void) fclose(file);
|
/external/proguard/src/proguard/io/ |
DirectoryWriter.java | 36 private final File baseFile; 39 private File currentFile; 48 public DirectoryWriter(File baseFile, 60 // Should we close the current file? 67 File directory = getFile(dataEntry); 87 File file = getFile(dataEntry); local 89 // Should we close the current file? 92 !currentFile.equals(file)) 101 File parentDirectory = file.getParentFile() [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/ |
RawResourceLoader.java | 3 import java.io.File; 11 private File resourceDir; 13 public RawResourceLoader(ResourceExtractor resourceExtractor, File resourceDir) { 22 File rawResourceDir = new File(resourceDir, "raw"); 25 File[] files = rawResourceDir.listFiles(); 27 File file = files[i]; local 28 String name = file.getName(); 37 return new FileInputStream(file); [all...] |
/external/skia/tests/ |
FontConfigParser.cpp | 5 * found in the LICENSE file. 52 // All file names in the test configuration files start with a capital letter. 58 FontFileInfo& file = family.fFonts[j]; local 59 REPORTER_ASSERT(reporter, !file.fFileName.isEmpty() && 60 file.fFileName[0] >= 'A' && 61 file.fFileName[0] <= 'Z'); 88 SkDebugf(" file (%d) %s#%d\n", ffi.fWeight, ffi.fFileName.c_str(), ffi.fIndex);
|
/frameworks/av/media/libstagefright/id3/ |
testid3.cpp | 5 * you may not use this file except in compliance with the License. 72 sp<FileSource> file = new FileSource(path); local 73 CHECK_EQ(file->initCheck(), (status_t)OK); 75 ID3 tag(file);
|
/frameworks/base/drm/java/android/drm/ |
DrmRights.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 31 * {@link DrmRights#DrmRights(String, String)} constructor, which takes a path to a file 49 * @param rightsFilePath Path to the file containing rights information. 53 File file = new File(rightsFilePath); local 54 instantiate(file, mimeType); 60 * @param rightsFilePath Path to the file containing rights information. 73 * @param rightsFilePath Path to the file containing rights information [all...] |
/libcore/luni/src/main/java/libcore/net/url/ |
JarHandler.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 28 * Returns a connection to the jar file pointed by this <code>URL</code> 29 * in the file system 58 String file = url.getFile(); local 59 if (file == null) { 60 file = ""; 67 if (spec.indexOf("!/") == -1 && (file.indexOf("!/") == -1)) { 70 if (file.isEmpty()) [all...] |
/ndk/sources/host-tools/make-3.81/ |
job.h | 4 This file is part of GNU Make. 15 GNU Make; see the file COPYING. If not, write to the Free Software 24 # include <sys/file.h> 27 /* How to set close-on-exec for a file descriptor. */ 44 struct file *file; /* File being remade. */ member in struct:child 57 char *sh_batch_file; /* Script file for shell commands */ 69 extern void new_job PARAMS ((struct file *file)); [all...] |
/packages/apps/Settings/src/com/android/settings/ |
SettingsLicenseActivity.java | 5 * you may not use this file except in compliance with the License. 29 import java.io.File; 46 Log.e(TAG, "The system property for the license file is empty"); 51 final File file = new File(path); local 52 if (!file.exists() || file.length() == 0) { 53 Log.e(TAG, "License file " + path + " does not exist"); 62 intent.setDataAndType(Uri.fromFile(file), "text/html") [all...] |
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
dict_file_writing_utils.cpp | 5 * you may not use this file except in compliance with the License. 90 /* static */ bool DictFileWritingUtils::writeBufferToFileTail(FILE *const file, 96 if (fwrite(bufferSize, SIZE_OF_BUFFER_SIZE_FIELD, 1 /* count */, file) < 1) { 99 return writeBufferToFile(file, buffer); 106 AKLOGE("File %s cannot be opened. errno: %d", filePath, errno); 110 FILE *const file = fdopen(fd, "wb"); local 111 if (!file) { 112 AKLOGE("fdopen failed for the file %s. errno: %d", filePath, errno) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/common/ |
CommonMatchingStrategy.java | 5 * you may not use this file except in compliance with the License. 47 IFile file = fileInput.getFile(); local 48 if (file.getParent().getName().startsWith(FD_RES_LAYOUT)) { 49 ResourceFolder resFolder = ResourceManager.getInstance().getResourceFolder(file); 59 if (!(editorRef.getName().endsWith(file.getName()) && 68 // as those with the wrong extension or wrong file name 69 if (!(file.getName().equals(editorRef.getName()) &&
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/ |
LayoutEditorMatchingStrategy.java | 5 * you may not use this file except in compliance with the License. 39 // first check that the file being opened is a layout file. 44 IFile file = fileInput.getFile(); local 46 ResourceFolder resFolder = manager.getResourceFolder(file); 50 // as those with the wrong extension or wrong file name 51 if (!file.getName().equals(editorRef.getName()) || 57 // file being currently edited by the editor since those are independent of the config. 71 return editorFile.getProject().equals(file.getProject()) 72 && editorFile.getName().equals(file.getName()) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/ |
TemplateTestWizard.java | 5 * you may not use this file except in compliance with the License. 23 import java.io.File; 58 File file = mSelectionPage.getLocation(); local 59 if (file != null && file.exists()) { 62 mValues.setTemplateLocation(file); 69 mValues.setTemplateLocation(file);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
ChangeViewRefactoringTest.java | 5 * you may not use this file except in compliance with the License. 47 IFile file = getLayoutFile(getProject(), basename); local 48 TestContext info = setupTestContext(file, basename);
|
/system/core/logd/ |
LogCommand.cpp | 5 * you may not use this file except in compliance with the License. 77 FILE *file = fopen(filename, "r"); local 78 if (!file) { 86 while (fgets(line, sizeof(line), file)) { 123 fclose(file);
|
/external/jmonkeyengine/engine/src/desktop/com/jme3/system/ |
Natives.java | 49 private static File extractionDirOverride = null; 50 private static File extractionDir = null; 53 extractionDirOverride = new File(name).getAbsoluteFile(); 56 public static File getExtractionDir() { 61 File workingFolder = new File("").getAbsoluteFile(); 66 File file = new File(workingFolder.getAbsolutePath() + File.separator + ".jmetestwrite") local [all...] |
/external/junit/src/org/junit/experimental/max/ |
MaxHistory.java | 3 import java.io.File; 30 * Loads a {@link MaxHistory} from {@code file}, or generates a new one that 31 * will be saved to {@code file}. 33 public static MaxHistory forFolder(File file) { 34 if (file.exists()) 36 return readHistory(file); 39 file.delete(); 41 return new MaxHistory(file); 44 private static MaxHistory readHistory(File storedResults 47 FileInputStream file= new FileInputStream(storedResults); local [all...] |
/frameworks/support/tests/java/android/support/v4/content/ |
FileProviderTest.java | 5 * you may not use this file except in compliance with the License. 34 import java.io.File; 47 private static final String TEST_FILE = "file.test"; 64 File file = buildPath(mContext.getFilesDir(), "file.test"); local 65 assertEquals("content://authority/tag/file.test", 66 strat.getUriForFile(file).toString()); 68 file = buildPath(mContext.getFilesDir(), "subdir", "file.test") 84 File file = buildPath(mContext.getFilesDir(), "..", "file.test"); local 97 File file = buildPath(mContext.getFilesDir(), "file.test"); local 114 File file = buildPath(mContext.getFilesDir(), "file.test"); local 138 File file = buildPath(mContext.getFilesDir(), "lol\\"wat?foo&bar", "wat.txt"); local 151 File file = buildPath(mContext.getFilesDir(), "file.txt"); local 172 final File file = new File(mContext.getFilesDir(), TEST_FILE); local 188 final File file = new File(mContext.getFilesDir(), TEST_FILE); local 216 final File file = new File(mContext.getFilesDir(), TEST_FILE); local 233 final File file = new File(mContext.getFilesDir(), TEST_FILE); local 240 final File file = new File(mContext.getFilesDir(), TEST_FILE); local 256 final File file = new File(mContext.getFilesDir(), TEST_FILE); local 276 final File file = new File(mContext.getFilesDir(), TEST_FILE); local [all...] |
/libcore/luni/src/test/java/libcore/java/util/zip/ |
OldAndroidZipFileTest.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 39 File file = File.createTempFile("ZipFileTest", ".zip"); local 41 // create a test file; assume it's not going to collide w/anything 42 FileOutputStream outStream = new FileOutputStream(file); 45 scanZip(file.getPath()); 46 read2(file.getPath()); 48 file.delete() [all...] |
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
DownloadIdleService.java | 5 * you may not use this file except in compliance with the License. 41 import java.io.File; 144 final File file = new File(path); local 146 fromDb.add(new ConcreteFile(file)); 148 // File probably no longer exists 149 final String state = Environment.getExternalStorageState(file); 152 // File appears to live on internal storage, or a 157 Slog.d(TAG, "Missing " + file + ", deleting " + id) [all...] |
StorageUtils.java | 5 * you may not use this file except in compliance with the License. 46 import java.io.File; 66 * Minimum age for a file to be considered for deletion. 114 // File lives on internal storage; ask PackageManager to try freeing 157 return (int) (lhs.file.lastModified() - rhs.file.lastModified()); 162 for (ConcreteFile file : files) { 165 if (now - file.file.lastModified() < MIN_DELETE_AGE) { 166 Slog.d(TAG, "Skipping recently modified " + file.file) 221 final ConcreteFile file = new ConcreteFile(child); local 238 public final File file; field in class:StorageUtils.ConcreteFile [all...] |
/packages/services/Telephony/src/com/android/phone/ |
CallTime.java | 5 * you may not use this file except in compliance with the License. 27 import java.io.File; 198 File file = PhoneGlobals.getInstance().getDir ("phoneTrace", Context.MODE_PRIVATE); local 199 if (file.exists() == false) { 200 file.mkdirs(); 202 String baseName = file.getPath() + File.separator + "callstate"; 206 file = new File(dataFile) [all...] |