aboutsummaryrefslogtreecommitdiffstats
path: root/cm
Commit message (Collapse)AuthorAgeFilesLines
...
* cmsdk: Refactoring LiveDisplaySteve Kondik2016-04-1310-1/+1884
| | | | | | | | | * Moving LiveDisplay to CMSDK! * Completely redesigned the feature for future expansion. * No new features in this patch, but a proper API is being designed. Change-Id: Ic8f55678f9141bf3386b2a1cf2fd1e8b3916c278
* Themes: Clear out bootanimation if pkgName emptyd34d2016-04-121-1/+1
| | | | | | | | An empty string for the package name implies the given component should be cleared out, so make sure updateBootAnim respects that. Change-Id: I07c7fc64970546c2d73a610d9c0b71f1e757657d TICKET: CRACKLING-1043
* Fix nomenclature for RequestInfo types [1/2]Luis Vidal2016-04-081-4/+4
| | | | | | | | | | - Renamed TYPE_GEO_LOCATION_REQ to TYPE_WEATHER_BY_GEO_LOCATION_REQ and TYPE_WEATHER_LOCATION_REQ to TYPE_WEATHER_BY_WEATHER_LCATION_REQ - Prevent null argument on setter methods. Documentation updated to warn user of IllegalArgumentException if null is passed Change-Id: I6ba8fb7fb3a10d8c964414b58e00d9ce77a74e84 TICKET: CYNGNOS-2377
* Refactor WeatherInfo classLuis Vidal2016-04-081-5/+6
| | | | | | | | | | | | | | | | | | | | | - Builder constructor takes now 3 args: city name, temp and temp unit. This is the minimun data that a weather service should provide when a weather update request is processed. - Float members have been changed to double. Setter/getter methods updated. - New setter/getter methods have been added to set current day high and low temp. Forecast list should be used only to provide weather forecast for upcoming days (this has been clearly documented). WeatherContract was updated to include these 2 new columns - Added javadoc to all public methods - Timestamp is not longer required in constructor. A new method setTimestamp has been added Change-Id: Ia1edcfef0e2268f3881fed076c6ad74a81ca7334 TICKET: CYNGNOS-2365 TICKET: CYNGNOS-2382 TICKET: CYNGNOS-2356 TICKET: CYNGNOS-2360
* LLS: Fix (possible) NPEMichael W2016-04-081-6/+8
| | | | | | | | | | | | getBroadcastItem is only valid if beginBroadcast is called RemoteCallbackList.java: "Retrieve an item in the active broadcast that was previously started * with {@link #beginBroadcast}" Fix logic to do so TICKET: CYNGNOS-2397 Change-Id: Iec787a088ae3999e5024776ad50143249c434084
* Add API to cancel an active weather requestLuis Vidal2016-04-071-0/+15
| | | | | | | | | | | | | | | | Add new API cancelRequest to CMWeatherManager. This will allow clients to cancel a request that was previuosly submitted to the weather service. As part of this change, requestWeatherUpdate(weatherLocation), requestWeatherUpdate(Location) and lookupCity(cityName) will now return the RequestInfo object created if the request was successfully submitted to the weather manager service TICKET: CYNGNOS-2383 TICKET: CYNGNOS-2385 Change-Id: Ic122f91e0ea8a24d81dbed48741ef1e33567b56c
* Reset timer when a new weather service provider is selectedLuis Vidal2016-04-061-0/+1
| | | | | | | | If a new weather service provider is selected, reset the timer so the newly selected provider can process the weather update requests Change-Id: I2d16000b0eb987c6d0985b465af3259a3619d8ef TICKET: CYNGNOS-2364
* Automatic translation importMichael Bestas2016-04-0694-22/+1363
| | | | Change-Id: I14df405ee407ce9b9b32507255ab8a7fa57ef40a
* cmsdk: Improve data usage stringsMichael Bestas2016-04-041-4/+4
| | | | Change-Id: Iea97226f3a1a7bfc1d79e90f046e5a634d9fedf7
* Added READ_DATAUSAGE and WRITE_DATAUSAGE permissionsgkipnis2016-04-012-0/+22
| | | | | | These permissions are used to control access to the DataUsageProvider Change-Id: I3c0df3900c964d274081fe3bd9038705334819c8
* cmsdk: Minor weather provider string updatesMichael Bestas2016-04-011-5/+5
| | | | Change-Id: Ic565daa23ad520484b1c5b802ab6f8d83f6653a8
* Add Weather Content Provider [4/5]Luis Vidal2016-03-314-1/+582
| | | | | | | | | | | | | Introduce CM Weather Manager and Weather Provider Services API. The CM Weather Manager can be used by apps to request weather updates. The Weather Provider Services API allows a third party developer to implement a weather service to process weather update requests and update the CM Weather Content Provider data which can be consumed by any other app holding the required permission. Change-Id: Idcc80712ba92715109d3577d120f7fea85d6c996
* LLS: Don't build LlsInfo when defComponent is emptyd34d2016-03-311-1/+2
| | | | | | | | Unflattening an empty string will result in a null ComponentName which will cause an IllegalArgumentException when building the LiveLockScreenInfo. Change-Id: I0bafddb48a47ef67d9833cd12bff7eb34369425e
* LLS: Add live lock screen service [1/4]d34d2016-03-294-0/+451
| | | | | | | | The live lock screen service is resposonsible for deciding what LLS should be displayed at any given time. Live lock screens can be swapped out using a priority based system. Change-Id: Ifba73e839b749fe78a9e4ee347dd20eea6bf0a22
* Automatic translation importMichael Bestas2016-03-2813-62/+159
| | | | Change-Id: I2c8633db25b85efc83b1539c8c20b9146fb220d5
* Fix: "cmsdk: Mandate partner feature xml's for service implementation."Michael Bestas2016-03-281-1/+1
| | | | | | | * CMContextConstants.Features.PERFORMANCE was mistakely used instead of CMContextConstants.Features.PARTNER Change-Id: I4582b2faac23b0a3d34a5c6396cffa56c6177556
* cmsdk: Mandate partner feature xml's for service implementation.Adnan Begovic2016-03-251-1/+7
| | | | | | | | | | | | | | The feature xml plays two roles: 1) To allow sdk interface (constructor) to throw when system service is unavailable. This allows for clearer platform development debugging. 2) To allow for simpler disambiguation of what services to instrument in a modular environment. Change-Id: Ic980225df9c115e97f7147cf043cf92bbb225f01 TICKET: CYNGNOS-2293
* cmsdk: Mandate performance feature xml's for service implementation.Adnan Begovic2016-03-251-1/+8
| | | | | | | | | | | | | | The feature xml plays two roles: 1) To allow sdk interface (constructor) to throw when system service is unavailable. This allows for clearer platform development debugging. 2) To allow for simpler disambiguation of what services to instrument in a modular environment. Change-Id: I50f5993ff9c5107fdeaa9a5aa95377235eb3ac02 TICKET: CYNGNOS-2294
* cmsdk: Mandate themes feature xml's for service implementation.Adnan Begovic2016-03-252-2/+14
| | | | | | | | | | | | | | The feature xml plays two roles: 1) To allow sdk interface (constructor) to throw when system service is unavailable. This allows for clearer platform development debugging. 2) To allow for simpler disambiguation of what services to instrument in a modular environment. Change-Id: I67b16a0725ed89d5ddbc973b09337d6227087e4d TICKET: CYNGNOS-2295
* cmsdk: Mandate telephony feature xml's for service implementation.Adnan Begovic2016-03-241-2/+7
| | | | | | | | | | | | | | The feature xml plays two roles: 1) To allow sdk interface (constructor) to throw when system service is unavailable. This allows for clearer platform development debugging. 2) To allow for simpler disambiguation of what services to instrument in a modular environment. Change-Id: Ib8e41130f143f784088b4566589a4ddc58aa2ace TICKET: CYNGNOS-2291
* cmsdk: Mandate app suggest feature xml's for service implementation.Adnan Begovic2016-03-241-1/+7
| | | | | | | | | | | | | | The feature xml plays two roles: 1) To allow sdk interface (constructor) to throw when system service is unavailable. This allows for clearer platform development debugging. 2) To allow for simpler disambiguation of what services to instrument in a modular environment. Change-Id: Icda71efc084cf91bd358dba24eee4704179be90e TICKET: CYNGNOS-2290
* cmsdk: Mandate profile feature xml's for service implementation.Adnan Begovic2016-03-241-1/+7
| | | | | | | | | | | | | | The feature xml plays two roles: 1) To allow sdk interface (constructor) to throw when system service is unavailable. This allows for clearer platform development debugging. 2) To allow for simpler disambiguation of what services to instrument in a modular environment. TICKET: CYNGNOS-2288 Change-Id: Id0adcc1eaa4a0512faf25f11057c45dc2ac733e0
* cmsdk: Mandate cm sb feature xml's for service implementation.Adnan Begovic2016-03-241-0/+6
| | | | | | | | | | | | | | The feature xml plays two roles: 1) To allow sdk interface (constructor) to throw when system service is unavailable. This allows for clearer platform development debugging. 2) To allow for simpler disambiguation of what services to instrument in a modular environment. TICKET: CYNGNOS-2289 Change-Id: Ice0ae7c45aecbb34e0ea667128b040906c46d7e7
* Themes: Check theme api level in onBootPhased34d2016-03-211-7/+11
| | | | | | | | | This check should be done once the system has reached the PHASE_ACTIVITY_MANAGER_READY otherwise we can end up getting a boot failure within the ThemeManagerService Change-Id: If3e9c8885d8718224cf7d8fed0c0fb82ebe0fcab TICKET: CYNGNOS-2230
* Automatic translation importMichael Bestas2016-03-1893-5/+1943
| | | | Change-Id: Iedea6c96b80f72ad83b9bb38069c069982ca5fce
* cmsdk: Introduce externalCMServices array to cmres.Adnan Begovic2016-03-152-0/+16
| | | | Change-Id: I29427524e69327f79e0adae16ccd800fbd712646
* cmsdk: Mandate cmhw feature xml's for service implementation.Adnan Begovic2016-03-151-1/+7
| | | | | | | | | | | | | The features xml plays two roles: 1) To allow sdk interface (constructor) to throw when system service is unavailable. This allows for clearer platform development debugging. 2) To allow for simpler disambiguation of what services to instrument in a modular environment. Change-Id: I41f4ac60af076743909c6090fd50c3ad045bc9e1
* cmsdk: Minor string improvementMichael Bestas2016-03-111-1/+1
| | | | | | * permdesc strings should end with a dot Change-Id: I948ab86ee7548507da1a8cd3bd260637a1e927b7
* cmsdk: Fix resource name.Adnan Begovic2016-03-081-1/+1
| | | | Change-Id: I20b28bcfb801cd9ba9051f9c97e79ac1119e6fb7
* cmsdk: Add PerformanceManager tests, Change target permission.Adnan Begovic2016-03-083-15/+28
| | | | | | | | | | | | Since PerformanceManager is strictly a CyanogenMod construct, it doesn't make sense to enforce the interfaces with an android specific permission (even though the implementation is delegated to power manager). To keep consistency with the other api's, modify the enforcing permission to a cm specific declaration. Also add test cases for the PerformanceManager public interfaces. Change-Id: I430b69dbee73bf94bb60932d1942ab97e3ba193e
* Automatic translation importMichael Bestas2016-03-0493-18/+3402
| | | | Change-Id: Ie18403b1b7f026c986e327c28050123f52352084
* Themes: Refactor themes to CMSDK [2/6]d34d2016-03-046-0/+1530
| | | | | | | | First attempt at moving as much as possible out of F/B and into cmsdk Change-Id: I9e53d1c32e01e88fc3918663dabe0001df922bc2 TICKET: CYNGNOS-2126
* cmsdk: Add device-specific stringsMichael Bestas2016-03-012-0/+22
| | | | | | * Reduce duplicate strings between device-specific setting extensions Change-Id: I5691a68ba0ce031e2b8e3f9686997b155e04faff
* cmsdk: send intent to intialize CMHWRoman Birg2016-02-252-1/+12
| | | | | | | Ref: OPO-513 Change-Id: Iedd88bfad12b8f257bb792bf024d8eefa92b321c Signed-off-by: Roman Birg <roman@cyngn.com>
* Uncomment out getHotwordPackageNameInternal implMatt Garnes2016-02-241-2/+0
| | | | | | | | This was mistakenly commented out and causes the API to not function. Fixes FOR-205. Change-Id: I3c76d9c3665e35e2d13bed00cba1e742e4c0fb07
* PerformanceManager : Ensure we clear calling identityDanesh M2016-02-231-2/+9
| | | | | | | | | | | When going from perfmanager -> powermanager we need to clear the calling identity otherwise you get : Bad call: specified package android under uid 10031 but it is really 1000 CYNGNOS-786 Change-Id: Iacd310f56d6538b0f7a4779f89b4451f6a203c5b
* Automatic translation importMichael Bestas2016-02-226-17/+30
| | | | Change-Id: I86ecc76f33b4cc3db62be2939ae501cd10f1634c
* cmsdk: add common action for launching camera from screen gestureRoman Birg2016-02-181-0/+2
| | | | | | | Ref: OPO-427 Change-Id: If97b2ebc864687a53c4ef8253f5d2d0bafc1e996 Signed-off-by: Roman Birg <roman@cyngn.com>
* PerformanceManager : Keep in sync with low power modeDanesh M2016-02-151-6/+21
| | | | | | | | | | | | | | Fix edge cases such as : 1) Toggling to power save when plugged in (Should reject) 2) Plugging in to power while in power save should toggle to balanced. 3) Toggling from power save to anything else should disable low power mode (Orange system bars...etc) CYNGNOS-786 Change-Id: If6a4c08843673a6d02c38c94ed44d36230c0cb81
* Automatic translation importMichael Bestas2016-02-1410-16/+134
| | | | Change-Id: I5616066b18e84f59e040a0e73882a3831cdca35f
* cmsdk: adjust default tile orderRoman Birg2016-02-111-1/+1
| | | | | | | Ref: CYNGNOS-1861 Change-Id: I0f4ab58cb38fe0c9a2dba1b7d38de9020544bdc4 Signed-off-by: Roman Birg <roman@cyngn.com>
* cmsdk: Remove unused androidTest directory.Adnan Begovic2016-02-081-7/+0
| | | | Change-Id: Id15cfc17d95f89aceb963a216ddd23295c21773a
* cmsdk: cmhw: Add UniqueDeviceId supportMatt Wagantall2016-02-021-1/+20
| | | | | | | | | | | | | | | | It's sometimes useful to know what physical device you're using. CMHW SerialNumber and an "ro.serialno" property already exists, but are not guaranteed to be unique. Different OEM may use overlapping numbering schemes, and sometimes placeholder like "012345ABCDE" are used. Attempt to work around these shortcomings by defining a new UniqueDeviceId class that provides a globally unique device ID that is both deterministic for a given device and designed not to overlap with IDs of any other devices. Change-Id: I3f426972558394ba8e78261273ac8521aa603327
* Automatic translation importMichael Bestas2016-02-026-0/+220
| | | | Change-Id: I1893380ab4f7e3bb5ff31c72578aa28a932839a0
* cmsdk: remove visualizer from default qs tile listKeith Mok2016-01-261-1/+1
| | | | | | | | | | This fixes the following errors during bootup: QSTileHost: Error creating tile for spec: visualizer QSTileHost: java.lang.IllegalArgumentException: Bad tile spec: visualizer CYNGNOS-1722 Change-Id: Idd45ef73beb004fb4afb310bb335f3cc85b08330
* Revert "cmsdk: Add example service test."Khalid Zubair2016-01-261-0/+7
| | | | | | | | This reverts commit 33e300e32db2b94274d94295435e1ad4c9a8347e. CYNGNOS-1677 Change-Id: Ia4a9d192fde03152d308f7a93f3fe6525cb57c7d
* Automatic translation importMichael Bestas2016-01-258-19/+82
| | | | Change-Id: I3777f8d3c8b2c83da6bfe734bfaa1554ae91b198
* 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
* Change THIRD_PARTY_KEYGUARD permission to normald34d2016-01-211-1/+1
| | | | | | | | Lower protection level of THIRD_PARTY_KEYGUARD permission from signature|privileged to normal. Change-Id: I464daba67a66e88efe6219cec2663a07d15ab3ed TICKET: CYNGNOS-1689
* Automatic translation importMichael Bestas2016-01-1121-11/+536
| | | | Change-Id: I39a0e63fa95fd9a37a79dc6cb52da8047c40c86f