Commit Graph

26 Commits

Author SHA1 Message Date
Adnan Begovic 0b76a46515 cmsdk: Provide test coverage for remainder PartnerInterface's.
TICKET: CYNGNOS-3051

Change-Id: I1c15516dc03d3c0897cdd35f22281b25eedb84de
2016-06-16 13:54:13 -07:00
Luis Vidal 3f8b3b3862 Provide remaining Weather API test coverage
Change-Id: I15acbb4193158e7b2b98f7298b1774e1a1bc0cc2
TICKET: CYNGNOS-3043
2016-06-15 16:52:24 -07:00
Adnan Begovic 8387d3cc07 cmsdk: Add CustomTileListenerService tests.
Change-Id: Ife06dc7672efded1d6ce34afce2d3d3954c50d1f
TICKET: CYNGNOS-3022
2016-06-13 11:37:04 -07:00
Steve Kondik bf3c0cf948 cmsdk: Add CMAudioManager
* 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
2016-04-27 22:13:36 -07:00
Steve Kondik 4595cfde0b livedisplay: Add some unit tests
* Test color temperature control and mode selection

Change-Id: Icc4fffef4c64cf3424e30890b5a4a37154482b3a
2016-04-26 01:18:19 -07:00
Adnan Begovic 22859efbfd cmsdk: Add preliminary ThemeManager test coverage.
TICKET: CYNGNOS-2307
Change-Id: Ie94ae3cd55678ecb2c631dc10d2335fb5d7362a7
2016-03-31 17:58:24 -07:00
Adnan Begovic b4eafda7de cmsdk: Add PerformanceManager tests, Change target permission.
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
2016-03-08 09:24:34 -08:00
Adnan Begovic eb17396831 cmsdk: Add concept of parameterized BinderIdTransactionTest.
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
2016-02-05 13:52:31 -08:00
Adnan Begovic 31962b2226 cmsdk/tests: Fix zenmode tests.
TICKET: CYNGNOS-1667

Change-Id: Ic9b819d6680ea26039089013f552a199df81c0f7
2016-01-22 12:07:37 -08:00
Yvonne Wong 05d0129478 Add way to migrate CM specific settings to CMSettingsProvider
issue-id: CYNGNOS-829

Change-Id: I08743ebf9ffd3846ae501ed41e396b1556dc41cf
2015-09-25 13:17:19 -07:00
Steve Kondik 7cef6f6945 cmsdk: Add persistent properties API
* 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
2015-09-09 15:43:32 -07:00
Matt Garnes eabd575721 Add Broadcast action and query API for AudioSource.HOTWORD.
- 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
2015-09-08 17:28:20 -07:00
Adnan Begovic 04569c79bf cmsdk: Update tests for new ALARM permissions.
Change-Id: I51e8b503af22b23584a8f8bd552825a9cf0786a4
2015-09-01 17:22:33 -07:00
Adnan Begovic 052391135b cmsdk: Enforce cyanogenmod.permission.MODIFY_PROFILES for profiles.
Change-Id: Id14bfd9b214b4f53960c55d8abab2764f990b1b6
2015-09-01 15:40:58 -07:00
Adnan Begovic c0c27a6f94 cmsdk: Add preliminary hardware manager tests.
Change-Id: Ic01898fc9c1ae4d9c3b52ade8737ec6ab8388670
2015-09-01 14:13:03 -07:00
Yvonne Wong 0eb2999091 Add CMSettingsProvider and CMDatabaseHelper
issue-id: CYNGNOS-828

Change-Id: I01c08c0e432d6a941950a565e5ab6664664e2a7f
2015-08-31 13:52:27 -07:00
Adnan Begovic 4c28bc5463 cmsdk: Provide quick manual functional telephony api tests.
Change-Id: Idda7db6a4961d45f038176e478418123d8758073
2015-08-06 20:36:32 -07:00
Matt Garnes 51c39ba2d7 Add API to SettingsManager to set zen mode.
- 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
2015-08-06 16:18:50 -07:00
Matt Garnes 9e6ec9e8ba Add AlarmClock support for CM DeskClock manipulation.
- 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
2015-08-06 14:52:57 -07:00
Matt Garnes 0cdb1d513c Add SettingsManager.
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
2015-08-06 11:35:00 -07:00
Adnan Begovic e953794896 cmsdk: Add CMStatusBarManager and CustomTile.Builder tests.
Change-Id: I9df217cd94d489204f51de220bdf4c0b0b677e15
2015-07-14 15:13:30 -07:00
Adnan Begovic cf0bfd333e CMSDK: Begin documentation and testing for profiles.
Change-Id: I06c02f6aed63cfa0483376ae93a3f9a594aff201
2015-07-10 14:40:52 -07:00
Adnan Begovic 757d564a12 CMSDK: Update for versioning tests.
Change-Id: I0dfd4a9a158b08fc556ddf9c20e0167f99827d17
2015-06-08 16:20:06 -07:00
Adnan Begovic 4f0c2c38ae CMSDK: Update tests for new permissions.
Change-Id: I77d2cc332c453cfbd8aad375c482358039f13d03
2015-05-13 02:43:46 +00:00
Adnan Begovic 1832e1fd51 CMSDK: Update permission for tests.
Change-Id: I2ab6dd6120cfbb8e24445f3c5f6b49833afdd8b1
2015-04-30 18:03:56 -07:00
Adnan Begovic 104a15a6b0 CMSDK: Introduce preliminary automatable tests.
Change-Id: I27e21f64dee4aa93e5453ce49ec9fcac8f984d11
2015-04-29 17:38:59 -07:00