/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.8/include/ext/ |
stdio_filebuf.h | 0 // File descriptor layer for filebuf -*- C++ -*- 5 // This file is part of the GNU ISO C++ Library. This library is free 25 /** @file ext/stdio_filebuf.h 26 * This file is a GNU extension to the Standard C++ Library. 45 * FILE*'s and POSIX file descriptors. It must be instantiated by the 46 * user with the type of character used in the file stream, e.g., 68 * @param __fd An open file descriptor. 73 * This constructor associates a file stream buffer with an open 74 * POSIX file descriptor. The file descriptor will be automaticall 119 file() { return this->_M_file.file(); } function in class:stdio_filebuf [all...] |
/prebuilts/ndk/9/sources/cxx-stl/gnu-libstdc++/4.9/include/ext/ |
stdio_filebuf.h | 0 // File descriptor layer for filebuf -*- C++ -*- 5 // This file is part of the GNU ISO C++ Library. This library is free 25 /** @file ext/stdio_filebuf.h 26 * This file is a GNU extension to the Standard C++ Library. 45 * FILE*'s and POSIX file descriptors. It must be instantiated by the 46 * user with the type of character used in the file stream, e.g., 68 * @param __fd An open file descriptor. 73 * This constructor associates a file stream buffer with an open 74 * POSIX file descriptor. The file descriptor will be automaticall 119 file() { return this->_M_file.file(); } function in class:stdio_filebuf [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/assetstudio/ |
CreateAssetSetWizard.java | 5 * you may not use this file except in compliance with the License. 106 IFile file = project.getFile(dest); local 107 if (file.exists()) { 108 // Warn that the file already exists and ask the user what to do 110 MessageDialog dialog = new MessageDialog(null, "File Already Exists", null, 113 file.getProjectRelativePath().toOSString()), 138 file.delete(true, new NullProgressMonitor()); 144 AdtUtils.createWsParentDirectory(file.getParent()); 152 file.create(is, true /*force*/, null /*progress*/); 153 mCreatedFiles.add(file); [all...] |
/system/core/toolbox/ |
uptime.c | 53 FILE* file = fopen("/proc/uptime", "r"); local 54 if (!file) { 59 if (fscanf(file, "%*f %f", &idle_time) != 1) { 61 fclose(file); 64 fclose(file);
|
/cts/tests/tests/os/src/android/os/cts/ |
FileAccessPermissionTest.java | 5 * you may not use this file except in compliance with the License. 22 import java.io.File; 30 * This is testing for file access permissions. 39 * create a sdcard image file then start emulator with command emulator -sdcard <filepath> 42 * mksdcard <size> <file> 45 * TODO: Combine this file with {@link android.permission.cts.FileSystemPermissionTest} 53 File file = new File("/system"); local 54 assertTrue(file.canRead()) 82 File file = new File("\/system\/app"); local 100 File file = new File("\/data\/app"); local [all...] |
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
CodeItem.java | 5 * you may not use this file except in compliance with the License. 48 public void read(DexRandomAccessFile file) throws IOException { 49 file.alignForwards(4); 50 file.getOffsetTracker().getNewOffsettable(file, this); 51 registersSize = file.readUShort(); 52 insSize = file.readUShort(); 53 outsSize = file.readUShort(); 54 triesSize = file.readUShort(); 55 debugInfoOff = file.readUInt() [all...] |
MapItem.java | 5 * you may not use this file except in compliance with the License. 46 public void read(DexRandomAccessFile file) throws IOException { 47 type = file.readUShort(); 48 file.readUShort(); // Unused padding. 49 size = file.readUInt(); 51 offset = file.getOffsetTracker().getNewHeaderOffset(file.readUInt()); 53 offset = file.getOffsetTracker().getNewOffset(file.readUInt()); 58 public void write(DexRandomAccessFile file) throws IOException [all...] |
/cts/tools/signature-tools/src/signature/io/html/ |
HtmlDeltaExternalizer.java | 5 * you may not use this file except in compliance with the License. 31 import java.io.File; 44 private static final String DELTA_FOLDER = "changes" + File.separator; 48 if (!location.endsWith(File.separator)) { 49 location += File.separator; 52 File directory = new File(location); 77 File file = new File(location + DELTA_FOLDER) local [all...] |
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
Section.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 24 * A section of a {@code .dex} file. Each section consists of a list 31 /** {@code non-null;} file that this instance is part of */ 32 private final DexFile file; field in class:Section 38 /** {@code >= -1;} offset from the start of the file to this part, or 61 * Constructs an instance. The file offset is initially unknown. 65 * @param file {@code non-null;} file that this instance is part of 69 public Section(String name, DexFile file, int alignment) [all...] |
/dalvik/dx/src/com/android/dx/dex/file/ |
Section.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 23 * A section of a {@code .dex} file. Each section consists of a list 30 /** {@code non-null;} file that this instance is part of */ 31 private final DexFile file; field in class:Section 37 /** {@code >= -1;} offset from the start of the file to this part, or 60 * Constructs an instance. The file offset is initially unknown. 64 * @param file {@code non-null;} file that this instance is part of 68 public Section(String name, DexFile file, int alignment) [all...] |
/external/dexmaker/src/dx/java/com/android/dx/dex/file/ |
Section.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 24 * A section of a {@code .dex} file. Each section consists of a list 31 /** {@code non-null;} file that this instance is part of */ 32 private final DexFile file; field in class:Section 38 /** {@code >= -1;} offset from the start of the file to this part, or 61 * Constructs an instance. The file offset is initially unknown. 65 * @param file {@code non-null;} file that this instance is part of 69 public Section(String name, DexFile file, int alignment) [all...] |
/external/guava/guava-tests/test/com/google/common/io/ |
FileBackedOutputStreamTest.java | 5 * you may not use this file except in compliance with the License. 21 import java.io.File; 49 final File file = out.getFile(); local 50 assertEquals(100, file.length()); 51 assertTrue(file.exists()); 54 // Make sure that finalize deletes the file 61 return !file.exists(); 90 File file = out.getFile() local [all...] |
/external/jsilver/src/com/google/clearsilver/jsilver/adaptor/ |
ResourceLoaderAdaptor.java | 5 * you may not use this file except in compliance with the License. 25 import java.io.File; 58 File file = locateFile(name); local 59 if (file == null) { 60 throw new FileNotFoundException("Could not locate file " + name); 62 return new InputStreamReader(new FileInputStream(file), "UTF-8"); 71 text.append("No file '"); 97 * @param name name of the file to locate. 98 * @return a File object corresponding to the existing file or {@code null} if it does not exist 103 File file = newFile(name); local 106 File file = null; local 144 File file = newFile(path, filename); local 174 File file = locateFile(filename); local 191 File file = locateFile(filename); local [all...] |
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/command/ |
AbstractStoreFileCommandHandler.java | 5 * you may not use this file except in compliance with the License.
28 * Abstract superclass for CommandHandlers that that store a file (STOR, STOU, APPE). Handler logic:
33 * <li>If the current user does not have write access to the named file, if it already exists, or else to its
37 * <li>Read all available bytes from the data connection and store/append to the named file in the server file system</li>
38 * <li>If file write/store fails, then reply with 553 and terminate</li>
57 // User must have write permission to the file, if an existing file, or else to the directory if a new file
70 FileEntry file = (FileEntry) getFileSystem().getEntry(path); local [all...] |
/external/okhttp/okio/okio/src/test/java/okio/ |
OkioTest.java | 5 * you may not use this file except in compliance with the License. 20 import java.io.File; 36 File file = temporaryFolder.newFile(); local 38 BufferedSink sink = Okio.buffer(Okio.sink(file)); 39 sink.writeUtf8("Hello, java.io file!"); 41 assertTrue(file.exists()); 42 assertEquals(20, file.length()); 44 BufferedSource source = Okio.buffer(Okio.source(file)); 45 assertEquals("Hello, java.io file!", source.readUtf8()) 50 File file = temporaryFolder.newFile(); local [all...] |
/external/smali/util/src/test/java/org/jf/util/ |
ClassFileNameHandlerTest.java | 39 import java.io.File; 121 File tempDir = Files.createTempDir(); 126 File file1 = handler.getUniqueFilenameForClass("La/a/" + filenameFragment + "1" + filenameFragment + ";"); 129 File file2 = handler.getUniqueFilenameForClass("La/a/" + filenameFragment + "2" + filenameFragment + ";"); 137 File tempDir = Files.createTempDir(); 140 File file = handler.getUniqueFilenameForClass("La/b/c/d;"); local 141 checkFilename(tempDir, file, "a", "b", "c", "d.smali"); 143 file = handler.getUniqueFilenameForClass("La/b/c/e;"); 144 checkFilename(tempDir, file, "a", "b", "c", "e.smali") 161 File file = handler.getUniqueFilenameForClass("La\/b\/c;"); local 176 File file = handler.getUniqueFilenameForClass("La\/b\/c;"); local 191 File file = handler.getUniqueFilenameForClass("La\/con\/c;"); local 217 File file = handler.getUniqueFilenameForClass("La\/con\/c;"); local [all...] |
/frameworks/base/drm/java/android/drm/ |
DrmUtils.java | 5 * you may not use this file except in compliance with the License. 20 import java.io.File; 37 /* Should be used when we need to read from local file */ 39 File file = new File(path); local 40 return readBytes(file); 43 /* Should be used when we need to read from local file */ 44 /* package */ static byte[] readBytes(File file) throws IOException 78 File file = new File(path); local [all...] |
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
SettingsStateTest.java | 5 * you may not use this file except in compliance with the License. 24 import java.io.File; 121 * Make sure settings can be written to a file and also can be read. 124 final File file = new File(getContext().getCacheDir(), "setting.xml"); local 125 file.delete(); 128 final SettingsState ssWriter = new SettingsState(lock, file, 1, 140 final SettingsState ssReader = new SettingsState(lock, file, 1, 154 final File file = new File(getContext().getCacheDir(), "setting.xml") local [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
OutputStreamTesterTest.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 29 import java.io.File; 78 private File file; field in class:OutputStreamTesterTest.FileOutputStreamSinkTester 85 file = File.createTempFile("FileOutputStreamSinkTester", "tmp"); 86 file.deleteOnExit(); 87 return new FileOutputStream(file, append) [all...] |
WriterTesterTest.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 import java.io.File; 73 private File file; field in class:WriterTesterTest.FileWriterCharSinkTester 81 file = File.createTempFile("FileOutputStreamSinkTester", "tmp"); 82 file.deleteOnExit(); 83 return new FileWriter(file, append) [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
RandomAccessFileTest.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 30 private File file; field in class:RandomAccessFileTest 33 file = File.createTempFile("RandomAccessFileTest", "tmp"); 37 file.delete(); 41 RandomAccessFile raf = new RandomAccessFile(file, "rw"); 50 RandomAccessFile raf = new RandomAccessFile(file, "rw"); 59 RandomAccessFile raf = new RandomAccessFile(file, "rw") 72 File file = File.createTempFile("RandomAccessFileTest", "tmp"); local [all...] |
/packages/apps/Camera/tests/src/com/android/camera/functional/ |
ImageCaptureIntentTest.java | 5 * you may not use this file except in compliance with the License. 34 import java.io.File; 69 File file = new File(Environment.getExternalStorageDirectory(), local 75 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file)); 85 // Verify the jpeg file 86 int fileLength = (int) file.length(); 89 stream = new BufferedInputStream(new FileInputStream(file)); 93 file.delete() [all...] |
/packages/apps/Camera2/tests/src/com/android/camera/functional/ |
ImageCaptureIntentTest.java | 5 * you may not use this file except in compliance with the License. 34 import java.io.File; 69 File file = new File(Environment.getExternalStorageDirectory(), local 75 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file)); 85 // Verify the jpeg file 86 int fileLength = (int) file.length(); 89 stream = new BufferedInputStream(new FileInputStream(file)); 93 file.delete() [all...] |
/packages/apps/Camera2/tests_camera/src/com/android/camera/functional/ |
ImageCaptureIntentTest.java | 5 * you may not use this file except in compliance with the License. 34 import java.io.File; 69 File file = new File(Environment.getExternalStorageDirectory(), local 75 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(file)); 85 // Verify the jpeg file 86 int fileLength = (int) file.length(); 89 stream = new BufferedInputStream(new FileInputStream(file)); 93 file.delete() [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/ |
LockableFileWriter.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; 32 * cross thread file lock handling. 35 * that will use a lock file to prevent duplicate writes. 37 * By default, the file will be overwritten, but this may be changed to append. 54 /** The extension for the lock file. */ 59 /** The lock file. */ 60 private final File lockFile [all...] |