/base/startup/appspawn/test/moduletest/ |
D | appspawn_client_test.cpp | 40 AppParameter request = {}; variable 41 memset_s((void *)(&request), sizeof(request), 0, sizeof(request)); 42 ClientFillMsg(&request, "ohos.samples.clock", "ls -l > aaa.txt"); 43 request.code = SPAWN_NATIVE_PROCESS; 44 ret = ClientSendMsg(reinterpret_cast<const uint8_t *>(&request), sizeof(request)); 61 AppParameter request = {}; variable 62 memset_s((void *)(&request), sizeof(request), 0, sizeof(request)); 63 ClientFillMsg(&request, "ohos.samples.clock", "ls -l > aaa.txt"); 66 request.gidCount = APP_MAX_GIDS + 1; 67 ret = ClientSendMsg(reinterpret_cast<const uint8_t *>(&request), sizeof(request)); [all …]
|
D | appspawn_test_client.h | 96 … void ClientFillMsg(AppParameter *request, const std::string &processName, const std::string &cmd) in ClientFillMsg() argument 98 request->code = DEFAULT; in ClientFillMsg() 99 request->flags = 0; in ClientFillMsg() 100 request->uid = 20010033; // 20010033 test uid in ClientFillMsg() 101 request->gid = 20010033; // 20010033 test gid in ClientFillMsg() 102 request->gidCount = 0; in ClientFillMsg() 103 request->accessTokenId = 0x200a509d; // 0x200a509d test token id in ClientFillMsg() 104 request->accessTokenIdEx = 0x4832514205; // 0x4832514205 test token id in ClientFillMsg() 105 request->allowInternet = 1; in ClientFillMsg() 106 request->hspList.totalLength = 0; in ClientFillMsg() [all …]
|
D | appspawn_test_cmd.cpp | 23 static int DoRun(const char *server, const AppParameter *request) in DoRun() argument 30 …ret = g_testClient.ClientSendMsg(reinterpret_cast<const uint8_t *>(request), sizeof(AppParameter)); in DoRun() 90 AppParameter request = {}; in main() local 91 memset_s((void *)(&request), sizeof(request), 0, sizeof(request)); in main() 92 g_testClient.ClientFillMsg(&request, bundleName, cmd); in main() 94 request.flags = coldStart ? APP_COLD_BOOT : 0; in main() 95 request.flags |= !withSandbox ? APP_NO_SANDBOX : 0; in main() 96 request.code = SPAWN_NATIVE_PROCESS; in main() 97 return DoRun(server, &request); in main()
|
/base/notification/distributed_notification_service/test/fuzztest/settemplate_fuzzer/ |
D | settemplate_fuzzer.cpp | 32 Notification::NotificationRequest request(notificationId); in DoSomethingInterestingWithMyAPI() local 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.SetProgressBar(notificationId, notificationId, enabled); in DoSomethingInterestingWithMyAPI() [all …]
|
/base/notification/distributed_notification_service/test/fuzztest/setprogressbar_fuzzer/ |
D | setprogressbar_fuzzer.cpp | 28 Notification::NotificationRequest request(notificationId); in DoSomethingInterestingWithMyAPI() local 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.GetColor(); in DoSomethingInterestingWithMyAPI() [all …]
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/faultloggerd_client/ |
D | faultloggerd_client.cpp | 50 struct FaultLoggerdRequest request; in RequestFileDescriptor() local 51 (void)memset_s(&request, sizeof(request), 0, sizeof(request)); in RequestFileDescriptor() 52 request.type = type; in RequestFileDescriptor() 53 request.pid = getpid(); in RequestFileDescriptor() 54 request.tid = gettid(); in RequestFileDescriptor() 55 request.uid = getuid(); in RequestFileDescriptor() 56 request.time = OHOS::HiviewDFX::GetTimeMilliSeconds(); in RequestFileDescriptor() 57 return RequestFileDescriptorEx(&request); in RequestFileDescriptor() 60 int32_t RequestLogFileDescriptor(struct FaultLoggerdRequest *request) in RequestLogFileDescriptor() argument 62 request->clientType = (int32_t)FaultLoggerClientType::LOG_FILE_DES_CLIENT; in RequestLogFileDescriptor() [all …]
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
D | process_dumper.cpp | 60 std::shared_ptr<ProcessDumpRequest> request = std::make_shared<ProcessDumpRequest>(); in Dump() local 61 resDump_ = DumpProcess(request); in Dump() 74 …DFXLOG_INFO("Finish dump stacktrace for %s(%d:%d).", request->processName, request->pid, request->… in Dump() 84 int ProcessDumper::DumpProcess(std::shared_ptr<ProcessDumpRequest> request) in DumpProcess() argument 88 ssize_t readCount = read(STDIN_FILENO, request.get(), sizeof(ProcessDumpRequest)); in DumpProcess() 95 isCrash_ = (request->siginfo.si_signo != SIGDUMP); in DumpProcess() 100 if ((!isCrash_ && (syscall(SYS_getppid) != request->nsPid)) || in DumpProcess() 101 (isCrash_ && (syscall(SYS_getppid) != request->vmNsPid))) { in DumpProcess() 103 … request->processName, request->nsPid, syscall(SYS_getppid), request->siginfo.si_signo); in DumpProcess() 108 …request->siginfo.si_value.sival_int, request->pid, request->nsPid, request->tid, request->threadNa… in DumpProcess() [all …]
|
/base/location/test/fuzztest/locator/requestmanager_fuzzer/ |
D | requestmanager_fuzzer.cpp | 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); 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->SetRequestConfig(*requestConfig); in RequestFuzzerTest() 64 request->SetLocatorCallBack(nullptr); in RequestFuzzerTest() [all …]
|
/base/notification/distributed_notification_service/test/fuzztest/notificationrequest_fuzzer/ |
D | notificationrequest_fuzzer.cpp | 33 Notification::NotificationRequest request(notificationId); in DoSomethingInterestingWithMyAPI() local 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.SetRemovalWantAgent(wantAgent); in DoSomethingInterestingWithMyAPI() [all …]
|
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
D | res_config_impl_test.cpp | 503 ResConfigImpl *request = CreateResConfigImpl(nullptr, nullptr, nullptr); variable 506 EXPECT_TRUE(current->IsMoreSuitable(other, request)); 507 EXPECT_TRUE(other->IsMoreSuitable(current, request)); 508 delete request; 520 ResConfigImpl *request = CreateResConfigImpl("fr", nullptr, "CA"); variable 523 EXPECT_TRUE(current->IsMoreSuitable(other, request)); 524 EXPECT_TRUE(other->IsMoreSuitable(current, request)); 525 delete request; 537 ResConfigImpl *request = CreateResConfigImpl("fr", nullptr, "CA"); variable 540 EXPECT_TRUE(current->IsMoreSuitable(other, request)); [all …]
|
/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
D | res_config_impl_test.cpp | 602 ResConfigImpl *request = CreateResConfigImpl(nullptr, nullptr, nullptr); variable 605 EXPECT_TRUE(current->IsMoreSuitable(other, request)); 606 EXPECT_TRUE(other->IsMoreSuitable(current, request)); 607 delete request; 619 ResConfigImpl *request = CreateResConfigImpl("fr", nullptr, "CA"); variable 622 EXPECT_TRUE(current->IsMoreSuitable(other, request)); 623 EXPECT_TRUE(other->IsMoreSuitable(current, request)); 624 delete request; 636 ResConfigImpl *request = CreateResConfigImpl("fr", nullptr, "CA"); variable 639 EXPECT_TRUE(current->IsMoreSuitable(other, request)); [all …]
|
/base/account/os_account/services/accountmgr/src/appaccount/ |
D | app_account_manager_service.cpp | 63 AuthenticatorSessionRequest request; in AddAccountImplicitly() local 64 request.callerPid = IPCSkeleton::GetCallingPid(); in AddAccountImplicitly() 65 ErrCode result = GetCallingInfo(request.callerUid, request.callerBundleName, request.appIndex); in AddAccountImplicitly() 69 request.owner = owner; in AddAccountImplicitly() 70 request.authType = authType; in AddAccountImplicitly() 71 request.options = options; in AddAccountImplicitly() 72 request.callerAbilityName = options.GetStringParam(Constants::KEY_CALLER_ABILITY_NAME); in AddAccountImplicitly() 73 request.callback = callback; in AddAccountImplicitly() 74 request.options.RemoveParam(Constants::KEY_CALLER_ABILITY_NAME); in AddAccountImplicitly() 75 request.options.SetParam(Constants::KEY_CALLER_PID, request.callerPid); in AddAccountImplicitly() [all …]
|
/base/account/os_account/services/accountmgr/test/moduletest/app_account/ |
D | app_account_execute_request_test.cpp | 65 void OnRequestRedirected(const AAFwk::Want &request) override; 82 …d MockAppAccountAuthorizationExtensionCallbackStub::OnRequestRedirected(const AAFwk::Want &request) in OnRequestRedirected() argument 118 AccountCapabilityRequest request; variable 119 request.bundleName = STRING_NORMAL_BUNDLENAME; 120 request.abilityName = STRING_ABILITY_NAME; 122 ErrCode result = g_accountManagerService->ExecuteRequest(request, callback); 138 AccountCapabilityRequest request; variable 139 request.bundleName = STRING_NORMAL_BUNDLENAME; 140 request.abilityName = ""; 142 ErrCode result = g_accountManagerService->ExecuteRequest(request, callback); [all …]
|
/base/security/access_token/frameworks/privacy/src/ |
D | permission_used_request_parcel.cpp | 24 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.tokenId), requestParcel); in Unmarshalling() [all …]
|
/base/location/services/location_locator/locator/source/ |
D | request_manager.cpp | 60 void RequestManager::UpdateUsingPermission(std::shared_ptr<Request> request) in UpdateUsingPermission() argument 64 if (request == nullptr) { in UpdateUsingPermission() 70 request->GetTokenId(), request->GetFirstTokenId()); in UpdateUsingPermission() 71 UpdateUsingApproximatelyPermission(request); in UpdateUsingPermission() 75 void RequestManager::UpdateUsingLocationPermission(std::shared_ptr<Request> request) in UpdateUsingLocationPermission() argument 77 uint32_t callingTokenId = request->GetTokenId(); in UpdateUsingLocationPermission() 78 uint32_t callingFirstTokenid = request->GetFirstTokenId(); in UpdateUsingLocationPermission() 79 int32_t uid = request->GetUid(); in UpdateUsingLocationPermission() 82 if (!request->GetLocationPermState()) { in UpdateUsingLocationPermission() 84 request->SetLocationPermState(true); in UpdateUsingLocationPermission() [all …]
|
D | report_manager.cpp | 68 auto request = *iter; in OnReportLocation() local 69 if (!ProcessRequestForReport(request, deadRequests, location)) { in OnReportLocation() 75 auto request = *iter; in OnReportLocation() local 76 if (request == nullptr) { in OnReportLocation() 81 requestManger->UpdateRequestRecord(request, false); in OnReportLocation() 89 bool ReportManager::ProcessRequestForReport(std::shared_ptr<Request>& request, in ProcessRequestForReport() argument 92 if (request == nullptr || request->GetRequestConfig() == nullptr || in ProcessRequestForReport() 93 !request->GetIsRequesting()) { in ProcessRequestForReport() 96 std::unique_ptr<Location> finalLocation = GetPermittedLocation(request->GetUid(), in ProcessRequestForReport() 97 request->GetTokenId(), request->GetFirstTokenId(), location); in ProcessRequestForReport() [all …]
|
/base/request/request/test/unittest/common/napi/requestTest/ |
D | RequestUploadTest.js | 17 import request from '@ohos.request'; 90 … console.info("SUB_REQUEST_UPLOAD_API_0001 request.NETWORK_MOBILE: " + request.NETWORK_MOBILE); 91 expect(request.NETWORK_MOBILE).assertEqual(1); 92 console.info("SUB_REQUEST_UPLOAD_API_0001 request.NETWORK_WIFI: " + request.NETWORK_WIFI); 93 expect(request.NETWORK_WIFI).assertEqual(65536); 94 …console.info("SUB_REQUEST_UPLOAD_API_0001 request.ERROR_CANNOT_RESUME: " + request.ERROR_CANNOT_RE… 95 expect(request.ERROR_CANNOT_RESUME).assertEqual(0); 96 …console.info("SUB_REQUEST_UPLOAD_API_0001 request.ERROR_DEVICE_NOT_FOUND: " + request.ERROR_DEVICE… 97 expect(request.ERROR_DEVICE_NOT_FOUND).assertEqual(1); 117 …console.info("SUB_REQUEST_UPLOAD_API_0002 request.ERROR_FILE_ALREADY_EXISTS: " + request.ERROR_FIL… [all …]
|
/base/notification/distributed_notification_service/test/fuzztest/publishnotification_fuzzer/ |
D | publishnotification_fuzzer.cpp | 29 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.SetCreatorBundleName(stringData); in DoSomethingInterestingWithMyAPI() [all …]
|
/base/location/test/fuzztest/locator/locatorbackgroundproxy_fuzzer/ |
D | locatorbackgroundproxy_fuzzer.cpp | 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->SetLocationPermState(false); in LocatorBackgroundProxyFuzzerTest() 55 request->SetBackgroundPermState(false); in LocatorBackgroundProxyFuzzerTest() [all …]
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
D | notification_test.cpp | 46 sptr<NotificationRequest> request = nullptr; variable 47 auto rrc = std::make_shared<Notification>(request); 71 sptr<NotificationRequest> request = nullptr; variable 72 auto rrc = std::make_shared<Notification>(deviceId, request); 86 sptr<NotificationRequest> request = nullptr; variable 87 auto rrc = std::make_shared<Notification>(request); 100 sptr<NotificationRequest> request = nullptr; variable 101 auto rrc = std::make_shared<Notification>(request); 114 sptr<NotificationRequest> request = new NotificationRequest(1); variable 115 auto rrc = std::make_shared<Notification>(request); [all …]
|
/base/notification/distributed_notification_service/test/fuzztest/publishcontinuoustasknotification_fuzzer/ |
D | publishcontinuoustasknotification_fuzzer.cpp | 29 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.SetCreatorBundleName(stringData); in DoSomethingInterestingWithMyAPI() [all …]
|
/base/notification/distributed_notification_service/services/distributed/test/unittest/ |
D | distributed_notification_manager_test.cpp | 34 …const std::string &deviceId, const std::string &bundleName, sptr<NotificationRequest> &request) {}; in OnPublish() argument 36 …const std::string &deviceId, const std::string &bundleName, sptr<NotificationRequest> &request) {}; in OnUpdate() argument 63 sptr<NotificationRequest> request = new NotificationRequest(1000); variable 64 request->SetLabel("<label>"); 67 std::string label = request->GetLabel(); 68 int32_t id = request->GetNotificationId(); 70 …EXPECT_EQ(distributedManager_->Publish(bundleName, label, id, request), ERR_ANS_DISTRIBUTED_OPERAT… 80 sptr<NotificationRequest> request = new NotificationRequest(1000); variable 81 request->SetLabel("<label>"); 84 std::string label = request->GetLabel(); [all …]
|
/base/notification/distributed_notification_service/test/fuzztest/notificationrequestannex_fuzzer/ |
D | notificationrequestannex_fuzzer.cpp | 27 Notification::NotificationRequest request(notificationId); in DoSomethingInterestingWithMyAPI() local 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()
|
/base/telephony/cellular_data/services/src/utils/ |
D | net_manager_call_back.cpp | 31 NetRequest request; in RequestNetwork() local 32 request.capability = *netCaps.begin(); in RequestNetwork() 33 request.ident = ident; in RequestNetwork() 34 int32_t result = DelayedRefSingleton<CellularDataService>::GetInstance().RequestNet(request); in RequestNetwork() 44 NetRequest request; in ReleaseNetwork() local 45 request.capability = *netCaps.begin(); in ReleaseNetwork() 46 request.ident = ident; in ReleaseNetwork() 47 int32_t result = DelayedRefSingleton<CellularDataService>::GetInstance().ReleaseNet(request); in ReleaseNetwork()
|
/base/hiviewdfx/faultloggerd/services/ |
D | fault_logger_daemon.cpp | 165 auto request = reinterpret_cast<FaultLoggerdRequest *>(buf); in HandleRequest() local 166 if (!CheckRequestCredential(connectionFd, request)) { in HandleRequest() 170 DFXLOG_DEBUG("%s :: clientType(%d).\n", FAULTLOGGERD_TAG.c_str(), request->clientType); in HandleRequest() 171 switch (request->clientType) { in HandleRequest() 173 HandleDefaultClientRequest(connectionFd, request); in HandleRequest() 176 HandleLogFileDesClientRequest(connectionFd, request); in HandleRequest() 179 HandlePrintTHilogClientRequest(connectionFd, request); in HandleRequest() 182 HandlePermissionRequest(connectionFd, request); in HandleRequest() 185 HandleSdkDumpRequest(connectionFd, request); in HandleRequest() 188 HandlePipeFdClientRequest(connectionFd, request); in HandleRequest() [all …]
|