/development/tools/findunused/ |
D | find_unused_resources.rb | 62 "#{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/ |
D | DirectorySearch.java | 70 public static void findAndInitRepoRoot(File file) { in findAndInitRepoRoot() argument 71 Preconditions.checkNotNull(file); in findAndInitRepoRoot() 76 if (file.isDirectory()) { in findAndInitRepoRoot() 77 File[] files = file.listFiles(new FilenameFilter() { in findAndInitRepoRoot() 84 repoRoot = file; in findAndInitRepoRoot() 87 File parent = file.getParentFile(); in findAndInitRepoRoot() 90 file.getPath()); in findAndInitRepoRoot() 132 public static ImmutableList<File> findSourceDirs(File file) { in findSourceDirs() argument 133 Preconditions.checkNotNull(file); in findSourceDirs() 134 if (!file.exists()) { in findSourceDirs() [all …]
|
/development/tools/rmtypedefs/src/com/android/tools/rmtypedefs/ |
D | RmTypeDefs.java | 89 File file = new File(arg); in run() local 90 if (file.exists()) { in run() 91 dirs.add(file); in run() 93 System.err.println(file + " does not exist"); in run() 122 private void checkFile(File file) { in checkFile() argument 123 if (file.isDirectory()) { in checkFile() 124 File[] files = file.listFiles(); in checkFile() 130 } else if (file.isFile()) { in checkFile() 131 String path = file.getPath(); in checkFile() 133 checkClass(file); in checkFile() [all …]
|
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/ |
D | MyCloudProvider.java | 185 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/ApiDemos/src/com/example/android/apis/content/ |
D | ExternalStorage.java | 187 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/samples/BackupRestore/src/com/example/android/backuprestore/ |
D | BackupRestoreActivity.java | 151 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 …]
|
D | ExampleAgent.java | 95 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()
|
D | MultiRecordExampleAgent.java | 71 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/tools/idegen/src/ |
D | Configuration.java | 130 for (File file : files) { in traverse() 132 String path = file.getPath().substring(2); in traverse() 135 if (path.endsWith(".java") && !file.isDirectory()) { 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 [all …]
|
D | Files.java | 28 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()
|
/development/ndk/platforms/android-3/include/linux/ |
D | android_pmem.h | 44 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/ndk/platforms/android-3/include/ |
D | zlib.h | 1098 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/tools/rmtypedefs/test/com/android/tools/rmtypedefs/ |
D | RmTypeDefsTest.java | 183 private void assertDoesNotContainBytes(File file, String sub) throws IOException { in assertDoesNotContainBytes() argument 184 byte[] contents = Files.toByteArray(file); in assertDoesNotContainBytes() 194 assertFalse("Found " + sub + " in class file " + file, in assertDoesNotContainBytes() 212 private void list(StringBuilder sb, File file, String prefix, int depth, String rootName) { in list() argument 220 String fileName = file.getName(); in list() 225 if (file.isDirectory()) { in list() 228 File[] files = file.listFiles(); in list() 258 for (File file : files) { in deleteDir() 259 if (file.isDirectory()) { in deleteDir() 260 deleteDir(file); in deleteDir() [all …]
|
/development/samples/JetBoy/ |
D | JETBOY_content_README.txt | 3 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…
|
D | default.properties | 1 # 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/ |
D | log.py | 24 def __init__(self, file): argument 27 if type(file) is str: 28 self._file = open(file, "a") 30 self._file = file
|
/development/host/windows/usb/ |
D | readme.txt | 1 android_winusb.inf file contained in this folder must be used to install 7 * File android_winusb.inf - Installation file 24 android_winusb.inf file can be modified in order to provide support for the 27 file to add descriptions for new devices and interfaces. Note that when .inf 28 file is modified, .cat files must be rebuilt and resigned in order to keep 33 As an alternative to modification, android_winusb.inf file can be used as a 34 template to create new .inf file for new devices. Note that you also need 35 to build and sign new .cat files for that custom .inf file of yours. 40 and run inf2cat.exe on .inf file at the root of installation folder.
|
/development/samples/Vault/src/com/example/android/vault/ |
D | Utils.java | 49 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/samples/Support4Demos/src/com/example/android/supportv4/content/ |
D | FileProviderExample.java | 50 final File file = new File(thumbsDir, "private.png"); in onShareFileClick() local 51 saveThumbnail(view, file); in onShareFileClick() 54 final Uri uri = FileProvider.getUriForFile(this, AUTHORITY, file); in onShareFileClick() 64 private void saveThumbnail(View view, File file) { in saveThumbnail() argument 71 final OutputStream os = new FileOutputStream(file); in saveThumbnail()
|
/development/samples/training/basic/ActivityLifecycle/ |
D | project.properties | 1 # 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/ |
D | default.properties | 1 # 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/ |
D | default.properties | 1 # 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-8/samples/bitmap-plasma/ |
D | default.properties | 1 # 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/ |
D | default.properties | 1 # 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-5/samples/hello-gl2/ |
D | default.properties | 1 # 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.
|