Calculator: Fix bin and hex modes and improve logic

* Fix buttons status when changes from all base modes in all the layouts
* Improve view id search logic (find all ids, not only the first)
* Fix overflow in hex conversion (author Will Harmon)

Patchset 2: Revert "do not allow floating numbers in hex and bin modes"
            Allow dot in banned resources
Patchset 3: Allow matrix in bin and hex modes

Change-Id: I2fbf4e7b6a398992a3e3688d9d53851bfdcd4be1
JIRA: CYAN-1817
Issue: https://jira.cyanogenmod.org/browse/CYAN-1817
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Calculator: Prevent pasting in TextView in lockscreen widget

Pasting on a RemoteView requieres the use of the new getBasePackageName included in API 18.
Otherwise, the addActiveOwnerLocked will be launch a unhandled Security exception.
This changes remove the copy/paste/cut actions from the TextView when API is lower than 18.

Change-Id: I40b9385ba36f0a0be75205f01c2ce08aebe00760
JIRA: CYAN-882
Issue: https://jira.cyanogenmod.org/browse/CYAN-882
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Merge remote-tracking branch 'cm/cm-10.2' into DJL10.2