Home
last modified time | relevance | path

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

/base/location/test/location_locator/source/
Dwork_record_test.cpp42 EXPECT_EQ(SYSTEM_UID, parcel.ReadInt32()); // uid in VerifyMarshalling()
57 EXPECT_EQ(false, emptyWorkrecord->Remove(SYSTEM_UID, 0, "emptyRecord", "10000"));
61 parcel.WriteInt32(SYSTEM_UID); // uid
75 EXPECT_EQ(true, workrecord->Add(SYSTEM_UID, 0, "name", 1, "0"));
77 EXPECT_EQ(false, workrecord->Remove(SYSTEM_UID, 0, "WrongName", "0"));
87 EXPECT_EQ(false, workrecord->Remove(SYSTEM_UID, 1, "WrongName", "0"));
90 EXPECT_EQ(true, workrecord->Remove(SYSTEM_UID, 0, "name", "0"));
101 EXPECT_EQ(false, workrecord->Find(SYSTEM_UID, "name", "0"));
102 EXPECT_EQ(true, workrecord->Add(SYSTEM_UID, 0, "name", 1, "0"));
106 EXPECT_EQ(SYSTEM_UID, workrecord->GetUid(0));
[all …]
Dlocator_service_test.cpp81 request_->SetUid(SYSTEM_UID); in SetUp()
1691 EXPECT_EQ(ERRCODE_INVALID_PARAM, locatorAbility->RegisterSwitchCallback(nullptr, SYSTEM_UID));
1692 …EXPECT_EQ(ERRCODE_SUCCESS, locatorAbility->RegisterSwitchCallback(switchCallbackHost, SYSTEM_UID));
1708 locatorAbility->RegisterGnssStatusCallback(nullptr, SYSTEM_UID); // invalid callback
1709 locatorAbility->RegisterGnssStatusCallback(gnssCallbackHost, SYSTEM_UID);
1724 locatorAbility->RegisterNmeaMessageCallback(nullptr, SYSTEM_UID); // invalid callback
1725 locatorAbility->RegisterNmeaMessageCallback(nmeaCallbackHost, SYSTEM_UID);
1741 EXPECT_EQ(ERRCODE_SUCCESS, locatorAbility->RegisterCountryCodeCallback(nullptr, SYSTEM_UID));
1742 …ERRCODE_SUCCESS, locatorAbility->RegisterCountryCodeCallback(countryCodeCallbackHost, SYSTEM_UID));
1880 EXPECT_EQ(ERRCODE_SUCCESS, locatorAbility->ProxyUidForFreeze(SYSTEM_UID, true));
[all …]
Drequest_manager_test.cpp42 request_->SetUid(SYSTEM_UID); in SetUp()
85 request->SetUid(SYSTEM_UID); in FillRequestField()
107 EXPECT_EQ(SYSTEM_UID, request->GetUid()); in VerifyRequestField()
Dlocator_impl_test.cpp291 EXPECT_EQ(ERRCODE_SUCCESS, locatorImpl_->ProxyUidForFreezeV9(SYSTEM_UID, true));
293 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");
664 … 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"));
Dcommon_event_publish_ordered_event_unit_test.cpp37 constexpr uint16_t SYSTEM_UID = 1000; variable
137 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle…
186 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle…
577 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle…
634 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle…
691 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle…
748 …data, publishInfo, commonEventListener, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "bundle…
Dcommon_event_dump_test.cpp86 constexpr uint16_t SYSTEM_UID = 1000; variable
551 subscribeInfo, listener->AsObject(), curTime, PID, SYSTEM_UID, tokenID, "hello"); in SubscribeDoubleEvent()
586 … eventData, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in PublishUnorderedEvent()
621 … eventData, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in PublishStickyEvent()
654 … eventData, publishInfo, nullptr, curTime, PID, SYSTEM_UID, tokenID, UNDEFINED_USER, "hello"); in PublishStickyEvent()
763 subscribeInfo, listener->AsObject(), curTime, PID, SYSTEM_UID, tokenID, "hello");
797 subscribeInfo, listener->AsObject(), curTime, PID, SYSTEM_UID, tokenID, "hello");
830 subscribeInfo, listener->AsObject(), curTime, PID, SYSTEM_UID, tokenID, "hello");
862 subscribeInfo, listener->AsObject(), curTime, PID, SYSTEM_UID, tokenID, "hello");
893 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.cpp32 constexpr uint16_t SYSTEM_UID = 1000; variable
118 … publishCommonEvent = commonEvent.PublishCommonEvent(data, publishInfo, subscriber, SYSTEM_UID, 0);
132 bool freeze = commonEvent.Freeze(SYSTEM_UID);
146 bool unfreeze = commonEvent.Unfreeze(SYSTEM_UID);
233 …ommonEvent = commonEventStub.PublishCommonEvent(data, publishInfo, nullptr, SYSTEM_UID, 0, userId);
329 bool freeze = commonEventStub.Freeze(SYSTEM_UID);
331 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.cpp29 const int SYSTEM_UID = 1000; member in OHOS::HiviewDFX::HidumperPrivacyTest
/base/location/test/location_common/source/
Dcommon_utils_test.cpp307 EXPECT_EQ(false, CommonUtils::CheckSystemPermission(SYSTEM_UID, 0));
309 EXPECT_EQ(true, CommonUtils::CheckSystemPermission(SYSTEM_UID, tokenId_));
319 EXPECT_EQ(false, CommonUtils::GetBundleNameByUid(SYSTEM_UID, bundleName));
/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/security/access_token/services/accesstokenmanager/main/cpp/include/service/
Daccesstoken_manager_stub.h78 static const int32_t SYSTEM_UID = 1000; variable
/base/location/interfaces/inner_api/include/
Dcommon_utils.h49 const int SYSTEM_UID = 1000; variable
/base/location/services/location_locator/locator/source/
Dcountry_code_manager.cpp212 request->SetUid(SYSTEM_UID); in StartPassiveLocationListen()
Dlocator_background_proxy.cpp59 request_->SetUid(SYSTEM_UID); in LocatorBackgroundProxy()
/base/security/access_token/services/accesstokenmanager/main/cpp/src/service/
Daccesstoken_manager_stub.cpp582 return callingUid == SYSTEM_UID || callingUid == ROOT_UID; in IsPrivilegedCalling()