/base/location/services/location_locator/locator/source/ |
D | locator_skeleton.cpp | 81 auto locatorAbility = DelayedSingleton<LocatorAbility>::GetInstance(); in PreGetSwitchState() local 82 if (locatorAbility == nullptr) { in PreGetSwitchState() 88 LocationErrCode errorCode = locatorAbility->GetSwitchState(state); in PreGetSwitchState() 98 auto locatorAbility = DelayedSingleton<LocatorAbility>::GetInstance(); in PreRegisterSwitchCallback() local 99 if (locatorAbility == nullptr) { in PreRegisterSwitchCallback() 105 reply.WriteInt32(locatorAbility->RegisterSwitchCallback(client, identity.GetUid())); in PreRegisterSwitchCallback() 118 auto locatorAbility = DelayedSingleton<LocatorAbility>::GetInstance(); in PreStartLocating() local 119 if (locatorAbility == nullptr) { in PreStartLocating() 135 reply.WriteInt32(locatorAbility->StartLocating(requestConfig, callback, identity)); in PreStartLocating() 144 auto locatorAbility = DelayedSingleton<LocatorAbility>::GetInstance(); in PreStopLocating() local [all …]
|
D | request_manager.cpp | 130 auto locatorAbility = DelayedSingleton<LocatorAbility>::GetInstance(); in HandleStartLocating() local 132 if (locatorAbility == nullptr || locatorDftManager == nullptr) { in HandleStartLocating() 139 locatorAbility->RegisterPermissionCallback(request->GetTokenId(), in HandleStartLocating() 153 auto locatorAbility = DelayedSingleton<LocatorAbility>::GetInstance(); in RestorRequest() local 154 if (locatorAbility == nullptr) { in RestorRequest() 157 auto receivers = locatorAbility->GetReceivers(); in RestorRequest() 220 auto locatorAbility = DelayedSingleton<LocatorAbility>::GetInstance(); in UpdateRequestRecord() local 221 if (locatorAbility == nullptr) { in UpdateRequestRecord() 226 auto requests = locatorAbility->GetRequests(); in UpdateRequestRecord() 265 auto locatorAbility = DelayedSingleton<LocatorAbility>::GetInstance(); in HandleStopLocating() local [all …]
|
D | permission_status_change_cb.cpp | 27 auto locatorAbility = DelayedSingleton<LocatorAbility>::GetInstance(); in PermStateChangeCallback() local 28 if (requestManager == nullptr || locatorAbility == nullptr) { in PermStateChangeCallback() 34 locatorAbility.get()->ApplyRequests(); in PermStateChangeCallback()
|
D | locator_event_subscriber.cpp | 29 auto locatorAbility = DelayedSingleton<LocatorAbility>::GetInstance(); in OnReceiveEvent() local 30 if (locatorAbility == nullptr) { in OnReceiveEvent() 37 locatorAbility.get()->UpdateSaAbility(); in OnReceiveEvent()
|
D | report_manager.cpp | 51 auto locatorAbility = DelayedSingleton<LocatorAbility>::GetInstance(); in OnReportLocation() local 52 if (locatorAbility == nullptr) { in OnReportLocation() 55 auto requestMap = locatorAbility->GetRequests(); in OnReportLocation() 83 locatorAbility->ApplyRequests(); in OnReportLocation() 161 auto locatorAbility = DelayedSingleton<LocatorAbility>::GetInstance(); in ResultCheck() local 162 if (locatorAbility == nullptr) { in ResultCheck() 165 if (locatorAbility->IsProxyUid(request->GetUid())) { in ResultCheck() 228 auto locatorAbility = DelayedSingleton<LocatorAbility>::GetInstance(); in UpdateRandom() local 229 if (locatorAbility == nullptr) { in UpdateRandom() 232 int num = locatorAbility->GetActiveRequestNum(); in UpdateRandom()
|
D | locator_background_proxy.cpp | 105 auto locatorAbility = DelayedSingleton<LocatorAbility>::GetInstance(); in StartLocatorThread() local 106 if (requestManager == nullptr || locatorAbility == nullptr) { in StartLocatorThread() 123 locatorAbility.get()->ReportLocationStatus(callback_, SESSION_START); in StartLocatorThread() 128 auto locatorAbility = DelayedSingleton<LocatorAbility>::GetInstance(); in StopLocatorThread() local 129 if (locatorAbility == nullptr) { in StopLocatorThread() 141 locatorAbility.get()->StopLocating(callback_); in StopLocatorThread()
|
D | country_code_manager.cpp | 194 auto locatorAbility = DelayedSingleton<LocatorAbility>::GetInstance(); in StartPassiveLocationListen() local 195 if (requestManager == nullptr || locatorAbility == nullptr) { in StartPassiveLocationListen() 219 locatorAbility.get()->ReportLocationStatus(callback, SESSION_START); in StartPassiveLocationListen()
|
D | locator_ability.cpp | 175 auto locatorAbility = DelayedSingleton<LocatorAbility>::GetInstance(); in ProcessEvent() local 181 if (locatorAbility != nullptr) { in ProcessEvent() 182 locatorAbility->UpdateSaAbilityHandler(); in ProcessEvent() 187 if (locatorAbility != nullptr) { in ProcessEvent() 188 locatorAbility->RegisterAction(); in ProcessEvent()
|
/base/location/test/fuzztest/locator/locator_fuzzer/ |
D | locator_fuzzer.cpp | 434 auto locatorAbility = in LocatorAbility001FuzzerTest() local 437 locatorAbility->OnAddSystemAbility(data[index++], deviceId); in LocatorAbility001FuzzerTest() 438 locatorAbility->OnRemoveSystemAbility(data[index++], deviceId); in LocatorAbility001FuzzerTest() 439 locatorAbility->QueryServiceState(); in LocatorAbility001FuzzerTest() 440 locatorAbility->InitSaAbility(); in LocatorAbility001FuzzerTest() 441 locatorAbility->InitRequestManagerMap(); in LocatorAbility001FuzzerTest() 442 locatorAbility->UpdateSaAbility(); in LocatorAbility001FuzzerTest() 444 locatorAbility->GetSwitchState(state); in LocatorAbility001FuzzerTest() 445 locatorAbility->EnableAbility(true); in LocatorAbility001FuzzerTest() 446 locatorAbility->EnableAbility(false); in LocatorAbility001FuzzerTest() [all …]
|
/base/location/test/location_locator/source/ |
D | locator_service_test.cpp | 1579 auto locatorAbility = variable 1581 locatorAbility->OnStart(); 1582 EXPECT_EQ(ServiceRunningState::STATE_RUNNING, locatorAbility->QueryServiceState()); 1583 locatorAbility->OnStart(); // after state running 1585 locatorAbility->OnStop(); 1586 EXPECT_EQ(ServiceRunningState::STATE_NOT_START, locatorAbility->QueryServiceState()); 1587 locatorAbility->OnStart(); // after stop 1588 EXPECT_EQ(ServiceRunningState::STATE_RUNNING, locatorAbility->QueryServiceState()); 1596 auto locatorAbility = variable 1598 locatorAbility->OnAddSystemAbility(UNKNOWN_SERVICE_ID, "device-id"); [all …]
|
/base/location/services/location_gnss/gnss/source/ |
D | gnss_event_callback.cpp | 31 auto locatorAbility = DelayedSingleton<LocatorAbility>::GetInstance(); in ReportLocation() local 32 if (gnssAbility == nullptr ||locatorAbility == nullptr) { in ReportLocation() 52 locatorAbility.get()->ReportLocation(locationNew, GNSS_ABILITY); in ReportLocation() 53 locatorAbility.get()->ReportLocation(locationNew, PASSIVE_ABILITY); in ReportLocation()
|
D | gnss_ability.cpp | 618 auto locatorAbility = DelayedSingleton<LocatorAbility>::GetInstance(); in ReportMockedLocation() local 619 if (locatorAbility == nullptr) { in ReportMockedLocation() 623 locatorAbility.get()->ReportLocation(locationNew, GNSS_ABILITY); in ReportMockedLocation() 624 locatorAbility.get()->ReportLocation(locationNew, PASSIVE_ABILITY); in ReportMockedLocation()
|
/base/location/services/location_network/network/source/ |
D | network_ability.cpp | 319 auto locatorAbility = DelayedSingleton<LocatorAbility>::GetInstance(); in ReportMockedLocation() local 320 if (locatorAbility != nullptr) { in ReportMockedLocation() 321 locatorAbility.get()->ReportLocation(locationNew, NETWORK_ABILITY); in ReportMockedLocation() 322 locatorAbility.get()->ReportLocation(locationNew, PASSIVE_ABILITY); in ReportMockedLocation()
|