Added unlock and lock methods for Android

Requires https://github.com/appium/appium-adb/pull/42 in order for lock to work.

If this looks good, I'll make issues on all the client drivers as well. 

I have started on a test as well, should it be added in to this pull or as another?
okie doke.  I have no objections then.


On Thu, Sep 4, 2014 at 5:09 PM, Jonathan Lipps <notifications@github.com>
wrote:

> In lib/devices/android/android-controller.js:
>
> > @@ -339,7 +339,23 @@ androidController.postDismissAlert = function (cb) {
> >  };
> >
> >  androidController.lock = function (secs, cb) {
> > -  cb(new NotYetImplementedError(), null);
> > +  this.adb.lock(function (err) {
> > +    if (err) return cb(err);
>
> yes, we allow them specifically in this shortuct-to-a-callback instance
> that's an overwhelmingly common idiom.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/appium/appium/pull/3536/files#r17142451>.
>