Searched defs:filename (Results 26 - 50 of 99) sorted by relevance

1234

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiApConfigStore.java124 private static WifiConfiguration loadApConfiguration(final String filename) { argument
130 new BufferedInputStream(new FileInputStream(filename)));
167 private static void writeApConfiguration(final String filename, argument
170 new FileOutputStream(filename)))) {
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
H A DPduBody.java163 * the same as filename and name(param of content-type).
165 * @param fileName the value of filename.
175 * @param fileName the value of filename.
183 * Get pdu part by filename.
185 * @param fileName the value of filename.
188 public PduPart getPartByFileName(String filename) { argument
189 return mPartMapByFileName.get(filename);
/frameworks/rs/
H A DrsDriverLoader.cpp165 bool Context::loadRuntime(const char* filename) { argument
175 driverSO = dlopen(filename, RTLD_LAZY);
199 ALOGE("Error checking RS driver version, %s", filename);
205 filename, version_major, RS_HAL_VERSION);
210 ALOGE("Error loading RS HAL table, %s", filename);
215 ALOGE("Hal init failed, %s", filename);
220 setDriverName(filename);
/frameworks/av/media/libstagefright/codecs/amrnb/enc/test/
H A Damrnb_enc_test.cpp179 int arg, filename = 0; local
217 switch (filename) {
229 filename++;
/frameworks/av/media/libstagefright/omx/
H A DOMXMaster.cpp38 char filename[20]; local
39 snprintf(filename, sizeof(filename), "/proc/%d/comm", pid);
40 int fd = open(filename, O_RDONLY);
/frameworks/base/core/java/android/app/backup/
H A DFileBackupHelperBase.java123 private static native int writeFile_native(long ptr, String filename, long backupReader); argument
/frameworks/base/core/java/com/android/server/
H A DBootReceiver.java207 String headers, String filename, int maxSize, String tag) throws IOException {
208 addFileWithFootersToDropBox(db, timestamps, headers, "", filename, maxSize, tag);
213 String headers, String footers, String filename, int maxSize,
217 File file = new File(filename);
221 if (timestamps.containsKey(filename) && timestamps.get(filename) == fileTime) {
225 timestamps.put(filename, fileTime);
227 Slog.i(TAG, "Copying " + filename + " to DropBox (" + tag + ")");
319 final String filename = parser.getAttributeValue(null, "filename");
205 addFileToDropBox( DropBoxManager db, HashMap<String, Long> timestamps, String headers, String filename, int maxSize, String tag) argument
211 addFileWithFootersToDropBox( DropBoxManager db, HashMap<String, Long> timestamps, String headers, String footers, String filename, int maxSize, String tag) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_backup_FileBackupHelperBase.cpp85 char const* filename; local
87 filename = env->GetStringUTFChars(filenameObj, NULL);
89 err = restore->WriteFile(String8(filename), reader);
91 env->ReleaseStringUTFChars(filenameObj, filename);
/frameworks/base/libs/androidfw/
H A DObbFile.cpp86 bool ObbFile::readFrom(const char* filename) argument
91 fd = ::open(filename, O_RDONLY);
93 ALOGW("couldn't open file %s: %s", filename, strerror(errno));
100 ALOGW("failed to read from %s (fd=%d)\n", filename, fd);
226 bool ObbFile::writeTo(const char* filename) argument
231 fd = ::open(filename, O_WRONLY);
240 ALOGW("failed to write to %s: %s\n", filename, strerror(errno));
311 bool ObbFile::removeFrom(const char* filename) argument
316 fd = ::open(filename, O_RDWR);
325 ALOGW("failed to remove signature from %s: %s\n", filename, strerro
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
H A DMediaFrameworkTest.java121 public void startPlayback(String filename){ argument
123 Uri path = Uri.parse(filename);
/frameworks/base/tools/obbtool/
H A DMain.cpp92 void doAdd(const char* filename, PackageInfo* info) { argument
94 if (obb->readFrom(filename)) {
95 fprintf(stderr, "ERROR: %s: OBB signature already present\n", filename);
106 if (!obb->writeTo(filename)) {
108 filename, strerror(errno));
115 void doRemove(const char* filename) { argument
117 if (!obb->readFrom(filename)) {
118 fprintf(stderr, "ERROR: %s: no OBB signature present\n", filename);
122 if (!obb->removeFrom(filename)) {
123 fprintf(stderr, "ERROR: %s: couldn't remove OBB signature\n", filename);
130 doInfo(const char* filename) argument
268 const char* filename = argv[optind++]; local
[all...]
/frameworks/compile/mclinker/include/mcld/MC/
H A DCommandAction.h174 const std::string& filename() const { return m_FileName; } function in class:mcld::ScriptAction
/frameworks/compile/mclinker/lib/Support/
H A DPath.cpp165 Path Path::filename() const { function in class:mcld::sys::fs::Path
/frameworks/rs/cpp/
H A DRenderScript.cpp79 static bool loadSO(const char* filename, int targetApi) { argument
80 void* handle = dlopen(filename, RTLD_LAZY | RTLD_LOCAL);
82 ALOGV("couldn't dlopen %s, %s", filename, dlerror());
87 ALOGV("%s init failed!", filename);
/frameworks/support/graphics/drawable/static/tests/src/android/support/graphics/drawable/tests/
H A DVectorDrawableTest.java227 private void compareImages(Bitmap ideal, Bitmap given, String filename) { argument
250 fail((filename + ": totalError is " + totalError));
259 fail((filename + ": totalDiffPixelCount is " + totalDiffPixelCount));
/frameworks/av/media/libstagefright/codecs/amrwbenc/SampleCode/
H A DAMRWB_E_SAMPLE.c265 int arg, filename=0; local
341 switch (filename) {
353 filename++;
/frameworks/av/services/audioflinger/tests/
H A Dtest-mixer.cpp54 static int writeFile(const char *filename, const void *buffer, argument
56 if (filename == NULL) {
57 return 0; // ok to pass in NULL filename
66 filename, info.channels, info.samplerate, frames);
67 SNDFILE *sf = sf_open(filename, SFM_WRITE, &info);
69 perror(filename);
200 printf("creating filename(%s)\n", argv[i]);
/frameworks/base/cmds/idmap/
H A Dscan.cpp36 bool writePackagesList(const char *filename, const SortedVector<Overlay>& overlayVector) argument
38 FILE* fout = fopen(filename, "w");
53 if (chmod(filename, mode) == -1) {
54 unlink(filename);
172 String8 filename = String8(idmap_dir); local
173 filename.appendPath("overlays.list");
174 if (unlink(filename.string()) != 0 && errno != ENOENT) {
221 if (!writePackagesList(filename.string(), overlayVector)) {
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DTracer.java125 throw new IllegalArgumentException("Please provide a filename before " +
136 throw new IllegalArgumentException("Please provide a filename before " +
160 * @param filename name of the log file.
162 public void setOutputFilename(String filename) { argument
163 mOutputFile = new File(filename);
/frameworks/base/native/android/
H A Dasset_manager.cpp87 AAsset* AAssetManager_open(AAssetManager* amgr, const char* filename, int mode) argument
108 Asset* asset = mgr->open(filename, amMode);
H A Dstorage_manager.cpp44 virtual void onObbResult(const android::String16& filename, const int32_t nonce,
105 void fireCallback(const char* filename, const int32_t nonce, const int32_t state) { argument
121 target->cb(filename, state, target->data);
124 ALOGI("Didn't find the callback handler for: %s\n", filename);
144 void unmountObb(const char* filename, const bool force, AStorageManager_obbCallbackFunc func, void* data) { argument
146 String16 filename16(filename);
150 int isObbMounted(const char* filename) { argument
151 String16 filename16(filename);
155 const char* getMountedObbPath(const char* filename) { argument
156 String16 filename16(filename);
166 onObbResult(const android::String16& filename, const int32_t nonce, const int32_t state) argument
186 AStorageManager_mountObb(AStorageManager* mgr, const char* filename, const char* key, AStorageManager_obbCallbackFunc cb, void* data) argument
191 AStorageManager_unmountObb(AStorageManager* mgr, const char* filename, const int force, AStorageManager_obbCallbackFunc cb, void* data) argument
196 AStorageManager_isObbMounted(AStorageManager* mgr, const char* filename) argument
200 AStorageManager_getMountedObbPath(AStorageManager* mgr, const char* filename) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DGestureRecorder.java154 public GestureRecorder(String filename) { argument
155 mLogfile = filename;
/frameworks/base/tools/aapt/
H A DXMLNode.h45 sp<XMLNode> newNamespace(const String8& filename, const String16& prefix, const String16& uri) { argument
46 return new XMLNode(filename, prefix, uri, true);
50 sp<XMLNode> newElement(const String8& filename, const String16& ns, const String16& name) { argument
51 return new XMLNode(filename, ns, name, false);
55 sp<XMLNode> newCData(const String8& filename) { argument
56 return new XMLNode(filename);
153 String8 filename; member in struct:XMLNode::ParseState
178 XMLNode(const String8& filename, const String16& s1, const String16& s2, bool isNamespace);
181 XMLNode(const String8& filename);
/frameworks/base/tools/aapt2/util/
H A DFiles.cpp135 StringPiece filename = getFilename(path); local
136 const char* const end = filename.end();
137 const char* c = std::find(filename.begin(), end, '.');
216 bool FileFilter::operator()(const std::string& filename, FileType type) const { argument
217 if (filename == "." || filename == "..") {
223 const size_t filenameLen = filename.length();
253 ignore = strncasecmp(tokenStr, filename.c_str() + filenameLen - n, n) == 0;
257 ignore = strncasecmp(tokenStr, filename.c_str(), n - 1) == 0;
259 ignore = strcasecmp(tokenStr, filename
[all...]
/frameworks/native/libs/input/
H A DKeyLayoutMap.cpp52 status_t KeyLayoutMap::load(const String8& filename, sp<KeyLayoutMap>* outMap) { argument
56 status_t status = Tokenizer::open(filename, &tokenizer);
58 ALOGE("Error %d opening key layout map file %s.", status, filename.string());

Completed in 834 milliseconds

1234