Searched refs:file (Results 76 - 100 of 339) sorted by relevance

1234567891011>>

/frameworks/base/drm/java/android/drm/
H A DDrmRights.java5 * you may not use this file except in compliance with the License.
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);
54 instantiate(file, mimeType);
60 * @param rightsFilePath Path to the file containing rights information.
73 * @param rightsFilePath Path to the file containing rights information.
/frameworks/base/media/mca/tests/src/android/camera/mediaeffects/tests/functional/
H A DEffectsVideoCapture.java5 * you may not use this file except in compliance with the License.
71 File file = new File(Environment.getExternalStorageDirectory(),
73 Uri uri = Uri.fromFile(file);
80 // Verify the video file
/frameworks/base/core/java/android/os/
H A DParcelFileDescriptor.java5 * you may not use this file except in compliance with the License.
43 * and this file doesn't already exist, then create the file with
50 * and this file doesn't already exist, then create the file with
56 * For use with {@link #open}: open the file with read-only access.
61 * For use with {@link #open}: open the file with write-only access.
66 * For use with {@link #open}: open the file with read and write access.
71 * For use with {@link #open}: create the file if it doesn't already exist.
76 * For use with {@link #open}: erase contents of file whe
101 open(File file, int mode) argument
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/net/
H A DNetworkStatsFactoryTest.java5 * you may not use this file except in compliance with the License.
132 private void stageFile(int rawId, File file) throws Exception { argument
133 new File(file.getParent()).mkdirs();
138 out = new FileOutputStream(file);
146 private void stageLong(long value, File file) throws Exception { argument
147 new File(file.getParent()).mkdirs();
150 out = new FileWriter(file);
/frameworks/base/core/tests/coretests/src/android/app/
H A DDownloadManagerBaseTest.java5 * you may not use this file except in compliance with the License.
90 // Just a few popular file types used to return from a download
332 * Helper to verify the size of a file.
334 * @param pfd The input file to compare the size of
335 * @param size The expected size of the file
342 * Helper to verify the contents of a downloaded file versus a byte[].
344 * @param actual The file of whose contents to verify
345 * @param expected The data we expect to find in the aforementioned file
346 * @throws IOException if there was a problem reading from the file
379 * Verifies the contents of a downloaded file versu
385 verifyFileContents(ParcelFileDescriptor pfd, File file) argument
860 waitForFileToGrow(File file) argument
[all...]
/frameworks/wilhelm/tests/native-media/jni/
H A Dnative-media-jni.c5 * you may not use this file except in compliance with the License.
66 // handle of the file to play
67 FILE *file; variable
69 // has the app reached the end of the file
120 rewind(file);
193 nbRead = fread(pBufferData, BUFFER_SIZE, 1, file);
301 nbRead = fread(dataCache, BUFFER_SIZE, NB_BUFFERS, file);
349 // open the file to play
350 file = fopen(utf8, "rb");
351 if (file
[all...]
/frameworks/wilhelm/tests/sandbox/streamSource/
H A DslesTestPlayStream.cpp5 * you may not use this file except in compliance with the License.
44 FILE *file; variable
45 /* Has the app reached the end of the file */
87 // to play a .ts file, but rather shows more ways to exercise the API
108 size_t nbRead = fread((void*)dataCache, 1, BUFFER_SIZE*(NB_BUFFERS/2), file);
150 size_t nbRead = fread((void*)pBufferData, 1, BUFFER_SIZE, file);
208 file = fopen(path, "rb");
297 if (fread(dataCache, 1, BUFFER_SIZE * NB_BUFFERS, file) <= 0) {
311 if (fread(dataCache, 1, BUFFER_SIZE * 1, file) <= 0) {
375 fclose(file);
[all...]
/frameworks/base/core/java/android/app/
H A DSharedPreferencesImpl.java5 * you may not use this file except in compliance with the License.
75 SharedPreferencesImpl(File file, int mode) { argument
76 mFile = file;
77 mBackupFile = makeBackupFile(file);
108 Log.w(TAG, "Attempt to read preferences file " + mFile + " without permission");
158 // Has the file changed out from under us? i.e. writes that
540 private static FileOutputStream createFileOutputStream(File file) { argument
543 str = new FileOutputStream(file);
545 File parent = file.getParentFile();
547 Log.e(TAG, "Couldn't create directory for SharedPreferences file "
[all...]
/frameworks/base/cmds/installd/
H A Dutils.c5 ** you may not use this file except in compliance with the License.
479 cache_file_t* file = (cache_file_t*)_cache_malloc(cache, sizeof(cache_file_t)+nameLen+1); local
480 if (file != NULL) {
481 file->dir = dir;
482 file->modTime = modTime;
483 strcpy(file->name, name);
489 ALOGE("Failure growing cache file array for %s\n", name);
495 CACHE_NOISY(ALOGI("Setting file %p at position %d in array %p", file,
497 cache->files[cache->numFiles] = file;
756 cache_file_t* file = cache->files[i]; local
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DFileSynthesisCallback.java5 * use this file except in compliance with the License. You may obtain a copy of
29 * Speech synthesis request that writes the audio to a WAV file.
86 // Make the written file readable and writeable by everyone.
87 // This allows the app that requested synthesis to read the file.
89 // Note that the directory this file was written must have already
99 * Checks whether a given file exists, and deletes it if it does.
101 private boolean maybeCleanupExistingFile(File file) { argument
102 if (file.exists()) {
103 Log.v(TAG, "File " + file + " exists, deleting.");
104 if (!file
[all...]
/frameworks/base/services/java/com/android/server/am/
H A DUsageStatsService.java5 * you may not use this file except in compliance with the License.
107 // Lock to write to file. Methods suffixed by FLOCK should invoked with
263 Slog.i(TAG, "Deleting old usage file: " + fList[i]);
305 private Parcel getParcelForFile(File file) throws IOException { argument
306 FileInputStream stream = new FileInputStream(file);
322 // Check for file limit before creating a new file
327 Slog.w(TAG,"Error : " + e + " reading data from file:" + newFile);
332 private void readStatsFLOCK(File file) throws IOException { argument
333 Parcel in = getParcelForFile(file);
362 readHistoryStatsFLOCK(AtomicFile file) argument
564 writeStatsFLOCK(File file) argument
[all...]
/frameworks/base/core/java/android/provider/
H A DDrmStore.java5 * you may not use this file except in compliance with the License.
59 * The data stream for the file
65 * The size of the file in bytes
71 * The title of the file content
77 * The MIME type of the file
95 * Utility function for inserting a file into the DRM content provider.
98 * @param file The file to insert
102 public static final Intent addDrmFile(ContentResolver cr, File file, String title) { argument
107 fis = new FileInputStream(file);
[all...]
/frameworks/base/services/java/com/android/server/
H A DBootReceiver.java5 * you may not use this file except in compliance with the License.
109 // Negative sizes mean to take the *tail* of the file (see FileUtils.readTextFile())
130 // This gets registered with the singleton file observer thread.
151 File file = new File(filename);
152 long fileTime = file.lastModified();
157 if (lastTime == fileTime) return; // Already logged this particular file
164 db.addText(tag, headers + FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n"));
H A DDockObserver.java5 * you may not use this file except in compliance with the License.
100 FileReader file = new FileReader(DOCK_STATE_PATH);
102 int len = file.read(buffer, 0, 1024);
106 file.close();
174 final Uri soundUri = Uri.parse("file://" + soundPath);
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm_gcc/
H A Dasm_common.S5 @ you may not use this file except in compliance with the License.
/frameworks/base/core/java/android/app/backup/
H A DBackupAgent.java5 * you may not use this file except in compliance with the License.
48 * and provide the name of its backup agent class in its {@code AndroidManifest.xml} file via
94 * suited to handling of simple file or {@link android.content.SharedPreferences}
110 * During a full restore, indicates that the file system object being restored
111 * is an ordinary file.
116 * During a full restore, indicates that the file system object being restored
150 * last backup pass is provided in the <code>oldState</code> file
154 * be written to the file pointed to by the file descriptor wrapped in
169 * file descripto
269 fullBackupFile(File file, FullBackupDataOutput output) argument
[all...]
/frameworks/base/core/tests/coretests/apks/install_jni_lib/
H A DAndroid.mk4 # you may not use this file except in compliance with the License.
/frameworks/base/core/tests/hosttests/
H A DAndroid.mk4 # you may not use this file except in compliance with the License.
/frameworks/base/core/tests/hosttests/test-apps/
H A DAndroid.mk4 # you may not use this file except in compliance with the License.
/frameworks/base/core/tests/hosttests/test-apps/AutoLocTestApp/
H A DAndroid.mk4 # you may not use this file except in compliance with the License.
/frameworks/base/core/tests/hosttests/test-apps/AutoLocVersionedTestApp_v1/
H A DAndroid.mk4 # you may not use this file except in compliance with the License.
/frameworks/base/core/tests/hosttests/test-apps/AutoLocVersionedTestApp_v2/
H A DAndroid.mk4 # you may not use this file except in compliance with the License.
/frameworks/base/core/tests/hosttests/test-apps/ExternalLocAllPermsTestApp/
H A DAndroid.mk4 # you may not use this file except in compliance with the License.
/frameworks/base/core/tests/hosttests/test-apps/ExternalLocPermsFLTestApp/
H A DAndroid.mk4 # you may not use this file except in compliance with the License.
/frameworks/base/core/tests/hosttests/test-apps/ExternalLocTestApp/
H A DAndroid.mk4 # you may not use this file except in compliance with the License.

Completed in 261 milliseconds

1234567891011>>