Commit Graph

10 Commits

Author SHA1 Message Date
Zhao Wei Liew f50d55140f Add a proper description for CM_SETUP_WIZARD_COMPLETED deprecation
Change-Id: I7bf1ee5644b178173941803fccafbbd501289acd
2017-02-19 17:42:31 +08:00
Paul Keith 595640e86a cmsdk: Deprecate CM_SETUP_WIZARD_COMPLETED
Change-Id: I1ddf79d8308def2056fa509b64a2ec4af5c39f31
Signed-off-by: Paul Keith <javelinanddart@aidenswann.com>
2017-02-18 11:55:58 +08:00
Roman Birg 5b6638051e CMSettingsProvider: load provisioned flag when creating DB
If the database needs to be created, it will not be upgraded. So, if the
device was provisioned and the table wasn't created, we don't upgrade
and so we cannot bring the old flag to the new location.

Fix this by setting the new cm provisioned flag on database creation.

Ticket: CYNGNOS-3017

Change-Id: I1e961f1cb2d06c55c1e92ef63c6dbaee17dbc304
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-06-09 11:58:55 -07:00
Adnan Begovic d0d4ce972e CMSettings: Fix defaults load on provider creation.
The database is innaccessible during creation through
  the android resolver interfaces, thus, no defaults were
  loaded even though the code would execute.

  So rewrite the DatabaseHelper to create a singular bulk transaction
  per table when default settings are to be loaded, and provide
  verification tests for the CMSettingsProvider.

TICKET: CYNGNOS-1706
Change-Id: I3d8c5f25704ec9620fe57b82865531fb976a516f
2016-01-25 18:06:39 -08:00
Roman Birg 20bfdd7e3f cmsdk: add keys which to intercept from SettingsProvider
Change-Id: Id5d86cc97eb2411322af5686e6d79fa5fb190891
Signed-off-by: Roman Birg <roman@cyngn.com>
2015-12-21 10:30:22 -08:00
emancebo efb527473e Fix compile error in test cases from 3ddf435fb4
Change-Id: I83bb44505938e8a969b8c123d0947b6c35e12f8c
2015-11-27 05:14:08 -08:00
Danesh M 8862a5f48c CMSDK : Remove legacy tests
Change-Id: I9872774053d68aaf7ed37c74888a5a7ead809484
2015-11-16 15:57:42 -08:00
Adnan Begovic 6a79d5714c cmsdk: Fix cm settings provider tests.
Change-Id: Iedb9c3278f5fa872ffd28682fb3ef48ceb163dba
2015-11-05 17:06:22 -08:00
Yvonne Wong 05d0129478 Add way to migrate CM specific settings to CMSettingsProvider
issue-id: CYNGNOS-829

Change-Id: I08743ebf9ffd3846ae501ed41e396b1556dc41cf
2015-09-25 13:17:19 -07:00
Yvonne Wong 0eb2999091 Add CMSettingsProvider and CMDatabaseHelper
issue-id: CYNGNOS-828

Change-Id: I01c08c0e432d6a941950a565e5ab6664664e2a7f
2015-08-31 13:52:27 -07:00