Commit Graph

644 Commits

Author SHA1 Message Date
Adnan Begovic 88bc9965e9 cmsdk: Fix toast in CMHardwareTest.
Change-Id: Ia565607b9b43ad57923c07830a3373c73060ea5d
2015-09-01 14:59:21 -07:00
Adnan Begovic c0c27a6f94 cmsdk: Add preliminary hardware manager tests.
Change-Id: Ic01898fc9c1ae4d9c3b52ade8737ec6ab8388670
2015-09-01 14:13:03 -07:00
Adnan Begovic 3a502e91b2 cmsdk: Change parceling for DisplayMode.
Change-Id: Ied3521e3fb7c3f198c0b17d82638fa21ad5cd69a
2015-09-01 14:12:21 -07:00
Adnan Begovic c5fa7bcf01 cmsdk: Fix spelling error in CMSettingsProvider makefile.
Change-Id: I21689c41a112995e133d4221a14e65e805b4cc31
2015-09-01 14:11:29 -07:00
BadDaemon 40a46bd09e BugFix: Fix potential NPEs with getService()
Should fix
"java.lang.NullPointerException: Attempt to invoke interface method
'int cyanogenmod.hardware.ICMHardwareService.getSupportedFeatures()'
on a null object reference" and others

Change-Id: Ic5a02fc953376aa746844fd6c2f93b5f48246516
2015-09-01 14:11:01 -07:00
Michael Bestas 6850732052 Automatic translation import
Change-Id: I9dd6196fc0afa491fec0437e5a5d2fbe4d1ce4e2
2015-09-01 13:00:18 -07:00
Jorge Ruesga 95dadd837c cmsdk: allow custom tiles to set the new qstile's sensitive data flag
Requires: topic:hide-qs-tiles

Change-Id: I71c85a00ae5797f1e142073b4d6a3a4c3274007b
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
2015-08-31 16:41:09 -07:00
Yvonne Wong 0eb2999091 Add CMSettingsProvider and CMDatabaseHelper
issue-id: CYNGNOS-828

Change-Id: I01c08c0e432d6a941950a565e5ab6664664e2a7f
2015-08-31 13:52:27 -07:00
Adnan Begovic e949433c08 cmsdk: Build in the Manifest and R classes for the sdk.
Change-Id: I22f9c455a4a9b7bd03018cf1fe82222bc7b36083
2015-08-31 13:27:17 -07:00
Yvonne Wong a632fbcde5 cmsdk: Update cm api text files
Change-Id: I4330eed40d07b98031b76ce345fc8f032e00cf74
2015-08-28 16:18:17 -07:00
Steve Kondik ba4db5ad36 cmhw: Add makeDefault arg to setDisplayMode
* Already supported by the HAL and is necessary to sync state with
   the server side.

Change-Id: I65148d5464dff8dbbee374387a01bcf13a945eb1
2015-08-20 23:58:47 -07:00
Tom Powell 648c91fa92 Automatic translation import
Change-Id: I61b1d47ce1b4409de0e7bd425020c8dcfcd25995
2015-08-20 21:41:37 -07:00
Tom Powell b23c1817b8 Automatic translation import
Change-Id: Idef5fa989b78aeecd9aef65c823ab9fda8bdb919
2015-08-20 20:51:28 -07:00
Tom Powell fd406e9e71 Automatic translation import
Change-Id: I17ad702060fc84c01e78013a05051ee3baf3bd43
2015-08-20 14:35:02 -07:00
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