Searched refs:file (Results 1 - 25 of 197) sorted by relevance

12345678

/dalvik/dx/src/com/android/dx/util/
H A DFileUtils.java5 * you may not use this file except in compliance with the License.
35 * Reads the named file, translating {@link IOException} to a
38 * @param fileName {@code non-null;} name of the file to read
39 * @return {@code non-null;} contents of the file
42 File file = new File(fileName);
43 return readFile(file);
47 * Reads the given file, translating {@link IOException} to a
50 * @param file {@code non-null;} the file to read
51 * @return {@code non-null;} contents of the file
53 readFile(File file) argument
[all...]
/dalvik/tools/
H A Ddexcheck6 # you may not use this file except in compliance with the License.
30 # Check each file in turn. This is much faster with "dexdump -c", but that
35 for file in $files; do
36 echo $file
37 errout=`adb shell "dexdump /data/dalvik-cache/$file > dev/null"`
40 echo " Failure in $file: $errout"
/dalvik/dx/src/com/android/dx/dex/file/
H A DFieldIdItem.java5 * you may not use this file except in compliance with the License.
17 package com.android.dx.dex.file;
22 * Representation of a field reference inside a Dalvik file.
42 public void addContents(DexFile file) { argument
43 super.addContents(file);
45 TypeIdsSection typeIds = file.getTypeIds();
60 protected int getTypoidIdx(DexFile file) { argument
61 TypeIdsSection typeIds = file.getTypeIds();
H A DMethodIdItem.java5 * you may not use this file except in compliance with the License.
17 package com.android.dx.dex.file;
22 * Representation of a method reference inside a Dalvik file.
42 public void addContents(DexFile file) { argument
43 super.addContents(file);
45 ProtoIdsSection protoIds = file.getProtoIds();
60 protected int getTypoidIdx(DexFile file) { argument
61 ProtoIdsSection protoIds = file.getProtoIds();
H A DItem.java5 * you may not use this file except in compliance with the License.
17 package com.android.dx.dex.file;
23 * repeated piece of a Dalvik file.
59 * This will <i>not</i> add an item to the file for this instance itself
65 * @param file {@code non-null;} the file to populate
67 public abstract void addContents(DexFile file); argument
76 * @param file {@code non-null;} the file to use for reference
79 public abstract void writeTo(DexFile file, AnnotatedOutpu argument
[all...]
H A DMemberIdsSection.java5 * you may not use this file except in compliance with the License.
17 package com.android.dx.dex.file;
20 * Member (field or method) refs list section of a {@code .dex} file.
24 * Constructs an instance. The file offset is initially unknown.
28 * @param file {@code non-null;} file that this instance is part of
30 public MemberIdsSection(String name, DexFile file) { argument
31 super(name, file, 4);
H A DIdItem.java5 * you may not use this file except in compliance with the License.
17 package com.android.dx.dex.file;
22 * Representation of a reference to an item inside a Dalvik file.
47 public void addContents(DexFile file) { argument
48 TypeIdsSection typeIds = file.getTypeIds();
H A DHeaderItem.java5 * you may not use this file except in compliance with the License.
17 package com.android.dx.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) { argument
66 public void writeTo(DexFile file, AnnotatedOutput out) { argument
67 int mapOff = file.getMap().getFileOffset();
68 Section firstDataSection = file.getFirstDataSection();
69 Section lastDataSection = file.getLastDataSection();
79 Hex.u4(file
[all...]
H A DUniformItemSection.java5 * 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) { argument
40 super(name, file, alignment);
71 DexFile file = getFile();
76 one.addContents(file);
[all...]
H A DMemberIdItem.java5 * you may not use this file except in compliance with the License.
17 package com.android.dx.dex.file;
26 * Dalvik file.
29 /** size of instances when written out to a file, in bytes */
54 public void addContents(DexFile file) { argument
55 super.addContents(file);
57 StringIdsSection stringIds = file.getStringIds();
63 public final void writeTo(DexFile file, AnnotatedOutput out) { argument
64 TypeIdsSection typeIds = file.getTypeIds();
65 StringIdsSection stringIds = file
92 getTypoidIdx(DexFile file) argument
[all...]
H A DEncodedMember.java5 * you may not use this file except in compliance with the License.
17 package com.android.dx.dex.file;
69 * @param file {@code non-null;} the file to populate
71 public abstract void addContents(DexFile file); argument
76 * @param file {@code non-null;} file this instance is part of
84 public abstract int encode(DexFile file, AnnotatedOutput out, argument
H A DHeaderSection.java5 * 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.
33 * Constructs an instance. The file offset is initially unknown.
35 * @param file {@code non-null;} file that this instance is part of
37 public HeaderSection(DexFile file) { argument
38 super(null, file, 4);
H A DAnnotationSetRefItem.java5 * you may not use this file except in compliance with the License.
17 package com.android.dx.dex.file;
57 public void addContents(DexFile file) { argument
58 MixedItemSection wordData = file.getWordData();
71 protected void writeTo0(DexFile file, AnnotatedOutput out) { argument
H A DSection.java5 * 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, in argument
[all...]
/dalvik/libcore/luni/src/main/java/java/io/
H A DFileWriter.java3 * 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
21 * A specialized {@link Writer} that writes to a file in the file system.
34 * Creates a FileWriter using the File {@code file}.
36 * @param file
39 * if {@code file} cannot be opened for writing.
41 public FileWriter(File file) throws IOException { argument
42 super(new FileOutputStream(file));
57 FileWriter(File file, boolean append) argument
[all...]
H A DFileReader.java3 * 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
21 * A specialized {@link Reader} that reads from a file in the file system.
34 * Constructs a new FileReader on the given {@code file}.
36 * @param file
39 * if {@code file} does not exist.
41 public FileReader(File file) throws FileNotFoundException { argument
42 super(new FileInputStream(file));
[all...]
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/jar/
H A DHandler.java3 * 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
31 * Returns a connection to the jar file pointed by this <code>URL</code>
32 * in the file system
61 String file = url.getFile();
62 if (file == null) {
63 file = ""; //$NON-NLS-1$
70 if (spec.indexOf("!/") == -1 && (file.indexOf("!/") == -1)) { //$NON-NLS-1$ //$NON-NLS-2$
73 if (file
[all...]
/dalvik/tools/dmtracedump/tests/filters/
H A Drun_tests.sh4 for file in $(find $1 -type f -iname 'test*'); do
5 case $file in
12 echo "Running test for $file"
14 # create_test_dmtrace $file tmp.trace
15 dmtracedump -f testFilters -h "$file"Trace > tmp.html 2> /dev/null
17 output=`diff tmp.html "$file"Expected 2>&1`
/dalvik/libcore/luni/src/test/java/tests/api/java/io/
H A DOpenRandomFileTest.java2 * contributor license agreements. See the NOTICE file distributed with
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
50 File file = File.createTempFile("test", "tmp");
51 assertTrue(file.exists());
52 file.deleteOnExit();
53 FileOutputStream fos = new FileOutputStream(file);
57 String fileName = file.getCanonicalPath();
72 File file = File.createTempFile("test", "tmp");
73 assertTrue(file
[all...]
/dalvik/libcore-disabled/sound/src/main/java/com/android/internal/sound/midi/
H A DAndroidMidiFileReader.java5 * you may not use this file except in compliance with the License.
34 * file or a URL.
39 public MidiFileFormat getMidiFileFormat(File file) throws InvalidMidiDataException, IOException { argument
55 public Sequence getSequence(File file) throws InvalidMidiDataException, IOException { argument
56 return new AndroidSequence(file.toURL());
61 File file = File.createTempFile("javax.sound.midi-", null);
62 file.deleteOnExit();
64 BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(file));
76 return getSequence(file);
/dalvik/libcore-disabled/sound/src/main/java/com/android/internal/sound/sampled/
H A DAndroidAudioFileReader.java5 * you may not use this file except in compliance with the License.
34 * a file or URL.
39 public AudioFileFormat getAudioFileFormat(File file) throws UnsupportedAudioFileException, argument
57 public AudioInputStream getAudioInputStream(File file) throws UnsupportedAudioFileException, argument
59 return new AndroidAudioInputStream(file.toURL());
65 File file = File.createTempFile("javax.sound.sampled-", null);
66 file.deleteOnExit();
68 BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(file));
80 return getAudioInputStream(file);
/dalvik/dx/etc/
H A Dopcode-gen6 # you may not use this file except in compliance with the License.
17 # opcode-gen <file>
19 # Use the file bytecodes.txt to generate code inside <file>, based on
20 # the directives found in that file:
26 file="$1"
30 echo "must specify a file"
122 print "trouble reading bytecode file";
138 ' "$file" > "$tmpfile"
140 cp "$tmpfile" "$file"
[all...]
/dalvik/libcore/luni/src/main/java/java/net/
H A DURLStreamHandler.java3 * 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
111 String file = u.getPath();
129 file = ""; //$NON-NLS-1$
185 if (queryIdx == 0 && file != null) {
186 if (file.equals("")) { //$NON-NLS-1$
187 file = "/"; //$NON-NLS-1$
188 } else if (file.startsWith("/")) { //$NON-NLS-1$
191 int last = file
258 setURL(URL u, String protocol, String host, int port, String file, String ref) argument
289 setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String file, String query, String ref) argument
[all...]
/dalvik/libcore/security/src/test/java/tests/security/permissions/
H A DJavaIoFileOutputStreamTest.java5 * you may not use this file except in compliance with the License.
88 String file;
92 file = null;
102 public void checkWrite(String file){
104 this.file = file;
105 super.checkWrite(file);
131 assertEquals("Argument of checkWrite is not correct", filename, s.file);
136 assertEquals("Argument of checkWrite is not correct", filename, s.file);
141 assertEquals("Argument of checkWrite is not correct", filename, s.file);
[all...]
H A DJavaIoRandomAccessFileTest.java5 * you may not use this file except in compliance with the License.
69 String file;
72 file = null;
75 public void checkRead(String file){
77 this.file = file;
78 super.checkRead(file);
98 assertEquals("Argument of checkRead is not correct", filename, s.file);
103 assertEquals("Argument of checkRead is not correct", filename, s.file);
127 public void checkRead(String file) {
[all...]

Completed in 1482 milliseconds

12345678