aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* lineage-sdk: Remove alarm clock APIMichael Bestas2018-01-241-135/+0
| | | | | | * Last used/implemented in cm-13.0 DeskClock Change-Id: I9db1a72e29fd2ce232f7cad69ee9b5a6fadfa5de
* lineage-sdk: Remove lineage telephony serviceMichael Bestas2018-01-241-101/+0
| | | | | | * Used for old MSIM API which is non-functional since a while Change-Id: Ica2b9ae119d5972e425082433df3a7b099ae404a
* lineage-sdk: Remove lineage status bar serviceMichael Bestas2018-01-246-1373/+0
| | | | | | * Used for CM tiles API which is long dead Change-Id: I66e8b57c035584aff5a4f5123388a4881e853a8f
* lineagehw: Remove persistent storage featureMichael Bestas2018-01-241-174/+0
| | | | Change-Id: I286735192cf3f688980645efa7c1ba057fa825ca
* lineagehw: Remove unique device ID featureMichael Bestas2018-01-241-89/+0
| | | | Change-Id: I99aae7716e1b54e5ee2b6cb59ca75573126ffec4
* Remove KeyguardExternalSam Mortimer2017-10-125-785/+0
| | | | Change-Id: I58156b2cd17aac706d1567cbaf650f5c0bad5860
* Remove PartnerInterface and LiveLockScreenSam Mortimer2017-10-129-851/+0
| | | | Change-Id: I8044de599ef6db8e9a1ff63e43dc2cea9c28d02a
* Remove theme supportSam Mortimer2017-10-116-1551/+0
| | | | Change-Id: I41f1d0fa1ecc98c2872d2569534e6f2ef686a726
* lineage-sdk: rebrand step 2: update file contentsSam Mortimer2017-10-0663-603/+603
| | | | Change-Id: I9881acc57cdc0aeea2b296aac12a8af932d30aea
* lineage-sdk: rebrand step 1: update pathsSam Mortimer2017-09-2259-0/+0
| | | | Change-Id: I4c2135d03d730a313a0638d0f857afa48fb220d3
* CMSDK: Tests: AIRPLANE_MODE_ON has movedMichael W2017-03-051-2/+2
| | | | | | * Lives in "Global" now Change-Id: Ib0a53e07af5f6ef2de735a818a5f505906f9d4d4
* cmsdk: cmhw: Deprecate TAP_TO_WAKE featureZhao Wei Liew2017-01-241-3/+0
| | | | | | All devices should use the native implementation now. Change-Id: Ic29472ba28569536a8556f61229a8a8fe783354a
* cmsdk: Ensure CMHW feature constants aren't optimized outSteve Kondik2016-11-221-2/+24
| | | | | | | | | | | | | | | | * The preferences constraints system uses reflection to look up fields via strings, we need to ensure they are not optimized out by Proguard. Alternatively we can manually enumerate them, but it's yet another list of constants to maintain. We should have used a proper enumeration to begin with, but so it goes. * The @VisibleForTesting annotation is honored by the platform for ensuring that Proguard doesn't stomp fields. The support library has an @Keep annotation, but it's only supported by Gradle. If it becomes supported by the platform in the future, switch to it instead. * Also add tests for all of this. Change-Id: I9f324e003e2a9de5604085b978d5f95bdd098d32
* cmsdk: Rework the PerformanceManagerSteve Kondik2016-10-121-3/+5
| | | | | | | | | | | | | | | * Added a proper API for this thing * Pass objects around with necessary metadata, pre-filtered and sorted * Added event log and service dump * Simplified locking and adjusted for performance / correctness * Clarified/beautified code where possible * TODO: - Write profile descriptions - Finish the UI - Clean up javadocs - Do something with per-app profiles, maybe Change-Id: Ie2ef84031e81a18e95dcd62392c7e6939860d933
* cmsdk: Fix tests for NSteve Kondik2016-09-132-6/+8
| | | | Change-Id: I49175f9e60440ea40993d1d7a0cc3f64cf92d010
* CMSDK : Fix generateAlertColorFromDrawable for non BitmapDrawableDanesh M2016-08-141-2/+31
| | | | | | | | | 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
* Themes: Provide 100% test coverage for themesd34d2016-06-241-2/+253
| | | | | | | | This patch completes the ThemeManagerTest and thus brings the themes package to 100% test coverage! \o/ Change-Id: I3bdb41781f127c9554c83f56503d591371031a23 TICKET: CYNGNOS-3029
* Themes: Fix ThemeManagerTestd34d2016-06-201-26/+76
| | | | | | | | | This fixes the assmption that a device will have a default theme declared in CMSettings, which is not always the case. If no default theme package is defined in CMSettings we use ThemeConfig.SYSTEM_DEFAULT instead. Change-Id: If7952ea984eea0accf3d0990871fb11e3ccc373a
* Weather API test: Wait for a bit before Mockito verifies if method was calledLuis Vidal2016-06-162-7/+7
| | | | | | | | | | | | Sometimes the runnable posted to runOnServiceThread() might run a bit faster than the calls made to the mocked weather provider, which causes Mockito to throw an exception. Add a timeout to instruct Mockito to wait for a bit before it verifies if the method was actually called. Also removed an unused variable in CMWeatherManagerTest TICKET: CYNGNOS-3043 Change-Id: I53b6541aeb571a6c83d1c26b6723d74c3661e8cc
* cmsdk: Increase flaky test tolerance on zenmode tests.Adnan Begovic2016-06-161-2/+2
| | | | | Change-Id: Iff5522913a518b403bf580152d4890ed1e4d275e TICKET: CYNGNOS-3014
* cmsdk: Provide test coverage for remainder PartnerInterface's.Adnan Begovic2016-06-162-0/+55
| | | | | | TICKET: CYNGNOS-3051 Change-Id: I1c15516dc03d3c0897cdd35f22281b25eedb84de
* cmsdk: Provide remainder test coverage for CMStatusbarManager.Adnan Begovic2016-06-163-5/+66
| | | | | Change-Id: I4cfa89ac3d9e27b234c3209c203f2a3f2bf9c46b TICKET: CYNGNOS-3050
* cmsdk: Provide remaining ProfileManager test coverage.Adnan Begovic2016-06-161-3/+151
| | | | | | TICKET: CYNGNOS-3046 Change-Id: I42792fe03fd7c218bec6f997115bd79bb8e97403
* cmsdk: Provide remaining Profile test coverage.Adnan Begovic2016-06-161-3/+276
| | | | | Change-Id: Ief60939e92c1e8efe700410e3e23a0eeff744364 TICKET: CYNGNOS-3046
* Provide remaining Weather API test coverageLuis Vidal2016-06-154-1/+600
| | | | | Change-Id: I15acbb4193158e7b2b98f7298b1774e1a1bc0cc2 TICKET: CYNGNOS-3043
* CMSDK : Add tests for ColorUtilsDanesh M2016-06-151-0/+94
| | | | | | CYNGNOS-3047 Change-Id: Icdea3bd18f80302eb421cbd572abc9e6eeb30f0a
* CMSDK : Fix external view testDanesh M2016-06-153-70/+41
| | | | | | | | | | Java's assert doesn't really do much on android and just returns true, which makes you feel good about your tests, but its just lying to you. On the long run its best that you know the real result and fix it, hence switch to JUnit's assert. CYNGNOS-3042 Change-Id: If7e5982b10abc1f842a52110973566818b1e3bf4
* CMSDK : Add LiveLockScreenManager testsDanesh M2016-06-151-0/+131
| | | | | | CYNGNOS-3048 Change-Id: I5a372d23028c43a3952199b8ad70854bec2dc7a1
* External view testDanesh M2016-06-147-2/+1035
| | | | | | CYNGNOS-3042 Change-Id: Ibdd11b631c6deea3eb030ffb1ba55b6ca5fe022b
* cmsdk: Clean up posted tile in CustomTileListenerService test.Adnan Begovic2016-06-141-0/+1
| | | | | TICKET: CYNGNOS-3022 Change-Id: If0c2e18b86c5d2061fd36d404d9e63496998c25f
* cmsdk: Add CustomTileListenerService tests.Adnan Begovic2016-06-132-4/+175
| | | | | Change-Id: Ife06dc7672efded1d6ce34afce2d3d3954c50d1f TICKET: CYNGNOS-3022
* cmsdk: Provide test coverage to Profile's *Settings classes.Adnan Begovic2016-06-136-0/+318
| | | | | Change-Id: I775cdd00e7e5cfbead681d548075f44d5799bccf TICKET: CYNGNOS-3027
* cmsdk: Provide tests for Profile.ProfileTrigger interfaces.Adnan Begovic2016-06-131-0/+36
| | | | | Change-Id: I2ece6365defdd126c2cce1bbdf1ccc7d671d3a70 TICKET: CYNGNOS-3021
* cmsdk: Provide coverage for serial number and unique device id.Adnan Begovic2016-06-091-0/+89
| | | | | | | | Tests for unique device id are enforced to be implemented correctly on user builds. Change-Id: I1c6b24bbf68fe1dce645744f8323c869fdeb9ada TICKET: CYNGNOS-3026
* cmsdk: Add test package to CMTS targets.Adnan Begovic2016-06-071-0/+19
| | | | Change-Id: Iddb3ab6c5361875567e816c004ce4d6c438210ba
* cmsdk: Provide themescontract tests.Adnan Begovic2016-06-071-0/+91
| | | | | TICKET: CYNGNOS-3015 Change-Id: Ice714eb144c7da7e03abd0423f3cfe4b0574067e
* cmsdk: Add binder transaction id tests for api 5 interfaces.Adnan Begovic2016-06-043-3/+210
| | | | Change-Id: I693f09266dab763141e3957392fb82c4fb7344a0
* cmsdk: Skip powersave during testing.Adnan Begovic2016-05-201-1/+2
| | | | | | | | | Since powersave is ignored while the device is plugged in, and switching pluggedmodes via runtime executing dumpsys commands is blocked by sepolicy. Ignore the powersave portion of the test. Change-Id: Ia2b206649a7fc1960cc25d16ffd22379e7c616e3 TICKET: CYNGNOS-2603
* cmsdk: Fix PerformanceManagerTest expectations.Adnan Begovic2016-05-021-15/+23
| | | | | | | | | | | 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: Add CMAudioManagerSteve Kondik2016-04-272-0/+261
| | | | | | | | | | | | | * 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: Add some unit testsSteve Kondik2016-04-262-0/+154
| | | | | | * Test color temperature control and mode selection Change-Id: Icc4fffef4c64cf3424e30890b5a4a37154482b3a
* 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
* cmsdk: Add test coverage for parceling LiveLockScreenInfod34d2016-04-011-0/+98
| | | | Change-Id: I75898014f211075bdec06a00289837e1df6f3a84
* cmsdk: Add test coverage for LiveLockScreenInfo.Builderd34d2016-04-011-0/+95
| | | | Change-Id: If802d3fcb5b1941d641d08beabbec9882c8ea451
* cmsdk: Add test coverage for parceling of ThemeChangeRequests.Adnan Begovic2016-03-311-0/+461
| | | | | Change-Id: Id0cb15133de1ab5c202417837b7b72e3d3937958 TICKET: CYNGNOS-2307
* cmsdk: Add test coverage for ThemeChangeRequestBuilder and object.Adnan Begovic2016-03-311-0/+304
| | | | | Change-Id: I24894d50c6e28939e5f5c3497e0279dbb45ca851 TICKET: CYNGNOS-2307
* cmsdk: Add preliminary ThemeManager test coverage.Adnan Begovic2016-03-312-1/+359
| | | | | TICKET: CYNGNOS-2307 Change-Id: Ie94ae3cd55678ecb2c631dc10d2335fb5d7362a7
* cmsdk: Create Concierge parcel handler concept.Adnan Begovic2016-03-311-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Simply, Concierge handles your parcels and makes sure they get marshalled and unmarshalled correctly when cross IPC boundaries even when there is a version mismatch between the client sdk level and the framework implementation. On incoming parcel (to be unmarshalled): ParcelInfo incomingParcelInfo = Concierge.receiveParcel(incomingParcel); int parcelableVersion = incomingParcelInfo.getParcelVersion(); // Do unmarshalling steps here iterating over every plausible version // Complete the process incomingParcelInfo.complete(); On outgoing parcel (to be marshalled): ParcelInfo outgoingParcelInfo = Concierge.prepareParcel(incomingParcel); // Do marshalling steps here iterating over every plausible version // Complete the process outgoingParcelInfo.complete(); Change-Id: I0096851e08ce25908e19e39e6bc4af344e85725e
* cmsdk: Mandate partner feature xml's for service implementation.Adnan Begovic2016-03-251-0/+5
| | | | | | | | | | | | | | 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-0/+5
| | | | | | | | | | | | | | 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