aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* cmsdk: Mandate profile feature xml's for service implementation.Adnan Begovic2016-03-242-0/+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. TICKET: CYNGNOS-2288 Change-Id: Id0adcc1eaa4a0512faf25f11057c45dc2ac733e0
* cmsdk: Mandate cm sb feature xml's for service implementation.Adnan Begovic2016-03-244-0/+16
| | | | | | | | | | | | | | 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
* cmsdk: Mandate cmhw feature xml's for service implementation.Adnan Begovic2016-03-153-0/+12
| | | | | | | | | | | | | 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: Add PerformanceManager tests, Change target permission.Adnan Begovic2016-03-082-0/+96
| | | | | | | | | | | | 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
* cmsdk: Keep generated java classes from aidl interfaces.Adnan Begovic2016-03-081-0/+3
| | | | | | | | Keep any classes extending IInterface so we can have the BinderTransactionTest run successfully. Change-Id: Ic49794017e472499cbbf351dfa12732854ceea8d TICKET: CYNGNOS-2189
* cmsdk: Clean up proguard flags.Adnan Begovic2016-03-081-4/+17
| | | | | | | | | | | | -dontskipnonpubliclibraryclasses and class members covers the processing of external libraries which makes the -injars option defunct. Also keep more android support related classes for when we expand the test package for more coverage. TICKET: CYNGNOS-2189 Change-Id: I37b66acdac86400f41d1f7f1e6610d1d9ca480b3
* cmsdk: Remove debugging from proguard.Adnan Begovic2016-03-041-7/+28
| | | | | TICKET: CYNGNOS-2189 Change-Id: Ia45f1e31bc23dcffc5a7f9923e268f9ad513df2a
* cmsdk: Strip unused cmsdk members for codecoverage.Adnan Begovic2016-03-042-1/+17
| | | | | Change-Id: Id5437b11168d0dfd222cfc4abef2fc03629a17ca TICKET: CYNGNOS-2189
* cmsdk: Update binder transaction tests for new interfaces.Adnan Begovic2016-02-223-80/+290
| | | | Change-Id: I79352dc36a4934f9821c5b487df0fb19a7ebc693
* cmsdk: Add concept of parameterized BinderIdTransactionTest.Adnan Begovic2016-02-058-23/+382
| | | | | | | | | | | To avoid any future release having offset binder transaction call ids, create a means to validate binder transaction ids within a parameterized environment based off of prior releases. This requires utilizing the new android testing support library for junit4 support. Change-Id: Iefe3c183de2bdfa127ea53dcf21c8223f0355c34
* cmsdk: Annotate a few zenmode tests as flaky.Adnan Begovic2016-02-031-0/+3
| | | | | | | This allows them to rerun without consequence to the entire suite on first failure case. Change-Id: Ia16b3dc433a7b9c83d36f8039b53052fda91c4b7
* cmsdk: cmhw: Add UniqueDeviceId supportMatt Wagantall2016-02-021-1/+21
| | | | | | | | | | | | | | | | 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
* Revert "cmsdk: Add example service test."Khalid Zubair2016-01-262-147/+1
| | | | | | | | This reverts commit 33e300e32db2b94274d94295435e1ad4c9a8347e. CYNGNOS-1677 Change-Id: Ia4a9d192fde03152d308f7a93f3fe6525cb57c7d
* Revert "cmsdk/tests: Temp hack to fix `mka` builds."Khalid Zubair2016-01-261-2/+1
| | | | | | | | This reverts commit 969cda08079312243c37176c8c3184266ef59ae3. CYNGNOS-1677 Change-Id: Ic814b7af9e9d1aef725b310af9f3b0383701eec7
* cmsdk: add invalid input checking for persistent storage APIsScott Mertz2016-01-221-0/+70
| | | | | | | | | | | 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/tests: Fix zenmode tests.Adnan Begovic2016-01-221-0/+1
| | | | | | TICKET: CYNGNOS-1667 Change-Id: Ic9b819d6680ea26039089013f552a199df81c0f7
* cmsdk: change persistent storage test cases to void return typeScott Mertz2016-01-221-9/+3
| | | | | | | InstrumentationTestRunner only picks up methods with "public void test*" in the method signature. Change-Id: I382114c9bd12ef954f65a54f101438d1207b5d69
* cmsdk: Fix BuildTests. Bump parcelable version.Adnan Begovic2016-01-191-3/+3
| | | | Change-Id: I3084acfa25ca6bd6f5a058995906a050e243a4c9
* CustomTiles: add a custom long press PendingIntentRoman Birg2016-01-183-0/+49
| | | | | | Ref: CYNGNOS-1602 Change-Id: Id0cca88fabb091dcf0fbad2ae24416fa1c0af83e Signed-off-by: Roman Birg <roman@cyngn.com>
* cmsdk/tests: Temp hack to fix `mka` builds.Adnan Begovic2016-01-151-1/+2
| | | | Change-Id: I7d08765c6661f3c4bba6574c9bc89ba36af9632b
* cmsdk: Add unit test for PartnerInterfaceJanet Sun2016-01-061-0/+317
| | | | | | | | | | | | Created the AndroidTestCase unit test Added functional testing for airplane mode, which can be restored without contaminating other tests. Also added setZenMode testing, which currently contaminates other tests. But we will allow for lack of a better way FOR-156 Change-Id: I2ab5642c60f41266d9de8aab897e4852e872ad38
* cmsdk: Update iconography.Adnan Begovic2016-01-065-0/+0
| | | | | | Yes it bothers me that much. Change-Id: Idabccbf584b23d6550c079cab2c1a1427ae6ab9b
* cmsdk: Add example service test.Adnan Begovic2016-01-052-1/+147
| | | | Change-Id: I52972bc4d32505ba7fd2f7278efdb9441c39b82a
* CMSDK: add duration for priority/quiet modeJanet Sun2015-12-231-1/+14
| | | | | | | | | | | | | 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: Clean up some provider tests.Adnan Begovic2015-12-211-7/+8
| | | | Change-Id: I1b09f17a194054bfd0d35da843d0af1405fa4e21
* Profiles: add isEnabled(); send state changesRoman Birg2015-12-211-0/+27
| | | | | | Ref: CYNGNOS-1461 Change-Id: Idee9417a2f0b181c8d15cd763859c0a0e581dce6 Signed-off-by: Roman Birg <roman@cyngn.com>
* External views for cm13Chris Sarbora2015-12-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initial ExternalViewProvider Change-Id: Ib35d79d3ae01d2e1a98020c5e65e4fbe50d2d322 Fill out methods and run everything on main thread Change-Id: I05dd1bce5c24057101cd85656d28b01e6681434a Fix aidl Change-Id: Ie4b9a4463fdea37a0c5d657ffbc8796d51b57303 Add sample provider Change-Id: I51b73302f85927aba2e9ea30ce47d6958af8e451 Create window and view earlier and only once Change-Id: I60264b3c2de302f6f628320f436ac2aeb39de42c visibility Change-Id: I6ed2d6431c5aec9d4959a51828c42a700aabbd22 Add logging Change-Id: I224587bcdfd1ff08673a618c5e45fef384041b8b Add external view Change-Id: Ic7f1ba96857239ac0fa43777f7d637716b7aead7 Resource fixes Change-Id: I75324900d36a465575338c8b0ec9cc568ea50b9a Add view host Change-Id: Ief57371563feca707f420a509827c78c48bedf9c Such hacks :\ Change-Id: I11ff460e7e7fed9cb14531ec3fb4699a37021ee0 Use a real window Change-Id: Ie79f8188beaa871c6b8c96303c3221cdd7352fc6 Make api able to handle multiple instances of provided views Change-Id: I185a8950aa577f920eaf7582c53f3316b88765c8 Ensure attribute set is passed to constructor Change-Id: I9ebb4e8b0f7538ea5d0e7da179b1f1df812532b1 Add clip rect support Change-Id: I23ac08b9e9e1e07e72bbf761ede1de87f4e4b084 Use final clipRect, instead of member Change-Id: I2fa5f6ff30adf30fc0fe10f9fac1869ab4c03904
* cmsdk: Remove systemserverclasspath test.Adnan Begovic2015-10-291-32/+0
| | | | | | | | The jars all have oat files now, so iterating them and seeing if they're "clean" is pointless since they're not part of the processes runtime libraries on zygote fork. Change-Id: I8c0e0ce16a84c423e68f8c1749f3676c3bd2931f
* cmsdk: API level 4 for M release.Adnan Begovic2015-10-071-3/+3
| | | | Change-Id: Ieed8ebf256e91515b6921186487b83462910bca9
* cmsdk: Create api level 3, cantaloupe.Adnan Begovic2015-09-291-3/+3
| | | | Change-Id: I5cefacf1196261b071ce2c3561f18ebaf74de604
* Add way to migrate CM specific settings to CMSettingsProviderYvonne Wong2015-09-252-6/+65
| | | | | | issue-id: CYNGNOS-829 Change-Id: I08743ebf9ffd3846ae501ed41e396b1556dc41cf
* cmsdk: Add classpathtests.Adnan Begovic2015-09-252-0/+184
| | | | Change-Id: I78f21934046a8a8917dc59f5423986a7077f4531
* cmsdk: Add persistent properties APISteve Kondik2015-09-093-1/+120
| | | | | | | | * 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-082-15/+15
| | | | | | | | | | - 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: Update tests for new ALARM permissions.Adnan Begovic2015-09-011-2/+2
| | | | Change-Id: I51e8b503af22b23584a8f8bd552825a9cf0786a4
* cmsdk: Enforce cyanogenmod.permission.MODIFY_PROFILES for profiles.Adnan Begovic2015-09-011-3/+4
| | | | Change-Id: Id14bfd9b214b4f53960c55d8abab2764f990b1b6
* cmsdk: Fix toast in CMHardwareTest.Adnan Begovic2015-09-011-1/+1
| | | | Change-Id: Ia565607b9b43ad57923c07830a3373c73060ea5d