aboutsummaryrefslogtreecommitdiffstats
path: root/sdk
Commit message (Collapse)AuthorAgeFilesLines
* Add a proper description for CM_SETUP_WIZARD_COMPLETED deprecationZhao Wei Liew2017-02-191-1/+2
| | | | Change-Id: I7bf1ee5644b178173941803fccafbbd501289acd
* cmsdk: utils: Introduce PackageManagerUtils classMichael W2017-02-191-0/+117
| | | | | | Partially based off the PackageManagerHelper class in Launcher3. Change-Id: I0ed2ea210cb52ac4bd94c7bc5320c24e6d423279
* cmsdk: Deprecate CM_SETUP_WIZARD_COMPLETEDPaul Keith2017-02-181-0/+2
| | | | | Change-Id: I1ddf79d8308def2056fa509b64a2ec4af5c39f31 Signed-off-by: Paul Keith <javelinanddart@aidenswann.com>
* Revert "You are now a developer!"Zhao Wei Liew2017-02-111-16/+2
| | | | | | | | We no longer have an alternative drawable. This reverts commit 2059ea69085224408d5355c98338f5243ac82ff3. Change-Id: I4ea4e81ae7c8b583fa107a0f32c3642f567bfb2d
* cmsdk: cmhw: Deprecate TAP_TO_WAKE featureZhao Wei Liew2017-01-241-1/+3
| | | | | | All devices should use the native implementation now. Change-Id: Ic29472ba28569536a8556f61229a8a8fe783354a
* cmsdk: Deprecate STATS_COLLECTION_REPORTED CMSettingZhao Wei Liew2016-12-311-0/+2
| | | | | | | | The functionality that uses this setting has been removed. This setting should no longer be used. Change-Id: Iff887a711a9f8cac18cf9938280ddc99a5787615 (cherry picked from commit 79cced08e745f7cc1d09d05f450335e75f32de35)
* Add option definition for vibration during zen mode.Danny Baumann2016-10-171-0/+14
| | | | Change-Id: I7398adbaa691bc6ec50b56328190a317bee805eb
* cmsdk: Remove duplicate legacy system elementZhao Wei Liew2016-10-081-1/+0
| | | | | | This is already in the array several lines above. Change-Id: I0e046902dc1bf01ea445587e1f8a4e7f8520051c
* Themes: Introduce theme mixes into ThemesContractd34d2016-10-071-0/+93
| | | | | Change-Id: I6341bada8e3ef674b272621f90bc9beb28767a59 TICKET: CYNGNOS-2121
* cmsdk: fix visible check in hasChangedRoman Birg2016-08-301-3/+3
| | | | | | | | | Previously the visible check was comparing the newly set value to itself. Now we cache the old value, set new value, and can do a proper comparison. Change-Id: Idbe921bfe9e311551d6bfbad432c647c129f376e Signed-off-by: Roman Birg <roman@cyngn.com>
* You are now a developer!Michael Bestas2016-08-201-2/+16
| | | | | | | | * Show alternative brand logo in dexopt screen when developer options are enabled * Drawable by Asher Change-Id: Ie100d7c3e9c96a7ad64c4cd65195d6f531090140
* cmsdk: Finalize api level 6 (Fig).Adnan Begovic2016-08-171-1/+16
| | | | Change-Id: I529806e5526faf7d23689354a6cc958d9989b95c
* CMSDK : Fix generateAlertColorFromDrawable for non BitmapDrawableDanesh M2016-08-141-2/+7
| | | | | | | | | In the case that the bitmap being passed in was not a bitmap drawable, we were not retaining any of the attributes from the original drawable. This patch ensures we ask that drawable to draw on the canvas/bitmap so we can use that information. Also add tests around it. Change-Id: I3eefba6e6624fe0bed4965ddf9029320c40f7420
* [1/2] cmsdk: cm custom boot dexopt UIAlexander Martinz2016-08-101-0/+173
| | | | | | | | * Pass app info and number of installed packages to boot message UI * Ui by Asher and Joey, based on Alexander's previous work Change-Id: I9298d7e2b85a703921abf62f8b91157e6f88803b Signed-off-by: Joey Rizzoli <joey@cyanogenmoditalia.it>
* livedisplay: Float-to-string conversions considered harmfulSteve Kondik2016-08-101-6/+7
| | | | | | | | * Force US locale when doing internal flattening of HSIC objects into strings. This would crash in the validator if the user's local uses commands instead of dots to format floats. Change-Id: I08f44238a486308a483205b97632114d2f7a77f1
* cmsdk/livedisplay: Add support for picture adjustmentSteve Kondik2016-08-089-5/+429
| | | | | | * Allows adjustment of hue, saturation, intensity, and contrast. Change-Id: Icf8ff6200a07b68e09dcd7f140a82e57b53944f7
* livedisplay: Add support for direct color balance controlSteve Kondik2016-07-206-4/+164
| | | | | | | | | | | | | | | * We currently use the DisplayColorCalibration API for setting display temperature which makes a lot of guesses about what temperature the display really is. Some devices will support the new ColorBalance API (via QDCM or other mechanism), which offers a calibrated alternative. Add support for this, which will supercede DCC if available. * Additionally, define the available color temperature range as a set of overlayable values so this can be specified per-device. This range will be mapped to balance values using the power curve calculations in the new MathUtils class. Change-Id: I99608c09807b747d962680293c7b0cee8d669003
* cmsdk: Prevent NPE in CMWeatherManagerLuis Vidal2016-06-171-0/+6
| | | | | | | | Verify that we have an instance of to the weather manager service before we try to register/unregister a listener or query the current weather provider. Change-Id: Iec09073615f85626c6f64e4a55758aae52231ca8
* ExtViews: Catch SecurityException due to bad interfaced34d2016-06-161-2/+2
| | | | | | | When interfaces get obfucsated, bad things happen. Change-Id: I9b0829853da536f4047dab8223c97f993a399645 TICKET: CYNGNOS-2916
* utils: Introduce FileUtils classMichael Bestas2016-06-161-0/+115
| | | | Change-Id: Icbfa068fa0db2ae28436063072dd4b576f1b2be1
* cmsdk: fixup javadoc in CMHardwareManagerScott Mertz2016-06-141-3/+3
| | | | Change-Id: I114e57c1b907de3cc7cdaff746b0391cef4b8eb0
* Keyguard: Get your weather on... the lock screen [2/3]d34d2016-06-091-0/+6
| | | | Change-Id: I1475cdd450021ef1a71c6c888319689e3b0507a3
* Ensures ProfileTrustAgent properly grants/revokes trust [2/2]Luis Vidal2016-06-081-0/+23
| | | | | | | | | | | | Notifies the ProfileTrustAgent when a WiFi/BT event was triggered even if no new profile was selected so the trust agent can grant/revoke trust Filters out the multiple network state change notifications to make sure we notify the trust agent only when the event that the profile is tracking actually happened Change-Id: I047861a8b145762fff24568e341373a89ee01de9 TICKET: CYNGNOS-2719
* CMSettingsProvider: Add coverage for CMSettings' interfaces.Adnan Begovic2016-06-071-1/+8
| | | | | TICKET: CYNGNOS-3016 Change-Id: I55b762b51ad98194c235b83c36e3a6683c33ac4e
* cmsdk: Fix redundant case in themes contract's componentToImageColName.Adnan Begovic2016-06-071-2/+2
| | | | | TICKET: CYNGNOS-3015 Change-Id: I1daf7cf7b5b2119ab34e69b339644a1fb3da16dc
* CMSettings: fix lock screen rotation toggle [3/3]Dan Pasanen2016-06-031-0/+11
| | | | Change-Id: I2940663c7476b0df9b3553a480fa33ea4f18a5bc
* cmsdk: Create CMSystemServer to handle our platform init.Adnan Begovic2016-05-3110-10/+11
| | | | Change-Id: I7b62978e2a284a3a1ec1ffc1d8c72545d7b0c939
* Expose lock screen blurring as a setting [1/2]d34d2016-05-161-0/+7
| | | | | | | | | This will provide control over blurring since the current implementation assumes it is always on provided the device config specifies it supports blur. Change-Id: I71e318af12b5212133c6c5b02bed050eb67757d9 TICKET: CYNGNOS-2610
* CMSettings : Move force_show_navbar to globalDanesh M2016-05-131-0/+29
| | | | | | | | | Keep feature inline with 12.1, only allow owner to control the feature and mirror across users. Also add additional checks for moved settings. Change-Id: Ida11b71bc5ce9463628f8c5d76e59902d47d59bb
* cmsdk: Pass the process name and pid for launch boostsSteve Kondik2016-05-061-4/+4
| | | | | | | | * We need this for vendor perf tools. * This also adds a NativeHelper class which loads the JNI library on-demand, since we don't have an entry point. Change-Id: If76ad8f952e86366978ae9cf9d1f107febccc28b
* QS: Make themes a first class citizen againd34d2016-05-052-0/+3
| | | | | Change-Id: Icd397a2ddd730ae525233b66288fde9a6798c221 TICKET: CYNGNOS-2670
* cmsdk: add persisted key value for status bar tilesRoman Birg2016-05-041-0/+5
| | | | | | | | | | | The persisted one simply contains the user, the publishing package, and the tile tag - items which can be persisted across reboots to restore the tile's properties on boot properly. Ticket: CYNGNOS-2530 Change-Id: If770557482e81ab0dd0d16c3ac8be0b2b51e653a Signed-off-by: Roman Birg <roman@cyngn.com>
* cmsdk: @hide protected variableRoman Birg2016-05-021-0/+1
| | | | | | | Ticket: CYNGNOS-2480 Change-Id: I0d104b235db59af008dee560763d6a753e3c8b79 Signed-off-by: Roman Birg <roman@cyngn.com>
* CMSettings: intercept Settings calls to DEV_FORCE_SHOW_NAVBARRoman Birg2016-05-021-2/+29
| | | | | | | | | | | Because DEV_FORCE_SHOW_NAVBAR has lived in Settings.System, Settings.Secure, and now in CMSettings.Secure, we need to return the proper value no matter which place an app might query. Ticket: CYNGNOS-2480 Change-Id: Ie84df9763aa3714ec4ce4d033dc73be4de3f1f00 Signed-off-by: Roman Birg <roman@cyngn.com>
* cmsdk: Fix PerformanceManagerTest expectations.Adnan Begovic2016-05-021-0/+11
| | | | | | | | | | | Since the API for PerformanceManager returns the number of profiles supported we can assume what the profiles are since the HAL provides them in an ordered manner. Thus, iterate through the size of the number of profiles and verify each one that's possible. Change-Id: I87f6d1a847c849bd9e544c1e89a666726c61fe83 TICKET: CYNGNOS-2603
* cmsdk: include our own consumer proguard rulesJorge Ruesga2016-05-021-0/+3
| | | | | | | | | | | Include a proguard file with can be consumed by the latest gradle plugin to merge this ones rules without the rules of the app linked to. This way devs doesn't need to declare (in a recent version of the gradle plugin) -dontwarn and -dontnote for cyanogenmod.library when linked to it, because proguard crashes the build because it cannot access to cm system private classes. Change-Id: I7c94a9119db744b0029b4d9a8aa782adcbd47b93 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* cmsdk: set minsdk to api level 4Jorge Ruesga2016-05-021-2/+3
| | | | | | | | In other case it will force to declare READ_PHONE_STATUS permission to apps linked to Change-Id: I384837c2bda2fe775dafd33b6f7690ca1db465d7 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* cmsdk: Add CMAudioManagerSteve Kondik2016-04-275-0/+409
| | | | | | | | | | | | | * This is a rework of the session callback API which previously lived in the framework due to JNI usage. This has been split out and cleaned up for CMSDK. * The JNI library lives on the server side, and the app-level callback has been changed to a protected broadcast. This allows us to wake up registered services when these events occur. * Additionally, we support listing all active audio sessions. * Also brings some JNI love/hate over to CMSDK. Change-Id: I31c293943474419e3db088bb7ffab75f7440ac0f
* cmsdk: Fix crash when getting LiveDisplay configSteve Kondik2016-04-261-1/+2
| | | | | | * If capabilities is empty, BitSet.toLongArray returns an empty array. Change-Id: I17476438995b581050feda346d0348228519ff44
* CMSettings: add CM_SETUP_WIZARD_COMPLETED keyRoman Birg2016-04-221-0/+8
| | | | | | | | | | | | We need to store the state of _our_ setup wizard. To not break existing devices' provisioning, copy the current state of the global provisioned flag to the new key value. Ticket: CYNGNOS-2431 Change-Id: I3d88361edc126788f42b28efd11f3c7598117138 Signed-off-by: Roman Birg <roman@cyngn.com>
* Weather API: Honor the values set for today's low/high tempLuis Vidal2016-04-181-0/+2
| | | | | | | | | The vales passed to setTodaysHigh() and setTodaysLow() have no effect. This patch fixes that problem. The values provided in the Builder helper class will be actually set when the WeatherInfo object is built Change-Id: I5f47b16a56fd577349d3b3d45ea7a753262f90ea TICKET: CYNGNOS-2484
* cmsdk: Fix definition of live display tile, as its now dynamic.Adnan Begovic2016-04-181-2/+2
| | | | Change-Id: I468e42b91996aad348fa0a1c85e0bc66597cf440
* livedisplay: Fix validator for the nudge counterSteve Kondik2016-04-151-1/+1
| | | | | | | | * This is a range counter starting from -3 (initial value) which counts upwards once a day. It's finally set to 1 when either the feature is used or we gave up with the nudges. Change-Id: Ia19b381aa35c598b31b46071479ae590dc8d9ffd
* livedisplay: Don't explode if no modes are availableSteve Kondik2016-04-151-0/+13
| | | | | | | * Don't create the mode observer or try to publish tiles if none of the adaptive modes are supported. Change-Id: Iee6fe8131b0614e10f35b5a03d65fb44c71c0da9
* livedisplay: Fix error checks when fetching configSteve Kondik2016-04-141-2/+5
| | | | Change-Id: I8ba43f32b2c45f626401f3cbc0050bc0593748c8
* Remove public default constructor from CMWeatherManager.RequestStatus [1/2]Luis Vidal2016-04-131-4/+7
| | | | | | | | | | RequestStatus holds only final constants and should not provide public constructors. This class also should be final. This patch also fix minor typos on RequestStatus javadoc Change-Id: I0deb1d6a9b23eed83451dec352bb4c410e2378d6 TICKET: CYNGNOS-2441
* ExtViews: Pass input events to underlying Windowd34d2016-04-131-5/+5
| | | | | Change-Id: If4303a49dd0c637e9336dcf454e338b883906925 TICKET: CYNGNOS-2442
* Weather API: Delegate the responsability of rejecting back to back requests ↵Luis Vidal2016-04-133-90/+120
| | | | | | | | | | | | | | | | | | | | | | | | [1/2] The Weather Manager Service should not impose rules regarding how a weather provide service wants to react to back to back weather update requests, nor impose the time a caller should wait before a new request can be submitted. These constraints vary between weather services, so it's up the each implementation to enforce these constraints. With this patch, the Weather manager service will pass the requests as they come from the requester and it will be up to the active service provider decide whether process or reject the request. Changes to API: - Moved the request statuses to new inner class RequestStatus in CMWeatherManager - Pass status arg to onLookupCityRequestCompleted() - Added reject(int) method to ServiceRequest Change-Id: I3512490688255e25395e955d506fe42ed52f8fe0 TICKET: CYNGNOS-2430
* Use temperature unit from CMSettings on weather update requestsLuis Vidal2016-04-131-0/+12
| | | | | | | | Make sure the the weather update requests are using the temperature unit set by the user in the weather settings Change-Id: Iac3a891b5afbcf36a87386f828b40bcbd0e1de02 TICKET: CYNGNOS-2429
* Add WEATHER_TEMPERATURE_UNIT to CMSettings [1/2]Luis Vidal2016-04-131-0/+8
| | | | | | | | | | | | | Introduce WEATHER_TEMPERATURE_UNIT. This setting will be used to store the temperature unit in which the weather data will be reported. Users will be able to set this value in the weather settings menu. Each weather service provider might choose to provide the user with a way to overlay this value (for example via the settings activity that each service provider can define) Change-Id: Ib6e47c9790aba02e6c29bd7f783730efda9177f3 TICKET:CYNGNOS-2426