Lines Matching refs:sessions

654         uint32_t* sessions = mLocationAPI->addGeofences(count, options, data);  in locAPIAddGeofences()  local
655 if (sessions) { in locAPIAddGeofences()
656 LOC_LOGI("%s:%d] start new sessions: %p", __FUNCTION__, __LINE__, sessions); in locAPIAddGeofences()
660 mGeofenceBiDict.set(ids[i], sessions[i], options[i].breachTypeMask); in locAPIAddGeofences()
674 uint32_t* sessions = (uint32_t*)malloc(sizeof(uint32_t) * count); in locAPIRemoveGeofences() local
675 if (sessions == NULL) { in locAPIRemoveGeofences()
687 sessions[j] = mGeofenceBiDict.getSession(ids[i]); in locAPIRemoveGeofences()
688 if (sessions[j] > 0) { in locAPIRemoveGeofences()
689 GeofenceBreachTypeMask type = mGeofenceBiDict.getExtBySession(sessions[j]); in locAPIRemoveGeofences()
690 mGeofenceBiDict.rmBySession(sessions[j]); in locAPIRemoveGeofences()
691 removedGeofenceBiDict->set(ids[i], sessions[j], type); in locAPIRemoveGeofences()
698 mLocationAPI->removeGeofences(j, sessions); in locAPIRemoveGeofences()
707 free(sessions); in locAPIRemoveGeofences()
717 uint32_t* sessions = (uint32_t*)malloc(sizeof(uint32_t) * count); in locAPIModifyGeofences() local
718 if (sessions == NULL) { in locAPIModifyGeofences()
728 sessions[j] = mGeofenceBiDict.getSession(ids[i]); in locAPIModifyGeofences()
729 if (sessions[j] > 0) { in locAPIModifyGeofences()
730 mGeofenceBiDict.set(ids[i], sessions[j], options[i].breachTypeMask); in locAPIModifyGeofences()
736 mLocationAPI->modifyGeofences(j, sessions, options); in locAPIModifyGeofences()
743 free(sessions); in locAPIModifyGeofences()
752 uint32_t* sessions = (uint32_t*)malloc(sizeof(uint32_t) * count); in locAPIPauseGeofences() local
753 if (sessions == NULL) { in locAPIPauseGeofences()
763 sessions[j] = mGeofenceBiDict.getSession(ids[i]); in locAPIPauseGeofences()
764 if (sessions[j] > 0) { in locAPIPauseGeofences()
770 mLocationAPI->pauseGeofences(j, sessions); in locAPIPauseGeofences()
777 free(sessions); in locAPIPauseGeofences()
787 uint32_t* sessions = (uint32_t*)malloc(sizeof(uint32_t) * count); in locAPIResumeGeofences() local
788 if (sessions == NULL) { in locAPIResumeGeofences()
798 sessions[j] = mGeofenceBiDict.getSession(ids[i]); in locAPIResumeGeofences()
799 if (sessions[j] > 0) { in locAPIResumeGeofences()
801 mGeofenceBiDict.set(ids[i], sessions[j], mask[i]); in locAPIResumeGeofences()
808 mLocationAPI->resumeGeofences(j, sessions); in locAPIResumeGeofences()
815 free(sessions); in locAPIResumeGeofences()