Home
last modified time | relevance | path

Searched refs:SYSTEM_UID (Results 1 – 17 of 17) sorted by relevance

/base/location/test/location_locator/source/
Dwork_record_test.cpp46 EXPECT_EQ(SYSTEM_UID, parcel.ReadInt32()); // uid in VerifyMarshalling()
61 EXPECT_EQ(false, emptyWorkrecord->Remove(SYSTEM_UID, 0, "emptyRecord", "10000"));
65 parcel.WriteInt32(SYSTEM_UID); // uid
79 EXPECT_EQ(true, workrecord->Add(SYSTEM_UID, 0, "name", 1, "0"));
81 EXPECT_EQ(false, workrecord->Remove(SYSTEM_UID, 0, "WrongName", "0"));
91 EXPECT_EQ(false, workrecord->Remove(SYSTEM_UID, 1, "WrongName", "0"));
94 EXPECT_EQ(true, workrecord->Remove(SYSTEM_UID, 0, "name", "0"));
105 EXPECT_EQ(false, workrecord->Find(SYSTEM_UID, "name", "0"));
106 EXPECT_EQ(true, workrecord->Add(SYSTEM_UID, 0, "name", 1, "0"));
110 EXPECT_EQ(SYSTEM_UID, workrecord->GetUid(0));
[all …]
Drequest_manager_test.cpp43 request_->SetUid(SYSTEM_UID); in SetUp()
88 request->SetUid(SYSTEM_UID); in FillRequestField()
110 EXPECT_EQ(SYSTEM_UID, request->GetUid()); in VerifyRequestField()
156 EXPECT_EQ(true, requestManager_->IsUidInProcessing(SYSTEM_UID));
173 EXPECT_EQ(false, requestManager_->IsUidInProcessing(SYSTEM_UID));
191 EXPECT_EQ(false, requestManager_->IsUidInProcessing(SYSTEM_UID));
209 EXPECT_EQ(false, requestManager_->IsUidInProcessing(SYSTEM_UID));
226 EXPECT_EQ(true, requestManager_->IsUidInProcessing(SYSTEM_UID));
228 EXPECT_EQ(false, requestManager_->IsUidInProcessing(SYSTEM_UID));
Dlocator_service_test.cpp93 request_->SetUid(SYSTEM_UID); in SetUp()
1648 EXPECT_EQ(ERRCODE_INVALID_PARAM, locatorAbility->RegisterSwitchCallback(nullptr, SYSTEM_UID));
1649 …EXPECT_EQ(ERRCODE_SUCCESS, locatorAbility->RegisterSwitchCallback(switchCallbackHost, SYSTEM_UID));
1668 locatorAbility->RegisterGnssStatusCallback(nullptr, SYSTEM_UID)); // invalid callback
1669 …RCODE_PERMISSION_DENIED, locatorAbility->RegisterGnssStatusCallback(gnssCallbackHost, SYSTEM_UID));
1687 locatorAbility->RegisterNmeaMessageCallback(nullptr, SYSTEM_UID)); // invalid callback
1688 …CODE_PERMISSION_DENIED, locatorAbility->RegisterNmeaMessageCallback(nmeaCallbackHost, SYSTEM_UID));
1819 EXPECT_EQ(ERRCODE_SUCCESS, locatorAbility->ProxyUidForFreeze(SYSTEM_UID, true));
1820 EXPECT_EQ(true, locatorAbility->IsProxyUid(SYSTEM_UID));
1821 EXPECT_EQ(ERRCODE_SUCCESS, locatorAbility->ProxyUidForFreeze(SYSTEM_UID, false));
[all …]
Dlocator_impl_test.cpp346 EXPECT_EQ(ERRCODE_SUCCESS, locatorImpl_->ProxyUidForFreezeV9(SYSTEM_UID, false));
/base/notification/common_event_service/services/test/unittest/
Dcommon_event_publish_permission_event_unit_test.cpp42 constexpr uint16_t SYSTEM_UID = 1000; variable
121 inner.SubscribeCommonEvent(subscribeInfo, listener, curTime, PID, SYSTEM_UID, tokenID, "hello");
134 data, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello");
163 inner.SubscribeCommonEvent(subscribeInfo, listener, curTime, PID, SYSTEM_UID, tokenID, "hello");
177 data, publishInfo, listener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello");
206 inner.SubscribeCommonEvent(subscribeInfo, listener, curTime, PID, SYSTEM_UID, tokenID, "hello");
220 data, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello");
249 inner.SubscribeCommonEvent(subscribeInfo, listener, curTime, PID, SYSTEM_UID, tokenID, "hello");
263 data, publishInfo, listener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello");
669 … data, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello world"));
[all …]
Dcommon_event_sticky_test.cpp48 constexpr uint16_t SYSTEM_UID = 1000; variable
118 data, publishInfo, nullptr, recordTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"));
155 data, publishInfo, nullptr, recordTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"));
166 … data2, publishInfo, nullptr, recordTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"));
203 data, publishInfo, nullptr, recordTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"));
235 data, publishInfo, nullptr, recordTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"));
267 data, publishInfo, nullptr, recordTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"));
503 data, publishInfo, nullptr, recordTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"));
511 EXPECT_EQ(innerCommonEventManager.RemoveStickyCommonEvent(EVENT, SYSTEM_UID), OHOS::ERR_OK);
Dcommon_event_publish_ordered_event_unit_test.cpp37 constexpr uint16_t SYSTEM_UID = 1000; variable
159 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle…
208 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle…
599 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle…
656 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle…
713 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle…
770 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle…
Dcommon_event_dump_test.cpp86 constexpr uint16_t SYSTEM_UID = 1000; variable
560 subscribeInfo, listener->AsObject(), curTime, PID, SYSTEM_UID, tokenID, "hello"); in SubscribeDoubleEvent()
595 … eventData, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in PublishUnorderedEvent()
630 … eventData, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in PublishStickyEvent()
663 … eventData, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in PublishStickyEvent()
772 subscribeInfo, listener->AsObject(), curTime, PID, SYSTEM_UID, tokenID, "hello");
806 subscribeInfo, listener->AsObject(), curTime, PID, SYSTEM_UID, tokenID, "hello");
839 subscribeInfo, listener->AsObject(), curTime, PID, SYSTEM_UID, tokenID, "hello");
871 subscribeInfo, listener->AsObject(), curTime, PID, SYSTEM_UID, tokenID, "hello");
902 subscribeInfo, listener->AsObject(), curTime, PID, SYSTEM_UID, tokenID, "hello");
[all …]
Dcommon_event_freeze_test.cpp48 constexpr uint16_t SYSTEM_UID = 1000; variable
334 SYSTEM_UID, in PublishCommonEvent()
/base/notification/common_event_service/frameworks/core/test/unittest/
Dcommon_event_test.cpp33 constexpr uint16_t SYSTEM_UID = 1000; variable
119 … publishCommonEvent = commonEvent.PublishCommonEvent(data, publishInfo, subscriber, SYSTEM_UID, 0);
133 bool freeze = commonEvent.Freeze(SYSTEM_UID);
147 bool unfreeze = commonEvent.Unfreeze(SYSTEM_UID);
234 …ommonEvent = commonEventStub.PublishCommonEvent(data, publishInfo, nullptr, SYSTEM_UID, 0, userId);
330 bool freeze = commonEventStub.Freeze(SYSTEM_UID);
332 bool unfreeze = commonEventStub.Unfreeze(SYSTEM_UID);
/base/notification/common_event_service/test/mock/include/
Dmock_constant.h22 constexpr unsigned int SYSTEM_UID = 1000; variable
/base/notification/common_event_service/test/mock/
Dmock_bundle_manager.cpp35 return (uid > EventFwk::SYSTEM_UID) ? false : true; in CheckIsSystemAppByUid()
/base/hiviewdfx/hidumper/test/unittest/common/
Dhidumper_privacy_test.cpp27 const int SYSTEM_UID = 1000; member in OHOS::HiviewDFX::HidumperPrivacyTest
/base/notification/common_event_service/frameworks/native/test/unittest/
Dcommon_event_subscribe_test.cpp47 constexpr uint16_t SYSTEM_UID = 1000; variable
465 bool freeze = commonEventManager.Freeze(SYSTEM_UID);
479 bool unfreeze = commonEventManager.Unfreeze(SYSTEM_UID);
/base/location/interfaces/inner_api/include/
Dcommon_utils.h61 const int SYSTEM_UID = 1000; variable
/base/location/test/location_common/source/
Dcommon_utils_test.cpp343 EXPECT_EQ(false, CommonUtils::GetBundleNameByUid(SYSTEM_UID, bundleName));
/base/location/services/location_locator/locator/source/
Dlocator_background_proxy.cpp59 request_->SetUid(SYSTEM_UID); in LocatorBackgroundProxy()