/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/ |
D | write_controller.cpp | 41 EventLimitStat stat = lruCache.Get(key); in CheckLimitWritingEvent() local 42 if (!stat.IsValid()) { in CheckLimitWritingEvent() 43 stat.count = 1; in CheckLimitWritingEvent() 44 lruCache.Put(key, stat); in CheckLimitWritingEvent() 49 if ((stat.begin.tv_sec + static_cast<time_t>(param.period) < cur.tv_sec) || in CheckLimitWritingEvent() 50 (stat.begin.tv_sec > cur.tv_sec)) { in CheckLimitWritingEvent() 51 stat.count = 1; in CheckLimitWritingEvent() 52 stat.begin = cur; in CheckLimitWritingEvent() 53 lruCache.Put(key, stat); in CheckLimitWritingEvent() 56 stat.count++; in CheckLimitWritingEvent() [all …]
|
/base/theme/wallpaper_mgr/utils/dfx/hisysevent_adapter/ |
D | statistic_reporter.cpp | 42 void StatisticReporter::ReportUsageTimeStatistic(int userId, const UsageTimeStat &stat) in ReportUsageTimeStatistic() argument 48 int nDiff = stat.startTime - timeStat.startTime; in ReportUsageTimeStatistic() 50 iter->second.push_back(stat); in ReportUsageTimeStatistic() 53 vecUsageTime.push_back(stat); in ReportUsageTimeStatistic() 119 for (auto const &stat : vecUsageTime) { in InvokeUsageTime() local 120 std::string cumulativeTime(stat.cumulativeTime); in InvokeUsageTime() 122 int nDiff = curTime - stat.startTime; in InvokeUsageTime() 127 .append(":" + stat.packagesName + ",") in InvokeUsageTime()
|
/base/startup/init/test/unittest/init/ |
D | cmds_unittest.cpp | 108 struct stat info = {}; 109 stat(testFile, &info); 116 stat(testFile, &info); 128 struct stat info; 129 stat(testFile, &info); 134 stat(testFile, &info); 293 INIT_TIMING_STAT stat; variable 294 stat.startTime.tv_sec = 2; // 2 is test sec 295 stat.startTime.tv_nsec = 1000; // 1000 is test nsec 297 stat.endTime.tv_sec = 3; // 3 is test sec [all …]
|
/base/security/dlp_permission_service/interfaces/inner_api/dlp_fuse/include/ |
D | dlp_link_file.h | 33 struct stat fileStat; 42 struct stat GetLinkStat(); 74 struct stat GetFileStat() in GetFileStat() 82 struct stat fileStat_;
|
D | fuse_daemon.h | 34 struct stat* entryStat; 52 static struct stat* GetRootFileStat(); 63 static struct stat rootFileStat_;
|
/base/startup/init/services/etc/param/ |
D | param_fixer.py | 20 import stat 71 modes = stat.S_IWUSR | stat.S_IRUSR | stat.S_IWGRP | stat.S_IRGRP
|
/base/hiviewdfx/hiview/plugins/usage_event_report/service/factory/ |
D | app_usage_event_factory.cpp | 112 for (auto stat : pkgStats) { in GetAppUsageInfosByUserId() local 113 std::string package = stat.bundleName_; in GetAppUsageInfosByUserId() 117 … uint64_t usage = stat.totalInFrontTime_ > 0 ? static_cast<uint64_t>(stat.totalInFrontTime_) : 0; in GetAppUsageInfosByUserId() 121 std::string version = GetAppVersion(stat.bundleName_); in GetAppUsageInfosByUserId() 122 appUsageInfos.push_back(AppUsageInfo(stat.bundleName_, version, usage, dateStr)); in GetAppUsageInfosByUserId()
|
/base/hiviewdfx/hilog/services/hilogd/ |
D | main.cpp | 110 struct stat s; in RedirectStdStreamToLogFile() 111 if (stat(path.c_str(), &s) != -1) { in RedirectStdStreamToLogFile() 119 struct stat st; in RedirectStdStreamToLogFile() 120 if (stat(path, &st) == -1) { in RedirectStdStreamToLogFile() 173 struct stat s; in HilogdEntry() 174 if (stat(path.c_str(), &s) != -1) { in HilogdEntry()
|
/base/update/sys_installer/services/module_update/util/src/ |
D | module_utils.cpp | 40 struct stat statData; in CreateDirIfNeeded() 42 if (stat(path.c_str(), &statData) != 0) { in CreateDirIfNeeded() 70 struct stat buffer; in CheckPathExists() 71 return stat(path.c_str(), &buffer) == 0; in CheckPathExists() 120 struct stat buffer; in WaitForFile() 121 if (stat(path.c_str(), &buffer) != -1) { in WaitForFile()
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/utility/ |
D | file_util.cpp | 37 struct stat statBuf {}; in IsFile() 43 struct stat statBuf {}; in IsDirectory() 132 struct stat statBuf {}; in GetDirSize() 134 if (stat(file.c_str(), &statBuf) == 0) { in GetDirSize() 143 struct stat statBuf {}; in GetFileSize() 144 return stat(file.c_str(), &statBuf) == 0 ? static_cast<uint64_t>(statBuf.st_size) : 0; in GetFileSize()
|
/base/hiviewdfx/hiview/base/logstore/ |
D | log_file.cpp | 32 struct stat sb; in LogFile() 33 if ((fullPath.length() == 0) || (stat(fullPath.c_str(), &sb) == -1)) { in LogFile()
|
/base/startup/init/services/init/standard/ |
D | switch_root.c | 44 struct stat st = {}; in FreeOldRoot() 150 struct stat oldRootStat = {}; in SwitchRoot() 151 INIT_ERROR_CHECK(stat("/", &oldRootStat) == 0, return -1, "Failed to get old root \"/\" stat"); in SwitchRoot() 154 struct stat newRootStat = {}; in SwitchRoot() 155 if (stat(newRoot, &newRootStat) != 0) { in SwitchRoot()
|
/base/hiviewdfx/hiview/base/ |
D | audit.cpp | 127 struct stat sb; in IsActiveLogFileSizeReachTheashold() 128 if (stat(path.c_str(), &sb) == -1) { in IsActiveLogFileSizeReachTheashold() 137 struct stat originLogFileStat; in IsBackupFileActive() 138 if (stat(AUDIT_LOG_PATH, &originLogFileStat) == -1) { in IsBackupFileActive() 142 struct stat bakLogFileStat; in IsBackupFileActive() 143 if (stat(AUDIT_LOG_PATH_BAK, &bakLogFileStat) == -1) { in IsBackupFileActive()
|
/base/startup/init/services/modules/seccomp/scripts/tools/ |
D | audit_log_analysis.py | 22 import stat 71 modes = stat.S_IWUSR | stat.S_IRUSR | stat.S_IWGRP | stat.S_IRGRP
|
/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/ |
D | file_operator.cpp | 112 struct stat buf = {}; in IsExistFile() 113 if (stat(path.c_str(), &buf) != 0) { in IsExistFile() 127 struct stat buf = {}; in IsExistDir() 128 if (stat(path.c_str(), &buf) != 0) { in IsExistDir()
|
/base/startup/init/services/modules/bootchart/ |
D | bootchart.c | 123 char *stat = ReadFileToBuffer(path, g_bootchartCtrl->buffer, g_bootchartCtrl->bufferSize); in BootchartLogProcessStat() local 124 if (stat == NULL) { in BootchartLogProcessStat() 129 char *start = strstr(stat, "("); in BootchartLogProcessStat() 134 stat[start - stat + 1] = '\0'; in BootchartLogProcessStat() 135 (void)fputs(stat, log); in BootchartLogProcessStat() 139 (void)fputs(stat, log); in BootchartLogProcessStat() 142 (void)fputs(stat, log); in BootchartLogProcessStat()
|
/base/update/updater/utils/ |
D | utils.cpp | 89 struct stat info {}; in MkdirRecursive() 105 if (stat(subDir.c_str(), &info) != 0) { in MkdirRecursive() 123 struct stat sb {}; in GetFilesFromDirectory() 124 if (stat(path.c_str(), &sb) == -1) { in GetFilesFromDirectory() 133 struct stat st {}; in GetFilesFromDirectory() 134 if (stat(fileName.c_str(), &st) == 0) { in GetFilesFromDirectory() 327 struct stat sb {}; in ReadFileToString() 577 struct stat st {}; in IsUpdaterMode() 578 if (stat("/bin/updater", &st) == 0 && S_ISREG(st.st_mode)) { in IsUpdaterMode() 605 struct stat st {}; in RemoveDir() [all …]
|
/base/startup/init/services/etc/appender/ |
D | file_appender.py | 19 import stat 67 …with os.fdopen(os.open(options.output, os.O_RDWR | os.O_CREAT, stat.S_IWUSR | stat.S_IRUSR), 'w') …
|
/base/msdp/device_status/services/device_manager/src/ |
D | enumerator.cpp | 56 struct stat statbuf; in ScanAndAddDevices() 58 if (stat(devPath.c_str(), &statbuf) != 0) { in ScanAndAddDevices()
|
/base/account/os_account/frameworks/common/file_operator/src/ |
D | account_file_operator.cpp | 142 struct stat buf = {}; in IsExistFile() 143 if (stat(path.c_str(), &buf) != 0) { in IsExistFile() 176 struct stat buf = {}; in IsExistDir() 177 if (stat(path.c_str(), &buf) != 0) { in IsExistDir()
|
/base/update/updater/services/applypatch/ |
D | store.cpp | 66 struct stat fileStat {}; in CreateNewSpace() 68 if (stat(dirPath.c_str(), &fileStat) == -1) { in CreateNewSpace() 150 struct stat fileStat {}; in LoadDataFromStore() 151 if (stat(path.c_str(), &fileStat) == -1) { in LoadDataFromStore()
|
/base/startup/init/test/unittest/modules/ |
D | eng_unittest.cpp | 55 struct stat st {}; in RemoveDir() 57 stat(file_name.c_str(), &st); in RemoveDir() 75 struct stat st {}; in IsFileExist() 76 if (stat(path.c_str(), &st) == 0 && S_ISREG(st.st_mode)) { in IsFileExist() 87 struct stat st {}; in IsDirExist() 88 if (stat(path.c_str(), &st) == 0 && S_ISDIR(st.st_mode)) { in IsDirExist()
|
/base/hiviewdfx/hilog/interfaces/js/kits/napi/src/common/napi/ |
D | n_class.cpp | 31 napi_status stat = napi_define_class(env, className.c_str(), className.length(), constructor, in DefineClass() local 33 return { stat == napi_ok, classVal }; in DefineClass()
|
/base/security/security_component_manager/services/security_component_service/sa/sa_main/ |
D | first_use_dialog.cpp | 52 struct stat fstat = {}; in IsCfgDirExist() 53 if (stat(SEC_COMP_SRV_CFG_PATH.c_str(), &fstat) != 0) { in IsCfgDirExist() 67 struct stat fstat = {}; in IsCfgFileExist() 68 if (stat(FIRST_USE_RECORD_JSON.c_str(), &fstat) != 0) { in IsCfgFileExist() 77 struct stat fstat = {}; in IsCfgFileValid() 78 if (stat(FIRST_USE_RECORD_JSON.c_str(), &fstat) != 0) { in IsCfgFileValid()
|
/base/security/huks/utils/file_operator/ |
D | hks_file_operator_lite.c | 97 struct stat fileStat; in IsFileExist() 98 int32_t ret = stat(fileName, &fileStat); in IsFileExist() 138 struct stat fileStat; in FileSize() 140 if (stat(fileName, &fileStat) != 0) { in FileSize() 177 struct stat fileStat; in FileRemove() 178 int32_t ret = stat(fileName, &fileStat); in FileRemove() 289 struct stat fileStat; in HksRemoveDir() 290 int32_t ret = stat(dirPath, &fileStat); in HksRemoveDir()
|