/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() 163 …void unmountObb(const char* filename, const bool force, AStorageManager_obbCallbackFunc func, void… in unmountObb() 165 String16 filename16(filename); in unmountObb() 169 int isObbMounted(const char* filename) { in isObbMounted() 170 String16 filename16(filename); in isObbMounted() 174 const char* getMountedObbPath(const char* filename) { in getMountedObbPath() 175 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 | 37 explicit FileInfo(const string& filename); 49 string filename; member 54 explicit TrackedFile(const string& filename); 82 string read_file(const string& filename); 84 bool is_executable(const string& filename); 86 string dirname(const string& filename); 87 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() 173 json_error(const string& filename, const char* error, bool quiet) in json_error() argument 176 print_error("Unable to parse module info file (%s): %s", error, filename.c_str()); in json_error() 204 string filename(string(buildOut + "/target/product/") + device + "/module-info.json"); in read_modules() local 205 std::ifstream stream(filename, std::ifstream::binary); in read_modules() 209 print_error("Unable to open module info file: %s", filename.c_str()); in read_modules() 218 json_error(filename, "can't parse json format", quiet); in read_modules() 223 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/core/java/android/webkit/ |
D | URLUtil.java | 360 String filename = null; in guessFileNameRfc2616() local 365 filename = parseContentDispositionRfc2616(contentDisposition); in guessFileNameRfc2616() 366 if (filename != null) { in guessFileNameRfc2616() 367 int index = filename.lastIndexOf('/') + 1; in guessFileNameRfc2616() 369 filename = filename.substring(index); in guessFileNameRfc2616() 375 if (filename == null) { in guessFileNameRfc2616() 386 filename = decodedUrl.substring(index); in guessFileNameRfc2616() 393 if (filename == null) { in guessFileNameRfc2616() 394 filename = "downloadfile"; in guessFileNameRfc2616() 399 int dotIndex = filename.indexOf('.'); in guessFileNameRfc2616() [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/tools/validatekeymaps/ |
D | Main.cpp | 78 static FileType getFileType(const char* filename) { in getFileType() argument 79 const char *extension = strrchr(filename, '.'); in getFileType() 92 if (strstr(filename, "virtualkeys.")) { in getFileType() 102 static bool validateKeyLayoutFileName(const std::string& filename) { in validateKeyLayoutFileName() argument 118 if (containsSubstringCaseInsensitive(filename, filenameSubstr)) { in validateKeyLayoutFileName() 119 error("You are trying to add a key layout %s, which matches %s. ", filename.c_str(), in validateKeyLayoutFileName() 129 static bool validateFile(const char* filename) { in validateFile() argument 130 log("Validating file '%s'...\n", filename); in validateFile() 132 FileType fileType = getFileType(filename); in validateFile() 139 if (!validateKeyLayoutFileName(filename)) { in validateFile() [all …]
|
/frameworks/base/tools/streaming_proto/ |
D | Errors.cpp | 19 :filename(that.filename), in Error() 26 :filename(f), in Error() 42 Errors::Add(const string& filename, int lineno, const char* format, ...) in Add() argument 46 AddImpl(filename, lineno, format, args); in Add() 51 Errors::AddImpl(const string& filename, int lineno, const char* format, va_list args) in AddImpl() argument 60 Error error(filename, lineno, buffer); in AddImpl() 70 if (it->filename == UNKNOWN_FILE) { in Print() 73 fprintf(stderr, "%s:%s", it->filename.c_str(), it->message.c_str()); in Print() 75 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/telephony/common/com/google/android/mms/util/ |
D | DownloadDrmHelper.java | 78 public static String modifyDrmFwLockFileExtension(String filename) { in modifyDrmFwLockFileExtension() argument 79 if (filename != null) { in modifyDrmFwLockFileExtension() 81 extensionIndex = filename.lastIndexOf("."); in modifyDrmFwLockFileExtension() 83 filename = filename.substring(0, extensionIndex); in modifyDrmFwLockFileExtension() 85 filename = filename.concat(EXTENSION_INTERNAL_FWDL); in modifyDrmFwLockFileExtension() 87 return filename; in modifyDrmFwLockFileExtension()
|
D | DrmConvertSession.java | 134 public int close(String filename) { in close() argument 147 rndAccessFile = new RandomAccessFile(filename, "rw"); in close() 153 Log.w(TAG, "File: " + filename + " could not be found.", e); in close() 156 Log.w(TAG, "Could not access File: " + filename + " .", e); in close() 161 Log.w(TAG, "Access to File: " + filename + in close() 169 Log.w(TAG, "Failed to close File:" + filename in close()
|
/frameworks/native/include/android/ |
D | storage_manager.h | 123 typedef void (*AStorageManager_obbCallbackFunc)(const char* filename, const int32_t state, void* da… 134 void AStorageManager_mountObb(AStorageManager* mgr, const char* filename, const char* key, 140 void AStorageManager_unmountObb(AStorageManager* mgr, const char* filename, const int force, 146 int AStorageManager_isObbMounted(AStorageManager* mgr, const char* filename); 151 const char* AStorageManager_getMountedObbPath(AStorageManager* mgr, const char* filename);
|
/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/java/android/app/pinner/ |
D | PinnedFileStat.java | 33 private String filename; field in PinnedFileStat 52 return filename; in getFilename() 69 public PinnedFileStat(@NonNull String filename, long bytesPinned, @NonNull String groupName) { in PinnedFileStat() argument 70 this.filename = filename; in PinnedFileStat() 86 dest.writeString8(filename); in writeToParcel() 92 filename = source.readString8(); in readFromParcel()
|
/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/av/services/audioflinger/afutils/ |
D | NBAIO_Tee.cpp | 118 const std::string &filename); 203 const 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() 263 std::string filename = generateFilename(suffix, format); in create() local 265 if (mThreadPool.launch(std::string("create ") + filename, in create() 266 [=]() { return createInternal(reader, sampleRate, channelCount, format, filename); }) in create() 268 return filename; in create() 371 const std::string &filename = it->first; in launch() local 375 ALOGV("%s: future %s ready", __func__, filename.c_str()); in launch() [all …]
|
/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/base/core/tests/coretests/src/android/os/storage/ |
D | StorageManagerBaseTest.java | 391 protected void doValidateIntContents(String path, String filename, int start, int end) { in doValidateIntContents() argument 392 File inFile = new File(path, filename); in doValidateIntContents() 394 Log.i(LOG_TAG, "Validating file " + filename + " at " + path); in doValidateIntContents() 406 Log.i(LOG_TAG, "Successfully validated file " + filename); in doValidateIntContents() 421 protected void doValidateTextContents(String path, String filename, String contents) { in doValidateTextContents() argument 422 File inFile = new File(path, filename); in doValidateTextContents() 425 Log.i(LOG_TAG, "Validating file " + filename + " at " + path); in doValidateTextContents() 434 fail("File " + filename + " in OBB " + path + " does not match expected value"); in doValidateTextContents() 439 Log.i(LOG_TAG, "File " + filename + " successfully verified."); in doValidateTextContents() 456 protected void doValidateZeroLongFile(String path, String filename, long size, in doValidateZeroLongFile() argument [all …]
|
/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 | 120 char* filename = nameBufSize <= (int)sizeof(filenameBuf) in read_snapshot_file() local 123 amt = read(fd, filename, nameBufSize); in read_snapshot_file() 125 snapshot->add(String8(filename, file.nameLen), file); in read_snapshot_file() 128 if (filename != filenameBuf) { in read_snapshot_file() 129 free(filename); in read_snapshot_file() 747 RestoreHelperBase::WriteFile(const String8& filename, BackupDataReader* in) in WriteFile() argument 770 ALOGW("Could not read metadata for %s -- %ld / %s", filename.c_str(), in WriteFile() 787 fd = open(filename.c_str(), O_CREAT|O_RDWR|O_TRUNC, mode); in WriteFile() 789 ALOGW("Could not open file %s -- %s", filename.c_str(), strerror(errno)); in WriteFile() 797 ALOGW("Error '%s' writing '%s'", strerror(errno), filename.c_str()); 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/cmds/screencap/ |
D | screencap.cpp | 321 std::string_view filename = { argv[0] }; in main() local 322 if (filename.ends_with(".png")) { in main() 323 baseName = filename.substr(0, filename.size()-4); in main() 327 baseName = filename; in main() 373 std::string filename; in main() local 375 filename = baseName; in main() 377 filename += "_"; in main() 378 filename += std::to_string(i); in main() 380 filename += suffix; in main() 383 if (!filename.empty()) { in main() [all …]
|
/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);
|
/frameworks/native/vulkan/libvulkan/ |
D | layers_extensions.cpp | 72 const std::string& filename) in LayerLibrary() argument 74 filename_(filename), in LayerLibrary() 344 void AddLayerLibrary(const std::string& path, const std::string& filename) { in AddLayerLibrary() argument 345 LayerLibrary library(path + "/" + filename, filename); in AddLayerLibrary() 402 std::string filename(name.substr(prefix.length())); in ForEachFileInZip() local 404 if (filename.find('/') != filename.npos) in ForEachFileInZip() 412 functor(filename); in ForEachFileInZip() 434 ForEachFileInPath(path, [&](const std::string& filename) { in DiscoverLayersInPathList() argument 435 if (android::base::StartsWith(filename, "libVkLayer") && in DiscoverLayersInPathList() 436 android::base::EndsWith(filename, ".so")) { in DiscoverLayersInPathList() [all …]
|