Patent Document ID: 9600169
Application ID: 13405708

Base Claim:
1. A computer-implemented method comprising: receiving, from a user via a user interface of a first device, mapping input that specifies a particular gesture, one or more first device actions to associate with the particular gesture, and a first device context to associate with the particular gesture and the one or more first device actions, wherein the first device context includes one or more devices, other than the first device, are in the presence of the first device, or the one or more devices have logged in to a particular user account; storing, in a non-transitory storage medium, a first mapping that specifies the particular gesture, the first device context, and the one or more first device actions, wherein the non-transitory storage medium further stores a second mapping that specifies the particular gesture, a second device context, and one or more second device actions; detecting, by the first device, performance of a given gesture; in response to detecting performance of the given gesture: determining that the given gesture matches the particular gesture that is specified in the first mapping and the second mapping; in response to determining that the given gesture matches the particular gesture specified in the first mapping and the second mapping, reading the first mapping to determine the first device context that is specified in the first mapping and reading the second mapping to determine the second device context that is specified in the second mapping; determining whether one or more conditions external to the first device, detected by the first device, match the first device context; responsive to determining that the one or more conditions external to the first device match the first device context, causing the first device to perform the one or more first device actions that are specified in the first mapping; determining whether the one or more conditions external to the first device, detected by the first device, match the second device context; and responsive to determining that the one or more conditions external to the first device match the second device context, causing the first device to perform the one or more second device actions that are specified in the second mapping.

---

Claim 9:
9. The computer-implemented method of claim 1 , wherein the one or more conditions external to the first device includes whether a particular amount of ambient light is detected by the first device.