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

<<11121314151617181920>>

  /external/robolectric/src/main/java/com/xtremelabs/robolectric/res/
RawResourceLoader.java 3 import java.io.File;
11 private File resourceDir;
13 public RawResourceLoader(ResourceExtractor resourceExtractor, File resourceDir) {
22 File rawResourceDir = new File(resourceDir, "raw");
25 File[] files = rawResourceDir.listFiles();
27 File file = files[i]; local
28 String name = file.getName();
37 return new FileInputStream(file);
    [all...]
  /external/v8/test/cctest/
cctest.cc 36 CcTest::CcTest(TestFunction* callback, const char* file, const char* name,
40 char *basename = strrchr(const_cast<char *>(file), '/');
42 basename = strrchr(const_cast<char *>(file), '\\');
45 basename = v8::internal::StrDup(file);
65 current->file(), current->name(), current->dependency());
67 printf("%s/%s<\n", current->file(), current->name());
89 char* file = arg_copy; local
94 && strcmp(test->file(), file) == 0
103 // Run all tests with the specified file or test name
    [all...]
  /frameworks/av/media/libstagefright/id3/
testid3.cpp 5 * you may not use this file except in compliance with the License.
72 sp<FileSource> file = new FileSource(path); local
73 CHECK_EQ(file->initCheck(), (status_t)OK);
75 ID3 tag(file);
  /frameworks/base/drm/java/android/drm/
DrmRights.java 5 * you may not use this file except in compliance with the License.
19 import java.io.File;
31 * {@link DrmRights#DrmRights(String, String)} constructor, which takes a path to a file
49 * @param rightsFilePath Path to the file containing rights information.
53 File file = new File(rightsFilePath); local
54 instantiate(file, mimeType);
60 * @param rightsFilePath Path to the file containing rights information.
73 * @param rightsFilePath Path to the file containing rights information
    [all...]
  /libcore/luni/src/main/java/java/net/
JarURLConnection.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
30 * archive file or to an entry of such a file. {@code jar:} URLs are specified
37 * <li>File Entry: {@code
53 // the file component of the URL
54 private String file; field in class:JarURLConnection
67 file = url.getFile();
69 if ((sepIdx = file.indexOf("!/")) < 0)
    [all...]
  /libcore/luni/src/main/java/libcore/net/url/
JarHandler.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
28 * Returns a connection to the jar file pointed by this <code>URL</code>
29 * in the file system
58 String file = url.getFile(); local
59 if (file == null) {
60 file = "";
67 if (spec.indexOf("!/") == -1 && (file.indexOf("!/") == -1)) {
70 if (file.isEmpty())
    [all...]
  /ndk/sources/host-tools/make-3.81/
job.h 4 This file is part of GNU Make.
15 GNU Make; see the file COPYING. If not, write to the Free Software
24 # include <sys/file.h>
27 /* How to set close-on-exec for a file descriptor. */
44 struct file *file; /* File being remade. */ member in struct:child
57 char *sh_batch_file; /* Script file for shell commands */
69 extern void new_job PARAMS ((struct file *file));
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
AbstractDictionaryWriter.java 5 * you may not use this file except in compliance with the License.
26 import java.io.File;
68 final File file = new File(mContext.getFilesDir(), fileName); local
69 final File tempFile = new File(mContext.getFilesDir(), tempFileName);
73 tempFile.renameTo(file);
75 Log.e(TAG, "IO exception while writing file", e);
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/common/
CommonMatchingStrategy.java 5 * you may not use this file except in compliance with the License.
47 IFile file = fileInput.getFile(); local
48 if (file.getParent().getName().startsWith(FD_RES_LAYOUT)) {
49 ResourceFolder resFolder = ResourceManager.getInstance().getResourceFolder(file);
59 if (!(editorRef.getName().endsWith(file.getName()) &&
68 // as those with the wrong extension or wrong file name
69 if (!(file.getName().equals(editorRef.getName()) &&
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/
LayoutEditorMatchingStrategy.java 5 * you may not use this file except in compliance with the License.
39 // first check that the file being opened is a layout file.
44 IFile file = fileInput.getFile(); local
46 ResourceFolder resFolder = manager.getResourceFolder(file);
50 // as those with the wrong extension or wrong file name
51 if (!file.getName().equals(editorRef.getName()) ||
57 // file being currently edited by the editor since those are independent of the config.
71 return editorFile.getProject().equals(file.getProject())
72 && editorFile.getName().equals(file.getName())
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/
TemplateTestWizard.java 5 * you may not use this file except in compliance with the License.
23 import java.io.File;
58 File file = mSelectionPage.getLocation(); local
59 if (file != null && file.exists()) {
62 mValues.setTemplateLocation(file);
69 mValues.setTemplateLocation(file);
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/
ChangeViewRefactoringTest.java 5 * you may not use this file except in compliance with the License.
47 IFile file = getLayoutFile(getProject(), basename); local
48 TestContext info = setupTestContext(file, basename);
  /system/core/toolbox/
uptime.c 81 FILE* file = fopen("/proc/uptime", "r"); local
82 if (!file) {
86 if (fscanf(file, "%*f %f", &idle_time) != 1) {
88 fclose(file);
91 fclose(file);
  /external/chromium_org/tools/emacs/
flymake-chromium.el 3 ;; found in the LICENSE file.
9 ;; the build.ninja file(s). See defcustoms below for settable knobs.
14 (defcustom cr-flymake-ninja-build-file "out/Debug/build.ninja"
16 build.ninja file to use.")
24 (when buffer-file-truename
25 (expand-file-name buffer-file-truename)))
29 (let ((srcdir (locate-dominating-file
30 (cr-flymake-absbufferpath) cr-flymake-ninja-build-file)))
31 (when srcdir (expand-file-name srcdir)))
    [all...]
  /external/jmonkeyengine/engine/src/desktop/com/jme3/system/
Natives.java 49 private static File extractionDirOverride = null;
50 private static File extractionDir = null;
53 extractionDirOverride = new File(name).getAbsoluteFile();
56 public static File getExtractionDir() {
61 File workingFolder = new File("").getAbsoluteFile();
66 File file = new File(workingFolder.getAbsolutePath() + File.separator + ".jmetestwrite") local
    [all...]
  /external/junit/src/org/junit/experimental/max/
MaxHistory.java 3 import java.io.File;
30 * Loads a {@link MaxHistory} from {@code file}, or generates a new one that
31 * will be saved to {@code file}.
33 public static MaxHistory forFolder(File file) {
34 if (file.exists())
36 return readHistory(file);
39 file.delete();
41 return new MaxHistory(file);
44 private static MaxHistory readHistory(File storedResults
47 FileInputStream file= new FileInputStream(storedResults); local
    [all...]
  /external/smack/src/org/jivesoftware/smackx/filetransfer/
OutgoingFileTransfer.java 9 * you may not use this file except in compliance with the License.
28 * Handles the sending of a file to another user. File transfer's in jabber have
41 * Returns the time in milliseconds after which the file transfer
44 * @return Returns the time in milliseconds after which the file transfer
53 * Sets the time in milliseconds after which the file transfer negotiation
82 * Returns the output stream connected to the peer to transfer the file. It
87 * file.
98 * This method handles the negotiation of the file transfer and the stream,
102 * The name of the file that will be transmitted. It is
    [all...]
  /frameworks/support/tests/java/android/support/v4/content/
FileProviderTest.java 5 * you may not use this file except in compliance with the License.
30 import java.io.File;
45 private static final String TEST_FILE = "file.test";
62 File file = buildPath(mContext.getFilesDir(), "file.test"); local
63 assertEquals("content://authority/tag/file.test",
64 strat.getUriForFile(file).toString());
66 file = buildPath(mContext.getFilesDir(), "subdir", "file.test")
82 File file = buildPath(mContext.getFilesDir(), "..", "file.test"); local
95 File file = buildPath(mContext.getFilesDir(), "file.test"); local
112 File file = buildPath(mContext.getFilesDir(), "file.test"); local
136 File file = buildPath(mContext.getFilesDir(), "lol\\"wat?foo&bar", "wat.txt"); local
149 File file = buildPath(mContext.getFilesDir(), "file.txt"); local
170 final File file = new File(mContext.getFilesDir(), TEST_FILE); local
186 final File file = new File(mContext.getFilesDir(), TEST_FILE); local
214 final File file = new File(mContext.getFilesDir(), TEST_FILE); local
231 final File file = new File(mContext.getFilesDir(), TEST_FILE); local
238 final File file = new File(mContext.getFilesDir(), TEST_FILE); local
254 final File file = new File(mContext.getFilesDir(), TEST_FILE); local
274 final File file = new File(mContext.getFilesDir(), TEST_FILE); local
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/zip/
OldAndroidZipFileTest.java 5 * you may not use this file except in compliance with the License.
19 import java.io.File;
39 File file = File.createTempFile("ZipFileTest", ".zip"); local
41 // create a test file; assume it's not going to collide w/anything
42 FileOutputStream outStream = new FileOutputStream(file);
45 scanZip(file.getPath());
46 read2(file.getPath());
48 file.delete()
    [all...]
  /packages/services/Telephony/src/com/android/phone/
CallTime.java 5 * you may not use this file except in compliance with the License.
27 import java.io.File;
198 File file = PhoneGlobals.getInstance().getDir ("phoneTrace", Context.MODE_PRIVATE); local
199 if (file.exists() == false) {
200 file.mkdirs();
202 String baseName = file.getPath() + File.separator + "callstate";
206 file = new File(dataFile)
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/draw9patch/
Draw9PatchEditor.java 5 * you may not use this file except in compliance with the License.
72 // We try to open a file that is part of the current workspace
113 "The file \"%s\" doesn't seem to be a 9-patch file. \n"
142 IFile file = mFileEditorInput.getFile(); local
149 if (file.exists()) {
150 file.setContents(new ByteArrayInputStream(byteArray), true, false, monitor);
152 file.create(new ByteArrayInputStream(byteArray), true, monitor);
230 String.format("The file \"%s\" doesn't seem to be a 9-patch file. \n
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/
NewXmlFileWizard.java 5 * you may not use this file except in compliance with the License.
61 * The "New Android XML File Wizard" provides the ability to create skeleton XML
65 * the resource folder, resource type and file name. It then creates the XML file.
68 /** The XML header to write at the top of the XML file */
82 setWindowTitle("New Android XML File");
87 mMainPage.setTitle("New Android XML File");
88 mMainPage.setDescription("Creates a new Android XML file.");
140 // Open the file
145 IFile file = created.getFirst()
170 IFile file = mValues.getDestinationFile(); local
425 IFile file = project.getFile(dest); local
    [all...]
  /ndk/build/core/
definitions.mk 4 # you may not use this file except in compliance with the License.
35 # Returns : the name of the last parsed Android.mk file
57 # 2: file where the variable(s) should be defined
59 # Usage : $(call check-required-vars, VAR1 VAR2 VAR3..., <file>)
98 # Function : generate-file-dir
99 # Arguments: 1: file path
101 # directory of the input file path will be created before it.
103 # Usage : $(call generate-file-dir,<file>)
110 define ev-generate-file-di
    [all...]
  /cts/tests/tests/content/src/android/content/cts/
ContentProviderTest.java 5 * use this file except in compliance with the License. You may obtain a copy of
32 import java.io.File;
191 // create a temporary File
193 File file = mContext.getFileStreamPath(TEST_FILE_NAME); local
194 assertTrue(file.exists());
196 ContentProvider cp = new OpenFileContentProvider(file.getAbsolutePath(), TEST_DB_NAME);
208 // delete the temporary file
209 file.delete();
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
FileOutputStreamTest.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;
37 File f;
46 * @tests java.io.FileOutputStream#FileOutputStream(java.io.File)
49 f = new File(fileName = System.getProperty("user.home"), "fos.tst");
57 f = new File(fileName = System.getProperty("user.home"), "fos.tst");
72 f = new File(fileName = System.getProperty("user.home"), "fos.tst");
85 f = new File(System.getProperty("user.home"), "fos.tst")
181 File file = new File("FileOutputStream.tmp"); local
    [all...]

Completed in 492 milliseconds

<<11121314151617181920>>