lineage-sdk internal: Add LightsCapabilities

*) Moved lights capabilities from frameworks/base
   NotificationManager to the lineage-sdk.

*) Add device has a battery light LIGHTS_BATTERY_LED capability.

Adapted from the original frameworks/base commits:

   Author: Ricardo Cerqueira <android@cerqueira.org>
   Date:   Thu Nov 10 12:15:00 2016 +0000

       NotificationManager: Concentrate LED light capabilities in a single location

       We have a bunch of individual boolean toggles for various LED behaviors
       and combinations, which end up getting used as a similarly sprawling bunch
       of getResource() calls across various locations. And they keep piling up...

       So... create a new overlayable bit field of LED capabilities,
       config_deviceLightCapabilities, where we can throw everything
       and expand in the future. Remove the obsolete overlays so that
       everyone uses the new overlay moving forward.

       Change-Id: I7d627914b058861048071fc15776031c4152157f

   Author: Adrian DC <radian.dc@gmail.com>
   Date:   Sat Oct 14 23:08:47 2017 +0200

       fw: Rebrand to LineageOS and cleanup for Android Oreo

       Change-Id: If7468759925d1636adad1c253d68b5adbc6dfb26

Change-Id: Ib14badcc0a2ad165610dd7d0e90388170e1cd548
2 files changed
tree: 25231e5966068890a0ee0b92d5cead95d124350e
  1. api/
  2. host/
  3. lineage/
  4. packages/
  5. samples/
  6. sdk/
  7. tests/
  8. .gitignore
  9. Android.mk
  10. CleanSpec.mk
  11. org.lineageos.platform.xml
  12. README.md
README.md

LineageOS Platform SDK

The Platform SDK provides a set of APIs that give you easy access to a variety of different features within LineageOS. The SDK exposes APIs and system level framework access in the Android framework that aren't available in any other distribution.

Setup

You can either download from prebuilts hosted on github or pull directly via Gradle.

Building against release artifacts

Our stable releases are mirrored in Maven Central, and you can fetch the current release by setting your build.gradle dependencies to

dependencies {
    compile 'org.lineageos:platform.sdk:5.+'
}

Building against development snapshots

Within build.gradle make sure your repositories list sonatype OSS repos for snapshots

repositories {
    maven {
        url "https://oss.sonatype.org/content/repositories/snapshots/"
    }
}

You can target the future or development branch by setting your dependencies for 6.0-SNAPSHOT

dependencies {
    compile 'org.lineageos:platform.sdk:6.0-SNAPSHOT'
}

WIKI

For further inquiries regarding this project, please reference the wiki.