Handle WebInitators when launched from browser

Handle WI when launched from notification bar as it may
happen in ICS.
Handle missing RedirectURL/CustomData

If redirect to server was missing redirectUrl and parameter
then the DrmLicenseService could crash (NPE).
Handle ANR due to blocking semaphores

If DLS was invoked twice using Intents (renewRights or
Browser->WebInitiatorClick) and the phone also is out of service
at the same time, then DLS would ANR because HttpThread is using
latch.wait for a long time while a new item is added to database
(and thus requiring a lock). These locks will wait for each other
and thus cause the ANR. The fix is to do the second lock request
in a new Thread (thus not blocking the main service thread).
Return status when restarting jobs in DLS

If DrmLicenseService gets killed, then it is possible to
restart ongoing jobs with setCallbackListener. Now a status
is return to indicate if the restart was successful.
Improved UI when downloading WebInitiator from Browser

Improvement for getting notifications when download of files are
completed. Also displaying a toast when WI handling is started.
Adjusting header

The copyright header that was recently modified to reflect
the company renaming, but it was not fully correct...
Corrections in AIDL documentation

Small update of AIDL documentation.
Moved Japanese translations to correct location

The japanese translations were added at a incorrect
path in previous commit "Improved UI when downloading..."
Storing parameters if DrmLicenseService is killed

Parameters that are shared between jobs are stored in database.
Send callbacks when retrying http requests

Http requests can be retried due to server not responding or
returning http error codes that indicates that it can respond
better later. A callback will be sent using the AIDL onProgressReport()
indicating what URL that is retried and what the http reason was.
Proper errorcode when missing join domain parameters

Send HTTP_ERROR=-4 when join domain indicator is missing DS_ID
and Account_ID.
UI and retry callback improvments

Many UI improvements when downloading content based on
WebInitiators launched from Browser. UI improvements can be
seen in the way the items are displayed in Notification Bar.
Added INNER_HTTP_ERROR in retry callback.
Documentation of WebKit modification needed on ICS

The behaviour when loading a PlayReady WebInitiator in the browser
has changed in Android ICS (compared to GB). This upload describes
how the WebKit browser is modified to provide expected behaviour.
Include version number in UserAgent string

Generate UserAgent string dynamically to include
application name, version number and also Android
release number.
The generated UserAgent will only be used if no
UserAgent parameter is supplied via AIDL interface.
Add version numbering to DLS

Adding version names and code.
Also added a tool to generate version code.
Handle strange characters in renewRights-URL.

Test cases provided by operator includes handling of many kind
of strange characters in URLs. (Streaming)URL provided to
renewRights() was not encoded in correct way.
Minor changes to remove deprecated usage of URLDecoder.decode().
Changes in DownloadContentJob to remove deprecated usages.
Https WebInitiators was not supported

Downloading WebInitiators over https was not supported.
Corrections for download in WI & '?' renewRights url

Previous modification introduced these errors:
Content items in WI were sent directly to MediaPlayer after download.
'?' in RenewRights-url was converted to %xx and not detected by server
Proguard configuration

Some HSV has reported problems when building with Proguard.
Using this file will keep methods that are invoked using Method.invoke(String)
and otherwise removed during Proguard optimization.
Relocation of lock in DrmJobDatabase

Since the call to getWritableDatabase is only made
the first time the instance is created we should
not lock the entire instance every time it is called.