Commit Graph

130 Commits

Author SHA1 Message Date
Steve Kondik
e18f6d8b1c cmsdk: Add initial DisplayMode and AutoContrast support to CMHW
Change-Id: I71f3599c64c03efc4b090ea71e583c942d0c03c2
2015-08-19 05:33:40 -07:00
Steve Kondik
5ee87cbf06 cmsdk: Transplant CMHW into CMSDK
* Moving CMHW out of the framework and into CMSDK.

Change-Id: I0b68b67d059e2310c83e253a9071d886ed6760cb
2015-08-19 05:33:11 -07:00
Steve Kondik
435e2f3b17 profiles: Don't bind the keyguard until ActivityManager is up
Change-Id: I2f349d00c197cf5c4a492fb0892b3edd71479ea4
2015-08-19 05:29:16 -07:00
Michael Bestas
8b5a4d9bed Automatic translation import
Change-Id: Icbef018dbd659b913e2352065d5bfdc2f60d708b
2015-08-17 20:02:39 +03:00
Adnan Begovic
bf57636f45 cmsdk: Rename gradle-sample package namespace.
Change-Id: Iab4e8a84c0ac767671201454656fd6630ba552b2
2015-08-15 01:02:31 -07:00
Adnan Begovic
203a9bc341 cmsdk: Add gradle sample project.
Change-Id: Ic239848fb3be4b7e2b5d6930860900c794624fee
2015-08-15 00:56:24 -07:00
Jon Dinneen
5a518355e6 cmsdk: Fix README. (Add period).
Change-Id: I3974eeefada9836dd9e6b70b6aa3054c3d269f3d
2015-08-14 22:56:18 -07:00
Roman Birg
307941c0fd cmsdk: fix enabling/disabling keyguard
We cannot create a new WindowManagerPolicy every time since the method
isn't called from the main thread every time, which could lead to
exceptions being thrown when trying to create PhoneWindowManager.

Instead of creating a new policy, bind to the keyguard service on bind,
and then pass it to the profile to operate on.

Ref: NIGHTLIES-1640

Change-Id: I3ac58bfa534755eaa73890cc5ddf05987a7d0d8c
Signed-off-by: Roman Birg <roman@cyngn.com>
2015-08-13 10:49:17 -07:00
Tom Powell
f304ef2ac9 Automatic translation import
Change-Id: I589bde7ad1b8f0b4a62f2aa5f08b69b8e510b7b6
2015-08-12 11:02:42 -07:00
Tom Powell
c30c5b5f65 Automatic translation import
Change-Id: I0f93a645538f90e0e191e277de7f7237b3861909
2015-08-11 15:49:33 -07:00
Tom Powell
f47e3de17d Automatic translation import
Change-Id: I7e45e55719b9c0afefa5c31084947b01e204fa35
2015-08-10 10:37:41 -07:00
Adnan Begovic
f4541cdbfc cmsdk: Update readme for maven central deploy.
Change-Id: I8ac9fb19ad97158d1c83c7406df0dd10e0b7ac10
2015-08-07 16:37:24 -07:00
Adnan Begovic
bb1367a594 cmsdk: Update README
Change-Id: Iebc423e92b5357947406bd3b4cc7322bc9a10490
2015-08-06 21:51:12 -07:00
Adnan Begovic
4c28bc5463 cmsdk: Provide quick manual functional telephony api tests.
Change-Id: Idda7db6a4961d45f038176e478418123d8758073
2015-08-06 20:36:32 -07:00
Joao Figueiredo
7f50335f2b cmsdk: Dual SIM support on CM SDK
Signed-off-by: Adnan Begovic <adnan@cyngn.com>
Change-Id: I69b349853b0259582956744d9ddd99a187c10fff
2015-08-06 18:56:12 -07:00
Matt Garnes
7820e6d566 Update APIs for new settings and DeskClock support.
Change-Id: Ia53e60c37d868109b69e0435cdb02ded2a041bba
2015-08-06 16:19:56 -07:00
Matt Garnes
51c39ba2d7 Add API to SettingsManager to set zen mode.
- Add a new permission cyanogenmod.permission.MODIFY_SOUND_SETTINGS.
- Only allowed when the caller holds
  cyanogenmod.permission.MODIFY_SOUND_SETTINGS.
- Allows the user to set zen mode to the off, priority interruptions
  only, or no interruptions modes.
- For each mode change, the end condition will be set to null so that
  the mode remains active indefinitely.

