Commit Graph

66 Commits

Author SHA1 Message Date
Danesh M b4ef25ab19 CMSdk : Initial thermal state to STATE_UNKNOWN
Change-Id: I37c7fe7441d7f0f09d1b96be001f046417ffff12
2015-09-24 18:18:56 -07:00
Michael Bestas ce92e371d0 Automatic translation import
Change-Id: I097602ee86881fcbd1d14ac9626f3f3119966df9
2015-09-24 13:47:57 -07:00
Danesh M b4f88faa26 CMSdk : Add thermal monitor service impl
Change-Id: I54c4473a5fdd026958bc6bf170b2e8953aaa64af
2015-09-24 11:44:14 -07:00
Adnan Begovic 3c456656b3 cmsdk: Make sure the ACCESS_APP_SUGGESTIONS perm is not hidden.
Change-Id: Ide2ce8de1db05a9ccbcb948429623cff481eec12
2015-09-14 17:39:51 -07:00
herriojr e78ca4d6fe Added Application Suggestions.
Added in custom Resolver to handle providing suggestions.

Added in Service to handle providing suggestions to custom resolver.

Added in ability to provider suggestions through a Proxy to another
application which must be installed during compile time if one is
to be used. This is a similar implementation to how the Location
Services work.

Change-Id: Id960260596b7bb6485caa1e1d07744e387a4c6e9
2015-09-14 14:29:43 -07:00
Michael Bestas 35df988aa5 Automatic translation import
Change-Id: I00f2ca510c5c449bc18ea5385510389e72efd539
2015-09-11 20:01:23 +03:00
Michael Bestas d39c839727 Update persistent storage permission string
Change-Id: Id32018b2e6db156eefb124b646b08205e0dcd635
2015-09-11 19:23:37 +03:00
Michael Bestas 44b9ae46d2 Correct permission string.
* Be consistent

Change-Id: I5201f1f2e7ddbf3639985036444935aac3835683
2015-09-11 19:01:43 +03:00
Steve Kondik 7cef6f6945 cmsdk: Add persistent properties API
* Add support for reading and writing values from/to persistent
   storage. Requires the MANAGE_PERSISTENT_STORAGE permission, which
   should not be available for general use by applications.

Change-Id: I8a793396d207f23fcda851c172372f2073778eec
2015-09-09 15:43:32 -07:00
Matt Garnes eabd575721 Add Broadcast action and query API for AudioSource.HOTWORD.
- Add ACTION_HOTWORD_INPUT_CHANGED broadcast action and related extras.
- Add getCurrentHotwordPackageName() API to SettingsManager to query the
  current package name of the application that controls the HOTWORD
  input.
- Rename SettingsManager to PartnerInterface.

Change-Id: I5987499cd32908c47a7e8e95d644c483dc32914c
2015-09-08 17:28:20 -07:00
Matt Garnes a458122384 Allow whitelist for MODIFY_NETWORK_SETTINGS permission.
Change-Id: If4e8137bd782b43f5bd6bd08804a5130deb05359
2015-09-03 14:49:03 -07:00
Adnan Begovic bc2ea6b4a7 cmsdk: Update documentation for HAF permission.
Change-Id: I0b02f23335d13a95abef31bd4cbe6fac7c7b5519
2015-09-01 18:00:39 -07:00
Adnan Begovic 7f17704974 cmsdk: Add permissions for ALARMS.
Change-Id: Ibf8f8a51b97d4c90dcddb11f093e64d82b478f44
2015-09-01 17:14:11 -07:00
Adnan Begovic 052391135b cmsdk: Enforce cyanogenmod.permission.MODIFY_PROFILES for profiles.
Change-Id: Id14bfd9b214b4f53960c55d8abab2764f990b1b6
2015-09-01 15:40:58 -07:00
Michael Bestas 6850732052 Automatic translation import
Change-Id: I9dd6196fc0afa491fec0437e5a5d2fbe4d1ce4e2
2015-09-01 13:00:18 -07:00
Yvonne Wong 0eb2999091 Add CMSettingsProvider and CMDatabaseHelper
issue-id: CYNGNOS-828

