Home | History | Annotate | Download | only in certinstaller

Lines Matching full:file

5  * you may not use this file except in compliance with the License.
28 import java.io.File;
54 private File mCertFile;
68 if (path != null) mCertFile = new File(path);
91 * Called when an error occurs when reading a certificate file.
102 protected List<File> getAllCertFiles() {
103 List<File> allFiles = new ArrayList<File>();
104 File root = Environment.getExternalStorageDirectory();
106 File download = new File(root, DOWNLOAD_DIR);
108 File[] files = download.listFiles(this);
112 File[] files = root.listFiles(this);
119 * Invokes {@link CertInstaller} to install the certificate(s) in the file.
121 * @param file the certificate file
123 protected void installFromFile(File file) {
124 Log.d(TAG, "install cert from " + file);
126 if (file.exists()) {
127 if (file.length() < MAX_FILE_SIZE) {
128 byte[] data = Util.readFile(file);
134 mCertFile = file;
135 install(file.getName(), data);
137 Log.w(TAG, "cert file is too large: " + file.length());
142 Log.w(TAG, "cert file does not exist");
148 public boolean accept(File file) {
149 if (!file.isDirectory()) {
150 return isFileAcceptable(file.getPath());