aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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-022-15/+34
| | | | | | | | | | | 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-022-0/+4
| | | | | | | | | | | 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: Fix warning from 64-bit clangSteve Kondik2016-04-301-1/+1
| | | | Change-Id: I2e45d0b1a8a552331d2691d6bc6d72a3b48a8467
* Automatic translation importMichael Bestas2016-04-2995-1/+264
| | | | Change-Id: I9bc4a483af682783e5f0ee215daf8b7334fe5431
* cmsdk: Add CMAudioManagerSteve Kondik2016-04-2714-0/+1113
| | | | | | | | | | | | | * 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
* livedisplay: Fix another transition issueSteve Kondik2016-04-261-9/+2
| | | | | | | | | | | | | | | | * If the screen is off during the entire transition period, when we turn the display back on it is not updated with the correct color temperature. * The code here is trying to be Mr. Smarty Pants and avoid extra updates, but it's totally pointless and also broken. There's no ill effects from writing to the hardware when the screen comes on, and updateColorTemperature already has all the other conditionals we need. * Just call updateColorTemperature every time, regardless. The LiveDisplayService ensures the callbacks run on the handler thread and all this crap can be removed. Change-Id: Ib9560e13870a5c6bbe9c5a26fad40f5ec1cefa83
* livedisplay: Add some unit testsSteve Kondik2016-04-262-0/+154
| | | | | | * Test color temperature control and mode selection Change-Id: Icc4fffef4c64cf3424e30890b5a4a37154482b3a
* cmsdk: Fix crash when getting LiveDisplay configSteve Kondik2016-04-262-2/+11
| | | | | | * If capabilities is empty, BitSet.toLongArray returns an empty array. Change-Id: I17476438995b581050feda346d0348228519ff44
* livedisplay: Connect display modes to CMHWEthan Chen2016-04-251-1/+11
| | | | | REF: CRACKLING-1069 Change-Id: I5be5cabf316d9bd02ab4ffc169d458ab8d1b46d4
* livedisplay: Fix three bugsSteve Kondik2016-04-242-32/+39
| | | | | | | | | * Fix issue with color adjustments not being applied at bootup. * Fix issue where hardware was always updated twice. * Check the display state inside the color animator- this was occasionally racing and triggering kernel bugs on some devices. Change-Id: Ieb9845e6b0f1c7ca979cbfa35c0b9b688ef1a8cf
* CMSettings: add CM_SETUP_WIZARD_COMPLETED keyRoman Birg2016-04-222-1/+26
| | | | | | | | | | | | 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>
* livedisplay: Always check for transitionSteve Kondik2016-04-211-16/+14
| | | | | | | | * If the device is started in the middle of a transition period, the transition would not occur. Always check for this condition instead of only firing it when TwilightService updates. Change-Id: Ibe6cfa69506ffc6a9bf6390ee7e13863f275ec2a
* livedisplay: Bugfixes and cleanupsSteve Kondik2016-04-216-503/+585
| | | | | | | | | | | | | | | * Simplify the code and callback mechanisms * Fix bug where settings weren't applied at startup * Make stuff immutable where possible * Corrected the sunrise calculation to start on time * Fix issue where tile state could become out of sync * Don't spam the hardware on screen on/off * Stop trying to cache values in so many places, they get out of sync too easily. * Move the animator to the general display adjustments * Clean up outdoor mode state on screen toggle Change-Id: Ic14425e5294d78698b9280dfb1237b222bb706cc
* cmsdk: Ignore "samples" subdir.Adnan Begovic2016-04-201-0/+2
| | | | | | | | | Since the samples are going to grow with each new interface addition, lets keep them in separate git projects and overlap their path into this directory. Change-Id: Ie37283646fe8b1927a81a0f1fb299f56475e237d
* Add Weather API test coverageLuis Vidal2016-04-204-0/+585
| | | | | | | | | | | Test coverage for: - DayForecast.Builder - ServiceRequestResult.Builder - WeatherInfo.Builder - WeatherLocation.Builder Change-Id: I66e716fa7a768b095e4b72011eda359b06a55f2e TICKET: CYNGNOS-2491
* 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-182-4/+4
| | | | Change-Id: I468e42b91996aad348fa0a1c85e0bc66597cf440
* Automatic translation importMichael Bestas2016-04-1696-13/+384
| | | | Change-Id: Ic3958966b87da56246142a98957d9cfe820b4066
* 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
* Revert "CmSdk : Add deprecated THIRD_PARTY_KEYGUARD permission"Danesh M2016-04-151-7/+0
| | | | | | This reverts commit 091842745213f823eff04670214035f2f1730ca4. Change-Id: I5c81b9b38360c8f87b072416352f32079ad6deb4
* CmSdk : Add deprecated THIRD_PARTY_KEYGUARD permissionDanesh M2016-04-151-0/+7
| | | | | | We need this for older apps to still function. Change-Id: I8c0f37bab9ad82d2915884eb9c4f6ccdd9ba3c1a
* livedisplay: Update system-apiLuca Stefani2016-04-151-0/+1
| | | | | | * Missing in 0ec60c69a090e11355af84c6d99adc3e7e2dcee0. Change-Id: Ic649fe9831a4484c0331a1c6c1b97d1973039416
* livedisplay: Fix endless loop for devices that don't support outdoorDanny Baumann2016-04-151-11/+18
| | | | | | | | | | mode. There was a logic mistake that caused _all_ modes to be skipped if outdoor mode isn't supported. In order to avoid such mistakes in the future, also simplify the logic and make it more easily understandable. Change-Id: I5fe8edbb3c4d2dd05fc4b4a7f94ca05d4ecd408b
* livedisplay: Fix bad state after bootupSteve Kondik2016-04-152-18/+23
| | | | | | * Make sure all modules are updated, and clean up a little code. Change-Id: Id02ddb1558deea4451783fbe27f495d63f63c910
* livedisplay: Don't explode if no modes are availableSteve Kondik2016-04-153-5/+21
| | | | | | | * Don't create the mode observer or try to publish tiles if none of the adaptive modes are supported. Change-Id: Iee6fe8131b0614e10f35b5a03d65fb44c71c0da9
* livedisplay: Publish our own damn tile!Steve Kondik2016-04-149-2/+332
| | | | Change-Id: If765cb1fe1cbc34c857dc6237cd25a1fb27f848e
* livedisplay: Fix error checks when fetching configSteve Kondik2016-04-141-2/+5
| | | | Change-Id: I8ba43f32b2c45f626401f3cbc0050bc0593748c8
* Fix LiveDisplay stringMichael Bestas2016-04-141-1/+1
| | | | Change-Id: Ic7e03a1284bc51ef91ad9e7d8d2572aec405ee14
* cmsdk: Exclude compiled 'cyanogenmod/library' java package.Adnan Begovic2016-04-141-0/+4
| | | | | | | | | | | | | Since aar's contain the raw resource to be compiled into the consumer package, having the compiled java from the resources inside of the java archive can lead to multiple instances of the class in the target package during compilation. Avoid that scenario by excluding the compile 'cyanogenmod/library' package from the final aar. TICKET: CYNGNOS-2305 Change-Id: I3b40205f4c2173ecd059e034312ed18dc9c6de34
* Remove public default constructor from CMWeatherManager.RequestStatus [1/2]Luis Vidal2016-04-133-8/+9
| | | | | | | | | | 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-136-183/+173
| | | | | | | | | | | | | | | | | | | | | | | | [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-133-0/+10
| | | | | | | | | | | | | 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
* cmsdk: correct naming of THIRD_PARTY_KEYGUARD permd34d2016-04-135-4/+9
| | | | | Change-Id: If2d062a90db340f8415d12897b16667fc834a848 TICKET: CYNGNOS-1705
* Weather API: Return ID rather than RequestInfo [1/2]Luis Vidal2016-04-1311-197/+210
| | | | | | | | | | | | | | | | | | | Instead of exposing the RequestInfo object created by the WeatherMgr return an ID to identify the request. This ID can be later used to cancel the request if needed. The WeatherProviderService base class keeps track of the ongoing requests and can map this ID to the corresponding request This patch also include the following minor changes: - Use List instead of ArrayList in API - Update javadoc to public methods to reflect API changes - Use UUID random generator in immutable classes to generate the hashcode rather than relying solely in the hashcode of the builder object. Change-Id: Ib88dd0ecddd6fdb016b77ac29709fbae092dea29 TICKET: CYNGNOS-2425 TICKET: CYNGNOS-2423
* cmsdk: Refactoring LiveDisplaySteve Kondik2016-04-1318-7/+2761
| | | | | | | | | * 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
* cmsdk: compile as aarRoman Birg2016-04-122-16/+30
| | | | | | | | | for common resources TICKET: CYNGNOS-2305 Change-Id: Idc1872b5fa3884754b49b08d2f8381f18fba234d Signed-off-by: Roman Birg <roman@cyngn.com> Signed-off-by: Adnan Begovic <adnan@cyngn.com>
* 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
* LLS: Deprecate collapseNotificationPanel [1/2]d34d2016-04-124-7/+7
| | | | | | | | collapseNotificationPanel is no longer applicable with the updated UX so deprecate it and document that it will essentially be a no-op Change-Id: I285bb48e3a9ffec8d554f880edf17e5105c94018 TICKET: CYNGNOS-2392
* Fix nomenclature for RequestInfo types [1/2]Luis Vidal2016-04-085-32/+46
| | | | | | | | | | - 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-086-147/+266
| | | | | | | | | | | | | | | | | | | | | - 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
* Add state member to WeatherLocation classLuis Vidal2016-04-083-9/+85
| | | | | | | | | | | | | Some weather service providers might require an additional state (territory) field to better identify a location, so a new field has been added to WeatherLocation class to hold this data. This patch also adds javadoc to public methods TICKET: CYNGNOS-2384 Change-Id: I927f58d436f044df3c8af496b0f27e017f5e73e3
* 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-078-19/+99
| | | | | | | | | | | | | | | | 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
* cmsdk: Actually return the system property in Build.Adnan Begovic2016-04-063-6/+10
| | | | | TICKET: CYNGNOS-2379 Change-Id: I7c7f3726b34db2b26d63fb4ef95df469fdf7e989
* Automatic translation importMichael Bestas2016-04-0694-22/+1363
| | | | Change-Id: I14df405ee407ce9b9b32507255ab8a7fa57ef40a