aboutsummaryrefslogtreecommitdiffstats
path: root/cm/lib
Commit message (Collapse)AuthorAgeFilesLines
* cmsdk: add invalid input checking for persistent storage APIsScott Mertz2016-01-221-0/+14
| | | | | | | | | | | Some of this exists in the PersistentStorage implementation, but it was never formally documented in the APIs. Inherit the cmhw implementation error checking & move it into the service. Add tests to validate the new restrictions & a test that was previously failing. Change-Id: I3ecda29fdd28bbc4e6d8ccce7511c4644065ea46
* cmsdk: Add example service test.Adnan Begovic2016-01-051-7/+0
| | | | Change-Id: I52972bc4d32505ba7fd2f7278efdb9441c39b82a
* CMSDK: add duration for priority/quiet modeJanet Sun2015-12-231-10/+39
| | | | | | | | | | | | | Add setZenModeWithDuration API call with long durationMills Use NotificationManager.setZenMode with Condition URI specifying end time. Update settings/CMPartnerInterfaceTest TODO: unit test to be added in: tests/src/org/cyanogenmod/tests/settings/unit. FOR-156 Change-Id: I18dd661fc07419a7019b6372e81df430a70f86e9
* cmsdk: Fixup stub generation.Adnan Begovic2015-12-225-2/+5
| | | | Change-Id: I1b033ff646dbbdafa5d0efcaf110b76ca48980e3
* ProfileManagerService: fix broadcasting crashRoman Birg2015-12-221-4/+4
| | | | | | Ref: CYNGNOS-1478 Change-Id: If4952c4513063ea4b2cf2105514183731175ad72 Signed-off-by: Roman Birg <roman@cyngn.com>
* Profiles: add isEnabled(); send state changesRoman Birg2015-12-211-1/+69
| | | | | | Ref: CYNGNOS-1461 Change-Id: Idee9417a2f0b181c8d15cd763859c0a0e581dce6 Signed-off-by: Roman Birg <roman@cyngn.com>
* cmsdk: Add CMHW method to check if SRE is self managedSteve Kondik2015-12-091-0/+16
| | | | Change-Id: Ia5f644ce0b964a965afa47ea08016167c8b20620
* cmsdk: Reimplement helper methods for secondary telephony service.Adnan Begovic2015-11-291-12/+14
| | | | Change-Id: If126936f788d398c53dca21297cd7d69f9d933b8
* cmsdk: Re-enable multiple profiles functions.Adnan Begovic2015-11-291-2/+2
| | | | Change-Id: I1db0cba6cf107926a25a8e45952813d3c21eb470
* perf: Add PerformanceManager.getProfileHasAppProfiles APIKhalid Zubair2015-11-251-2/+19
| | | | | | | Add an API to query PerformanceManager if a perf profile supports app-profiles. Change-Id: I51d958343624ab085de0352ac182cb05308e0da4
* perf: fix perf profile change issuesKhalid Zubair2015-11-251-42/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Rework profile handling to address the following issues: - When app specific profiles are enabled, the perf service silently changes the profile to BALANCED when the user revisits settings. The service and Settings UI still show whatever pref the user had selected. The user is now unable to change the setting to BALANCED. The perf service ignores the change because the current profile (selected by app profiles) did not change. - When low power mode (battery saver) activates or deactivates, the user selected profile is overwritten. All runtime decisions regarding active profiles have been consolidated in to a single applyProfile() function that handles low power mode, user and app-specific profile rules. App specific profiles are applied only if the power profile is BALANCED. setPowerProfileInternal has been changed to save the user pref even if the active pref is unchanged. Fixes SAMBAR-1088 Change-Id: Iac658959130f08452f5e41ce3339fe4603ac474e
* perf: Remove logspamSteve Kondik2015-11-041-1/+0
| | | | Change-Id: Id7c54851950eedc77ab6bc085fe515b6e7aaaac5
* cmsdk: Refactor the PerformanceManagerSteve Kondik2015-11-031-0/+314
| | | | | | | * Remove all code and configuration into CMSDK. * Deprecate the properties-based API Change-Id: Ib14ce5b8623cb368e6b545d1f82bc9c58580e13b
* cmsdk: Point at cmsettings for system profiles.Adnan Begovic2015-10-261-4/+5
| | | | Change-Id: I61497111f1bf1873554c4185b4424662dcb8c7e5
* cmsdk: Temporary build fixesAdnan Begovic2015-10-093-13/+18
| | | | Change-Id: I18a1aa9ade95de63fe18eaaeca388b118c8ffe8c
* cmsdk: mContext is private with SystemService now.Adnan Begovic2015-10-093-0/+6
| | | | | | YOU MEAN WE HAVE SANE ABSTRACTION NOW?! Change-Id: I5b37b656b2002013b368b43153927b796ec46e6a
* CMSdk : Initial thermal state to STATE_UNKNOWNDanesh M2015-09-241-1/+1
| | | | Change-Id: I37c7fe7441d7f0f09d1b96be001f046417ffff12
* CMSdk : Add thermal monitor service implDanesh M2015-09-241-1/+63
| | | | Change-Id: I54c4473a5fdd026958bc6bf170b2e8953aaa64af
* Added Application Suggestions.herriojr2015-09-143-0/+210
| | | | | | | | | | | | | 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
* cmsdk: Add persistent properties APISteve Kondik2015-09-091-0/+36
| | | | | | | | * 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
* Add Broadcast action and query API for AudioSource.HOTWORD.Matt Garnes2015-09-081-11/+40
| | | | | | | | | | - 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
* cmsdk: Enforce cyanogenmod.permission.MODIFY_PROFILES for profiles.Adnan Begovic2015-09-011-3/+2
| | | | Change-Id: Id14bfd9b214b4f53960c55d8abab2764f990b1b6
* cmhw: Add makeDefault arg to setDisplayModeSteve Kondik2015-08-201-5/+5
| | | | | | | * Already supported by the HAL and is necessary to sync state with the server side. Change-Id: I65148d5464dff8dbbee374387a01bcf13a945eb1
* cmsdk: Add initial DisplayMode and AutoContrast support to CMHWSteve Kondik2015-08-191-0/+76
| | | | Change-Id: I71f3599c64c03efc4b090ea71e583c942d0c03c2
* cmsdk: Transplant CMHW into CMSDKSteve Kondik2015-08-191-0/+452
| | | | | | * Moving CMHW out of the framework and into CMSDK. Change-Id: I0b68b67d059e2310c83e253a9071d886ed6760cb
* profiles: Don't bind the keyguard until ActivityManager is upSteve Kondik2015-08-191-1/+7
| | | | Change-Id: I2f349d00c197cf5c4a492fb0892b3edd71479ea4
* cmsdk: fix enabling/disabling keyguardRoman Birg2015-08-131-1/+43
| | | | | | | | | | | | | | 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>
* cmsdk: Dual SIM support on CM SDKJoao Figueiredo2015-08-061-0/+340
| | | | | Signed-off-by: Adnan Begovic <adnan@cyngn.com> Change-Id: I69b349853b0259582956744d9ddd99a187c10fff
* Add API to SettingsManager to set zen mode.Matt Garnes2015-08-061-0/+57
| | | | | | | | | | | | - 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
* Add SettingsManager.Matt Garnes2015-08-061-0/+158
| | | | | | | | | | | | | 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
* cmsdk: Support deleteIntent and remove tiles when packages change.Adnan Begovic2015-07-311-0/+164
| | | | Change-Id: I488410296c7579870406ea8fe289cf0b2158ea80
* cmsdk: Create new setIcon method for utilizing bitmapsAdnan Begovic2015-07-311-2/+2
| | | | Change-Id: I123994af89fe435b9f4bc146056a237f1cecb939
* cmsdk: Clear calling identity when resetAll is called.Adnan Begovic2015-07-141-0/+2
| | | | Change-Id: Id39eb18165d12a792c141dc44840a122d509dece
* cmsdk: fix cannot create handlerJorge Ruesga2015-07-132-4/+14
| | | | | | Change-Id: I34153f6199d46b7fa9a914efa38552b8d66c0c99 JIRA: NIGHTLIES-1532 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* CMSDK: Begin documentation and testing for profiles.Adnan Begovic2015-07-101-1/+1
| | | | Change-Id: I06c02f6aed63cfa0483376ae93a3f9a594aff201
* CMSDK: Introduce factored out resources from framework.Adnan Begovic2015-07-091-3/+3
| | | | Change-Id: I4193db99f3f883260354cde98366f94c608f6163
* CMSDK: Make sure to initialize ProfileTriggerHelper.Adnan Begovic2015-07-012-4/+161
| | | | | | OSS-JIRA: NIGHTLIES-1480 Change-Id: I48fbb350d96424b593858aca1b2343a79f298b0c
* CMSDK: Introduce Profiles API from frameworks.Adnan Begovic2015-06-251-0/+616
| | | | | | | Refactor to create a system service in secondary CM framework. Change-Id: Ic69da01d941bbd09271c260429d744f8e79ab7b9
* cmsdk: notify new listeners all registered custom tilesJorge Ruesga2015-06-141-0/+11
| | | | | | | 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>
* cmsdk: customtiles: allow load resources from external packagesJorge Ruesga2015-06-141-3/+8
| | | | | | | | 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>
* CMSDK: Remove dead code.Adnan Begovic2015-05-181-3/+0
| | | | Change-Id: If08729e64271ed72545eddc8da3147f23c6f2d75
* CMSDK: Don't share a namespace with the library.Adnan Begovic2015-05-131-3/+3
| | | | | | | | | | | Otherwise PackageParser will skip you. W/ResourceType( 3077): ResTable_typeSpec entry count inconsistent: given 6, previously 1003 I/PackageManager( 3077): /system/framework/org.cyanogenmod.platform-res.apk changed; collecting certs W/PackageManager( 3077): Failed to parse /system/framework/org.cyanogenmod.platform-res.apk: Application package org.cyanogenmod.platform already installed. Skipping duplicate. Change-Id: Iddea111f4c9bbe69939266ce5c6902d176407b14
* Fix package name.Danny Baumann2015-05-131-3/+4
| | | | | | Package names must contain at least one period if they're not 'android'. Change-Id: I43658b30837efcaf099e8c02454154e9a57e1a91
* CMSDK: Make sure we're binding the correct permission for enforcement.Adnan Begovic2015-05-131-1/+1
| | | | Change-Id: Ie58b11cfa972f449bfc20b05f4b52b7cd28ab7d5
* CMSDK: Create cyanogenmod platform resource package.Adnan Begovic2015-05-121-3/+3
| | | | | | | | | | | org.cyanogenmod.platform-res provides resources that, if public, are globally accessible. This allows us to declare public and internal permissions as well as reference permissions declared by the android framework core Change-Id: Ia7d541f4b403585f7479ecd87895987b8471005b
* CMSDK: Update implementation for permission declarations.Adnan Begovic2015-04-301-8/+8
| | | | Change-Id: I9cca55f693ef3f0363bac2f5c8ae1db07adc4f34
* CMSDK: Refactor compile, prepare for integration tests.Adnan Begovic2015-04-303-0/+7
| | | | | | Also don't build CMPlatformTests unless explicitely called. Change-Id: I3fd8f884d8815eab9987077766c0ff2fe3f98b4d
* CMSDK: Create means of removing tiles via listener interface.Adnan Begovic2015-04-291-2/+31
| | | | Change-Id: I8934fe5c82963a3aba38ce5eec6e59e50a820d17
* CMSDK: Create Quick Settings Tile API.Adnan Begovic2015-04-262-0/+1111
Create a simple CustomTile object with builder which lets a 3rd party application publish a quick settings tile to the status bar panel. An example CustomTile build: CustomTile customTile = new CustomTile.Builder(mContext) .setLabel("custom label") .setContentDescription("custom description") .setOnClickIntent(pendingIntent) .setOnClickUri(Uri.parse("custom uri")) .setIcon(R.drawable.ic_launcher) .build(); Which can be published to the status bar panel via CMStatusBarManager#publishTile. The CustomTile contains a click intent and click uri which can be sent or broadcasted when the CustomQSTile's handleClick is fired. This implementation closely mirrors that of NotificationManager#notify for notifications. In that each CMStatusBarManager#publishTile can have an appended id which can be kept by the 3rd party application to either update the tile with, or to remove the tile via CMStatusBarManager#removeTile. Change-Id: I4b8a50e4e53ef2ececc9c7fc9c8d0ec6acfd0c0e