Change-Id: I01c08c0e432d6a941950a565e5ab6664664e2a7f
2015-08-31 13:52:27 -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 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
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
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 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 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 fa82ebb308 cmsdk: Support deleteIntent and remove tiles when packages change.
Change-Id: I488410296c7579870406ea8fe289cf0b2158ea80
2015-07-31 16:27:15 -07:00
Adnan Begovic d61839701e cmsdk: Create new setIcon method for utilizing bitmaps
Change-Id: I123994af89fe435b9f4bc146056a237f1cecb939
2015-07-31 13:04:41 -07:00
Michael Bestas ff70bebdc9 Automatic translation import
Change-Id: I6dc975730af07f218b75edb2f0bc4616abc278ab
2015-07-27 20:52:29 +03:00
Michael Bestas f12419a12c Automatic translation import
Change-Id: Ic3e483b4231fbec721d1e23984164aa37ddb1d1f
2015-07-19 15:50:09 +03:00
Adnan Begovic c9295fb9cc cmsdk: Clear calling identity when resetAll is called.
Change-Id: Id39eb18165d12a792c141dc44840a122d509dece
2015-07-14 13:42:41 -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
Michael Bestas a7579da079 Automatic translation import
Change-Id: I0c0bee3916767b92b42a616aef41e87d97ed1118
2015-07-13 01:03:20 +03:00
Adnan Begovic cf0bfd333e CMSDK: Begin documentation and testing for profiles.
Change-Id: I06c02f6aed63cfa0483376ae93a3f9a594aff201
2015-07-10 14:40:52 -07:00
Adnan Begovic 125c8993ca CMSDK: Utilize CMSDK_PACKAGE_ID.
Change-Id: I98a995959226c1feaa0a6ece447e557857a84f99
2015-07-10 11:01:28 -07:00
Adnan Begovic 6e46829eb7 CMSDK: Introduce factored out resources from framework.
Change-Id: I4193db99f3f883260354cde98366f94c608f6163
2015-07-09 20:05:29 -07:00
Michael Bestas 1ba6ee279a Automatic translation import
Change-Id: Ib56e96268fbbb444d4cbfab7994a6913b96f1aa2
2015-07-02 00:22:13 +03:00
Adnan Begovic cc979035e7 CMSDK: Make sure to initialize ProfileTriggerHelper.
OSS-JIRA: NIGHTLIES-1480

Change-Id: I48fbb350d96424b593858aca1b2343a79f298b0c
2015-07-01 01:04:29 -07:00
Adnan Begovic 4334b3d969 CMSDK: Introduce Profiles API from frameworks.
Refactor to create a system service in secondary
  CM framework.

Change-Id: Ic69da01d941bbd09271c260429d744f8e79ab7b9
2015-06-25 17:35:48 -07:00
Adnan Begovic 4e081aef67 CMSDK: Update iconography for resource package.
Change-Id: I6259d4dde7af32bb99263227bb93a5dee3a972d0
2015-06-23 19:24:18 -07:00
Michael Bestas c8b2fbaad1 Automatic translation import
Change-Id: I700fa5f8c4c8ec9964dbf78e5fc57718e1db04ef
2015-06-23 01:03:13 +03:00
Jorge Ruesga 635f8f1657 cmsdk: notify new listeners all registered custom tiles
If a new listener is created, then notified all custom tiles that was previously registered

Change-Id: I9e8d9a1fa84d54b00ea7fd8ed400e172f17f06cc
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
2015-06-14 00:50:37 +02:00
Jorge Ruesga 08a3470a78 cmsdk: customtiles: allow load resources from external packages
Saved the context passed to CustomTile.Builder in other to differenciate from the context
used to publish the tile. This allow to load resources (icons) from other packages

Change-Id: I8e40bc59a66f371f3a02f0182e25c6e9eca73c63
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
2015-06-14 00:07:54 +02:00
Michael Bestas 6b9dbb295d Automatic translation import
Change-Id: I11386e177982008fb052829bdcfd9969145ef587
2015-06-13 21:11:36 +03:00
Michael Bestas 853240ece1 Automatic translation import
Change-Id: I3ec69dfc486ec5b10461c3a8e8cf6ce60a24fa0b
2015-06-09 20:36:55 +03:00