Home
last modified time | relevance | path

Searched refs:requestParcel (Results 1 – 21 of 21) sorted by relevance

/base/location/test/fuzztest/locator/locatorabilitystub_fuzzer/
Dlocatorabilitystub_fuzzer.cpp59 MessageParcel requestParcel; in LocatorAbilityStub001FuzzTest() local
60 requestParcel.WriteInterfaceToken(u"location.ILocator"); in LocatorAbilityStub001FuzzTest()
61 requestParcel.WriteBuffer(data, size); in LocatorAbilityStub001FuzzTest()
62 requestParcel.RewindRead(0); in LocatorAbilityStub001FuzzTest()
69 requestParcel, reply, option); in LocatorAbilityStub001FuzzTest()
76 MessageParcel requestParcel; in LocatorAbilityStub002FuzzTest() local
77 requestParcel.WriteInterfaceToken(u"location.ILocator"); in LocatorAbilityStub002FuzzTest()
78 requestParcel.WriteBuffer(data, size); in LocatorAbilityStub002FuzzTest()
79 requestParcel.RewindRead(0); in LocatorAbilityStub002FuzzTest()
86 requestParcel, reply, option); in LocatorAbilityStub002FuzzTest()
[all …]
/base/security/access_token/frameworks/privacy/src/
Dpermission_used_request_parcel.cpp41 auto* requestParcel = new (std::nothrow) PermissionUsedRequestParcel(); in Unmarshalling() local
42 if (requestParcel == nullptr) { in Unmarshalling()
46 RELEASE_IF_FALSE(in.ReadUint32(requestParcel->request.tokenId), requestParcel); in Unmarshalling()
47 RELEASE_IF_FALSE(in.ReadBool (requestParcel->request.isRemote), requestParcel); in Unmarshalling()
48 RELEASE_IF_FALSE(in.ReadString(requestParcel->request.deviceId), requestParcel); in Unmarshalling()
49 RELEASE_IF_FALSE(in.ReadString(requestParcel->request.bundleName), requestParcel); in Unmarshalling()
52 RELEASE_IF_FALSE(in.ReadUint32(permSize), requestParcel); in Unmarshalling()
53 RELEASE_IF_FALSE(permSize <= MAX_PERMLIST_SIZE, requestParcel); in Unmarshalling()
56 RELEASE_IF_FALSE(in.ReadString(perm), requestParcel); in Unmarshalling()
57 requestParcel->request.permissionList.emplace_back(perm); in Unmarshalling()
[all …]
/base/location/test/fuzztest/locator/gnssability_fuzzer/
Dgnssability_fuzzer.cpp65 MessageParcel requestParcel; in GnssAbility001FuzzTest() local
66 requestParcel.WriteInterfaceToken(u"location.IGnssAbility"); in GnssAbility001FuzzTest()
67 requestParcel.WriteBuffer(data, size); in GnssAbility001FuzzTest()
68 requestParcel.RewindRead(0); in GnssAbility001FuzzTest()
74 requestParcel, reply, option); in GnssAbility001FuzzTest()
77 requestParcel, reply, option); in GnssAbility001FuzzTest()
80 requestParcel, reply, option); in GnssAbility001FuzzTest()
83 requestParcel, reply, option); in GnssAbility001FuzzTest()
86 requestParcel, reply, option); in GnssAbility001FuzzTest()
89 requestParcel, reply, option); in GnssAbility001FuzzTest()
[all …]
/base/location/test/fuzztest/locator/geoconvertservice_fuzzer/
Dgeoconvertservice_fuzzer.cpp65 MessageParcel requestParcel; in GeoConvertServiceFuzzTest() local
66 requestParcel.WriteInterfaceToken(u"location.IGeoConvert"); in GeoConvertServiceFuzzTest()
67 requestParcel.WriteBuffer(data, size); in GeoConvertServiceFuzzTest()
68 requestParcel.RewindRead(0); in GeoConvertServiceFuzzTest()
75 requestParcel, reply, option); in GeoConvertServiceFuzzTest()
78 requestParcel, reply, option); in GeoConvertServiceFuzzTest()
81 requestParcel, reply, option); in GeoConvertServiceFuzzTest()
84 requestParcel, reply, option); in GeoConvertServiceFuzzTest()
87 requestParcel, reply, option); in GeoConvertServiceFuzzTest()
90 requestParcel, reply, option); in GeoConvertServiceFuzzTest()
/base/location/test/fuzztest/locator/networkability_fuzzer/
Dnetworkability_fuzzer.cpp66 MessageParcel requestParcel; in NetworkAbilityFuzzTest() local
67 requestParcel.WriteInterfaceToken(u"location.INetworkAbility"); in NetworkAbilityFuzzTest()
68 requestParcel.WriteBuffer(data, size); in NetworkAbilityFuzzTest()
69 requestParcel.RewindRead(0); in NetworkAbilityFuzzTest()
75 requestParcel, reply, option); in NetworkAbilityFuzzTest()
78 requestParcel, reply, option); in NetworkAbilityFuzzTest()
81 requestParcel, reply, option); in NetworkAbilityFuzzTest()
84 requestParcel, reply, option); in NetworkAbilityFuzzTest()
87 requestParcel, reply, option); in NetworkAbilityFuzzTest()
90 requestParcel, reply, option); in NetworkAbilityFuzzTest()
/base/location/test/fuzztest/locator/passiveability_fuzzer/
Dpassiveability_fuzzer.cpp65 MessageParcel requestParcel; in PassiveAbilityFuzzTest() local
66 requestParcel.WriteInterfaceToken(u"location.IPassiveAbility"); in PassiveAbilityFuzzTest()
67 requestParcel.WriteBuffer(data, size); in PassiveAbilityFuzzTest()
68 requestParcel.RewindRead(0); in PassiveAbilityFuzzTest()
75 requestParcel, reply, option); in PassiveAbilityFuzzTest()
78 requestParcel, reply, option); in PassiveAbilityFuzzTest()
81 requestParcel, reply, option); in PassiveAbilityFuzzTest()
84 requestParcel, reply, option); in PassiveAbilityFuzzTest()
87 requestParcel, reply, option); in PassiveAbilityFuzzTest()
/base/location/test/fuzztest/locator/locatorcallbackhost_fuzzer/
Dlocatorcallbackhost_fuzzer.cpp60 MessageParcel requestParcel; in LocatorCallbackHostFuzzTest() local
61 requestParcel.WriteInterfaceToken(u"location.ILocatorCallback"); in LocatorCallbackHostFuzzTest()
62 requestParcel.WriteBuffer(data, size); in LocatorCallbackHostFuzzTest()
63 requestParcel.RewindRead(0); in LocatorCallbackHostFuzzTest()
69 …callback1->OnRemoteRequest(ILocatorCallback::RECEIVE_LOCATION_INFO_EVENT, requestParcel, reply, op… in LocatorCallbackHostFuzzTest()
71 …callback2->OnRemoteRequest(ILocatorCallback::RECEIVE_LOCATION_STATUS_EVENT, requestParcel, reply, … in LocatorCallbackHostFuzzTest()
73 …callback3->OnRemoteRequest(ILocatorCallback::RECEIVE_ERROR_INFO_EVENT, requestParcel, reply, optio… in LocatorCallbackHostFuzzTest()
/base/location/test/fuzztest/locator/gnssstatuscallbackhost_fuzzer/
Dgnssstatuscallbackhost_fuzzer.cpp64 MessageParcel requestParcel; in GnssStatusCallbackHostFuzzTest() local
65 requestParcel.WriteInterfaceToken(u"location.IGnssStatusCallback"); in GnssStatusCallbackHostFuzzTest()
66 requestParcel.WriteBuffer(data, size); in GnssStatusCallbackHostFuzzTest()
67 requestParcel.RewindRead(0); in GnssStatusCallbackHostFuzzTest()
72 …callback->OnRemoteRequest(GnssStatusCallbackHost::RECEIVE_STATUS_INFO_EVENT, requestParcel, reply,… in GnssStatusCallbackHostFuzzTest()
/base/location/test/fuzztest/locator/cachedlocationcallbackhost_fuzzer/
Dcachedlocationcallbackhost_fuzzer.cpp72 MessageParcel requestParcel; in CachedLocationsCallbackHostFuzzTest() local
73 requestParcel.WriteInterfaceToken(u"location.ICachedLocationsCallback"); in CachedLocationsCallbackHostFuzzTest()
74 requestParcel.WriteBuffer(data, size); in CachedLocationsCallbackHostFuzzTest()
75 requestParcel.RewindRead(0); in CachedLocationsCallbackHostFuzzTest()
81 requestParcel, reply, option); in CachedLocationsCallbackHostFuzzTest()
/base/location/test/fuzztest/locator/countrycodecallbackhost_fuzzer/
Dcountrycodecallbackhost_fuzzer.cpp63 MessageParcel requestParcel; in CountryCodeCallbackHostFuzzTest() local
64 requestParcel.WriteInterfaceToken(u"location.ICountryCodeCallback"); in CountryCodeCallbackHostFuzzTest()
65 requestParcel.WriteBuffer(data, size); in CountryCodeCallbackHostFuzzTest()
66 requestParcel.RewindRead(0); in CountryCodeCallbackHostFuzzTest()
71 …callback->OnRemoteRequest(CountryCodeCallbackHost::COUNTRY_CODE_CHANGE_EVENT, requestParcel, reply… in CountryCodeCallbackHostFuzzTest()
/base/location/test/fuzztest/locator/locationswitchcallbackhost_fuzzer/
Dlocationswitchcallbackhost_fuzzer.cpp60 MessageParcel requestParcel; in LocationSwitchCallbackHostFuzzTest() local
61 requestParcel.WriteInterfaceToken(u"location.ISwitchCallback"); in LocationSwitchCallbackHostFuzzTest()
62 requestParcel.WriteBuffer(data, size); in LocationSwitchCallbackHostFuzzTest()
63 requestParcel.RewindRead(0); in LocationSwitchCallbackHostFuzzTest()
68 …callback->OnRemoteRequest(ISwitchCallback::RECEIVE_SWITCH_STATE_EVENT, requestParcel, reply, optio… in LocationSwitchCallbackHostFuzzTest()
/base/location/test/fuzztest/locator/nmeamessagecallbackhost_fuzzer/
Dnmeamessagecallbackhost_fuzzer.cpp63 MessageParcel requestParcel; in NmeaMessageCallbackHostFuzzTest() local
64 requestParcel.WriteInterfaceToken(u"location.INmeaMessageCallback"); in NmeaMessageCallbackHostFuzzTest()
65 requestParcel.WriteBuffer(data, size); in NmeaMessageCallbackHostFuzzTest()
66 requestParcel.RewindRead(0); in NmeaMessageCallbackHostFuzzTest()
71 …callback->OnRemoteRequest(INmeaMessageCallback::RECEIVE_NMEA_MESSAGE_EVENT, requestParcel, reply, … in NmeaMessageCallbackHostFuzzTest()
/base/location/test/fuzztest/locator/locatorcallbackstub_fuzzer/
Dlocatorcallbackstub_fuzzer.cpp69 MessageParcel requestParcel; in LocatorCallbackStubFuzzTest() local
70 requestParcel.WriteInterfaceToken(u"location.ILocatorCallback"); in LocatorCallbackStubFuzzTest()
71 requestParcel.WriteBuffer(data, size); in LocatorCallbackStubFuzzTest()
72 requestParcel.RewindRead(0); in LocatorCallbackStubFuzzTest()
77 callback->OnRemoteRequest(code, requestParcel, reply, option); in LocatorCallbackStubFuzzTest()
/base/location/test/fuzztest/locator/networkcallbackhost_fuzzer/
Dnetworkcallbackhost_fuzzer.cpp72 MessageParcel requestParcel; in NetworkCallbackHostFuzzTest() local
73 requestParcel.WriteInterfaceToken(u"location.ILocatorCallback"); in NetworkCallbackHostFuzzTest()
74 requestParcel.WriteBuffer(data, size); in NetworkCallbackHostFuzzTest()
75 requestParcel.RewindRead(0); in NetworkCallbackHostFuzzTest()
80 callback->OnRemoteRequest(code, requestParcel, reply, option); in NetworkCallbackHostFuzzTest()
/base/security/access_token/test/fuzztest/access_token_stub/getpermissionusedrecordsstub_fuzzer/
Dgetpermissionusedrecordsstub_fuzzer.cpp54 PermissionUsedRequestParcel requestParcel; in GetPermissionUsedRecordsStubFuzzTest() local
55 requestParcel.request = request; in GetPermissionUsedRecordsStubFuzzTest()
59 if (!datas.WriteParcelable(&requestParcel)) { in GetPermissionUsedRecordsStubFuzzTest()
/base/security/access_token/test/fuzztest/access_token_stub/getpermissionusedrecordsasyncstub_fuzzer/
Dgetpermissionusedrecordsasyncstub_fuzzer.cpp64 PermissionUsedRequestParcel requestParcel; in GetPermissionUsedRecordsAsyncStubFuzzTest() local
65 requestParcel.request = request; in GetPermissionUsedRecordsAsyncStubFuzzTest()
69 if (!datas.WriteParcelable(&requestParcel)) { in GetPermissionUsedRecordsAsyncStubFuzzTest()
/base/security/access_token/services/privacymanager/src/service/
Dprivacy_manager_stub.cpp189 …sptr<PermissionUsedRequestParcel> requestParcel = data.ReadParcelable<PermissionUsedRequestParcel>… in GetPermissionUsedRecordsInner() local
190 if (requestParcel == nullptr) { in GetPermissionUsedRecordsInner()
195 int32_t result = this->GetPermissionUsedRecords(*requestParcel, responseParcel); in GetPermissionUsedRecordsInner()
206 …sptr<PermissionUsedRequestParcel> requestParcel = data.ReadParcelable<PermissionUsedRequestParcel>… in GetPermissionUsedRecordsAsyncInner() local
207 if (requestParcel == nullptr) { in GetPermissionUsedRecordsAsyncInner()
218 int32_t result = this->GetPermissionUsedRecords(*requestParcel, callback); in GetPermissionUsedRecordsAsyncInner()
313 sptr<SecCompEnhanceDataParcel> requestParcel = data.ReadParcelable<SecCompEnhanceDataParcel>(); in RegisterSecCompEnhanceInner() local
314 if (requestParcel == nullptr) { in RegisterSecCompEnhanceInner()
319 int32_t result = this->RegisterSecCompEnhance(*requestParcel); in RegisterSecCompEnhanceInner()
/base/location/test/location_geocode/source/
Dgeo_convert_service_test.cpp266 MessageParcel requestParcel; variable
267 requestParcel.WriteInterfaceToken(u"location.IGeoConvert");
268 requestParcel.WriteBuffer("data", 4);
269 requestParcel.RewindRead(0);
273 service_->OnRemoteRequest(0, requestParcel, reply, option);
/base/security/access_token/interfaces/innerkits/privacy/src/
Dprivacy_manager_client.cpp152 PermissionUsedRequestParcel requestParcel; in GetPermissionUsedRecords() local
154 requestParcel.request = request; in GetPermissionUsedRecords()
155 int32_t ret = proxy->GetPermissionUsedRecords(requestParcel, resultParcel); in GetPermissionUsedRecords()
169 PermissionUsedRequestParcel requestParcel; in GetPermissionUsedRecords() local
170 requestParcel.request = request; in GetPermissionUsedRecords()
171 return proxy->GetPermissionUsedRecords(requestParcel, callback); in GetPermissionUsedRecords()
/base/location/test/location_network/source/
Dnetwork_ability_test.cpp478 MessageParcel requestParcel; variable
479 requestParcel.WriteInterfaceToken(u"location.INetworkAbility");
480 requestParcel.WriteBuffer("data", 4);
481 requestParcel.RewindRead(0);
485 ability_->SendMessage(0, requestParcel, reply);
488 ability_->SendMessage(0, requestParcel, reply);
/base/location/test/location_gnss/source/
Dgnss_ability_test.cpp1113 MessageParcel requestParcel; variable
1114 requestParcel.WriteInterfaceToken(u"location.INetworkAbility");
1115 requestParcel.WriteBuffer("data", 4);
1116 requestParcel.RewindRead(0);
1120 gnssAbility->SendMessage(0, requestParcel, reply);