Home
last modified time | relevance | path

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

/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/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/notification/distributed_notification_service/services/distributed/src/
Ddistributed_preferences.cpp141 ErrCode DistributedPreferences::SetDistributedEnable(bool isEnable) in SetDistributedEnable() argument
147 if (!database_->PutToDistributedDB(key, std::to_string(isEnable))) { in SetDistributedEnable()
152 preferencesInfo_->SetDistributedEnable(isEnable); in SetDistributedEnable()
157 ErrCode DistributedPreferences::GetDistributedEnable(bool &isEnable) in GetDistributedEnable() argument
161 isEnable = preferencesInfo_->GetDistributedEnable(); in GetDistributedEnable()
167 const sptr<NotificationBundleOption> &bundleOption, bool isEnable) in SetDistributedBundleEnable() argument
178 if (!database_->PutToDistributedDB(key, std::to_string(isEnable))) { in SetDistributedBundleEnable()
183 …Info_->SetDistributedBundleEnable(bundleOption->GetBundleName(), bundleOption->GetUid(), isEnable); in SetDistributedBundleEnable()
189 const sptr<NotificationBundleOption> &bundleOption, bool &isEnable) in GetDistributedBundleEnable() argument
197isEnable = preferencesInfo_->GetDistributedBundleEnable(bundleOption->GetBundleName(), bundleOptio… in GetDistributedBundleEnable()
/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/customization/enterprise_device_management/test/unittest/enterprise_device_mgr_ability/enterprise_device_mgr_ability_test/
Denterprise_device_mgr_ability_test.cpp144 bool isEnable = edmMgr_->IsAdminEnabled(admin, DEFAULT_USER_ID); variable
145 EXPECT_TRUE(!isEnable);
167 bool isEnable = edmMgr_->IsAdminEnabled(admin, DEFAULT_USER_ID); variable
168 EXPECT_TRUE(!isEnable);
199 bool isEnable = edmMgr_->IsAdminEnabled(admin, DEFAULT_USER_ID); variable
200 EXPECT_TRUE(isEnable);
225 bool isEnable = edmMgr_->IsAdminEnabled(admin, DEFAULT_USER_ID); variable
226 EXPECT_TRUE(!isEnable);
257 bool isEnable = edmMgr_->IsAdminEnabled(admin, DEFAULT_USER_ID); variable
258 EXPECT_TRUE(isEnable);
[all …]
/base/account/os_account/frameworks/osaccount/native/test/moduletest/
Dos_account_manager_module_test.cpp547 bool isEnable = false; variable
549 …countManager::IsOsAccountConstraintEnable(osAccountInfoOne.GetLocalId(), CONSTANT_PRINT, isEnable),
551 EXPECT_EQ(isEnable, true);
565 bool isEnable = true; variable
567 …countManager::IsOsAccountConstraintEnable(osAccountInfoOne.GetLocalId(), CONSTANT_PRINT, isEnable),
569 EXPECT_EQ(isEnable, false);
1450 bool isEnable = false; variable
1452 …countManager::IsOsAccountConstraintEnable(osAccountInfoOne.GetLocalId(), CONSTANT_PRINT, isEnable),
1454 EXPECT_EQ(isEnable, true);
1455 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.cpp156 bool isEnable = true; variable
158 OsAccountManager::IsOsAccountConstraintEnable(TEST_USER_ID, CONSTANT_PRINT, isEnable);
160 ASSERT_EQ(isEnable, false);
/base/account/os_account/interfaces/kits/napi/osaccount/src/
Dnapi_os_account.cpp1003 auto isEnable = std::make_unique<IsConEnableAsyncContext>(); in InnerIsOsAccountConstraintEnable() local
1004 isEnable->env = env; in InnerIsOsAccountConstraintEnable()
1005 isEnable->throwErr = throwErr; in InnerIsOsAccountConstraintEnable()
1007 if (!ParseParaIsEnable(env, cbInfo, isEnable.get()) && throwErr) { in InnerIsOsAccountConstraintEnable()
1012 if (isEnable->callbackRef == nullptr) { in InnerIsOsAccountConstraintEnable()
1013 napi_create_promise(env, &isEnable->deferred, &result); in InnerIsOsAccountConstraintEnable()
1022 reinterpret_cast<void *>(isEnable.get()), &isEnable->work); in InnerIsOsAccountConstraintEnable()
1024 napi_queue_async_work_with_qos(env, isEnable->work, napi_qos_default); in InnerIsOsAccountConstraintEnable()
1025 isEnable.release(); in InnerIsOsAccountConstraintEnable()
/base/account/os_account/services/accountmgr/test/moduletest/os_account/
Dos_account_manager_service_module_test.cpp488 bool isEnable = false; variable
490 osAccountInfoOne.GetLocalId(), CONSTANTS_STRING_WIFI, isEnable), ERR_OK);
491 EXPECT_EQ(isEnable, true);
505 bool isEnable = true; variable
507 osAccountInfoOne.GetLocalId(), CONSTANTS_STRING_WIFI, isEnable), ERR_OK);
508 EXPECT_EQ(isEnable, false);
510 osAccountInfoOne.GetLocalId(), CONSTANTS_STRING_WIFI, isEnable), ERR_OK);
511 EXPECT_EQ(isEnable, false);
515 …EQ(osAccountManagerService_->IsOsAccountConstraintEnable(localId, CONSTANTS_STRING_WIFI, isEnable),
517 …sAccountManagerService_->CheckOsAccountConstraintEnabled(localId, CONSTANTS_STRING_WIFI, isEnable),
/base/account/os_account/services/accountmgr/src/osaccount/
Dos_account_manager_service.cpp824 bool isEnable = true; in PermissionCheck() local
825 innerManager_.IsOsAccountConstraintEnable(callerUserId, constraintName, isEnable); in PermissionCheck()
826 if (isEnable) { in PermissionCheck()
/base/notification/distributed_notification_service/frameworks/js/napi/include/manager/
Dnapi_slot.h153 bool isEnable = false; member
/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.cpp159 bool isEnable = false; member
1374 … asynccallbackinfo->params.option, asynccallbackinfo->params.outType, asynccallbackinfo->isEnable); in IsEnableNotificationSlot()
1382 napi_get_boolean(env, asynccallbackinfo->isEnable, &result); in IsEnableNotificationSlot()
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
Dnapi_slot.cpp826 … asynccallbackinfo->params.option, asynccallbackinfo->params.outType, asynccallbackinfo->isEnable); in NapiIsEnableNotificationSlot()
834 napi_get_boolean(env, asynccallbackinfo->isEnable, &result); in NapiIsEnableNotificationSlot()
/base/location/test/location_locator/source/
Dlocator_service_test.cpp157 void LocatorServiceTest::ChangedLocationMode(bool isEnable) in ChangedLocationMode() argument
159 std::string value = isEnable ? "3" : "0"; in ChangedLocationMode()
/base/account/os_account/interfaces/kits/napi/appaccount/src/
Dnapi_app_account_common.cpp692 … result = (napi_get_value_bool(env, argv, &asyncContext->isEnable) == napi_ok) ? true : false; in ParseAppAccountProperty()
Dnapi_app_account.cpp576 … AppAccountManager::SetAppAccountSyncEnable(asyncContext->name, asyncContext->isEnable); in SetDataSyncEnabledInternal()
/base/account/os_account/
DREADME_zh.md354 …nable(name: string, isEnable: boolean, callback: AsyncCallback&lt;void&gt;): void;<br/>setAppAccou…
DREADME.md300 …"></a><a name="p686934433810"></a>setAppAccountSyncEnable(name: string, isEnable: boolean, callbac…