Fix calculator crash on tablet devices. Shortened ES string

Contextual menu of calculator on tablet devices shows "basic" and "advanced"
panels. This is completly unuseful because tablet layout contains both
of them in the same container. This also causes a crash when trying to
select one of this options from contextual menu.

Shortened "DELETE" spanish translation so it fits to its place.

patchset 2: right headers on new menu for sw600dp
patchset 3: replaced string by global "clear" used by physical calculators  ("CE")

Change-Id: I339b906316683fbe41222151277509358d02c49b
Calculator: Delocalize mathematical function before passing to arity

Some languages, such as Spanish, localizes mathematical functions
("sen" for "sin" in this example). The underlying arithmetic engine
doesn't understand the localized version so we need to delocalize
it before passing it to the engine.

Change-Id: I486726a1b9533952cd0ec3544b44f33a614549d9

Conflicts:

	src/com/android/calculator2/Logic.java
Calculator: New Features

Squashed commit of the following patches, with modifications to build
under the Android build system and return to the original namespace:

start of new features

(most buttons are set to do nothing though)

delete whole function (log, sin, etc)

gitignore

modulo working

graphing started

I'll probably make it it's own panel, but for now...

graphs functions (mostly)

graph, matrix panels in menu

graphing actually decent now (few bugs though)

bug fixes for graphing (graph on del, on start up, fix for negative numbers)

wolfram alpha for functions

graph works in separate thread, updated icons

graphing optimizations

bug fixes in graphing, buttons in matrices

new ui for adding matrices

click to remove matrix

save matrices on rotation

depricated code, begone!

solving matrices works (screw order of operations)

does not actually display the result though...

okay, probably important - displays matrix answers

bugfixes

multiple sizes for matrices

catches for matrix exceptions

fixes for line breaks in graphs

bug fix for tablets and back button

tablet panels

updated graphics

bumped up graph resolution (might be too slow)

changed package to com.android2.calculator3

matrix scrollable, dot product, cross product

spacing added

hex and bin support (no button yet)

new page with Hex digits, a few optimizations

dec, hex, and bin don't work properly atm

calculate in hex, bin

null pointers occasionally, selected input should stay highlighted (ie:
dec button should be blue if set to dec), and it should save the mode
when minimized

save mode on close

see selected mode

set selected mode on load

doesnt save mode, buggy

fix bug where loading would fail if activity finished

fix crash when converting

rearranged hex page, graphing fixed

update to 1.2

display descriptions on long press

pulldown image added, error handled better

bar is draggable

bar snaps to top/bottom, goes up on back

limit drag height

better handling for dragging

show history

increase text size in history

curse you, padding, curse yoooou

remove pages

calculate rationals in hex/bin

click to open/close history

remove function page, support for complex numbers

fixed history getting overwritten

copy from history

hide paste when nothing to paste

comas in answer, fix rotation bug

fixed crash with decimals in hex/bin

removed outdated code

fix image stretch

matrix add icon swapped out

manually merged a few changes from upstream

icon is uniquely ours

limit max width in history

bugfix with history height and keyboards

add matrix button changed back to match better

removed comas in results, localized equation when graphing

(bugfixes for languages other than English)

attempt at fixing mismatched formatting

zooming in graph shouldn't have been enabled yet

removed hardcoded values in graph

preparation for zooming

bugfix for null graphs

swapped out matrix add button

translation fix for nl

zoom enabled on graph

bugfixes for graphing

Change-Id: I7d7d7a1ec2cf33ac20b2bf265884eeb4c4ebbad7

Conflicts:

	src/com/android/calculator2/ColorButton.java
	src/com/android/calculator2/Logic.java