Commit Graph

116 Commits

Author SHA1 Message Date
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
Adnan Begovic
6714bfe38b cmsdk: Add documentation for validating API level.
Change-Id: I9a9fd444e6e2682dc59b28b72db7a3d33eca10fa
2015-07-16 13:18:41 -07:00
Adnan Begovic
577fe6a5a0 cmsdk: Add copyright header for ProfileManagerTest.
Change-Id: Iee9094113aa6029202c79be2169a9440c97723f8
2015-07-15 12:56:42 -07:00
Adnan Begovic
d848990b8d cmsdk: Add functional manual test for custom uri publish tile.
Change-Id: I0c4dd084499a06d8e8a9a1045f486655ef1a5c73
2015-07-15 12:56:15 -07:00
Adnan Begovic
32e97d8ace cmsdk: Add unit tests for CustomTile parceling.
Change-Id: Ic558dcdb70a795c9ffa2e56958228eae906b90a6
2015-07-15 12:55:44 -07:00
Adnan Begovic
1f5ae92f44 cmsdk: Add simple profile manager tests.
Change-Id: I73af75d956eeef0a621c713806245b51bacdbc18
2015-07-15 11:50:01 -07:00
Adnan Begovic
662628ae2b cmsdk: Add unit tests for Profile parceling.
Change-Id: I4230b1340ff3cce34defb88e50adb4cf48ab4c7a
2015-07-15 11:23:14 -07:00
Adnan Begovic
acc870807d cmsdk: Add unit tests for versioning with os.Build
Change-Id: I0efbd7a3d23dc3b29b06219ecbf3887f17fe6801
2015-07-15 11:23:13 -07:00
Adnan Begovic
e341fb2618 cmsdk: Fix Profile parceling.
Change-Id: I5cc260e902ef96f209ba55361374f795b81cc592
2015-07-14 18:09:13 -07:00
Adnan Begovic
e953794896 cmsdk: Add CMStatusBarManager and CustomTile.Builder tests.
Change-Id: I9df217cd94d489204f51de220bdf4c0b0b677e15
2015-07-14 15:13:30 -07:00
Adnan Begovic
ca648dc879 cmsdk: Update profiles functional tests.
Change-Id: I815e19ce51efaa973734ac45fc3cd8d28b9f0db0
2015-07-14 13:56:03 -07:00
Adnan Begovic
c9295fb9cc cmsdk: Clear calling identity when resetAll is called.
Change-Id: Id39eb18165d12a792c141dc44840a122d509dece
2015-07-14 13:42:41 -07:00
Adnan Begovic
f9ec3a4da3 cmsdk: Add boysenberry to api text.
Change-Id: Ifaa252536a2b11aca7951d1fcd52a189755f7909
2015-07-13 17:14:30 -07:00
Adnan Begovic
a7fb315791 cmsdk: Name api level 2 as boysenberry.
Change-Id: I4a70218b3c8f43771bfc7050d805244ef96785e6
2015-07-13 17:13:38 -07:00
Jorge Ruesga
63524972a3 cmsdk: fix cannot create handler
Change-Id: I34153f6199d46b7fa9a914efa38552b8d66c0c99
JIRA: NIGHTLIES-1532
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
2015-07-13 16:58:16 -07:00