/packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/ |
AbstractFileFilter.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; 36 * Checks to see if the File should be accepted by this filter. 38 * @param file the File to check 39 * @return true if this file matches the test 41 public boolean accept(File file) { [all...] |
/development/tools/idegen/src/ |
Files.java | 5 * you may not use this file except in compliance with the License. 21 * File utility methods. 26 * Reads file into a string using default encoding. 28 static String toString(File file) throws IOException { 31 Reader in = new FileReader(file); 41 * Writes a string to a file using default encoding. 43 static void toFile(String contents, File file) throws IOException { 44 FileWriter out = new FileWriter(file); [all...] |
/external/clang/test/VFS/Inputs/ |
vfsoverlay.yaml | 6 { 'name': 'not_real.h', 'type': 'file', 9 { 'name': 'import_some_frame.h', 'type': 'file', 12 { 'name': 'module.map', 'type': 'file', 15 { 'name': 'include_real.h', 'type': 'file', 22 { 'name': 'public_header.h', 'type': 'file', 24 { 'name': 'public_header2.h', 'type': 'file', 30 { 'name': 'Foo.framework/Headers/Foo.h', 'type': 'file', 37 { 'name': 'Incomplete.h', 'type': 'file', 40 { 'name': 'IncompleteVFS.h', 'type': 'file', 45 { 'name': 'Modules/module.modulemap', 'type': 'file', [all...] |
/external/libvpx/libvpx/third_party/libwebm/ |
mkvwriter.hpp | 4 // that can be found in the LICENSE file in the root of the source 6 // in the file PATENTS. All contributing project authors may 7 // be found in the AUTHORS file in the root of the source tree. 23 explicit MkvWriter(FILE* fp); 33 // Creates and opens a file for writing. |filename| is the name of the file 38 // Closes an opened file. 42 // File handle to output file. 43 FILE* file_ [all...] |
/external/sepolicy/ |
drmserver.te | 21 allow drmserver drm_data_file:file create_file_perms; 23 allow drmserver app_data_file:file { read write getattr }; 24 allow drmserver sdcard_type:file { read write getattr }; 29 # /data/app/tlcd_sock socket file. 35 # Delete old socket file if present. 38 # After taking a video, drmserver looks at the video file. 42 allow drmserver apk_data_file:file { read getattr }; 43 allow drmserver asec_apk_file:file { read getattr }; 46 allow drmserver radio_data_file:file { read getattr }; 50 allow drmserver oemfs:file r_file_perms [all...] |
/frameworks/base/data/keyboards/ |
keyboards.mk | 4 # you may not use this file except in compliance with the License. 19 PRODUCT_COPY_FILES := $(foreach file,$(framework_keylayouts),\ 20 $(file):system/usr/keylayout/$(notdir $(file))) 22 PRODUCT_COPY_FILES += $(foreach file,$(framework_keycharmaps),\ 23 $(file):system/usr/keychars/$(notdir $(file))) 25 PRODUCT_COPY_FILES += $(foreach file,$(framework_keyconfigs),\ 26 $(file):system/usr/idc/$(notdir $(file))) [all...] |
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/third_party/libwebm/ |
mkvwriter.hpp | 4 // that can be found in the LICENSE file in the root of the source 6 // in the file PATENTS. All contributing project authors may 7 // be found in the AUTHORS file in the root of the source tree. 23 MkvWriter(FILE* fp); 33 // Creates and opens a file for writing. |filename| is the name of the file 38 // Closes an opened file. 42 // File handle to output file. 43 FILE* file_ [all...] |
/art/runtime/base/ |
scoped_flock.h | 5 * you may not use this file except in compliance with the License. 32 // Attempts to acquire an exclusive file lock (see flock(2)) on the file 36 // occurred. It is an error if the file does not exist, or if its inode 37 // changed (usually due to a new file being created at the same path) 40 // Attempt to acquire an exclusive file lock (see flock(2)) on 'file'. 43 bool Init(File* file, std::string* error_msg); 45 // Returns the (locked) file associated with this instance [all...] |
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
RawDexObject.java | 5 * you may not use this file except in compliance with the License. 22 * Base class for any data structure that we may read or write from a DEX file. 26 * Populate information for this DEX data from the file. 27 * @param file Input file, should already be "seeked" to the correct position. 28 * @throws IOException If there's a problem writing to the file. 30 public void read(DexRandomAccessFile file) throws IOException; 33 * Write information for this DEX data to the file. 34 * @param file Output file, should already be "seeked" to the correct position [all...] |
TypeList.java | 5 * you may not use this file except in compliance with the License. 26 public void read(DexRandomAccessFile file) throws IOException { 27 file.alignForwards(4); 28 file.getOffsetTracker().getNewOffsettable(file, this); 29 size = file.readUInt(); 32 (list[i] = new TypeItem()).read(file); 37 public void write(DexRandomAccessFile file) throws IOException { 38 file.alignForwards(4); 39 file.getOffsetTracker().updatePositionOfNextOffsettable(file) [all...] |
/external/compiler-rt/lib/tsan/ |
analyze_libtsan.sh | 27 file=asm_$f.s 28 get_asm $f > $file 29 tot=$(wc -l < $file) 31 rsp=$(grep '(%rsp)' $file | wc -l) 32 push=$(grep 'push' $file | wc -l) 33 pop=$(grep 'pop' $file | wc -l) 34 call=$(grep 'call' $file | wc -l) 35 load=$(egrep 'mov .*\,.*\(.*\)|cmp .*\,.*\(.*\)' $file | wc -l) 36 store=$(egrep 'mov .*\(.*\),' $file | wc -l) 37 mov=$(grep 'mov' $file | wc -l [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/file/ |
StreamFileDataLoadProvider.java | 1 package com.bumptech.glide.load.resource.file; 11 import java.io.File; 16 * cache file from {@link java.io.InputStream} data. 18 public class StreamFileDataLoadProvider implements DataLoadProvider<InputStream, File> { 21 private final ResourceDecoder<File, File> cacheDecoder; 30 public ResourceDecoder<File, File> getCacheDecoder() { 35 public ResourceDecoder<InputStream, File> getSourceDecoder() { 45 public ResourceEncoder<File> getEncoder() [all...] |
/external/webrtc/src/modules/audio_coding/codecs/isac/fix/test/QA/ |
runiSACNB.txt | 27 for file in $SUBSET # loop over all input files 32 $ISAC $rate -FL 30 -NB 1 $INDIR/"$file" $OUTDIR/nb130_$index1"$file" >> $LOGFILE 33 $ISAC $rate -FL 60 -NB 1 $INDIR/"$file" $OUTDIR/nb160_$index1"$file" >> $LOGFILE 34 $ISAC $rate -FL 30 -NB 2 $INDIR/"$file" $OUTDIR/nb230_$index1"$file" >> $LOGFILE 35 $ISAC $rate -FL 60 -NB 2 $INDIR/"$file" $OUTDIR/nb260_$index1"$file" >> $LOGFILE 36 $ISAC $rate -FL 30 -NB 2 -PL 10 $INDIR/"$file" $OUTDIR/nb2plc30_$index1"$file" >> $LOGFIL [all...] |
/external/tcpdump/win32/prj/ |
WinDump.vcproj | 207 <File 228 </File> 229 <File 250 </File> 251 <File 272 </File> 273 <File 294 </File> 295 <File 316 </File> [all...] |
/external/skia/tools/skpdiff/ |
generate_pmetric_tables.py | 12 * found in the LICENSE file. 70 print('static float gCubeRootTable[] = {', end='', file=stream) 73 print('\n ', end='', file=stream) 74 print("%.10f" % pow(i / 1024.0, 1.0 / 3.0), end='f,', file=stream) 75 print('\n};', end='', file=stream) 76 print(CUBE_ROOT_ACCESS_FUNCTION, file=stream) 86 print('static float gGammaTable[] = {', end='', file=stream) 89 print('\n ', end='', file=stream) 90 print("%.10f" % pow(i / 255.0, 2.2), end='f,', file=stream) 91 print('\n};', end='', file=stream [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...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
ContextTest.java | 13 import java.io.File; 34 File[] files = context.getFilesDir().listFiles(); 38 File[] cachedFiles = context.getFilesDir().listFiles(); 51 public void deleteDir(File path) { 53 File[] files = path.listFiles(); 55 for (File f : files) { 64 File dataDir = new File(ShadowContext.FILES_DIR, "data"); 75 File dataDir = new File(ShadowContext.FILES_DIR, "data") 159 File file = new File(context.getFilesDir(), "__test__"); local 190 File file = new File("__test__"); local 226 File file = new File(filesDir, "test.txt"); local 236 File file = new File(filesDir, "test.txt"); local [all...] |
/external/emma/core/java12/com/vladium/util/ |
Files.java | 12 import java.io.File; 36 public static String [] readFileList (final File atfile) 88 public static File [] pathToFiles (final String [] path, final boolean canonical) 96 final String separators = ",".concat (File.pathSeparator); 112 _result.add (new File (pathname)); 117 final File [] result = new File [_result.size ()]; 125 * will return the absolute form of 'pathname' if File.getCanonicalPath() fails. 133 return new File (pathname).getCanonicalPath (); 137 return new File (pathname).getAbsolutePath () [all...] |
/external/guava/guava-tests/test/com/google/common/io/ |
FilesTest.java | 5 * you may not use this file except in compliance with the License. 33 import java.io.File; 57 suite.addTest(ByteSourceTester.tests("Files.asByteSource[File]", 59 suite.addTest(ByteSinkTester.tests("Files.asByteSink[File]", 61 suite.addTest(ByteSinkTester.tests("Files.asByteSink[File, APPEND]", 63 suite.addTest(CharSourceTester.tests("Files.asCharSource[File, Charset]", 65 suite.addTest(CharSinkTester.tests("Files.asCharSink[File, Charset]", 67 suite.addTest(CharSinkTester.tests("Files.asCharSink[File, Charset, APPEND]", 74 File asciiFile = getTestFile("ascii.txt"); 75 File i18nFile = getTestFile("i18n.txt") 394 File file = root(); local 401 File file = file("nonexistent.file"); local 408 File file = file(getTempDir(), "nonexistent.file"); local 414 File file = file(getTempDir(), "parent", "nonexistent.file"); local 426 File file = file(getTempDir(), "grandparent", "parent", "nonexistent.file"); local 437 File file = file(parent, "foo"); local 621 File file = createTempFile(); local 634 File file = createTempFile(); local 653 File file = createTempFile(); local 674 File file = createTempFile(); local 693 File file = createTempFile(); local 806 private static File file(String first, String... more) { method in class:FilesTest 813 private static File file(File first, String... more) { method in class:FilesTest 815 File file = first; local [all...] |
/libcore/luni/src/main/java/java/io/ |
RandomAccessFile.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 34 * Allows reading from and writing to a file in a random-access manner. This is 36 * {@link FileInputStream} or {@link FileOutputStream} provides. If the file is 49 // The unique file channel associated with this FileInputStream (lazily 60 * Constructs a new {@code RandomAccessFile} based on {@code file} and opens 67 * <td>The file is opened in read-only mode. An {@code IOException} is 72 * <td>The file is opened for reading and writing. If the file does no [all...] |
/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/marisa-trie/lib/marisa/ |
writer.cc | 17 Writer::Writer(std::FILE *file) 18 : file_(file), fd_(-1), stream_(NULL), needs_fclose_(false) {} 37 std::FILE *file = NULL; local 39 ::fopen_s(&file, filename, "rb+"); 41 if (file == NULL) { 42 if (::fopen_s(&file, filename, "wb") != 0) { 47 std::FILE *file = NULL local [all...] |
/external/marisa-trie/v0_1_5/lib/marisa_alpha/ |
writer.cc | 17 Writer::Writer(std::FILE *file) 18 : file_(file), fd_(-1), stream_(NULL), needs_fclose_(false) {} 37 std::FILE *file = NULL; local 39 ::fopen_s(&file, filename, "rb+"); 41 if (file == NULL) { 42 if (::fopen_s(&file, filename, "wb") != 0) { 47 std::FILE *file = NULL local [all...] |
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/ |
FileSystemEntry.java | 5 * you may not use this file except in compliance with the License.
22 * Interface for an entry within a fake file system, representing a single file or directory.
32 * @return true if this file system entry is a directory, false otherwise
37 * Return the path for this file system entry
39 * @return the path for this file system entry
44 * Return the file name or directory name (no path) for this entry
46 * @return the file name or directory name (no path) for this entry
51 * Return the size of this file system entry
53 * @return the file size in bytes [all...] |
/external/vogar/src/vogar/android/ |
AdbTarget.java | 5 * you may not use this file except in compliance with the License. 20 import java.io.File; 36 @Override public File defaultDeviceDir() { 37 return new File("/data/local/tmp/vogar"); 46 @Override public void await(File directory) { 52 @Override public List<File> ls(File directory) throws FileNotFoundException { 66 @Override public void rm(File file) { 67 run.androidSdk.rm(file); [all...] |