31. A non-transitory computer-readable storage medium having computer-readable code executable by at least one processor of a portable electronic device to perform operations comprising: receiving a swipe gesture from an initial touch location on a touch-sensitive display of an electronic device; determining touch attributes for the swipe gesture, the touch attributes comprising a touch location of the swipe gesture; performing a first lock function when the swipe gesture progresses to a first touch location on the touch-sensitive display that is beyond a first threshold from the initial touch location, wherein the first lock function locks a first set of functionalities of the electronic device; and performing a second lock function when the swipe gesture progresses to a second touch location on the touch-sensitive display that is beyond a second threshold from the initial touch location, wherein the second lock function locks a second, different set of functionalities of the electronic device and the second threshold is beyond the first threshold.
31. A non-transitory computer-readable storage medium having computer-readable code executable by at least one processor of a portable electronic device to perform operations comprising: receiving a swipe gesture from an initial touch location on a touch-sensitive display of an electronic device; determining touch attributes for the swipe gesture, the touch attributes comprising a touch location of the swipe gesture; performing a first lock function when the swipe gesture progresses to a first touch location on the touch-sensitive display that is beyond a first threshold from the initial touch location, wherein the first lock function locks a first set of functionalities of the electronic device; and performing a second lock function when the swipe gesture progresses to a second touch location on the touch-sensitive display that is beyond a second threshold from the initial touch location, wherein the second lock function locks a second, different set of functionalities of the electronic device and the second threshold is beyond the first threshold. 33. The non-transitory computer-readable storage medium of claim 31 , wherein the first lock function and the second lock function are associated with respective stored touch attributes each comprising a stored initial touch location, and wherein the initial touch location of the swipe gesture corresponds to the initial touch location stored for the first lock function and to the initial touch location stored for the second lock function.