Commit Graph

133 Commits

Author SHA1 Message Date
Michael Bestas
f4c7907c20 Remove leftover LineageAudioService support
Change-Id: I427addc828a05b84b0e1596221759b6ccd6d46c0
2023-07-22 18:46:54 +03:00
Michael Bestas
6326bdad01 Remove leftover Performance Profiles support
Change-Id: Ib830ccbf3910b115b5979936a3b75c167bd57779
2023-07-22 18:42:47 +03:00
Luca Stefani
b0d6dd92e8 sdk: s/UserHandle.USER_OWNER/UserHandle.USER_SYSTEM/g
USER_OWNER has been deprecated and replaced by USER_SYSTEM

Change-Id: I93b057a52dcdcb3760b7c2139bea2e25a624a78f
2022-03-07 22:42:53 +01:00
Luca Stefani
67c0daf545 Remove LineageAudioService
Change-Id: I4aea4c62154a0f7d9d6d96e68ddf2bd401458fab
2022-01-31 00:44:33 +02:00
Bruno Martins
9265e4085d sdk: Nuke perf profiles
Change-Id: Ibd32da7cb2feb8fa41bf9804f101167e4d12e33c
2022-01-30 22:33:24 +01:00
Michael Bestas
eb64e79f86 lineage-sdk: Remove weather related code
* This has been untouched since 2016 and it depends on LockClock
  which has been dropped and was also untouched for years.
  There is no good weather provider without API restrictions,
  so just remove this dead code.

Change-Id: I6540006ce0d7339b7794b6ab207593afb161aa3d
2021-11-06 12:52:00 +02:00
Bruno Martins
b485a25aa3 profiles: Fix typo in static variable naming
Change-Id: Ic17febc55e6726f0efc18c201223856bbc2798b3
2020-04-21 11:53:28 +02:00
Bruno Martins
bd39ad8c07 profiles: Account for deprecated location API methods
Settings.Secure#setLocationProviderEnabled is deprecated since API level 19.

Change-Id: I7d1d13de3af100fb81d87e957acf89fb7f08cb7d
2020-04-21 00:47:55 +01:00
Wang Han
06ecc3c168 lineage-sdk: Drop Expanded Desktop API
* This conflicts with AOSP gestures implemention now, and
   the framework part is hard to port.
 * Furthermore the original implementation has the following
   bugs/issues:
   1. Pressing power button or double tap does not wake up the device
   2. No soft-key buttons when opening the keyboard
   3. Probably more

Change-Id: Ia233c3b9d0aa7426f0fd15dffe4da203b4e09b1d
2020-03-09 15:36:50 +01:00
LuK1337
e530d7a126 lineage-sdk: Clean up imports
Change-Id: Ie14853382ebefd42fdf827e2999a2a2a6d0a1cd1
2019-09-10 16:10:48 -07:00
Sam Mortimer
3533d385d9 lineage-sdk: Migrate to androidx
* Migrate from support library to androidx

* Various improvements and cleanup by @bgcngm

Change-Id: I10bbf5056125e8309f344c3eb18cc628bd7ec34e
2019-09-09 07:09:59 +02:00
Joey
1be72e7e3d sdk: tests: fix LineageHardwareTest
Change-Id: I7fb99b8e92e83f6288e90e3dad9748b2eaf6305a
Signed-off-by: Joey <joey@lineageos.org>
2019-08-24 22:04:42 +02:00
Paul Keith
7368c8e988 sdk: Deprecate some unused lineagehw features
* DISPLAY_GAMMA_CALIBRATION
* LONG_TERM_ORBITS
* SERIAL_NUMBER
* While we're at it, cleanup tests for removal of other features too

Change-Id: I1a572cf3bcc5298d208a3dc234f9d82da1105bf0
2019-02-04 14:43:29 +01:00
Sam Mortimer
1e5a24c4cc lineage-sdk: Remove proguard shrinktests
Removed by:
e4936e1c2d

