Bug 875710: Added getCardLockRetryCount to nsIIccProvider, r=vyang, sr=mounir

This patch adds getCardLockRetryCount to nsIIccProvider and its
implementations. This method allows callers to query the number
of remaining tries for unlocking a SIM-card lock. Supported locks
are 'pin', 'puk', 'pin2', 'puk2', 'nck', 'cck', and 'spck'. The
call returns a DOM request that returns the retry count in its
success handler, or signals an appropriate error.

Reading the retry count is an optional feature and may not be
supported for all lock types. In this case the DOM request receives
and error with the name GECKO_ERROR_NOT_SUPPORTED. For an invalid
lock type, the error name is GECKO_ERROR_GENERIC_FAILURE.

getCardLockRetryCount replaces retryCount in nsIDOMMobileConnection,
which is now deprecated.

--HG--
extra : rebase_source : d1d11612f836652dca85f7c701f09e7af962e3b7
Bug 875710: Added marionette tests for getCardLockRetryCount, r=vyang

The marionette tests for getCardLockRetryCount test retrieving the
retry count for 'pin', 'puk', and an invalid lock type. The former
two must return success or 'NotSupportedError', the latter may only
return 'IllegalAccessError'.
* * *
fix mar

--HG--
extra : rebase_source : 509cd74e783eaf8d77be8b37c7143f3043d69b28