Commit Graph

391 Commits

Author SHA1 Message Date
Adnan Begovic
2f2d432495 Revert "Allow to ignore presentation indicator of outgoing calls [1/3]"
This adds public cmsdk symbols to the bootclasspath. :(

  2)   testBootClassPathIsClean(org.cyanogenmod.tests.versioning.unit.ClassPathTest)
java.lang.AssertionError: Jar file /system/framework/telephony-common.jar should not have cyanogenmod.alarmclock.ClockContract$AlarmsColumns !

This reverts commit 3a590c3057.

Change-Id: I03cc2796e84e602933e7132f9181a5822c7f327c
2016-03-10 11:46:03 -08:00
Adnan Begovic
f8d4978149 cmsdk: Fix resource name.
Change-Id: I20b28bcfb801cd9ba9051f9c97e79ac1119e6fb7
2016-03-08 12:59:17 -08:00
Adnan Begovic
6356c9b56b cmsdk: Update README for release artifact numerics.
Change-Id: I3571c40bc79be5b90f3ba3558780f8f5b539ab9d
2016-03-08 09:24:35 -08:00
Adnan Begovic
b4eafda7de cmsdk: Add PerformanceManager tests, Change target permission.
Since PerformanceManager is strictly a CyanogenMod construct,
  it doesn't make sense to enforce the interfaces with an android
  specific permission (even though the implementation is delegated
  to power manager). To keep consistency with the other api's,
  modify the enforcing permission to a cm specific declaration.

  Also add test cases for the PerformanceManager public interfaces.

Change-Id: I430b69dbee73bf94bb60932d1942ab97e3ba193e
2016-03-08 09:24:34 -08:00
Adnan Begovic
7ed4fcaf8e cmsdk: Keep generated java classes from aidl interfaces.
Keep any classes extending IInterface so we can have
  the BinderTransactionTest run successfully.

Change-Id: Ic49794017e472499cbbf351dfa12732854ceea8d
TICKET: CYNGNOS-2189
2016-03-08 09:24:32 -08:00
Adnan Begovic
c0bd6d0882 cmsdk: Clean up proguard flags.
-dontskipnonpubliclibraryclasses and class members covers
  the processing of external libraries which makes the -injars
  option defunct.

  Also keep more android support related classes for when we expand
  the test package for more coverage.

TICKET: CYNGNOS-2189
Change-Id: I37b66acdac86400f41d1f7f1e6610d1d9ca480b3
2016-03-08 09:24:31 -08:00
Gabriele M
3a590c3057 Allow to ignore presentation indicator of outgoing calls [1/3]
With some mobile network operators, the presentation indicator of
outgoing calls is always set to either "unknown" or "restricted".
As consequence, the dialed number doesn't show up in clear in the
call history. Allow to ignore the presentation indicator of outgoing
calls to never hide the dialed numbers.

Change-Id: Ia7b9fef3a929e512d8ecb704204b36e3836a056b
2016-03-07 17:06:40 -08:00
Michael Bestas
a4efc11d74 Automatic translation import
Change-Id: Ie18403b1b7f026c986e327c28050123f52352084
2016-03-04 16:25:29 -08:00
d34d
f2fd836c23 Update stubs to include cyanogenmod.themes package
This patch also adds a new variable stub_packages which is used
when generating docs for public and system api, instead of defining
it twice.

Change-Id: I7d87b94088fca5b053f0447067c239006af72ad9
2016-03-04 16:16:22 -08:00
Adnan Begovic
873364cfca cmsdk: Remove debugging from proguard.
TICKET: CYNGNOS-2189
Change-Id: Ia45f1e31bc23dcffc5a7f9923e268f9ad513df2a
2016-03-04 16:08:15 -08:00
d34d
11a4d480df Add missing WRITE_THEMES from cm_system-current
Change-Id: I607a3813f8b501e1cbd7765fb1df32b1bf1da47d
2016-03-04 15:33:47 -08:00
Adnan Begovic
ba01275cb4 cmsdk: Strip unused cmsdk members for codecoverage.
Change-Id: Id5437b11168d0dfd222cfc4abef2fc03629a17ca
TICKET: CYNGNOS-2189
2016-03-04 15:24:26 -08:00
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