/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | FileUtil.java | 5 * you may not use this file except in compliance with the License. 24 * Common file operations. 53 * @param file The file to read 54 * @return The content of the file 57 public static byte[] readFileToByteArray(File file) throws IOException { argument 58 int length = (int) file.length(); 60 FileInputStream stream = new FileInputStream(file);
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/ |
H A D | CanWriteFileFilter.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 70 * Checks to see if the file can be written to. 72 * @param file the File to check 73 * @return <code>true</code> if the file can be 76 public boolean accept(File file) { argument 77 return file.canWrite();
|
H A D | DirectoryFileFilter.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 64 * Checks to see if the file is a directory. 66 * @param file the File to check 67 * @return true if the file is a directory 69 public boolean accept(File file) { argument 70 return file.isDirectory();
|
H A D | EmptyFileFilter.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 69 * Checks to see if the file is empty. 71 * @param file the file or directory to check 72 * @return <code>true</code> if the file or directory 75 public boolean accept(File file) { argument 76 if (file.isDirectory()) { 77 File[] files = file [all...] |
H A D | FileFileFilter.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 41 /** Singleton instance of file filter */ 51 * Checks to see if the file is a file. 53 * @param file the File to check 54 * @return true if the file is a file 56 public boolean accept(File file) { argument [all...] |
H A D | HiddenFileFilter.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 66 * Checks to see if the file is hidden. 68 * @param file the File to check 69 * @return <code>true</code> if the file is 72 public boolean accept(File file) { argument 73 return file.isHidden();
|
H A D | IOFileFilter.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 39 * @param file the File to check 40 * @return true if this file matches the test 42 public boolean accept(File file); argument 51 * @return true if this file matches the test
|
H A D | 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 38 * @param file the File to check 39 * @return true if this file matches the test 41 public boolean accept(File file) { argument 42 return accept(file.getParentFile(), file.getName()); 50 * @return true if this file matches the test 57 * Provide a String representaion of this file filte [all...] |
H A D | AgeFileFilter.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 54 * Constructs a new age file filter for files equal to or older than 64 * Constructs a new age file filter for files on any one side 77 * Constructs a new age file filter for files older than (at or before) 87 * Constructs a new age file filter for files on any one side 99 * Constructs a new age file filter for files older than (at or before) 102 * @param cutoffReference the file whose last modification 110 * Constructs a new age file filte 136 accept(File file) argument [all...] |
H A D | CanReadFileFilter.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 82 * Checks to see if the file can be read. 84 * @param file the File to check. 85 * @return <code>true</code> if the file can be 88 public boolean accept(File file) { argument 89 return file.canRead();
|
H A D | DelegateFileFilter.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 40 * Constructs a delegate file filter around an existing FilenameFilter. 53 * Constructs a delegate file filter around an existing FileFilter. 68 * @param file the file to check 71 public boolean accept(File file) { argument 73 return fileFilter.accept(file); 75 return super.accept(file); [all...] |
H A D | FalseFileFilter.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 23 * A file filter that always returns false. 54 * @param file the file to check 57 public boolean accept(File file) { argument
|
H A D | NameFileFilter.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 55 * Constructs a new case-sensitive name file filter for a single name. 65 * Construct a new name file filter specifying case-sensitivity. 80 * Constructs a new case-sensitive name file filter for an array of names. 93 * Constructs a new name file filter for an array of names specifying case-sensitivity. 111 * Constructs a new case-sensitive name file filter for a list of names. 122 * Constructs a new name file filter for a list of names specifying case-sensitivity. 141 * @param file th 145 accept(File file) argument 163 accept(File file, String name) argument [all...] |
H A D | NotFileFilter.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 36 * Constructs a new file filter that NOTs the result of another filters. 51 * @param file the File to check 54 public boolean accept(File file) { argument 55 return ! filter.accept(file); 61 * @param file the File directory 65 public boolean accept(File file, String name) { argument 66 return ! filter.accept(file, nam [all...] |
H A D | PrefixFileFilter.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 56 * Constructs a new Prefix file filter for a single prefix. 66 * Constructs a new Prefix file filter for a single prefix 83 * Constructs a new Prefix file filter for any of an array of prefixes. 96 * Constructs a new Prefix file filter for any of an array of prefixes 116 * Constructs a new Prefix file filter for a list of prefixes. 127 * Constructs a new Prefix file filter for a list of prefixes 147 * @param file th 151 accept(File file) argument 169 accept(File file, String name) argument [all...] |
H A D | SizeFileFilter.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 49 * Constructs a new size file filter for files equal to or 60 * Constructs a new size file filter for files based on a certain size 78 * Checks to see if the size of the file is favorable. 81 * file <b>IS NOT</b> selected. 83 * file <b>IS</b> selected. 85 * @param file the File to check 88 public boolean accept(File file) { argument [all...] |
H A D | SuffixFileFilter.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 57 * Constructs a new Suffix file filter for a single extension. 67 * Constructs a new Suffix file filter for a single extension 84 * Constructs a new Suffix file filter for an array of suffixs. 97 * Constructs a new Suffix file filter for an array of suffixs 117 * Constructs a new Suffix file filter for a list of suffixes. 128 * Constructs a new Suffix file filter for a list of suffixes 148 * @param file th 152 accept(File file) argument 170 accept(File file, String name) argument [all...] |
H A D | TrueFileFilter.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 23 * A file filter that always returns true. 54 * @param file the file to check 57 public boolean accept(File file) { argument
|
H A D | WildcardFileFilter.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 146 * @param dir the file directory 163 * @param file the file to check 167 public boolean accept(File file) { argument 168 String name = file.getName(); 178 * Provide a String representaion of this file filter.
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
H A D | Util.java | 5 * you may not use this file except in compliance with the License. 80 static byte[] readFile(File file) { argument 82 byte[] data = new byte[(int) file.length()]; 83 FileInputStream fis = new FileInputStream(file); 88 Log.w(TAG, "cert file read error: " + e); 93 static boolean deleteFile(File file) { argument 94 if ((file != null) && !file.delete()) { 95 Log.w(TAG, "cannot delete cert: " + file);
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
H A D | MediaSaver.java | 5 * you may not use this file except in compliance with the License. 61 File file; 65 file = new File(filename); 66 if (file.createNewFile()) { 72 OutputStream os = new FileOutputStream(file); 80 // really slow for some reason: MediaStore.Images.Media.insertImage(resolver, file.getAbsolutePath(), file.getName(), file.getName()); 81 insertImage(resolver, file); 86 jpegData.length, file, (t 95 insertImage(ContentResolver cr, File file) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | DownloadUtils.java | 5 * you may not use this file except in compliance with the License. 34 public static boolean requestDownload(JobContext jc, URL url, File file) { argument 37 fos = new FileOutputStream(file);
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
H A D | DownloadsFilePreference.java | 5 * you may not use this file except in compliance with the License. 30 * DownloadsFilePreference is a preference representing a file in the Downloads folder 31 * with a checkbox that represents if the file should be deleted. 36 public DownloadsFilePreference(Context context, File file) { argument 38 mFile = file; 40 setTitle(file.getName()); 42 Formatter.formatFileSize(getContext(), file.length()), 47 // We turn off persistence because we need the file preferences to reset their check when
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/ |
H A D | platformtest.cpp | 5 // Licensed under the MIT License (the "License"); you may not use this file except
17 // This file is for giving the performance characteristics of the platform (compiler/OS/CPU).
138 HANDLE file = CreateFile(filename_, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
local 139 ASSERT_NE(INVALID_HANDLE_VALUE, file);
140 HANDLE mapObject = CreateFileMapping(file, NULL, PAGE_READONLY, 0, length_, NULL);
147 ASSERT_TRUE(CloseHandle(file) == TRUE);
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
H A D | FileCleaner.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 25 * This utility creates a background thread to handle file deletion. 26 * Each file to be deleted is registered with a handler object. 27 * When the handler object is garbage collected, the file is deleted. 49 * Track the specified file, using the provided marker, deleting the file 53 * @param file the file t 59 track(File file, Object marker) argument 75 track(File file, Object marker, FileDeleteStrategy deleteStrategy) argument [all...] |