Commit Graph

3173 Commits

Author SHA1 Message Date
Léa Saviot
5e7731c34d [apps/on_boarding] Reset LED only if POST was performed
Fixes LED color bug in the following scenario:
Plug the device, reset, back, unplug the device, select language
-> The led is lit up
2019-04-30 15:40:47 +02:00
Émilie Feral
23da0d3f2c [ion] Namespace Ion::UTF8Helper and Ion::UTF8Decoder 2019-04-29 18:01:30 +02:00
Émilie Feral
9e962874b6 Merge branch 'version-11' into HEAD 2019-04-29 18:00:17 +02:00
Émilie Feral
6c476526d1 [calculation] HistoryController: Avoid useless cell reloading (avoid
blinking)
2019-04-29 17:55:28 +02:00
Léa Saviot
dbd7196599 [apps/hardware_test] remove test done twice 2019-04-29 17:20:24 +02:00
Léa Saviot
8e3fa8c2e3 [apps/POST] Test not performed if calculator plugged 2019-04-29 10:18:28 +02:00
Émilie Feral
661c7b9943 [escher] SelectableTableView: when reloading data, we temporary deselect
the table. We warn the SelectableTableViewDelegate that the selection
change is 'within a temporary selection change' when notifying it of the
change.
2019-04-26 14:48:31 +02:00
Léa Saviot
641484457c [apps/hardware_tests and POST] Factorize the tests 2019-04-26 12:02:53 +02:00
Léa Saviot
204be4e7a3 Revert "[apps/hardware_test] Remove POST from hardware tests"
This reverts commit d103cd0919.
This tests are needed to block the production if they fail
2019-04-26 11:35:16 +02:00
Émilie Feral
78907aeb4a [calculation] Calculation: memoized display output 2019-04-26 10:46:46 +02:00
Émilie Feral
80ad1e9623 [shared] Clean reloading (highlight, even) of
ScrollableExactApproximateExpressionsCell and
ScrollableExactApproximateExpressionsView
2019-04-26 10:41:36 +02:00
Émilie Feral
87c5004aec [calculation] HistoryViewCell: clean 2019-04-26 10:14:11 +02:00
Émilie Feral
7150669f5e [calculation] Change name: 'calculation selected' --> 'calculation
expanded'
2019-04-26 10:03:24 +02:00
Émilie Feral
aebc5ce4d0 [calculation] Calculation: discard Calculation::toggleDisplayExact (this
feature will be developed later)
2019-04-26 09:50:25 +02:00
Émilie Feral
1535d4dbb4 [calculation] HistoryViewCell: better split reload (highlight, scroll
etc)  between willDisplayCellForIndex and cellDidSelectSubview
2019-04-26 09:43:22 +02:00
Léa Saviot
380ac52cd8 [ion/crc32] crc32Byte and crc32Word 2019-04-25 17:11:06 +02:00
Émilie Feral
a02a1fc5a4 [calculation] HistoryViewCell: fix scroll reloading and right or left
outputs selection (the order of events here matters)
2019-04-25 15:20:55 +02:00
Émilie Feral
25722d578d [calculation] HistoryViewCell: memoize calculation and cell selection to
speed up navigation in HistoryController
2019-04-25 14:03:35 +02:00
Émilie Feral
2b921c9965 [escher] ExpressionView: optimize setLayouts to avoid marking the whole
view as dirty when the layout did not really changed
2019-04-25 14:03:30 +02:00
Léa Saviot
794ce8d892 [ion/on_boarding] Fix the backlight initialization 2019-04-25 10:58:49 +02:00
Léa Saviot
69593bd0be [apps/on_boarding] Visually hide the LCD POST to the user
By initing the backlight after the test, not before.
2019-04-25 09:43:44 +02:00
Émilie Feral
3234622df6 [poincare] Layout: discard methods isVerticalOffset(), isHorizontal(),
isRightParenthesisLayout(), isLeftBracket(), isRightBracket(),
isCodePoint(),
isLeftParenthesisLayout() and use type() instead
2019-04-24 17:25:04 +02:00
Léa Saviot
d103cd0919 [apps/hardware_test] Remove POST from hardware tests 2019-04-24 16:25:10 +02:00
Léa Saviot
da5a2d15f7 [apps/on_boarding] Power-on self-test
POST checks the battery, VBLANK and LCDData
2019-04-24 16:18:55 +02:00
Émilie Feral
c6846bb85c [poincare] VerticalOffsetLayout: change name of 'Type' to 'Position' 2019-04-24 15:32:21 +02:00
Émilie Feral
75f2b55dd8 [shared] ScrollableExactApproximateExpressionsView: fix scrolling when
selecting the left or right output result
2019-04-24 14:56:07 +02:00
Émilie Feral
ff87c8c53c [escher] ScrollableView: discard duplicate data source of scrolling
offset
2019-04-24 14:34:18 +02:00
Léa Saviot
a4b0567e64 [hardware_test/lcd_test] Fix the BlackWhite test 2019-04-24 12:05:19 +02:00
Émilie Feral
e29c2b8b39 [calculation] HistoryViewCell: reloadCell selects the right or left
output according to the calculation hold (this enables to discard
unnecessary reloadScroll)
2019-04-24 09:46:12 +02:00
Émilie Feral
8629b4c9e9 [shared] ScrollableExactApproximateExpressionsView: selecting the right
or left output reload the scroll to display the selected output
2019-04-24 09:43:22 +02:00
Émilie Feral
0c453386d3 [calculation] Calculation: improve memoization of a calculation height 2019-04-23 15:16:19 +02:00
Émilie Feral
55e325cc3a [shared] ScrollableExactApproximateExpressionsView: change the selected
output only when one of the two layout is uninitialized. Otherwise, the
parent cell decides of which of right or left output should be selected.
2019-04-23 11:15:17 +02:00
Émilie Feral
bba51b9716 [calculation] Display exact and approximate outputs in the
calculation history when the output is selected for calculations
involving decimal numbers (1.2)
2019-04-22 14:14:15 +02:00
Émilie Feral
1b2ce4a18e [calculation] Improve Calculation model: new display mode
ExactAndApproximateToggle
2019-04-22 14:12:00 +02:00
Ruben Dashyan
ed04e5e9e4 [apps/calculation] Simplify HistoryViewCell::handleEvent 2019-04-20 17:27:38 +02:00
Ruben Dashyan
8bfb3f7a6c [apps/calculation] HistoryViewCell does not need to hold layouts 2019-04-20 17:27:38 +02:00
Léa Saviot
e4cd72cf32 [apps/on_boarding] Light up the LED to indicate battery level 2019-04-19 15:12:25 +02:00
Émilie Feral
c4502ceab3 [sequence] Fix isDefined 2019-04-18 16:11:15 +02:00
Émilie Feral
13ddb80b57 [graph] Fix build 2019-04-18 15:19:43 +02:00
Émilie Feral
2f5d1b029c [apps] BatteryView: avoid redrawing when battery picto switch from 'low'
to 'empty' (the pictograms for low and empty are identical)
2019-04-18 15:19:36 +02:00
Ruben Dashyan
6d66b2e75e [apps/graph/graph] Add Preimage controllers to CalculationParameterController 2019-04-18 14:26:42 +02:00
Ruben Dashyan
48d3a58ffc [apps/graph/graph] CalculationParameterController inherits from ListViewDataSource
instead of SimpleListViewDataSource
2019-04-18 14:26:42 +02:00
Ruben Dashyan
23fd28b3b4 [apps/graph/graph] Define PreimageParameterController class 2019-04-18 14:26:42 +02:00
Ruben Dashyan
e0774cba4b [apps/graph/graph] Define PreimageGraphController class 2019-04-18 14:26:42 +02:00
Ruben Dashyan
ab108bbd2c [apps/graph] Add preimage to i18n 2019-04-18 14:26:42 +02:00
Émilie Feral
e39172a7cd [apps] AppsContainer: 'shutdownDueToLowBattery' can be call when the
battery is actually LOW (due to some oscillations between LOW and
EMPTY). Handle that case
2019-04-18 14:07:03 +02:00
Émilie Feral
ef12e6de79 [apps] BatteryView: when the battery is EMPTY and the device hasn't
shut down yet, avoid drawing full battery (and breaking assertion)
2019-04-18 14:07:03 +02:00
Léa Saviot
326b8b8761 [poincare/tests] randint's simplification gives its approximation 2019-04-17 14:29:08 +02:00
Léa Saviot
a48478882c [apps/calc] If result contains random/round, display approximation only 2019-04-17 12:11:37 +02:00
Léa Saviot
73e0947962 [apps/calculation/tests] Tests on displayExactApprox for random/round 2019-04-17 12:10:47 +02:00