Change-Id: I3c0fe281fa06839a620a47402b72fc653b6ee037
2018-08-21 13:37:50 +02:00
Sam Mortimer
283ab86554 lineage-sdk: Set LOCAL_PRIVATE_PLATFORM_APIS := true
Change-Id: I06b9374ccee78550fcc26d876a9e4ea50198bbfe
2018-08-21 13:36:14 +02:00
Michael Bestas
e54c07d4ed lineage-sdk: Remove alarm clock API
* Last used/implemented in cm-13.0 DeskClock

Change-Id: I9db1a72e29fd2ce232f7cad69ee9b5a6fadfa5de
2018-01-24 02:43:12 +02:00
Michael Bestas
861ba2d874 lineage-sdk: Remove lineage telephony service
* Used for old MSIM API which is non-functional since a while

Change-Id: Ica2b9ae119d5972e425082433df3a7b099ae404a
2018-01-24 02:43:12 +02:00
Michael Bestas
99fba21024 lineage-sdk: Remove lineage status bar service
* Used for CM tiles API which is long dead

Change-Id: I66e8b57c035584aff5a4f5123388a4881e853a8f
2018-01-24 02:43:12 +02:00
Michael Bestas
19d8afb7e6 lineagehw: Remove persistent storage feature
Change-Id: I286735192cf3f688980645efa7c1ba057fa825ca
2018-01-24 02:43:11 +02:00
Michael Bestas
d85907768c lineagehw: Remove unique device ID feature
Change-Id: I99aae7716e1b54e5ee2b6cb59ca75573126ffec4
2018-01-24 02:43:11 +02:00
Sam Mortimer
68d668ef53 Remove KeyguardExternal
Change-Id: I58156b2cd17aac706d1567cbaf650f5c0bad5860
2017-10-12 21:53:42 +00:00
Sam Mortimer
ae2d7e15ce Remove PartnerInterface and LiveLockScreen
Change-Id: I8044de599ef6db8e9a1ff63e43dc2cea9c28d02a
2017-10-12 21:53:02 +00:00
Sam Mortimer
0912ee88c7 Remove theme support
Change-Id: I41f1d0fa1ecc98c2872d2569534e6f2ef686a726
2017-10-11 23:17:36 -07:00
Sam Mortimer
542742b751 lineage-sdk: rebrand step 2: update file contents
Change-Id: I9881acc57cdc0aeea2b296aac12a8af932d30aea
2017-10-06 09:40:24 -07:00
Sam Mortimer
5ede05bdca lineage-sdk: rebrand step 1: update paths
Change-Id: I4c2135d03d730a313a0638d0f857afa48fb220d3
2017-09-22 17:19:40 -07:00
Michael W
a7e8c17e82 CMSDK: Tests: AIRPLANE_MODE_ON has moved
* Lives in "Global" now

Change-Id: Ib0a53e07af5f6ef2de735a818a5f505906f9d4d4
2017-03-05 15:39:32 +00:00
Zhao Wei Liew
d73a9322a4 cmsdk: cmhw: Deprecate TAP_TO_WAKE feature
All devices should use the native implementation now.

Change-Id: Ic29472ba28569536a8556f61229a8a8fe783354a
2017-01-24 08:14:53 +00:00
Steve Kondik
e8aecd3a8a cmsdk: Ensure CMHW feature constants aren't optimized out
* 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
2016-11-22 22:48:35 -08:00
Steve Kondik
cd98e0b30b cmsdk: Rework the PerformanceManager
* 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
2016-10-12 04:06:33 -07:00
Steve Kondik
5dec2bb8fc cmsdk: Fix tests for N
Change-Id: I49175f9e60440ea40993d1d7a0cc3f64cf92d010
2016-09-13 10:26:26 -07:00
Danesh M
e1ba9407f7 CMSDK : Fix generateAlertColorFromDrawable for non BitmapDrawable
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
2016-08-14 21:57:37 -07:00
d34d
131de78e2e Themes: Provide 100% test coverage for themes
This patch completes the ThemeManagerTest and thus brings the themes
package to 100% test coverage! \o/

