/external/nanohttpd/fileupload/src/test/java/fi/iki/elonen/ |
TestNanoFileUpLoad.java | 96 public Map<String, List<FileItem>> files; field in class:TestNanoFileUpLoad.TestServer 130 files = uploader.parseParameterMap(session); 133 files = new HashMap<String, List<FileItem>>(); 135 files.put(parseRequest.get(0).getFieldName(), parseRequest); 138 files = new HashMap<String, List<FileItem>>(); 144 files.put(fileItem.getFieldName(), Arrays.asList(new FileItem[]{ 183 FileItem file = this.testServer.files.get("upfile").get(0); 194 FileItem file = this.testServer.files.get("upfile").get(0); 205 FileItem file = this.testServer.files.get("upfile").get(0);
|
/external/protobuf/src/google/protobuf/io/ |
zero_copy_stream_unittest.cc | 719 // To test files, we create a temporary file, write, read, truncate, repeat. 855 int files[2]; local 861 ASSERT_EQ(pipe(files), 0); 864 FileOutputStream output(files[1], kBlockSizes[i]); 868 close(files[1]); // Send EOF. 871 FileInputStream input(files[0], kBlockSizes[j]); 875 close(files[0]);
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
ContextTest.java | 34 File[] files = context.getFilesDir().listFiles(); local 35 assertNotNull(files); 36 assertThat(files.length, is(0)); 53 File[] files = path.listFiles(); local 54 assertNotNull(files); 55 for (File f : files) {
|
/external/skia/debugger/QT/ |
SkDebuggerGUI.cpp | 294 // don't add a '/' to files in the local directory 308 tr("Files (*.*)")); 652 const QStringList files = dir.entryList(); local 657 if (!files.contains(item->text())) { 663 // add any new files 664 Q_FOREACH (QString f, files) {
|
/external/snakeyaml/src/test/java/org/pyyaml/ |
PyEmitterTest.java | 59 File[] files = getStreamsByExtension(mask, true); local 60 assertTrue("No test files found.", files.length > 0); 61 for (File file : files) { 123 assertTrue("No test files found.", canonicalFiles.length > 0); 125 assertTrue("No test files found.", dataFiles.length > 0); 222 File[] files = getStreamsByExtension(".events", false); local 223 assertTrue("No test files found.", files.length > 0); 224 for (File file : files) { [all...] |
/frameworks/base/core/java/android/util/jar/ |
StrictJarFile.java | 109 // Read the MANIFEST and signature files up front and try to 121 Set<String> files = manifest.getEntries().keySet(); local 122 for (String file : files) {
|
/frameworks/base/core/java/com/android/internal/content/ |
NativeLibraryHelper.java | 233 * Remove the native binaries of a given package. This deletes the files 247 final File[] files = nativeLibraryRoot.listFiles(); local 248 if (files != null) { 249 for (int nn = 0; nn < files.length; nn++) { 251 Slog.d(TAG, " Deleting " + files[nn].getName()); 254 if (files[nn].isDirectory()) { 255 removeNativeBinariesFromDirLI(files[nn], true /* delete root dir */); 256 } else if (!files[nn].delete()) { 257 Slog.w(TAG, "Could not delete native binary: " + files[nn].getPath());
|
/frameworks/base/services/core/java/com/android/server/ |
PinnerService.java | 55 * <p>PinnerService pins important files for key processes in memory.</p> 56 * <p>Files to pin are specified in the config_defaultPinnerServiceFiles 78 // If this user's camera app has been updated, update pinned files accordingly. 129 * Update the currently pinned files. 131 * The other files pinned in onStart will not need to be updated. 136 Slog.i(TAG, "Updating pinned files."); 146 // Files to pin come from the overlay and can be specified per-device config 150 // Continue trying to pin remaining files even if there is a failure 184 * intent resolution to the pinned files list 281 String[] files = null local [all...] |
/frameworks/base/services/core/java/com/android/server/pm/ |
UserDataPreparer.java | 159 final List<File> files = new ArrayList<>(); local 160 Collections.addAll(files, FileUtils 162 Collections.addAll(files, FileUtils 164 Collections.addAll(files, FileUtils 166 Collections.addAll(files, FileUtils 168 Collections.addAll(files, FileUtils 170 reconcileUsers(volumeUuid, validUsersList, files); 174 void reconcileUsers(String volumeUuid, List<UserInfo> validUsersList, List<File> files) { 181 for (File file : files) {
|
/frameworks/multidex/library/src/android/support/multidex/ |
MultiDex.java | 47 * class methods. Secondary dex files named classes2.dex, classes3.dex... found 53 * nothing on newer versions of the platform which provide built-in support for secondary dex files. 81 * Patches the application context class loader by appending extra dex files 158 List<? extends File> files = local 160 installSecondaryDexes(loader, dexDir, files); 175 * dex file and new secondary dex files. This leads to various problems like 222 List<? extends File> files) 225 if (!files.isEmpty()) { 227 V19.install(loader, files, dexDir); 229 V14.install(loader, files, dexDir) 316 File[] files = dexDir.listFiles(); local [all...] |
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/ |
MainActivity.java | 266 File[] files = folder.listFiles(); local 267 if (files != null) { 268 Log.v(TAG, "files" + files.length); 269 for (int i = 0; i < files.length; i++) { 270 Log.v(TAG, "[" + i + "]=" + files[i].getAbsolutePath()); 271 if (files[i].getName().toLowerCase().endsWith(".jpg")) { 272 mDisplayedImage = BitmapFactory.decodeFile(files[i].getAbsolutePath()); 273 mImagePath = files[i].getParentFile().getAbsolutePath(); 274 mImageName = files[i].getName() [all...] |
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
MainActivity.java | 276 File[] files = dir.listFiles(); local 277 if (files == null) return null; 278 for (int i = 0; i < files.length; i++) { 279 if (files[i].isDirectory() && !files[i].getName().startsWith(".")) { 280 File ret = findJpeg(files[i]); 287 if (files[i].getName().toLowerCase().endsWith(".jpg")) { 288 Log.v(TAG, "returning " + files[i].getAbsolutePath()); 289 return files[i];
|
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/ |
MainActivity.java | 266 File[] files = folder.listFiles(); local 267 Log.v(TAG, "files" + files.length); 268 for (int i = 0; i < files.length; i++) { 269 Log.v(TAG, "[" + i + "]=" + files[i].getAbsolutePath()); 270 if (files[i].getName().toLowerCase().endsWith(".jpg")) { 271 mDisplayedImage = BitmapFactory.decodeFile(files[i].getAbsolutePath()); 272 mImagePath = files[i].getParentFile().getAbsolutePath(); 273 mImageName = files[i].getName();
|
/libcore/luni/src/test/java/dalvik/system/ |
InMemoryDexClassLoaderTest.java | 60 File[] files = dir.listFiles(); local 61 for (File file : files) { 114 * @param files The .dex files to use for the class path. 116 private static ClassLoader createLoaderDirect(File... files) throws IOException { 117 assertNotNull(files); 118 assertTrue(files.length > 0); 120 for (int i = 0; i < files.length; ++i) { 121 ByteBuffer buffer = ReadFileToByteBufferDirect(files[i]); 133 * @param files The .dex files to use for the class path [all...] |
/libcore/ojluni/src/main/java/java/util/logging/ |
FileHandler.java | 41 import java.nio.file.Files; 55 * or it can write to a rotating set of files. 57 * For a rotating set of files, as each file reaches a given size 59 * Successively older files are named by adding "0", "1", "2", 91 * specifies how many output files to cycle through (defaults to 1). </li> 97 * any existing files (defaults to false). </li> 127 * would typically cause log files to be written on Solaris to 159 private File files[]; field in class:FileHandler 256 * @exception IOException if there are IO problems opening the files. 279 * @exception IOException if there are IO problems opening the files [all...] |
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/ |
SystemUpdaterActivity.java | 112 File[] files = new File[vols.size()]; local 119 files[i++] = path; 123 frag.updateList(files); 137 /* if we want to filter files, use 138 File[] files = f.listFiles(new FilenameFilter() { 185 protected Exception doInBackground(File... files) { 186 File file = files[0]; 222 protected Exception doInBackground(File... files) { 223 File file = files[0];
|
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
FilesActivity.java | 17 package com.android.documentsui.files; 68 static final String PREFERENCES_SCOPE = "files"; 156 // Downloads and Files, but with only a single underlying activity. 170 // E.g. if we re-brand Files to Downloads by overlaying label and icon 172 // underlying Activity description...Files. 174 // like when browsing files on a removable disk, the app would be 237 // In Files app "Home" is the default, but it is loaded async.
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
AttachmentProvider.java | 81 * on startup we'll clean up any .tmp files from the last run. 84 final File[] files = getContext().getCacheDir().listFiles(); local 85 if (files != null) { 86 for (File file : files) {
|
/packages/apps/TV/src/com/android/tv/tuner/exoplayer/buffer/ |
DvrStorageManager.java | 44 // Size of minimum reserved storage buffer which will be used to save meta files 45 // and index files after actual recording finished. 64 File[] files = mBufferDir.listFiles(); local 65 if (files != null && files.length > 0) { 66 for (File file : files) {
|
/prebuilts/gdb/darwin-x86/lib/python2.7/plat-mac/ |
bundlebuilder.py | 74 knows nothing about executables or icons, it only copies files 75 and creates the PkgInfo and Info.plist files. 96 # List of files that have to be copied to <bundle>/Contents/Resources. 101 files = [] variable in class:BundleBuilder 110 # Make symlinks instead copying files. This is handy during debugging, but 195 files = self.files[:] 197 files.append((path, pathjoin("Contents", "Resources", 200 files.append((path, pathjoin("Contents", "Frameworks", 206 self.message("Copying files", 1 [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/plat-mac/ |
bundlebuilder.py | 74 knows nothing about executables or icons, it only copies files 75 and creates the PkgInfo and Info.plist files. 96 # List of files that have to be copied to <bundle>/Contents/Resources. 101 files = [] variable in class:BundleBuilder 110 # Make symlinks instead copying files. This is handy during debugging, but 195 files = self.files[:] 197 files.append((path, pathjoin("Contents", "Resources", 200 files.append((path, pathjoin("Contents", "Frameworks", 206 self.message("Copying files", 1 [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/ |
AdtUtils.java | 149 * Note that dot files (e.g. ".profile") will be left alone. 156 if (dotIndex > 0) { // > 0 instead of != -1: Treat dot files (e.g. .profile) differently 167 * Note that dot files (e.g. ".profile") will be left alone. 174 if (dotIndex > 0) { // > 0 instead of != -1: Treat dot files (e.g. .profile) differently 497 IFile[] files = workspace.findFilesForLocationURI(file.toURI()); local 498 if (files.length > 0) { 499 return files[0]; 518 IFile[] files = workspace.findFilesForLocationURI(file.toURI()); local 519 if (files.length > 0) { 520 return files[0] 536 IFile[] files = workspace.findFilesForLocationURI(URIUtil.toURI(path.makeAbsolute())); local 564 IFile[] files = workspace.findFilesForLocationURI(URIUtil.toURI(path.makeAbsolute())); local [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/ |
SourceProcessor.java | 60 /** List of all source files, their dependencies, and their output. */ 68 /** List of source files pending compilation at the next build */ 71 /** List of removed source files pending cleaning at the next build. */ 106 // get all the source files 114 // if we stored that we have to compile some files, we build the list that will compile them 115 // all. For now we have to reuse the full list since we don't know which files needed 151 * Returns whether the given file is a dependency for other files by returning a list 154 * @return a list of files that depend on the given file or an empty list if there 158 ArrayList<IFile> files = new ArrayList<IFile>(); local 161 files.add(data.getSourceFile()) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/core/ |
AndroidTypeMoveParticipant.java | 169 // Update layout files; we don't just need to react to custom view 193 // Update references in XML resource files 206 IResource[] files = ((IFolder) folder).members(); local 207 for (int i = 0; i < files.length; i++) { 208 IResource member = files[i];
|
/sdk/eclipse/plugins/com.android.ide.eclipse.traceview/src/com/android/ide/eclipse/traceview/editors/ |
TraceviewEditor.java | 91 IFile[] files = workspaceRoot.findFilesForLocationURI(fileStore.toURI()); local 92 if (files != null && files.length == 1) 93 return files[0];
|