/base/account/os_account/services/accountmgr/test/mock/app_account/ |
D | mock_app_account_stub.cpp | 56 return ERR_OK; in AddAccount() 63 return ERR_OK; in AddAccountImplicitly() 69 return ERR_OK; in CreateAccount() 76 return ERR_OK; in CreateAccountImplicitly() 94 return ERR_OK; in DeleteAccount() 101 return ERR_OK; in GetAccountExtraInfo() 108 return ERR_OK; in SetAccountExtraInfo() 115 return ERR_OK; in EnableAppAccess() 122 return ERR_OK; in DisableAppAccess() 129 return ERR_OK; in SetAppAccess() [all …]
|
D | mock_app_account_authenticator_stub.cpp | 26 return ERR_OK; in AddAccountImplicitly() 34 return ERR_OK; in Authenticate() 41 return ERR_OK; in VerifyCredential() 48 return ERR_OK; in CheckAccountLabels() 55 return ERR_OK; in SetProperties() 61 return ERR_OK; in IsAccountRemovable() 68 return ERR_OK; in CreateAccountImplicitly() 75 return ERR_OK; in Auth()
|
/base/account/os_account/services/accountmgr/test/moduletest/app_account/ |
D | app_account_manager_service_module_test.cpp | 138 ASSERT_EQ(result, ERR_OK); in TearDownTestCase() 145 ASSERT_EQ(result, ERR_OK); in TearDownTestCase() 170 EXPECT_EQ(result, ERR_OK); 173 EXPECT_EQ(result, ERR_OK); 188 EXPECT_EQ(result, ERR_OK); 191 EXPECT_EQ(result, ERR_OK); 205 EXPECT_EQ(result, ERR_OK); 208 EXPECT_EQ(result, ERR_OK); 222 EXPECT_EQ(result, ERR_OK); 225 EXPECT_EQ(result, ERR_OK); [all …]
|
D | app_account_manager_service_sync_module_test.cpp | 112 EXPECT_EQ(result, ERR_OK); 120 EXPECT_EQ(result, ERR_OK); 132 EXPECT_EQ(result, ERR_OK); 146 EXPECT_EQ(result, ERR_OK); 149 EXPECT_EQ(result, ERR_OK); 159 EXPECT_EQ(result, ERR_OK); 177 EXPECT_EQ(result, ERR_OK); 191 EXPECT_EQ(result, ERR_OK); 205 EXPECT_EQ(result, ERR_OK); 208 EXPECT_EQ(result, ERR_OK); [all …]
|
/base/account/os_account/frameworks/osaccount/native/test/moduletest/ |
D | os_account_manager_module_test.cpp | 262 while (ret != ERR_OK || !isOsAccountActived) { in SetUpTestCase() 298 …AccountManager::CreateOsAccount(STRING_TEST_NAME, OsAccountType::GUEST, osAccountInfoOne), ERR_OK); 300 …_EQ(OsAccountManager::QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo), ERR_OK); 303 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 316 ERR_OK); 328 …E(OsAccountManager::CreateOsAccount(STRING_EMPTY, OsAccountType::GUEST, osAccountInfoOne), ERR_OK); 340 …AccountManager::CreateOsAccount(STRING_TEST_NAME, OsAccountType::ADMIN, osAccountInfoOne), ERR_OK); 342 …_EQ(OsAccountManager::QueryOsAccountById(osAccountInfoOne.GetLocalId(), osAccountInfoTwo), ERR_OK); 345 ASSERT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 357 …ccountManager::CreateOsAccount(STRING_TEST_NAME, OsAccountType::NORMAL, osAccountInfoOne), ERR_OK); [all …]
|
/base/account/os_account/frameworks/osaccount/core/src/ |
D | os_account_proxy.cpp | 47 if (result != ERR_OK) { in CreateOsAccount() 53 if (result != ERR_OK) { in CreateOsAccount() 63 return ERR_OK; in CreateOsAccount() 93 if (result != ERR_OK) { in CreateOsAccountForDomain() 99 if (result != ERR_OK) { in CreateOsAccountForDomain() 103 return ERR_OK; in CreateOsAccountForDomain() 116 if (result == ERR_OK) { in IsOsAccountExists() 126 if (result == ERR_OK) { in IsOsAccountActived() 150 if (ret != ERR_OK) { in CheckOsAccountConstraintEnabled() 158 if (ret != ERR_OK) { in CheckOsAccountConstraintEnabled() [all …]
|
D | os_account.cpp | 36 return ERR_OK; in CheckInvalidLocalId() 65 if (result != ERR_OK) { in CreateOsAccount() 89 if (result != ERR_OK) { in CreateOsAccountForDomain() 108 if (result != ERR_OK) { in RemoveOsAccount() 120 if (result != ERR_OK) { in IsOsAccountExists() 124 if (result != ERR_OK) { in IsOsAccountExists() 136 if (result != ERR_OK) { in IsOsAccountActived() 140 if (result != ERR_OK) { in IsOsAccountActived() 152 if (result != ERR_OK) { in IsOsAccountConstraintEnable() 156 if (result != ERR_OK) { in IsOsAccountConstraintEnable() [all …]
|
/base/customization/enterprise_device_management/test/unittest/src/ |
D | policy_manager_test.cpp | 68 ASSERT_TRUE(res == ERR_OK); 72 ASSERT_TRUE(res == ERR_OK); 75 ASSERT_TRUE(res == ERR_OK); 79 ASSERT_TRUE(res == ERR_OK); 81 ASSERT_TRUE(res == ERR_OK); 84 ASSERT_TRUE(res == ERR_OK); 88 ASSERT_TRUE(res == ERR_OK); 90 ASSERT_TRUE(res == ERR_OK); 103 ASSERT_TRUE(res == ERR_OK); 107 ASSERT_TRUE(res == ERR_OK); [all …]
|
/base/account/os_account/services/accountmgr/test/mock/os_account/ |
D | os_account_interface.cpp | 23 return ERR_OK; in SendToAMSAccountStart() 29 return ERR_OK; in SendToAMSAccountStop() 35 return ERR_OK; in SendToBMSAccountCreate() 41 return ERR_OK; in SendToBMSAccountDelete() 48 return ERR_OK; in SendToIDMAccountDelete() 70 return ERR_OK; in SendToStorageAccountCreate() 76 return ERR_OK; in SendToStorageAccountRemove() 82 return ERR_OK; in SendToStorageAccountStart() 88 return ERR_OK; in SendToStorageAccountStop()
|
/base/account/os_account/frameworks/domain_account/test/moduletest/src/ |
D | domain_account_client_module_test.cpp | 110 ASSERT_EQ(DomainAccountClient::GetInstance().UnregisterPlugin(), ERR_OK); 111 ASSERT_EQ(DomainAccountClient::GetInstance().RegisterPlugin(g_plugin), ERR_OK); 122 ASSERT_EQ(DomainAccountClient::GetInstance().UnregisterPlugin(), ERR_OK); 163 ASSERT_EQ(DomainAccountClient::GetInstance().UnregisterPlugin(), ERR_OK); 164 ASSERT_EQ(DomainAccountClient::GetInstance().RegisterPlugin(g_plugin), ERR_OK); 185 DomainAccountClient::GetInstance().Auth(info, VALID_PASSWORD, testCallback), ERR_OK); 205 DomainAccountClient::GetInstance().Auth(info, VALID_PASSWORD, testCallback), ERR_OK); 215 DomainAccountClient::GetInstance().Auth(info, VALID_PASSWORD, testCallbackSec), ERR_OK); 235 DomainAccountClient::GetInstance().Auth(info, INVALID_PASSWORD, testCallback), ERR_OK); 276 ASSERT_EQ(DomainAccountClient::GetInstance().UnregisterPlugin(), ERR_OK); [all …]
|
/base/account/os_account/services/accountmgr/src/osaccount/ |
D | inner_os_account_manager.cpp | 94 if (errCode != ERR_OK) { in CreateBaseStandardAccount() 114 if (errCode != ERR_OK) { in StartAccount() 122 if (errCode != ERR_OK) { in StartAccount() 130 if (SendMsgForAccountCreate(osAccountInfo) != ERR_OK) { in StartAccount() 135 if (SendMsgForAccountActivate(osAccountInfo) != ERR_OK) { in StartAccount() 146 if (QueryAllCreatedOsAccounts(osAccountInfos) != ERR_OK) { in RestartActiveAccount() 154 if (ActivateOsAccount(id) != ERR_OK) { in RestartActiveAccount() 165 if (QueryAllCreatedOsAccounts(osAccountInfos) != ERR_OK) { in ResetAccountStatus() 182 if (errCode != ERR_OK) { in PrepareOsAccountInfo() 188 if (errCode != ERR_OK) { in PrepareOsAccountInfo() [all …]
|
/base/account/os_account/services/accountmgr/test/moduletest/os_account/ |
D | os_account_manager_service_module_test.cpp | 212 EXPECT_EQ(errCode, ERR_OK); 215 EXPECT_EQ(errCode, ERR_OK); 218 EXPECT_EQ(errCode, ERR_OK); 258 EXPECT_EQ(errCode, ERR_OK); 272 EXPECT_EQ(errCode, ERR_OK); 277 EXPECT_EQ(errCode, ERR_OK); 289 …ccountManagerService_->CreateOsAccount(STRING_TEST_NAME, INT_TEST_TYPE, osAccountInfoOne), ERR_OK); 290 EXPECT_EQ(osAccountManagerService_->ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 291 EXPECT_EQ(osAccountManagerService_->RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 310 EXPECT_NE(errCode, ERR_OK); [all …]
|
/base/msdp/device_status/libs/test/unittest/src/ |
D | device_status_mock_test.cpp | 137 EXPECT_TRUE(g_testMock->RegisterCallback(callback_) == ERR_OK); 138 EXPECT_TRUE(g_testMock->UnregisterCallback() == ERR_OK); 151 EXPECT_TRUE(g_testMock->RegisterCallback(callback_) == ERR_OK); 152 EXPECT_TRUE(g_testMock->Enable(Type::TYPE_INVALID) == ERR_OK); 153 EXPECT_TRUE(g_testMock->Disable(Type::TYPE_INVALID) == ERR_OK); 154 EXPECT_TRUE(g_testMock->UnregisterCallback() == ERR_OK); 167 EXPECT_TRUE(g_testMock->RegisterCallback(callback_) == ERR_OK); 168 EXPECT_TRUE(g_testMock->Enable(Type::TYPE_ABSOLUTE_STILL) == ERR_OK); 169 EXPECT_TRUE(g_testMock->Disable(Type::TYPE_ABSOLUTE_STILL) == ERR_OK); 170 EXPECT_TRUE(g_testMock->UnregisterCallback() == ERR_OK); [all …]
|
/base/sensors/miscdevice/services/miscdevice_service/hdi_connection/interface/src/ |
D | light_hdi_connection.cpp | 39 if (ret == ERR_OK) { in ConnectHdi() 41 return ERR_OK; in ConnectHdi() 52 if (ret != ERR_OK) { in ConnectHdiService() 62 return ERR_OK; in GetLightList() 69 if (ret != ERR_OK) { in TurnOn() 73 return ERR_OK; in TurnOn() 80 if (ret != ERR_OK) { in TurnOff() 84 return ERR_OK; in TurnOff() 91 if (ret != ERR_OK) { in DestroyHdiConnection() 95 return ERR_OK; in DestroyHdiConnection()
|
/base/powermgr/power_manager/frameworks/native/ |
D | power_mgr_client.cpp | 54 return ERR_OK; in Connect() 80 return ERR_OK; in Connect() 108 RETURN_IF_WITH_RET(Connect() != ERR_OK, PowerErrors::ERR_CONNECTION_FAIL); in RebootDevice() 114 RETURN_IF_WITH_RET(Connect() != ERR_OK, PowerErrors::ERR_CONNECTION_FAIL); in RebootDeviceForDeprecated() 120 RETURN_IF_WITH_RET(Connect() != ERR_OK, PowerErrors::ERR_CONNECTION_FAIL); in ShutDownDevice() 126 RETURN_IF_WITH_RET(Connect() != ERR_OK, PowerErrors::ERR_CONNECTION_FAIL); in SuspendDevice() 133 RETURN_IF_WITH_RET(Connect() != ERR_OK, PowerErrors::ERR_CONNECTION_FAIL); in WakeupDevice() 140 RETURN_IF_WITH_RET(Connect() != ERR_OK, false); in RefreshActivity() 152 RETURN_IF_WITH_RET(Connect() != ERR_OK, false); in OverrideScreenOffTime() 160 RETURN_IF_WITH_RET(Connect() != ERR_OK, false); in RestoreScreenOffTime() [all …]
|
/base/powermgr/thermal_manager/utils/native/src/ |
D | file_operation.cpp | 34 if (access(dir.c_str(), 0) != ERR_OK) { in CreateNodeDir() 36 if (flag == ERR_OK) { in CreateNodeDir() 45 return ERR_OK; in CreateNodeDir() 52 if (fd < ERR_OK) { in CreateNodeFile() 60 return ERR_OK; in CreateNodeFile() 70 if (ret == ERR_OK) { in WriteFile() 74 if (state != ERR_OK) { in WriteFile() 79 if (state != ERR_OK) { in WriteFile() 82 return ERR_OK; in WriteFile() 91 if (fd < ERR_OK) { in ReadFile() [all …]
|
/base/powermgr/power_manager/utils/shell/src/ |
D | power_shell_command.cpp | 127 return ERR_OK; in CreateCommandMap() 134 return ERR_OK; in CreateMessageMap() 139 return OHOS::ERR_OK; in init() 146 return ERR_OK; in RunAsHelpCommand() 156 return ERR_OK; in RunAsSetModeCommand() 161 return ERR_OK; in RunAsSetModeCommand() 179 return ERR_OK; in RunAsSetModeCommand() 188 return ERR_OK; in RunAsWakeupCommand() 196 return ERR_OK; in RunAsSuspendCommand() 217 return ERR_OK; in RunAsDumpCommand() [all …]
|
/base/account/os_account/services/accountmgr/test/unittest/common/account_file_operator_test/ |
D | account_file_operator_test.cpp | 90 EXPECT_EQ(osAccountFileOperator_.CreateDir(TEST_DIR_1), ERR_OK); 91 EXPECT_EQ(osAccountFileOperator_.DeleteDirOrFile(TEST_DIR_1), ERR_OK); 102 EXPECT_EQ(osAccountFileOperator_.CreateDir(TEST_DIR_1), ERR_OK); 103 …(osAccountFileOperator_.InputFileByPathAndContent(TEST_DIR_1 + "/" + TEST_FILE_1, "file"), ERR_OK); 105 …XPECT_EQ(osAccountFileOperator_.GetFileContentByPath(TEST_DIR_1 + "/" + TEST_FILE_1, str), ERR_OK); 107 EXPECT_EQ(osAccountFileOperator_.DeleteDirOrFile(TEST_DIR_1), ERR_OK); 118 EXPECT_EQ(osAccountFileOperator_.CreateDir(TEST_DIR_2), ERR_OK); 119 …(osAccountFileOperator_.InputFileByPathAndContent(TEST_DIR_2 + "/" + TEST_FILE_1, "file"), ERR_OK); 120 EXPECT_EQ(osAccountFileOperator_.DeleteDirOrFile(TEST_DIR_2), ERR_OK); 133 …FileOperator_.GetFileContentByPath("/system/etc/account/osaccount_constraints.json", str), ERR_OK);
|
/base/account/os_account/services/accountmgr/src/appaccount/ |
D | app_account_control_manager.cpp | 51 if (result != ERR_OK) { in AddAccount() 57 if (result != ERR_OK) { in AddAccount() 66 return ERR_OK; in AddAccount() 74 if (result != ERR_OK) { in CreateAccount() 76 if (result != ERR_OK) { in CreateAccount() 81 if (result != ERR_OK) { in CreateAccount() 90 return ERR_OK; in CreateAccount() 98 if (result != ERR_OK) { in DeleteAccount() 109 if (result != ERR_OK) { in DeleteAccount() 115 return ERR_OK; in DeleteAccount() [all …]
|
/base/account/os_account/tools/acm/src/ |
D | account_command.cpp | 69 return ERR_OK; in CreateCommandMap() 74 return ERR_OK; in CreateMessageMap() 79 return ERR_OK; in init() 86 return ERR_OK; in RunAsHelpCommand() 92 ErrCode result = ERR_OK; in RunAsCreateCommand() 118 if (result == ERR_OK) { in RunAsCreateCommand() 134 if (result != ERR_OK) { in RunAsCreateCommand() 144 if (result == ERR_OK) { in RunAsCreateCommand() 157 ErrCode result = ERR_OK; in RunAsDeleteCommand() 162 if (result != ERR_OK) { in RunAsDeleteCommand() [all …]
|
/base/location/services/location_gnss/gnss/source/ |
D | gnss_event_callback.cpp | 33 return ERR_OK; in ReportLocation() 49 return ERR_OK; in ReportLocation() 56 return ERR_OK; in ReportLocation() 64 return ERR_OK; in ReportGnssWorkingStatus() 67 return ERR_OK; in ReportGnssWorkingStatus() 75 return ERR_OK; in ReportNmea() 79 return ERR_OK; in ReportNmea() 84 return ERR_OK; in ReportGnssCapabilities() 92 return ERR_OK; in ReportSatelliteStatusInfo() 109 return ERR_OK; in ReportSatelliteStatusInfo() [all …]
|
/base/powermgr/battery_manager/frameworks/native/src/ |
D | battery_srv_client.cpp | 39 return ERR_OK; in Connect() 63 return ERR_OK; in Connect() 90 RETURN_IF_WITH_RET(Connect() != ERR_OK, capacity); in GetCapacity() 98 RETURN_IF_WITH_RET(Connect() != ERR_OK, chargingState); in GetChargingStatus() 106 RETURN_IF_WITH_RET(Connect() != ERR_OK, healthStatus); in GetHealthStatus() 114 RETURN_IF_WITH_RET(Connect() != ERR_OK, pluggedType); in GetPluggedType() 122 RETURN_IF_WITH_RET(Connect() != ERR_OK, voltage); in GetVoltage() 130 RETURN_IF_WITH_RET(Connect() != ERR_OK, present); in GetPresent() 138 RETURN_IF_WITH_RET(Connect() != ERR_OK, technology); in GetTechnology() 146 RETURN_IF_WITH_RET(Connect() != ERR_OK, temperature); in GetBatteryTemperature() [all …]
|
/base/powermgr/battery_statistics/frameworks/native/src/ |
D | battery_stats_client.cpp | 38 return ERR_OK; in Connect() 51 return ERR_OK; in Connect() 79 if (Connect() != ERR_OK) { in GetBatteryStats() 91 if (Connect() != ERR_OK) { in GetAppStatsMah() 102 STATS_RETURN_IF(Connect() != ERR_OK); in SetOnBattery() 110 if (Connect() != ERR_OK) { in GetAppStatsPercent() 122 if (Connect() != ERR_OK) { in GetPartStatsMah() 134 if (Connect() != ERR_OK) { in GetPartStatsPercent() 145 STATS_RETURN_IF(Connect() != ERR_OK); in Reset() 153 STATS_RETURN_IF_WITH_RET(Connect() != ERR_OK, time); in GetTotalTimeSecond() [all …]
|
/base/location/test/mock/src/ |
D | mock_service_registry.cpp | 79 return ERR_OK; in AddOnDemandSystemAbilityInfo() 85 return ERR_OK; in RemoveSystemAbilityWrapper() 91 return ERR_OK; in RemoveSystemAbility() 105 return ERR_OK; in SubscribeSystemAbility() 112 return ERR_OK; in UnSubscribeSystemAbility() 119 return ERR_OK; in LoadSystemAbility() 125 return ERR_OK; in UnloadSystemAbility() 131 return ERR_OK; in CancelUnloadSystemAbility() 138 return ERR_OK; in LoadSystemAbility() 144 return ERR_OK; in GetRunningSystemProcess() [all …]
|
/base/account/os_account/frameworks/ohosaccount/test/moduletests/account_mgr_test/ |
D | account_mgr_inner_sdk_func_test.cpp | 93 EXPECT_EQ(ERR_OK, ret); 143 …ccountManager::CreateOsAccount(STRING_TEST_NAME, OsAccountType::NORMAL, osAccountInfoOne), ERR_OK); 144 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 155 EXPECT_EQ(ret, ERR_OK); 157 EXPECT_EQ(ret, ERR_OK); 168 EXPECT_EQ(ret, ERR_OK); 170 EXPECT_EQ(ret, ERR_OK); 177 EXPECT_EQ(OsAccountManager::RemoveOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); 189 …ccountManager::CreateOsAccount(STRING_TEST_NAME, OsAccountType::NORMAL, osAccountInfoOne), ERR_OK); 190 EXPECT_EQ(OsAccountManager::ActivateOsAccount(osAccountInfoOne.GetLocalId()), ERR_OK); [all …]
|