A data processing device comprising: a reception section; a determination section; and a release section, wherein: the reception section detects a contact operation to a contacted face and receives an instruction, in a locked state of the data processing device, the determination section executes first determination to determine whether or not the contact operation detected by the reception section is a pre-registered first contact operation, and executes second determination to determine whether or not a second contact operation to a different region from the region where the first contact operation has been detected has been performed, the release section releases the locked state of the data processing device when it is determined by the determination section that the first contact operation and the second contact operation have been detected by the reception section, weighting values are applied to each of a plurality of divided regions obtained by dividing an available region that is determined in advance to be a region that might receive contact accompanying the first contact operation to the contacted face, the determination section determines that the second contact operation has been detected by the reception section when a value based on a value of the sum or a value of the product of the weighting values applied to the divided regions traversed by a contact trail of the second contact operation on the contacted face exceeds a threshold value, and out of the plurality of divided regions, the weighting values applied to divided regions that are the divided regions anticipated in advance to be divided regions that might receive contact accompanying the first contact operation to the contacted face are greater than the weighting values applied to the other divided regions. a reception section; a determination section; and a release section, wherein: the reception section detects a contact operation to a contacted face and receives an instruction, in a locked state of the data processing device, the determination section executes first determination to determine whether or not the contact operation detected by the reception section is a pre-registered first contact operation, and executes second determination to determine whether or not a second contact operation to a different region from the region where the first contact operation has been detected has been performed, the release section releases the locked state of the data processing device when it is determined by the determination section that the first contact operation and the second contact operation have been detected by the reception section, weighting values are applied to each of a plurality of divided regions obtained by dividing an available region that is determined in advance to be a region that might receive contact accompanying the first contact operation to the contacted face, the determination section determines that the second contact operation has been detected by the reception section when a value based on a value of the sum or a value of the product of the weighting values applied to the divided regions traversed by a contact trail of the second contact operation on the contacted face exceeds a threshold value, and out of the plurality of divided regions, the weighting values applied to divided regions that are the divided regions anticipated in advance to be divided regions that might receive contact accompanying the first contact operation to the contacted face are greater than the weighting values applied to the other divided regions. the reception section detects a contact operation to a contacted face and receives an instruction, in a locked state of the data processing device, the determination section executes first determination to determine whether or not the contact operation detected by the reception section is a pre-registered first contact operation, and executes second determination to determine whether or not a second contact operation to a different region from the region where the first contact operation has been detected has been performed, the release section releases the locked state of the data processing device when it is determined by the determination section that the first contact operation and the second contact operation have been detected by the reception section, weighting values are applied to each of a plurality of divided regions obtained by dividing an available region that is determined in advance to be a region that might receive contact accompanying the first contact operation to the contacted face, the determination section determines that the second contact operation has been detected by the reception section when a value based on a value of the sum or a value of the product of the weighting values applied to the divided regions traversed by a contact trail of the second contact operation on the contacted face exceeds a threshold value, and out of the plurality of divided regions, the weighting values applied to divided regions that are the divided regions anticipated in advance to be divided regions that might receive contact accompanying the first contact operation to the contacted face are greater than the weighting values applied to the other divided regions.