/base/location/services/location_locator/locator/source/ |
D | subability_common.cpp | 48 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 …]
|
D | work_record.cpp | 48 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()
|
D | request_manager.cpp | 361 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/ |
D | request_manager.h | 49 void ProxySendLocationRequest(std::string abilityName, WorkRecord& workRecord); 56 …AddRequestToWorkRecord(std::shared_ptr<Request>& request, std::shared_ptr<WorkRecord>& workRecord);
|
D | work_record.h | 34 void Set(WorkRecord &workRecord);
|
D | subability_common.h | 65 virtual void RequestRecord(WorkRecord &workRecord, bool isAdded) = 0;
|
/base/location/test/location_network/source/ |
D | network_ability_test.cpp | 97 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/ |
D | network_ability.cpp | 226 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/ |
D | passive_ability_test.cpp | 91 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/ |
D | gnss_ability_test.cpp | 109 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/ |
D | passive_ability.h | 59 void RequestRecord(WorkRecord &workRecord, bool isAdded) override;
|
/base/location/services/location_network/network/include/ |
D | network_ability.h | 63 void RequestRecord(WorkRecord &workRecord, bool isAdded) override;
|
/base/location/services/location_passive/passive/source/ |
D | passive_ability.cpp | 118 void PassiveAbility::RequestRecord(WorkRecord &workRecord, bool isAdded) in RequestRecord() argument
|
/base/location/services/location_gnss/gnss/source/ |
D | gnss_ability.cpp | 296 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/ |
D | gnss_ability.h | 104 void RequestRecord(WorkRecord &workRecord, bool isAdded) override;
|