Searched defs:file (Results 151 - 175 of 206) sorted by relevance

123456789

/frameworks/native/cmds/installd/
H A Dotapreopt.cpp5 ** you may not use this file except in compliance with the License.
559 // Check whether the file exists where expected.
649 std::string file = StringPrintf("%s/%s", dir.c_str(), name); local
651 LOG(WARNING) << "Unexpected file "
652 << file
658 // Try to unlink the file.
659 if (unlink(file.c_str()) != 0) {
660 PLOG(ERROR) << "Unable to unlink " << file;
674 cmd.push_back(StringPrintf("--output-image-file=%s", art_path.c_str()));
699 cmd.push_back(StringPrintf("--dex-file
[all...]
/frameworks/native/libs/binder/tests/
H A Dschd-dbg.cpp57 fstream file; local
58 file.open(trace_path + "/tracing_on", ios::in);
60 file >> on;
61 file.close();
66 ofstream file; local
67 file.open(trace_path + "/tracing_on", ios::out | ios::trunc);
68 file << '0' << endl;
69 file.close();
/frameworks/rs/
H A DrsContext.h5 * you may not use this file except in compliance with the License.
189 void setWatchdogGL(const char *cmd, uint32_t line, const char *file) const {
191 watchdog.file = file;
228 const char *file; member in struct:android::renderscript::Context::__anon2015
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp5 * you may not use this file except in compliance with the License.
352 // We have no bootanimation file, so we use the stock android logo
646 // Parse the description file
721 ALOGE("Error fetching entry file name");
747 // a part may have at most one audio file
800 // Create and initialize audioplay if there is a wav file in any of the animations.
920 // only play audio file the first time we animate the part
1110 FILE* file = fopen(LAST_TIME_CHANGED_FILE_PATH, "r"); local
1111 if (file != NULL) {
1113 fscanf(file, "
[all...]
/frameworks/base/core/java/android/content/
H A DContextWrapper.java5 * you may not use this file except in compliance with the License.
172 public SharedPreferences getSharedPreferences(File file, int mode) { argument
173 return mBase.getSharedPreferences(file, mode);
H A DContext.java5 * you may not use this file except in compliance with the License.
120 * File creation mode: the default mode, where the created file can only
128 * the created file.
139 * a file, such as when it goes through a backup and restore.
148 * the created file.
159 * a file, such as when it goes through a backup and restore.
167 * File creation mode: for use with {@link #openFileOutput}, if the file
168 * already exists then write data to the end of the existing file
175 * SharedPreference loading flag: when set, the file on disk will
179 * processes, all writing to the same SharedPreferences file
788 getSharedPreferences(File file, @PreferencesMode int mode) argument
[all...]
/frameworks/base/core/java/android/os/
H A DDebug.java5 * you may not use this file except in compliance with the License.
70 * trace key file.
102 * Default trace file path and file
289 * Return total PSS memory usage in kB mapping a file of one of the following extension:
851 * This is the pathname to the sysfs file that enables and disables
859 * file is specified on the command line when the emulator is started. For
862 * will start running the emulator and create a trace file named "foo". This
863 * method simply enables writing the trace records to the trace file.
885 // Open the sysfs file fo
2228 dumpNativeBacktraceToFileTimeout(int pid, String file, int timeoutSecs) argument
[all...]
H A DProcess.java5 * you may not use this file except in compliance with the License.
125 * Defines the UID/GID for the shared RELRO file updater process.
939 public static final native boolean readProcFile(String file, int[] format, argument
H A DParcel.java5 * you may not use this file except in compliance with the License.
171 * <p>FileDescriptor objects, representing raw Linux file descriptor identifiers,
173 * on the original file descriptor. The returned file descriptor is a dup
174 * of the original file descriptor: the object and fd is different, but
175 * operating on the same underlying file stream, with the same position, etc.
515 * Report whether the parcel contains any marshalled file descriptors.
662 * <p class="caution">The file descriptor will not be closed, which may
663 * result in file descriptor leaks when objects are returned from Binder
665 * accepts contextual flags and will close the original file descripto
2068 openFileDescriptor(String file, int mode) argument
[all...]
/frameworks/base/core/java/android/os/storage/
H A DStorageManager.java5 * you may not use this file except in compliance with the License.
101 * guarantee the security of the OBB file itself: if any program modifies the
542 * Mount an Opaque Binary Blob (OBB) file. If a <code>key</code> is
552 * file matches a package ID that is owned by the calling program's UID.
556 * @param rawPath the path to the OBB file
579 * Unmount an Opaque Binary Blob (OBB) file asynchronously. If the
587 * file matches a package ID that is owned by the calling program's UID.
592 * @param rawPath path to the OBB file
628 * Check the mounted path of an Opaque Binary Blob (OBB) file. This will
993 * Return the {@link StorageVolume} that contains the given file, o
995 getStorageVolume(File file) argument
1000 getStorageVolume(File file, int userId) argument
1005 getStorageVolume(StorageVolume[] volumes, File file) argument
1293 isEncrypted(File file) argument
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DTextToSpeech.java5 * use this file except in compliance with the License. You may obtain a copy of
56 * Synthesizes speech from text for immediate playback or to create a sound file.
99 * Denotes a failure related to the output (audio device or a file).
443 * the TextToSpeech engine specifies the file names of its resources under the
454 * the TextToSpeech engine specifies the locale associated with each resource file.
528 * or playing back a file. The value should be one of the STREAM_ constants
538 * speaking text or playing back a file. The value should be set
550 * spoken, a file has been played back or a silence duration has elapsed.
939 * Adds a mapping between a string of text and a sound file. Using this, it
948 * The full path to the sound file (fo
974 addSpeech(CharSequence text, File file) argument
1053 addEarcon(String earcon, File file) argument
1819 synthesizeToFile(final CharSequence text, final Bundle params, final File file, final String utteranceId) argument
[all...]
/frameworks/base/core/jni/
H A DAndroidRuntime.cpp5 * you may not use this file except in compliance with the License.
355 * We ignore "fp" and just write the results to the log file.
386 static bool hasFile(const char* file) { argument
388 int res = stat(file, &s);
649 char methodTraceFileBuf[sizeof("-Xmethod-trace-file:") + PROPERTY_VALUE_MAX];
650 char methodTraceFileSizeBuf[sizeof("-Xmethod-trace-file-size:") + PROPERTY_VALUE_MAX];
682 parseRuntimeOption("dalvik.vm.stack-trace-file", stackTraceFileBuf, "-Xstacktracefile:");
783 // Make sure there is a preloaded-classes file.
785 ALOGE("Missing preloaded-classes file, /system/etc/preloaded-classes not found: %s\n",
792 // If there is a compiled-classes file, pus
[all...]
H A Dandroid_util_Process.cpp6 ** you may not use this file except in compliance with the License.
347 FILE *file; local
370 file = fopen(filename, "re");
371 if (file != NULL) {
375 ssize_t num_read = getline(&line, &len, file);
376 fclose (file);
678 String8 file(file8);
717 int fd = open(file.string(), O_RDONLY);
726 ALOGW("Unable to read %s", file.string());
768 ALOGW("Unable to open %s", file
775 android_os_Process_getPids(JNIEnv* env, jobject clazz, jstring file, jintArray lastArray) argument
1010 android_os_Process_readProcFile(JNIEnv* env, jobject clazz, jstring file, jintArray format, jobjectArray outStrings, jlongArray outLongs, jfloatArray outFloats) argument
1098 FILE * file = fopen(filename, "r"); local
[all...]
/frameworks/base/media/java/android/media/
H A DMediaRecorder.java5 * you may not use this file except in compliance with the License.
366 /** 3GPP media file format*/
368 /** MPEG4 media file format*/
374 * AMR NB file format
379 /** AMR NB file format */
382 /** AMR WB file format */
385 /** @hide AAC ADIF file format */
388 /** AAC ADTS file format */
444 * called, the output file will not contain an audio track. The source needs
465 * called, the output file wil
821 setOutputFile(File file) argument
884 setNextOutputFile(File file) argument
[all...]
/frameworks/base/packages/Shell/src/com/android/shell/
H A DBugreportProgressService.java5 * you may not use this file except in compliance with the License.
739 for (File file : info.screenshotFiles) {
740 Log.i(TAG, "Deleting screenshot file " + file);
741 file.delete();
798 // Should never happen, dumpstate always set the file.
850 Log.e(TAG, "Could not read bugreport file " + info.bugreportFile);
861 // Asynchronously zip the file first, then send it.
1097 * Zips a bugreport file, returning the path to the new file (o
1264 getUri(Context context, File file) argument
1871 writeFile(Parcel dest, File file) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
H A DAccountManagerServiceTest.java5 * you may not use this file except in compliance with the License.
346 // Verify that CE db file is unchanged and still has 2 accounts
381 assertFalse("pre-N database file should be removed but was found at " + preNDatabaseName,
387 assertTrue("DE database file should be created at " + deDatabaseName,
389 assertTrue("CE database file should be created at " + ceDatabaseName,
3243 public SQLiteDatabase openOrCreateDatabase(String file, int mode, argument
3245 return mTestContext.openOrCreateDatabase(file, mode, factory,errorHandler);
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
H A DShortcutManagerTestUtils.java5 * you may not use this file except in compliance with the License.
104 public static List<String> readAll(File file) throws FileNotFoundException { argument
106 file.getAbsoluteFile(), ParcelFileDescriptor.MODE_READ_ONLY));
/frameworks/base/test-runner/src/android/test/mock/
H A DMockContext.java5 * you may not use this file except in compliance with the License.
148 public SharedPreferences getSharedPreferences(File file, int mode) { argument
239 public SQLiteDatabase openOrCreateDatabase(String file, int mode, argument
245 public SQLiteDatabase openOrCreateDatabase(String file, int mode, argument
/frameworks/base/tools/aapt/
H A DAaptAssets.cpp70 // about the file being ignored.
72 // or <file> to match only files. Default is to match both.
114 if (strncasecmp(token, "<file>", 6) == 0) {
139 type == kFileTypeDirectory ? "dir" : "file",
523 status_t AaptGroup::addFile(const sp<AaptFile>& file, const bool overwriteDuplicate) argument
525 ssize_t index = mFiles.indexOfKey(file->getGroupEntry());
529 file->getSourceFile().string());
535 file->mPath = mPath;
536 mFiles.add(file->getGroupEntry(), file);
565 sp<AaptFile> file = mFiles.valueAt(i); local
595 addFile(const String8& name, const sp<AaptGroup>& file) argument
642 addLeafFile(const String8& leafName, const sp<AaptFile>& file, const bool overwrite) argument
726 sp<AaptFile> file = new AaptFile(pathName, kind, resType); local
896 addFile(const String8& name, const sp<AaptGroup>& file) argument
909 sp<AaptFile> file; local
955 addResource(const String8& leafName, const String8& path, const sp<AaptFile>& file, const String8& resType) argument
1264 sp<AaptFile> file = new AaptFile(entryName, kind, resType); local
1368 sp<AaptFile> file = grp->getFiles().valueAt(k); local
1405 sp<AaptFile> file = grp->getFiles().valueAt(k); local
1562 addIncludedResources(const sp<AaptFile>& file) argument
[all...]
H A DBundle.h149 void setProguardFile(const char* file) { mProguardFile = file; } argument
151 void setMainDexProguardFile(const char* file) { mMainDexProguardFile = file; } argument
155 void setAndroidManifestFile(const char* file) { mAndroidManifestFile = file; } argument
157 void setPublicOutputFile(const char* file) { mPublicOutputFile = file; } argument
169 void addPackageInclude(const char* file) { mPackageIncludes.add(android::String8(file)); } argument
171 addJarFile(const char* file) argument
[all...]
H A DImages.cpp1324 const sp<AaptFile>& file, FILE* fp, image_info* imageInfo) {
1333 const size_t nameLen = file->getPath().length();
1335 const char* name = file->getPath().string();
1358 const sp<AaptFile>& file, String8* /* outNewLeafName */)
1360 String8 ext(file->getPath().getPathExtension());
1367 // Example of renaming a file:
1368 //*outNewLeafName = file->getPath().getBasePath().getFileName();
1371 String8 printableName(file->getPrintableSource());
1388 fp = fopen(file->getSourceFile().string(), "rb");
1390 fprintf(stderr, "%s: ERROR: Unable to open PNG file\
1323 read_png_protected(png_structp read_ptr, String8& printableName, png_infop read_info, const sp<AaptFile>& file, FILE* fp, image_info* imageInfo) argument
1357 preProcessImage(const Bundle* bundle, const sp<AaptAssets>& , const sp<AaptFile>& file, String8* ) argument
1584 postProcessImage(const Bundle* bundle, const sp<AaptAssets>& assets, ResourceTable* table, const sp<AaptFile>& file) argument
[all...]
/frameworks/base/tools/aapt2/cmd/
H A DLink.cpp5 * you may not use this file except in compliance with the License.
25 #include "android-base/file.h"
288 * Inflates an XML file from the source path.
344 // The entry this file came from.
347 // The file to copy as-is.
353 // The destination to write this file to.
457 const Source& src = doc->file.source;
509 // Sort by config and name, so that we get better locality in the zip file.
524 io::IFile* file = file_ref->file; local
1057 io::IFile* file = collection->FindFile("resources.arsc.flat"); local
1126 MergeResourceTable(io::IFile* file, bool override) argument
1153 MergeCompiledFile(io::IFile* file, ResourceFile* file_desc, bool override) argument
1251 io::IFile* file = file_collection_->InsertFile(path); local
1271 MergeFile(io::IFile* file, bool override) argument
[all...]
/frameworks/native/cmds/dumpstate/
H A Ddumpstate.cpp5 * you may not use this file except in compliance with the License.
39 #include <android-base/file.h>
165 MYLOGE("Unable to add mountinfo %s to zip file\n", path);
176 MYLOGD("%s: %d entries added to zip file\n", title.c_str(), (int)mount_points.size());
203 // dump anrd's trace and add to the zip file.
206 // 3. wait until the trace generation completes and add to the zip file.
252 // identify the trace file by its creation time.
254 MYLOGE("Can't open trace file under %s\n", trace_path);
289 // Add to the zip file.
291 MYLOGE("Unable to add anrd_trace file
400 std::string file = std::string(de->d_name); local
[all...]
/frameworks/av/services/camera/libcameraservice/
H A DCameraService.cpp5 * you may not use this file except in compliance with the License.
1979 MediaPlayer* CameraService::newMediaPlayer(const char *file) { argument
1981 if (mp->setDataSource(NULL /* httpService */, file, NULL) == NO_ERROR) {
1985 ALOGE("Failed to load CameraService sounds: %s", file);
/frameworks/base/core/java/android/app/
H A DContextImpl.java5 * you may not use this file except in compliance with the License.
350 // name. This happened to work because when we generated the file name
359 File file;
364 file = mSharedPrefsPaths.get(name);
365 if (file == null) {
366 file = getSharedPreferencesPath(name);
367 mSharedPrefsPaths.put(name, file);
370 return getSharedPreferences(file, mode);
382 public SharedPreferences getSharedPreferences(File file, int mode) { argument
396 sp = cache.get(file);
549 ensurePrivateDirExists(File file) argument
553 ensurePrivateCacheDirExists(File file, String xattr) argument
558 ensurePrivateDirExists(File file, int mode, int gid, String xattr) argument
[all...]

Completed in 719 milliseconds

123456789