Commit Graph

644 Commits

Author SHA1 Message Date
Matt Wagantall eb82dbf050 cmsdk: cmhw: Add UniqueDeviceId support
It's sometimes useful to know what physical device you're using.

CMHW SerialNumber and an "ro.serialno" property already exists, but
are not guaranteed to be unique. Different OEM may use overlapping
numbering schemes, and sometimes placeholder like "012345ABCDE" are
used.

Attempt to work around these shortcomings by defining a new
UniqueDeviceId class that provides a globally unique device ID that
is both deterministic for a given device and designed not to overlap
with IDs of any other devices.

Change-Id: I3f426972558394ba8e78261273ac8521aa603327
2016-02-02 16:37:59 -08:00
Michael Bestas ee703e74fa Automatic translation import
Change-Id: I1893380ab4f7e3bb5ff31c72578aa28a932839a0
2016-02-02 07:04:22 +02:00
Michael Bestas c17ac3873c CMSettingsProvider: Update app icon
Change-Id: If31edca58e156af81edf9202cb9a5a00107e84eb
2016-01-30 14:01:26 +02:00
Adnan Begovic ad6f85c69e CMSettingsProvider: Don't trample default values on migrate.
Since the migration is invoked even on a clean flash, with
  no means of knowing what scenario we're coming from. Assume
  that all null values are to be dropped and default values are
  to be given precedence.

Change-Id: I10eb2f4650c379422268423dbc011b49f77ed910
TICKET: CYNGNOS-1721
2016-01-26 16:52:54 -08:00
Keith Mok 3629a574b2 cmsdk: remove visualizer from default qs tile list
This fixes the following errors during bootup:
QSTileHost: Error creating tile for spec: visualizer
QSTileHost: java.lang.IllegalArgumentException: Bad tile spec: visualizer

CYNGNOS-1722

Change-Id: Idd45ef73beb004fb4afb310bb335f3cc85b08330
2016-01-26 13:22:40 -08:00
Khalid Zubair a3c05bf3ff Revert "cmsdk: Add example service test."
This reverts commit 33e300e32d.

CYNGNOS-1677

Change-Id: Ia4a9d192fde03152d308f7a93f3fe6525cb57c7d
2016-01-26 11:00:27 -08:00
Khalid Zubair 25a71471ae Revert "cmsdk/tests: Temp hack to fix `mka` builds."
This reverts commit 969cda0807.

CYNGNOS-1677

Change-Id: Ic814b7af9e9d1aef725b310af9f3b0383701eec7
2016-01-26 10:59:09 -08: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
Michael Bestas 910648e8e2 Automatic translation import
Change-Id: I3777f8d3c8b2c83da6bfe734bfaa1554ae91b198
2016-01-25 19:42:32 +02:00
LuK1337 559636d8b7 Add left QS quick pulldown (3/3)
Change-Id: I77c8f0eda1b059bc2c0f0dff1d92834f36cd9de9
2016-01-23 17:00:39 -08:00
Adnan Begovic 588c05aeb8 cmsdk: Update for new ll interfaces.
Change-Id: I48a7b6aff3ed21db69539b7733e0159db866c270
2016-01-22 17:35:58 -08:00
Adnan Begovic 7ee149d529 cmsdk: Fix hardware service interfaces.
Always add new interfaces to the bottom of the aidl
  or you break backwards compatability.

Change-Id: I376fbe6869d3fb0002822112eb05d9acddd51572
TICKET: CYNGNOS-1699
2016-01-22 17:09:44 -08:00
Scott Mertz 62579b157a cmsdk: add invalid input checking for persistent storage APIs
Some of this exists in the PersistentStorage implementation, but it
was never formally documented in the APIs.  Inherit the cmhw implementation
error checking & move it into the service.

Add tests to validate the new restrictions & a test that was previously
failing.

Change-Id: I3ecda29fdd28bbc4e6d8ccce7511c4644065ea46
2016-01-22 16:24:33 -08:00
d34d fc50f7cef8 ExtViews: Add action and meta-data
Services that extend KeyguardExternalViewProviderService should also
include this newly defined action in an intent-filter within the
<service> tag in their AndroidManifest.xml.  These services can also
include meta-data that defines a configuration xml which will be used
to define a settings activity that can be launched within a yet to
be defined settings/configuration UI.

Change-Id: I0a5ca09cf6f63413d067f89a9757137102dd09f6
TICKET: CYNGNOS-1687
2016-01-22 15:44:34 -08:00
d34d d994fe130a LiveLockScreen: Add setting for enabled/disabled
Change-Id: I6e9269f4ae20370c8c77019057ee276902df4721
TICKET: CYNGNOS-1686
2016-01-22 15:44:25 -08:00
Adnan Begovic 0d9d1ab12e CMSettings: Introduce concept of protected apps managers.
TICKET: CYNGNOS-84
Change-Id: I06245b0a69eea3474c1c093c5843bd59b5c53a80
2016-01-22 15:14:26 -08:00
Adnan Begovic 31962b2226 cmsdk/tests: Fix zenmode tests.
TICKET: CYNGNOS-1667

