location/location_hal_daemon/LocationApiService.cpp
void LocationApiService::resumeAllTrackingSessions() {
    for (auto client : mClients) {
        // start session if not running
        if (client.second && client.second->mTracking) {

            // resume session with preserved options
            if (!client.second->startTracking()) {
                LOC_LOGe("Failed to start session");
                return;
            }
            // success
            client.second->mPendingMessages.push(E_LOCAPI_START_TRACKING_MSG_ID);
            LOC_LOGi("--> resumed");
        }
    }
}
// no need to hold the lock as lock has been held on calling functions
no need to hold the lock as lock has been held on calling functions
no need to hold the lock as lock has been held on calling functions
void LocationApiService::resumeAllTrackingSessions() {
    for (auto client : mClients) {
        if (client.second && client.second->mTracking) {
            if (!client.second->startTracking()) {
                LOC_LOGe("Failed to start session");
                return;
            }
            client.second->mPendingMessages.push(E_LOCAPI_START_TRACKING_MSG_ID);
            LOC_LOGi("--> resumed");
        }
    }
}
void LocationApiService :: resumeAllTrackingSessions ( ) { for ( auto client : mClients ) { if ( client . second && client . second -> mTracking ) { if ( ! client . second -> startTracking ( ) ) { LOC_LOGe ( " " ) ; return ; } client . second -> mPendingMessages . push ( E_LOCAPI_START_TRACKING_MSG_ID ) ; LOC_LOGi ( " " ) ; } } }
no need to hold the lock as lock has been held on calling functions
no need to hold the lock as lock has been held on calling functions
// start session if not running // resume session with preserved options // success