| /base/telephony/sms_mms/frameworks/cj/src/ |
| D | sms_utils.cpp | 41 bool flag = true; in CreateCommonArgumentErrorCodeForCj() local 51 flag = false; in CreateCommonArgumentErrorCodeForCj() 54 return flag; in CreateCommonArgumentErrorCodeForCj() 59 bool flag = true; in CreateCommonServiceErrorCodeForCj() local 75 flag = false; in CreateCommonServiceErrorCodeForCj() 78 return flag; in CreateCommonServiceErrorCodeForCj() 83 bool flag = true; in CreateCommonSystemErrorCodeForCj() local 114 flag = false; in CreateCommonSystemErrorCodeForCj() 117 return flag; in CreateCommonSystemErrorCodeForCj() 134 bool flag = true; in CreateParameterErrorCodeForCj() local [all …]
|
| /base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/ |
| D | ark_web_preference_impl.cpp | 50 void ArkWebPreferenceImpl::PutCacheMode(int flag) in PutCacheMode() argument 52 nweb_preference_->PutCacheMode(static_cast<ArkWebCacheModeFlag>(flag)); in PutCacheMode() 60 void ArkWebPreferenceImpl::PutBlockNetwork(bool flag) in PutBlockNetwork() argument 62 nweb_preference_->PutBlockNetwork(flag); in PutBlockNetwork() 100 void ArkWebPreferenceImpl::PutPinchSmoothMode(bool flag) in PutPinchSmoothMode() argument 102 nweb_preference_->PutPinchSmoothMode(flag); in PutPinchSmoothMode() 110 void ArkWebPreferenceImpl::PutDatabaseAllowed(bool flag) in PutDatabaseAllowed() argument 112 nweb_preference_->PutDatabaseAllowed(flag); in PutDatabaseAllowed() 120 void ArkWebPreferenceImpl::PutMultiWindowAccess(bool flag) in PutMultiWindowAccess() argument 122 nweb_preference_->PutMultiWindowAccess(flag); in PutMultiWindowAccess() [all …]
|
| /base/security/access_token/services/accesstokenmanager/test/coverage/ |
| D | accesstoken_database_coverage_test.cpp | 111 uint32_t flag = 0; variable 112 callback.GetUpgradeFlag(DATABASE_VERSION_1, DATABASE_VERSION_2, flag); 113 ASSERT_EQ(UPDATE_FLAG_1, flag); 115 flag = 0; 116 callback.GetUpgradeFlag(DATABASE_VERSION_1, DATABASE_VERSION_3, flag); 117 ASSERT_EQ(UPDATE_FLAG_3, flag); 119 flag = 0; 120 callback.GetUpgradeFlag(DATABASE_VERSION_1, DATABASE_VERSION_4, flag); 121 ASSERT_EQ(UPDATE_FLAG_7, flag); 123 flag = 0; [all …]
|
| /base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/ |
| D | ark_web_preference_wrapper.cpp | 58 void ArkWebPreferenceWrapper::PutCacheMode(ArkWebCacheModeFlag flag) in PutCacheMode() argument 60 ark_web_preference_->PutCacheMode(static_cast<int>(flag)); in PutCacheMode() 68 void ArkWebPreferenceWrapper::PutBlockNetwork(bool flag) in PutBlockNetwork() argument 70 ark_web_preference_->PutBlockNetwork(flag); in PutBlockNetwork() 108 void ArkWebPreferenceWrapper::PutPinchSmoothMode(bool flag) in PutPinchSmoothMode() argument 110 ark_web_preference_->PutPinchSmoothMode(flag); in PutPinchSmoothMode() 118 void ArkWebPreferenceWrapper::PutDatabaseAllowed(bool flag) in PutDatabaseAllowed() argument 120 ark_web_preference_->PutDatabaseAllowed(flag); in PutDatabaseAllowed() 128 void ArkWebPreferenceWrapper::PutMultiWindowAccess(bool flag) in PutMultiWindowAccess() argument 130 ark_web_preference_->PutMultiWindowAccess(flag); in PutMultiWindowAccess() [all …]
|
| D | ark_web_drag_data_wrapper.cpp | 30 bool flag = ark_web_drag_data_->SetFileUri(stUrl); in SetFileUri() local 33 return flag; in SetFileUri() 49 bool flag = ark_web_drag_data_->SetLinkURL(stUrl); in SetLinkURL() local 52 return flag; in SetLinkURL() 68 bool flag = ark_web_drag_data_->SetLinkTitle(stTitle); in SetLinkTitle() local 71 return flag; in SetLinkTitle() 87 bool flag = ark_web_drag_data_->SetFragmentText(stText); in SetFragmentText() local 90 return flag; in SetFragmentText() 106 bool flag = ark_web_drag_data_->SetFragmentHtml(stHtml); in SetFragmentHtml() local 109 return flag; in SetFragmentHtml()
|
| /base/hiviewdfx/hitrace/interfaces/native/innerkits/include/hitrace/ |
| D | hitraceid.h | 36 * @brief Judge whether the trace id has enabled a trace flag or not. 37 * @param flag the trace flag to check. 38 * @return true means this trace flag has been enabled. 40 bool IsFlagEnabled(HiTraceFlag flag) const; 43 * @brief Enable the designative trace flag for the trace id. 44 * @param flag the trace flag to check. 46 void EnableFlag(HiTraceFlag flag); 48 // Get trace flag of the trace id. 52 * @brief Set trace flag for the trace id. 53 * @param flag the trace flag to set.
|
| /base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/DlpTest/ |
| D | clone_app_permission_test.cpp | 173 uint32_t flag; in AllocHapTokenId() local 174 ret = AccessTokenKit::GetPermissionFlag(tokenId, PERMISSION_FULL_CONTROL, flag); in AllocHapTokenId() 175 EXPECT_EQ(flag, PERMISSION_DEFAULT_FLAG); in AllocHapTokenId() 177 ret = AccessTokenKit::GetPermissionFlag(tokenId, PERMISSION_ALL, flag); in AllocHapTokenId() 178 EXPECT_EQ(flag, PERMISSION_DEFAULT_FLAG); in AllocHapTokenId() 254 uint32_t flag; variable 255 ret = AccessTokenKit::GetPermissionFlag(tokenCommon, PERMISSION_ALL, flag); 256 EXPECT_EQ(flag, PERMISSION_USER_FIXED); 259 ret = AccessTokenKit::GetPermissionFlag(tokenFullControl, PERMISSION_ALL, flag); 260 EXPECT_EQ(flag, PERMISSION_USER_FIXED); [all …]
|
| D | share_permission_with_sandbox_test.cpp | 291 uint32_t flag; variable 292 EXPECT_EQ(RET_SUCCESS, TestCommon::GetPermissionFlagByTest(tokenCommon, PERMISSION_ALL, flag)); 293 EXPECT_EQ(flag, PERMISSION_DEFAULT_FLAG); 294 …XPECT_EQ(RET_SUCCESS, TestCommon::GetPermissionFlagByTest(tokenFullControl, PERMISSION_ALL, flag)); 295 EXPECT_EQ(flag, PERMISSION_DEFAULT_FLAG); 296 … EXPECT_EQ(RET_SUCCESS, TestCommon::GetPermissionFlagByTest(tokenFullRead, PERMISSION_ALL, flag)); 297 EXPECT_EQ(flag, PERMISSION_DEFAULT_FLAG); 332 uint32_t flag; variable 333 …T_EQ(RET_SUCCESS, TestCommon::GetPermissionFlagByTest(tokenCommon, PERMISSION_FULL_CONTROL, flag)); 334 EXPECT_EQ(flag, PERMISSION_USER_FIXED); [all …]
|
| /base/notification/eventhandler/frameworks/eventhandler/test/unittest/ |
| D | lib_event_handler_trace_test.cpp | 225 * @tc.setup: begin hitrace with flag HITRACE_FLAG_INCLUDE_ASYNC and HITRACE_FLAG_TP_INFO. 285 …* @tc.desc: Check wheather the flag of trace id of event is the same as the flag set when begin tr… 294 * @tc.setup: begin trace and set flag HITRACE_FLAG_INCLUDE_ASYNC. 300 * flag is the same as the flag set when begin trace 301 * @tc.expected: step1. the flag is the same. 314 …* @tc.desc: Check wheather the flag of trace id of event is the same as the flag set when begin tr… 323 * @tc.setup:begin trace and set flag HITRACE_FLAG_DONOT_CREATE_SPAN. 329 * flag is the same as the flag set when begin trace 330 * @tc.expected: step1. the flag is the same. 343 …* @tc.desc: Check wheather the flag of trace id of event is the same as the flag set when begin tr… [all …]
|
| /base/hiviewdfx/hiview/plugins/reliability/leak_detectors/native_leak/ |
| D | native_leak_info.cpp | 72 void NativeLeakInfo::SetJavaState(bool flag) in SetJavaState() argument 74 javaState_ = flag; in SetJavaState() 82 void NativeLeakInfo::SetInThresholdList(bool flag) in SetInThresholdList() argument 84 isInThresholdList_ = flag; in SetInThresholdList() 92 void NativeLeakInfo::SetIsProcessDied(bool flag) in SetIsProcessDied() argument 94 isProcessDied_ = flag; in SetIsProcessDied() 102 void NativeLeakInfo::SetIsAppendSmapsFile(bool flag) in SetIsAppendSmapsFile() argument 104 isAppendSmapsFile_ = flag; in SetIsAppendSmapsFile() 112 void NativeLeakInfo::SetIsDumpHiprofilerDrop(bool flag) in SetIsDumpHiprofilerDrop() argument 114 isDumpHiprofilerDrop_ = flag; in SetIsDumpHiprofilerDrop()
|
| /base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/HapAttributeTest/ |
| D | get_permission_flag_test.cpp | 126 * @tc.desc: Get permission flag after grant permission. 139 uint32_t flag; variable 140 ASSERT_EQ(RET_SUCCESS, AccessTokenKit::GetPermissionFlag(tokenID, PERMISSION_MICROPHONE, flag)); 141 ASSERT_EQ(PERMISSION_USER_FIXED, flag); 148 * @tc.desc: Get permission flag that tokenID or permission is invalid. 160 uint32_t flag; variable 161 int ret = AccessTokenKit::GetPermissionFlag(tokenID, "ohos.permission.GAMMA", flag); 164 ret = AccessTokenKit::GetPermissionFlag(tokenID, "", flag); 168 ret = AccessTokenKit::GetPermissionFlag(tokenID, invalidPerm, flag); 171 ret = AccessTokenKit::GetPermissionFlag(TEST_TOKENID_INVALID, PERMISSION_MICROPHONE, flag); [all …]
|
| /base/sensors/miscdevice/test/unittest/light/ |
| D | light_agent_test.cpp | 171 bool flag = GetLightColor(color, g_lightType); variable 172 if (!flag) { 173 ASSERT_FALSE(flag); 195 bool flag = GetLightColor(color, g_lightType); variable 196 if (!flag) { 197 ASSERT_FALSE(flag); 218 bool flag = GetLightColor(color, g_lightType); variable 219 if (!flag) { 220 ASSERT_FALSE(flag); 241 bool flag = GetLightColor(color, g_lightType); variable [all …]
|
| /base/startup/init/services/loopevent/utils/ |
| D | le_utils.h | 26 #define LE_TEST_FLAGS(flags, flag) (((flags) & (flag)) == (flag)) argument 27 #define LE_SET_FLAGS(flags, flag) ((flags) |= (flag)) argument 28 #define LE_CLEAR_FLAGS(flags, flag) ((flags) &= ~(flag)) argument
|
| /base/notification/distributed_notification_service/interfaces/inner_api/ |
| D | notification_time.h | 42 * @brief Obtains isCountDown flag. 44 * @return Returns the isCountDown flag. 48 void SetIsCountDown(bool flag); 51 * @brief Obtains isPaused flag. 53 * @return Returns the isPaused flag. 57 void SetIsPaused(bool flag); 60 * @brief Obtains isInTitle flag. 62 * @return Returns the isInTitle flag. 66 void SetIsInTitle(bool flag);
|
| /base/hiviewdfx/hicollie/frameworks/native/test/unittest/common/ |
| D | xcollie_interface_test.cpp | 94 bool flag = false; variable 95 XCollieCallback callbackFunc = [&flag](void *) { in __anon586acff40102() 96 flag = true; in __anon586acff40102() 109 ASSERT_EQ(flag, false); 112 flag = false; 121 ASSERT_EQ(flag, true); 147 bool flag = false; variable 148 XCollieCallback callbackFunc = [&flag](void *) { in __anon586acff40302() 149 flag = true; in __anon586acff40302() 158 ASSERT_EQ(flag, true); [all …]
|
| /base/startup/init/services/param/include/ |
| D | trigger_checker.h | 38 #define LOGIC_DATA_TEST_FLAG(data, flag) (((data)->flags & flag) == (flag)) argument 39 #define LOGIC_DATA_SET_FLAG(data, flag) (data)->flags |= (flag) argument 40 #define LOGIC_DATA_CLEAR_FLAG(data, flag) (data)->flags &= ~(flag) argument
|
| /base/telephony/core_service/frameworks/js/napi/ |
| D | napi_util.cpp | 484 bool flag = true; in CreateEsimParameterErrorMessageForJs() local 494 flag = false; in CreateEsimParameterErrorMessageForJs() 498 return flag; in CreateEsimParameterErrorMessageForJs() 503 bool flag = true; in CreateEsimServiceErrorMessageForJs() local 517 flag = false; in CreateEsimServiceErrorMessageForJs() 520 return flag; in CreateEsimServiceErrorMessageForJs() 525 bool flag = true; in CreateEsimSystemErrorMessageForJs() local 537 flag = false; in CreateEsimSystemErrorMessageForJs() 540 return flag; in CreateEsimSystemErrorMessageForJs() 582 bool flag = true; in CreateParameterErrorMessageForJs() local [all …]
|
| /base/global/i18n/interfaces/cj/intl/include/ |
| D | intl_impl.h | 34 NumberFormatImpl(char *locale, CNumberOptions options, int64_t flag, int32_t *errCode); 35 NumberFormatImpl(CArrString locale, CNumberOptions options, int64_t flag, int32_t *errCode); 48 …RelativeTimeFormatImpl(char *locale, CRelativeTimeFormatInputOptions options, int64_t flag, int32_… 50 CArrString locale, CRelativeTimeFormatInputOptions options, int64_t flag, int32_t *errCode); 64 PluralRulesImpl(char *locale, CPluralRulesOptions options, int64_t flag, int32_t *errCode); 65 PluralRulesImpl(CArrString locale, CPluralRulesOptions options, int64_t flag, int32_t *errCode); 77 CollatorImpl(char *locale, CCollatorOptions options, int64_t flag, int32_t *errCode); 78 CollatorImpl(CArrString locale, CCollatorOptions options, int64_t flag, int32_t *errCode); 91 DateTimeFormatImpl(char *locale, CDateTimeOptions options, int64_t flag, int32_t *errCode); 92 DateTimeFormatImpl(CArrString locale, CDateTimeOptions options, int64_t flag, int32_t *errCode); [all …]
|
| D | intl_ffi.h | 128 char *locale, CNumberOptions, int64_t flag, int32_t *errCode); 130 CArrString locale, CNumberOptions options, int64_t flag, int32_t *errCode); 137 char *locale, CRelativeTimeFormatInputOptions options, int64_t flag, int32_t *errCode); 139 CArrString locale, CRelativeTimeFormatInputOptions options, int64_t flag, int32_t *errCode); 147 char *locale, CPluralRulesOptions options, int64_t flag, int32_t *errCode); 149 CArrString locale, CPluralRulesOptions options, int64_t flag, int32_t *errCode); 155 char *locale, CCollatorOptions options, int64_t flag, int32_t *errCode); 157 CArrString locale, CCollatorOptions options, int64_t flag, int32_t *errCode); 164 char *locale, CDateTimeOptions options, int64_t flag, int32_t *errCode); 166 CArrString locale, CDateTimeOptions options, int64_t flag, int32_t *errCode); [all …]
|
| /base/global/i18n/interfaces/cj/intl/src/ |
| D | intl_ffi.cpp | 46 char *locale, CNumberOptions options, int64_t flag, int32_t *errCode) in FfiOHOSNumberFormatImplConstructorwithLocale() argument 48 auto nativeCJNumberFormat = FFIData::Create<NumberFormatImpl>(locale, options, flag, errCode); in FfiOHOSNumberFormatImplConstructorwithLocale() 56 CArrString locale, CNumberOptions options, int64_t flag, int32_t *errCode) in FfiOHOSNumberFormatImplConstructorwithArrayLocale() argument 58 auto nativeCJNumberFormat = FFIData::Create<NumberFormatImpl>(locale, options, flag, errCode); in FfiOHOSNumberFormatImplConstructorwithArrayLocale() 86 char *locale, CRelativeTimeFormatInputOptions options, int64_t flag, int32_t *errCode) in FfiOHOSRelativeTimeFormatImplConstructorwithLocale() argument 88 …auto nativeCJRelativeTimeFormat = FFIData::Create<RelativeTimeFormatImpl>(locale, options, flag, e… in FfiOHOSRelativeTimeFormatImplConstructorwithLocale() 96 CArrString locale, CRelativeTimeFormatInputOptions options, int64_t flag, int32_t *errCode) in FfiOHOSRelativeTimeFormatImplConstructorwithArrayLocale() argument 98 …auto nativeCJRelativeTimeFormat = FFIData::Create<RelativeTimeFormatImpl>(locale, options, flag, e… in FfiOHOSRelativeTimeFormatImplConstructorwithArrayLocale() 147 char *locale, CPluralRulesOptions options, int64_t flag, int32_t *errCode) in FfiOHOSPluralRulesImplConstructorwithLocale() argument 149 auto nativeCJPluralRules = FFIData::Create<PluralRulesImpl>(locale, options, flag, errCode); in FfiOHOSPluralRulesImplConstructorwithLocale() [all …]
|
| /base/customization/enterprise_device_management/test/unittest/services/edm/src/ |
| D | plugin_policy_query_test.cpp | 99 int32_t flag = ERR_INVALID_VALUE; variable 100 ASSERT_TRUE(reply.ReadInt32(flag) && (flag == ERR_OK)); 116 int32_t flag = ERR_INVALID_VALUE; variable 117 ASSERT_TRUE(reply.ReadInt32(flag) && (flag == ERR_OK)); 179 int32_t flag = ERR_INVALID_VALUE; variable 180 ASSERT_TRUE(reply.ReadInt32(flag) && (flag == ERR_OK)); 197 int32_t flag = ERR_INVALID_VALUE; variable 198 ASSERT_TRUE(reply.ReadInt32(flag) && (flag == ERR_OK)); 216 int32_t flag = ERR_INVALID_VALUE; variable 217 ASSERT_TRUE(reply.ReadInt32(flag) && (flag == ERR_OK)); [all …]
|
| /base/global/i18n/services/include/ |
| D | i18n_service_ability_client.h | 59 * @param flag When flag is true, the system adopts 24-hour clock; 60 …* When flag is false, the system adopts 12-hour clock; When flag is empty string, the system adopts 64 static I18nErrorCode Set24HourClock(const std::string &flag); 69 * @param flag When flag is True, the system adopts local digit; 70 * When flag is False, the system doesn't adopt local digit; 73 static I18nErrorCode SetUsingLocalDigit(bool flag);
|
| /base/hiviewdfx/hitrace/interfaces/cj/kits/ffi/src/ |
| D | hitracechain_ffi.cpp | 23 CHiTraceId FfiOHOSHiTraceChainBegin(const char* name, int flag) in FfiOHOSHiTraceChainBegin() argument 25 OHOS::HiviewDFX::HiTraceId id = HiTraceChainImpl::Begin(name, flag); in FfiOHOSHiTraceChainBegin() 70 bool FfiOHOSHiTraceChainIsFlagEnabled(CHiTraceId id, int32_t flag) in FfiOHOSHiTraceChainIsFlagEnabled() argument 73 return HiTraceChainImpl::IsFlagEnabled(traceId, flag); in FfiOHOSHiTraceChainIsFlagEnabled() 76 void FfiOHOSHiTraceChainEnableFlag(CHiTraceId id, int32_t flag) in FfiOHOSHiTraceChainEnableFlag() argument 79 return HiTraceChainImpl::EnableFlag(traceId, flag); in FfiOHOSHiTraceChainEnableFlag()
|
| /base/security/crypto_framework/test/unittest/src/ecc/ |
| D | crypto_ecc_verify_sub_test.cpp | 173 bool flag = verify->verify(verify, nullptr, &out); variable 175 ASSERT_EQ(flag, true); 219 bool flag = verify->verify(verify, nullptr, &out); variable 221 ASSERT_EQ(flag, true); 265 bool flag = verify->verify(verify, nullptr, &out); variable 267 ASSERT_EQ(flag, true); 311 bool flag = verify->verify(verify, nullptr, &out); variable 313 ASSERT_EQ(flag, true); 357 bool flag = verify->verify(verify, nullptr, &out); variable 359 ASSERT_EQ(flag, true); [all …]
|
| /base/telephony/cellular_call/services/utils/include/ |
| D | cellular_call_supplement.h | 297 * @param flag, {@code SS_FROM_MMI_CODE} mean the request action come from dial api 300 void EventGetClip(const GetClipResult &getClipResult, const std::string &message, int32_t flag); 309 * @param flag, {@code SS_FROM_MMI_CODE} mean the request action come from dial api 313 void EventSetClip(int32_t result, const std::string &message, int32_t flag, int32_t action); 322 * @param flag, {@code SS_FROM_MMI_CODE} mean the request action come from dial api 325 void EventGetClir(const GetClirResult &result, const std::string &message, int32_t flag); 334 * @param flag, {@code SS_FROM_MMI_CODE} mean the request action come from dial api 338 void EventSetClir(int32_t result, const std::string &message, int32_t flag, int32_t action); 347 * @param flag, {@code SS_FROM_MMI_CODE} mean the request action come from dial api 350 void EventGetColr(const GetColrResult &result, const std::string &message, int32_t flag); [all …]
|