/dalvik/dx/src/com/android/dx/dex/file/ |
HeaderItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 26 * File header section of a {@code .dex} file. 50 public void addContents(DexFile file) { 56 public void writeTo(DexFile file, AnnotatedOutput out) { 57 int mapOff = file.getMap().getFileOffset(); 58 Section firstDataSection = file.getFirstDataSection(); 59 Section lastDataSection = file.getLastDataSection(); 64 String magic = file.getDexOptions().getMagic() [all...] |
UniformItemSection.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 which consists of a sequence of 30 * Constructs an instance. The file offset is initially unknown. 34 * @param file {@code non-null;} file that this instance is part of 38 public UniformItemSection(String name, DexFile file, int alignment) { 39 super(name, file, alignment); 70 DexFile file = getFile(); local 75 one.addContents(file); 82 DexFile file = getFile(); local [all...] |
/external/dexmaker/src/dx/java/com/android/dx/dex/file/ |
HeaderItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 26 * File header section of a {@code .dex} file. 50 public void addContents(DexFile file) { 56 public void writeTo(DexFile file, AnnotatedOutput out) { 57 int mapOff = file.getMap().getFileOffset(); 58 Section firstDataSection = file.getFirstDataSection(); 59 Section lastDataSection = file.getLastDataSection(); 64 String magic = file.getDexOptions().getMagic() [all...] |
UniformItemSection.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 25 * A section of a {@code .dex} file which consists of a sequence of 31 * Constructs an instance. The file offset is initially unknown. 35 * @param file {@code non-null;} file that this instance is part of 39 public UniformItemSection(String name, DexFile file, int alignment) { 40 super(name, file, alignment); 71 DexFile file = getFile(); local 76 one.addContents(file); 83 DexFile file = getFile(); local [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src_rss/org/eclipse/releng/generators/rss/ |
RSSFeedGetPropertyTask.java | 13 import java.io.File; 25 * file - path to the XML file that will be read - eg., /path/to/file.to.read.xml 36 private File file; field in class:RSSFeedGetPropertyTask 44 public void setFile(String file) { 45 if (isNullString(file)) 48 { this.file = new File(file); } [all...] |
/prebuilts/eclipse/maven/apache-maven-3.2.1/lib/ |
wagon-file-2.6.jar | |
/build/core/ |
dex_preopt_libart.mk | 19 # Use the first preloaded-classes file in PRODUCT_COPY_FILES. 23 # Use the first compiled-classes file in PRODUCT_COPY_FILES. 61 # Returns the path to the .odex file 63 # $(2): the full path (including file name) of the corresponding .jar or .apk. 64 define get-odex-file-path 68 # Returns the path to the image file (such as "/system/framework/<arch>/boot.art" 71 define get-image-file-path 93 # $(1): the input .jar or .apk file 94 # $(2): the output .odex file 95 define dex2oat-one-file [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
WriteNumberFormatSerialTestData.java | 45 FileOutputStream file = new FileOutputStream("NumberFormatSerialTestData.java"); local 46 file.write(header.getBytes()); 47 write(file,(Object)nf,"generalInstance", "//NumberFormat.getInstance(Locale.US)"); 48 write(file,(Object)nfc,"currencyInstance","//NumberFormat.getCurrencyInstance(Locale.US)"); 49 write(file,(Object)nfp,"percentInstance","//NumberFormat.getPercentInstance(Locale.US)"); 50 write(file,(Object)nfsp,"scientificInstance","//NumberFormat.getScientificInstance(Locale.US)"); 51 file.write(footer.getBytes()); 52 file.close(); 58 private static void write(FileOutputStream file,Object o ,String name,String comment){ 73 //file.write(myArr) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
ByodIconSamplerActivity.java | 5 * you may not use this file except in compliance with the License. 66 FileOutputStream file = null; local 68 file = new FileOutputStream(fileName); 69 bitmap.compress(Bitmap.CompressFormat.PNG, 100, file); 74 if (file != null) { 75 file.close(); 76 Log.d(TAG, "Wrote badged icon to file: " + fileName);
|
/cts/tests/tests/content/src/android/content/res/cts/ |
AssetFileDescriptor_AutoCloseOutputStreamTest.java | 5 * you may not use this file except in compliance with the License. 18 import java.io.File; 52 * 1. Write file data into test file. 55 File file = new File(getContext().getFilesDir(), FILE_NAME); local 56 file.createNewFile(); 57 ParcelFileDescriptor fd = ParcelFileDescriptor.open(file, 69 fd = ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_WRITE) [all...] |
/cts/tools/signature-tools/src/signature/io/impl/ |
BinaryApi.java | 5 * you may not use this file except in compliance with the License.
23 import java.io.File;
35 File directory = new File(fileName);
40 File file = new File(directory, getFileName(api));
local 41 file.createNewFile();
44 file));
63 "Only one file can be processed by the binary signature " + 67 File file = new File(fileName); local [all...] |
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
HeaderItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 24 * File header section of a {@code .dex} file. 28 * {@code non-null;} the file format magic number, represented as the 60 public void addContents(DexFile file) { 66 public void writeTo(DexFile file, AnnotatedOutput out) { 67 int mapOff = file.getMap().getFileOffset(); 68 Section firstDataSection = file.getFirstDataSection(); 69 Section lastDataSection = file.getLastDataSection() [all...] |
UniformItemSection.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dexgen.dex.file; 25 * A section of a {@code .dex} file which consists of a sequence of 31 * Constructs an instance. The file offset is initially unknown. 35 * @param file {@code non-null;} file that this instance is part of 39 public UniformItemSection(String name, DexFile file, int alignment) { 40 super(name, file, alignment); 71 DexFile file = getFile(); local 76 one.addContents(file); 83 DexFile file = getFile(); local [all...] |
/external/jetty/src/java/org/eclipse/jetty/util/ |
Loader.java | 21 import java.io.File; 179 File file=resource.getFile(); local 180 if (file!=null && file.exists()) 183 classpath.append(File.pathSeparatorChar); 184 classpath.append(file.getAbsolutePath());
|
/frameworks/base/core/java/android/gesture/ |
GestureLibraries.java | 5 * you may not use this file except in compliance with the License. 24 import java.io.File; 37 return fromFile(new File(path)); 40 public static GestureLibrary fromFile(File path) { 53 private final File mPath; 55 public FileGestureLibrary(File path) { 67 final File file = mPath; 69 final File parentFile = file.getParentFile() 93 final File file = mPath; local [all...] |
/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...] |
/frameworks/base/tools/layoutlib/bridge/src/libcore/io/ |
MemoryMappedFile_Delegate.java | 5 * you may not use this file except in compliance with the License. 25 import java.io.File; 48 /** Path on the target device where the data file is available. */ 51 private static File sRootPath; 63 File f = new File(sRootPath, path); 65 throw new ErrnoException("File not found: " + f.getPath(), 1); 67 RandomAccessFile file = new RandomAccessFile(f, "r"); local 69 long size = file.length(); 70 MemoryMappedFile_Delegate newDelegate = new MemoryMappedFile_Delegate(file); [all...] |
/frameworks/data-binding/compilationTests/src/test/java/android/databinding/compilationTest/ |
MultiLayoutVerificationTest.java | 5 * you may not use this file except in compliance with the License. 26 import java.io.File; 57 File file = new File(report.getFilePath()); local 58 assertTrue(file.exists()); 61 switch (file.getParentFile().getName()) { 63 assertEquals(new File(testFolder, 65 .getCanonicalFile(), file.getCanonicalFile()); 76 assertEquals(new File(testFolder 115 File file = new File(report.getFilePath()); local 170 File file = new File(report.getFilePath()); local 224 File file = new File(report.getFilePath()); local [all...] |
/libcore/benchmarks/src/benchmarks/ |
BufferedZipFileBenchmark.java | 5 * you may not use this file except in compliance with the License. 22 import java.io.File; 34 private File file; field in class:BufferedZipFileBenchmark 37 file = File.createTempFile(getClass().getName(), ".zip"); 38 file.deleteOnExit(); 41 ZipOutputStream out = new ZipOutputStream(new FileOutputStream(file)); 56 ZipFile zipFile = new ZipFile(file); 69 ZipFile zipFile = new ZipFile(file); [all...] |
/libcore/luni/src/test/java/libcore/xml/ |
DeclarationTest.java | 5 * you may not use this file except in compliance with the License. 25 import java.io.File; 61 File file = File.createTempFile("temp", "xml"); local 62 file.deleteOnExit(); 63 OutputStream out = new FileOutputStream(file); 66 return "file:" + file;
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/ |
DumpFileProvider.java | 5 * you may not use this file except in compliance with the License. 27 import java.io.File; 73 /** @return file content */ 82 final File file = DataExporter.getOutputFile(getContext(), fileName); local 83 return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY); 107 // Just return the requested path as the display name. We don't care if the file 111 final File file = DataExporter.getOutputFile(getContext(), fileName); local 113 if (file.exists()) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/model/ |
GLTrace.java | 5 * you may not use this file except in compliance with the License. 27 import java.io.File; 34 /** GLTrace is the in memory model of a OpenGL trace file. */ 38 /** Information regarding the trace file. */ 88 RandomAccessFile file; local 90 file = new RandomAccessFile(mTraceFileInfo.getPath(), "r"); //$NON-NLS-1$ 97 m = sTraceFileReader.getMessageAtOffset(file, c.getOffsetInTraceFile()); 102 file.close(); 104 // ignore exception while closing file 112 File f = new File(mTraceFileInfo.getPath()) [all...] |
/art/runtime/base/unix_file/ |
fd_file_test.cc | 5 * you may not use this file except in compliance with the License. 44 FdFile file; local 45 EXPECT_EQ(-1, file.Fd()); 46 EXPECT_FALSE(file.IsOpened()); 47 EXPECT_TRUE(file.GetPath().empty()); 51 std::string good_path(GetTmpPath("some-file.txt")); 52 FdFile file; local 53 ASSERT_TRUE(file.Open(good_path, O_CREAT | O_WRONLY)); 54 EXPECT_GE(file.Fd(), 0); 55 EXPECT_TRUE(file.IsOpened()) 71 FdFile file; local 87 FdFile file; local [all...] |
/art/tools/dexfuzz/src/dexfuzz/rawdex/formats/ |
Format10t.java | 5 * you may not use this file except in compliance with the License. 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { 27 file.writeByte((byte) insn.info.value); 28 file.writeByte((byte) insn.vregA);
|
Format11n.java | 5 * you may not use this file except in compliance with the License. 26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { 27 file.writeByte((byte) insn.info.value); 28 file.writeByte((byte) (insn.vregA | (insn.vregB << 4)));
|