1. 10 Oct, 2015 5 commits
  2. 09 Oct, 2015 2 commits
    • Hans Boehm's avatar
      BoundedRational.java cleanup · fc8a8d3e
      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)
      fc8a8d3e
    • Hans Boehm's avatar
      Evaluator.java and CalculatorExpr.java cleanup · b13daf10
      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)
      b13daf10
  3. 18 Sep, 2015 3 commits
  4. 04 Aug, 2015 3 commits
  5. 03 Aug, 2015 1 commit
    • Hans Boehm's avatar
      Properly reserve display space for non-digits · 80018c88
      Hans Boehm authored
      Bug: 22882700
      
      We did not correctly calculate the extra space we might need to add
      a decimal point to a scientific notation results.  We also
      incorrectly assumed that minus signs are the same width as a
      digit. As a workaround we now reserve extra space for the possible
      non-digit characters to ensure that a result is never inadvertently
      truncated.
      
      Change-Id: I79b499121703cd51bbbf3e1d85b2285a2dd5e025
      80018c88
  6. 28 Jul, 2015 7 commits
  7. 24 Jul, 2015 2 commits
  8. 22 Jul, 2015 1 commit
  9. 21 Jul, 2015 4 commits
  10. 20 Jul, 2015 1 commit
    • Hans Boehm's avatar
      More correctly pronounce advanced operators in Talkback · 8a4f81c5
      Hans Boehm authored
      Bug: 19190211
      Bug: 19202945
      Bug: 21052751
      Bug: 19165054
      Bug: 22594908
      
      Add TtsSpans for operators that are otherwise misread by TalkBack.
      Force correct reading for some individual characters.
      
      This greatly improves Talkback for advanced operators in Calculator.
      
      This is imperfect. There is no guarantee that the strings I'm
      using will work in all languages.  But they're almost certainly better than
      what we have now.  And it makes parentheses and factorial usable,
      though perhaps a bit verbose.
      
      We also no longer pronounce "sine" as "sin".
      
      Removed some now obsolete TODO comments.
      
      Change-Id: I5236f682be828699e08dca04ee6fa073269964f6
      8a4f81c5
  11. 15 Jul, 2015 4 commits
  12. 14 Jul, 2015 4 commits
  13. 13 Jul, 2015 2 commits
  14. 11 Jul, 2015 1 commit