In a recent question - Does sneak attack work against an invisible enemy? - it was pointed out that you couldn't Sneak Attack an invisible opponent because the rules specifically state that you cannot use Sneak Attack if you have disadvantage on the attack roll. However, it would not be impossible for the rogue to also have advantage on the attack, by virtue of being hidden or invisible himself.
In this context, where a character has both advantage and disadvantage on a single attack/check, the rules mention that the roll is resolved normally: you roll a single d20 and that's it. Does that mean that you are no longer considered advantaged/disadvantaged?
If so, and assuming the presence of an ally within 5 feet of the invisible enemy, it could mean that an invisible rogue could sneak attack an invisible opponent while a visible rogue couldn't. Is that correct? Or are you, in fact, still considered both advantaged and disadvantaged, and thus can't perform a Sneak Attack?
Precision: Sneak Attack is the use case that triggered the question. That being said, there are probably other things that require advantage/disadvantage to be activated, so answers should focus on the relationship between advantage and disadvantage, and not on Sneak Attack necessarily.