/external/webkit/Tools/Scripts/ |
run-webkit-websocketserver | 35 use File::Spec; 49 my $testDirectory = File::Spec->rel2abs($layoutTestsName);
|
/frameworks/base/core/java/android/gesture/ |
GestureLibraries.java | 5 * you may not use this file except in compliance with the License. 23 import java.io.File; 36 return fromFile(new File(path)); 39 public static GestureLibrary fromFile(File path) { 52 private final File mPath; 54 public FileGestureLibrary(File path) { 66 final File file = mPath; 68 final File parentFile = file.getParentFile() 92 final File file = mPath; local [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/ |
ScreenshotTest.java | 5 * you may not use this file except in compliance with the License. 27 import java.io.File; 52 File screenshotDir = getScreenshotDir(); 57 // unlikely, but check if a new screenshot file was already created 67 File screenshotFile = new File(screenshotDir, observer.getCreatedPath()); 69 assertTrue(String.format("Detected new screenshot %s but its not a file", 74 // delete the file to prevent external storage from filing up 92 Log.d(LOG_TAG, String.format("Detected new file added %s", path)); 123 private File getScreenshotDir() [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/ |
RandomBitsSupplier.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 21 import java.io.File; 34 devURandom = new FileInputStream(new File("/dev/urandom"));
|
/packages/apps/Email/src/org/apache/commons/io/filefilter/ |
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
19 import java.io.File;
30 * File dir = new File(".");
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. [all...] |
/packages/apps/VoiceDialer/src/com/android/voicedialer/ |
VoiceDialerTester.java | 5 * you may not use this file except in compliance with the License. 21 import java.io.File; 36 private final File[] mWavDirs; 42 final public File mFile; 47 public WavFile(File file) { 48 mFile = file; 55 public VoiceDialerTester(File dir) { 61 Vector<File> wavDirs = new Vector<File>(); [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/actions/ |
AddSupportJarAction.java | 5 * you may not use this file except in compliance with the License. 65 import java.io.File; 133 File jarPath = installSupport(-1); 155 * @return the location of the support jar file, or null if something went 159 public static File installSupport(int minimumRevision) { 171 File path = getSupportJarFile(); 191 Pair<Boolean, File> result = window.installExtraPackage(VENDOR_ID, SUPPORT_ID); 205 File path = new File(result.getSecond(), FD_V4); 206 final File jarPath = new File(path, ANDROID_SUPPORT_V4_JAR) [all...] |
/external/apache-harmony/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/io/ |
UnixFileTest.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 21 import java.io.File; 29 * Please note that this case can only be passed on Linux due to some file 36 private File testFile; 38 private File testDir; 84 private static long getLinuxSpace(int index, File file) throws Exception { 86 String par = file.getAbsolutePath() 412 File file = new File("folder2"); local [all...] |
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
LayoutTestsAutoTest.java | 5 * you may not use this file except in compliance with the License. 31 import java.io.File; 94 File externalDir = Environment.getExternalStorageDirectory(); 95 File resultsPassedFile = new File(externalDir, "layout_tests_passed.txt"); 96 File resultsFailedFile = new File(externalDir, "layout_tests_failed.txt"); 97 File resultsIgnoreResultFile = new File(externalDir, "layout_tests_ignored.txt"); 98 File noExpectedResultFile = new File(externalDir, "layout_tests_nontext.txt") [all...] |
FileList.java | 5 * you may not use this file except in compliance with the License. 24 import java.io.File; 44 File f = new File(mPath); 58 if ((new File(path)).isDirectory()) { 85 File f = new File(mPath); 95 sb.append(File.separatorChar); 98 File c = new File(path) [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
MediaScannerNotificationTest.java | 5 * you may not use this file except in compliance with the License. 25 import java.io.File; 40 startedIntentFilter.addDataScheme("file"); 42 finshedIntentFilter.addDataScheme("file"); 50 mContext.sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" 58 // add .nomedia file and scan again 59 File noMedia = new File(tmpPath, ".nomedia"); 63 fail("couldn't create .nomedia file"); 67 mContext.sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file:// [all...] |
ScannerNotificationReceiver.java | 5 * you may not use this file except in compliance with the License. 24 import java.io.File; 58 private int countFiles(File dir) { 60 File[] files = dir.listFiles(); 62 for (File file : files) { 63 if (file.isDirectory()) { 64 count += countFiles(file);
|
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/jar/ |
JarOutputStreamTest.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; 39 // testClass file`s actual extension is .class, since having .class 42 // anything. The file is being 43 // read by inputstream and being written to other file, 44 // as long as the content of the file is not changed, the extension does 62 File outputJar = null; 66 outputJar = File.createTempFile("hyts_", ".jar") [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src/org/eclipse/releng/ |
BuildMachineManager.java | 19 import java.io.File; 75 if (new File(markerContainer+"/"+markerName+".marker").exists()){ 104 File lock = new File(markerContainer + "/" + "lock"); 109 File markerFile = new File(markerContainer+"/"+markerName+".marker"); 126 File container = new File(markerContainer); 130 File[] markerFiles = container.listFiles(); 132 File markerFile = markerFiles[i] [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldFileWriterTest.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 21 import java.io.File; 37 File f; 40 File dir = new File(System.getProperty("java.io.tmpdir")); 51 File dir = new File(System.getProperty("java.io.tmpdir")); 92 File f = null [all...] |
/packages/apps/VideoEditor/src/com/android/videoeditor/util/ |
FileUtils.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 36 * File utilities 53 * @return The file representing the projects root directory, {@code null} if the external 56 public static File getProjectsRootDir(Context context) 58 final File dir = context.getExternalFilesDir(null); 63 // Create the file which hides the media files 64 if (!new File(dir, ".nomedia").createNewFile()) { 65 throw new FileNotFoundException("Cannot create file .nomedia"); 74 * Get the filename for the specified raw resource id. Create the file i 227 final File file = new File(getProjectsRootDir(context), StringUtils.randomString(10)); local [all...] |
/external/llvm/include/llvm/ |
DIBuilder.h | 5 // This file is distributed under the University of Illinois Open Source 10 // This file defines a DIBuilder that is useful for creating debugging 83 /// @param File File name 94 /// @param SplitName The name of the file that we'll split debug info out 96 void createCompileUnit(unsigned Lang, StringRef File, StringRef Dir, 101 /// createFile - Create a file descriptor to hold debugging information 102 /// for a file. 147 /// @param File File where this type is defined [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
MountServiceTests.java | 5 * you may not use this file except in compliance with the License. 34 import java.io.File; 115 private File getFilePath(String name) { 116 final File filesDir = mContext.getFilesDir(); 117 final File outFile = new File(filesDir, name); 121 private void copyRawToFile(int rawResId, File outFile) { 140 private void mountObb(StorageManager sm, final int resource, final File file, 142 copyRawToFile(resource, file); [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
TrustedCertificateStore.java | 5 * you may not use this file except in compliance with the License. 25 import java.io.File; 69 * efficient lookup operations for CAs again based on the file naming 83 * configuration in the system/core/rootdir/init.rc file. The 101 private static final File CA_CERTS_DIR_SYSTEM; 102 private static final File CA_CERTS_DIR_ADDED; 103 private static final File CA_CERTS_DIR_DELETED; 108 CA_CERTS_DIR_SYSTEM = new File(ANDROID_ROOT + "/etc/security/cacerts"); 109 CA_CERTS_DIR_ADDED = new File(ANDROID_DATA + "/misc/keychain/cacerts-added"); 110 CA_CERTS_DIR_DELETED = new File(ANDROID_DATA + "/misc/keychain/cacerts-removed") 139 File file = fileForAlias(alias); local 157 File file; local 221 File file = fileForAlias(alias); local 496 File file = file(dir, hash, index); local 538 private File file(File dir, String hash, int index) { method in class:TrustedCertificateStore 587 File file = fileForAlias(alias); local 632 File file = file(addedDir, hash, lastTombstoneIndex); local [all...] |
/cts/tests/tests/util/src/android/util/cts/ |
PrintWriterPrinterTest.java | 5 * you may not use this file except in compliance with the License. 20 import java.io.File; 32 private File mFile; 36 File dbDir = getContext().getDir("tests", Context.MODE_PRIVATE); 37 mFile = new File(dbDir,"print.log");
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/device/ |
DeviceInfoCollector.java | 5 * you may not use this file except in compliance with the License. 24 import java.io.File; 48 public static void collectDeviceInfo(ITestDevice device, File testApkDir, 50 File apkFile = new File(testApkDir, String.format("%s.apk", APK_NAME));
|
/dalvik/dx/src/com/android/dx/util/ |
FileUtils.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 24 * File I/O utilities. 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); local 43 return readFile(file); [all...] |
/external/apache-xml/src/main/java/org/apache/xalan/xslt/ |
SecuritySupport.java | 3 * or more contributor license agreements. See the NOTICE file 5 * regarding copyright ownership. The ASF licenses this file 7 * you may not use this file except in compliance with the License. 24 import java.io.File; 102 FileInputStream getFileInputStream(File file) 105 return new FileInputStream(file); 118 boolean getFileExists(File f) { 122 long getLastModified(File f) {
|
/external/apache-xml/src/main/java/org/apache/xml/dtm/ |
SecuritySupport.java | 3 * or more contributor license agreements. See the NOTICE file 5 * regarding copyright ownership. The ASF licenses this file 7 * you may not use this file except in compliance with the License. 24 import java.io.File; 102 FileInputStream getFileInputStream(File file) 105 return new FileInputStream(file); 118 boolean getFileExists(File f) { 122 long getLastModified(File f) {
|
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/ |
SecuritySupport.java | 3 * or more contributor license agreements. See the NOTICE file 5 * regarding copyright ownership. The ASF licenses this file 7 * you may not use this file except in compliance with the License. 24 import java.io.File; 102 FileInputStream getFileInputStream(File file) 105 return new FileInputStream(file); 118 boolean getFileExists(File f) { 122 long getLastModified(File f) {
|