| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Change-Id: I6248f1edfa97b02c34604059f55454248dc1cc98
Signed-off-by: Bryan Owens <djbryan3540@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bug: 23224425
Bug: 23695835
This adds a "cleared" announcement when last token/character is deleted.
Also change the existing "clear" announcements to "cleared".
Improve the comments for desc_clr and desc_del to address prior
misunderstandings.
Improve xml comment formatting consistency.
Change-Id: Ibe5197ceac132b73d72f8ace3982238249f5e82b
(cherry picked from commit db6f99979b713e491ace2f0cd9315e5c1616269b)
|
|
|
|
|
|
|
|
|
|
| |
Bug: 21623405
Bug: 21603293
Make comments more descriptive for transalation. The attached bugs
requested this for "10 to the power of".
Change-Id: I75da9fcfb076cf74d095d3abef5312571607f0fe
|
|
|
|
|
| |
Bug: 21708864
Change-Id: I837c7b768461ab065093c6ef6fbf0dec3acd1c2d
|
|
|
|
|
| |
Bug: 21688370
Change-Id: I59b05d038f261f40893a025824355b19b0a2b249
|
|
|
|
|
| |
Bug: 21692303
Change-Id: I5db0e28a60e4daa40117fee899037ac198de859e
|
|
|
|
|
|
| |
Bug: 20497138
Bug: 20648856
Change-Id: Id71e2c1922447957b61e3c06b205f991f01eea27
|
|
|
|
|
| |
Bug: 19186434
Change-Id: I0e4793c2ea1fa06bcf0ddee9d642d4732aa8ce84
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Bug: 21493470
Add x^2 10^x and e^x functions, to make the recently added INV key
work as expected.
Implement % functionality.
10^x is essentially just macro expansions for now.
% and x^2 need trivial evaluator support to provide reasonable display
syntax.
We decided to add evaluator support for exp() as well.
Add corresponding exp() support to BoundedRational and its tests.
Tiny incidental changes for problems uncovered in the process:
Fix bug in tests/README.txt
Evaluate the constant e only once.
Add one more power test along with the exp() test.
Fix proguard.flags so BRTest runs again.
Change-Id: I26cfcaf6d99aeec11387297cc5586e2ddcab6add
|
|/
|
|
|
|
|
|
|
|
|
|
| |
Bug: 21553173
Since the Calculator is UI is predominately LTR, the error strings
should be forced to right align regardless if they contain RTL
characters. However in order to use the textAlignment attribute, the
supportsRtl attribute must also be set to "true" in the manifest and
the Calulator's layoutDirection must be hardcoded to "ltr".
Change-Id: I40396622c334e276bda9e0020dcdcfe94192a42c
|
|
|
|
|
|
|
|
|
|
| |
Bug: 7263319
Bug: 20841915
- Switch to using GridLayout instead of custom ViewGroup.
- Added '%' operator button (Note: evaluation support WIP).
Change-Id: I0d07f01fe4224c43e53c916b034362d906bea405
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bug: 20764417
Bug: 20838790
Finish the action mode when we do almost anything else.
We should probably be even more aggressive about terminating it,
and we may eventually want to use a different approach.
But this avoids the crashes, and greatly improves the behavior.
Display copy menu only when there is something to copy.
Fix a couple of bugs introduced by recent instant display overhaul
(one line each):
- Instant display disappeared on rotation.
- It was sometimes still possible to scroll the previous result after
CLR.
Change-Id: I1a91d312358898add1e281aaba116d709b4c92a7
|
|
|
|
|
|
|
| |
Bug: 20973349
Bug: 20980152
Bug: 21024589
Change-Id: I5566d8d94abdc97c52740c97ed57cea98ddc9462
|
|
|
|
|
|
|
|
|
|
|
| |
Bug: 20877857
Bug: 20815563
- Condensed strings to one string.xml with translatable="false".
- Made functions and digits NOT localized.
- Switched to U+2007 character for unknown digits.
Change-Id: I51a108309ccfa9c40edd6f87f9e052ba7ee25e3a
|
|
|
|
|
|
|
|
|
|
| |
Bug: 20503109
- Open source licenses are now displayed as a standalone Licenses
activity.
- Show/hide result options instead of enabling/disabling them.
Change-Id: I7e1e43ac83d2417b2f59f90e6a1fc3e491c6ddc7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bug: 20625562
Bug: 20649711
Bug: 20561890
Bug: 20561528
Bug: 20442590
Bug: 15473140
Bug: 20503008
Bug: 20503007
- Improve timeout text.
- Recalculate when Calculator is rotated, e.g. in error state, thus
reproducing message. It's unclear this is good enough, but it's
better.
- Fix square root parsing.
- Fix concatenation of numbers when pasting by adding explicit
multiplication.
- Display divide by zero error differently from other domain errors.
- Improved advanced keypad layout of portrait-mode tablet calculator.
- Improved overflow menu order. (More to be done.)
- Report zero division as zero division when we can recognize it.
- Switch to floating menus for copy/paste.
Change-Id: I3875414f293e62a59b0e41f0de822f29bd5ac6a6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This fixes issues with inappropriate keyboard popups and cleans
up the code.
This substantially rewrites the result formatting code;
it intentionally removes a heuristic to avoid conventional scientific
notation for short results, which only seemed to confuse things.
There are some other tweaks and simplifications. Transitions
to and from conventional scientific notation should be smoother,
though there is still an issue with numbers like 10^-30.
The formatting code is completely extracted from Evaluator, cutting
off various tentacles, and moved to CalculatorResult.
Fixes a bug that resulted in digits being inappropriately
displayed without an exponent if the decimal point was just off
the left edge of the screen.
It's still not clear that we should always be integrating the
exponent into the result window.
Bug: 20483801
Bug: 20480081
Change-Id: I1bb777b871e9fa8b6cd510c533e4b94bde6d4a20
|
|
|
|
| |
Change-Id: I55958260b4279b504e79b7a104a813a1273ae403
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Change layout to make the result display use a fixed font
size and limit the number of characters when it appears below the
formula. This allows us to always get the proper expansion effect
and prevents scrolling from affecting the font size.
Add copy support for result display.
Add paste support for the formula.
Add keyboard input support.
Copy/paste can be used to remember old results in the calculator.
We save an identifying tag URI in the clip, in addition to text,
allowing us to paste old calculator results without precision
loss.
Copy/paste currently does not rely on selection at all.
I had trouble making it work that way in the formula. It's
unclear that would be better, since we only allow copy of the
entire text and paste at the end.
Add a couple of alternate result display options to the
overflow menu. (These appear quite useful, were trivial to
implement, and give us a better excuse for the overflow menu.)
Changed the behavior of the delete key in error state.
Changing it to CLEAR seemed unfriendly, since it prevents
corrections. This is a change from L.
Made it clear that the CalculatorHitSomeButtons test is
currently 95% worthless. It was apparentlly failing (due to test
infrastructure issues) but throwing an exception in a thread from
which it was not getting reported. Decided to keep it, since I
would like a place to continue collecting regression tests, even
if we can't actually run them yet.
Includes some easy drive-by fixes for expression evaluation:
a) 2 / 2 * 3 was mis-parsed as 2 / (2 * 3).
b) Cosine evaluation had the sense of the test for a rational result reversed.
c) Constants without leading digits, like .1, are now handled correctly,
and decimal points in the formula are now internationalized.
(That's not yet true for the result.)
Change-Id: Ic24466b444b4a4633cfb036c67622c7f4fd644ec
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a button for switching between degree and radian mode.
Handle display updates in response to mode switching in a reasonoble way.
Improve the button layout so that it is usable on tablets.
Add DEG/RAD mode display at the top.
Fiddle with some of the layout parameters so they make more sense
to me.
This may need further tuning.
Change-Id: I8d04b235cfcb1f0a0d8f4a0ad6a0dc6e5eac8c5d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Replace the arity library with a new evaluation engine based on
an open source "constructive reals" library. This provides answers
that are correct to the last displayed digit, and can be scrolled to
get more precision, with evaluation to additional precision
proceeding on demand.
This uses pieces of an old prototype calculator with a
pre-Material-Design UI. Since the code structure of the KitKat and
Lollipop calculators is quite different, this merge required major
changes to make the pieces fit again. An egregious bug in the
prototype related to the evaluation of the power operator was
fixed. Many new UI bugs are introduced to compensate :-)
Add separate buttons for inverse trig functions.
Add long TODO lists for various missing pieces.
This is really designed to get something up and running
that looks like it has a Material Design UI.
This version kind of works, though with many UI deficiencies.
This addresses external issues 63368, 81089, and 80990. It
partially address the degree vs radian (80330) issue as well,
though we're still missing the UI for that.
This fixes
Bug:15284587
(More work is needed to make this interact correctly with keyboard support.)
Degree/Radian mode is also internal
Bug:17059768
This provides much more robust solutions to the following, which were
previously fixed by favoring round numbers over precise solutions:
Bug:15747298
Bug:15332726
Change-Id: Ib64ffcee9760a3195ae2a48302308eeb09a156bd
|
|
|
|
|
| |
Bug: 17525697
Change-Id: Ie933e16b927f335d921ec93dac7345a894069e64
|
|
|
|
|
| |
Bug: 15730223
Change-Id: I475ae3ba715ee39a580f58e98681b9884aad660c
|
|
|
|
|
| |
Bug: 15550085
Change-Id: I21839913551cd7bbbab0b3ab22a708a09e7b6200
|
|
|
|
| |
Change-Id: I3eb9a3511f7fe6b4dbac5d93d9edd3b98921e909
|
|
|
|
|
| |
Bug: 15597955
Change-Id: I8f87b25ce25fd344f2b62720f28ae10861d56bc5
|
|\ |
|
| |
| |
| |
| |
| | |
Bug: 15413513
Change-Id: I701fc4c5528a16b98d68c88d58b1a6139de5e9d6
|
|/
|
|
|
| |
Bug: 15547219
Change-Id: I477c3a9ddfab880b69f75bc6cd1ba925e17672ac
|
|
|
|
| |
Change-Id: I5caa8798b117c148607db5ed96c51b56e20a405d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bug: 14418545
Bug: 14419084
Bug: 14419142
Bug: 14420277
Bug: 14466652
Bug: 14564559
Bug: 14564608
Bug: 14846724
Bug: 15090154
Bug: 15287699
Bug: 15289526
Bug: 15289616
Change-Id: I93e1530446d5bd6a4c3189f751c88ece1abc7767
|
|
|
|
|
| |
Bug: 14419084
Change-Id: I96b49a3c45aa7b435af96842578df34507bbe0b8
|
|
|
|
| |
Change-Id: Iec27d849b0d5478c29badf9e9fdb034c03d0d5ca
|
|
|
|
|
| |
BUG: 13340631
Change-Id: I91052e0033f1286005d651fbad2610c65fb97e79
|
|
|
|
|
|
|
|
|
| |
Also renames some assets, removes the stationary button style, and
restores the default clear / delete icon switching.
BUG: 13322842
BUG: 13321800
Change-Id: I43ccf7a7eb40a670289ca61c3582f0914a4bacee
|
|
|
|
| |
Change-Id: Ic79777951621c42f03e7da9dd73c350f5182f48e
|
|
|
|
|
|
| |
Fixes b/6497912 Input is not centered in the designated field in Prime
Change-Id: Ifac59989c9fab05220e9097d300ea5442f1f03b5
|
|
|
|
|
| |
Fixes b/6468514 Numbers are cropped if using huge font size in Calculator
Change-Id: Ic054ac994484c39f1be759a1de6ebf2fc90091f3
|
|
|
|
|
|
| |
Fixes b/6339309 Accessibility:- Calculator doesn't talk back any number or operation correctly.
Change-Id: I36da0604d9b743a91b085fa5f4b471e7e3a42aeb
|
|
|
|
|
|
| |
Fixes b/6116353 Calculator doesn't calculate sin(0) when language is set to Spanish
Change-Id: Id8c65ba8aa0403f3e7988e05cde8ccb2f6624fbc
|
|
|
|
|
|
| |
Fixes b/6116353 Calculator doesn't calculate sin(0) when language is set to Spanish
Change-Id: I40ecf66e8021e914eaee9c603191d022d0b757ff
|
|
|
|
|
|
|
| |
Previously: 7x9 would be read as "7EX9" when you really want
"7 multiplied by 9"
Change-Id: I6fd3c1e3d0a40ca8700c10227edbdb445dbb7743
|
|
|
|
|
|
|
|
| |
Initial set of changes for:
b/5710687 Math operation symbols are spoken poorly - need better contentDescriptions
I think we can still do better, but this is a great start.
Change-Id: Ifa7ad4958c7dc09b467f559c6f5ebfdaa94fcdae
|
|
|
|
|
| |
Bug: 5143830
Change-Id: Ida9ad2da04b2579b3be83828fddaceea8f0228cf
|
|
|
|
|
|
| |
Bug: 5163232
Change-Id: I0cc7c971c860ad00699c15aba73aa29a1028893c
|
|
|
|
|
|
|
| |
This is terribly confusing otherwise.
Fixes b/5160841 Calculated result shows truncated value in Landscape mode of device.
Change-Id: I1b407ed03fc20b46cc25cf9af1070e074677fa13
|
|
|
|
| |
Change-Id: Icac57bfb78535e622d97e5044881a2cb2d22adc4
|
|
|
|
| |
Change-Id: I89e77b091a44a59c43cf4c84ff58655feced130d
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) Fix spacing
2) Hide ime
The change is smaller than it looks.
Some padding were pulled out to the styles.xml.
Bug:4478389
Bug:4082260
Change-Id: I98440dc73157dfe30f60ac328c1244fa65723e80
|