Home
last modified time | relevance | path

Searched refs:request (Results 1 - 25 of 478) sorted by relevance

12345678910>>...20

/base/notification/distributed_notification_service/test/fuzztest/setprogressbar_fuzzer/
H A Dsetprogressbar_fuzzer.cpp28 Notification::NotificationRequest request(notificationId); in DoSomethingInterestingWithMyAPI()
30 request.SetIsAgentNotification(enabled); in DoSomethingInterestingWithMyAPI()
32 request.AddMessageUser(messageUser); in DoSomethingInterestingWithMyAPI()
33 request.IsAlertOneTime(); in DoSomethingInterestingWithMyAPI()
35 request.SetAutoDeletedTime(deletedTime); in DoSomethingInterestingWithMyAPI()
36 request.GetAutoDeletedTime(); in DoSomethingInterestingWithMyAPI()
38 request.SetLittleIcon(icon); in DoSomethingInterestingWithMyAPI()
39 request.SetBigIcon(icon); in DoSomethingInterestingWithMyAPI()
40 request.GetClassification(); in DoSomethingInterestingWithMyAPI()
41 request in DoSomethingInterestingWithMyAPI()
[all...]
/base/notification/distributed_notification_service/test/fuzztest/settemplate_fuzzer/
H A Dsettemplate_fuzzer.cpp32 Notification::NotificationRequest request(notificationId); in DoSomethingInterestingWithMyAPI()
34 request.SetTapDismissed(enabled); in DoSomethingInterestingWithMyAPI()
38 request.SetVisibleness(VisiblenessType); in DoSomethingInterestingWithMyAPI()
39 request.GetVisibleness(); in DoSomethingInterestingWithMyAPI()
40 request.GetBadgeIconStyle(); in DoSomethingInterestingWithMyAPI()
41 request.SetShortcutId(stringData); in DoSomethingInterestingWithMyAPI()
42 request.GetShortcutId(); in DoSomethingInterestingWithMyAPI()
43 request.SetFloatingIcon(enabled); in DoSomethingInterestingWithMyAPI()
44 request.IsFloatingIcon(); in DoSomethingInterestingWithMyAPI()
45 request in DoSomethingInterestingWithMyAPI()
[all...]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/faultloggerd_client/
H A Dfaultloggerd_client.cpp49 struct FaultLoggerdRequest request; in RequestFileDescriptor() local
50 (void)memset_s(&request, sizeof(request), 0, sizeof(request)); in RequestFileDescriptor()
51 request.type = type; in RequestFileDescriptor()
52 request.pid = getpid(); in RequestFileDescriptor()
53 request.tid = gettid(); in RequestFileDescriptor()
54 request.uid = getuid(); in RequestFileDescriptor()
55 request.time = OHOS::HiviewDFX::GetTimeMilliSeconds(); in RequestFileDescriptor()
56 return RequestFileDescriptorEx(&request); in RequestFileDescriptor()
59 RequestLogFileDescriptor(struct FaultLoggerdRequest *request) RequestLogFileDescriptor() argument
69 RequestFileDescriptorEx(const struct FaultLoggerdRequest *request) RequestFileDescriptorEx() argument
101 RequestFileDescriptorByCheck(const struct FaultLoggerdRequest *request) RequestFileDescriptorByCheck() argument
168 SendRequestToServer(const FaultLoggerdRequest &request) SendRequestToServer() argument
206 struct FaultLoggerdRequest request; RequestCheckPermission() local
231 struct FaultLoggerdRequest request; RequestSdkDumpJson() local
252 struct FaultLoggerdRequest request; RequestPrintTHilog() local
293 struct FaultLoggerdRequest request; RequestPipeFd() local
318 struct FaultLoggerdRequest request; RequestDelPipeFd() local
336 ReportDumpStats(const struct FaultLoggerdStatsRequest *request) ReportDumpStats() argument
[all...]
/base/hiviewdfx/faultloggerd/tools/process_dump/
H A Dprocess_dumper.cpp224 void InfoRemoteProcessResult(std::shared_ptr<ProcessDumpRequest> request, int result, int type) in InfoRemoteProcessResult() argument
226 if (request == nullptr) { in InfoRemoteProcessResult()
229 if (request->pmPipeFd[0] != -1) { in InfoRemoteProcessResult()
230 close(request->pmPipeFd[0]); in InfoRemoteProcessResult()
231 request->pmPipeFd[0] = -1; in InfoRemoteProcessResult()
235 OHOS_TEMP_FAILURE_RETRY(write(request->pmPipeFd[1], &result, sizeof(result))); in InfoRemoteProcessResult()
238 OHOS_TEMP_FAILURE_RETRY(write(request->vmPipeFd[1], &result, sizeof(result))); in InfoRemoteProcessResult()
301 std::shared_ptr<ProcessDumpRequest> request = std::make_shared<ProcessDumpRequest>(); in Dump() local
302 resDump_ = DumpProcess(request); in Dump()
312 if (isCrash_ && (request in Dump()
349 Report(std::shared_ptr<ProcessDumpRequest> request, std::string &jsonInfo) Report() argument
369 ReadRequestAndCheck(std::shared_ptr<ProcessDumpRequest> request) ReadRequestAndCheck() argument
401 InitRegs(std::shared_ptr<ProcessDumpRequest> request, int &dumpRes) InitRegs() argument
417 IsTargetProcessAlive(std::shared_ptr<ProcessDumpRequest> request) IsTargetProcessAlive() argument
430 UnwindWriteJit(const ProcessDumpRequest &request) UnwindWriteJit() argument
477 GetCrashObj(std::shared_ptr<ProcessDumpRequest> request) GetCrashObj() argument
498 Unwind(std::shared_ptr<ProcessDumpRequest> request, int &dumpRes, pid_t vmPid) Unwind() argument
522 DumpProcess(std::shared_ptr<ProcessDumpRequest> request) DumpProcess() argument
579 InitVmThread(std::shared_ptr<ProcessDumpRequest> request) InitVmThread() argument
603 InitKeyThread(std::shared_ptr<ProcessDumpRequest> request) InitKeyThread() argument
633 InitUnwinder(std::shared_ptr<ProcessDumpRequest> request, pid_t &vmPid, int &dumpRes) InitUnwinder() argument
680 InitProcessInfo(std::shared_ptr<ProcessDumpRequest> request) InitProcessInfo() argument
725 GetLogTypeByRequest(const ProcessDumpRequest &request) GetLogTypeByRequest() argument
765 InitPrintThread(std::shared_ptr<ProcessDumpRequest> request) InitPrintThread() argument
873 ReportAddrSanitizer(ProcessDumpRequest &request, std::string &jsonInfo) ReportAddrSanitizer() argument
904 ReadFdTable(const ProcessDumpRequest &request) ReadFdTable() argument
[all...]
H A Dprocess_dumper.h48 int DumpProcess(std::shared_ptr<ProcessDumpRequest> request);
49 bool InitKeyThread(std::shared_ptr<ProcessDumpRequest> request);
50 int InitPrintThread(std::shared_ptr<ProcessDumpRequest> request);
51 int InitProcessInfo(std::shared_ptr<ProcessDumpRequest> request);
52 bool InitVmThread(std::shared_ptr<ProcessDumpRequest> request);
53 bool InitUnwinder(std::shared_ptr<ProcessDumpRequest> request, pid_t &vmPid, int &dumpRes);
54 void InitRegs(std::shared_ptr<ProcessDumpRequest> request, int &dumpRes);
55 bool IsTargetProcessAlive(std::shared_ptr<ProcessDumpRequest> request);
56 bool Unwind(std::shared_ptr<ProcessDumpRequest> request, int &dumpRes, pid_t vmPid);
57 static int GetLogTypeByRequest(const ProcessDumpRequest &request);
[all...]
/base/notification/distributed_notification_service/test/fuzztest/notificationrequest_fuzzer/
H A Dnotificationrequest_fuzzer.cpp33 Notification::NotificationRequest request(notificationId); in DoSomethingInterestingWithMyAPI()
34 request.IsInProgress(); in DoSomethingInterestingWithMyAPI()
36 request.SetInProgress(enabled); in DoSomethingInterestingWithMyAPI()
37 request.IsUnremovable(); in DoSomethingInterestingWithMyAPI()
38 request.SetUnremovable(enabled); in DoSomethingInterestingWithMyAPI()
39 request.GetBadgeNumber(); in DoSomethingInterestingWithMyAPI()
40 request.GetNotificationId(); in DoSomethingInterestingWithMyAPI()
42 request.SetWantAgent(wantAgent); in DoSomethingInterestingWithMyAPI()
43 request.GetWantAgent(); in DoSomethingInterestingWithMyAPI()
44 request in DoSomethingInterestingWithMyAPI()
[all...]
/base/location/test/fuzztest/locator/requestmanager_fuzzer/
H A Drequestmanager_fuzzer.cpp20 #include "request.h"
34 std::shared_ptr<Request> request = std::make_shared<Request>(); in RequestManagerFuzzerTest() local
46 requestManager->UpdateRequestRecord(request, true); in RequestManagerFuzzerTest()
47 requestManager->UpdateRequestRecord(request, false); in RequestManagerFuzzerTest()
49 requestManager->UpdateUsingPermission(request, true); in RequestManagerFuzzerTest()
57 std::shared_ptr<Request> request = std::make_shared<Request>(); in RequestFuzzerTest() local
58 request->SetUid(data[index++]); in RequestFuzzerTest()
59 request->SetPid(data[index++]); in RequestFuzzerTest()
61 request->SetPackageName(packageName); in RequestFuzzerTest()
63 request in RequestFuzzerTest()
[all...]
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
H A Dres_config_impl_test.cpp503 ResConfigImpl *request = CreateResConfigImpl(nullptr, nullptr, nullptr); in HWTEST_F() local
506 EXPECT_TRUE(current->IsMoreSuitable(other, request)); in HWTEST_F()
507 EXPECT_TRUE(other->IsMoreSuitable(current, request)); in HWTEST_F()
508 delete request; in HWTEST_F()
520 ResConfigImpl *request = CreateResConfigImpl("fr", nullptr, "CA"); in HWTEST_F() local
523 EXPECT_TRUE(current->IsMoreSuitable(other, request)); in HWTEST_F()
524 EXPECT_TRUE(other->IsMoreSuitable(current, request)); in HWTEST_F()
525 delete request; in HWTEST_F()
537 ResConfigImpl *request = CreateResConfigImpl("fr", nullptr, "CA"); in HWTEST_F() local
540 EXPECT_TRUE(current->IsMoreSuitable(other, request)); in HWTEST_F()
554 ResConfigImpl *request = CreateResConfigImpl("fil", nullptr, "PH"); HWTEST_F() local
571 ResConfigImpl *request = CreateResConfigImpl("fil", nullptr, "PH"); HWTEST_F() local
588 ResConfigImpl *request = CreateResConfigImpl("es", nullptr, "AR"); HWTEST_F() local
605 ResConfigImpl *request = CreateResConfigImpl("es", nullptr, "AR"); HWTEST_F() local
622 ResConfigImpl *request = CreateResConfigImpl("es", nullptr, "AR"); HWTEST_F() local
639 ResConfigImpl *request = CreateResConfigImpl("es", nullptr, "AR"); HWTEST_F() local
656 ResConfigImpl *request = CreateResConfigImpl("es", nullptr, "AR"); HWTEST_F() local
673 ResConfigImpl *request = CreateResConfigImpl("es", nullptr, "AR"); HWTEST_F() local
690 ResConfigImpl *request = CreateResConfigImpl("es", nullptr, "AR"); HWTEST_F() local
707 ResConfigImpl *request = CreateResConfigImpl("es", nullptr, "AR"); HWTEST_F() local
724 ResConfigImpl *request = CreateResConfigImpl("es", nullptr, "IC"); HWTEST_F() local
741 ResConfigImpl *request = CreateResConfigImpl("es", nullptr, "GQ"); HWTEST_F() local
758 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "GB"); HWTEST_F() local
775 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "PR"); HWTEST_F() local
792 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "DE"); HWTEST_F() local
809 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "IN"); HWTEST_F() local
826 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "PR"); HWTEST_F() local
843 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "IN"); HWTEST_F() local
860 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "IN"); HWTEST_F() local
877 ResConfigImpl *request = CreateResConfigImpl("pt", nullptr, "MZ"); HWTEST_F() local
894 ResConfigImpl *request = CreateResConfigImpl("pt", nullptr, "MZ"); HWTEST_F() local
911 ResConfigImpl *request = CreateResConfigImpl("zh", "Hant", "MO"); HWTEST_F() local
928 ResConfigImpl *request = CreateResConfigImpl("zh", "Hant", "US"); HWTEST_F() local
945 ResConfigImpl *request = CreateResConfigImpl("ar", nullptr, "DZ"); HWTEST_F() local
962 ResConfigImpl *request = CreateResConfigImpl("ar", nullptr, "EG"); HWTEST_F() local
979 ResConfigImpl *request = CreateResConfigImpl("ar", nullptr, "QA"); HWTEST_F() local
996 ResConfigImpl *request = CreateResConfigImpl("ar", nullptr, "QA"); HWTEST_F() local
1013 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1030 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1047 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "PR"); HWTEST_F() local
1064 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1081 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "PR"); HWTEST_F() local
1098 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1115 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "CN"); HWTEST_F() local
1132 ResConfigImpl *request = CreateResConfigImpl("en", "Qaag", nullptr); HWTEST_F() local
1149 ResConfigImpl *request = CreateResConfigImpl("en", "Qaag", nullptr); HWTEST_F() local
1166 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1183 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1202 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1224 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1249 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1272 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1298 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1324 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1350 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1368 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1386 ResConfigImpl *request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
[all...]
/base/telephony/cellular_data/services/src/utils/
H A Dnet_manager_call_back.cpp33 NetRequest request; in RequestNetwork() local
35 request.capability |= 1L << netCap; in RequestNetwork()
37 request.ident = ident; in RequestNetwork()
38 request.registerType = netrequest.registerType; in RequestNetwork()
40 request.bearTypes |= 1L << netBearType; in RequestNetwork()
42 int32_t result = DelayedRefSingleton<CellularDataService>::GetInstance().RequestNet(request); in RequestNetwork()
52 NetRequest request; in ReleaseNetwork() local
54 request.capability |= 1L << netCap; in ReleaseNetwork()
56 request.ident = ident; in ReleaseNetwork()
57 int32_t result = DelayedRefSingleton<CellularDataService>::GetInstance().ReleaseNet(request); in ReleaseNetwork()
63 NetRequest request; AddRequest() local
74 NetRequest request; RemoveRequest() local
[all...]
/base/location/services/location_locator/locator/source/
H A Dreport_manager.cpp72 auto request = *iter; in OnReportLocation() local
73 WriteNetWorkReportEvent(abilityName, request, location); in OnReportLocation()
75 if (request->GetUuid() == location->GetUuid() || location->GetIsFromMock()) { in OnReportLocation()
76 ProcessRequestForReport(request, deadRequests, location, abilityName); in OnReportLocation()
80 ProcessRequestForReport(request, deadRequests, location, abilityName); in OnReportLocation()
84 auto request = *iter; in OnReportLocation() local
85 if (request == nullptr) { in OnReportLocation()
90 requestManger->UpdateRequestRecord(request, false); in OnReportLocation()
113 bool ReportManager::ProcessRequestForReport(std::shared_ptr<Request>& request, in ProcessRequestForReport() argument
118 request in ProcessRequestForReport()
169 ExecuteReportProcess(std::shared_ptr<Request>& request, std::unique_ptr<Location>& location, std::string abilityName) ExecuteReportProcess() argument
185 GetPermittedLocation(const std::shared_ptr<Request>& request, const std::unique_ptr<Location>& location) GetPermittedLocation() argument
250 ResultCheck(const std::unique_ptr<Location>& location, const std::shared_ptr<Request>& request) ResultCheck() argument
343 GetCacheLocation(const std::shared_ptr<Request>& request) GetCacheLocation() argument
428 IsRequestFuse(const std::shared_ptr<Request>& request) IsRequestFuse() argument
445 WriteNetWorkReportEvent(std::string abilityName, const std::shared_ptr<Request>& request, const std::unique_ptr<Location>& location) WriteNetWorkReportEvent() argument
[all...]
H A Drequest_manager.cpp84 bool RequestManager::UpdateUsingPermission(std::shared_ptr<Request> request, const bool isStart) in UpdateUsingPermission() argument
88 if (request == nullptr) { in UpdateUsingPermission()
89 LBSLOGE(REQUEST_MANAGER, "request is null"); in UpdateUsingPermission()
93 bool ret = UpdateUsingApproximatelyPermission(request, isStart); in UpdateUsingPermission()
98 bool RequestManager::UpdateUsingApproximatelyPermission(std::shared_ptr<Request> request, const bool isStart) in UpdateUsingApproximatelyPermission() argument
101 uint32_t callingTokenId = request->GetTokenId(); in UpdateUsingApproximatelyPermission()
102 if (isStart && !request->GetApproximatelyPermState()) { in UpdateUsingApproximatelyPermission()
105 locatorAbility->IsHapCaller(request->GetTokenId())) { in UpdateUsingApproximatelyPermission()
109 ret = locatorAbility->UpdatePermissionUsedRecord(request->GetTokenId(), in UpdateUsingApproximatelyPermission()
110 ACCESS_APPROXIMATELY_LOCATION, request in UpdateUsingApproximatelyPermission()
127 HandleStartLocating(std::shared_ptr<Request> request) HandleStartLocating() argument
176 auto request = *iter; RestorRequest() local
195 UpdateRequestRecord(std::shared_ptr<Request> request, bool shouldInsert) UpdateRequestRecord() argument
210 UpdateRequestRecord(std::shared_ptr<Request> request, std::string abilityName, bool shouldInsert) UpdateRequestRecord() argument
255 auto request = *it; HandleChrEvent() local
295 auto request = *iter; HandleStopLocating() local
319 auto request = *iter; DeleteRequestRecord() local
354 auto request = *iter; HandleRequest() local
373 ActiveLocatingStrategies(const std::shared_ptr<Request>& request) ActiveLocatingStrategies() argument
396 IsRequestAvailable(std::shared_ptr<Request>& request) IsRequestAvailable() argument
441 AddRequestToWorkRecord(std::string abilityName, std::shared_ptr<Request>& request, std::shared_ptr<WorkRecord>& workRecord) AddRequestToWorkRecord() argument
593 UpdateRunningUids(const std::shared_ptr<Request>& request, std::string abilityName, bool isAdd) UpdateRunningUids() argument
677 ReportLocationError(const int errorCode, std::shared_ptr<Request> request) ReportLocationError() argument
702 UpdateLocationError(std::shared_ptr<Request> request) UpdateLocationError() argument
[all...]
/base/request/request/test/unittest/cpp_test/fwkTest/src/
H A Drequest_test.cpp26 #include "request.h"
74 Request request = Request(tid); in HWTEST_F() local
75 EXPECT_EQ(request.getId(), tid); in HWTEST_F()
99 Request request = Request(tid); in HWTEST_F() local
101 request.AddListener(type, listenerPtr); in HWTEST_F()
102 EXPECT_EQ(request.HasListener(), true); in HWTEST_F()
103 request.RemoveListener(type, listenerPtr); in HWTEST_F()
104 EXPECT_EQ(request.HasListener(), false); in HWTEST_F()
106 request.AddListener(type, listenerPtr); in HWTEST_F()
107 EXPECT_EQ(request in HWTEST_F()
133 Request request = Request(tid); HWTEST_F() local
165 Request request = Request(tid); HWTEST_F() local
201 Request request = Request(tid); HWTEST_F() local
229 Request request = Request(tid); HWTEST_F() local
249 Request request = Request(tid); HWTEST_F() local
[all...]
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_test.cpp46 sptr<NotificationRequest> request = nullptr; in HWTEST_F() local
47 auto rrc = std::make_shared<Notification>(request); in HWTEST_F()
71 sptr<NotificationRequest> request = nullptr; in HWTEST_F() local
72 auto rrc = std::make_shared<Notification>(deviceId, request); in HWTEST_F()
86 sptr<NotificationRequest> request = nullptr; in HWTEST_F() local
87 auto rrc = std::make_shared<Notification>(request); in HWTEST_F()
100 sptr<NotificationRequest> request = nullptr; in HWTEST_F() local
101 auto rrc = std::make_shared<Notification>(request); in HWTEST_F()
114 sptr<NotificationRequest> request = new NotificationRequest(1); in HWTEST_F() local
115 auto rrc = std::make_shared<Notification>(request); in HWTEST_F()
133 sptr<NotificationRequest> request = new(std::nothrow) NotificationRequest(notificationId); HWTEST_F() local
147 sptr<NotificationRequest> request = nullptr; HWTEST_F() local
163 sptr<NotificationRequest> request = nullptr; HWTEST_F() local
179 sptr<NotificationRequest> request = nullptr; HWTEST_F() local
194 sptr<NotificationRequest> request = nullptr; HWTEST_F() local
212 sptr<NotificationRequest> request = sptr<NotificationRequest>::MakeSptr(); HWTEST_F() local
236 sptr<NotificationRequest> request = sptr<NotificationRequest>::MakeSptr(); HWTEST_F() local
258 sptr<NotificationRequest> request = nullptr; HWTEST_F() local
273 sptr<NotificationRequest> request = nullptr; HWTEST_F() local
288 sptr<NotificationRequest> request = new NotificationRequest(); HWTEST_F() local
302 sptr<NotificationRequest> request = new NotificationRequest(); HWTEST_F() local
338 sptr<NotificationRequest> request = new NotificationRequest(); HWTEST_F() local
353 sptr<NotificationRequest> request = new NotificationRequest(); HWTEST_F() local
369 sptr<NotificationRequest> request = new NotificationRequest(); HWTEST_F() local
392 sptr<NotificationRequest> request = new NotificationRequest(); HWTEST_F() local
408 sptr<NotificationRequest> request = nullptr; HWTEST_F() local
425 sptr<NotificationRequest> request = nullptr; HWTEST_F() local
441 sptr<NotificationRequest> request = nullptr; HWTEST_F() local
456 sptr<NotificationRequest> request = nullptr; HWTEST_F() local
473 sptr<NotificationRequest> request = nullptr; HWTEST_F() local
487 sptr<NotificationRequest> request = new NotificationRequest(1); HWTEST_F() local
504 sptr<NotificationRequest> request = new NotificationRequest(1); HWTEST_F() local
521 sptr<NotificationRequest> request = new NotificationRequest(1); HWTEST_F() local
538 sptr<NotificationRequest> request = new NotificationRequest(); HWTEST_F() local
559 sptr<NotificationRequest> request = new NotificationRequest(); HWTEST_F() local
578 sptr<NotificationRequest> request = new NotificationRequest(1); HWTEST_F() local
592 sptr<NotificationRequest> request = new NotificationRequest(1); HWTEST_F() local
[all...]
/base/security/access_token/frameworks/privacy/src/
H A Dpermission_used_request_parcel.cpp24 RETURN_IF_FALSE(out.WriteUint32(this->request.tokenId)); in Marshalling()
25 RETURN_IF_FALSE(out.WriteBool(this->request.isRemote)); in Marshalling()
26 RETURN_IF_FALSE(out.WriteString(this->request.deviceId)); in Marshalling()
27 RETURN_IF_FALSE(out.WriteString(this->request.bundleName)); in Marshalling()
29 RETURN_IF_FALSE(out.WriteUint32(this->request.permissionList.size())); in Marshalling()
30 for (const auto& perm : this->request.permissionList) { in Marshalling()
33 RETURN_IF_FALSE(out.WriteInt64(this->request.beginTimeMillis)); in Marshalling()
34 RETURN_IF_FALSE(out.WriteInt64(this->request.endTimeMillis)); in Marshalling()
35 RETURN_IF_FALSE(out.WriteInt32(this->request.flag)); in Marshalling()
46 RELEASE_IF_FALSE(in.ReadUint32(requestParcel->request in Unmarshalling()
[all...]
/base/account/os_account/services/accountmgr/src/appaccount/
H A Dapp_account_manager_service.cpp64 AuthenticatorSessionRequest request; in AddAccountImplicitly() local
65 request.callerPid = IPCSkeleton::GetCallingRealPid(); in AddAccountImplicitly()
66 ErrCode result = GetCallingInfo(request.callerUid, request.callerBundleName, request.appIndex); in AddAccountImplicitly()
70 request.owner = owner; in AddAccountImplicitly()
71 request.authType = authType; in AddAccountImplicitly()
72 request.options = options; in AddAccountImplicitly()
73 request.callerAbilityName = options.GetStringParam(Constants::KEY_CALLER_ABILITY_NAME); in AddAccountImplicitly()
74 request in AddAccountImplicitly()
96 AuthenticatorSessionRequest request; CreateAccountImplicitly() local
316 AuthenticatorSessionRequest request; Authenticate() local
337 AuthenticatorSessionRequest request; GetOAuthToken() local
351 AuthenticatorSessionRequest request; GetAuthToken() local
365 AuthenticatorSessionRequest request; SetOAuthToken() local
380 AuthenticatorSessionRequest request; DeleteOAuthToken() local
395 AuthenticatorSessionRequest request; DeleteAuthToken() local
407 GetTokenVisibilityParam(const std::string &name, const std::string &authType, const std::string &bundleName, AuthenticatorSessionRequest &request) GetTokenVisibilityParam() argument
424 AuthenticatorSessionRequest request; SetOAuthTokenVisibility() local
436 AuthenticatorSessionRequest request; SetAuthTokenVisibility() local
466 AuthenticatorSessionRequest request; CheckOAuthTokenVisibility() local
477 AuthenticatorSessionRequest request; CheckAuthTokenVisibility() local
487 AuthenticatorSessionRequest request; GetAuthenticatorInfo() local
501 AuthenticatorSessionRequest request; GetAllOAuthTokens() local
514 AuthenticatorSessionRequest request; GetOAuthList() local
527 AuthenticatorSessionRequest request; GetAuthList() local
540 AuthenticatorSessionRequest request; GetAuthenticatorCallback() local
662 AuthenticatorSessionRequest request; VerifyCredential() local
677 AuthenticatorSessionRequest request; CheckAccountLabels() local
692 AuthenticatorSessionRequest request; SetAuthenticatorProperties() local
[all...]
/base/notification/distributed_notification_service/test/fuzztest/publishnotification_fuzzer/
H A Dpublishnotification_fuzzer.cpp29 Notification::NotificationRequest request; in DoSomethingInterestingWithMyAPI() local
30 request.SetAlertOneTime(*data % ENABLE); in DoSomethingInterestingWithMyAPI()
35 request.SetBadgeIconStyle(badgeStyle); in DoSomethingInterestingWithMyAPI()
36 request.SetBadgeNumber(style); in DoSomethingInterestingWithMyAPI()
37 request.SetClassification(stringData); in DoSomethingInterestingWithMyAPI()
40 request.SetColor(color); in DoSomethingInterestingWithMyAPI()
41 request.SetColorEnabled(*data % ENABLE); in DoSomethingInterestingWithMyAPI()
50 request.SetContent(content); in DoSomethingInterestingWithMyAPI()
51 request.SetCountdownTimer(*data % ENABLE); in DoSomethingInterestingWithMyAPI()
52 request in DoSomethingInterestingWithMyAPI()
[all...]
/base/hiviewdfx/faultloggerd/frameworks/localhandler/
H A Ddfx_crash_local_handler.cpp47 static __attribute__((noinline)) int RequestOutputLogFile(const struct ProcessDumpRequest* request) in RequestOutputLogFile() argument
53 faultloggerdRequest.pid = request->pid; in RequestOutputLogFile()
54 faultloggerdRequest.tid = request->tid; in RequestOutputLogFile()
55 faultloggerdRequest.uid = request->uid; in RequestOutputLogFile()
56 faultloggerdRequest.time = request->timeStamp + 1; in RequestOutputLogFile()
100 void CrashLocalHandler(const struct ProcessDumpRequest* request) in CrashLocalHandler() argument
102 int fd = RequestOutputLogFile(request); in CrashLocalHandler()
103 CrashLocalHandlerFd(fd, request); in CrashLocalHandler()
129 static void ReportToHiview(const char* logPath, const struct ProcessDumpRequest* request) in ReportToHiview() argument
133 exception.pid = request in ReportToHiview()
144 CrashLocalHandlerFd(const int fd, const struct ProcessDumpRequest* request) CrashLocalHandlerFd() argument
[all...]
/base/location/test/location_locator/source/
H A Dreport_manager_test.cpp28 #include "request.h"
117 std::shared_ptr<Request> request = std::make_shared<Request>(); in HWTEST_F() local
118 request->SetUid(1000); in HWTEST_F()
119 request->SetPid(0); in HWTEST_F()
120 request->SetTokenId(tokenId_); in HWTEST_F()
121 request->SetFirstTokenId(0); in HWTEST_F()
122 request->SetPackageName("ReportManagerTest"); in HWTEST_F()
125 EXPECT_EQ(true, reportManager_->ResultCheck(location, request)); in HWTEST_F()
126 EXPECT_EQ(false, reportManager_->ResultCheck(nullptr, request)); // no location in HWTEST_F()
127 EXPECT_EQ(false, reportManager_->ResultCheck(location, nullptr)); // no request in HWTEST_F()
169 std::shared_ptr<Request> request = std::make_shared<Request>(); HWTEST_F() local
215 std::shared_ptr<Request> request = std::make_shared<Request>(); HWTEST_F() local
233 std::shared_ptr<Request> request = std::make_shared<Request>(); HWTEST_F() local
284 std::shared_ptr<Request> request = std::make_shared<Request>(); HWTEST_F() local
373 std::shared_ptr<Request> request = std::make_shared<Request>(); HWTEST_F() local
404 std::shared_ptr<Request> request = std::make_shared<Request>(); HWTEST_F() local
421 std::shared_ptr<Request> request = std::make_shared<Request>(); HWTEST_F() local
456 std::shared_ptr<Request> request = std::make_shared<Request>(); HWTEST_F() local
481 std::shared_ptr<Request> request = std::make_shared<Request>(); HWTEST_F() local
501 std::shared_ptr<Request> request = std::make_shared<Request>(); HWTEST_F() local
[all...]
/base/location/test/fuzztest/locator/locatorbackgroundproxy_fuzzer/
H A Dlocatorbackgroundproxy_fuzzer.cpp21 #include "request.h"
35 std::shared_ptr<Request> request = in LocatorBackgroundProxyFuzzerTest() local
38 request->SetUid(data[index++]); in LocatorBackgroundProxyFuzzerTest()
39 request->SetPid(data[index++]); in LocatorBackgroundProxyFuzzerTest()
40 request->SetPackageName(bundleName); in LocatorBackgroundProxyFuzzerTest()
50 request->SetRequestConfig(*requestConfig); in LocatorBackgroundProxyFuzzerTest()
51 request->SetRequesting(true); in LocatorBackgroundProxyFuzzerTest()
52 request->SetTokenId(data[index++]); in LocatorBackgroundProxyFuzzerTest()
53 request->SetFirstTokenId(data[index++]); in LocatorBackgroundProxyFuzzerTest()
54 request in LocatorBackgroundProxyFuzzerTest()
[all...]
/base/notification/distributed_notification_service/test/fuzztest/publishcontinuoustasknotification_fuzzer/
H A Dpublishcontinuoustasknotification_fuzzer.cpp29 Notification::NotificationRequest request; in DoSomethingInterestingWithMyAPI() local
30 request.SetAlertOneTime(*data % ENABLE); in DoSomethingInterestingWithMyAPI()
35 request.SetBadgeIconStyle(badgeStyle); in DoSomethingInterestingWithMyAPI()
36 request.SetBadgeNumber(style); in DoSomethingInterestingWithMyAPI()
37 request.SetClassification(stringData); in DoSomethingInterestingWithMyAPI()
40 request.SetColor(color); in DoSomethingInterestingWithMyAPI()
41 request.SetColorEnabled(*data % ENABLE); in DoSomethingInterestingWithMyAPI()
50 request.SetContent(content); in DoSomethingInterestingWithMyAPI()
51 request.SetCountdownTimer(*data % ENABLE); in DoSomethingInterestingWithMyAPI()
52 request in DoSomethingInterestingWithMyAPI()
[all...]
/base/notification/distributed_notification_service/services/distributed/test/unittest/
H A Ddistributed_notification_manager_test.cpp34 const std::string &deviceId, const std::string &bundleName, sptr<NotificationRequest> &request) {}; in OnPublish()
36 const std::string &deviceId, const std::string &bundleName, sptr<NotificationRequest> &request) {}; in OnUpdate()
63 sptr<NotificationRequest> request = new NotificationRequest(1000); in HWTEST_F() local
64 request->SetLabel("<label>"); in HWTEST_F()
67 std::string label = request->GetLabel(); in HWTEST_F()
68 int32_t id = request->GetNotificationId(); in HWTEST_F()
70 EXPECT_EQ(distributedManager_->Publish(bundleName, label, id, request), ERR_ANS_DISTRIBUTED_OPERATION_FAILED); in HWTEST_F()
80 sptr<NotificationRequest> request = new NotificationRequest(1000); in HWTEST_F() local
81 request->SetLabel("<label>"); in HWTEST_F()
84 std::string label = request in HWTEST_F()
33 OnPublish( const std::string &deviceId, const std::string &bundleName, sptr<NotificationRequest> &request) OnPublish() argument
35 OnUpdate( const std::string &deviceId, const std::string &bundleName, sptr<NotificationRequest> &request) OnUpdate() argument
97 sptr<NotificationRequest> request = new NotificationRequest(1000); HWTEST_F() local
114 sptr<NotificationRequest> request = new NotificationRequest(1000); HWTEST_F() local
131 sptr<NotificationRequest> request = new NotificationRequest(1000); HWTEST_F() local
148 sptr<NotificationRequest> request = new NotificationRequest(1000); HWTEST_F() local
167 sptr<NotificationRequest> request = new NotificationRequest(1000); HWTEST_F() local
340 sptr<NotificationRequest> request = new NotificationRequest(1); HWTEST_F() local
353 sptr<NotificationRequest> request = new NotificationRequest(1000); HWTEST_F() local
364 sptr<NotificationRequest> request = new NotificationRequest(1000); HWTEST_F() local
[all...]
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
H A Dres_config_impl_test.cpp602 auto request = CreateResConfigImpl(nullptr, nullptr, nullptr); in HWTEST_F() local
605 EXPECT_TRUE(current->IsMoreSuitable(other, request)); in HWTEST_F()
606 EXPECT_TRUE(other->IsMoreSuitable(current, request)); in HWTEST_F()
616 auto request = CreateResConfigImpl("fr", nullptr, "CA"); in HWTEST_F() local
619 EXPECT_TRUE(current->IsMoreSuitable(other, request)); in HWTEST_F()
620 EXPECT_TRUE(other->IsMoreSuitable(current, request)); in HWTEST_F()
624 request->SetPreferredLocaleInfo(locale); in HWTEST_F()
625 EXPECT_TRUE(current->IsMoreSuitable(other, request)); in HWTEST_F()
626 EXPECT_TRUE(other->IsMoreSuitable(current, request)); in HWTEST_F()
636 auto request in HWTEST_F() local
650 auto request = CreateResConfigImpl("fil", nullptr, "PH"); HWTEST_F() local
670 auto request = CreateResConfigImpl("fil", nullptr, "PH"); HWTEST_F() local
684 auto request = CreateResConfigImpl("es", nullptr, "AR"); HWTEST_F() local
698 auto request = CreateResConfigImpl("es", nullptr, "AR"); HWTEST_F() local
712 auto request = CreateResConfigImpl("es", nullptr, "AR"); HWTEST_F() local
726 auto request = CreateResConfigImpl("es", nullptr, "AR"); HWTEST_F() local
740 auto request = CreateResConfigImpl("es", nullptr, "AR"); HWTEST_F() local
754 auto request = CreateResConfigImpl("es", nullptr, "AR"); HWTEST_F() local
774 auto request = CreateResConfigImpl("es", nullptr, "AR"); HWTEST_F() local
788 auto request = CreateResConfigImpl("es", nullptr, "AR"); HWTEST_F() local
802 auto request = CreateResConfigImpl("es", nullptr, "IC"); HWTEST_F() local
816 auto request = CreateResConfigImpl("es", nullptr, "GQ"); HWTEST_F() local
830 auto request = CreateResConfigImpl("en", nullptr, "GB"); HWTEST_F() local
844 auto request = CreateResConfigImpl("en", nullptr, "PR"); HWTEST_F() local
858 auto request = CreateResConfigImpl("en", nullptr, "DE"); HWTEST_F() local
872 auto request = CreateResConfigImpl("en", nullptr, "IN"); HWTEST_F() local
886 auto request = CreateResConfigImpl("en", nullptr, "PR"); HWTEST_F() local
900 auto request = CreateResConfigImpl("en", nullptr, "IN"); HWTEST_F() local
914 auto request = CreateResConfigImpl("en", nullptr, "IN"); HWTEST_F() local
928 auto request = CreateResConfigImpl("pt", nullptr, "MZ"); HWTEST_F() local
942 auto request = CreateResConfigImpl("pt", nullptr, "MZ"); HWTEST_F() local
956 auto request = CreateResConfigImpl("zh", "Hant", "MO"); HWTEST_F() local
976 auto request = CreateResConfigImpl("zh", "Hant", "US"); HWTEST_F() local
990 auto request = CreateResConfigImpl("ar", nullptr, "DZ"); HWTEST_F() local
1004 auto request = CreateResConfigImpl("ar", nullptr, "EG"); HWTEST_F() local
1018 auto request = CreateResConfigImpl("ar", nullptr, "QA"); HWTEST_F() local
1032 auto request = CreateResConfigImpl("ar", nullptr, "QA"); HWTEST_F() local
1046 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1060 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1074 auto request = CreateResConfigImpl("en", nullptr, "PR"); HWTEST_F() local
1088 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1102 auto request = CreateResConfigImpl("en", nullptr, "PR"); HWTEST_F() local
1116 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1130 auto request = CreateResConfigImpl("en", nullptr, "CN"); HWTEST_F() local
1144 auto request = CreateResConfigImpl("en", "Qaag", nullptr); HWTEST_F() local
1164 auto request = CreateResConfigImpl("en", "Qaag", nullptr); HWTEST_F() local
1178 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1192 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1208 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1227 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1249 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1269 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1292 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1315 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1338 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1353 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1368 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1383 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1399 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1416 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1432 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1448 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1465 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1481 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1501 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1521 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1541 auto request = CreateResConfigImpl("en", nullptr, "US"); HWTEST_F() local
1561 auto request = CreateResConfigImpl("en", nullptr, "IN"); HWTEST_F() local
[all...]
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dadvanced_notification_live_view_service_test.cpp106 sptr<NotificationRequest> request = new (std::nothrow) NotificationRequest(); in HWTEST_F() local
107 request->SetSlotType(slotType); in HWTEST_F()
108 request->SetNotificationId(1); in HWTEST_F()
111 request->SetContent(content); in HWTEST_F()
114 auto record = advancedNotificationService_->MakeNotificationRecord(request, bundle); in HWTEST_F()
116 { .request = record->request, .bundleOption = bundle}; in HWTEST_F()
139 sptr<NotificationRequest> request = new (std::nothrow) NotificationRequest(); in HWTEST_F() local
140 request->SetSlotType(slotType); in HWTEST_F()
141 request in HWTEST_F()
182 sptr<NotificationRequest> request = new (std::nothrow) NotificationRequest(); HWTEST_F() local
235 sptr<NotificationRequest> request = new (std::nothrow) NotificationRequest(); HWTEST_F() local
259 sptr<NotificationRequest> request = new (std::nothrow) NotificationRequest(); HWTEST_F() local
285 sptr<NotificationRequest> request = new (std::nothrow) NotificationRequest(); HWTEST_F() local
[all...]
/base/notification/distributed_notification_service/services/ans/src/advanced_notification_publish/
H A Dlive_publish_process.cpp48 ErrCode LivePublishProcess::PublishPreWork(const sptr<NotificationRequest> &request, bool isUpdateByOwnerAllowed) in PublishPreWork() argument
51 if (!CheckLocalLiveViewAllowed(request, isUpdateByOwnerAllowed)) { in PublishPreWork()
54 NotificationAnalyticsUtil::ReportPublishFailedEvent(request, message); in PublishPreWork()
58 if (!request->IsRemoveAllowed()) { in PublishPreWork()
60 request->SetRemoveAllowed(true); in PublishPreWork()
67 if (request->GetTemplate() == nullptr) { in PublishPreWork()
70 NotificationAnalyticsUtil::ReportPublishFailedEvent(request, message); in PublishPreWork()
77 ErrCode LivePublishProcess::PublishNotificationByApp(const sptr<NotificationRequest> &request) in PublishNotificationByApp() argument
79 ErrCode result = CommonPublishCheck(request); in PublishNotificationByApp()
84 if (request in PublishNotificationByApp()
97 CheckLocalLiveViewSubscribed( const sptr<NotificationRequest> &request, bool isUpdateByOwnerAllowed, int32_t uid) CheckLocalLiveViewSubscribed() argument
116 CheckLocalLiveViewAllowed( const sptr<NotificationRequest> &request, bool isUpdateByOwnerAllowed) CheckLocalLiveViewAllowed() argument
[all...]
/base/notification/distributed_notification_service/test/fuzztest/notificationrequestannex_fuzzer/
H A Dnotificationrequestannex_fuzzer.cpp27 Notification::NotificationRequest request(notificationId); in DoSomethingInterestingWithMyAPI()
29 request.SetCreatorPid(pid); in DoSomethingInterestingWithMyAPI()
30 request.Dump(); in DoSomethingInterestingWithMyAPI()
32 request.ToJson(jsonObject); in DoSomethingInterestingWithMyAPI()
33 request.FromJson(jsonObject); in DoSomethingInterestingWithMyAPI()
34 request.ConvertObjectsToJson(jsonObject); in DoSomethingInterestingWithMyAPI()
35 request.ConvertObjectsToJson(jsonObject); in DoSomethingInterestingWithMyAPI()
36 return request.IsAgentNotification(); in DoSomethingInterestingWithMyAPI()

Completed in 17 milliseconds

12345678910>>...20