* This patch will make it easy to hide preferences based on the
lack of a CMHardware feature. In the preference, specify this:
cm:requiresFeature="cmhardware:FEATURE_KEY_DISABLE"
..and the preference will magically be removed if the feature
is not supported.
Change-Id: I51699df7b39bb38b9ea69c93ade658736f89b988
* Set "cm:requiresOwner=true" to enforce that the current user
is an owner, otherwise the preference will be removed.
Change-Id: I20d1348f58a855d07676882db773f73687396a6d
* Add a new set of attributes which can be declared in the
preference XML which will cause the preference to be
removed from the hierarchy if the constraint is not met.
Currently we can check for installed packages, system
properties, config references, and system features.
* CMPartsPreference is also updated to use similar logic
based on the external XML.
Change-Id: If8fb39cd3312623e38bb3498bfb3f29ed8b444d6
* Add a Preference subclass which queries CMParts and handles all
the work needed to add a new part into Settings with a single
line of XML.
* The parts list lives in the CMParts app as res/xml/parts_catalog.xml
* We also support receiving a broadcast to update the title/summary.
Change-Id: Iaceddc85272718ba93e4086cc2577c3b016419e2
* Google changed the way TwilightService works in N, which was never
a public API to begin with. Create a local version to avoid this
problem in the future, which also contains the logic we expect
and have tested extensively.
Change-Id: I11098b14fa75664ce8efbc34888c6f97e3af5ca1
As long as the light sensor is providing values, each value change will
enqueue a transition message, which may queue up. Stop doing that and
ensure only one transition message is queued at any given time.
Change-Id: I6e9c5b265066089ff9e0cea7237c2023ed1af30c
* The public SDK build is currently including AIDLs which are
meant to be used for internal purposes only. My assumption
is that this particular implementation was done before we
split off an "internal" SDK, which is used by the platform itself.
* The issue came up when adding an AIDL which has a backing
Java data object which was not included.
* It should be safe to simply hide this interface. All references
to it are hidden already. It is only used for internal purposes
and does not change the API.
* With the internal dependencies removed from the public SDK, we
can completely remove the reference in the makefile.
Change-Id: I0515815543feb077ee5e289b9f900e28758c6e98
* These lived in the Settings app previously, but are now moved as
we need them in a few places.
* The support library required to use these helpers, but we
intentionally reference it using LOCAL_JAVA_LIBRARIES so the
application will need to declare a dependency.
Change-Id: I56844def5e1100ca0300d0027312cc9adcaab941
* This is used by LiveDisplay, but may be useful for other purposes.
Move it into the internal/common package instead of keeping an
external dependency.
Change-Id: I87c0af11e19ecaea4a1a5b736fc286cd9a8ac55c
* This was specific to an ancient HTC implementation of Wimax and
is no longer a thing. Feel free to revert if someone brings
up Crespo4g :)
Change-Id: I64b50f8e6df443108ae84a96303ba7802cbed653
* Dexopt is no longer a thing on N.
Revert "You are now a developer!"
This reverts commit 2059ea6908.
Revert "[1/2] cmsdk: cm custom boot dexopt UI"
This reverts commit 6e5ab27fbb.
Change-Id: Ie50e8e6a77172d2b5b0659be831e7dd7a19fee04
* Show alternative brand logo in dexopt screen
when developer options are enabled
* Drawable by Asher
Change-Id: Ie100d7c3e9c96a7ad64c4cd65195d6f531090140
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
So the implementing service doesn't have to be signed with platform
keys.
Change-Id: I635d79173bf1771b58e1cb2dd333cee091610a48
Signed-off-by: Roman Birg <roman@cyngn.com>
* Pass app info and number of installed packages to boot message UI
* Ui by Asher and Joey, based on Alexander's previous work
Change-Id: I9298d7e2b85a703921abf62f8b91157e6f88803b
Signed-off-by: Joey Rizzoli <joey@cyanogenmoditalia.it>
* Force US locale when doing internal flattening of HSIC objects
into strings. This would crash in the validator if the user's
local uses commands instead of dots to format floats.
Change-Id: I08f44238a486308a483205b97632114d2f7a77f1
* Raise the outdoor threshold to 12K lux to more accurately
represent bright sunlight.
* Raise the night color temperature to 4800K to provide a
soft display look at night with less red.
Change-Id: I26bdea7fc97acb2a17944a1f25e5e11866a08e29
* Essentially everything in CMSDK should remain silent when we
are being prompted to enter a passcode for decrypting the
device. Unfortunately, simply shutting off CMSDK entirely
will cause crashes everywhere. We need to be somewhat
selective about it.
* Motivation for this was LiveDisplay kicking into night mode before
decrypted due to location services failing.
Change-Id: I4d745debb2894776258343e8696ce5144f094404