/base/telephony/telephony_data/common/include/ |
H A D | time_util.h | 24 void FormatDate(std::string &date, const tm *ltm) in FormatDate() argument 35 date.append(std::to_string(year)); in FormatDate() 36 date.append("-"); in FormatDate() 38 date.append("0"); in FormatDate() 40 date.append(std::to_string(month)); in FormatDate() 41 date.append("-"); in FormatDate() 43 date.append("0"); in FormatDate() 45 date.append(std::to_string(day)); in FormatDate() 46 date.append(" "); in FormatDate() 48 date in FormatDate() 64 GetCurrentTime(std::string &date) GetCurrentTime() argument 79 GetTimeOfThirty(std::string &date) GetTimeOfThirty() argument [all...] |
/base/global/i18n/frameworks/intl/include/ |
H A D | i18n_calendar.h | 52 void Set(int32_t year, int32_t month, int32_t date);
63 bool IsWeekend(int64_t date, UErrorCode &status);
66 int32_t CompareDays(UDate date);
|
/base/hiviewdfx/hiview/plugins/usage_event_report/service/factory/include/ |
H A D | app_usage_event_factory.h | 27 const std::string& date, uint32_t startNum)
in AppUsageInfo() 28 : package_(package), version_(version), usage_(usage), date_(date), startNum_(startNum)
in AppUsageInfo()
|
/base/global/i18n/frameworks/intl/test/fuzztest/timezone_fuzzer/ |
H A D | timezone_fuzzer.cpp | 36 double date = *(reinterpret_cast<const double*>(data + offset)); in DoSomethingInterestingWithMyAPI() local 37 timezone.GetOffset(date); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/core/src/ |
H A D | ans_manager_proxy_disturb.cpp | 30 ErrCode AnsManagerProxy::SetDoNotDisturbDate(const sptr<NotificationDoNotDisturbDate> &date) in SetDoNotDisturbDate() argument 32 if (date == nullptr) { in SetDoNotDisturbDate() 33 ANS_LOGE("[SetDoNotDisturbDate] fail: date is empty."); in SetDoNotDisturbDate() 43 if (!data.WriteParcelable(date)) { in SetDoNotDisturbDate() 44 ANS_LOGE("[SetDoNotDisturbDate] fail: write date failed"); in SetDoNotDisturbDate() 64 ErrCode AnsManagerProxy::GetDoNotDisturbDate(sptr<NotificationDoNotDisturbDate> &date) in GetDoNotDisturbDate() argument 86 date = reply.ReadParcelable<NotificationDoNotDisturbDate>(); in GetDoNotDisturbDate() 87 if (date == nullptr) { in GetDoNotDisturbDate() 88 ANS_LOGE("[GetDoNotDisturbDate] fail: read date error."); in GetDoNotDisturbDate() 192 ErrCode AnsManagerProxy::SetDoNotDisturbDate(const int32_t &userId, const sptr<NotificationDoNotDisturbDate> &date) in SetDoNotDisturbDate() argument 231 GetDoNotDisturbDate(const int32_t &userId, sptr<NotificationDoNotDisturbDate> &date) GetDoNotDisturbDate() argument [all...] |
H A D | ans_manager_proxy_reminder.cpp | 162 ErrCode AnsManagerProxy::AddExcludeDate(const int32_t reminderId, const uint64_t date) in AddExcludeDate() argument 174 if (!data.WriteUint64(date)) { in AddExcludeDate() 175 ANSR_LOGE("[AddExcludeDate] fail: write exclude date failed"); in AddExcludeDate() 242 ANSR_LOGE("[GetExcludeDates] fail: read exclude date count failed."); in GetExcludeDates() 248 uint64_t date = 0; in GetExcludeDates() local 249 if (!reply.ReadUint64(date)) { in GetExcludeDates() 250 ANSR_LOGE("[GetExcludeDates] fail: read exclude date"); in GetExcludeDates() 253 dates.push_back(date); in GetExcludeDates()
|
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/ |
H A D | ark_ohos_resource_adapter_impl.cpp | 50 const ArkWebString& rawFile, uint16_t& date, uint16_t& time, bool isSys) in GetRawFileLastModTime() 52 return real_->GetRawFileLastModTime(ArkWebStringStructToClass(rawFile), date, time, isSys); in GetRawFileLastModTime() 49 GetRawFileLastModTime( const ArkWebString& rawFile, uint16_t& date, uint16_t& time, bool isSys) GetRawFileLastModTime() argument
|
/base/telephony/sms_mms/frameworks/js/napi/include/ |
H A D | napi_mms.h | 80 int64_t date = 0; member 117 int64_t date = 0; member 140 int64_t date = 0; member 151 int64_t date = 0; member 160 int64_t date = 0; member
|
/base/global/i18n/frameworks/intl/src/ |
H A D | i18n_calendar.cpp | 197 void I18nCalendar::Set(int32_t year, int32_t month, int32_t date)
in Set() argument 201 icuCalendar->set(year, month, date);
in Set() 283 bool I18nCalendar::IsWeekend(int64_t date, UErrorCode &status)
in IsWeekend() argument 287 return icuCalendar->isWeekend(date, status);
in IsWeekend() 327 int32_t I18nCalendar::CompareDays(UDate date)
in CompareDays() argument 333 double ret = (date - nowMs) / (24 * 60 * 60 * 1000); // Convert 24 hours into milliseconds
in CompareDays()
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | reminder_helper.cpp | 62 ErrCode ReminderHelper::AddExcludeDate(const int32_t reminderId, const uint64_t date) in AddExcludeDate() argument 65 return DelayedSingleton<AnsNotification>::GetInstance()->AddExcludeDate(reminderId, date); in AddExcludeDate()
|
/base/notification/distributed_notification_service/frameworks/js/napi/include/ |
H A D | disturb_mode.h | 30 NotificationDoNotDisturbDate date; member 60 NotificationDoNotDisturbDate date; member
|
/base/notification/distributed_notification_service/test/fuzztest/anssubscriberproxy_fuzzer/ |
H A D | anssubscriberproxy_fuzzer.cpp | 54 sptr<Notification::NotificationDoNotDisturbDate> date = new Notification::NotificationDoNotDisturbDate();
in DoSomethingInterestingWithMyAPI() local 55 ansSubscriberProxy.OnDoNotDisturbDateChange(date);
in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/ |
H A D | ark_ohos_resource_adapter_wrapper.cpp | 55 const std::string& rawFile, uint16_t& date, uint16_t& time, bool isSys) in GetRawFileLastModTime() 58 bool result = ctocpp_->GetRawFileLastModTime(ark_raw_file, date, time, isSys); in GetRawFileLastModTime() 54 GetRawFileLastModTime( const std::string& rawFile, uint16_t& date, uint16_t& time, bool isSys) GetRawFileLastModTime() argument
|
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/utils/ |
H A D | trace_flow_controller.cpp | 101 // date changes
in NeedDump() 190 std::string date = TimeUtil::TimestampFormatToDate(happenTimeInSecond, "%Y%m%d");
in HasCallOnceToday() local 194 traceStorage_->QueryAppEventTask(uid, std::stoll(date, nullptr, 0), appEventTask);
in HasCallOnceToday() 203 std::string date = TimeUtil::TimestampFormatToDate(happenTimeInSecond, "%Y%m%d");
in RecordCaller() local 204 appEventTask.taskDate_ = std::stoll(date, nullptr, 0);
in RecordCaller()
|
/base/msdp/device_status/interfaces/innerkits/include/ |
H A D | i_devicestatus_storage.h | 31 std::string date; member
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | disturb_mode.cpp | 34 // argv[0]: date:type in GetDoNotDisturbDate() 57 params.date.SetDoNotDisturbType(outType); in GetDoNotDisturbDate() 59 // argv[0]: date:begin in GetDoNotDisturbDate() 72 std::string msg = "Incorrect parameter types.The type of param must be date."; in GetDoNotDisturbDate() 77 params.date.SetBeginDate(int64_t(begin)); in GetDoNotDisturbDate() 79 // argv[0]: date:end in GetDoNotDisturbDate() 92 std::string msg = "Incorrect parameter types.The type of param must be date."; in GetDoNotDisturbDate() 97 params.date.SetEndDate(int64_t(end)); in GetDoNotDisturbDate() 202 // argv[0]: date in ParseParameters() 325 asynccallbackinfo->params.userId, asynccallbackinfo->params.date); in SetDoNotDisturbDate() [all...] |
/base/hiviewdfx/hiview/base/utility/ |
H A D | time_util.cpp | 69 char date[MAX_TIME_BUFF] = {0}; in TimestampFormatToDate() local 72 strftime(date, MAX_TIME_BUFF, format.c_str(), &result); in TimestampFormatToDate() 74 return std::string(date); in TimestampFormatToDate() 108 return zero > 0 ? zero : 0; // result of mktime is negative, when the date is 19700101 in Get0ClockStampMs()
|
/base/security/certificate_framework/test/unittest/v1.0/src/ |
H A D | crypto_x509_certificate_test.cpp | 269 /* Input valid date. YYMMDDHHMMSSZ */ 272 const char *date = "231018162433Z"; in HWTEST_F() local 274 CfResult ret = g_x509CertObj->checkValidityWithDate(g_x509CertObj, date); in HWTEST_F() 278 /* Input valid date. time format: YYYYMMDDHHMMSSZ */ 281 const char *date = "20231018162433Z"; in HWTEST_F() local 283 CfResult ret = g_x509CertObj->checkValidityWithDate(g_x509CertObj, date); in HWTEST_F() 287 /* Input invalid date--expiered. */ 290 const char *date = "20991018162433Z"; in HWTEST_F() local 292 CfResult ret = g_x509CertObj->checkValidityWithDate(g_x509CertObj, date); in HWTEST_F() 296 /* Input invalid date 299 const char *date = "20191018162433Z"; HWTEST_F() local 308 const char *date = "20191018"; HWTEST_F() local 736 const char *date = "20220819124900Z"; HWTEST_F() local 753 const char *date = "20220819124906Z"; HWTEST_F() local 770 const char *date = "20231018162433Z"; HWTEST_F() local 787 const char *date = "20320816124906Z"; HWTEST_F() local 804 const char *date = "20330816124906Z"; HWTEST_F() local 822 const char *date = emptyData.c_str(); HWTEST_F() local 1128 const char *date = "20220819124906Z"; HWTEST_F() local 1653 const char *date = "2020"; HWTEST_F() local 1699 const char *date = "2020"; HWTEST_F() local 1739 const char *date = "2020"; HWTEST_F() local [all...] |
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | advanced_notification_service_branch_test.cpp | 115 void OnDoNotDisturbDateChange(const std::shared_ptr<NotificationDoNotDisturbDate> &date) override 761 sptr<NotificationDoNotDisturbDate> date = in HWTEST_F() local 763 ASSERT_EQ(advancedNotificationService_->SetDoNotDisturbDate(date), ERR_ANS_NON_SYSTEM_APP); in HWTEST_F() 764 ASSERT_EQ(advancedNotificationService_->GetDoNotDisturbDate(date), ERR_ANS_NON_SYSTEM_APP); in HWTEST_F() 779 sptr<NotificationDoNotDisturbDate> date = in HWTEST_F() local 781 ASSERT_EQ(advancedNotificationService_->SetDoNotDisturbDate(date), ERR_ANS_PERMISSION_DENIED); in HWTEST_F() 782 ASSERT_EQ(advancedNotificationService_->GetDoNotDisturbDate(date), ERR_ANS_PERMISSION_DENIED); in HWTEST_F() 937 sptr<NotificationDoNotDisturbDate> date = nullptr; in HWTEST_F() local 938 ASSERT_EQ(advancedNotificationService_->SetDoNotDisturbDate(userId, date), ERR_ANS_NON_SYSTEM_APP); in HWTEST_F() 939 ASSERT_EQ(advancedNotificationService_->GetDoNotDisturbDate(userId, date), ERR_ANS_NON_SYSTEM_AP in HWTEST_F() 954 sptr<NotificationDoNotDisturbDate> date = nullptr; HWTEST_F() local [all...] |
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/ |
H A D | napi_disturb_mode.cpp | 51 asynccallbackinfo->params.userId, asynccallbackinfo->params.date); in NapiSetDoNotDisturbDate() 54 asynccallbackinfo->params.date); in NapiSetDoNotDisturbDate() 57 ANS_LOGI("date=%{public}s errorCode=%{public}d, hasUserId=%{public}d", in NapiSetDoNotDisturbDate() 58 asynccallbackinfo->params.date.Dump().c_str(), asynccallbackinfo->info.errorCode, in NapiSetDoNotDisturbDate() 193 if (!Common::SetDoNotDisturbDate(env, asynccallbackinfo->date, result)) { in AsyncCompleteCallbackNapiGetDoNotDisturbDate() 239 asynccallbackinfo->params.userId, asynccallbackinfo->date); in NapiGetDoNotDisturbDate() 242 NotificationHelper::GetDoNotDisturbDate(asynccallbackinfo->date); in NapiGetDoNotDisturbDate() 245 ANS_LOGI("errorCode=%{public}d date=%{public}s, hasUserId=%{public}d", in NapiGetDoNotDisturbDate() 246 asynccallbackinfo->info.errorCode, asynccallbackinfo->date.Dump().c_str(), in NapiGetDoNotDisturbDate()
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | reminder_helper.h | 101 * @brief Add exclude date for reminder 104 * @param date exclude date 107 static ErrCode AddExcludeDate(const int32_t reminderId, const uint64_t date); 110 * @brief Clear exclude date for reminder 118 * @brief Get exclude date for reminder
|
/base/security/certificate_framework/test/fuzztest/v1.0/x509certchain_fuzzer/ |
H A D | x509certchain_fuzzer.cpp | 130 const char *date = "20231212080000Z"; in TestVerify() local 132 validDate.data = reinterpret_cast<uint8_t *>(const_cast<char *>(date)); in TestVerify() 133 validDate.size = strlen(date) + 1; in TestVerify() 134 pCertChainValidateParams.date = &validDate; in TestVerify() 606 params->date = blob; in BuildX509CertMatchParamsDataNoCRL() 643 if (params->date != nullptr) { in FreeX509CertMatchParamsData() 644 CfFree(params->date); in FreeX509CertMatchParamsData() 645 params->date = nullptr; in FreeX509CertMatchParamsData() 733 const char *date = "20231212080000Z"; in X509BuildResultCreateFuzzTest() local 734 if (data == nullptr || size < sizeof(int32_t) || size < (strlen(date) in X509BuildResultCreateFuzzTest() [all...] |
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | reminder_helper_test.cpp | 130 uint64_t date = 1713196800000;
in HWTEST_F() local 132 ErrCode ret = reminderHelper.AddExcludeDate(reminderId, date);
in HWTEST_F()
|
/base/notification/distributed_notification_service/test/fuzztest/anssubscriberstub_fuzzer/ |
H A D | anssubscriberstub_fuzzer.cpp | 65 sptr<Notification::NotificationDoNotDisturbDate> date = new Notification::NotificationDoNotDisturbDate();
in DoSomethingInterestingWithMyAPI() local 66 ansSubscriberStub.OnDoNotDisturbDateChange(date);
in DoSomethingInterestingWithMyAPI()
|
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/inner_include/ |
H A D | trace_storage.h | 41 bool QueryAppEventTask(int32_t uid, int32_t date, AppEventTask& appEventTask);
|