/cts/tests/tests/security/src/android/security/cts/ |
HwRngTest.java | 5 * you may not use this file except in compliance with the License. 29 import java.io.File; 44 private static final File DEV_HW_RANDOM = new File("/dev/hw_random"); 45 private static final File SYSFS_HW_RANDOM = new File("/sys/class/misc/hw_random"); 91 readyFullyAsciiFile(new File(SYSFS_HW_RANDOM, "dev")).trim()); 93 Map<String, String> ueventVars = parseUeventFile(new File(SYSFS_HW_RANDOM, "uevent")); 100 File rngCurrentFile = new File(SYSFS_HW_RANDOM, "rng_current") [all...] |
/external/compiler-rt/lib/profile/ |
InstrProfilingFile.c | 1 /*===- InstrProfilingFile.c - Write instrumentation to a file -------------===*\ 5 |* This file is distributed under the University of Illinois Open Source 17 static int writeFile(FILE *File) { 46 #define CHECK_fwrite(Data, Size, Length, File) \ 47 do { if (fwrite(Data, Size, Length, File) != Length) return -1; } while (0) 48 CHECK_fwrite(Header, sizeof(uint64_t), PROFILE_HEADER_SIZE, File); 49 CHECK_fwrite(DataBegin, sizeof(__llvm_profile_data), DataSize, File); 50 CHECK_fwrite(CountersBegin, sizeof(uint64_t), CountersSize, File); 51 CHECK_fwrite(NamesBegin, sizeof(char), NamesSize, File); [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...] |
/external/lldb/include/lldb/Host/ |
File.h | 1 //===-- File.h --------------------------------------------------*- C++ -*-===// 5 // This file is distributed under the University of Illinois Open Source 21 /// @class File File.h "lldb/Host/File.h" 22 /// @brief A file class. 24 /// A file class that divides abstracts the LLDB core from host file 27 class File 31 static FILE * kInvalidStream [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...] |
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
ResourceExtractor.java | 3 // found in the LICENSE file. 19 import java.io.File; 32 * the file system accessible from the native code. 43 // By default, we attempt to extract a pak file for the users 56 final File outputDir = getOutputDir(); 76 for (String file : filenames) { 77 if (!new File(outputDir, file).exists()) { 106 // Loop through every asset file that we have in the APK, and look for the 111 for (String file : files) [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
OldURLClassLoaderTest.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 20 import java.io.File; 52 new URL("jar:file://foo.jar!/foo.c"), 76 String[] resValues = { "This is a test resource file.", 81 File tmpDir = new File(tmp); 82 File test1 = new File(tmp + "test0") [all...] |
/frameworks/multidex/library/src/android/support/multidex/ |
MultiDex.java | 5 * you may not use this file except in compliance with the License. 29 import java.io.File; 47 * loader} in order to load classes from more than one dex file. The primary 63 private static final String SECONDARY_FOLDER_NAME = "code_cache" + File.separator + 129 * file entries. 158 File dexDir = new File(applicationInfo.dataDir, SECONDARY_FOLDER_NAME); 159 List<File> files = MultiDexExtractor.load(context, applicationInfo, dexDir, false); 164 // Try again, but this time force a reload of the zip file. 237 private static void installSecondaryDexes(ClassLoader loader, File dexDir, List<File> files [all...] |
/external/chromium_org/chrome/browser/extensions/api/messaging/ |
native_message_process_host_unittest.cc | 3 // found in the LICENSE file. 7 #include "base/files/file.h" 51 FakeLauncher(base::File read_file, base::File write_file) 58 int read_flags = base::File::FLAG_OPEN | base::File::FLAG_READ; 59 int write_flags = base::File::FLAG_CREATE | base::File::FLAG_WRITE; 61 read_flags |= base::File::FLAG_ASYNC; 62 write_flags |= base::File::FLAG_ASYNC [all...] |
/external/chromium_org/content/browser/fileapi/ |
file_system_operation_impl_unittest.cc | 3 // found in the LICENSE file. 48 base::File::Error expected, 49 base::File::Error actual) { 95 const base::File::Info& info() const { return info_; } 153 EXPECT_EQ(base::File::FILE_OK, 162 EXPECT_EQ(base::File::FILE_OK, 169 base::File::Info info; 196 void DidFinish(base::File::Error status) { 201 base::File::Error status, 208 void DidGetMetadata(base::File::Error status [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...] |
/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; 139 File jarPath = installSupport(-1); 161 * @return the location of the support jar file, or null if something went 165 public static File installSupport(int minimumRevision) { 177 File path = getSupportJarFile(); 197 Pair<Boolean, File> result = window.installExtraPackage(VENDOR_ID, SUPPORT_ID); 211 File path = new File(result.getSecond(), FD_V4); 212 final File jarPath = new File(path, ANDROID_SUPPORT_V4_JAR) [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_FilesTest.java | 5 * you may not use this file except in compliance with the License. 36 import java.io.File; 67 File ext = Environment.getExternalStorageDirectory(); 68 File[] junk = ext.listFiles(new FilenameFilter() { 71 public boolean accept(File dir, String filename) { 75 for (File f: junk) { 80 void deleteAll(File f) { 82 File [] sub = f.listFiles(); 83 for (File s: sub) { 94 // Get the current file count. We will check if this increases afte 398 File file = new File(dir, "foobar"); local 419 File file = new File(dir, "foobar.jpg"); local 444 File file = new File(dir, "foobar.jpg"); local [all...] |
/external/chromium_org/webkit/browser/fileapi/ |
file_system_operation_runner.cc | 3 // found in the LICENSE file. 46 base::File::Error error = base::File::FILE_OK; 69 base::File::Error error = base::File::FILE_OK; 92 base::File::Error error = base::File::FILE_OK; 119 base::File::Error error = base::File::FILE_OK; 140 base::File::Error error = base::File::FILE_OK [all...] |
/external/chromium_org/chrome/browser/sync_file_system/local/ |
syncable_file_system_unittest.cc | 3 // found in the LICENSE file. 67 // multiple syncable file systems registered for the name) 117 // Opens a syncable file system. 118 EXPECT_EQ(base::File::FILE_OK, 122 EXPECT_EQ(base::File::FILE_OK, 124 EXPECT_EQ(base::File::FILE_OK, 136 // as creating a file or directory consumes some space. 140 // Truncate to extend an existing file and see if the usage reflects it. 142 EXPECT_EQ(base::File::FILE_OK, 145 EXPECT_EQ(base::File::FILE_OK [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sample/ |
SampleTestActivity.java | 5 * you may not use this file except in compliance with the License. 28 import java.io.File; 32 * A sample CTS Verifier test case for testing file transfers using bluetooth sharing. 40 * The name of the test file being transferred. 45 * The content of the test file being transferred. 72 * Creates a temporary file containing the test string and then issues the intent to share it. 77 // Use the external cache directory so the file will be deleted when the app is uninstalled 78 // and the file can be accessed by other apps, such as the sharing app. 79 File dir = getExternalCacheDir (); 80 // Create the file with the given name 81 File file = new File(dir, FILE_NAME); local [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
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);
|
/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. 25 import java.io.File; 57 public static void collectDeviceInfo(ITestDevice device, String abi, File testApkDir, 59 File apkFile = new File(testApkDir, String.format("%s.apk", APK_NAME));
|
/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) {
|
/external/apache-xml/src/main/java/org/apache/xml/serializer/ |
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; 100 FileInputStream getFileInputStream(File file) 103 return new FileInputStream(file); 116 boolean getFileExists(File f) { 120 long getLastModified(File f) {
|
/external/apache-xml/src/main/java/org/apache/xml/utils/ |
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/xpath/functions/ |
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) {
|