HomeSort by relevance Sort by last modified time
    Searched defs:file (Results 1001 - 1025 of 1907) sorted by null

<<41424344454647484950>>

  /external/protobuf/java/src/test/java/com/google/protobuf/
DescriptorsTest.java 87 FileDescriptor file = UnittestProto.getDescriptor(); local
89 assertEquals("google/protobuf/unittest.proto", file.getName());
90 assertEquals("protobuf_unittest", file.getPackage());
92 assertEquals("UnittestProto", file.getOptions().getJavaOuterClassname());
94 file.toProto().getName());
97 file.getDependencies());
100 assertEquals(messageType, file.getMessageTypes().get(0));
101 assertEquals(messageType, file.findMessageTypeByName("TestAllTypes"));
102 assertNull(file.findMessageTypeByName("NoSuchType"));
103 assertNull(file.findMessageTypeByName("protobuf_unittest.TestAllTypes"))
    [all...]
  /frameworks/base/core/java/android/os/
ParcelFileDescriptor.java 5 * you may not use this file except in compliance with the License.
39 import java.io.File;
93 * this file doesn't already exist, then create the file with permissions
102 * a file, such as when it goes through a backup and restore.
109 * this file doesn't already exist, then create the file with permissions
118 * a file, such as when it goes through a backup and restore.
124 * For use with {@link #open}: open the file with read-only access.
129 * For use with {@link #open}: open the file with write-only access
    [all...]
  /frameworks/base/core/tests/coretests/src/android/content/pm/
AppCacheTest.java 5 * you may not use this file except in compliance with the License.
34 import java.io.File;
58 void cleanUpDirectory(File pDir, String dirName) {
59 File testDir = new File(pDir, dirName);
65 File file = new File(testDir, fList[i]); local
66 if(file.isDirectory()) {
69 file.delete()
87 File file = new File(testDir, fList[i]); local
222 File file = new File(con.getCacheDir(), fileName); local
    [all...]
  /frameworks/base/services/java/com/android/server/
LockSettingsService.java 5 * you may not use this file except in compliance with the License.
51 import java.io.File;
230 return new File(Environment.getUserSystemDirectory(userId), LOCK_PATTERN_FILE)
243 return new File(Environment.getUserSystemDirectory(userId), LOCK_PASSWORD_FILE)
252 return new File(getLockPasswordFilename(userId)).length() > 0;
259 return new File(getLockPatternFilename(userId)).length() > 0;
300 // Read all the bytes from the file
308 // Compare the hash from the file with the entered pattern's hash
317 Slog.e(TAG, "Cannot read file " + fnfe);
319 Slog.e(TAG, "Cannot read file " + ioe)
358 File file = new File(getLockPasswordFilename(userId)); local
    [all...]
  /frameworks/base/test-runner/src/android/test/
TestRunner.java 5 * you may not use this file except in compliance with the License.
24 import java.io.File;
170 File file = new File("/tmp/trace"); local
171 file.mkdir();
  /libcore/luni/src/test/java/org/apache/harmony/archive/tests/java/util/jar/
JarFileTest.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
26 import java.io.File;
62 private final String jarName = "hyts_patch.jar"; // a 'normal' jar file
96 private File resources;
115 * java.util.jar.JarFile#JarFile(java.io.File)
119 JarFile jarFile = new JarFile(new File("Wrong.file"));
127 JarFile jarFile = new JarFile(new File(resources, jarName))
408 File file = Support_Resources.getExternalLocalFile(jarDirUrl local
477 File file = File.createTempFile( local
610 File file = new File(resources, jarName); local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
SaveImage.java 5 * you may not use this file except in compliance with the License.
46 import java.io.File;
83 private final File mDestinationFile;
127 * @param destination Destinaton File, if this is null, a new file will be
133 File destination, Bitmap previewImage, Callback callback) {
147 public static File getFinalSaveDirectory(Context context, Uri sourceUri) {
148 File saveDirectory = SaveImage.getSaveDirectory(context, sourceUri);
150 saveDirectory = new File(Environment.getExternalStorageDirectory(),
159 public static File getNewFile(Context context, Uri sourceUri)
531 File file = new File(saveDirectory, filename + ".JPG"); local
583 File file = getLocalFileFromUri(context, sourceUri); local
608 final File[] file = new File[1]; local
    [all...]
  /packages/apps/Nfc/src/com/android/nfc/handover/
HandoverTransfer.java 5 * you may not use this file except in compliance with the License.
39 import java.io.File;
56 * milliseconds, we consider a new file transfer from the
72 // In the states below we still accept new file transfer
186 if (DBG) Log.d(TAG, "Could not get mimeType for file.");
190 // Do wait to see if there's another file coming.
222 File file = new File(uri.getPath()); local
223 if (file.exists()) file.delete()
    [all...]
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
BinaryDictDecoderEncoderTests.java 5 * you may not use this file except in compliance with the License.
36 import java.io.File;
127 private DictEncoder getDictEncoder(final File file, final FormatOptions formatOptions) {
131 return new Ver3DictEncoder(file);
175 // The following is useful to dump the dictionary into a textual file, but it can't compile
180 // new java.io.FileWriter(new File(filename)), dict);
183 private long timeWritingDictToFile(final File file, final FusionDictionary dict,
189 final DictEncoder dictEncoder = getDictEncoder(file, formatOptions)
258 File file = null; local
313 final File file = setUpDictionaryFile(dictName, dictVersion); local
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
PreviewIconFactory.java 5 * you may not use this file except in compliance with the License.
60 import java.io.File;
80 private File mImageDir;
103 File imageDir = getImageDir(false);
105 File[] files = imageDir.listFiles();
106 for (File file : files) {
107 file.delete();
123 File imageDir = getImageDir(false);
127 File file = new File(imageDir, getFileName(desc)) local
324 File file = new File(imageDir, fileName); local
560 File file = new File(imageDir, PREVIEW_INFO_FILE); local
603 File file = new File(imageDir, PREVIEW_INFO_FILE); local
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/
LibraryClasspathContainerInitializer.java 5 * you may not use this file except in compliance with the License.
49 import java.io.File;
169 Set<File> jarFiles = new HashSet<File>();
199 Set<File> jarFiles) {
211 List<File> sanitizedList = sanitizer.sanitize(jarFiles);
213 for (File jarFile : sanitizedList) {
231 File jarProperties = new File(jarPath + DOT_PROPERTIES);
240 File srcPath = getFile(jarFile, value)
417 File file = new File(value); local
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/
AddTranslationDialog.java 5 * you may not use this file except in compliance with the License.
374 /** Actually create the new translation file and write it to disk */
394 IFile file = mProject.getFile(mTarget); local
397 IContainer parent = file.getParent();
400 file.create(source, true, new NullProgressMonitor());
401 AdtPlugin.openFile(file, null, true /*showEditorTab*/);
  /art/runtime/base/
logging.h 5 * you may not use this file except in compliance with the License.
178 LogMessageData(const char* file, int line, LogSeverity severity, int error);
180 const char* const file; member in struct:art::LogMessageData
191 LogMessage(const char* file, int line, LogSeverity severity, int error)
192 : data_(new LogMessageData(file, line, severity, error)) {
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/backup/
BackupTestActivity.java 5 * you may not use this file except in compliance with the License.
44 import java.io.File;
72 private static final String TEST_FILE_1 = "test-file-1";
73 private static final String TEST_FILE_2 = "test-file-2";
156 scanner = new Scanner(new File(getFilesDir(), fileName));
162 Log.e(TAG, "Couldn't find test file but this may be fine...", e);
215 File file = new File(getFilesDir(), fileName); local
216 PrintWriter writer = new PrintWriter(file);
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
WriteExternalStorageTest.java 5 * you may not use this file except in compliance with the License.
43 import java.io.File;
54 private static final File TEST_FILE = new File(
58 * Set of file paths that should all refer to the same location to verify
61 private static final File[] IDENTICAL_FILES = {
62 new File("/sdcard/caek"),
63 new File(System.getenv("EXTERNAL_STORAGE"), "caek"),
64 new File(Environment.getExternalStorageDirectory(), "caek"),
71 for (File file : IDENTICAL_FILES)
    [all...]
  /cts/suite/cts/deviceTests/filesystemperf/src/com/android/cts/filesystemperf/
FileUtil.java 5 * you may not use this file except in compliance with the License.
20 import java.io.File;
68 * create a new file under the given dirName.
74 public static File createNewFile(Context context, String dirName) {
75 File topDir = new File(context.getFilesDir(), dirName);
96 return new File(topDir, newFileName);
106 public static File[] createNewFiles(Context context, String dirName, int count) {
107 File[] files = new File[count]
143 File file = createNewFile(context, dirName); local
268 File file = FileUtil.createNewFilledFile(context, local
323 File file = FileUtil.createNewFilledFile(context, local
377 File file = FileUtil.createNewFilledFile(context, local
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
SerializationStressTest5.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;
68 File javaDir = findJavaDir();
70 Vector<File> classFilesVector = new Vector<File>();
80 File[] classFilesArray = new File[classFilesVector.size()];
95 private File[] makeClassPathArray()
145 File file = new File(dir, classFileNames[i]); local
    [all...]
  /external/bluetooth/bluedroid/bta/include/
bta_fs_co.h 6 * you may not use this file except in compliance with the License.
21 * This is the interface file for the synchronization server call-out
73 #define BTA_FS_CO_NONE GOEP_NONE /* used in ci_open, on resume (no file to resume) */
140 /* a data type to keep an array of ssn/file offset - the info can be saved to NV */
144 char file[BTA_FS_CO_PATH_LEN + 1]; /* file[0] !=0 on resume -> the previous suspended session had opened files */ member in struct:__anon401
145 int oflags; /* the flag to open the file */
148 UINT32 offset; /* last file offset */
183 ** Description This function is executed by BTA when a file is opened.
185 ** a file for reading or writing
    [all...]
  /external/checkpolicy/
checkpolicy.c 48 * to the specified output file.
384 char ans[80 + 1], *file = txtfile, *outfile = NULL, *path, *fstype; local
394 FILE *outfp = NULL;
429 file = binfile;
489 file = argv[optind++];
493 printf("%s: loading policy configuration from %s\n", argv[0], file);
502 fd = open(file, O_RDONLY);
505 file, strerror(errno));
510 file, strerror(errno));
518 file, strerror(errno))
    [all...]
  /external/chromium/chrome/browser/chromeos/
boot_times_loader.cc 3 // found in the LICENSE file.
34 // File uptime logs are located in.
42 // Delay in milliseconds between file read attempts.
59 // Name of file collecting login times.
62 // Name of file collecting logout times.
101 BrowserThread::FILE,
155 // Stores the boot times to a file in /tmp to indicate that the
157 // already. The file will be deleted at system shutdown/reboot.
185 // Wait until firmware-boot-time file exists by reposting.
190 BrowserThread::FILE,
226 FILE* file = file_util::OpenFile(file_path, "a"); local
    [all...]
  /external/chromium/chrome/browser/history/
history_unittest.cc 3 // found in the LICENSE file.
763 // history" example file or it will be imported on startup, throwing off timing
769 FilePath file; local
770 ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &file));
771 file = file.AppendASCII("profiles");
772 file = file.AppendASCII("typical_history");
773 file = file.AppendASCII("Default")
    [all...]
  /external/chromium/chrome/browser/importer/
firefox2_importer.cc 3 // found in the LICENSE file.
95 FilePath file = app_path.AppendASCII("defaults") local
101 // Read the whole file.
103 file_util::ReadFileToString(file, &content);
112 // Get the encoding of the bookmark file.
175 // Get the encoding of the bookmark file.
301 // Parse the bookmarks.html file.
305 FilePath file = source_path_; local
307 file = file.AppendASCII("bookmarks.html")
346 FilePath file = source_path_.AppendASCII("signons2.txt"); local
364 FilePath file = source_path_.AppendASCII("history.dat"); local
    [all...]
firefox3_importer.cc 3 // found in the LICENSE file.
70 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
109 FilePath file = source_path_.AppendASCII("places.sqlite"); local
110 if (!file_util::PathExists(file))
114 if (!db.Open(file))
155 FilePath file = source_path_.AppendASCII("places.sqlite"); local
156 if (!file_util::PathExists(file))
160 if (!db.Open(file))
321 FilePath file = source_path.AppendASCII("signons.sqlite"); local
322 if (file_util::PathExists(file)) {
363 FilePath file = source_path_.AppendASCII("search.sqlite"); local
391 FilePath file; local
    [all...]
  /external/chromium/net/disk_cache/
block_files.cc 3 // found in the LICENSE file.
164 // Returns true if the current block file should not be used as-is to store more
177 // This file is almost full but we already created another one, don't use
178 // this file yet so that it is easier to find empty blocks when we start
179 // using this file again.
233 // We need to open the file
250 MappedFile* file = FileForNewBlock(block_type, block_count);
251 if (!file)
254 BlockFileHeader* header = reinterpret_cast<BlockFileHeader*>(file->buffer());
284 MappedFile* file = GetFile(address) local
471 MappedFile* file = block_files_[block_type - 1]; local
526 MappedFile* file = block_files_[block_type - 1]; local
    [all...]
  /external/chromium_org/chrome/browser/chromeos/
boot_times_loader.cc 3 // found in the LICENSE file.
103 // Name of file collecting login times.
106 // Name of file collecting logout times.
126 // Appends the given buffer into the file. Returns the number of bytes
132 FILE* file = base::OpenFile(file_path, "a"); local
133 if (!file) {
136 const int num_bytes_written = fwrite(data, 1, size, file);
137 base::CloseFile(file);
230 // Don't swamp the FILE thread right away
    [all...]

Completed in 617 milliseconds

<<41424344454647484950>>