- 01 Jun, 2016 3 commits
-
- 31 May, 2016 2 commits
- 14 Oct, 2015 2 commits
-
-
Geoff Mendal authored
* commit '341e4d23': Import translations. DO NOT MERGE
-
Geoff Mendal authored
Change-Id: Id484113b00cbae0a841e696d35ff7f00efc84e18 Auto-generated-cl: translation import
-
- 13 Oct, 2015 2 commits
-
-
Hans Boehm authored
* commit '9bc3f44b': Correctly set formula text size after rotation
-
Hans Boehm authored
Bug: 22233200 Avoid repeatedly resetting text size to maximum, due to repeated onMeasure calls. Suppress text size change animation when the application is restarted. Change-Id: Ic8b20deab2553176260051fa787416654bf0b3ef
-
- 12 Oct, 2015 2 commits
-
-
Geoff Mendal authored
* commit '26dfa3dd': Import translations. DO NOT MERGE
-
Geoff Mendal authored
Change-Id: I61ed5c14a41c3d5bc5436dcdb860de5254fe461a Auto-generated-cl: translation import
-
- 11 Oct, 2015 18 commits
-
-
Hans Boehm authored
* commit '6cccee27': Fix factorial(0)
-
Hans Boehm authored
* commit 'fc6db072': Cleanup of timeout handling and message
-
Hans Boehm authored
* commit 'd5f67fe2': Implicitly clear on incomplete keyboard input
-
Hans Boehm authored
-
Hans Boehm authored
-
Hans Boehm authored
-
Hans Boehm authored
* commit '68db0665': Generalize % operator: Handle 100+10% as expected
-
Hans Boehm authored
* commit 'ec7517f3': Check for decimal point after adding ellipsis
-
Hans Boehm authored
-
Hans Boehm authored
* commit 'e4b8ff7c': Don't evaluate a lone decimal point to zero
-
Hans Boehm authored
* commit 'b7bd3488': Announce when formula has been completely deleted.
-
Hans Boehm authored
* commit '3d4a67d1': Address FIXME comments from previous cleanup CL
-
Hans Boehm authored
Bug: 23728152 This avoids the one case in which we displayed neither a decimal point nor an exponent, and the decimal point was not just to the right of the number. Remove a redundant test, which obscured the logic. Add a couple of suggested manual tests that helped me find a (newly introduced, not submitted) bug. Change-Id: Iead1efa0a4e8ea74512e9e1f77334f80bbcdd202 (cherry picked from commit 73ecff20)
-
Hans Boehm authored
Bug: 21470513 Prevent timeout message from disappearing on rotation. Have long timeout setting survive rotation. Following Justin's suggestion, associate it with a given expression and reset when expression is cleared. This does mean that when you rotate a device displaying an expensive- -to-compute result, the device will initially display the formula for several seconds, before it redisplays the result. Previously you had to reenable the long timeout. Neither is 100% ideal. Change-Id: Ibf8e151dd37ebadf1e86adee4718e8fa8f66b975 (cherry picked from commit 5e6a0ca2)
-
Hans Boehm authored
Bug: 22931305 When the calculator is in result mode, cause a typed function name to clear the display, just as touching the function on the screen would. Change-Id: I77c69737a571ad8d2e6396fa3f34d5ada324fee4 (cherry picked from commit 5d79d107)
-
Hans Boehm authored
Bug: 22836179 Handle + or - operators specially if they are followed by a constant or pre-evaluated expression and the % operator. Since this is basically an idiomatic use of the operators, we apply it very conservatively. When in doubt we use the old interpretation. Also fixes one unrelated anachronism in a comment. Change-Id: I2f9fd26dd6c0456f0210815ef2bc1afca3a2b4d7 (cherry picked from commit 8afd0f85)
-
Hans Boehm authored
Bug: 22917707 Make a constant consisting of just a decimal point produce an error when evaluated. Change-Id: I970c8b396894f301553171dad3c325ffac09ff57 (cherry picked from commit fa5203c0)
-
Hans Boehm authored
-
- 10 Oct, 2015 6 commits
-
-
Hans Boehm authored
Bug: 24811759 Bug: 22047258 Add code to actively prevent ...99999 from getting turned back into ...00000 . This may have been imposssible anyway, but I couldn't prove it. Add tests for some Evaluator static functions, including the new unflipZeroes(). Fix a minor bug in exponentEnd() discovered in the process. The logic for limiting exponent length was wrong. Remove some no longer needed code to force a reevaluation. Generalize getPadding() function to repeat() and make it static. Remove leadingZeroes() which is no longer used. Make getMsdIndex() return the correct result even if it has changed due to reevaluation. Change-Id: Id457d8327ce0bc184d72ef78ddd3dbdaab7c6c78 (cherry picked from commit 7a432880)
-
Hans Boehm authored
* commit 'a4eb1c07': Add docs directory and contents
-
Hans Boehm authored
* commit '114e08db': BoundedRational.java cleanup
-
Hans Boehm authored
* commit 'b13daf10': Evaluator.java and CalculatorExpr.java cleanup
-
Hans Boehm authored
-
Hans Boehm authored
-
- 09 Oct, 2015 5 commits
-
-
Hans Boehm authored
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 db6f9997)
-
Hans Boehm authored
Bug: 24575798 Make factorial(0) return 1, as intended. Add a few factorial tests. Fix targetPackage spec so test is actually runnable again. Change-Id: Ibb8d827f0325999c6b5ed49a939e1532ddf55639 (cherry picked from commit 69515918)
-
Hans Boehm authored
Bug: 24811759 Add the following documentation files: arithmetic-overview.html describes the approach used to get "exact" arithmetic. implementation-overview.html outlines the major parts of the implementation. Change-Id: I3c8645aabbc5fb8aa894372a1eea0b5aad4a6473 (cherry picked from commit dd895bca)
-
Hans Boehm authored
Bug: 24811759 Bug: 21469726 Bug: 23080519 Reformat to 100 columns. Reformat simple if-statements and rename variables for better consistency with coding conventions. Switch many comments to javadoc style. Consistently use signum() to compare to zero. It's more concise and probably slightly more efficient. Change the asBigInteger implementation to use a single divideAndRemainder call instead of relying on gcd. Add tests. Eliminate redundant test in maybeReduce(). Change-Id: I4c275494e076612d09a05bc317c9972008619cda (cherry picked from commit a4511f34)
-
Hans Boehm authored
Bug: 24811759 Bug: 21960281 Bug: 22047258 No substantive changes. Reformat to 100 columns. Correct and/or remove obsolete comments and occasional bits of clearly dead code. Better follow coding conventions. Rename variables for both internal consistency and consistency with other files. This included a few renamings in Calculator.java and CalculatorResult.java, and a comment fix in CalculatorResult.java. Rename public fields per coding convention. Correctly declare more nested classes static. Document FIXME issues to be addressed in followup CL. This includes a careful look at the msd computations. I cannot construct any failing examples, but I also cannot currently construct a correctness argument. Change-Id: I5c67493eeb7730edb4b3ca3ba1cb8b7d2b87dbc2 (cherry picked from commit abe2862b)
-