/dalvik/dx/src/com/android/dx/dex/file/ |
TypeListItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 65 public void addContents(DexFile file) { 66 TypeIdsSection typeIds = file.getTypeIds(); 91 protected void writeTo0(DexFile file, AnnotatedOutput out) { 92 TypeIdsSection typeIds = file.getTypeIds();
|
/developers/build/prebuilts/gradle/StorageProvider/Application/src/main/java/com/example/android/storageprovider/ |
MyCloudProvider.java | 5 * you may not use this file except in compliance with the License. 38 import java.io.File; 87 // A file object at the root of the file hierarchy. Depending on your implementation, the root 88 // does not need to be an existing file system directory. For example, a tag-based document 90 private File mBaseDir; 143 // that contain the desired type somewhere in their file hierarchy. 158 // This example implementation walks a local file structure to find the most recently 165 final File parent = getFileForDocId(rootId); 168 PriorityQueue<File> lastModifiedFiles = new PriorityQueue<File>(5, new Comparator<File>() 185 final File file = pending.removeFirst(); local 197 final File file = lastModifiedFiles.remove(); local 229 final File file = pending.removeFirst(); local 251 final File file = getFileForDocId(documentId); local 301 final File file = getFileForDocId(documentId); local [all...] |
/developers/samples/android/content/documentsUi/StorageProvider/Application/src/main/java/com/example/android/storageprovider/ |
MyCloudProvider.java | 5 * you may not use this file except in compliance with the License. 38 import java.io.File; 87 // A file object at the root of the file hierarchy. Depending on your implementation, the root 88 // does not need to be an existing file system directory. For example, a tag-based document 90 private File mBaseDir; 143 // that contain the desired type somewhere in their file hierarchy. 158 // This example implementation walks a local file structure to find the most recently 165 final File parent = getFileForDocId(rootId); 168 PriorityQueue<File> lastModifiedFiles = new PriorityQueue<File>(5, new Comparator<File>() 185 final File file = pending.removeFirst(); local 197 final File file = lastModifiedFiles.remove(); local 229 final File file = pending.removeFirst(); local 251 final File file = getFileForDocId(documentId); local 301 final File file = getFileForDocId(documentId); local [all...] |
/development/ndk/platforms/android-17/samples/Teapot/src/com/sample/helper/ |
NDKHelper.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 86 File file = new File(context.getExternalFilesDir(null), str); local 87 if (file.canRead()) 89 bitmap = BitmapFactory.decodeStream(new FileInputStream(file)); 105 Log.w("NDKHelper", "Coundn't load a file:" + path); 139 Log.w("NDKHelper", "Coundn't load a file:" + path);
|
/development/ndk/platforms/android-18/samples/MoreTeapots/src/com/sample/helper/ |
NDKHelper.java | 5 * you may not use this file except in compliance with the License. 19 import java.io.File; 86 File file = new File(context.getExternalFilesDir(null), str); local 87 if (file.canRead()) 89 bitmap = BitmapFactory.decodeStream(new FileInputStream(file)); 105 Log.w("NDKHelper", "Coundn't load a file:" + path); 139 Log.w("NDKHelper", "Coundn't load a file:" + path);
|
/development/samples/BackupRestore/src/com/example/android/backuprestore/ |
BackupRestoreActivity.java | 5 * you may not use this file except in compliance with the License. 29 import java.io.File; 72 * data file in a single chunk, and restoring it upon request -- in only a few lines 99 * agent running to perform a backup while our UI is updating the file, the 107 /** Also supply a global standard file name for everyone to use */ 115 /** Cache a reference to our persistent data file */ 116 File mDataFile; 134 /** Set up our file bookkeeping */ 135 mDataFile = new File(getFilesDir(), BackupRestoreActivity.DATA_FILE_NAME); 148 * data file and establishing defaults if necessary 151 RandomAccessFile file; local 245 RandomAccessFile file = new RandomAccessFile(mDataFile, "rw"); local [all...] |
ExampleAgent.java | 5 * you may not use this file except in compliance with the License. 28 import java.io.File; 56 /** The app's current data, read from the live disk file */ 61 /** The location of the application's persistent data file */ 62 File mDataFile; 64 /** For convenience, we set up the File object for the app's data on creation */ 67 mDataFile = new File(getFilesDir(), BackupRestoreActivity.DATA_FILE_NAME); 74 * blob describing the last dataset backed up. The state file 88 // First, get the current data from the application's file. This 95 RandomAccessFile file = new RandomAccessFile(mDataFile, "r") local 232 RandomAccessFile file = new RandomAccessFile(mDataFile, "rw"); local [all...] |
MultiRecordExampleAgent.java | 5 * you may not use this file except in compliance with the License. 23 import java.io.File; 39 * datum's backup record is updated, not the entire data file. 47 // Current live data, read from the application's data file 52 /** The location of the application's persistent data file */ 53 File mDataFile; 57 // Cache a File for the app's data 58 mDataFile = new File(getFilesDir(), BackupRestoreActivity.DATA_FILE_NAME); 64 // First, get the current data from the application's file. This 71 RandomAccessFile file = new RandomAccessFile(mDataFile, "r") local 191 RandomAccessFile file = new RandomAccessFile(mDataFile, "rw"); local [all...] |
/development/samples/Vault/tests/src/com/example/android/vault/ |
VaultProviderTest.java | 5 * you may not use this file except in compliance with the License. 58 final String file = mProvider.createDocument( local 59 DEFAULT_DOCUMENT_ID, MIME_TYPE_DEFAULT, "file"); 73 assertContains(c, "file", "dir"); 81 assertContains(c, "file"); 83 mProvider.queryDocument(file, null);
|
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/ |
MyCloudProvider.java | 5 * you may not use this file except in compliance with the License. 38 import java.io.File; 87 // A file object at the root of the file hierarchy. Depending on your implementation, the root 88 // does not need to be an existing file system directory. For example, a tag-based document 90 private File mBaseDir; 143 // that contain the desired type somewhere in their file hierarchy. 158 // This example implementation walks a local file structure to find the most recently 165 final File parent = getFileForDocId(rootId); 168 PriorityQueue<File> lastModifiedFiles = new PriorityQueue<File>(5, new Comparator<File>() 185 final File file = pending.removeFirst(); local 197 final File file = lastModifiedFiles.remove(); local 229 final File file = pending.removeFirst(); local 251 final File file = getFileForDocId(documentId); local 301 final File file = getFileForDocId(documentId); local [all...] |
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
FileHandlerTest.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 22 import java.io.File; 52 final static String SEP = File.separator; 69 File file = new File(tempPath + SEP + "log"); local 70 file.mkdir(); 130 assertFalse(new File(tempPath, "log_NoTmpDir.log").exists()) 274 File file = null; local 420 File file = new File(tempPath + SEP + "aaa"); local 555 File file = new File(tempPath + SEP + "log"); local [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/internal/net/www/protocol/file/ |
FileURLConnectionTest.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 17 package org.apache.harmony.luni.tests.internal.net.www.protocol.file; 61 String localURLString = "file://localhost/" + url.getFile(); 65 assertEquals("file", conn.getURL().getProtocol());
|
/external/boringssl/src/crypto/bio/ |
file.c | 90 static FILE *open_file(const char *filename, const char *mode) { 113 (file = _wfopen(wfilename, wmode)) == NULL && 115 errno == EBADF)) /* UTF-8 decode succeeded, but no file, filename 128 FILE *file; local 130 file = open_file(filename, mode); 131 if (file == NULL) { 145 fclose(file); 149 BIO_set_fp(ret, file, BIO_CLOSE); 153 BIO *BIO_new_fp(FILE *stream, int close_flag) [all...] |
/external/chromium-trace/trace-viewer/third_party/Paste/paste/debug/ |
fsdiff.py | 9 the file was. 25 __all__ = ['Diff', 'Snapshot', 'File', 'Dir', 'report_expected_diffs', 109 ## File finding 142 result[path] = File(self.base_path, path) 161 If a file does not exist and ``not_found`` is given, then 176 file = self.data[path] 177 actual_content = file.bytes 204 class File(object): 207 Represents a single file found as the result of a command. 212 The path of the file, relative to the ``base_path` 228 file = True variable in class:File 270 file = False variable in class:Dir [all...] |
/external/chromium-trace/trace-viewer/third_party/Paste/paste/exceptions/ |
reporter.py | 122 file = None variable in class:FileReporter 126 assert self.file is not None, ( 127 "You must give a file object") 132 self.file.write(text + '\n' + '-'*60 + '\n')
|
/external/clang/lib/ARCMigrate/ |
FileRemapper.cpp | 1 //===--- FileRemapper.cpp - File Remapping Helper -------------------------===// 5 // This file is distributed under the University of Illinois Open Source 69 return report("Error opening file: " + infoFile, Diag); 78 return report("Invalid file data: '" + lines[idx+1] + "' not a number", 86 return report("File does not exist: " + fromFilename, Diag); 92 return report("File does not exist: " + toFilename, Diag); 98 return report("File was modified: " + fromFilename, Diag); 149 return report("Could not create file: " + tempPath.str(), Diag); 175 return report(StringRef("File does not exist: ") + origFE->getName(), 211 void FileRemapper::remap(const FileEntry *file, 228 const FileEntry *file = FileMgr->getFile(filePath); local [all...] |
/external/clang/lib/Edit/ |
Commit.cpp | 5 // This file is distributed under the University of Illinois Open Source 329 // Try to load the file buffer. 331 StringRef file = SourceMgr.getBufferData(Offs.getFID(), &invalidTemp); local 336 return file.substr(Offs.getOffset()).startswith(text);
|
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_procmaps_common.cc | 5 // This file is distributed under the University of Illinois Open Source 159 bool file = false; local 165 file = *pos == '/'; 169 cb(start, rss, file, stats, stats_size);
|
/external/deqp/framework/delibs/deutil/ |
deFile.c | 8 * you may not use this file except in compliance with the License. 20 * \file 21 * \brief File abstraction. 55 deFile* file = (deFile*)deCalloc(sizeof(deFile)); local 56 if (!file) 59 return file; 62 file->fd = fd; 63 return file; 109 void deFile_destroy (deFile* file) 111 close(file->fd) 229 deFile* file = (deFile*)deCalloc(sizeof(deFile)); local [all...] |
/external/dexmaker/src/dx/java/com/android/dx/dex/file/ |
AnnotationItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 60 * {@code null-ok;} encoded form, ready for writing to a file; set during 143 public void addContents(DexFile file) { 144 type = file.getTypeIds().intern(annotation.getType()); 145 ValueEncoder.addContents(file, annotation); 164 * Write a (listing file) annotation for this instance to the given 187 protected void writeTo0(DexFile file, AnnotatedOutput out) { 212 ValueEncoder encoder = new ValueEncoder(file, out);
|
DebugInfoItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 64 public void addContents(DexFile file) { 94 * @param file {@code non-null;} the file to use for referencing other sections 98 public void annotateTo(DexFile file, AnnotatedOutput out, String prefix) { 99 encode(file, prefix, null, out, false); 114 protected void writeTo0(DexFile file, AnnotatedOutput out) { 122 encode(file, null, null, out, true); 131 * @param file {@code null-ok;} file to refer to during encodin [all...] |
EncodedField.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 77 * ever appear in the same list (or same file, even).</p> 99 public void addContents(DexFile file) { 100 FieldIdsSection fieldIds = file.getFieldIds(); 133 public int encode(DexFile file, AnnotatedOutput out, 135 int fieldIdx = file.getFieldIds().indexOf(field);
|
EncodedMethod.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 87 * ever appear in the same list (or same file, even).</p> 116 public void addContents(DexFile file) { 117 MethodIdsSection methodIds = file.getMethodIds(); 118 MixedItemSection wordData = file.getWordData(); 159 public int encode(DexFile file, AnnotatedOutput out, 161 int methodIdx = file.getMethodIds().indexOf(method);
|
ItemType.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file;
|
MapItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 28 /** file alignment of this class, in bytes */ 198 public void addContents(DexFile file) { 210 protected void writeTo0(DexFile file, AnnotatedOutput out) {
|