Change-Id: Id465509a8cc8d98953bf8cbe06cacff02b9f75a0
2015-08-06 16:18:50 -07:00
Matt Garnes
9e6ec9e8ba Add AlarmClock support for CM DeskClock manipulation.
- In order to externalize the AlarmClock provider within DeskClock, move
    the database contract, ClockContract, into the SDK so that interested parties can
    reference it.
  - Add CyanogenModAlarmClock to add new utilities for turning existing
    alarms on/off and creating new alarms.

Change-Id: I1f11ccc3988bdef10d721e2038b2c7d69a4ae598
2015-08-06 14:52:57 -07:00
Matt Garnes
0cdb1d513c Add SettingsManager.
Add new APIs for changing a subset of system settings.

Protected by cyanogenmod.permission.MODIFY_NETWORK_SETTINGS:
    - Add ability to toggle airplane mode on/off.
    - Add ability to toggle mobile data on/off.

Protected by android.permission.REBOOT:
    - Add ability to shutdown or reboot the device.

Change-Id: I5e943be11260c58afa664f1702c0ecb4413528fe
2015-08-06 11:35:00 -07:00
Michael Bestas
5b61a21f7f Automatic translation import
Change-Id: Ibc89b531a5f4603643c7d2b43d4610069d7c8768
2015-08-05 11:10:32 -07:00
Adnan Begovic
d7be1ca88d cmsdk: Add sample Profiles application.
Change-Id: I504f6c278055564a711a9bae18065f3d7989ccdd
2015-08-04 17:03:11 -07:00
Adnan Begovic
8481cec918 cmsdk: Expose ProfileTrigger constructor for third parties.
Change-Id: I96dbc4974f49d07df020510be59f6ad23040e448
2015-08-04 17:03:00 -07:00
Adnan Begovic
c2d967c092 cmsdk: Update custom tile sample for shouldCollapsePanel.
Change-Id: I236e732ece98db8b281c9395171a1ce5161f65aa
2015-08-04 14:26:49 -07:00
Adnan Begovic
7034da2d4b cmsdk: Clean up documentation.
Change-Id: I1ffc22376b6241484b2208b0cd1daffc47aa9288
2015-08-03 12:45:36 -07:00
Adnan Begovic
6b7fd5f94f cmsdk: Update current api text files.
Change-Id: Ifd99bba9c25cb97d590049e3b4a5109159ed0019
2015-07-31 16:41:17 -07:00
Adnan Begovic
fa82ebb308 cmsdk: Support deleteIntent and remove tiles when packages change.
Change-Id: I488410296c7579870406ea8fe289cf0b2158ea80
2015-07-31 16:27:15 -07:00
Roman Birg
e84d6568ab Profiles: add LockModeSettings
Splits out the lockmode into its own LockSettings, primarly so it has its
own processOverride() - so it will respect the LockMode.DEFAULT setting.

Ref: CYNGNOS-620
Change-Id: I6183492facebed37133e84d45a6bb2f91f76d5ea
Signed-off-by: Roman Birg <roman@cyngn.com>
Signed-off-by: Adnan Begovic <adnan@cyngn.com>
2015-07-31 14:09:33 -07:00
Adnan Begovic
bd5230afe0 cmsdk: Add support for remote views in expanded styles
Change-Id: Ifa4e7f09df60c65fe476c5b9d332da0cb460e098
2015-07-31 13:06:26 -07:00
Adnan Begovic
25daf555d2 cmsdk: Add functional manual and unit tests for new setIcon
Change-Id: Ia0f83c76429f80a7b7a4216e0cdf7d71844b9b64
2015-07-31 13:05:32 -07:00
Adnan Begovic
d61839701e cmsdk: Create new setIcon method for utilizing bitmaps
Change-Id: I123994af89fe435b9f4bc146056a237f1cecb939
2015-07-31 13:04:41 -07:00
Adnan Begovic
e58c96e2de cmsdk: Make sure we're writing ProfileTrigger values as typed array.
JIRA: NIGHTLIES-1627
Change-Id: Ic04795810762380f9e9632737acd4491c750ff7d
2015-07-31 11:04:13 -07:00
Adnan Begovic
b8614dcabc cmsdk: Fix Profile parceling for custom objects.
Since these objects aren't part of the bootclasspath
  we need to explicitely write them as typed arrays so
  we can unmarshall them on the other side of the IPC
  call correctly. Also change the addProfileGroup method
  to filter out possible null groups.