Change-Id: Ic9b819d6680ea26039089013f552a199df81c0f7
2016-01-22 12:07:37 -08:00
Scott Mertz 7fb0a06ada cmsdk: change persistent storage test cases to void return type
InstrumentationTestRunner only picks up methods with "public void test*"
in the method signature.

Change-Id: I382114c9bd12ef954f65a54f101438d1207b5d69
2016-01-22 10:57:24 -08:00
Ricardo Cerqueira 20d9638593 Add overlay for SWAP_VOLUME_KEYS_ON_ROTATION
This got lost along the transition

Change-Id: I35f5c6cdd73ff1d4a590fa6980d3214dda2bd740
2016-01-22 18:11:49 +00:00
d34d f499009346 Change THIRD_PARTY_KEYGUARD permission to normal
Lower protection level of THIRD_PARTY_KEYGUARD permission from
signature|privileged to normal.

Change-Id: I464daba67a66e88efe6219cec2663a07d15ab3ed
TICKET: CYNGNOS-1689
2016-01-21 14:20:30 -08:00
Adnan Begovic 80001bff72 cmsdk: Fix BuildTests. Bump parcelable version.
Change-Id: I3084acfa25ca6bd6f5a058995906a050e243a4c9
2016-01-19 13:43:16 -08:00
Adnan Begovic 735333ce4a cmsdk: Add new version code to the sdkmap.
Change-Id: I765258f40d8c233df9adb48a20700e92e88f7ad8
2016-01-18 14:27:38 -08:00
Adnan Begovic 24f2bb4235 cmsdk: Introduce Elderberry, api level 5.
Change-Id: I916cb96e86e7dcee04b3b4cd08fec934b1ce5876
2016-01-18 13:43:03 -08:00
Adnan Begovic ebf0f55125 cmsdk: Finalize DragonFruit (api level 4).
TICKET: CYNGNOS-1648
Change-Id: I5844bc0bad9968b2c1d2d9e1ca3d65ae9d2d70c8
2016-01-18 13:36:21 -08:00
Roman Birg 8d4920022f CustomTiles: add a custom long press PendingIntent
Ref: CYNGNOS-1602
Change-Id: Id0cca88fabb091dcf0fbad2ae24416fa1c0af83e
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-01-18 10:31:08 -08:00
Michael Bestas 5400b2f30e cmsdk: Add battery saver tile (2/2)
Change-Id: I526144a76295d41b5658f9db417f9e6ded62c8d4
2016-01-17 13:49:41 -08:00
Michael Bestas 55cb12360e cmsdk: Add heads up tile (2/2)
Change-Id: Idce96d2db8fb28b0aadae5b9b19c334f22aba12a
2016-01-17 13:28:34 -08:00
Adnan Begovic cf3f38c37c cmsdk: Add CYANOGENMOD_VERSION constant.
Change-Id: I81526ae7d90e453975e2c1e2fc79234f706fb415
2016-01-15 15:49:11 -08:00
Adnan Begovic 969cda0807 cmsdk/tests: Temp hack to fix `mka` builds.
Change-Id: I7d08765c6661f3c4bba6574c9bc89ba36af9632b
2016-01-15 11:21:53 -08:00
Edward Wang b9f80b66fd cmsdk: Load notification led customization defaults
Issue-Id: YAM-34

Change-Id: I67395465eb830ae994d8d796a4dbdae08ade5b01
2016-01-13 16:12:45 -08:00
Roman Birg bf9cc6dfe1 cmsdk: add lockscreen internal enabled setting
Setting to keep track of whether a QS tile has disabled the keyguard so
we can display this state elsewhere.

Ref: CYNGNOS-1513
Change-Id: If6ecb78a028d9d74d70bc2f1cd584ac9ac83a2d1
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-01-13 13:02:13 -08:00
Adnan Begovic c7e69dede8 cmsdk: Introduce internal MetricsLogger class.
Contains contants utilized throughout Settings/Systemui
  to log usage of specific fragments, settings, or panels.

  An extension of Androids MetricsLogger.

