Commit Graph

579 Commits

Author SHA1 Message Date
d34d
b3ea2859fd Themes: Refactor themes to CMSDK [2/6]
First attempt at moving as much as possible out of F/B
and into cmsdk

Change-Id: I9e53d1c32e01e88fc3918663dabe0001df922bc2
TICKET: CYNGNOS-2126
2016-03-04 13:59:33 -08:00
Steve Kondik
567b43017a cmsdk: Add cyanogenmod.util to stubs and update API
* ColorUtils was recently added here and it's suitable for general
   consumption. Add this to the API.

Change-Id: Iff89d5714092d02070f1c6805e0e8f95debd980d
2016-03-04 12:46:48 -08:00
Michael Bestas
8a259437af cmsdk: Add device-specific strings
* Reduce duplicate strings between device-specific setting extensions

Change-Id: I5691a68ba0ce031e2b8e3f9686997b155e04faff
2016-03-01 10:41:05 -08:00
Michael Bestas
73fafc1140 cmsdk: Add touch gesture haptic feedback setting
Change-Id: I1e26287a700ccc071c0c5dc5ff71c01df86ef6a0
2016-02-27 02:27:28 -08:00
Steve Kondik
6f3c30a9ce cmsdk: Factoring out color temperature to RGB conversion algorithm
* We need this for other things besides LiveDisplay.

Change-Id: I14c80b059beded80c7cee369a9b40f71d6e905e8
2016-02-26 11:50:16 +01:00
Roman Birg
e3c966861f cmsdk: send intent to intialize CMHW
Ref: OPO-513

Change-Id: Iedd88bfad12b8f257bb792bf024d8eefa92b321c
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-02-25 09:00:18 -08:00
Matt Garnes
c2efaa7794 Uncomment out getHotwordPackageNameInternal impl
This was mistakenly commented out and causes the API to not function.

Fixes FOR-205.

Change-Id: I3c76d9c3665e35e2d13bed00cba1e742e4c0fb07
2016-02-24 10:27:22 -08:00
Danesh M
61afdc1fd7 PerformanceManager : Ensure we clear calling identity
When going from perfmanager -> powermanager we need to clear the calling
identity otherwise you get :

Bad call: specified package android under uid 10031 but it is really 1000

CYNGNOS-786

Change-Id: Iacd310f56d6538b0f7a4779f89b4451f6a203c5b
2016-02-23 14:28:24 -08:00
Adnan Begovic
9c902f898e cmsdk: Update binder transaction tests for new interfaces.
Change-Id: I79352dc36a4934f9821c5b487df0fb19a7ebc693
2016-02-22 14:39:15 -08:00
Michael Bestas
6c1aa2f115 Automatic translation import
Change-Id: I86ecc76f33b4cc3db62be2939ae501cd10f1634c
2016-02-22 05:17:42 +02:00
Roman Birg
60a4ebcb43 cmsdk: insert dnd & edit tiles for 12.1 -> 13.0 upgrade
Ref: CYNGNOS-1924

Change-Id: I6d221e143dc91ec3dbc1c9a1877754f2b98b732e
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-02-19 11:40:44 -08:00
Steve Kondik
ccce292498 cmsdk: Add sanity checks in ColorUtils
* Protect against nulls when generating colors from icons.

Change-Id: I0ba9540848f7be485e713301f2c6c804bd4522e1
2016-02-19 19:12:03 +01:00
Roman Birg
6ad5263eb3 cmsdk: add common action for launching camera from screen gesture
Ref: OPO-427

Change-Id: If97b2ebc864687a53c4ef8253f5d2d0bafc1e996
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-02-18 12:25:41 -08:00
Adnan Begovic
c8e4f0066f CMSettingsProvider: Define battery style default.
Change-Id: Ic0cea75783ee5a0a7be3d0a24e57588ca177169a
TICKET: CYNGNOS-2041
2016-02-17 14:11:08 -08:00
Adnan Begovic
182b972c0b cmsdk: Set explicity dependency for res package files.
During checkapi-cm invocation under make, the api
  text generation dependant on the stubs (which depend
  on the sdk intermediates) needs the res package files:
  Manifest and R.java, to be available in the intermediates.

Change-Id: I19921f1b5531822341a6804cf83e1b0b21b9f8bf
TICKET: CYNGNOS-2049
2016-02-17 11:33:35 -08:00
Danesh M
34ff00c8a4 PerformanceManager : Keep in sync with low power mode
Fix edge cases such as :

1) Toggling to power save when plugged in (Should reject)
2) Plugging in to power while in power save should toggle to
   balanced.
3) Toggling from power save to anything else should disable
   low power mode (Orange system bars...etc)

CYNGNOS-786

