Home
last modified time | relevance | path

Searched refs:workRecord (Results 1 – 15 of 15) sorted by relevance

/base/location/services/location_locator/locator/source/
Dsubability_common.cpp48 void SubAbility::LocationRequest(WorkRecord &workRecord) in LocationRequest() argument
50 interval_ = workRecord.GetTimeInterval(0); in LocationRequest()
52 newRecord_->Set(workRecord); in LocationRequest()
88 std::unique_ptr<WorkRecord> workRecord = std::make_unique<WorkRecord>(); in HandleRemoveRecord() local
89 workRecord->Add(uid, lastRecord_->GetPid(i), lastRecord_->GetName(i), in HandleRemoveRecord()
91 workRecord->SetDeviceId(newRecord.GetDeviceId()); in HandleRemoveRecord()
92 RequestRecord(*workRecord, false); in HandleRemoveRecord()
105 std::unique_ptr<WorkRecord> workRecord = std::make_unique<WorkRecord>(); in HandleAddRecord() local
106 workRecord->Add(uid, newRecord.GetPid(i), newRecord.GetName(i), in HandleAddRecord()
108 workRecord->SetDeviceId(newRecord.GetDeviceId()); in HandleAddRecord()
[all …]
Dwork_record.cpp48 std::unique_ptr<WorkRecord> workRecord = std::make_unique<WorkRecord>(); in Unmarshalling() local
49 workRecord->ReadFromParcel(parcel); in Unmarshalling()
50 return workRecord; in Unmarshalling()
266 void WorkRecord::Set(WorkRecord &workRecord) in Set() argument
269 int num = workRecord.Size(); in Set()
271 int uid = workRecord.GetUid(i); in Set()
272 int pid = workRecord.GetPid(i); in Set()
273 std::string name = workRecord.GetName(i); in Set()
274 int timeInterval = workRecord.GetTimeInterval(i); in Set()
275 std::string uuid = workRecord.GetUuid(i); in Set()
Drequest_manager.cpp361 std::shared_ptr<WorkRecord> workRecord = std::make_shared<WorkRecord>(); in HandleRequest() local
364 if (!AddRequestToWorkRecord(request, workRecord)) { in HandleRequest()
374 abilityName.c_str(), std::to_string(list.size()).c_str(), workRecord->ToString().c_str()); in HandleRequest()
376 ProxySendLocationRequest(abilityName, *workRecord); in HandleRequest()
400 std::shared_ptr<WorkRecord>& workRecord) in AddRequestToWorkRecord() argument
422 if (workRecord != nullptr) { in AddRequestToWorkRecord()
423 workRecord->Add(request->GetUid(), request->GetPid(), request->GetPackageName(), in AddRequestToWorkRecord()
429 void RequestManager::ProxySendLocationRequest(std::string abilityName, WorkRecord& workRecord) in ProxySendLocationRequest() argument
442 workRecord.SetDeviceId(CommonUtils::InitDeviceId()); in ProxySendLocationRequest()
446 gnssProxy->SendLocationRequest(workRecord); in ProxySendLocationRequest()
[all …]
/base/location/services/location_locator/locator/include/
Drequest_manager.h49 void ProxySendLocationRequest(std::string abilityName, WorkRecord& workRecord);
56 …AddRequestToWorkRecord(std::shared_ptr<Request>& request, std::shared_ptr<WorkRecord>& workRecord);
Dwork_record.h34 void Set(WorkRecord &workRecord);
Dsubability_common.h65 virtual void RequestRecord(WorkRecord &workRecord, bool isAdded) = 0;
/base/location/test/location_network/source/
Dnetwork_ability_test.cpp97 std::unique_ptr<WorkRecord> workRecord = std::make_unique<WorkRecord>(); variable
105 workRecord->Add(uid, pid, name, timeInterval, uuid);
111 EXPECT_EQ(ERRCODE_SUCCESS, proxy_->SendLocationRequest(*workRecord));
347 WorkRecord workRecord; variable
348 ability->SendLocationRequest(workRecord);
358 WorkRecord workRecord; variable
360 ability->RequestRecord(workRecord, true);
363 ability->RequestRecord(workRecord, false);
/base/location/services/location_network/network/source/
Dnetwork_ability.cpp226 void NetworkAbility::RequestRecord(WorkRecord &workRecord, bool isAdded) in RequestRecord() argument
258 data.WriteString16(Str8ToStr16(workRecord.GetUuid(0))); in RequestRecord()
259 data.WriteInt64(workRecord.GetTimeInterval(0) * SEC_TO_MILLI_SEC); in RequestRecord()
262 data.WriteString16(Str8ToStr16(workRecord.GetName(0))); // bundleName in RequestRecord()
270 data.WriteString16(Str8ToStr16(workRecord.GetUuid(0))); in RequestRecord()
271 data.WriteString16(Str8ToStr16(workRecord.GetName(0))); // bundleName in RequestRecord()
/base/location/test/location_passive/source/
Dpassive_ability_test.cpp91 std::unique_ptr<WorkRecord> workRecord = std::make_unique<WorkRecord>(); variable
99 workRecord->Add(uid, pid, name, timeInterval, uuid);
105 EXPECT_EQ(ERRCODE_SUCCESS, proxy_->SendLocationRequest(*workRecord));
/base/location/test/location_gnss/source/
Dgnss_ability_test.cpp109 std::unique_ptr<WorkRecord> workRecord = std::make_unique<WorkRecord>(); variable
117 workRecord->Add(uid, pid, name, timeInterval, uuid);
123 EXPECT_EQ(ERRCODE_SUCCESS, proxy_->SendLocationRequest(*workRecord));
1061 std::unique_ptr<WorkRecord> workRecord = std::make_unique<WorkRecord>(); variable
1063 gnssAbility->RequestRecord(*workRecord, false);
1147 std::shared_ptr<WorkRecord> workRecord = std::make_shared<WorkRecord>(); variable
1155 workRecord->Add(uid, pid, name, timeInterval, uuid);
1157 gnssAbility->newRecord_->Set(*workRecord);
1164 gnssAbility->HandleRemoveRecord(*workRecord);
1167 gnssAbility->lastRecord_->Set(*workRecord);
[all …]
/base/location/services/location_passive/passive/include/
Dpassive_ability.h59 void RequestRecord(WorkRecord &workRecord, bool isAdded) override;
/base/location/services/location_network/network/include/
Dnetwork_ability.h63 void RequestRecord(WorkRecord &workRecord, bool isAdded) override;
/base/location/services/location_passive/passive/source/
Dpassive_ability.cpp118 void PassiveAbility::RequestRecord(WorkRecord &workRecord, bool isAdded) in RequestRecord() argument
/base/location/services/location_gnss/gnss/source/
Dgnss_ability.cpp296 void GnssAbility::RequestRecord(WorkRecord &workRecord, bool isAdded) in RequestRecord() argument
320 WriteGnssStateEvent(state, workRecord.GetPid(0), workRecord.GetUid(0)); in RequestRecord()
/base/location/services/location_gnss/gnss/include/
Dgnss_ability.h104 void RequestRecord(WorkRecord &workRecord, bool isAdded) override;