Change-Id: I44eff06f87313fca8c2ecf78b7bdea9055956e3c
2016-01-11 16:56:37 -08:00
Michael Bestas cc517bfc9b Automatic translation import
Change-Id: I39a0e63fa95fd9a37a79dc6cb52da8047c40c86f
2016-01-11 22:46:43 +02:00
Adnan Begovic b4b1321666 cmsdk: Update api text.
Change-Id: I76297c11050e7b33ccfc530330ab37cfb8a07916
2016-01-06 17:52:18 -08:00
Adnan Begovic aee4b087d2 cmsdk: Add external views package for api stubs.
Change-Id: I96b5e77331910765b5762d645fa9adbff46281fd
2016-01-06 17:52:05 -08:00
Janet Sun 3dffa871e4 cmsdk: Add unit test for PartnerInterface
Created the AndroidTestCase unit test
Added functional testing for airplane mode, which can be restored
without contaminating other tests.
Also added setZenMode testing, which currently contaminates other
tests. But we will allow for lack of a better way

FOR-156

Change-Id: I2ab5642c60f41266d9de8aab897e4852e872ad38
2016-01-06 17:49:18 -08:00
d34d 7622e3c7d6 ExtView: Fix name of dismissAndStartActivity
The method should have been renamed to requestDismissAndStartActivity

Change-Id: I93e00be58dc9c70f0f7a0b6d0bb6ac487af8fe58
2016-01-06 14:26:07 -08:00
d34d ccf16f85ac Keyguard: Broadcast when external keyguard changes
Since the locksettings database is not backed by a provider, we cannot
use a ContentObserver to know when a change to the third party keyguard
component has occurred.  Instead we broadcast that it has changed.

Change-Id: I1384b8ba445dcb8d0c571ded1c68b297182f086a
TICKET: CYNGNOS-1481
2016-01-06 14:12:33 -08:00
d34d dbb87e233d ExtView: Document the keyguard external view APIs
Change-Id: Ia714c8a4afc40abda2448ba4a757ea34af05a65a
2016-01-06 12:07:35 -08:00
Adnan Begovic 7107e06911 cmsdk: Update iconography.
Yes it bothers me that much.

Change-Id: Idabccbf584b23d6550c079cab2c1a1427ae6ab9b
2016-01-06 11:45:15 -08:00
Adnan Begovic 33e300e32d cmsdk: Add example service test.
Change-Id: I52972bc4d32505ba7fd2f7278efdb9441c39b82a
2016-01-05 17:37:14 -08:00
Adnan Begovic bbab82e97b cmsdk: Add cmsdk non-jack target module.
Since LOCAL_JACK_ENABLED isn't flexible enough
  to have generation of both java archives and jack
  binaries, we can work around this by having a
  secondary module defined that disables jack compile.

Change-Id: Ied647b659c13b672621d82af536d1ed447d5f7fa
2016-01-05 17:36:34 -08:00
Matt Garnes a3730df179 Reorder new setZenModeWithDuration API in aidl
Previously, a new method was added to IPartnerInterface.aidl in the
middle of other methods. This needs to be added only at the end to
ensure backwards compatibility with older versions. Reorder the methods
to place setZenModeWithDuration at the end.

Change-Id: Ib9f9c7acceb928db5acc76e7351147074b230141
2016-01-05 16:30:13 -08:00
Roman Birg be1678b867 cmsdk: add method for checking dynamic tiles
Change-Id: I946c15a531a5985b51924cbf3a1eb191b2833e51
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-01-04 08:49:44 -08:00
Adnan Begovic d1129cc9f0 cmsdk: Also hide internal package from docs.
Change-Id: I278e00dbf4f1661383b3a6e3c67987c67ff202d7
2016-01-02 14:07:06 -08:00
Adnan Begovic 9734639366 cmsdk: Fix quick pulldown settings, and unhide numerous system settings.
Change-Id: Ibfc41a74ca5e5902ea704919ce076d8442258406
2016-01-02 12:12:37 -08:00
Adnan Begovic 2d4d51479e cmsdk: Update current api text.
Change-Id: Ib13c389ec64ee04fb8d189b22a94ca676835bfa6
2016-01-02 12:12:37 -08:00
Michael Bestas 9f9759a89a Automatic translation import
Change-Id: I742c557747bbee9f821298497e2cef0e371bb0a2
2015-12-25 19:39:33 +02:00
Khalid Zubair c972c0e85e Add resources for WiFi customization
Add resources needed by WiFi service (see
If1613a8556908f372a70fbd859fa35e9315f9613)

Change-Id: I76b838354459e4482795c9812d37bb204df708c3
2015-12-23 16:28:09 -08:00
Wilhelm Fitzpatrick 9f62d8aa55 CM-SDK: add PREDISMISSED_STATE constant required by CM13 DeskClock
See http://review.cyanogenmod.org/#/c/125484 which brings the
changes to allow third party components to set and modify alarms,
and which actually makes use of the ClockContract in the SDK. This
flushes out the fact that the ClockContract in CM13 added a new
state.

Change-Id: If6d57727298c0a749055337809b9a66e91078a01
2015-12-23 13:46:56 -08:00