/base/update/updater/test/unittest/updater_ui_test/view/ |
D | ui_page_manager_unittest.cpp | 46 TestGraphicEngine::GetInstance(); in SetUpTestCase() 56 inline PageManager &GetInstance() in GetInstance() function 58 return PageManager::GetInstance(); in GetInstance() 128 EXPECT_FALSE(GetInstance().Init(pageInfo, "")); 135 EXPECT_FALSE(GetInstance().Init(pageInfo, "page1")); 147 EXPECT_FALSE(GetInstance().Init(pageInfo, "page1")); 150 GetInstance().Reset(); 161 EXPECT_FALSE(GetInstance().Init(pageInfo, "page1")); 166 EXPECT_FALSE(GetInstance().Init(pageInfo, "page1")); 170 EXPECT_FALSE(GetInstance().Init(pageInfo, "page1")); [all …]
|
/base/account/os_account/frameworks/common/test/unittest/common_account_test/ |
D | account_perf_stat_test.cpp | 62 PerfStat::GetInstance().Reset(); in SetUp() 79 PerfStat::GetInstance().SetAccountBindStartTime(ACCOUNT_BIND_START_TIME); 80 int64_t bindStartTime = PerfStat::GetInstance().GetAccountBindStartTime(); 86 PerfStat::GetInstance().SetAccountBindEndTime(ACCOUNT_BIND_END_TIME); 87 PerfStat::GetInstance().Dump(result); 88 int64_t bindEndTime = PerfStat::GetInstance().GetAccountBindEndTime(); 94 PerfStat::GetInstance().SetAccountAddStartTime(ACCOUNT_ADD_START_TIME); 95 int64_t addStartTime = PerfStat::GetInstance().GetAccountAddStartTime(); 101 PerfStat::GetInstance().SetAccountAddEndTime(ACCOUNT_ADD_END_TIME); 102 PerfStat::GetInstance().Dump(result); [all …]
|
/base/powermgr/display_manager/test/unittest/src/ |
D | display_power_mgr_brightness_test.cpp | 36 DisplayPowerMgrClient::GetInstance().SetDisplayState(DisplayState::DISPLAY_ON); in SetUp() 37 DisplayPowerMgrClient::GetInstance().DiscountBrightness(NO_DISCOUNT); in SetUp() 42 DisplayPowerMgrClient::GetInstance().RestoreBrightness(); in TearDown() 43 DisplayPowerMgrClient::GetInstance().CancelBoostBrightness(); in TearDown() 57 bool ret = DisplayPowerMgrClient::GetInstance().SetBrightness(SET_BRIGHTNESS); 59 uint32_t deviceBrightness = DisplayPowerMgrClient::GetInstance().GetDeviceBrightness(); 73 bool ret = DisplayPowerMgrClient::GetInstance().SetBrightness(SET_BRIGHTNESS_VALUE); 77 uint32_t brightness = DisplayPowerMgrClient::GetInstance().GetBrightness(); 93 DisplayPowerMgrClient::GetInstance().SetBrightness(SET_BRIGHTNESS); 96 bool ret = DisplayPowerMgrClient::GetInstance().DiscountBrightness(DISCOUNT_NORMAL); [all …]
|
D | display_power_mgr_service_test.cpp | 36 beforeDisplayState = DisplayPowerMgrClient::GetInstance().GetDisplayState(); in SetUp() 45 DisplayState state = DisplayPowerMgrClient::GetInstance().GetDisplayState(); in TearDown() 48 DisplayPowerMgrClient::GetInstance().SetDisplayState(beforeDisplayState); in TearDown() 65 …sptr<ISystemAbilityManager> sam = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManage… 79 auto ret = DisplayPowerMgrClient::GetInstance().SetDisplayState(DisplayState::DISPLAY_OFF); 91 auto ret = DisplayPowerMgrClient::GetInstance().SetDisplayState(DisplayState::DISPLAY_ON); 103 auto ret = DisplayPowerMgrClient::GetInstance().SetDisplayState(DisplayState::DISPLAY_DIM); 115 auto ret = DisplayPowerMgrClient::GetInstance().SetDisplayState(DisplayState::DISPLAY_SUSPEND); 127 auto ret = DisplayPowerMgrClient::GetInstance().SetDisplayState(DisplayState::DISPLAY_UNKNOWN); 139 DisplayPowerMgrClient::GetInstance().SetDisplayState(DisplayState::DISPLAY_OFF); [all …]
|
/base/update/updater/test/unittest/updater_ui_test/lang/ |
D | ui_language_unittest.cpp | 91 EXPECT_EQ(LanguageUI::GetInstance().LoadLangRes(JsonNode {}), false); 97 EXPECT_EQ(LanguageUI::GetInstance().LoadLangRes(JsonNode {GetTestJson(langRes)}), false); 101 EXPECT_EQ(LanguageUI::GetInstance().LoadLangRes(JsonNode {GetTestJson(langRes)}), false); 105 EXPECT_EQ(LanguageUI::GetInstance().LoadLangRes(JsonNode {GetTestJson(langRes)}), false); 114 EXPECT_EQ(LanguageUI::GetInstance().LoadLangRes(JsonNode {GetTestJson(langRes)}), false); 115 EXPECT_EQ(LanguageUI::GetInstance().ParseLanguage(), Language::CHINESE); 118 EXPECT_EQ(LanguageUI::GetInstance().ParseLanguage(), Language::ENGLISH); 121 EXPECT_EQ(LanguageUI::GetInstance().ParseLanguage(), Language::CHINESE); 124 EXPECT_EQ(LanguageUI::GetInstance().ParseLanguage(), Language::SPANISH); 127 EXPECT_EQ(LanguageUI::GetInstance().ParseLanguage(), Language::CHINESE); [all …]
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
D | notification_helper.cpp | 24 return DelayedSingleton<AnsNotification>::GetInstance()->AddNotificationSlot(slot); in AddNotificationSlot() 29 return DelayedSingleton<AnsNotification>::GetInstance()->AddSlotByType(slotType); in AddSlotByType() 34 return DelayedSingleton<AnsNotification>::GetInstance()->AddNotificationSlots(slots); in AddNotificationSlots() 39 return DelayedSingleton<AnsNotification>::GetInstance()->RemoveNotificationSlot(slotType); in RemoveNotificationSlot() 44 return DelayedSingleton<AnsNotification>::GetInstance()->RemoveAllSlots(); in RemoveAllSlots() 50 return DelayedSingleton<AnsNotification>::GetInstance()->GetNotificationSlot(slotType, slot); in GetNotificationSlot() 55 return DelayedSingleton<AnsNotification>::GetInstance()->GetNotificationSlots(slots); in GetNotificationSlots() 60 …return DelayedSingleton<AnsNotification>::GetInstance()->GetNotificationSlotNumAsBundle(bundleOpti… in GetNotificationSlotNumAsBundle() 65 return DelayedSingleton<AnsNotification>::GetInstance()->PublishNotification(request); in PublishNotification() 70 return DelayedSingleton<AnsNotification>::GetInstance()->PublishNotification(label, request); in PublishNotification() [all …]
|
/base/security/access_token/services/privacymanager/test/unittest/ |
D | permission_record_manager_test.cpp | 148 PermissionRecordManager::GetInstance().Register(); in SetUp() 200 … PermissionRecordManager::GetInstance().RegisterPermActiveStatusCallback(permList, nullptr)); 227 …PermissionRecordManager::GetInstance().RegisterPermActiveStatusCallback(permList, callback->AsObje… 234 …PermissionRecordManager::GetInstance().RegisterPermActiveStatusCallback(permList, callback->AsObje… 238 …PermissionRecordManager::GetInstance().UnRegisterPermActiveStatusCallback(callbacks[i]->AsObject()… 252 … PermissionRecordManager::GetInstance().RegisterPermActiveStatusCallback(permList, nullptr)); 274 PermissionRecordManager::GetInstance().startRecordList_.emplace_back(g_recordA1); 275 PermissionRecordManager::GetInstance().startRecordList_.emplace_back(g_recordA2); 276 PermissionRecordManager::GetInstance().startRecordList_.emplace_back(g_recordB1); 277 PermissionRecordManager::GetInstance().startRecordList_.emplace_back(g_recordB2); [all …]
|
/base/account/os_account/frameworks/osaccount/native/src/ |
D | os_account_manager.cpp | 27 return OsAccount::GetInstance().CreateOsAccount(name, type, osAccountInfo); in CreateOsAccount() 33 return OsAccount::GetInstance().CreateOsAccountForDomain(type, domainInfo, callback); in CreateOsAccountForDomain() 38 return OsAccount::GetInstance().RemoveOsAccount(id); in RemoveOsAccount() 43 return OsAccount::GetInstance().IsOsAccountExists(id, isOsAccountExists); in IsOsAccountExists() 48 return OsAccount::GetInstance().IsOsAccountActived(id, isOsAccountActived); in IsOsAccountActived() 54 return OsAccount::GetInstance().IsOsAccountConstraintEnable(id, constraint, isConstraintEnable); in IsOsAccountConstraintEnable() 60 return OsAccount::GetInstance().CheckOsAccountConstraintEnabled(id, constraint, isEnabled); in CheckOsAccountConstraintEnabled() 65 return OsAccount::GetInstance().IsOsAccountVerified(id, isVerified); in IsOsAccountVerified() 70 return OsAccount::GetInstance().GetCreatedOsAccountsCount(osAccountsCount); in GetCreatedOsAccountsCount() 75 return OsAccount::GetInstance().GetOsAccountLocalIdFromProcess(id); in GetOsAccountLocalIdFromProcess() [all …]
|
/base/print/print_fwk/test/unittest/fwk_inner_napi_test/ |
D | print_manager_client_test.cpp | 64 PrintManagerClient::GetInstance()->SetProxy(obj); in CallRemoteObject() 86 PrintManagerClient::GetInstance()->LoadServerFail(); 87 PrintManagerClient::GetInstance()->StartPrint(testFileList, testFdList, testTaskId); 103 PrintManagerClient::GetInstance()->LoadServerSuccess(); 104 PrintManagerClient::GetInstance()->ResetProxy(); 105 PrintManagerClient::GetInstance()->StartPrint(testFileList, testFdList, testTaskId); 121 PrintManagerClient::GetInstance()->LoadServerFail(); 122 PrintManagerClient::GetInstance()->ResetProxy(); 123 PrintManagerClient::GetInstance()->StartPrint(testFileList, testFdList, testTaskId); 156 PrintManagerClient::GetInstance()->LoadServerSuccess(); [all …]
|
/base/location/test/location_locator/source/ |
D | location_config_manager_test.cpp | 55 EXPECT_EQ(0, LocationConfigManager::GetInstance().Init()); 65 LocationConfigManager::GetInstance().SetLocationSwitchState(STATE_CLOSE)); 67 LocationConfigManager::GetInstance().GetLocationSwitchState()); 70 LocationConfigManager::GetInstance().SetLocationSwitchState(STATE_OPEN)); 72 LocationConfigManager::GetInstance().GetLocationSwitchState()); 75 LocationConfigManager::GetInstance().SetLocationSwitchState(STATE_UNKNOWN)); 77 LocationConfigManager::GetInstance().GetLocationSwitchState()); 79 LocationConfigManager::GetInstance().IsExistFile(GetLocationSwitchConfigPath())); 91 LocationConfigManager::GetInstance().SetPrivacyTypeState(PRIVACY_TYPE_INVALID_LEFT, true)); 93 … LocationConfigManager::GetInstance().GetPrivacyTypeState(PRIVACY_TYPE_INVALID_LEFT, isConfirmed)); [all …]
|
/base/telephony/cellular_call/services/connection/src/ |
D | cellular_call_connection_cs.cpp | 28 if (DelayedSingleton<CellularCallService>::GetInstance() == nullptr) { in DialRequest() 34 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); in DialRequest() 42 CoreManagerInner::GetInstance().Dial( in DialRequest() 51 if (DelayedSingleton<CellularCallService>::GetInstance() == nullptr) { in HangUpRequest() 57 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); in HangUpRequest() 65 CoreManagerInner::GetInstance().Hangup(slotId, RadioEvent::RADIO_HANGUP_CONNECT, index, handle); in HangUpRequest() 72 if (DelayedSingleton<CellularCallService>::GetInstance() == nullptr) { in AnswerRequest() 78 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); in AnswerRequest() 85 CoreManagerInner::GetInstance().Answer(slotId, RadioEvent::RADIO_ACCEPT_CALL, handle); in AnswerRequest() 92 if (DelayedSingleton<CellularCallService>::GetInstance() == nullptr) { in RejectRequest() [all …]
|
D | config_request.cpp | 29 if (DelayedSingleton<ImsCallClient>::GetInstance() == nullptr) { in SetDomainPreferenceModeRequest() 33 … return DelayedSingleton<ImsCallClient>::GetInstance()->SetDomainPreferenceMode(slotId, mode); in SetDomainPreferenceModeRequest() 37 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); in SetDomainPreferenceModeRequest() 42 CoreManagerInner::GetInstance().SetCallPreferenceMode( in SetDomainPreferenceModeRequest() 51 if (DelayedSingleton<ImsCallClient>::GetInstance() == nullptr) { in GetDomainPreferenceModeRequest() 55 return DelayedSingleton<ImsCallClient>::GetInstance()->GetDomainPreferenceMode(slotId); in GetDomainPreferenceModeRequest() 59 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); in GetDomainPreferenceModeRequest() 64 …CoreManagerInner::GetInstance().GetCallPreferenceMode(slotId, RadioEvent::RADIO_GET_CALL_PREFERENC… in GetDomainPreferenceModeRequest() 70 auto imsCallClient = DelayedSingleton<ImsCallClient>::GetInstance(); in SetImsSwitchStatusRequest() 80 auto handle = DelayedSingleton<CellularCallService>::GetInstance()->GetHandler(slotId); in SetVoNRSwitchStatusRequest() [all …]
|
/base/theme/screenlock_mgr/services/include/ |
D | system_event_handler.h | 45 ScreenLockSystemAbility::GetInstance()->OnBeginWakeUp(); in SendSystemEvent() 48 ScreenLockSystemAbility::GetInstance()->OnEndWakeUp(); in SendSystemEvent() 51 ScreenLockSystemAbility::GetInstance()->OnBeginScreenOn(); in SendSystemEvent() 54 ScreenLockSystemAbility::GetInstance()->OnEndScreenOn(); in SendSystemEvent() 57 ScreenLockSystemAbility::GetInstance()->OnBeginSleep(event.eventParams1_); in SendSystemEvent() 60 … ScreenLockSystemAbility::GetInstance()->OnEndSleep(event.eventParams1_, event.eventParams2_); in SendSystemEvent() 63 ScreenLockSystemAbility::GetInstance()->OnBeginScreenOff(); in SendSystemEvent() 66 ScreenLockSystemAbility::GetInstance()->OnEndScreenOff(); in SendSystemEvent() 69 ScreenLockSystemAbility::GetInstance()->OnChangeUser(event.eventParams1_); in SendSystemEvent() 72 ScreenLockSystemAbility::GetInstance()->OnScreenlockEnabled(event.eventParams1_); in SendSystemEvent() [all …]
|
/base/hiviewdfx/hicollie/frameworks/native/test/unittest/common/ |
D | xcollie_interface_test.cpp | 56 …int id = XCollie::GetInstance().SetTimer("TimeoutTimerxce!@#$%^&*()", 1, nullptr, nullptr, XCOLLIE… 63 XCollie::GetInstance().CancelTimer(id); 69 id = XCollie::GetInstance().SetTimer("Timer", 0, nullptr, nullptr, XCOLLIE_FLAG_NOOP); 76 XCollie::GetInstance().CancelTimer(-1); 90 id = XCollie::GetInstance().SetTimer("MyTimeout", 2, callbackFunc, nullptr, XCOLLIE_FLAG_NOOP); 92 …int id1 = XCollie::GetInstance().SetTimer("MyTimeout", 3, callbackFunc1, nullptr, XCOLLIE_FLAG_NOO… 95 XCollie::GetInstance().CancelTimer(id); 102 id = XCollie::GetInstance().SetTimer("MyTimeout", 2, callbackFunc, nullptr, XCOLLIE_FLAG_NOOP); 104 … id1 = XCollie::GetInstance().SetTimer("MyTimeout", 3, callbackFunc1, nullptr, XCOLLIE_FLAG_NOOP); 107 XCollie::GetInstance().CancelTimer(id1); [all …]
|
/base/theme/screenlock_mgr/test/unittest/ |
D | screenlock_service_test.cpp | 55 ScreenLockSystemAbility::GetInstance()->ResetFfrtQueue(); in TearDownTestCase() 98 ScreenLockSystemAbility::GetInstance(); 105 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetInteractiveState(); 123 ScreenLockSystemAbility::GetInstance()->OnSystemEvent(listener); 124 EXPECT_NE(ScreenLockSystemAbility::GetInstance()->systemEventListener_, nullptr); 137 ScreenLockSystemAbility::GetInstance()->state_ = ServiceRunningState::STATE_NOT_START; 138 ScreenLockSystemAbility::GetInstance()->OnStart(); 145 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetInteractiveState(); 160 ScreenLockSystemAbility::GetInstance(); 167 int retVal = ScreenLockSystemAbility::GetInstance()->GetState().GetScreenState(); [all …]
|
/base/hiviewdfx/hiappevent/test/unittest/common/native/ |
D | hiappevent_cache_test.cpp | 38 AppEventCache::GetInstance()->Close(); in TearDown() 54 int result = AppEventCache::GetInstance()->Open(TEST_DIR); 57 result = AppEventCache::GetInstance()->CreateBlock(TEST_BLOCK); 60 auto block = AppEventCache::GetInstance()->GetBlock(TEST_BLOCK); 64 result = AppEventCache::GetInstance()->GetBlocksStat(blocksStat); 68 result = AppEventCache::GetInstance()->CreateBlock("testBlock2"); 71 result = AppEventCache::GetInstance()->GetBlocksStat(blocksStat2); 75 result = AppEventCache::GetInstance()->DestroyBlock(TEST_BLOCK); 77 result = AppEventCache::GetInstance()->DestroyBlock("testBlock2"); 80 result = AppEventCache::GetInstance()->Close(); [all …]
|
/base/security/dlp_permission_service/services/dlp_permission/sa/test/unittest/src/ |
D | dlp_callback_test.cpp | 89 int32_t res = DlpSandboxChangeCallbackManager::GetInstance().AddCallback(0, nullptr); 99 DlpSandboxChangeCallbackManager::GetInstance().callbackInfoMap_. 102 res = DlpSandboxChangeCallbackManager::GetInstance().AddCallback(0, callback->AsObject()); 104 res = DlpSandboxChangeCallbackManager::GetInstance().RemoveCallback(nullptr); 108 DlpSandboxChangeCallbackManager::GetInstance().ExecuteCallbackAsync(dlpSandboxInfo); 110 DlpSandboxChangeCallbackManager::GetInstance().ExecuteCallbackAsync(dlpSandboxInfo); 112 res = DlpSandboxChangeCallbackManager::GetInstance().RemoveCallback(0, result); 114 for (auto it = DlpSandboxChangeCallbackManager::GetInstance().callbackInfoMap_.begin(); 115 it != DlpSandboxChangeCallbackManager::GetInstance().callbackInfoMap_.end(); ++it) { 117 DlpSandboxChangeCallbackManager::GetInstance().callbackInfoMap_.erase(it); [all …]
|
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/ |
D | accesstoken_info_manager_test.cpp | 262 AccessTokenInfoManager::GetInstance().Init(); in SetUpTestCase() 272 atManagerService_ = DelayedSingleton<AccessTokenManagerService>::GetInstance(); in SetUp() 290 int ret = AccessTokenInfoManager::GetInstance().CreateHapTokenInfo(g_infoManagerTestInfoParms, 296 …tokenInfo = AccessTokenInfoManager::GetInstance().GetHapTokenInfoInner(tokenIdEx.tokenIdExStruct.t… 302 … ret = AccessTokenInfoManager::GetInstance().RemoveHapTokenInfo(tokenIdEx.tokenIdExStruct.tokenID); 306 …tokenInfo = AccessTokenInfoManager::GetInstance().GetHapTokenInfoInner(tokenIdEx.tokenIdExStruct.t… 321 int ret = AccessTokenInfoManager::GetInstance().CreateHapTokenInfo(g_infoManagerTestInfoParms, 327 ret = AccessTokenInfoManager::GetInstance().CreateHapTokenInfo(g_infoManagerTestInfoParms, 334 …tokenInfo = AccessTokenInfoManager::GetInstance().GetHapTokenInfoInner(tokenIdEx1.tokenIdExStruct.… 341 …ret = AccessTokenInfoManager::GetInstance().RemoveHapTokenInfo(tokenIdEx1.tokenIdExStruct.tokenID); [all …]
|
/base/telephony/call_manager/services/audio/src/ |
D | audio_proxy.cpp | 36 …return (AudioStandard::AudioSystemManager::GetInstance()->SetAudioScene(audioScene) == TELEPHONY_S… in SetAudioScene() 45 return AudioStandard::AudioSystemManager::GetInstance()->SetDeviceChangeCallback( in SetAudioDeviceChangeCallback() 55 return AudioStandard::AudioSystemManager::GetInstance()->UnsetDeviceChangeCallback(); in UnsetDeviceChangeCallback() 60 if (AudioStandard::AudioSystemManager::GetInstance()->IsDeviceActive( in SetBluetoothDevActive() 65 bool ret = AudioStandard::AudioSystemManager::GetInstance()->SetDeviceActive( in SetBluetoothDevActive() 75 …if (AudioStandard::AudioSystemManager::GetInstance()->IsDeviceActive(AudioStandard::ActiveDeviceTy… in SetSpeakerDevActive() 79 bool ret = AudioStandard::AudioSystemManager::GetInstance()->SetDeviceActive( in SetSpeakerDevActive() 93 …if (AudioStandard::AudioSystemManager::GetInstance()->IsDeviceActive(AudioStandard::ActiveDeviceTy… in SetWiredHeadsetDevActive() 94 int32_t ret = AudioStandard::AudioSystemManager::GetInstance()->SetDeviceActive( in SetWiredHeadsetDevActive() 101 …if (AudioStandard::AudioSystemManager::GetInstance()->IsDeviceActive(AudioStandard::ActiveDeviceTy… in SetWiredHeadsetDevActive() [all …]
|
/base/account/os_account/frameworks/appaccount/native/src/ |
D | app_account_manager.cpp | 25 return AppAccount::GetInstance().AddAccount(name, extraInfo); in AddAccount() 31 return AppAccount::GetInstance().AddAccountImplicitly( in AddAccountImplicitly() 37 return AppAccount::GetInstance().CreateAccount(name, options); in CreateAccount() 43 return AppAccount::GetInstance().CreateAccountImplicitly(owner, options, callback); in CreateAccountImplicitly() 48 return AppAccount::GetInstance().DeleteAccount(name); in DeleteAccount() 53 return AppAccount::GetInstance().GetAccountExtraInfo(name, extraInfo); in GetAccountExtraInfo() 58 return AppAccount::GetInstance().SetAccountExtraInfo(name, extraInfo); in SetAccountExtraInfo() 63 return AppAccount::GetInstance().EnableAppAccess(name, authorizedApp); in EnableAppAccess() 68 return AppAccount::GetInstance().DisableAppAccess(name, authorizedApp); in DisableAppAccess() 73 return AppAccount::GetInstance().SetAppAccess(name, authorizedApp, isAccessible); in SetAppAccess() [all …]
|
/base/time/time_service/test/unittest/service_test/src/ |
D | time_client_test.cpp | 156 int32_t result = TimeServiceClient::GetInstance()->SetTimeV9(time); 168 int32_t result = TimeServiceClient::GetInstance()->SetTimeV9(-1); 180 int32_t result = TimeServiceClient::GetInstance()->SetTimeV9(LLONG_MAX); 196 int32_t result = TimeServiceClient::GetInstance()->SetTimeV9(time); 199 bool ret = TimeServiceClient::GetInstance()->SetTime(time, code); 215 auto getCurrentTimeZone = TimeServiceClient::GetInstance()->GetTimeZone(); 218 int32_t result = TimeServiceClient::GetInstance()->SetTimeZoneV9(timeZoneNicosia); 221 int32_t getTimeZoneResult = TimeServiceClient::GetInstance()->GetTimeZone(getTimeZoneNicosia); 224 int32_t ret = TimeServiceClient::GetInstance()->SetTimeZoneV9(getCurrentTimeZone); 236 int32_t result = TimeServiceClient::GetInstance()->SetTimeZoneV9("123"); [all …]
|
D | time_service_test.cpp | 164 TimeServiceClient::GetInstance()->CreateTimerV9(timerInfo, g_idleTimerId); in StartIdleTimer() 168 TimeServiceClient::GetInstance()->StartTimerV9(g_idleTimerId, time + 5000); in StartIdleTimer() 173 TimeServiceClient::GetInstance()->DestroyTimerV9(g_idleTimerId); in DestroyIdleTimer() 184 auto ret = TimeServiceClient::GetInstance()->ProxyTimer(RESERVED_UID, true, true); 186 ret = TimeServiceClient::GetInstance()->ProxyTimer(RESERVED_UID, false, true); 198 auto ret = TimeServiceClient::GetInstance()->ProxyTimer(RESERVED_UID, true, true); 200 ret = TimeServiceClient::GetInstance()->ResetAllProxy(); 212 auto ret = TimeServiceClient::GetInstance()->ProxyTimer(RESERVED_UID, false, true); 224 auto ret = TimeServiceClient::GetInstance()->ProxyTimer(RESERVED_UID, true, false); 226 ret = TimeServiceClient::GetInstance()->ProxyTimer(RESERVED_UID, false, false); [all …]
|
/base/telephony/call_manager/services/audio/src/audio_state/ |
D | inactive_state.cpp | 32 if (DelayedSingleton<CallStateProcessor>::GetInstance()-> in ProcessEvent() 34 result = DelayedSingleton<AudioSceneProcessor>::GetInstance()->ProcessEvent( in ProcessEvent() 39 if (DelayedSingleton<CallStateProcessor>::GetInstance()-> in ProcessEvent() 41 result = DelayedSingleton<AudioSceneProcessor>::GetInstance()->ProcessEvent( in ProcessEvent() 46 if (DelayedSingleton<CallStateProcessor>::GetInstance()-> in ProcessEvent() 48 result = DelayedSingleton<AudioSceneProcessor>::GetInstance()->ProcessEvent( in ProcessEvent() 54 if (DelayedSingleton<CallStateProcessor>::GetInstance()-> in ProcessEvent() 56 result = DelayedSingleton<AudioSceneProcessor>::GetInstance()->ProcessEvent( in ProcessEvent() 62 if (DelayedSingleton<CallStateProcessor>::GetInstance()-> in ProcessEvent() 64 result = DelayedSingleton<AudioSceneProcessor>::GetInstance()->ProcessEvent( in ProcessEvent()
|
/base/location/test/fuzztest/locator/locationconfigmanager_fuzzer/ |
D | locationconfigmanager_fuzzer.cpp | 28 LocationConfigManager::GetInstance().Init(); in LocationConfigManagerFuzzerTest() 29 LocationConfigManager::GetInstance().GetLocationSwitchState(); in LocationConfigManagerFuzzerTest() 30 LocationConfigManager::GetInstance().SetLocationSwitchState(data[index++]); in LocationConfigManagerFuzzerTest() 32 LocationConfigManager::GetInstance().IsExistFile(fileName); in LocationConfigManagerFuzzerTest() 34 LocationConfigManager::GetInstance().CreateFile(fileName, fileData); in LocationConfigManagerFuzzerTest() 35 LocationConfigManager::GetInstance().GetPrivacyTypeConfigPath(data[index++]); in LocationConfigManagerFuzzerTest() 37 LocationConfigManager::GetInstance().GetPrivacyTypeState(data[index++], isConfirmed); in LocationConfigManagerFuzzerTest() 38 LocationConfigManager::GetInstance().SetPrivacyTypeState(data[index++], true); in LocationConfigManagerFuzzerTest() 39 LocationConfigManager::GetInstance().SetPrivacyTypeState(data[index++], false); in LocationConfigManagerFuzzerTest()
|
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/ |
D | js_get_input_method_textchange_listener.cpp | 22 sptr<JsGetInputMethodTextChangedListener> JsGetInputMethodTextChangedListener::GetInstance() in GetInstance() function in OHOS::MiscServices::JsGetInputMethodTextChangedListener 35 JsGetInputMethodController::GetInstance()->InsertText(text); in InsertText() 40 JsGetInputMethodController::GetInstance()->DeleteRight(length); in DeleteForward() 45 JsGetInputMethodController::GetInstance()->DeleteLeft(length); in DeleteBackward() 50 JsGetInputMethodController::GetInstance()->SendKeyboardStatus(status); in SendKeyboardStatus() 55 JsGetInputMethodController::GetInstance()->SendFunctionKey(functionKey); in SendFunctionKey() 60 JsGetInputMethodController::GetInstance()->MoveCursor(direction); in MoveCursor() 65 JsGetInputMethodController::GetInstance()->HandleExtendAction(action); in HandleExtendAction() 70 return JsGetInputMethodController::GetInstance()->GetText("getLeftTextOfCursor", number); in GetLeftTextOfCursor() 75 return JsGetInputMethodController::GetInstance()->GetText("getRightTextOfCursor", number); in GetRightTextOfCursor() [all …]
|