Home
last modified time | relevance | path

Searched refs:IsValid (Results 1 – 25 of 69) sorted by relevance

123

/base/security/dlp_permission_service/services/dlp_permission/sa/test/unittest/src/
Dpermission_policy_test.cpp104 ASSERT_TRUE(policy->IsValid());
123 ASSERT_FALSE(policy->IsValid());
128 ASSERT_FALSE(policy->IsValid());
147 ASSERT_FALSE(policy->IsValid());
151 ASSERT_FALSE(policy->IsValid());
170 ASSERT_FALSE(policy->IsValid());
175 ASSERT_FALSE(policy->IsValid());
194 ASSERT_FALSE(policy->IsValid());
199 ASSERT_FALSE(policy->IsValid());
219 EXPECT_FALSE(policy->IsValid());
[all …]
/base/hiviewdfx/hitrace/test/unittest/common/native/
Dhitracechaincpp_test.cpp76 EXPECT_EQ(0, initId.IsValid());
88 EXPECT_EQ(1, initId.IsValid());
97 EXPECT_EQ(1, getId.IsValid());
107 EXPECT_EQ(1, getId.IsValid());
115 EXPECT_EQ(0, clearId.IsValid());
141 EXPECT_EQ(0, initId.IsValid());
151 EXPECT_EQ(1, initId.IsValid());
164 EXPECT_EQ(0, bytesToId.IsValid());
166 EXPECT_EQ(0, bytesToId.IsValid());
168 EXPECT_EQ(1, bytesToId.IsValid());
[all …]
/base/update/updater/services/ui/view/page/
Dsub_page.cpp40 if (!IsValid()) { in BuildSubPage()
85 if (!IsValid()) { in SetVisible()
114 if (!IsValid()) { in GetView()
120 bool SubPage::IsValid() const in IsValid() function in Updater::SubPage
122 if (basePage_ == nullptr || !basePage_->IsValid()) { in IsValid()
131 if (!IsValid()) { in IsValidCom()
143 if (!IsValid()) { in operator []()
Dsub_page.h32 bool IsValid() const override;
Dpage.h35 [[nodiscard]] virtual bool IsValid() const = 0;
Dbase_page.h36 bool IsValid() const override;
/base/update/updater/test/unittest/updater_ui_test/view/
Dui_component_unittest.cpp75 EXPECT_FALSE(BoxProgressAdapter::IsValid(UxBoxProgressInfo {101, "", "", "", false}));
76 EXPECT_FALSE(BoxProgressAdapter::IsValid(UxBoxProgressInfo {50, "#", "", "", false}));
77 EXPECT_FALSE(BoxProgressAdapter::IsValid(UxBoxProgressInfo {50, "#000000ff", "", "", false}));
78 …EXPECT_FALSE(BoxProgressAdapter::IsValid(UxBoxProgressInfo {50, "#000000ff", "#000000ff", "", true…
79 …EXPECT_TRUE(BoxProgressAdapter::IsValid(UxBoxProgressInfo {50, "#000000ff", "#000000ff", "", false…
234 EXPECT_FALSE(ImgViewAdapter::IsValid(UxImageInfo {"", "", 100, 0}));
235 EXPECT_TRUE(ImgViewAdapter::IsValid(UxImageInfo {"resPath", "", 100, 0}));
238 EXPECT_FALSE(ImgViewAdapter::IsValid(UxImageInfo {"", "", 100, 10}));
239 EXPECT_FALSE(ImgViewAdapter::IsValid(UxImageInfo {"dir/", "", 100, 10}));
240 EXPECT_FALSE(ImgViewAdapter::IsValid(UxImageInfo {"dir/", "filePrefix", maxImgCnt + 1, 10}));
[all …]
/base/notification/eventhandler/frameworks/eventhandler/test/unittest/
Dlib_event_handler_trace_test.cpp53 EXPECT_TRUE(traceId->IsValid()); in ProcessEvent()
83 EXPECT_TRUE(eventTraceId->IsValid()); in ProcessEvent()
97 EXPECT_FALSE(eventTraceId->IsValid()); in ProcessEvent()
206 EXPECT_TRUE(traceId->IsValid());
207 EXPECT_TRUE(eventTraceId->IsValid());
237 EXPECT_TRUE(traceId.IsValid()); in __anon084c07880202()
273 EXPECT_FALSE(traceId.IsValid()); in __anon084c07880402()
/base/update/sys_installer/services/module_update/util/include/
Dmodule_zip_helper.h32 bool IsValid() const in IsValid() function
/base/update/updater/services/ui/view/component/
Dtext_label_adapter.h41 static bool IsValid(const UxLabelInfo &info);
Dbox_progress_adapter.h46 static bool IsValid(const UxBoxProgressInfo &info);
Dcomponent_factory.cpp42 … return [&specific] ([[maybe_unused]] const UxViewInfo &info) { return T::IsValid(specific); }; in operator ()()
Dlabel_btn_adapter.h46 static bool IsValid(const UxLabelBtnInfo &info);
Dimg_view_adapter.h53 static bool IsValid(const UxImageInfo &info);
Dtext_label_adapter.cpp36 bool TextLabelAdapter::IsValid(const UxLabelInfo &info) in IsValid() function in Updater::TextLabelAdapter
/base/hiviewdfx/hitrace/interfaces/native/innerkits/include/hitrace/
Dhitraceid.h33 bool IsValid() const;
/base/update/sys_installer/services/module_update/util/src/
Dmodule_zip_helper.cpp76 if (IsValid()) { in ~ModuleZipHelper()
86 if (!IsValid()) { in GetNumberOfEntry()
102 if (!IsValid()) { in LocateFile()
/base/sensors/sensor/frameworks/native/sensor/src/
Dsensor_agent_proxy.cpp129 if (!SenClient.IsValid(sensorId)) { in ActivateSensor()
153 if (!SenClient.IsValid(sensorId)) { in DeactivateSensor()
176 if (!SenClient.IsValid(sensorId)) { in SetBatch()
199 if (!SenClient.IsValid(sensorId)) { in SubscribeSensor()
218 if (!SenClient.IsValid(sensorId)) { in UnsubscribeSensor()
242 if (!SenClient.IsValid(sensorId)) { in SetMode()
/base/hiviewdfx/faultloggerd/test/unittest/unwinder/
Delf_test.cpp56 if (!elf->Init() || !elf->IsValid()) {
/base/sensors/miscdevice/frameworks/native/miscdevice/include/
Dlight_client.h36 bool IsValid(int32_t lightId);
/base/account/os_account/frameworks/ohosaccount/native/src/
Dohos_account_kits_impl.cpp107 if (!ohosAccountInfo.IsValid()) { in SetOhosAccountInfo()
122 if (!ohosAccountInfo.IsValid()) { in SetOhosAccountInfoByUserId()
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/include/
Devent_query_wrapper_builder.h71 bool IsValid() const;
127 bool IsValid() const;
/base/hiviewdfx/hitrace/frameworks/native/
Dhitraceid.cpp43 bool HiTraceId::IsValid() const in IsValid() function in OHOS::HiviewDFX::HiTraceId
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/
Duser_auth_widget_mgr_v10.cpp122 if (callbackRef == nullptr || !callbackRef->IsValid()) { in On()
168 if (callbackRef == nullptr || !callbackRef->IsValid()) { in Off()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/
Dwrite_controller.cpp42 if (!stat.IsValid()) { in CheckLimitWritingEvent()

123