Home
last modified time | relevance | path

Searched refs:isEnable (Results 1 – 25 of 28) sorted by relevance

12

/base/security/huks/test/unittest/huks_standard_test/module_test/mock/common/src/
Dhuks_core_hal_mock.c50 void HksEnableCreateOrDestroy(bool isEnable) in HksEnableCreateOrDestroy() argument
52 g_isEnableCreateOrDestroy = isEnable; in HksEnableCreateOrDestroy()
55 void HksEnableSetHid(bool isEnable) in HksEnableSetHid() argument
57 g_isEnableHdi = isEnable; in HksEnableSetHid()
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_preferences_branch_test/
Ddistributed_preferences_branch_test.cpp126 bool isEnable = true; variable
128 …EXPECT_EQ(distributedPreferences_->SetDistributedEnable(isEnable), ERR_ANS_DISTRIBUTED_OPERATION_F…
139 bool isEnable = true; variable
140 …EXPECT_EQ(distributedPreferences_->SetDistributedBundleEnable(bundleOption, isEnable), ERR_ANS_INV…
151 bool isEnable = true; variable
153 EXPECT_EQ(distributedPreferences_->SetDistributedBundleEnable(bundleOption, isEnable),
165 bool isEnable = true; variable
166 …EXPECT_EQ(distributedPreferences_->GetDistributedBundleEnable(bundleOption, isEnable), ERR_ANS_INV…
/base/notification/distributed_notification_service/services/distributed/include/
Ddistributed_preferences.h40 ErrCode SetDistributedEnable(bool isEnable);
48 ErrCode GetDistributedEnable(bool &isEnable);
57 …Code SetDistributedBundleEnable(const sptr<NotificationBundleOption> &bundleOption, bool isEnable);
66 …ode GetDistributedBundleEnable(const sptr<NotificationBundleOption> &bundleOption, bool &isEnable);
/base/notification/distributed_notification_service/services/distributed/src/
Ddistributed_preferences.cpp140 ErrCode DistributedPreferences::SetDistributedEnable(bool isEnable) in SetDistributedEnable() argument
146 if (!database_->PutToDistributedDB(key, std::to_string(isEnable))) { in SetDistributedEnable()
151 preferencesInfo_->SetDistributedEnable(isEnable); in SetDistributedEnable()
156 ErrCode DistributedPreferences::GetDistributedEnable(bool &isEnable) in GetDistributedEnable() argument
160 isEnable = preferencesInfo_->GetDistributedEnable(); in GetDistributedEnable()
166 const sptr<NotificationBundleOption> &bundleOption, bool isEnable) in SetDistributedBundleEnable() argument
177 if (!database_->PutToDistributedDB(key, std::to_string(isEnable))) { in SetDistributedBundleEnable()
182 …Info_->SetDistributedBundleEnable(bundleOption->GetBundleName(), bundleOption->GetUid(), isEnable); in SetDistributedBundleEnable()
188 const sptr<NotificationBundleOption> &bundleOption, bool &isEnable) in GetDistributedBundleEnable() argument
200isEnable = preferencesInfo_->GetDistributedBundleEnable(bundleOption->GetBundleName(), bundleOptio… in GetDistributedBundleEnable()
/base/security/huks/test/unittest/huks_standard_test/module_test/mock/common/include/
Dhuks_core_hal_mock.h25 void HksEnableCreateOrDestroy(bool isEnable);
27 void HksEnableSetHid(bool isEnable);
/base/account/os_account/test/fuzztest/appaccount/setappaccountsyncenable_fuzzer/
Dsetappaccountsyncenable_fuzzer.cpp33 bool isEnable = false; in SetAppAccountSyncEnableFuzzTest() local
34 result = AppAccountManager::SetAppAccountSyncEnable(testName, isEnable); in SetAppAccountSyncEnableFuzzTest()
/base/account/os_account/test/fuzztest/appaccount/checkappaccountsyncenable_fuzzer/
Dcheckappaccountsyncenable_fuzzer.cpp33 bool isEnable = false; in CheckAppAccountSyncEnableFuzzTest() local
34 result = AppAccountManager::CheckAppAccountSyncEnable(testName, isEnable); in CheckAppAccountSyncEnableFuzzTest()
/base/account/os_account/test/fuzztest/osaccount/isosaccountconstraintenable_fuzzer/
Disosaccountconstraintenable_fuzzer.cpp33 bool isEnable = false; in IsOsAccountConstraintEnableFuzzTest() local
35 … result = OsAccountManager::IsOsAccountConstraintEnable(LOCAL_ID, testConstraint, isEnable); in IsOsAccountConstraintEnableFuzzTest()
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/
Dmock_bundle_mgr.cpp34 void MockDistributedNotificationEnabled(bool isEnable) in MockDistributedNotificationEnabled() argument
36 g_isEnable = isEnable; in MockDistributedNotificationEnabled()
/base/customization/enterprise_device_management/test/unittest/enterprise_device_mgr_ability/enterprise_device_mgr_ability_test/
Denterprise_device_mgr_ability_test.cpp152 bool isEnable = edmMgr_->IsAdminEnabled(admin, DEFAULT_USER_ID); variable
153 EXPECT_TRUE(!isEnable);
175 bool isEnable = edmMgr_->IsAdminEnabled(admin, DEFAULT_USER_ID); variable
176 EXPECT_TRUE(!isEnable);
207 bool isEnable = edmMgr_->IsAdminEnabled(admin, DEFAULT_USER_ID); variable
208 EXPECT_TRUE(isEnable);
233 bool isEnable = edmMgr_->IsAdminEnabled(admin, DEFAULT_USER_ID); variable
234 EXPECT_TRUE(!isEnable);
265 bool isEnable = edmMgr_->IsAdminEnabled(admin, DEFAULT_USER_ID); variable
266 EXPECT_TRUE(isEnable);
[all …]
/base/inputmethod/imf/frameworks/native/inputmethod_ability/src/
Dinput_method_core_proxy.cpp85 bool isEnable = false; in IsEnable() local
87 …IS_ENABLE, nullptr, [&isEnable](MessageParcel &reply) { return ITypesUtil::Unmarshal(reply, isEnab… in IsEnable()
88 return isEnable; in IsEnable()
Dinput_method_core_stub.cpp148 bool isEnable = IsEnable(); in IsEnableOnRemote() local
149 return ITypesUtil::Marshal(reply, ErrorCode::NO_ERROR, isEnable) ? ErrorCode::NO_ERROR in IsEnableOnRemote()
/base/account/os_account/frameworks/osaccount/native/test/moduletest/
Dos_account_manager_module_test.cpp575 bool isEnable = false; variable
577 …countManager::IsOsAccountConstraintEnable(osAccountInfoOne.GetLocalId(), CONSTANT_PRINT, isEnable),
579 EXPECT_EQ(isEnable, true);
593 bool isEnable = true; variable
595 …countManager::IsOsAccountConstraintEnable(osAccountInfoOne.GetLocalId(), CONSTANT_PRINT, isEnable),
597 EXPECT_EQ(isEnable, false);
1463 bool isEnable = false; variable
1465 …countManager::IsOsAccountConstraintEnable(osAccountInfoOne.GetLocalId(), CONSTANT_PRINT, isEnable),
1467 EXPECT_EQ(isEnable, true);
1468 isEnable = false;
[all …]
/base/location/test/location_locator/include/
Dlocator_service_test.h43 void ChangedLocationMode(bool isEnable);
/base/account/os_account/frameworks/test/unittest/
Daccount_osaccount_proxy_mock_test.cpp163 bool isEnable = true; variable
165 OsAccountManager::IsOsAccountConstraintEnable(TEST_USER_ID, CONSTANT_PRINT, isEnable);
167 ASSERT_EQ(isEnable, false);
/base/account/os_account/services/accountmgr/test/moduletest/os_account/
Dos_account_manager_service_module_test.cpp431 bool isEnable = false; variable
433 osAccountInfoOne.GetLocalId(), CONSTANTS_STRING_WIFI, isEnable), ERR_OK);
434 EXPECT_EQ(isEnable, true);
448 bool isEnable = true; variable
450 osAccountInfoOne.GetLocalId(), CONSTANTS_STRING_WIFI, isEnable), ERR_OK);
451 EXPECT_EQ(isEnable, false);
453 osAccountInfoOne.GetLocalId(), CONSTANTS_STRING_WIFI, isEnable), ERR_OK);
454 EXPECT_EQ(isEnable, false);
458 …EQ(osAccountManagerService_->IsOsAccountConstraintEnable(localId, CONSTANTS_STRING_WIFI, isEnable),
460 …sAccountManagerService_->CheckOsAccountConstraintEnabled(localId, CONSTANTS_STRING_WIFI, isEnable),
/base/account/os_account/interfaces/kits/napi/osaccount/src/
Dnapi_os_account.cpp1017 auto isEnable = std::make_unique<IsConEnableAsyncContext>(); in InnerIsOsAccountConstraintEnable() local
1018 isEnable->env = env; in InnerIsOsAccountConstraintEnable()
1019 isEnable->throwErr = throwErr; in InnerIsOsAccountConstraintEnable()
1021 if (!ParseParaIsEnable(env, cbInfo, isEnable.get()) && throwErr) { in InnerIsOsAccountConstraintEnable()
1026 if (isEnable->callbackRef == nullptr) { in InnerIsOsAccountConstraintEnable()
1027 napi_create_promise(env, &isEnable->deferred, &result); in InnerIsOsAccountConstraintEnable()
1036 reinterpret_cast<void *>(isEnable.get()), &isEnable->work); in InnerIsOsAccountConstraintEnable()
1038 napi_queue_async_work_with_qos(env, isEnable->work, napi_qos_default); in InnerIsOsAccountConstraintEnable()
1039 isEnable.release(); in InnerIsOsAccountConstraintEnable()
/base/account/os_account/services/accountmgr/src/osaccount/
Dos_account_manager_service.cpp916 bool isEnable = true; in PermissionCheck() local
917 innerManager_.IsOsAccountConstraintEnable(callerUserId, constraintName, isEnable); in PermissionCheck()
918 if (isEnable) { in PermissionCheck()
/base/notification/distributed_notification_service/frameworks/js/napi/include/manager/
Dnapi_slot.h154 bool isEnable = false; member
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
Dnapi_slot.cpp749 … asynccallbackinfo->params.option, asynccallbackinfo->params.outType, asynccallbackinfo->isEnable); in NapiIsEnableNotificationSlot()
757 napi_get_boolean(env, asynccallbackinfo->isEnable, &result); in NapiIsEnableNotificationSlot()
/base/account/os_account/interfaces/kits/napi/appaccount/include/
Dnapi_app_account_common.h79 bool isEnable = false; member
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Dslot.cpp163 bool isEnable = false; member
1469 … asynccallbackinfo->params.option, asynccallbackinfo->params.outType, asynccallbackinfo->isEnable); in IsEnableNotificationSlot()
1477 napi_get_boolean(env, asynccallbackinfo->isEnable, &result); in IsEnableNotificationSlot()
/base/location/test/location_locator/source/
Dlocator_service_test.cpp160 void LocatorServiceTest::ChangedLocationMode(bool isEnable) in ChangedLocationMode() argument
162 std::string value = isEnable ? "3" : "0"; in ChangedLocationMode()
/base/notification/distributed_notification_service/services/ans/test/unittest/
Dadvanced_notification_service_branch_test.cpp54 extern void MockDistributedNotificationEnabled(bool isEnable);
/base/account/os_account/interfaces/kits/napi/appaccount/src/
Dnapi_app_account_common.cpp727 … result = (napi_get_value_bool(env, argv, &asyncContext->isEnable) == napi_ok) ? true : false; in ParseAppAccountProperty()

12