| /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/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/src/ |
| D | clone_app_permission_test.cpp | 167 uint32_t flag; in AllocHapTokenId() local 168 ret = AccessTokenKit::GetPermissionFlag(tokenId, PERMISSION_FULL_CONTROL, flag); in AllocHapTokenId() 169 EXPECT_EQ(flag, PERMISSION_DEFAULT_FLAG); in AllocHapTokenId() 171 ret = AccessTokenKit::GetPermissionFlag(tokenId, PERMISSION_ALL, flag); in AllocHapTokenId() 172 EXPECT_EQ(flag, PERMISSION_DEFAULT_FLAG); in AllocHapTokenId() 248 uint32_t flag; variable 249 ret = AccessTokenKit::GetPermissionFlag(tokenCommon, PERMISSION_ALL, flag); 250 EXPECT_EQ(flag, PERMISSION_USER_FIXED); 253 ret = AccessTokenKit::GetPermissionFlag(tokenFullControl, PERMISSION_ALL, flag); 254 EXPECT_EQ(flag, PERMISSION_USER_FIXED); [all …]
|
| D | share_permission_with_sandbox_test.cpp | 291 uint32_t flag; variable 292 (void)AccessTokenKit::GetPermissionFlag(tokenCommon, PERMISSION_ALL, flag); 293 EXPECT_EQ(flag, PERMISSION_DEFAULT_FLAG); 294 (void)AccessTokenKit::GetPermissionFlag(tokenFullControl, PERMISSION_ALL, flag); 295 EXPECT_EQ(flag, PERMISSION_DEFAULT_FLAG); 296 (void)AccessTokenKit::GetPermissionFlag(tokenFullRead, PERMISSION_ALL, flag); 297 EXPECT_EQ(flag, PERMISSION_DEFAULT_FLAG); 335 uint32_t flag; variable 336 (void)AccessTokenKit::GetPermissionFlag(tokenCommon, PERMISSION_FULL_CONTROL, flag); 337 EXPECT_EQ(flag, PERMISSION_USER_FIXED); [all …]
|
| D | security_component_grant_test.cpp | 137 uint32_t flag; variable 138 res = AccessTokenKit::GetPermissionFlag(tokenID, TEST_PERMISSION, flag); 140 ASSERT_NE(((static_cast<uint32_t>(flag)) & PERMISSION_COMPONENT_SET), 0); 149 res = AccessTokenKit::GetPermissionFlag(tokenID, TEST_PERMISSION, flag); 151 ASSERT_EQ(((static_cast<uint32_t>(flag)) & PERMISSION_COMPONENT_SET), 0); 176 uint32_t flag; variable 177 res = AccessTokenKit::GetPermissionFlag(tokenID, TEST_PERMISSION, flag); 179 ASSERT_EQ(((static_cast<uint32_t>(flag)) & PERMISSION_COMPONENT_SET), 0); 186 res = AccessTokenKit::GetPermissionFlag(tokenID, TEST_PERMISSION, flag); 188 ASSERT_EQ(((static_cast<uint32_t>(flag)) & PERMISSION_COMPONENT_SET), 0); [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()
|
| D | native_leak_info.h | 46 void SetInThresholdList(bool flag); 48 void SetJavaState(bool flag); 50 void SetIsProcessDied(bool flag); 52 void SetIsAppendSmapsFile(bool flag); 54 void SetIsDumpHiprofilerDrop(bool flag);
|
| /base/sensors/miscdevice/test/unittest/light/ |
| D | light_agent_test.cpp | 170 bool flag = GetLightColor(color, g_lightType); variable 171 if (!flag) { 172 ASSERT_FALSE(flag); 194 bool flag = GetLightColor(color, g_lightType); variable 195 if (!flag) { 196 ASSERT_FALSE(flag); 217 bool flag = GetLightColor(color, g_lightType); variable 218 if (!flag) { 219 ASSERT_FALSE(flag); 240 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 | 92 bool flag = false; variable 93 XCollieCallback callbackFunc = [&flag](void *) { in __anon69700bf50102() 94 flag = true; in __anon69700bf50102() 107 ASSERT_EQ(flag, false); 110 flag = false; 119 ASSERT_EQ(flag, true); 145 bool flag = false; variable 146 XCollieCallback callbackFunc = [&flag](void *) { in __anon69700bf50302() 147 flag = true; in __anon69700bf50302() 156 ASSERT_EQ(flag, true); [all …]
|
| /base/global/i18n/services/include/ |
| D | i18n_service_ability_proxy.h | 61 * @param flag When flag is true, the system adopts 24-hour clock; 62 …* When flag is false, the system adopts 12-hour clock; When flag is empty string, the system adopts 66 I18nErrorCode Set24HourClock(const std::string &flag); 71 * @param flag When flag is True, request to adopt local digit; 72 * When flag is False, request to adopt arbic digit; 75 I18nErrorCode SetUsingLocalDigit(bool flag);
|
| 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/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/cellular_call/services/utils/include/ |
| D | cellular_call_supplement.h | 296 * @param flag, {@code SS_FROM_MMI_CODE} mean the request action come from dial api 299 void EventGetClip(const GetClipResult &getClipResult, const std::string &message, int32_t flag); 308 * @param flag, {@code SS_FROM_MMI_CODE} mean the request action come from dial api 311 void EventSetClip(int32_t result, const std::string &message, int32_t flag); 320 * @param flag, {@code SS_FROM_MMI_CODE} mean the request action come from dial api 323 void EventGetClir(const GetClirResult &result, const std::string &message, int32_t flag); 332 * @param flag, {@code SS_FROM_MMI_CODE} mean the request action come from dial api 335 void EventSetClir(int32_t result, const std::string &message, int32_t flag); 344 * @param flag, {@code SS_FROM_MMI_CODE} mean the request action come from dial api 347 void EventGetColr(const GetColrResult &result, const std::string &message, int32_t flag); [all …]
|
| /base/telephony/core_service/frameworks/js/napi/ |
| D | napi_util.cpp | 430 bool flag = true; in CreateParameterErrorMessageForJs() local 446 flag = false; in CreateParameterErrorMessageForJs() 450 return flag; in CreateParameterErrorMessageForJs() 458 bool flag = true; in CreateNetworkSearchErrorMessageForJs() local 465 flag = false; in CreateNetworkSearchErrorMessageForJs() 469 return flag; in CreateNetworkSearchErrorMessageForJs() 474 bool flag = true; in CreateVcardErrorMessageForJs() local 480 flag = false; in CreateVcardErrorMessageForJs() 484 return flag; in CreateVcardErrorMessageForJs() 492 bool flag = true; in CreateSimErrorMessageForJs() local [all …]
|
| /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/access_token/services/privacymanager/src/database/ |
| D | data_translator.cpp | 57 PermissionUsageFlagEnum flag = request.flag; in TranslationIntoGenericValues() local 59 if (!DataValidator::IsPermissionUsedFlagValid(flag)) { in TranslationIntoGenericValues() 63 if (flag == FLAG_PERMISSION_USAGE_SUMMARY_IN_SCREEN_LOCKED) { in TranslationIntoGenericValues() 65 } else if (flag == FLAG_PERMISSION_USAGE_SUMMARY_IN_SCREEN_UNLOCKED) { in TranslationIntoGenericValues() 67 } else if (flag == FLAG_PERMISSION_USAGE_SUMMARY_IN_APP_BACKGROUND) { in TranslationIntoGenericValues() 69 } else if (flag == FLAG_PERMISSION_USAGE_SUMMARY_IN_APP_FOREGROUND) { in TranslationIntoGenericValues() 76 …t DataTranslator::TranslationGenericValuesIntoPermissionUsedRecord(const PermissionUsageFlag& flag, in TranslationGenericValuesIntoPermissionUsedRecord() argument 101 if (flag == FLAG_PERMISSION_USAGE_SUMMARY) { in TranslationGenericValuesIntoPermissionUsedRecord()
|
| /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 …]
|
| D | crypto_ecc_no_length_verify_sub_test.cpp | 364 bool flag = verify->verify(verify, nullptr, &out); variable 366 ASSERT_EQ(flag, true); 410 bool flag = verify->verify(verify, nullptr, &out); variable 412 ASSERT_EQ(flag, true); 456 bool flag = verify->verify(verify, nullptr, &out); variable 458 ASSERT_EQ(flag, true); 502 bool flag = verify->verify(verify, nullptr, &out); variable 504 ASSERT_EQ(flag, true); 548 bool flag = verify->verify(verify, nullptr, &out); variable 550 ASSERT_EQ(flag, true); [all …]
|
| /base/startup/init/services/modules/seccomp/ |
| D | seccomp_policy.c | 64 PLUGIN_LOGE("not support seccomp flag %u", filterFlag); in IsSupportFilterFlag() 77 unsigned int flag = 0; in InstallSeccompPolicy() local 84 flag |= SECCOMP_FILTER_FLAG_TSYNC; in InstallSeccompPolicy() 88 flag |= SECCOMP_FILTER_FLAG_LOG; in InstallSeccompPolicy() 91 if (syscall(__NR_seccomp, SECCOMP_SET_MODE_FILTER, flag, &prog) != 0) { in InstallSeccompPolicy() 106 bool flag = false; in GetFilterFileByName() local 127 flag = true; in GetFilterFileByName() 132 return flag; in GetFilterFileByName() 229 bool flag = GetFilterFileByName(filterNamePtr, filterLibRealPath, sizeof(filterLibRealPath)); in SetSeccompPolicyWithName() local 230 if (!flag) { in SetSeccompPolicyWithName() [all …]
|
| /base/useriam/user_auth_framework/services/context/inc/ |
| D | trace.h | 29 …id ProcessCredChangeEvent(const ContextCallbackNotifyListener::MetaData &metaData, TraceFlag flag); 30 …d ProcessCredManagerEvent(const ContextCallbackNotifyListener::MetaData &metaData, TraceFlag flag); 31 …void ProcessUserAuthEvent(const ContextCallbackNotifyListener::MetaData &metaData, TraceFlag flag); 32 …d ProcessUserAuthFwkEvent(const ContextCallbackNotifyListener::MetaData &metaData, TraceFlag flag);
|