aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* cmsdk: Add preliminary hardware manager tests.Adnan Begovic2015-09-015-2/+450
| | | | Change-Id: Ic01898fc9c1ae4d9c3b52ade8737ec6ab8388670
* cmsdk: allow custom tiles to set the new qstile's sensitive data flagJorge Ruesga2015-08-312-0/+28
| | | | | | | Requires: topic:hide-qs-tiles Change-Id: I71c85a00ae5797f1e142073b4d6a3a4c3274007b Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* Add CMSettingsProvider and CMDatabaseHelperYvonne Wong2015-08-312-0/+120
| | | | | | issue-id: CYNGNOS-828 Change-Id: I01c08c0e432d6a941950a565e5ab6664664e2a7f
* cmsdk: Provide quick manual functional telephony api tests.Adnan Begovic2015-08-062-0/+110
| | | | Change-Id: Idda7db6a4961d45f038176e478418123d8758073
* Add API to SettingsManager to set zen mode.Matt Garnes2015-08-062-1/+17
| | | | | | | | | | | | - Add a new permission cyanogenmod.permission.MODIFY_SOUND_SETTINGS. - Only allowed when the caller holds cyanogenmod.permission.MODIFY_SOUND_SETTINGS. - Allows the user to set zen mode to the off, priority interruptions only, or no interruptions modes. - For each mode change, the end condition will be set to null so that the mode remains active indefinitely. Change-Id: Id465509a8cc8d98953bf8cbe06cacff02b9f75a0
* Add AlarmClock support for CM DeskClock manipulation.Matt Garnes2015-08-063-0/+146
| | | | | | | | | | - In order to externalize the AlarmClock provider within DeskClock, move the database contract, ClockContract, into the SDK so that interested parties can reference it. - Add CyanogenModAlarmClock to add new utilities for turning existing alarms on/off and creating new alarms. Change-Id: I1f11ccc3988bdef10d721e2038b2c7d69a4ae598
* Add SettingsManager.Matt Garnes2015-08-063-0/+64
| | | | | | | | | | | | | Add new APIs for changing a subset of system settings. Protected by cyanogenmod.permission.MODIFY_NETWORK_SETTINGS: - Add ability to toggle airplane mode on/off. - Add ability to toggle mobile data on/off. Protected by android.permission.REBOOT: - Add ability to shutdown or reboot the device. Change-Id: I5e943be11260c58afa664f1702c0ecb4413528fe
* cmsdk: Support deleteIntent and remove tiles when packages change.Adnan Begovic2015-07-312-0/+27
| | | | Change-Id: I488410296c7579870406ea8fe289cf0b2158ea80
* Profiles: add LockModeSettingsRoman Birg2015-07-312-5/+28
| | | | | | | | | | Splits out the lockmode into its own LockSettings, primarly so it has its own processOverride() - so it will respect the LockMode.DEFAULT setting. Ref: CYNGNOS-620 Change-Id: I6183492facebed37133e84d45a6bb2f91f76d5ea Signed-off-by: Roman Birg <roman@cyngn.com> Signed-off-by: Adnan Begovic <adnan@cyngn.com>
* cmsdk: Add support for remote views in expanded stylesAdnan Begovic2015-07-314-1/+121
| | | | Change-Id: Ifa4e7f09df60c65fe476c5b9d332da0cb460e098
* cmsdk: Add functional manual and unit tests for new setIconAdnan Begovic2015-07-317-0/+108
| | | | Change-Id: Ia0f83c76429f80a7b7a4216e0cdf7d71844b9b64
* cmsdk: Update tests for recent builder changes.Adnan Begovic2015-07-281-1/+0
| | | | Change-Id: Icb949ff79044c60a4f70ba0ca2432b463c541e78
* cmsdk: Update manual functional tests for shouldCollapsePanel.Adnan Begovic2015-07-271-0/+2
| | | | Change-Id: I45028879e3cc259549b4ed43b9af15e062b07697
* cmsdk: Add unit tests for shouldCollapsePanelAdnan Begovic2015-07-272-0/+28
| | | | Change-Id: If9997c1be005f962dc628888f1090cb973588bb4
* cmsdk: Add tests for StatusBarPanelCustomTile parceling.Adnan Begovic2015-07-201-0/+94
| | | | Change-Id: I10058517992cff27de86914c30e41a4b58958723
* cmsdk: Return UNKNOWN for impossible sdk ints.Adnan Begovic2015-07-161-0/+7
| | | | Change-Id: I77a44abba0db223b031d6714c4fd8beb03a43cdc
* cmsdk: Add copyright header for ProfileManagerTest.Adnan Begovic2015-07-151-0/+16
| | | | Change-Id: Iee9094113aa6029202c79be2169a9440c97723f8
* cmsdk: Add functional manual test for custom uri publish tile.Adnan Begovic2015-07-151-0/+12
| | | | Change-Id: I0c4dd084499a06d8e8a9a1045f486655ef1a5c73
* cmsdk: Add unit tests for CustomTile parceling.Adnan Begovic2015-07-151-0/+266
| | | | Change-Id: Ic558dcdb70a795c9ffa2e56958228eae906b90a6
* cmsdk: Add simple profile manager tests.Adnan Begovic2015-07-151-0/+30
| | | | Change-Id: I73af75d956eeef0a621c713806245b51bacdbc18
* cmsdk: Add unit tests for Profile parceling.Adnan Begovic2015-07-151-0/+204
| | | | Change-Id: I4230b1340ff3cce34defb88e50adb4cf48ab4c7a
* cmsdk: Add unit tests for versioning with os.BuildAdnan Begovic2015-07-151-0/+59
| | | | Change-Id: I0efbd7a3d23dc3b29b06219ecbf3887f17fe6801
* cmsdk: Add CMStatusBarManager and CustomTile.Builder tests.Adnan Begovic2015-07-145-1/+241
| | | | Change-Id: I9df217cd94d489204f51de220bdf4c0b0b677e15
* cmsdk: Update profiles functional tests.Adnan Begovic2015-07-141-0/+108
| | | | Change-Id: I815e19ce51efaa973734ac45fc3cd8d28b9f0db0
* CMSDK: Begin documentation and testing for profiles.Adnan Begovic2015-07-103-1/+85
| | | | Change-Id: I06c02f6aed63cfa0483376ae93a3f9a594aff201
* CMSDK: Update for versioning tests.Adnan Begovic2015-06-082-0/+68
| | | | Change-Id: I0dfd4a9a158b08fc556ddf9c20e0167f99827d17