Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 140) sorted by relevance

123456

/development/tools/findunused/
Dfind_unused_resources.rb62 "#{file}:#{lineNumber}"
66 if @file == other.file
69 @file <=> other.file
93 File.open(filename) { |file|
94 file.each { |line|
97 @@globalJavaIdUses[id] = FilePosition.new(filename, file.lineno)
113 File.open(filename) { |file|
114 file.each { |line|
116 strings[id] = FilePosition.new(filename, file.lineno)
119 layouts[id] = FilePosition.new(filename, file.lineno)
[all …]
/development/tools/idegen/src/com/android/idegen/
DDirectorySearch.java59 public static File findRepoRoot(File file) { in findRepoRoot() argument
60 Preconditions.checkNotNull(file); in findRepoRoot()
65 if (file.isDirectory()) { in findRepoRoot()
66 File[] files = file.listFiles(new FilenameFilter() { in findRepoRoot()
76 repoRoot = file; in findRepoRoot()
77 return file; in findRepoRoot()
80 File parent = file.getParentFile(); in findRepoRoot()
96 public static ImmutableList<File> findSourceDirs(File file) { in findSourceDirs() argument
97 Preconditions.checkNotNull(file); in findSourceDirs()
98 if (!file.exists()) { in findSourceDirs()
[all …]
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/
DMyCloudProvider.java185 final File file = pending.removeFirst(); in queryRecentDocuments() local
186 if (file.isDirectory()) { in queryRecentDocuments()
188 Collections.addAll(pending, file.listFiles()); in queryRecentDocuments()
191 lastModifiedFiles.add(file); in queryRecentDocuments()
197 final File file = lastModifiedFiles.remove(); in queryRecentDocuments() local
198 includeFile(result, null, file); in queryRecentDocuments()
229 final File file = pending.removeFirst(); in querySearchDocuments() local
230 if (file.isDirectory()) { in querySearchDocuments()
232 Collections.addAll(pending, file.listFiles()); in querySearchDocuments()
235 if (file.getName().toLowerCase().contains(query)) { in querySearchDocuments()
[all …]
/development/samples/BackupRestore/src/com/example/android/backuprestore/
DBackupRestoreActivity.java151 RandomAccessFile file; in populateUI() local
162 file = new RandomAccessFile(mDataFile, "rw"); in populateUI()
165 whichFilling = file.readInt(); in populateUI()
166 addMayo = file.readBoolean(); in populateUI()
167 addTomato = file.readBoolean(); in populateUI()
175 writeDataToFileLocked(file, in populateUI()
222 void writeDataToFileLocked(RandomAccessFile file, in writeDataToFileLocked() argument
225 file.setLength(0L); in writeDataToFileLocked()
226 file.writeInt(whichFilling); in writeDataToFileLocked()
227 file.writeBoolean(addMayo); in writeDataToFileLocked()
[all …]
DExampleAgent.java95 RandomAccessFile file = new RandomAccessFile(mDataFile, "r"); in onBackup() local
96 mFilling = file.readInt(); in onBackup()
97 mAddMayo = file.readBoolean(); in onBackup()
98 mAddTomato = file.readBoolean(); in onBackup()
232 RandomAccessFile file = new RandomAccessFile(mDataFile, "rw"); in onRestore() local
233 file.setLength(0L); in onRestore()
234 file.writeInt(mFilling); in onRestore()
235 file.writeBoolean(mAddMayo); in onRestore()
236 file.writeBoolean(mAddTomato); in onRestore()
DMultiRecordExampleAgent.java71 RandomAccessFile file = new RandomAccessFile(mDataFile, "r"); in onBackup() local
72 mFilling = file.readInt(); in onBackup()
73 mAddMayo = file.readBoolean(); in onBackup()
74 mAddTomato = file.readBoolean(); in onBackup()
191 RandomAccessFile file = new RandomAccessFile(mDataFile, "rw"); in onRestore() local
192 file.setLength(0L); in onRestore()
193 file.writeInt(mFilling); in onRestore()
194 file.writeBoolean(mAddMayo); in onRestore()
195 file.writeBoolean(mAddTomato); in onRestore()
/development/samples/ApiDemos/src/com/example/android/apis/content/
DExternalStorage.java187 File file = new File(path, "DemoPicture.jpg"); in createExternalStoragePublicPicture() local
199 OutputStream os = new FileOutputStream(file); in createExternalStoragePublicPicture()
209 new String[] { file.toString() }, null, in createExternalStoragePublicPicture()
219 Log.w("ExternalStorage", "Error writing " + file, e); in createExternalStoragePublicPicture()
229 File file = new File(path, "DemoPicture.jpg"); in deleteExternalStoragePublicPicture() local
230 file.delete(); in deleteExternalStoragePublicPicture()
240 File file = new File(path, "DemoPicture.jpg"); in hasExternalStoragePublicPicture() local
241 return file.exists(); in hasExternalStoragePublicPicture()
254 File file = new File(path, "DemoPicture.jpg"); in createExternalStoragePrivatePicture() local
263 OutputStream os = new FileOutputStream(file); in createExternalStoragePrivatePicture()
[all …]
/development/ndk/platforms/android-3/include/linux/
Dandroid_pmem.h44 int (*mmap) (struct file *, struct vm_area_struct *);
45 int (*open) (struct inode *, struct file *);
46 ssize_t (*read) (struct file *, char __user *, size_t, long long *);
47 int (*release) (struct inode *, struct file *);
48 long (*ioctl) (struct file *, unsigned int, unsigned long);
/development/tools/idegen/src/
DFiles.java28 static String toString(File file) throws IOException { in toString() argument
31 Reader in = new FileReader(file); in toString()
43 static void toFile(String contents, File file) throws IOException { in toFile() argument
44 FileWriter out = new FileWriter(file); in toFile()
DConfiguration.java130 for (File file : files) { in traverse()
132 String path = file.getPath().substring(2); in traverse()
140 File sourceRoot = rootOf(file); in traverse()
152 jarFiles.add(file); in traverse()
154 Log.debug("Skipped: " + file); in traverse()
161 if (file.isDirectory()) { in traverse()
165 excludedDirs.add(file); in traverse()
167 traverse(file, sourceRoots, jarFiles, excludedDirs, in traverse()
203 private static String parsePackageName(File file) throws IOException { in parsePackageName() argument
204 BufferedReader in = new BufferedReader(new FileReader(file)); in parsePackageName()
[all …]
/development/samples/JetBoy/
DJETBOY_content_README.txt3 The "JETBOY_content" folder contains the JET Creator file and assets used in "JETBOY", the Android …
11 4. After importing the first time, you can use the OPEN command to open the .jtc file in the folder…
14 The "JETBOY_Music.logic" file is the Logic file used to create the JETBOY music composition. This f…
Ddefault.properties1 # This file is automatically generated by Android Tools.
2 # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
4 # This file must be checked in Version Control Systems.
/development/tools/axl/
Dlog.py24 def __init__(self, file): argument
27 if type(file) is str:
28 self._file = open(file, "a")
30 self._file = file
/development/ndk/platforms/android-3/include/
Dzlib.h1098 ZEXTERN int ZEXPORT gzsetparams OF((gzFile file, int level, int strategy));
1106 ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len));
1114 ZEXTERN int ZEXPORT gzwrite OF((gzFile file,
1122 ZEXTERN int ZEXPORTVA gzprintf OF((gzFile file, const char *format, ...));
1135 ZEXTERN int ZEXPORT gzputs OF((gzFile file, const char *s));
1142 ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len));
1151 ZEXTERN int ZEXPORT gzputc OF((gzFile file, int c));
1157 ZEXTERN int ZEXPORT gzgetc OF((gzFile file));
1163 ZEXTERN int ZEXPORT gzungetc OF((int c, gzFile file));
1173 ZEXTERN int ZEXPORT gzflush OF((gzFile file, int flush));
[all …]
/development/samples/Vault/src/com/example/android/vault/
DUtils.java49 public static void writeFully(File file, byte[] data) throws IOException { in writeFully() argument
50 final OutputStream out = new FileOutputStream(file); in writeFully()
58 public static byte[] readFully(File file) throws IOException { in readFully() argument
59 final InputStream in = new FileInputStream(file); in readFully()
/development/ndk/samples/hello-neon/
Ddefault.properties1 # This file is automatically generated by Android Tools.
2 # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
4 # This file must be checked in Version Control Systems.
/development/ndk/platforms/android-4/samples/san-angeles/
Ddefault.properties1 # This file is automatically generated by Android Tools.
2 # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
4 # This file must be checked in Version Control Systems.
/development/samples/USB/AdbTest/
Ddefault.properties1 # This file is automatically generated by Android Tools.
2 # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
4 # This file must be checked in Version Control Systems.
/development/ndk/samples/two-libs/tests/
Ddefault.properties1 # This file is automatically generated by Android Tools.
2 # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
4 # This file must be checked in Version Control Systems.
/development/ndk/platforms/android-9/samples/native-plasma/
Ddefault.properties1 # This file is automatically generated by Android Tools.
2 # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
4 # This file must be checked in Version Control Systems.
/development/samples/training/multiscreen/newsreader/
Dproject.properties1 # This file is automatically generated by Android Tools.
2 # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
4 # This file must be checked in Version Control Systems.
/development/samples/training/AnimationsDemo/
Dproject.properties1 # This file is automatically generated by Android Tools.
2 # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
4 # This file must be checked in Version Control Systems.
/development/samples/USB/MissileLauncher/
Ddefault.properties1 # This file is automatically generated by Android Tools.
2 # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
4 # This file must be checked in Version Control Systems.
/development/samples/training/basic/ActivityLifecycle/
Dproject.properties1 # This file is automatically generated by Android Tools.
2 # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
4 # This file must be checked in Version Control Systems.
/development/ndk/platforms/android-9/samples/native-activity/
Ddefault.properties1 # This file is automatically generated by Android Tools.
2 # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
4 # This file must be checked in Version Control Systems.

123456