/frameworks/base/native/android/ |
D | storage_manager.cpp | 45 virtual void onObbResult(const android::String16& filename, const int32_t nonce, 120 void fireCallback(const char* filename, const int32_t nonce, const int32_t state) { in fireCallback() 136 target->cb(filename, state, target->data); in fireCallback() 139 ALOGI("Didn't find the callback handler for: %s\n", filename); in fireCallback() 166 …void unmountObb(const char* filename, const bool force, AStorageManager_obbCallbackFunc func, void… in unmountObb() 168 String16 filename16(filename); in unmountObb() 172 int isObbMounted(const char* filename) { in isObbMounted() 173 String16 filename16(filename); in isObbMounted() 177 const char* getMountedObbPath(const char* filename) { in getMountedObbPath() 178 String16 filename16(filename); in getMountedObbPath() [all …]
|
/frameworks/base/tools/bit/ |
D | util.cpp | 36 FileInfo::FileInfo(const string& filename) in FileInfo() argument 39 int err = stat(filename.c_str(), &st); in FileInfo() 73 :filename(), in TrackedFile() 80 filename = that.filename; in TrackedFile() 85 :filename(file), in TrackedFile() 97 FileInfo updated(filename); in HasChanged() 118 string filename(name + "/" + entry->d_name); in get_directory_contents() local 119 (*results)[filename] = FileInfo(filename); in get_directory_contents() 231 read_file(const string& filename) in read_file() argument 233 FILE* file = fopen(filename.c_str(), "r"); in read_file() [all …]
|
D | util.h | 35 explicit FileInfo(const string& filename); 47 string filename; member 52 explicit TrackedFile(const string& filename); 80 string read_file(const string& filename); 82 bool is_executable(const string& filename); 84 string dirname(const string& filename); 85 string leafname(const string& filename);
|
D | make.cpp | 50 string filename(outDir); in make_cache_filename() local 51 return filename + "/.bit_cache"; in make_cache_filename() 172 json_error(const string& filename, const char* error, bool quiet) in json_error() argument 175 print_error("Unable to parse module info file (%s): %s", error, filename.c_str()); in json_error() 203 string filename(string(buildOut + "/target/product/") + device + "/module-info.json"); in read_modules() local 204 std::ifstream stream(filename, std::ifstream::binary); in read_modules() 208 print_error("Unable to open module info file: %s", filename.c_str()); in read_modules() 217 json_error(filename, "can't parse json format", quiet); in read_modules() 222 json_error(filename, "root element not an object", quiet); in read_modules()
|
/frameworks/base/tools/obbtool/ |
D | Main.cpp | 92 void doAdd(const char* filename, PackageInfo* info) { in doAdd() argument 94 if (obb->readFrom(filename)) { in doAdd() 95 fprintf(stderr, "ERROR: %s: OBB signature already present\n", filename); in doAdd() 106 if (!obb->writeTo(filename)) { in doAdd() 108 filename, strerror(errno)); in doAdd() 115 void doRemove(const char* filename) { in doRemove() argument 117 if (!obb->readFrom(filename)) { in doRemove() 118 fprintf(stderr, "ERROR: %s: no OBB signature present\n", filename); in doRemove() 122 if (!obb->removeFrom(filename)) { in doRemove() 123 fprintf(stderr, "ERROR: %s: couldn't remove OBB signature\n", filename); in doRemove() [all …]
|
/frameworks/base/tools/streaming_proto/ |
D | Errors.cpp | 18 :filename(that.filename), in Error() 25 :filename(f), in Error() 41 Errors::Add(const string& filename, int lineno, const char* format, ...) in Add() argument 45 AddImpl(filename, lineno, format, args); in Add() 50 Errors::AddImpl(const string& filename, int lineno, const char* format, va_list args) in AddImpl() argument 59 Error error(filename, lineno, buffer); in AddImpl() 69 if (it->filename == UNKNOWN_FILE) { in Print() 72 fprintf(stderr, "%s:%s", it->filename.c_str(), it->message.c_str()); in Print() 74 fprintf(stderr, "%s:%d:%s", it->filename.c_str(), it->lineno, it->message.c_str()); in Print()
|
D | Errors.h | 15 Error(const string& filename, int lineno, const char* message); 17 string filename; member 29 void Add(const string& filename, int lineno, const char* format, ...); 39 void AddImpl(const string& filename, int lineno, const char* format, va_list ap);
|
/frameworks/base/tools/validatekeymaps/ |
D | Main.cpp | 68 static FileType getFileType(const char* filename) { in getFileType() argument 69 const char *extension = strrchr(filename, '.'); in getFileType() 82 if (strstr(filename, "virtualkeys.")) { in getFileType() 89 static bool validateFile(const char* filename) { in validateFile() argument 90 log("Validating file '%s'...\n", filename); in validateFile() 92 FileType fileType = getFileType(filename); in validateFile() 100 status_t status = KeyLayoutMap::load(filename, &map); in validateFile() 110 status_t status = KeyCharacterMap::load(filename, in validateFile() 121 status_t status = PropertyMap::load(String8(filename), &map); in validateFile() 131 std::unique_ptr<VirtualKeyMap> map = VirtualKeyMap::load(filename); in validateFile()
|
/frameworks/base/core/java/android/webkit/ |
D | URLUtil.java | 309 String filename = null; in guessFileName() local 313 if (filename == null && contentDisposition != null) { in guessFileName() 314 filename = parseContentDisposition(contentDisposition); in guessFileName() 315 if (filename != null) { in guessFileName() 316 int index = filename.lastIndexOf('/') + 1; in guessFileName() 318 filename = filename.substring(index); in guessFileName() 324 if (filename == null) { in guessFileName() 335 filename = decodedUrl.substring(index); in guessFileName() 342 if (filename == null) { in guessFileName() 343 filename = "downloadfile"; in guessFileName() [all …]
|
D | MimeTypeMap.java | 59 String filename = in getFileExtensionFromUrl() local 64 if (!filename.isEmpty() && in getFileExtensionFromUrl() 65 Pattern.matches("[a-zA-Z_0-9\\.\\-\\(\\)\\%]+", filename)) { in getFileExtensionFromUrl() 66 int dotPos = filename.lastIndexOf('.'); in getFileExtensionFromUrl() 68 return filename.substring(dotPos + 1); in getFileExtensionFromUrl() 140 String filename = null; in remapGenericMimeType() local 142 filename = URLUtil.parseContentDisposition(contentDisposition); in remapGenericMimeType() 144 if (filename != null) { in remapGenericMimeType() 145 url = filename; in remapGenericMimeType()
|
/frameworks/base/telephony/common/com/google/android/mms/util/ |
D | DownloadDrmHelper.java | 77 public static String modifyDrmFwLockFileExtension(String filename) { in modifyDrmFwLockFileExtension() argument 78 if (filename != null) { in modifyDrmFwLockFileExtension() 80 extensionIndex = filename.lastIndexOf("."); in modifyDrmFwLockFileExtension() 82 filename = filename.substring(0, extensionIndex); in modifyDrmFwLockFileExtension() 84 filename = filename.concat(EXTENSION_INTERNAL_FWDL); in modifyDrmFwLockFileExtension() 86 return filename; in modifyDrmFwLockFileExtension()
|
/frameworks/base/tools/hiddenapi/ |
D | generate_hiddenapi_lists.py | 136 def read_lines(filename): argument 147 with open(filename, 'r') as f: 154 def write_lines(filename, lines): argument 162 with open(filename, 'w') as f: 345 for filename in args["csv"]: 346 flags.parse_and_merge_csv(read_lines(filename), filename) 354 for filename in args[flag]: 355 flags.assign_flag(flag, read_lines(filename), filename) 363 for filename in args[flag + FLAG_IGNORE_CONFLICTS_SUFFIX]: 364 valid_entries = flags.get_valid_subset_of_unassigned_apis(read_lines(filename)) [all …]
|
/frameworks/native/opengl/tools/glgen2/registry/ |
D | genheaders.py | 271 filename = 'GL/glext.h', 290 filename = 'GL/glcorearb.h', 309 filename = 'GLES/gl.h', 328 filename = 'GLES/glext.h', 347 filename = 'GLES2/gl2.h', 366 filename = 'GLES2/gl2ext.h', 385 filename = 'GLES3/gl31.h', 404 filename = 'GLES3/gl3.h', 423 filename = 'EGL/egl.h', 442 filename = 'EGL/eglext.h', [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
D | StorageManagerBaseTest.java | 350 protected void doValidateIntContents(String path, String filename, int start, int end) { in doValidateIntContents() argument 351 File inFile = new File(path, filename); in doValidateIntContents() 353 Log.i(LOG_TAG, "Validating file " + filename + " at " + path); in doValidateIntContents() 365 Log.i(LOG_TAG, "Successfully validated file " + filename); in doValidateIntContents() 380 protected void doValidateTextContents(String path, String filename, String contents) { in doValidateTextContents() argument 381 File inFile = new File(path, filename); in doValidateTextContents() 384 Log.i(LOG_TAG, "Validating file " + filename + " at " + path); in doValidateTextContents() 393 fail("File " + filename + " in OBB " + path + " does not match expected value"); in doValidateTextContents() 398 Log.i(LOG_TAG, "File " + filename + " successfully verified."); in doValidateTextContents() 415 protected void doValidateZeroLongFile(String path, String filename, long size, in doValidateZeroLongFile() argument [all …]
|
/frameworks/av/services/audioflinger/ |
D | NBAIO_Tee.cpp | 117 const std::string &filename); 203 std::string filename = audioFileHandler.create( in dumpTee() local 220 if (fd >= 0 && filename.size() > 0) { in dumpTee() 221 dprintf(fd, "tee wrote to %s\n", filename.c_str()); in dumpTee() 261 const std::string filename = generateFilename(suffix); in create() local 263 if (mThreadPool.launch(std::string("create ") + filename, in create() 264 [=]() { return createInternal(reader, sampleRate, channelCount, format, filename); }) in create() 266 return filename; in create() 369 const std::string &filename = it->first; in launch() local 373 ALOGV("%s: future %s ready", __func__, filename.c_str()); in launch() [all …]
|
/frameworks/native/include/android/ |
D | storage_manager.h | 123 typedef void (*AStorageManager_obbCallbackFunc)(const char* filename, const int32_t state, void* da… 128 void AStorageManager_mountObb(AStorageManager* mgr, const char* filename, const char* key, 134 void AStorageManager_unmountObb(AStorageManager* mgr, const char* filename, const int force, 140 int AStorageManager_isObbMounted(AStorageManager* mgr, const char* filename); 145 const char* AStorageManager_getMountedObbPath(AStorageManager* mgr, const char* filename);
|
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
D | DownloadManagerTestApp.java | 126 String filename = DOWNLOAD_FILENAME; in initiateDownload() local 138 Uri remoteUri = getExternalFileUri(filename); in initiateDownload() 162 String filename = DOWNLOAD_FILENAME; in verifyFileDownloadSucceeded() local 221 String filename = DOWNLOAD_FILENAME; in runLargeDownloadOverWiFi() local 229 Uri remoteUri = getExternalFileUri(filename); in runLargeDownloadOverWiFi() 263 String filename = DOWNLOAD_FILENAME; in runDownloadMultipleSwitching() local 268 File downloadedFile = new File(localDownloadDirectory, filename); in runDownloadMultipleSwitching() 277 Uri remoteUri = getExternalFileUri(filename); in runDownloadMultipleSwitching() 340 String filename = DOWNLOAD_FILENAME; in runDownloadMultipleWiFiEnableDisable() local 345 File downloadedFile = new File(localDownloadDirectory, filename); in runDownloadMultipleWiFiEnableDisable() [all …]
|
/frameworks/layoutlib/rename_font/ |
D | build_font.py | 76 for filename in files: 77 os.remove(filename) 82 for filename in filenames: 83 input_path = os.path.join(dirname, filename) 84 extension = os.path.splitext(filename)[1].lower() 98 filename = os.path.basename(input_path) 99 print('Converting font: ' + filename) 101 ttx_path = os.path.join(dest_dir, filename) 119 print(filename + ' is not a valid font') 122 print('Error converting font: ' + filename)
|
/frameworks/base/services/core/java/com/android/server/ |
D | RandomBlock.java | 41 static RandomBlock fromFile(String filename) throws IOException { in fromFile() argument 42 if (DEBUG) Slog.v(TAG, "reading from file " + filename); in fromFile() 45 stream = new FileInputStream(filename); in fromFile() 65 void toFile(String filename, boolean sync) throws IOException { in toFile() argument 66 if (DEBUG) Slog.v(TAG, "writing to file " + filename); in toFile() 69 out = new RandomAccessFile(filename, sync ? "rws" : "rw"); in toFile()
|
/frameworks/base/cmds/backup/ |
D | backup.cpp | 52 static int perform_list(const char* filename) in perform_list() argument 57 fd = open(filename, O_RDONLY); in perform_list() 59 fprintf(stderr, "Error opening: %s\n", filename); in perform_list() 95 static int perform_print(const char* entityname, const char* filename) in perform_print() argument 97 printf("perform_print(%s, %s);", entityname, filename); in perform_print()
|
/frameworks/base/startop/view_compiler/ |
D | util.cc | 25 string FindLayoutNameFromFilename(const string& filename) { in FindLayoutNameFromFilename() argument 26 size_t start = filename.rfind('/'); in FindLayoutNameFromFilename() 32 size_t end = filename.find('.', start); in FindLayoutNameFromFilename() 34 return filename.substr(start, end - start); in FindLayoutNameFromFilename()
|
/frameworks/base/libs/androidfw/ |
D | ObbFile.cpp | 86 bool ObbFile::readFrom(const char* filename) in readFrom() argument 91 fd = ::open(filename, O_RDONLY); in readFrom() 93 ALOGW("couldn't open file %s: %s", filename, strerror(errno)); in readFrom() 100 ALOGW("failed to read from %s (fd=%d)\n", filename, fd); in readFrom() 226 bool ObbFile::writeTo(const char* filename) in writeTo() argument 231 fd = ::open(filename, O_WRONLY); in writeTo() 240 ALOGW("failed to write to %s: %s\n", filename, strerror(errno)); in writeTo() 311 bool ObbFile::removeFrom(const char* filename) in removeFrom() argument 316 fd = ::open(filename, O_RDWR); in removeFrom() 325 ALOGW("failed to remove signature from %s: %s\n", filename, strerror(errno)); in removeFrom()
|
D | BackupHelpers.cpp | 116 char* filename = nameBufSize <= (int)sizeof(filenameBuf) in read_snapshot_file() local 119 amt = read(fd, filename, nameBufSize); in read_snapshot_file() 121 snapshot->add(String8(filename, file.nameLen), file); in read_snapshot_file() 124 if (filename != filenameBuf) { in read_snapshot_file() 125 free(filename); in read_snapshot_file() 742 RestoreHelperBase::WriteFile(const String8& filename, BackupDataReader* in) in WriteFile() argument 765 ALOGW("Could not read metadata for %s -- %ld / %s", filename.string(), in WriteFile() 782 fd = open(filename.string(), O_CREAT|O_RDWR|O_TRUNC, mode); in WriteFile() 784 ALOGW("Could not open file %s -- %s", filename.string(), strerror(errno)); in WriteFile() 792 ALOGW("Error '%s' writing '%s'", strerror(errno), filename.string()); in WriteFile() [all …]
|
/frameworks/av/media/libdatasource/ |
D | FileSource.cpp | 32 FileSource::FileSource(const char *filename) in FileSource() argument 38 if (filename) { in FileSource() 39 mName = String8::format("FileSource(%s)", filename); in FileSource() 41 ALOGV("%s", filename); in FileSource() 42 mFd = open(filename, O_LARGEFILE | O_RDONLY); in FileSource() 47 ALOGE("Failed to open file '%s'. (%s)", filename, strerror(errno)); in FileSource()
|
/frameworks/base/tools/aapt/ |
D | XMLNode.h | 45 sp<XMLNode> newNamespace(const String8& filename, const String16& prefix, const String16& uri) { in newNamespace() argument 46 return new XMLNode(filename, prefix, uri, true); in newNamespace() 50 sp<XMLNode> newElement(const String8& filename, const String16& ns, const String16& name) { in newElement() argument 51 return new XMLNode(filename, ns, name, false); in newElement() 55 sp<XMLNode> newCData(const String8& filename) { in newCData() argument 56 return new XMLNode(filename); in newCData() 153 String8 filename; member 178 XMLNode(const String8& filename, const String16& s1, const String16& s2, bool isNamespace); 181 explicit XMLNode(const String8& filename);
|