Home
last modified time | relevance | path

Searched refs:d_name (Results 1 – 18 of 18) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dfile_utils.cpp71 if (strcmp(dirent->d_name, ".") == 0 || strcmp(dirent->d_name, "..") == 0) { in removeDirAndFiles()
74 const int filePathBufSize = getFilePathBufSize(dirPath, dirent->d_name); in removeDirAndFiles()
76 getFilePath(dirPath, dirent->d_name, filePathBufSize, filePath); in removeDirAndFiles()
/packages/modules/Bluetooth/system/bta/gatt/
Dbta_gattc_db_storage.cc399 if (strncmp(".", dp->d_name, 1) == 0 || strncmp("..", dp->d_name, 2) == 0) { in bta_gattc_hash_remove_least_recently_used_if_possible()
404 size_t fname_len = strlen(dp->d_name); in bta_gattc_hash_remove_least_recently_used_if_possible()
412 strncpy(tmp, dp->d_name, pattern_len); in bta_gattc_hash_remove_least_recently_used_if_possible()
421 snprintf(tmp, 255, "%s/%s", GATT_HASH_PATH, dp->d_name); in bta_gattc_hash_remove_least_recently_used_if_possible()
425 log::debug("name={}, result={}, linknum={}, mtime={}", dp->d_name, result, in bta_gattc_hash_remove_least_recently_used_if_possible()
/packages/modules/StatsD/statsd/src/storage/
DStorageManager.cpp85 char* fileName = de->d_name; in findTrainInfoFileNameLocked()
446 char* name = de->d_name; in readAllTrainInfo()
478 char* name = de->d_name; in deleteAllFiles()
493 char* name = de->d_name; in deleteSuffixedFiles()
515 char* name = de->d_name; in sendBroadcast()
537 char* name = de->d_name; in hasConfigMetricsReport()
564 char* name = de->d_name; in appendConfigMetricsReport()
626 char* name = de->d_name; in readConfigFromDisk()
666 char* name = de->d_name; in readConfigFromDisk()
734 char* name = de->d_name; in trimToFit()
[all …]
/packages/providers/MediaProvider/jni/
DMediaProviderWrapper.cpp146 ScopedUtfChars d_name(env, j_d_name.get()); in getFilesInDirectoryInternal() local
147 if (d_name.c_str() == nullptr) { in getFilesInDirectoryInternal()
151 } else if (d_name.c_str()[0] == '\0') { in getFilesInDirectoryInternal()
161 ScopedUtfChars d_name(env, j_d_name.get()); in getFilesInDirectoryInternal() local
163 if (d_name.c_str() == nullptr) { in getFilesInDirectoryInternal()
169 directory_entries.push_back(std::make_shared<DirectoryEntry>(d_name.c_str(), DT_REG)); in getFilesInDirectoryInternal()
386 if (res_size && res[0]->d_name[0] == '/') { in GetDirectoryEntries()
390 } else if (res_size == 0 || !res[0]->d_name.empty()) { in GetDirectoryEntries()
DReaddirHelper.cpp52 if (is_dot_or_dotdot(entry->d_name)) continue; in addDirectoryEntriesFromLowerFs()
55 std::make_shared<DirectoryEntry>(entry->d_name, entry->d_type)); in addDirectoryEntriesFromLowerFs()
DFuseDaemon.cpp1956 if (num_directory_entries && h->de[0]->d_name.empty()) { in do_readdir_common()
1968 if (do_lookup(req, ino, de->d_name.c_str(), &e, &error_code, FuseOp::readdir, false)) { in do_readdir_common()
1969 entry_size = fuse_add_direntry_plus(req, buf + used, len - used, de->d_name.c_str(), in do_readdir_common()
1983 LOG(WARNING) << "Handling plain readdir for " << de->d_name << ". Invalid d_ino"; in do_readdir_common()
1986 entry_size = fuse_add_direntry(req, buf + used, len - used, de->d_name.c_str(), &e.attr, in do_readdir_common()
/packages/providers/MediaProvider/jni/include/libfuse_jni/
DReaddirHelper.h41 DirectoryEntry(const std::string& name, int type) : d_name(name), d_type(type) {} in DirectoryEntry()
42 const std::string d_name; member
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/
DUtils.cpp40 if (de->d_name[0] == '.') continue; in getIfaceNames()
41 ifaceNames.push_back(std::string(de->d_name)); in getIfaceNames()
/packages/modules/adb/client/
Dusb_linux.cpp140 if (contains_non_digit(de->d_name)) continue; in find_usb_device()
142 std::string bus_name = base + "/" + de->d_name; in find_usb_device()
158 if (contains_non_digit(de->d_name)) continue; in find_usb_device()
160 std::string dev_name = bus_name + "/" + de->d_name; in find_usb_device()
Dfile_sync_client.cpp1300 if (IsDotOrDotDot(de->d_name)) { in local_build_list()
1304 std::string stat_path = lpath + de->d_name; in local_build_list()
1313 copyinfo ci(lpath, rpath, de->d_name, st.st_mode); in local_build_list()
Dauth.cpp186 std::string name = dent->d_name; in load_keys()
/packages/services/Car/libs/procfs-inspector/server/
Ddirectory.cpp66 return Entry(mPath, entry->d_name); in next()
/packages/modules/adb/daemon/
Dfile_sync_service.cpp214 std::string filename(StringPrintf("%s/%s", path, de->d_name)); in do_list()
239 size_t d_name_length = strlen(de->d_name); in do_list()
243 !WriteFdExactly(s, de->d_name, d_name_length)) { in do_list()
/packages/services/Car/cpp/evs/sampleDriver/hidl/
DEvsEnumerator.cpp177 if (strncmp(entry->d_name, "video", 5) == 0) { in enumerateCameras()
179 deviceName += entry->d_name; in enumerateCameras()
/packages/modules/Connectivity/netbpfload/
DNetBpfLoad.cpp107 string s = ent->d_name; in loadAllElfObjects()
/packages/services/Car/cpp/watchdog/server/src/
DUidProcStatsCollector.cpp499 if (pidDir->d_type != DT_DIR || !ParseInt(pidDir->d_name, &pid)) { in readUidProcStatsLocked()
609 if (tidDir->d_type != DT_DIR || !ParseInt(tidDir->d_name, &tid)) { in readProcessStatsLocked()
/packages/services/Car/cpp/evs/sampleDriver/aidl/src/
DEvsEnumerator.cpp221 if (strncmp(entry->d_name, "video", 5) == 0) { in enumerateCameras()
223 deviceName += entry->d_name; in enumerateCameras()
/packages/modules/adb/
Dsysdeps_win32.cpp2527 if (!android::base::WideToUTF8(went->d_name, &name_utf8)) { in adb_readdir()
2535 if (name_utf8.length() + 1 > sizeof(went->d_name)) { in adb_readdir()
2549 strcpy(ent->d_name, name_utf8.c_str()); in adb_readdir()