Change-Id: I501f46895440a174201c4bc413f4d3e6ee16a5ce
2015-07-30 18:09:22 -07:00
Adnan Begovic
e29548da25 cmsdk: Update tests for recent builder changes.
Change-Id: Icb949ff79044c60a4f70ba0ca2432b463c541e78
2015-07-28 11:31:01 -07:00
Adnan Begovic
ea3bc16d21 cmsdk: Make sure we're defauling shouldCollapsePanel to true.
Change-Id: Ibf8c09e54e784a72ddbc56561227d65a33e4d7ab
2015-07-28 11:28:52 -07:00
Adnan Begovic
d2bc093117 cmsdk: Update manual functional tests for shouldCollapsePanel.
Change-Id: I45028879e3cc259549b4ed43b9af15e062b07697
2015-07-27 13:16:38 -07:00
Adnan Begovic
5aa4db2e90 cmsdk: Add unit tests for shouldCollapsePanel
Change-Id: If9997c1be005f962dc628888f1090cb973588bb4
2015-07-27 13:16:38 -07:00
Adnan Begovic
3290540468 cmsdk: Add method for shouldCollapsePanel.
- Allow for disabling of panel collapse when
  handling an onClick or onClickUri event in
  CustomTile.

Change-Id: I73bd513baf0fb8b7db33020a3456430702ccd609
2015-07-27 13:16:38 -07:00
Michael Bestas
ff70bebdc9 Automatic translation import
Change-Id: I6dc975730af07f218b75edb2f0bc4616abc278ab
2015-07-27 20:52:29 +03:00
Adnan Begovic
f68c6c7e98 cmsdk: Hide PARCELABLE_VERSION constant which varies between releases.
Change-Id: I3bdeb9b359e46f0c02e833b23a958d071fc63df5
2015-07-21 15:51:59 -07:00
Adnan Begovic
a276a418f2 cmsdk: Update api text for recent changes.
- Specific parceleable version
  - Update constants for profile extras

Change-Id: Ibfad1c6b2549ff0bdf9ea4f9e580667e30830d63
2015-07-21 11:56:26 -07:00
Adnan Begovic
dbed0bfc68 cmsdk: Add tests for StatusBarPanelCustomTile parceling.
Change-Id: I10058517992cff27de86914c30e41a4b58958723
2015-07-20 22:07:15 -07:00
Adnan Begovic
33a24ad589 cmsdk: Declare a parcelable header.
- This change forces that a parcelable header is written as the
  first data positions in a parcel and defines a means to distinguish
  between old sdk class versions vs new ones to do proper unraveling
  of parcels.

Ticket: BAMBOO-152
Change-Id: I9cc762fe8a51cc527e85be7fe5de57e4613be019
2015-07-20 21:57:43 -07:00
Adnan Begovic
5ff5e10bf0 cmsdk: Make sure we're not including source from internal package.
Change-Id: Ib0d5be9894e7181a3481969eea8bba848f7fdbb8
2015-07-20 11:51:24 -07:00
Michael Bestas
f12419a12c Automatic translation import
Change-Id: Ic3e483b4231fbec721d1e23984164aa37ddb1d1f
2015-07-19 15:50:09 +03:00
Adnan Begovic
75cd945923 cmsdk: Update intent action extras to match new namespace.
Change-Id: Iad255ebc25b43aa582edf2bf496412d54c7216a9
2015-07-17 15:51:49 -07:00
Adnan Begovic
02e761ff28 cmsdk: Fix javadoc comment for CM_VERSION_CODES.
Change-Id: Ib5205051ffeb830df96b4c0fb30a9a0b5a7616ce
2015-07-17 13:55:06 -07:00
Adnan Begovic
ce52da697f cmsdk: Update api files for intent action change.
Change-Id: Ifd81f220a7c9430133446b2d1cc3520f6250790c
2015-07-17 13:54:46 -07:00
Adnan Begovic
af4e7b4cf0 cmsdk: Update PROFILE_PICKER intent action.
Change-Id: I2fc91a642b7947ac49a33232164fcaf88a4b95f4
2015-07-16 17:55:29 -07:00
Adnan Begovic
c67a9eb511 cmsdk: Clean up constant linking for javadoc.
Change-Id: I52c724b3f7caf66d24401c7f50435c42f4692d5a
2015-07-16 16:10:56 -07:00
Adnan Begovic
06fc4498e4 cmsdk: Return UNKNOWN for impossible sdk ints.
Change-Id: I77a44abba0db223b031d6714c4fd8beb03a43cdc
2015-07-16 16:03:36 -07:00