summaryrefslogtreecommitdiffstats
path: root/res/values
Commit message (Collapse)AuthorAgeFilesLines
* Themes: Expose hard coded background in javaBryan Owens2016-01-031-0/+19
| | | | | Change-Id: I6248f1edfa97b02c34604059f55454248dc1cc98 Signed-off-by: Bryan Owens <djbryan3540@gmail.com>
* Announce when formula has been completely deleted.Hans Boehm2015-10-091-4/+11
| | | | | | | | | | | | | | | | 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)
* Update comments for shortcut button content descriptionsHans Boehm2015-06-101-3/+11
| | | | | | | | | | Bug: 21623405 Bug: 21603293 Make comments more descriptive for transalation. The attached bugs requested this for "10 to the power of". Change-Id: I75da9fcfb076cf74d095d3abef5312571607f0fe
* Show "INV" button's selected stateJustin Klaassen2015-06-091-2/+2
| | | | | Bug: 21708864 Change-Id: I837c7b768461ab065093c6ef6fbf0dec3acd1c2d
* Clarify "ok_remove_timeout" string descriptionJustin Klaassen2015-06-081-1/+9
| | | | | Bug: 21688370 Change-Id: I59b05d038f261f40893a025824355b19b0a2b249
* Enforce singleLine on CalculatorResult TextViewJustin Klaassen2015-06-081-1/+8
| | | | | Bug: 21692303 Change-Id: I5db0e28a60e4daa40117fee899037ac198de859e
* Update strings per UX reviewJustin Klaassen2015-06-051-13/+13
| | | | | | Bug: 20497138 Bug: 20648856 Change-Id: Id71e2c1922447957b61e3c06b205f991f01eea27
* Change contentDescription for '×' buttonJustin Klaassen2015-06-041-1/+1
| | | | | Bug: 19186434 Change-Id: I0e4793c2ea1fa06bcf0ddee9d642d4732aa8ce84
* Merge "Implement percent and new inverse functions" into mnc-devHans Boehm2015-06-021-6/+27
|\
| * Implement percent and new inverse functionsHans Boehm2015-06-021-6/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Force textAlignment == viewEndJustin Klaassen2015-06-021-0/+2
|/ | | | | | | | | | | | 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
* Update advanced pad layoutJustin Klaassen2015-05-282-9/+28
| | | | | | | | | | Bug: 7263319 Bug: 20841915 - Switch to using GridLayout instead of custom ViewGroup. - Added '%' operator button (Note: evaluation support WIP). Change-Id: I0d07f01fe4224c43e53c916b034362d906bea405
* Improve copy/paste handling, minor instant result fixesHans Boehm2015-05-131-0/+3
| | | | | | | | | | | | | | | | | | | | | | 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
* Increase CHAR_LIMIT to 40 for menu stringsJustin Klaassen2015-05-111-3/+3
| | | | | | | Bug: 20973349 Bug: 20980152 Bug: 21024589 Change-Id: I5566d8d94abdc97c52740c97ed57cea98ddc9462
* Fix CHAR_LIMIT for stringsJustin Klaassen2015-05-072-102/+84
| | | | | | | | | | | 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
* Cleanup options menu and licenses UIJustin Klaassen2015-05-052-16/+18
| | | | | | | | | | 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
* Fix strings, stability bug, easy UI & correctness issuesHans Boehm2015-04-291-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Restructure display formatting, use TextView for formula.Hans Boehm2015-04-283-11/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Adopt Toolbar for overflow menuJustin Klaassen2015-04-171-0/+1
| | | | Change-Id: I55958260b4279b504e79b7a104a813a1273ae403
* Fix UI holes and bugs. Fix eval bugs.Hans Boehm2015-04-152-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 degree/radian mode, improve button layoutHans Boehm2015-04-081-0/+10
| | | | | | | | | | | | | 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
* Beginnings of ExactCalculator based on LHans Boehm2015-03-062-4/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Adjust text colors for GAR constrast requirementsJustin Klaassen2014-09-171-4/+4
| | | | | Bug: 17525697 Change-Id: Ie933e16b927f335d921ec93dac7345a894069e64
* Polish pad ripple colorsJustin Klaassen2014-08-132-3/+6
| | | | | Bug: 15730223 Change-Id: I475ae3ba715ee39a580f58e98681b9884aad660c
* Use elevation for dynamic shadowsJustin Klaassen2014-06-201-6/+0
| | | | | Bug: 15550085 Change-Id: I21839913551cd7bbbab0b3ab22a708a09e7b6200
* Use setStatusBarColor APIJustin Klaassen2014-06-191-2/+1
| | | | Change-Id: I3eb9a3511f7fe6b4dbac5d93d9edd3b98921e909
* Reveal animation on errorJustin Klaassen2014-06-121-1/+2
| | | | | Bug: 15597955 Change-Id: I8f87b25ce25fd344f2b62720f28ae10861d56bc5
* Merge "advance panel touch feedback color" into lmp-preview-devJustin Klaassen2014-06-101-2/+2
|\
| * advance panel touch feedback colorJustin Klaassen2014-06-101-2/+2
| | | | | | | | | | Bug: 15413513 Change-Id: I701fc4c5528a16b98d68c88d58b1a6139de5e9d6
* | Change background color of the app bar on the Recent appsJustin Klaassen2014-06-101-0/+1
|/ | | | | Bug: 15547219 Change-Id: I477c3a9ddfab880b69f75bc6cd1ba925e17672ac
* DO NOT MERGE Material themeAlan Viverette2014-06-061-3/+3
| | | | Change-Id: I5caa8798b117c148607db5ed96c51b56e20a405d
* Overhaul Calculator UI.Justin Klaassen2014-05-288-373/+273
| | | | | | | | | | | | | | | | 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
* Variable font sizeHongwei Wang2014-05-122-3/+7
| | | | | Bug: 14419084 Change-Id: I96b49a3c45aa7b435af96842578df34507bbe0b8
* Use App specific theme with color paletteAdrian Roos2014-05-051-1/+5
| | | | Change-Id: Iec27d849b0d5478c29badf9e9fdb034c03d0d5ca
* Add missing layout paramsAlan Viverette2014-03-061-0/+1
| | | | | BUG: 13340631 Change-Id: I91052e0033f1286005d651fbad2610c65fb97e79
* Rename calculator back to CalculatorAlan Viverette2014-03-052-7/+3
| | | | | | | | | Also renames some assets, removes the stationary button style, and restores the default clear / delete icon switching. BUG: 13322842 BUG: 13321800 Change-Id: I43ccf7a7eb40a670289ca61c3582f0914a4bacee
* Quantum of CalculatorAlan Viverette2014-03-034-93/+167
| | | | Change-Id: Ic79777951621c42f03e7da9dd73c350f5182f48e
* Override display_style just for tablets.Mindy Pereira2012-05-151-4/+3
| | | | | | Fixes b/6497912 Input is not centered in the designated field in Prime Change-Id: Ifac59989c9fab05220e9097d300ea5442f1f03b5
* Calculator layout reworking to handle large text.Mindy Pereira2012-05-141-2/+3
| | | | | Fixes b/6468514 Numbers are cropped if using huge font size in Calculator Change-Id: Ic054ac994484c39f1be759a1de6ebf2fc90091f3
* Per talkbackteam, please change point to " point "Mindy Pereira2012-05-091-1/+1
| | | | | | Fixes b/6339309 Accessibility:- Calculator doesn't talk back any number or operation correctly. Change-Id: I36da0604d9b743a91b085fa5f4b471e7e3a42aeb
* Translate the rest of the math functions.Mindy Pereira2012-05-031-0/+6
| | | | | | Fixes b/6116353 Calculator doesn't calculate sin(0) when language is set to Spanish Change-Id: Id8c65ba8aa0403f3e7988e05cde8ccb2f6624fbc
* Translate from translated languages to MATH.Mindy Pereira2012-05-031-1/+6
| | | | | | Fixes b/6116353 Calculator doesn't calculate sin(0) when language is set to Spanish Change-Id: I40ecf66e8021e914eaee9c603191d022d0b757ff
* Make the Calculator edit text field speak the correctly mathematical content.Mindy Pereira2011-12-061-0/+64
| | | | | | | Previously: 7x9 would be read as "7EX9" when you really want "7 multiplied by 9" Change-Id: I6fd3c1e3d0a40ca8700c10227edbdb445dbb7743
* Fix accessibility for calculator.Mindy Pereira2011-12-061-0/+24
| | | | | | | | 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
* Updated calculator visuals to standard ics buttonsPeter Ng2011-10-041-2/+2
| | | | | Bug: 5143830 Change-Id: Ida9ad2da04b2579b3be83828fddaceea8f0228cf
* Added ending punctuation to toast.Claudia de Veaux2011-09-301-1/+1
| | | | | | Bug: 5163232 Change-Id: I0cc7c971c860ad00699c15aba73aa29a1028893c
* Always show the same max number of digits for a result.Mindy Pereira2011-08-231-0/+19
| | | | | | | This is terribly confusing otherwise. Fixes b/5160841 Calculated result shows truncated value in Landscape mode of device. Change-Id: I1b407ed03fc20b46cc25cf9af1070e074677fa13
* Suggestions disabled using input type text flag.Gilles Debunne2011-08-161-2/+1
| | | | Change-Id: Icac57bfb78535e622d97e5044881a2cb2d22adc4
* Bug 5074527: IME no longer pops up. Text suggestions disabled.Gilles Debunne2011-08-121-0/+1
| | | | Change-Id: I89e77b091a44a59c43cf4c84ff58655feced130d
* 7in fixes for CalculatorMichael Chan2011-05-261-1/+6
| | | | | | | | | | | | | 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