Home
last modified time | relevance | path

Searched refs:isExist (Results 1 – 25 of 203) sorted by relevance

123456789

/ohos5.0/base/startup/init/test/unittest/modules/
H A Deng_unittest.cpp106 if (isExist) {
110 isExist = IsDirExist(TARGET_PATH.c_str());
111 if (isExist) {
119 EXPECT_EQ(isExist, true);
123 EXPECT_EQ(isExist, true);
134 EXPECT_EQ(isExist, true);
148 bool isExist = false; variable
152 EXPECT_EQ(isExist, true);
160 EXPECT_EQ(isExist, false);
192 bool isExist = false; variable
[all …]
/ohos5.0/base/customization/enterprise_device_management/test/unittest/common/external/
H A Dedm_os_account_manager_impl_test.cpp113 bool isExist; variable
114 edmOsAccountManagerImpl.IsOsAccountExists(ILLEGAL_ACCOUNT_ID, isExist);
115 ASSERT_FALSE(isExist);
117 edmOsAccountManagerImpl.IsOsAccountExists(ILLEGAL_ACCOUNT_ID2, isExist);
118 ASSERT_FALSE(isExist);
129 bool isExist; variable
131 edmOsAccountManagerImpl.IsOsAccountExists(TEST_ACCOUNT_ID, isExist);
132 ASSERT_TRUE(isExist);
134 int ret = edmOsAccountManagerImpl.IsOsAccountExists(TEST_ACCOUNT_ID, isExist);
/ohos5.0/foundation/multimedia/media_foundation/services/media_monitor/server/src/
H A Devent_aggregate.cpp159 auto isExist = [&bean](const std::shared_ptr<EventBean> &deviceUsageBean) { in HandleDeviceChangeForDeviceUsage() local
181 auto isExist = [&bean](const std::shared_ptr<EventBean> &captureMutedBean) { in HandleDeviceChangeForCaptureMuted() local
201 auto isExist = [&bean](const std::shared_ptr<EventBean> &volumeBean) { in HandleDeviceChangeForVolume() local
208 auto it = std::find_if(volumeVector_.begin(), volumeVector_.end(), isExist); in HandleDeviceChangeForVolume()
266 auto isExist = [&bean](const std::shared_ptr<EventBean> &eventBean) { in AddToDeviceUsage() local
304 auto isExist = [&bean](const std::shared_ptr<EventBean> &eventBean) { in AddToStreamUsage() local
342 auto isExist = [&bean](const std::shared_ptr<EventBean> &eventBean) { in AddToStreamPropertyVector() local
381 auto isExist = [&bean](const std::shared_ptr<EventBean> &eventBean) { in AddToCaptureMuteUsage() local
410 auto isExist = [&bean](const std::shared_ptr<EventBean> &volumeBean) { in AddToVolumeVector() local
548 auto isExist = [&bean](const std::shared_ptr<EventBean> &volumeBean) { in HandleStreamChangeForVolume() local
[all …]
H A Dmedia_monitor_policy.cpp220 auto it = std::find_if(eventVector_.begin(), eventVector_.end(), isExist); in HandDeviceUsageToEventVector()
246 auto isExist = [&btUsage](const std::shared_ptr<EventBean> &eventBean) { in HandBtUsageToEventVector() local
257 auto it = std::find_if(eventVector_.begin(), eventVector_.end(), isExist); in HandBtUsageToEventVector()
296 auto it = std::find_if(eventVector_.begin(), eventVector_.end(), isExist); in HandStreamUsageToEventVector()
339 auto it = std::find_if(eventVector_.begin(), eventVector_.end(), isExist); in HandStreamPropertyToEventVector()
368 auto isExist = [&bean](const std::shared_ptr<EventBean> &eventBean) { in HandleVolumeToEventVector() local
406 auto isExist = [&bean](const std::shared_ptr<EventBean> &eventBean) { in HandleCaptureMutedToEventVector() local
441 auto isExist = [&appName](const std::shared_ptr<EventBean> &eventBean) { in HandleExhaustedToEventVector() local
471 auto isExist = [&bean](const std::shared_ptr<EventBean> &eventBean) { in HandleCreateErrorToEventVector() local
506 auto isExist = [&bean](const std::shared_ptr<EventBean> &eventBean) { in HandleSilentPlaybackToEventVector() local
[all …]
/ohos5.0/base/startup/init/services/modules/init_eng/
H A Dinit_eng.c33 bool isExist = false; in IsFileExistWithType() local
39 isExist = true; in IsFileExistWithType()
44 isExist = true; in IsFileExistWithType()
49 isExist = true; in IsFileExistWithType()
54 isExist = true; in IsFileExistWithType()
58 return isExist; in IsFileExistWithType()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_updater_test/
H A Dbms_bundle_updater_test.cpp212 bool isExist = CheckApplicationInfo(); in UpdateBundle() local
213 if (isExist) { in UpdateBundle()
260 if (!isExist) { in CheckBundleInfo()
299 bool isExist = CheckBundleInfo(VERSION_2, true); variable
300 EXPECT_TRUE(isExist);
435 bool isExist = CheckBundleInfo(VERSION_1, true); variable
436 EXPECT_TRUE(isExist);
459 bool isExist = CheckBundleInfo(VERSION_2, true); variable
460 EXPECT_TRUE(isExist);
467 isExist = CheckBundleInfo(VERSION_3, true);
[all …]
/ohos5.0/base/security/security_guard/frameworks/js/napi/
H A Dnapi_request_data_manager.cpp29 bool isExist = false; in GetContext() local
30 return GetContext(env, isExist); in GetContext()
33 …tr<RequestSecurityEventInfoContext> NapiRequestDataManager::GetContext(napi_env env, bool &isExist) in GetContext() argument
39 isExist = true; in GetContext()
45 isExist = false; in GetContext()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Duser_unlocked_event_subscriber.cpp97 if (!isExist) { in CheckPathAttribute()
108 isExist = false; in CheckPathAttribute()
113 isExist = false; in CheckPathAttribute()
127 bool isExist = false; in CreateBundleDataDir() local
132 CheckPathAttribute(baseBundleDataDir, bundleInfo, isExist); in CreateBundleDataDir()
133 if (!isExist) { in CreateBundleDataDir()
396 bool isExist = false; in CreateBundleLogDir() local
397 if (InstalldClient::GetInstance()->IsExistDir(bundleLogDir, isExist) != ERR_OK) { in CreateBundleLogDir()
401 if (isExist) { in CreateBundleLogDir()
432 bool isExist = false; in CreateBundleCloudDir() local
[all …]
H A Dinstalld_client.cpp382 ErrCode InstalldClient::IsExistDir(const std::string &dir, bool &isExist) in IsExistDir() argument
384 return CallService(&IInstalld::IsExistDir, dir, isExist); in IsExistDir()
387 ErrCode InstalldClient::IsExistFile(const std::string &path, bool &isExist) in IsExistFile() argument
389 return CallService(&IInstalld::IsExistFile, path, isExist); in IsExistFile()
392 ErrCode InstalldClient::IsExistApFile(const std::string &path, bool &isExist) in IsExistApFile() argument
394 return CallService(&IInstalld::IsExistApFile, path, isExist); in IsExistApFile()
555 …ldClient::IsExistExtensionDir(int32_t userId, const std::string &extensionBundleDir, bool &isExist) in IsExistExtensionDir() argument
561 return CallService(&IInstalld::IsExistExtensionDir, userId, extensionBundleDir, isExist); in IsExistExtensionDir()
/ohos5.0/foundation/ability/ability_runtime/services/appmgr/src/
H A Dapp_debug_manager.cpp95 auto isExist = [this, it](const AppDebugInfo &info) { in StopDebug() local
100 auto finder = std::find_if(debugInfos_.begin(), debugInfos_.end(), isExist); in StopDebug()
132 auto isExist = [this, it](const AppDebugInfo &info) { in GetIncrementAppDebugInfos() local
136 auto finder = std::find_if(debugInfos_.begin(), debugInfos_.end(), isExist); in GetIncrementAppDebugInfos()
153 auto isExist = [this, info](const AppDebugInfo &debugInfo) { in RemoveAppDebugInfo() local
158 auto finder = std::find_if(debugInfos_.begin(), debugInfos_.end(), isExist); in RemoveAppDebugInfo()
/ohos5.0/base/telephony/telephony_data/sim/src/
H A Drdb_sim_helper.cpp127 bool isExist = false; in UpdateCardStateByType() local
132 isExist = true; in UpdateCardStateByType()
138 isExist = true; in UpdateCardStateByType()
144 isExist = true; in UpdateCardStateByType()
150 isExist = true; in UpdateCardStateByType()
158 if (isExist) { in UpdateCardStateByType()
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/scene_board/
H A Dstatus_bar_delegate_manager.cpp43 bool isExist = false; in IsCallerInStatusBar() local
44 auto ret = statusBarDelegate->CheckIfStatusBarItemExists(callingTokenId, isExist); in IsCallerInStatusBar()
49 TAG_LOGI(AAFwkTag::ABILITYMGR, "isExist: %{public}d", isExist); in IsCallerInStatusBar()
50 return isExist; in IsCallerInStatusBar()
/ohos5.0/foundation/ai/intelligent_voice_framework/utils/
H A Dhuks_aes_adapter.cpp177 bool isExist = false; in Encrypt() local
178 int32_t ret = IsKeyExist(&keyAlias, isExist); in Encrypt()
180 if (!isExist) { in Encrypt()
229 bool isExist = false; in Decrypt() local
230 int32_t ret = IsKeyExist(&keyAlias, isExist); in Decrypt()
232 CHECK_CONDITION_RETURN_RET((!isExist), HKS_FAILURE, "key is not exist"); in Decrypt()
273 int32_t HuksAesAdapter::IsKeyExist(struct HksBlob *keyAlias, bool &isExist) in IsKeyExist() argument
284 isExist = true; in IsKeyExist()
287 isExist = false; in IsKeyExist()
/ohos5.0/foundation/filemanagement/user_file_service/services/file_extension_hap/entry/src/main/ets/FileExtensionAbility/
H A DCommon.ts92 function boolReturnObject(isExist: boolean, code: number): {isExist: boolean, code: number} {
94 isExist: isExist,
/ohos5.0/foundation/communication/dsoftbus/tests/core/common/utils/unittest/
H A Dsqlite3_utils_test.cpp137 bool isExist = false; variable
143 EXPECT_TRUE(!isExist);
146 EXPECT_TRUE(isExist);
149 EXPECT_TRUE(!isExist);
161 bool isExist = false; variable
168 EXPECT_TRUE(!isExist);
171 EXPECT_TRUE(isExist);
174 EXPECT_TRUE(!isExist);
576 bool *isExist = nullptr; variable
580 isExist = nullptr;
[all …]
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/audio_encoder/flac/
H A Dffmpeg_flac_encoder_plugin.cpp73 bool isExist = std::any_of(std::begin(FLAC_ENCODER_SAMPLE_RATE_TABLE), in CheckSampleRate() local
77 return isExist; in CheckSampleRate()
82 bool isExist = std::any_of(std::begin(FLAC_CHANNEL_LAYOUT_TABLE), in CheckChannelLayout() local
86 return isExist; in CheckChannelLayout()
91 bool isExist = std::any_of(BITS_PER_RAW_SAMPLE_MAP.begin(), in CheckBitsPerSample() local
95 return isExist; in CheckBitsPerSample()
/ohos5.0/foundation/systemabilitymgr/samgr/test/unittest/
H A Dsystem_ability_manager_test.cpp190 bool isExist = true; variable
191 sptr<IRemoteObject> ability = sm->CheckSystemAbility(mockSaid, isExist);
214 bool isExist = false; variable
215 sptr<IRemoteObject> ability = sm->CheckSystemAbility(mockSaid, isExist);
237 bool isExist = false; variable
238 sptr<IRemoteObject> ability = sm->CheckSystemAbility(DISTRIBUTED_SCHED_TEST_TT_ID, isExist);
260 bool isExist = true; variable
261 sptr<IRemoteObject> ability = sm->CheckSystemAbility(DISTRIBUTED_SCHED_TEST_TT_ID, isExist);
/ohos5.0/foundation/ability/ability_runtime/interfaces/inner_api/ability_manager/src/status_bar_delegate/
H A Dstatus_bar_delegate_stub.cpp51 bool isExist = false; in HandleCheckIfStatusBarItemExists() local
52 auto result = CheckIfStatusBarItemExists(accessTokenId, isExist); in HandleCheckIfStatusBarItemExists()
57 if (!reply.WriteBool(isExist)) { in HandleCheckIfStatusBarItemExists()
/ohos5.0/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/observer/
H A Dapp_event_observer_mgr.cpp116 int64_t InitObserver(std::shared_ptr<AppEventObserver> observer, bool& isExist) in InitObserver() argument
128 isExist = true; in InitObserver()
205 bool isExist = false; in RegisterObserver() local
206 int64_t observerSeq = InitObserver(observer, isExist); in RegisterObserver()
212 if (!InitObserverFromListener(observer, isExist)) { in RegisterObserver()
381 …ventObserverMgr::InitObserverFromListener(std::shared_ptr<AppEventObserver> observer, bool isExist) in InitObserverFromListener() argument
396 if (isExist) { in InitObserverFromListener()
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/common/
H A Dnapi_async_callback.cpp86 bool isExist = false; in NapiCallFunction() local
87 status = napi_is_exception_pending(env, &isExist); in NapiCallFunction()
88 HILOGD("napi_is_exception_pending status: %{public}d, isExist: %{public}d", status, isExist); in NapiCallFunction()
89 if (isExist) { in NapiCallFunction()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/
H A Dinstalld_client.cpp316 ErrCode InstalldClient::IsExistDir(const std::string &dir, bool &isExist) in IsExistDir() argument
318 return CallService(&IInstalld::IsExistDir, dir, isExist); in IsExistDir()
321 ErrCode InstalldClient::IsExistFile(const std::string &path, bool &isExist) in IsExistFile() argument
323 return CallService(&IInstalld::IsExistFile, path, isExist); in IsExistFile()
326 ErrCode InstalldClient::IsExistApFile(const std::string &path, bool &isExist) in IsExistApFile() argument
328 return CallService(&IInstalld::IsExistApFile, path, isExist); in IsExistApFile()
439 …ldClient::IsExistExtensionDir(int32_t userId, const std::string &extensionBundleDir, bool &isExist) in IsExistExtensionDir() argument
445 return CallService(&IInstalld::IsExistExtensionDir, userId, extensionBundleDir, isExist); in IsExistExtensionDir()
/ohos5.0/base/customization/enterprise_device_management/common/external/src/
H A Dedm_os_account_manager_impl.cpp31 ErrCode EdmOsAccountManagerImpl::IsOsAccountExists(int32_t id, bool &isExist) in IsOsAccountExists() argument
34 return AccountSA::OsAccountManager::IsOsAccountExists(id, isExist); in IsOsAccountExists()
/ohos5.0/base/account/os_account/services/accountmgr/test/unittest/os_account/
H A Dos_account_control_file_manager_test.cpp532 bool isExist; variable
536 INT_TEST_ERR_USER_ID, "invalid_constraint", isExist);
550 bool isExist; variable
552 100, "constraint.wifi", isExist);
554 EXPECT_EQ(isExist, true);
565 bool isExist; variable
570 100, "constraint.wifi", isExist);
572 EXPECT_EQ(isExist, true);
/ohos5.0/foundation/filemanagement/user_file_service/test/fuzztest/medialibraryfileaccess_fuzzer/
H A Dmedialibrary_file_access_fuzzer.cpp169 bool isExist = false; in GetDownloadUri() local
171 result = helper->Access(downloadUri, isExist); in GetDownloadUri()
176 if (isExist) { in GetDownloadUri()
197 bool isExist = false; in AccessFuzzTest() local
198 int result = helper->Access(uri, isExist); in AccessFuzzTest()
199 if (isExist != true || result != OHOS::FileAccessFwk::ERR_OK) { in AccessFuzzTest()
/ohos5.0/foundation/filemanagement/user_file_service/interfaces/kits/native/trash/src/
H A Dfile_trash_n_exporter.cpp241 auto [isExist, ret] = Access(recoveredPath); in Mkdirs()
242 if (!isExist && !Mkdir(recoveredPath)) { in Mkdirs()
253 auto [isExist, ret] = Access(destFile); in GenerateNewFileName()
254 if (isExist) { in GenerateNewFileName()
282 auto [isExist, ret] = Access(destFile); in MoveFile()
283 if (isExist) { in MoveFile()
624 auto [isExist, ret] = Access(path); in Recover()
625 if (!isExist) { in Recover()
681 auto [isExist, ret] = Access(path); in CompletelyDelete()
682 if (!isExist) { in CompletelyDelete()

123456789