Change-Id: I3bdb41781f127c9554c83f56503d591371031a23
TICKET: CYNGNOS-3029
2016-06-24 13:20:46 -07:00
d34d
f4dd414643 Themes: Fix ThemeManagerTest
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
2016-06-20 10:43:00 -07:00
Luis Vidal
b25a32413c Weather API test: Wait for a bit before Mockito verifies if method was called
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
2016-06-16 16:05:42 -07:00
Adnan Begovic
3251a4506f cmsdk: Increase flaky test tolerance on zenmode tests.
Change-Id: Iff5522913a518b403bf580152d4890ed1e4d275e
TICKET: CYNGNOS-3014
2016-06-16 14:07:26 -07:00
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
Adnan Begovic
afa47a7973 cmsdk: Provide remainder test coverage for CMStatusbarManager.
Change-Id: I4cfa89ac3d9e27b234c3209c203f2a3f2bf9c46b
TICKET: CYNGNOS-3050
2016-06-16 11:08:28 -07:00
Adnan Begovic
5d5e556c49 cmsdk: Provide remaining ProfileManager test coverage.
TICKET: CYNGNOS-3046

Change-Id: I42792fe03fd7c218bec6f997115bd79bb8e97403
2016-06-16 11:08:28 -07:00
Adnan Begovic
9b50627030 cmsdk: Provide remaining Profile test coverage.
Change-Id: Ief60939e92c1e8efe700410e3e23a0eeff744364
TICKET: CYNGNOS-3046
2016-06-16 11:08:28 -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
Danesh M
c701b8ea6e CMSDK : Add tests for ColorUtils
CYNGNOS-3047

Change-Id: Icdea3bd18f80302eb421cbd572abc9e6eeb30f0a
2016-06-15 13:38:40 -07:00
Danesh M
60c6053a92 CMSDK : Fix external view test
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
2016-06-15 13:38:22 -07:00
Danesh M
912410f27d CMSDK : Add LiveLockScreenManager tests
CYNGNOS-3048

Change-Id: I5a372d23028c43a3952199b8ad70854bec2dc7a1
2016-06-15 13:38:03 -07:00
Danesh M
b6e71bc544 External view test
CYNGNOS-3042

Change-Id: Ibdd11b631c6deea3eb030ffb1ba55b6ca5fe022b
2016-06-14 13:14:35 -07:00
Adnan Begovic
7fff40e2d0 cmsdk: Clean up posted tile in CustomTileListenerService test.
TICKET: CYNGNOS-3022
Change-Id: If0c2e18b86c5d2061fd36d404d9e63496998c25f
2016-06-14 11:29:12 -07:00
Adnan Begovic
8387d3cc07 cmsdk: Add CustomTileListenerService tests.
Change-Id: Ife06dc7672efded1d6ce34afce2d3d3954c50d1f
TICKET: CYNGNOS-3022
2016-06-13 11:37:04 -07:00
Adnan Begovic
0e0cb73c61 cmsdk: Provide test coverage to Profile's *Settings classes.
Change-Id: I775cdd00e7e5cfbead681d548075f44d5799bccf
TICKET: CYNGNOS-3027
2016-06-13 11:35:38 -07:00
Adnan Begovic
2add3de267 cmsdk: Provide tests for Profile.ProfileTrigger interfaces.
Change-Id: I2ece6365defdd126c2cce1bbdf1ccc7d671d3a70
TICKET: CYNGNOS-3021
2016-06-13 11:28:07 -07:00
Adnan Begovic
fda1fc6843 cmsdk: Provide coverage for serial number and unique device id.
Tests for unique device id are enforced to be implemented correctly
  on user builds.

Change-Id: I1c6b24bbf68fe1dce645744f8323c869fdeb9ada
TICKET: CYNGNOS-3026
2016-06-09 15:37:46 -07:00
Adnan Begovic
7a48ce3b42 cmsdk: Add test package to CMTS targets.
Change-Id: Iddb3ab6c5361875567e816c004ce4d6c438210ba
2016-06-07 10:43:41 -07:00