/base/location/test/location_locator/source/ |
D | work_record_test.cpp | 42 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 …]
|
D | locator_service_test.cpp | 81 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 …]
|
D | request_manager_test.cpp | 42 request_->SetUid(SYSTEM_UID); in SetUp() 85 request->SetUid(SYSTEM_UID); in FillRequestField() 107 EXPECT_EQ(SYSTEM_UID, request->GetUid()); in VerifyRequestField()
|
D | locator_impl_test.cpp | 291 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/ |
D | common_event_publish_permission_event_unit_test.cpp | 42 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 …]
|
D | common_event_sticky_test.cpp | 48 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"));
|
D | common_event_publish_ordered_event_unit_test.cpp | 37 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…
|
D | common_event_dump_test.cpp | 86 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 …]
|
D | common_event_freeze_test.cpp | 48 constexpr uint16_t SYSTEM_UID = 1000; variable 334 SYSTEM_UID, in PublishCommonEvent()
|
/base/notification/common_event_service/frameworks/core/test/unittest/ |
D | common_event_test.cpp | 32 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/ |
D | mock_constant.h | 22 constexpr unsigned int SYSTEM_UID = 1000; variable
|
/base/notification/common_event_service/test/mock/ |
D | mock_bundle_manager.cpp | 35 return (uid > EventFwk::SYSTEM_UID) ? false : true; in CheckIsSystemAppByUid()
|
/base/hiviewdfx/hidumper/test/unittest/common/ |
D | hidumper_privacy_test.cpp | 29 const int SYSTEM_UID = 1000; member in OHOS::HiviewDFX::HidumperPrivacyTest
|
/base/location/test/location_common/source/ |
D | common_utils_test.cpp | 307 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/ |
D | common_event_subscribe_test.cpp | 47 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/ |
D | accesstoken_manager_stub.h | 78 static const int32_t SYSTEM_UID = 1000; variable
|
/base/location/interfaces/inner_api/include/ |
D | common_utils.h | 49 const int SYSTEM_UID = 1000; variable
|
/base/location/services/location_locator/locator/source/ |
D | country_code_manager.cpp | 212 request->SetUid(SYSTEM_UID); in StartPassiveLocationListen()
|
D | locator_background_proxy.cpp | 59 request_->SetUid(SYSTEM_UID); in LocatorBackgroundProxy()
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/service/ |
D | accesstoken_manager_stub.cpp | 582 return callingUid == SYSTEM_UID || callingUid == ROOT_UID; in IsPrivilegedCalling()
|