Change-Id: If6a4c08843673a6d02c38c94ed44d36230c0cb81
2016-02-15 10:59:01 -08:00
niks255
783463c739 CMSDK: Allow/Prevent notification light in Zen mode (3 of 3)
Change-Id: Icad93cf6166359debd774259aa186640de34d432
2016-02-15 10:30:26 -08:00
Michael Bestas
ba31b78d15 Automatic translation import
Change-Id: I5616066b18e84f59e040a0e73882a3831cdca35f
2016-02-14 16:29:34 +02:00
Michael Bestas
fcadbf539c cmsdk: launch default music player on headset connect [3/3]
Change-Id: Ibbb0607a56ab4d9246c14632eb4199558866854a
2016-02-12 13:31:31 -08:00
Michael Bestas
50cf885cca cmsdk: Deprecate POWER_NOTIFICATIONS_ENABLED setting
* We will reuse AOSP CHARGING_SOUNDS_ENABLED

Change-Id: I930ed41dd90f6dd1440ada5bf5b926467d683a46
2016-02-12 13:30:11 -08:00
Keith Mok
5c7be898cb CMSDK : Add caffeine tile (2/2)
Change-Id: I6c3d5cdc0dc2cce06f1c00c6ffbb96d5f376dc46
2016-02-11 17:06:40 -08:00
Roman Birg
06965d4dfe cmsdk: adjust default tile order
Ref: CYNGNOS-1861

Change-Id: I0f4ab58cb38fe0c9a2dba1b7d38de9020544bdc4
Signed-off-by: Roman Birg <roman@cyngn.com>
2016-02-11 11:44:09 -08:00
d34d
e67ae8f648 CMSettings: Enforce correct permission for writing settings
If an application is writing to SECURE or GLOBAL they should only
be required to hold the WRITE_SECURE_SETTINGS permission and not
both.

Change-Id: Ife14b5e19340f04e2e3b7ebba121104253d1dc88
2016-02-11 11:29:46 -08:00
Adnan Begovic
cdf4d0d699 cmsdk: Update api for new notification lights profiles options.
Change-Id: I7697308f34c89f6391810e114b12bc7457def725
2016-02-10 18:14:35 -08:00
Petr Sedlacek
14683b949d cmsdk: Add notification light setting to system profiles (1/2)
Change-Id: Ic6705792948c5393fc5ca9b207bc250b252e66da
2016-02-10 14:54:19 -08:00
Adnan Begovic
1d2351e0fc cmsdk: Add elderberry interfaces to api text.
Change-Id: I391f4089e97af6cf8bd55c982979e110d7d8ca91
2016-02-09 11:12:57 -08:00
Adnan Begovic
c02c64b772 cmsdk: Disable verbose logging on doclava, add cleanspec.
Change-Id: I44e8b458d4e46cf03ec18776c4ca296c53b440dd
TICKET: CYNGNOS-1950
2016-02-09 11:05:20 -08:00
Danesh M
2d1d7239a5 CMSettings : Add option to pass swipe-up-to-unlock (3/3)
CYNGNOS-1873

Change-Id: Icdd2505dbc56a77f49a76ea61daf75c5d8a24fd6
2016-02-08 15:06:01 -08:00
Adnan Begovic
c63a4b7d7d CMSettingsProvider: Build against internal sdk.
Change-Id: I1a7fc52a9d2e94f29e444b3566a6d9e139302210
TICKET: CYNGNOS-1908
2016-02-08 14:41:42 -08:00
Adnan Begovic
66f23d80ba cmsdk: Remove unused androidTest directory.
Change-Id: Id15cfc17d95f89aceb963a216ddd23295c21773a
2016-02-08 14:15:17 -08:00
Adnan Begovic
5af31cd0b0 CMSettingsProvider: Get rid of redundant qs tile defaults.
If you've git blamed this commit because your build broke,
  move your default tiles overlay to

     `vendor/cmsdk/cm/res/res/values/config.xml`

  with the entry value of config_defaultQuickSettingsTiles

  TICKET: CYNGNOS-1908
Change-Id: Id721136ce669d420fde46322a339b9517b1a3677
2016-02-08 11:46:10 -08:00
Steve Kondik
d22b115d33 cmsdk: Improve color distance algorithm
* Use CIE2000 deltaE algorithm (from OpenIMAJ)
 * Try harder to find a good looking color (also try dominant color)
 * Use new Palette API

Change-Id: I0f0be52fe7c3e8376f1aa08c4bfa2751cd0659da
2016-02-08 08:11:57 -08:00
Steve Kondik
c30bcacbca cmsdk: Add preference for automatic notification colors
Change-Id: I4bdb430917dac69f397995ea1c2abcacfb62136e
2016-02-08 08:11:25 -08:00
Adnan Begovic
eb17396831 cmsdk: Add concept of parameterized BinderIdTransactionTest.
To avoid any future release having offset binder transaction
  call ids, create a means to validate binder transaction ids
  within a parameterized environment based off of prior releases.

  This requires utilizing the new android testing support library
  for junit4 support.

Change-Id: Iefe3c183de2bdfa127ea53dcf21c8223f0355c34
2016-02-05 13:52:31 -08:00
Adnan Begovic
a6ce9b8325 cmsdk: Annotate a few zenmode tests as flaky.
This allows them to rerun without consequence to
  the entire suite on first failure case.

Change-Id: Ia16b3dc433a7b9c83d36f8039b53052fda91c4b7
2016-02-03 16:49:18 -08:00
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