diff --git a/Android.mk b/Android.mk
index dc2b7142..636ba347 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1,4 +1,5 @@
# Copyright (C) 2015 The CyanogenMod Project
+# Copyright (C) 2017 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -21,35 +22,35 @@ LOCAL_PATH := $(call my-dir)
# did, the PRIVATE_* vars for R.java wouldn't be guaranteed to be correct.
# Instead, it depends on the R.stamp file, which lists the corresponding
# R.java file as a prerequisite.
-cm_platform_res := APPS/org.cyanogenmod.platform-res_intermediates/src
+lineage_platform_res := APPS/org.lineageos.platform-res_intermediates/src
-# List of packages used in cm-api-stubs
-cm_stub_packages := cyanogenmod.alarmclock:cyanogenmod.app:cyanogenmod.content:cyanogenmod.externalviews:cyanogenmod.hardware:cyanogenmod.media:cyanogenmod.os:cyanogenmod.preference:cyanogenmod.profiles:cyanogenmod.providers:cyanogenmod.platform:cyanogenmod.power:cyanogenmod.themes:cyanogenmod.util:cyanogenmod.weather:cyanogenmod.weatherservice
+# List of packages used in lineage-api-stubs
+lineage_stub_packages := lineageos.alarmclock:lineageos.app:lineageos.content:lineageos.externalviews:lineageos.hardware:lineageos.media:lineageos.os:lineageos.preference:lineageos.profiles:lineageos.providers:lineageos.platform:lineageos.power:lineageos.themes:lineageos.util:lineageos.weather:lineageos.weatherservice
-# The CyanogenMod Platform Framework Library
+# The LineageOS Platform Framework Library
# ============================================================
include $(CLEAR_VARS)
-cyanogenmod_sdk_src := sdk/src/java/cyanogenmod
-cyanogenmod_sdk_internal_src := sdk/src/java/org/cyanogenmod/internal
-library_src := cm/lib/main/java
+lineage_sdk_src := sdk/src/java/lineageos
+lineage_sdk_internal_src := sdk/src/java/org/lineageos/internal
+library_src := lineage/lib/main/java
-LOCAL_MODULE := org.cyanogenmod.platform
+LOCAL_MODULE := org.lineageos.platform
LOCAL_MODULE_TAGS := optional
-cmsdk_LOCAL_JAVA_LIBRARIES := \
+lineage_sdk_LOCAL_JAVA_LIBRARIES := \
android-support-v7-preference \
android-support-v7-recyclerview \
android-support-v14-preference
LOCAL_JAVA_LIBRARIES := \
services \
- org.cyanogenmod.hardware \
- $(cmsdk_LOCAL_JAVA_LIBRARIES)
+ org.lineageos.hardware \
+ $(lineage_sdk_LOCAL_JAVA_LIBRARIES)
LOCAL_SRC_FILES := \
- $(call all-java-files-under, $(cyanogenmod_sdk_src)) \
- $(call all-java-files-under, $(cyanogenmod_sdk_internal_src)) \
+ $(call all-java-files-under, $(lineage_sdk_src)) \
+ $(call all-java-files-under, $(lineage_sdk_internal_src)) \
$(call all-java-files-under, $(library_src))
## READ ME: ########################################################
@@ -63,39 +64,39 @@ LOCAL_SRC_FILES := \
##
## READ ME: ########################################################
LOCAL_SRC_FILES += \
- $(call all-Iaidl-files-under, $(cyanogenmod_sdk_src)) \
- $(call all-Iaidl-files-under, $(cyanogenmod_sdk_internal_src))
+ $(call all-Iaidl-files-under, $(lineage_sdk_src)) \
+ $(call all-Iaidl-files-under, $(lineage_sdk_internal_src))
-cmplat_LOCAL_INTERMEDIATE_SOURCES := \
- $(cm_platform_res)/cyanogenmod/platform/R.java \
- $(cm_platform_res)/cyanogenmod/platform/Manifest.java \
- $(cm_platform_res)/org/cyanogenmod/platform/internal/R.java
+lineage_platform_LOCAL_INTERMEDIATE_SOURCES := \
+ $(lineage_platform_res)/lineageos/platform/R.java \
+ $(lineage_platform_res)/lineageos/platform/Manifest.java \
+ $(lineage_platform_res)/org/lineageos/platform/internal/R.java
LOCAL_INTERMEDIATE_SOURCES := \
- $(cmplat_LOCAL_INTERMEDIATE_SOURCES)
+ $(lineage_platform_LOCAL_INTERMEDIATE_SOURCES)
-# Include aidl files from cyanogenmod.app namespace as well as internal src aidl files
+# Include aidl files from lineageos.app namespace as well as internal src aidl files
LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/sdk/src/java
LOCAL_AIDL_FLAGS := -n
include $(BUILD_JAVA_LIBRARY)
-cm_framework_module := $(LOCAL_INSTALLED_MODULE)
+lineage_framework_module := $(LOCAL_INSTALLED_MODULE)
# Make sure that R.java and Manifest.java are built before we build
# the source for this library.
-cm_framework_res_R_stamp := \
- $(call intermediates-dir-for,APPS,org.cyanogenmod.platform-res,,COMMON)/src/R.stamp
-$(full_classes_compiled_jar): $(cm_framework_res_R_stamp)
-$(built_dex_intermediate): $(cm_framework_res_R_stamp)
+lineage_framework_res_R_stamp := \
+ $(call intermediates-dir-for,APPS,org.lineageos.platform-res,,COMMON)/src/R.stamp
+$(full_classes_compiled_jar): $(lineage_framework_res_R_stamp)
+$(built_dex_intermediate): $(lineage_framework_res_R_stamp)
-$(cm_framework_module): | $(dir $(cm_framework_module))org.cyanogenmod.platform-res.apk
+$(lineage_framework_module): | $(dir $(lineage_framework_module))org.lineageos.platform-res.apk
-cm_framework_built := $(call java-lib-deps, org.cyanogenmod.platform)
+lineage_framework_built := $(call java-lib-deps, org.lineageos.platform)
-# ==== org.cyanogenmod.platform.xml lib def ========================
+# ==== org.lineageos.platform.xml lib def ========================
include $(CLEAR_VARS)
-LOCAL_MODULE := org.cyanogenmod.platform.xml
+LOCAL_MODULE := org.lineageos.platform.xml
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := ETC
@@ -111,34 +112,34 @@ include $(BUILD_PREBUILT)
# ============================================================
include $(CLEAR_VARS)
-LOCAL_MODULE:= org.cyanogenmod.platform.sdk
+LOCAL_MODULE:= org.lineageos.platform.sdk
LOCAL_MODULE_TAGS := optional
LOCAL_REQUIRED_MODULES := services
LOCAL_SRC_FILES := \
- $(call all-java-files-under, $(cyanogenmod_sdk_src)) \
- $(call all-Iaidl-files-under, $(cyanogenmod_sdk_src))
+ $(call all-java-files-under, $(lineage_sdk_src)) \
+ $(call all-Iaidl-files-under, $(lineage_sdk_src))
-# Included aidl files from cyanogenmod.app namespace
+# Included aidl files from lineageos.app namespace
LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/sdk/src/java
-cmsdk_LOCAL_INTERMEDIATE_SOURCES := \
- $(cm_platform_res)/cyanogenmod/platform/R.java \
- $(cm_platform_res)/cyanogenmod/platform/Manifest.java
+lineage_sdk_LOCAL_INTERMEDIATE_SOURCES := \
+ $(lineage_platform_res)/lineageos/platform/R.java \
+ $(lineage_platform_res)/lineageos/platform/Manifest.java
LOCAL_INTERMEDIATE_SOURCES := \
- $(cmsdk_LOCAL_INTERMEDIATE_SOURCES)
+ $(lineage_sdk_LOCAL_INTERMEDIATE_SOURCES)
LOCAL_JAVA_LIBRARIES := \
- $(cmsdk_LOCAL_JAVA_LIBRARIES)
+ $(lineage_sdk_LOCAL_JAVA_LIBRARIES)
# Make sure that R.java and Manifest.java are built before we build
# the source for this library.
-cm_framework_res_R_stamp := \
- $(call intermediates-dir-for,APPS,org.cyanogenmod.platform-res,,COMMON)/src/R.stamp
-$(full_classes_compiled_jar): $(cm_framework_res_R_stamp)
-$(built_dex_intermediate): $(cm_framework_res_R_stamp)
-$(full_target): $(cm_framework_built) $(gen)
+lineage_framework_res_R_stamp := \
+ $(call intermediates-dir-for,APPS,org.lineageos.platform-res,,COMMON)/src/R.stamp
+$(full_classes_compiled_jar): $(lineage_framework_res_R_stamp)
+$(built_dex_intermediate): $(lineage_framework_res_R_stamp)
+$(full_target): $(lineage_framework_built) $(gen)
include $(BUILD_STATIC_JAVA_LIBRARY)
# the sdk as an aar for publish, not built as part of full target
@@ -146,7 +147,7 @@ include $(BUILD_STATIC_JAVA_LIBRARY)
# ============================================================
include $(CLEAR_VARS)
-LOCAL_MODULE := org.cyanogenmod.platform.sdk.aar
+LOCAL_MODULE := org.lineageos.platform.sdk.aar
LOCAL_JACK_ENABLED := disabled
@@ -157,11 +158,11 @@ LOCAL_CONSUMER_PROGUARD_FILE := $(LOCAL_PATH)/sdk/proguard.txt
LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, sdk/res/res)
LOCAL_MANIFEST_FILE := sdk/AndroidManifest.xml
-cmsdk_exclude_files := 'cyanogenmod/library'
-LOCAL_JAR_EXCLUDE_PACKAGES := $(cmsdk_exclude_files)
+lineage_sdk_exclude_files := 'lineageos/library'
+LOCAL_JAR_EXCLUDE_PACKAGES := $(lineage_sdk_exclude_files)
LOCAL_JAR_EXCLUDE_FILES := none
-LOCAL_STATIC_JAVA_LIBRARIES := org.cyanogenmod.platform.sdk
+LOCAL_STATIC_JAVA_LIBRARIES := org.lineageos.platform.sdk
include $(BUILD_STATIC_JAVA_LIBRARY)
$(LOCAL_MODULE) : $(built_aar)
@@ -170,80 +171,80 @@ $(LOCAL_MODULE) : $(built_aar)
#
include $(CLEAR_VARS)
-LOCAL_MODULE:= org.cyanogenmod.platform.internal
+LOCAL_MODULE:= org.lineageos.platform.internal
LOCAL_MODULE_TAGS := optional
LOCAL_REQUIRED_MODULES := services
LOCAL_SRC_FILES := \
- $(call all-java-files-under, $(cyanogenmod_sdk_src)) \
- $(call all-java-files-under, $(cyanogenmod_sdk_internal_src)) \
- $(call all-Iaidl-files-under, $(cyanogenmod_sdk_src)) \
- $(call all-Iaidl-files-under, $(cyanogenmod_sdk_internal_src))
+ $(call all-java-files-under, $(lineage_sdk_src)) \
+ $(call all-java-files-under, $(lineage_sdk_internal_src)) \
+ $(call all-Iaidl-files-under, $(lineage_sdk_src)) \
+ $(call all-Iaidl-files-under, $(lineage_sdk_internal_src))
-# Included aidl files from cyanogenmod.app namespace
+# Included aidl files from lineageos.app namespace
LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/sdk/src/java
LOCAL_AIDL_FLAGS := -n
-cmsdk_LOCAL_INTERMEDIATE_SOURCES := \
- $(cm_platform_res)/cyanogenmod/platform/R.java \
- $(cm_platform_res)/cyanogenmod/platform/Manifest.java \
- $(cm_platform_res)/org/cyanogenmod/platform/internal/R.java \
- $(cm_platform_res)/org/cyanogenmod/platform/internal/Manifest.java
+lineage_sdk_LOCAL_INTERMEDIATE_SOURCES := \
+ $(lineage_platform_res)/lineageos/platform/R.java \
+ $(lineage_platform_res)/lineageos/platform/Manifest.java \
+ $(lineage_platform_res)/org/lineageos/platform/internal/R.java \
+ $(lineage_platform_res)/org/lineageos/platform/internal/Manifest.java
LOCAL_INTERMEDIATE_SOURCES := \
- $(cmsdk_LOCAL_INTERMEDIATE_SOURCES)
+ $(lineage_sdk_LOCAL_INTERMEDIATE_SOURCES)
LOCAL_JAVA_LIBRARIES := \
- $(cmsdk_LOCAL_JAVA_LIBRARIES)
+ $(lineage_sdk_LOCAL_JAVA_LIBRARIES)
-$(full_target): $(cm_framework_built) $(gen)
+$(full_target): $(lineage_framework_built) $(gen)
include $(BUILD_STATIC_JAVA_LIBRARY)
# ===========================================================
# Common Droiddoc vars
-cmplat_docs_src_files := \
- $(call all-java-files-under, $(cyanogenmod_sdk_src)) \
- $(call all-html-files-under, $(cyanogenmod_sdk_src))
+lineage_platform_docs_src_files := \
+ $(call all-java-files-under, $(lineage_sdk_src)) \
+ $(call all-html-files-under, $(lineage_sdk_src))
-cmplat_docs_java_libraries := \
- org.cyanogenmod.platform.sdk
+lineage_platform_docs_java_libraries := \
+ org.lineageos.platform.sdk
# SDK version as defined
-cmplat_docs_SDK_VERSION := 14.0
+lineage_platform_docs_SDK_VERSION := 14.0
# release version
-cmplat_docs_SDK_REL_ID := 7
+lineage_platform_docs_SDK_REL_ID := 7
-cmplat_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
+lineage_platform_docs_LOCAL_MODULE_CLASS := JAVA_LIBRARIES
-cmplat_docs_LOCAL_DROIDDOC_SOURCE_PATH := \
- $(cmplat_docs_src_files)
+lineage_platform_docs_LOCAL_DROIDDOC_SOURCE_PATH := \
+ $(lineage_platform_docs_src_files)
-intermediates.COMMON := $(call intermediates-dir-for,$(LOCAL_MODULE_CLASS),org.cyanogenmod.platform.sdk,,COMMON)
+intermediates.COMMON := $(call intermediates-dir-for,$(LOCAL_MODULE_CLASS),org.lineageos.platform.sdk,,COMMON)
# ==== the api stubs and current.xml ===========================
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
- $(cmplat_docs_src_files)
-LOCAL_INTERMEDIATE_SOURCES:= $(cmplat_LOCAL_INTERMEDIATE_SOURCES)
-LOCAL_JAVA_LIBRARIES:= $(cmplat_docs_java_libraries)
-LOCAL_MODULE_CLASS:= $(cmplat_docs_LOCAL_MODULE_CLASS)
-LOCAL_DROIDDOC_SOURCE_PATH:= $(cmplat_docs_LOCAL_DROIDDOC_SOURCE_PATH)
+ $(lineage_platform_docs_src_files)
+LOCAL_INTERMEDIATE_SOURCES:= $(lineage_platform_LOCAL_INTERMEDIATE_SOURCES)
+LOCAL_JAVA_LIBRARIES:= $(lineage_platform_docs_java_libraries)
+LOCAL_MODULE_CLASS:= $(lineage_platform_docs_LOCAL_MODULE_CLASS)
+LOCAL_DROIDDOC_SOURCE_PATH:= $(lineage_platform_docs_LOCAL_DROIDDOC_SOURCE_PATH)
LOCAL_ADDITIONAL_JAVA_DIR:= $(intermediates.COMMON)/src
-LOCAL_ADDITIONAL_DEPENDENCIES:= $(cmplat_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
+LOCAL_ADDITIONAL_DEPENDENCIES:= $(lineage_platform_docs_LOCAL_ADDITIONAL_DEPENDENCIES)
-LOCAL_MODULE := cm-api-stubs
+LOCAL_MODULE := lineage-api-stubs
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:= build/tools/droiddoc/templates-sdk
LOCAL_DROIDDOC_OPTIONS:= \
- -stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/cmsdk_stubs_current_intermediates/src \
- -stubpackages $(cm_stub_packages) \
- -exclude org.cyanogenmod.platform.internal \
- -api $(INTERNAL_CM_PLATFORM_API_FILE) \
- -removedApi $(INTERNAL_CM_PLATFORM_REMOVED_API_FILE) \
+ -stubs $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/lineage-sdk_stubs_current_intermediates/src \
+ -stubpackages $(lineage_stub_packages) \
+ -exclude org.lineageos.platform.internal \
+ -api $(INTERNAL_LINEAGE_PLATFORM_API_FILE) \
+ -removedApi $(INTERNAL_LINEAGE_PLATFORM_REMOVED_API_FILE) \
-nodocs
LOCAL_UNINSTALLABLE_MODULE := true
@@ -251,54 +252,54 @@ LOCAL_UNINSTALLABLE_MODULE := true
include $(BUILD_DROIDDOC)
# $(gen), i.e. framework.aidl, is also needed while building against the current stub.
-$(full_target): $(cm_framework_built) $(gen)
-$(INTERNAL_CM_PLATFORM_API_FILE): $(full_target)
-$(call dist-for-goals,sdk,$(INTERNAL_CM_PLATFORM_API_FILE))
+$(full_target): $(lineage_framework_built) $(gen)
+$(INTERNAL_LINEAGE_PLATFORM_API_FILE): $(full_target)
+$(call dist-for-goals,sdk,$(INTERNAL_LINEAGE_PLATFORM_API_FILE))
# Documentation
# ===========================================================
include $(CLEAR_VARS)
-LOCAL_MODULE := org.cyanogenmod.platform.sdk
-LOCAL_INTERMEDIATE_SOURCES:= $(cmplat_LOCAL_INTERMEDIATE_SOURCES)
+LOCAL_MODULE := org.lineageos.platform.sdk
+LOCAL_INTERMEDIATE_SOURCES:= $(lineage_platform_LOCAL_INTERMEDIATE_SOURCES)
LOCAL_MODULE_CLASS := JAVA_LIBRARIES
LOCAL_MODULE_TAGS := optional
-LOCAL_SRC_FILES := $(cmplat_docs_src_files)
+LOCAL_SRC_FILES := $(lineage_platform_docs_src_files)
LOCAL_ADDITONAL_JAVA_DIR := $(intermediates.COMMON)/src
LOCAL_IS_HOST_MODULE := false
-LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR := vendor/cm/build/tools/droiddoc/templates-cmsdk
+LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR := vendor/lineage/build/tools/droiddoc/templates-lineage-sdk
LOCAL_ADDITIONAL_DEPENDENCIES := \
services \
- org.cyanogenmod.hardware
+ org.lineageos.hardware
-LOCAL_JAVA_LIBRARIES := $(cmplat_docs_java_libraries)
+LOCAL_JAVA_LIBRARIES := $(lineage_platform_docs_java_libraries)
LOCAL_DROIDDOC_OPTIONS := \
-offlinemode \
- -exclude org.cyanogenmod.platform.internal \
- -hidePackage org.cyanogenmod.platform.internal \
+ -exclude org.lineageos.platform.internal \
+ -hidePackage org.lineageos.platform.internal \
-hdf android.whichdoc offline \
- -hdf sdk.version $(cmplat_docs_docs_SDK_VERSION) \
- -hdf sdk.rel.id $(cmplat_docs_docs_SDK_REL_ID) \
+ -hdf sdk.version $(lineage_platform_docs_docs_SDK_VERSION) \
+ -hdf sdk.rel.id $(lineage_platform_docs_docs_SDK_REL_ID) \
-hdf sdk.preview 0 \
- -since $(CM_SRC_API_DIR)/1.txt 1 \
- -since $(CM_SRC_API_DIR)/2.txt 2 \
- -since $(CM_SRC_API_DIR)/3.txt 3 \
- -since $(CM_SRC_API_DIR)/4.txt 4 \
- -since $(CM_SRC_API_DIR)/5.txt 5 \
- -since $(CM_SRC_API_DIR)/6.txt 6 \
- -since $(CM_SRC_API_DIR)/7.txt 7
+ -since $(LINEAGE_SRC_API_DIR)/1.txt 1 \
+ -since $(LINEAGE_SRC_API_DIR)/2.txt 2 \
+ -since $(LINEAGE_SRC_API_DIR)/3.txt 3 \
+ -since $(LINEAGE_SRC_API_DIR)/4.txt 4 \
+ -since $(LINEAGE_SRC_API_DIR)/5.txt 5 \
+ -since $(LINEAGE_SRC_API_DIR)/6.txt 6 \
+ -since $(LINEAGE_SRC_API_DIR)/7.txt 7
-$(full_target): $(cm_framework_built) $(gen)
+$(full_target): $(lineage_framework_built) $(gen)
include $(BUILD_DROIDDOC)
include $(call first-makefiles-under,$(LOCAL_PATH))
# Cleanup temp vars
# ===========================================================
-cmplat.docs.src_files :=
-cmplat.docs.java_libraries :=
+lineage_platform_docs_src_files :=
+lineage_platform_docs_java_libraries :=
intermediates.COMMON :=
diff --git a/CleanSpec.mk b/CleanSpec.mk
index 98c9b74a..aed1ca68 100644
--- a/CleanSpec.mk
+++ b/CleanSpec.mk
@@ -37,14 +37,14 @@
# *****************************************************************
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST ABOVE THE BANNER
# *****************************************************************
-$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates)
-$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform_intermediates)
-$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates)
-$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.internal_intermediates)
-$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/cmsdk_stubs_current_intermediates)
+$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/org.lineageos.platform-res_intermediates)
+$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/org.lineageos.platform_intermediates)
+$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/org.lineageos.platform.sdk_intermediates)
+$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/org.lineageos.platform.internal_intermediates)
+$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/lineage-sdk_stubs_current_intermediates)
# KeyguardExternalView uses a new interface which requires cleaning to avoid a runtime exception
-$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform_intermediates)
-$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.sdk_intermediates)
-# Purge out the api stubs timestamp files (they're used as a dependency for checkapi-cm)
-$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/docs/cm-api-stubs*)
-$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/docs/cm-system-api-stubs*)
+$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/org.lineageos.platform_intermediates)
+$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/org.lineageos.platform.sdk_intermediates)
+# Purge out the api stubs timestamp files (they're used as a dependency for checkapi-lineage)
+$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/docs/lineage-api-stubs*)
+$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/docs/lineage-system-api-stubs*)
diff --git a/README.md b/README.md
index 4eaf61ad..17106157 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,10 @@
-# CyanogenMod Platform SDK
+# 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](https://github.com/LineageOS/android_prebuilts_cmsdk/tree/master/current) from prebuilts hosted on github or pull directly via Gradle.
+You can either [download](https://github.com/LineageOS/android_prebuilts_lineage-sdk/tree/master/current) from prebuilts hosted on github or pull directly via Gradle.
### Building against release artifacts
@@ -13,7 +13,7 @@ Our stable releases are mirrored in [Maven Central](http://search.maven.org/#sea
```gradle
dependencies {
- compile 'org.cyanogenmod:platform.sdk:5.+'
+ compile 'org.lineageos:platform.sdk:5.+'
}
```
@@ -33,10 +33,10 @@ You can target the `future` or `development` branch by setting your `dependencie
```gradle
dependencies {
- compile 'org.cyanogenmod:platform.sdk:6.0-SNAPSHOT'
+ compile 'org.lineageos:platform.sdk:6.0-SNAPSHOT'
}
```
### WIKI
-For further inquiries regarding this project, please reference the [wiki](https://github.com/LineageOS/cm_platform_sdk/wiki).
+For further inquiries regarding this project, please reference the [wiki](https://github.com/LineageOS/android_lineage-sdk/wiki).
diff --git a/api/lineage_current.txt b/api/lineage_current.txt
index 458660b8..bce4e37e 100644
--- a/api/lineage_current.txt
+++ b/api/lineage_current.txt
@@ -1,4 +1,4 @@
-package cyanogenmod.alarmclock {
+package lineageos.alarmclock {
public final class ClockContract {
field public static final java.lang.String AUTHORITY = "com.android.deskclock";
@@ -14,7 +14,7 @@ package cyanogenmod.alarmclock {
field public static final java.lang.String VIBRATE = "vibrate";
}
- public static abstract interface ClockContract.AlarmsColumns implements cyanogenmod.alarmclock.ClockContract.AlarmSettingColumns {
+ public static abstract interface ClockContract.AlarmsColumns implements lineageos.alarmclock.ClockContract.AlarmSettingColumns {
field public static final android.net.Uri CONTENT_URI;
field public static final java.lang.String DAYS_OF_WEEK = "daysofweek";
field public static final java.lang.String DELETE_AFTER_USE = "delete_after_use";
@@ -31,7 +31,7 @@ package cyanogenmod.alarmclock {
field public static final java.lang.String TIMEZONE_OFFSET = "timezone_offset";
}
- public static abstract interface ClockContract.InstancesColumns implements cyanogenmod.alarmclock.ClockContract.AlarmSettingColumns {
+ public static abstract interface ClockContract.InstancesColumns implements lineageos.alarmclock.ClockContract.AlarmSettingColumns {
field public static final java.lang.String ALARM_ID = "alarm_id";
field public static final java.lang.String ALARM_STATE = "alarm_state";
field public static final android.net.Uri CONTENT_URI;
@@ -52,32 +52,32 @@ package cyanogenmod.alarmclock {
field public static final java.lang.String YEAR = "year";
}
- public class CyanogenModAlarmClock {
- ctor public CyanogenModAlarmClock();
+ public class LineageOSAlarmClock {
+ ctor public LineageOSAlarmClock();
method public static android.content.Intent createAlarmIntent(android.content.Context);
- field public static final java.lang.String ACTION_SET_ALARM_ENABLED = "cyanogenmod.alarmclock.SET_ALARM_ENABLED";
- field public static final java.lang.String EXTRA_ALARM_ID = "cyanogenmod.intent.extra.alarmclock.ID";
- field public static final java.lang.String EXTRA_ENABLED = "cyanogenmod.intent.extra.alarmclock.ENABLED";
- field public static final java.lang.String MODIFY_ALARMS_PERMISSION = "cyanogenmod.alarmclock.permission.MODIFY_ALARMS";
- field public static final java.lang.String READ_ALARMS_PERMISSION = "cyanogenmod.alarmclock.permission.READ_ALARMS";
+ field public static final java.lang.String ACTION_SET_ALARM_ENABLED = "lineageos.alarmclock.SET_ALARM_ENABLED";
+ field public static final java.lang.String EXTRA_ALARM_ID = "lineageos.intent.extra.alarmclock.ID";
+ field public static final java.lang.String EXTRA_ENABLED = "lineageos.intent.extra.alarmclock.ENABLED";
+ field public static final java.lang.String MODIFY_ALARMS_PERMISSION = "lineageos.alarmclock.permission.MODIFY_ALARMS";
+ field public static final java.lang.String READ_ALARMS_PERMISSION = "lineageos.alarmclock.permission.READ_ALARMS";
}
}
-package cyanogenmod.app {
+package lineageos.app {
- public class CMStatusBarManager {
- method public static cyanogenmod.app.CMStatusBarManager getInstance(android.content.Context);
- method public void publishTile(int, cyanogenmod.app.CustomTile);
- method public void publishTile(java.lang.String, int, cyanogenmod.app.CustomTile);
- method public void publishTileAsUser(java.lang.String, int, cyanogenmod.app.CustomTile, android.os.UserHandle);
+ public class LineageStatusBarManager {
+ method public static lineageos.app.LineageStatusBarManager getInstance(android.content.Context);
+ method public void publishTile(int, lineageos.app.CustomTile);
+ method public void publishTile(java.lang.String, int, lineageos.app.CustomTile);
+ method public void publishTileAsUser(java.lang.String, int, lineageos.app.CustomTile, android.os.UserHandle);
method public void removeTile(int);
method public void removeTile(java.lang.String, int);
method public void removeTileAsUser(java.lang.String, int, android.os.UserHandle);
}
- public class CMTelephonyManager {
- method public static cyanogenmod.app.CMTelephonyManager getInstance(android.content.Context);
+ public class LineageTelephonyManager {
+ method public static lineageos.app.LineageTelephonyManager getInstance(android.content.Context);
method public java.util.List getSubInformation();
method public boolean isDataConnectionEnabled();
method public boolean isDataConnectionSelectedOnSub(int);
@@ -92,15 +92,15 @@ package cyanogenmod.app {
public class CustomTile implements android.os.Parcelable {
ctor public CustomTile(android.os.Parcel);
ctor public CustomTile();
- method public cyanogenmod.app.CustomTile clone();
+ method public lineageos.app.CustomTile clone();
method public int describeContents();
method public void writeToParcel(android.os.Parcel, int);
- field public static final android.os.Parcelable.Creator CREATOR;
+ field public static final android.os.Parcelable.Creator CREATOR;
field public static final int PSEUDO_GRID_ITEM_MAX_COUNT = 9; // 0x9
field public boolean collapsePanel;
field public java.lang.String contentDescription;
field public android.app.PendingIntent deleteIntent;
- field public cyanogenmod.app.CustomTile.ExpandedStyle expandedStyle;
+ field public lineageos.app.CustomTile.ExpandedStyle expandedStyle;
field public int icon;
field public java.lang.String label;
field public android.app.PendingIntent onClick;
@@ -113,24 +113,24 @@ package cyanogenmod.app {
public static class CustomTile.Builder {
ctor public CustomTile.Builder(android.content.Context);
- method public cyanogenmod.app.CustomTile build();
- method public cyanogenmod.app.CustomTile.Builder hasSensitiveData(boolean);
- method public cyanogenmod.app.CustomTile.Builder setContentDescription(java.lang.String);
- method public cyanogenmod.app.CustomTile.Builder setContentDescription(int);
- method public cyanogenmod.app.CustomTile.Builder setDeleteIntent(android.app.PendingIntent);
- method public cyanogenmod.app.CustomTile.Builder setExpandedStyle(cyanogenmod.app.CustomTile.ExpandedStyle);
- method public cyanogenmod.app.CustomTile.Builder setIcon(int);
- method public cyanogenmod.app.CustomTile.Builder setIcon(android.graphics.Bitmap);
- method public cyanogenmod.app.CustomTile.Builder setLabel(java.lang.String);
- method public cyanogenmod.app.CustomTile.Builder setLabel(int);
- method public cyanogenmod.app.CustomTile.Builder setOnClickIntent(android.app.PendingIntent);
- method public cyanogenmod.app.CustomTile.Builder setOnClickUri(android.net.Uri);
- method public cyanogenmod.app.CustomTile.Builder setOnLongClickIntent(android.app.PendingIntent);
- method public cyanogenmod.app.CustomTile.Builder setOnSettingsClickIntent(android.content.Intent);
- method public cyanogenmod.app.CustomTile.Builder shouldCollapsePanel(boolean);
+ method public lineageos.app.CustomTile build();
+ method public lineageos.app.CustomTile.Builder hasSensitiveData(boolean);
+ method public lineageos.app.CustomTile.Builder setContentDescription(java.lang.String);
+ method public lineageos.app.CustomTile.Builder setContentDescription(int);
+ method public lineageos.app.CustomTile.Builder setDeleteIntent(android.app.PendingIntent);
+ method public lineageos.app.CustomTile.Builder setExpandedStyle(lineageos.app.CustomTile.ExpandedStyle);
+ method public lineageos.app.CustomTile.Builder setIcon(int);
+ method public lineageos.app.CustomTile.Builder setIcon(android.graphics.Bitmap);
+ method public lineageos.app.CustomTile.Builder setLabel(java.lang.String);
+ method public lineageos.app.CustomTile.Builder setLabel(int);
+ method public lineageos.app.CustomTile.Builder setOnClickIntent(android.app.PendingIntent);
+ method public lineageos.app.CustomTile.Builder setOnClickUri(android.net.Uri);
+ method public lineageos.app.CustomTile.Builder setOnLongClickIntent(android.app.PendingIntent);
+ method public lineageos.app.CustomTile.Builder setOnSettingsClickIntent(android.content.Intent);
+ method public lineageos.app.CustomTile.Builder shouldCollapsePanel(boolean);
}
- public static class CustomTile.ExpandedGridItem extends cyanogenmod.app.CustomTile.ExpandedItem {
+ public static class CustomTile.ExpandedGridItem extends lineageos.app.CustomTile.ExpandedItem {
ctor public CustomTile.ExpandedGridItem();
method public void setExpandedGridItemBitmap(android.graphics.Bitmap);
method public void setExpandedGridItemDrawable(int);
@@ -142,7 +142,7 @@ package cyanogenmod.app {
ctor protected CustomTile.ExpandedItem(android.os.Parcel);
method public int describeContents();
method public void writeToParcel(android.os.Parcel, int);
- field public static final android.os.Parcelable.Creator CREATOR;
+ field public static final android.os.Parcelable.Creator CREATOR;
field public android.graphics.Bitmap itemBitmapResource;
field public int itemDrawableResourceId;
field public java.lang.String itemSummary;
@@ -150,7 +150,7 @@ package cyanogenmod.app {
field public android.app.PendingIntent onClickPendingIntent;
}
- public static class CustomTile.ExpandedListItem extends cyanogenmod.app.CustomTile.ExpandedItem {
+ public static class CustomTile.ExpandedListItem extends lineageos.app.CustomTile.ExpandedItem {
ctor public CustomTile.ExpandedListItem();
method public void setExpandedListItemBitmap(android.graphics.Bitmap);
method public void setExpandedListItemDrawable(int);
@@ -162,26 +162,26 @@ package cyanogenmod.app {
public static class CustomTile.ExpandedStyle implements android.os.Parcelable {
method public int describeContents();
method public android.widget.RemoteViews getContentViews();
- method public cyanogenmod.app.CustomTile.ExpandedItem[] getExpandedItems();
+ method public lineageos.app.CustomTile.ExpandedItem[] getExpandedItems();
method public int getStyle();
method public void writeToParcel(android.os.Parcel, int);
- field public static final android.os.Parcelable.Creator CREATOR;
+ field public static final android.os.Parcelable.Creator CREATOR;
field public static final int GRID_STYLE = 0; // 0x0
field public static final int LIST_STYLE = 1; // 0x1
field public static final int REMOTE_STYLE = 2; // 0x2
}
- public static class CustomTile.GridExpandedStyle extends cyanogenmod.app.CustomTile.ExpandedStyle {
+ public static class CustomTile.GridExpandedStyle extends lineageos.app.CustomTile.ExpandedStyle {
ctor public CustomTile.GridExpandedStyle();
- method public void setGridItems(java.util.ArrayList);
+ method public void setGridItems(java.util.ArrayList);
}
- public static class CustomTile.ListExpandedStyle extends cyanogenmod.app.CustomTile.ExpandedStyle {
+ public static class CustomTile.ListExpandedStyle extends lineageos.app.CustomTile.ExpandedStyle {
ctor public CustomTile.ListExpandedStyle();
- method public void setListItems(java.util.ArrayList);
+ method public void setListItems(java.util.ArrayList);
}
- public static class CustomTile.RemoteExpandedStyle extends cyanogenmod.app.CustomTile.ExpandedStyle {
+ public static class CustomTile.RemoteExpandedStyle extends lineageos.app.CustomTile.ExpandedStyle {
ctor public CustomTile.RemoteExpandedStyle();
method public void setRemoteViews(android.widget.RemoteViews);
}
@@ -189,20 +189,20 @@ package cyanogenmod.app {
public class CustomTileListenerService extends android.app.Service {
ctor public CustomTileListenerService();
method public android.os.IBinder onBind(android.content.Intent);
- method public void onCustomTilePosted(cyanogenmod.app.StatusBarPanelCustomTile);
- method public void onCustomTileRemoved(cyanogenmod.app.StatusBarPanelCustomTile);
+ method public void onCustomTilePosted(lineageos.app.StatusBarPanelCustomTile);
+ method public void onCustomTileRemoved(lineageos.app.StatusBarPanelCustomTile);
method public void onListenerConnected();
method public final void removeCustomTile(java.lang.String, java.lang.String, int);
- field public static final java.lang.String SERVICE_INTERFACE = "cyanogenmod.app.CustomTileListenerService";
+ field public static final java.lang.String SERVICE_INTERFACE = "lineageos.app.CustomTileListenerService";
}
public class LiveLockScreenInfo implements android.os.Parcelable {
ctor public LiveLockScreenInfo(android.content.ComponentName, int);
ctor public LiveLockScreenInfo();
- method public cyanogenmod.app.LiveLockScreenInfo clone();
+ method public lineageos.app.LiveLockScreenInfo clone();
method public int describeContents();
method public void writeToParcel(android.os.Parcel, int);
- field public static final android.os.Parcelable.Creator CREATOR;
+ field public static final android.os.Parcelable.Creator CREATOR;
field public static final int PRIORITY_DEFAULT = 0; // 0x0
field public static final int PRIORITY_HIGH = 1; // 0x1
field public static final int PRIORITY_LOW = -1; // 0xffffffff
@@ -214,31 +214,31 @@ package cyanogenmod.app {
public static class LiveLockScreenInfo.Builder {
ctor public LiveLockScreenInfo.Builder();
- method public cyanogenmod.app.LiveLockScreenInfo build();
- method public cyanogenmod.app.LiveLockScreenInfo.Builder setComponent(android.content.ComponentName);
- method public cyanogenmod.app.LiveLockScreenInfo.Builder setPriority(int);
+ method public lineageos.app.LiveLockScreenInfo build();
+ method public lineageos.app.LiveLockScreenInfo.Builder setComponent(android.content.ComponentName);
+ method public lineageos.app.LiveLockScreenInfo.Builder setPriority(int);
}
public class LiveLockScreenManager {
method public void cancel(int);
- method public cyanogenmod.app.LiveLockScreenInfo getDefaultLiveLockScreen();
- method public static cyanogenmod.app.LiveLockScreenManager getInstance(android.content.Context);
- method public void setDefaultLiveLockScreen(cyanogenmod.app.LiveLockScreenInfo);
- method public boolean show(int, cyanogenmod.app.LiveLockScreenInfo);
- field public static final java.lang.String SERVICE_INTERFACE = "cyanogenmod.app.LiveLockScreenManagerService";
+ method public lineageos.app.LiveLockScreenInfo getDefaultLiveLockScreen();
+ method public static lineageos.app.LiveLockScreenManager getInstance(android.content.Context);
+ method public void setDefaultLiveLockScreen(lineageos.app.LiveLockScreenInfo);
+ method public boolean show(int, lineageos.app.LiveLockScreenInfo);
+ field public static final java.lang.String SERVICE_INTERFACE = "lineageos.app.LiveLockScreenManagerService";
}
public class PartnerInterface {
method public java.lang.String getCurrentHotwordPackageName();
- method public static cyanogenmod.app.PartnerInterface getInstance(android.content.Context);
+ method public static lineageos.app.PartnerInterface getInstance(android.content.Context);
method public void rebootDevice();
method public void setAirplaneModeEnabled(boolean);
method public void setMobileDataEnabled(boolean);
method public boolean setZenMode(int);
method public boolean setZenModeWithDuration(int, long);
method public void shutdownDevice();
- field public static final java.lang.String MODIFY_NETWORK_SETTINGS_PERMISSION = "cyanogenmod.permission.MODIFY_NETWORK_SETTINGS";
- field public static final java.lang.String MODIFY_SOUND_SETTINGS_PERMISSION = "cyanogenmod.permission.MODIFY_SOUND_SETTINGS";
+ field public static final java.lang.String MODIFY_NETWORK_SETTINGS_PERMISSION = "lineageos.permission.MODIFY_NETWORK_SETTINGS";
+ field public static final java.lang.String MODIFY_SOUND_SETTINGS_PERMISSION = "lineageos.permission.MODIFY_SOUND_SETTINGS";
field public static final int ZEN_MODE_IMPORTANT_INTERRUPTIONS = 1; // 0x1
field public static final int ZEN_MODE_NO_INTERRUPTIONS = 2; // 0x2
field public static final int ZEN_MODE_OFF = 0; // 0x0
@@ -249,38 +249,38 @@ package cyanogenmod.app {
method public void addSecondaryUuid(java.util.UUID);
method public int compareTo(java.lang.Object);
method public int describeContents();
- method public cyanogenmod.profiles.AirplaneModeSettings getAirplaneMode();
- method public cyanogenmod.profiles.BrightnessSettings getBrightness();
- method public cyanogenmod.profiles.ConnectionSettings getConnectionSettingWithSubId(int);
- method public java.util.Collection getConnectionSettings();
+ method public lineageos.profiles.AirplaneModeSettings getAirplaneMode();
+ method public lineageos.profiles.BrightnessSettings getBrightness();
+ method public lineageos.profiles.ConnectionSettings getConnectionSettingWithSubId(int);
+ method public java.util.Collection getConnectionSettings();
method public int getDozeMode();
method public int getExpandedDesktopMode();
method public java.lang.String getName();
method public int getNotificationLightMode();
method public int getProfileType();
- method public cyanogenmod.profiles.RingModeSettings getRingMode();
- method public cyanogenmod.profiles.LockSettings getScreenLockMode();
+ method public lineageos.profiles.RingModeSettings getRingMode();
+ method public lineageos.profiles.LockSettings getScreenLockMode();
method public java.util.UUID[] getSecondaryUuids();
- method public cyanogenmod.profiles.ConnectionSettings getSettingsForConnection(int);
- method public cyanogenmod.profiles.StreamSettings getSettingsForStream(int);
- method public java.util.Collection getStreamSettings();
+ method public lineageos.profiles.ConnectionSettings getSettingsForConnection(int);
+ method public lineageos.profiles.StreamSettings getSettingsForStream(int);
+ method public java.util.Collection getStreamSettings();
method public int getTriggerState(int, java.lang.String);
- method public java.util.ArrayList getTriggersFromType(int);
+ method public java.util.ArrayList getTriggersFromType(int);
method public java.util.UUID getUuid();
method public boolean isConditionalType();
- method public void setAirplaneMode(cyanogenmod.profiles.AirplaneModeSettings);
- method public void setBrightness(cyanogenmod.profiles.BrightnessSettings);
- method public void setConnectionSettings(cyanogenmod.profiles.ConnectionSettings);
+ method public void setAirplaneMode(lineageos.profiles.AirplaneModeSettings);
+ method public void setBrightness(lineageos.profiles.BrightnessSettings);
+ method public void setConnectionSettings(lineageos.profiles.ConnectionSettings);
method public void setDozeMode(int);
method public void setExpandedDesktopMode(int);
method public void setName(java.lang.String);
method public void setNotificationLightMode(int);
method public void setProfileType(int);
- method public void setRingMode(cyanogenmod.profiles.RingModeSettings);
- method public void setScreenLockMode(cyanogenmod.profiles.LockSettings);
+ method public void setRingMode(lineageos.profiles.RingModeSettings);
+ method public void setScreenLockMode(lineageos.profiles.LockSettings);
method public void setSecondaryUuids(java.util.List);
- method public void setStreamSettings(cyanogenmod.profiles.StreamSettings);
- method public void setTrigger(cyanogenmod.app.Profile.ProfileTrigger);
+ method public void setStreamSettings(lineageos.profiles.StreamSettings);
+ method public void setTrigger(lineageos.app.Profile.ProfileTrigger);
method public void writeToParcel(android.os.Parcel, int);
}
@@ -344,47 +344,47 @@ package cyanogenmod.app {
}
public class ProfileManager {
- method public void addProfile(cyanogenmod.app.Profile);
- method public cyanogenmod.app.Profile getActiveProfile();
- method public static cyanogenmod.app.ProfileManager getInstance(android.content.Context);
- method public deprecated cyanogenmod.app.Profile getProfile(java.lang.String);
- method public cyanogenmod.app.Profile getProfile(java.util.UUID);
+ method public void addProfile(lineageos.app.Profile);
+ method public lineageos.app.Profile getActiveProfile();
+ method public static lineageos.app.ProfileManager getInstance(android.content.Context);
+ method public deprecated lineageos.app.Profile getProfile(java.lang.String);
+ method public lineageos.app.Profile getProfile(java.util.UUID);
method public java.lang.String[] getProfileNames();
- method public cyanogenmod.app.Profile[] getProfiles();
+ method public lineageos.app.Profile[] getProfiles();
method public boolean isProfilesEnabled();
method public boolean profileExists(java.lang.String);
method public boolean profileExists(java.util.UUID);
- method public void removeProfile(cyanogenmod.app.Profile);
+ method public void removeProfile(lineageos.app.Profile);
method public void resetAll();
method public deprecated void setActiveProfile(java.lang.String);
method public void setActiveProfile(java.util.UUID);
- method public void updateProfile(cyanogenmod.app.Profile);
- field public static final java.lang.String ACTION_PROFILE_PICKER = "cyanogenmod.platform.intent.action.PROFILE_PICKER";
+ method public void updateProfile(lineageos.app.Profile);
+ field public static final java.lang.String ACTION_PROFILE_PICKER = "lineageos.platform.intent.action.PROFILE_PICKER";
field public static final java.lang.String EXTRA_LAST_PROFILE_NAME = "lastName";
field public static final java.lang.String EXTRA_LAST_PROFILE_UUID = "lastUuid";
field public static final java.lang.String EXTRA_PROFILES_STATE = "profile_state";
- field public static final java.lang.String EXTRA_PROFILE_DIALOG_THEME = "cyanogenmod.platform.intent.extra.profile.DIALOG_THEME";
- field public static final java.lang.String EXTRA_PROFILE_EXISTING_UUID = "cyanogenmod.platform.extra.profile.EXISTING_UUID";
+ field public static final java.lang.String EXTRA_PROFILE_DIALOG_THEME = "lineageos.platform.intent.extra.profile.DIALOG_THEME";
+ field public static final java.lang.String EXTRA_PROFILE_EXISTING_UUID = "lineageos.platform.extra.profile.EXISTING_UUID";
field public static final java.lang.String EXTRA_PROFILE_NAME = "name";
- field public static final java.lang.String EXTRA_PROFILE_PICKED_UUID = "cyanogenmod.platform.intent.extra.profile.PICKED_UUID";
- field public static final java.lang.String EXTRA_PROFILE_SHOW_NONE = "cyanogenmod.platform.intent.extra.profile.SHOW_NONE";
- field public static final java.lang.String EXTRA_PROFILE_TITLE = "cyanogenmod.platform.intent.extra.profile.TITLE";
+ field public static final java.lang.String EXTRA_PROFILE_PICKED_UUID = "lineageos.platform.intent.extra.profile.PICKED_UUID";
+ field public static final java.lang.String EXTRA_PROFILE_SHOW_NONE = "lineageos.platform.intent.extra.profile.SHOW_NONE";
+ field public static final java.lang.String EXTRA_PROFILE_TITLE = "lineageos.platform.intent.extra.profile.TITLE";
field public static final java.lang.String EXTRA_PROFILE_UUID = "uuid";
- field public static final java.lang.String INTENT_ACTION_PROFILE_SELECTED = "cyanogenmod.platform.intent.action.PROFILE_SELECTED";
- field public static final java.lang.String INTENT_ACTION_PROFILE_UPDATED = "cyanogenmod.platform.intent.action.PROFILE_UPDATED";
+ field public static final java.lang.String INTENT_ACTION_PROFILE_SELECTED = "lineageos.platform.intent.action.PROFILE_SELECTED";
+ field public static final java.lang.String INTENT_ACTION_PROFILE_UPDATED = "lineageos.platform.intent.action.PROFILE_UPDATED";
field public static final java.util.UUID NO_PROFILE;
- field public static final java.lang.String PROFILES_STATE_CHANGED_ACTION = "cyanogenmod.platform.app.profiles.PROFILES_STATE_CHANGED";
+ field public static final java.lang.String PROFILES_STATE_CHANGED_ACTION = "lineageos.platform.app.profiles.PROFILES_STATE_CHANGED";
field public static final int PROFILES_STATE_DISABLED = 0; // 0x0
field public static final int PROFILES_STATE_ENABLED = 1; // 0x1
}
public class StatusBarPanelCustomTile implements android.os.Parcelable {
- ctor public StatusBarPanelCustomTile(java.lang.String, java.lang.String, java.lang.String, int, java.lang.String, int, int, cyanogenmod.app.CustomTile, android.os.UserHandle);
- ctor public StatusBarPanelCustomTile(java.lang.String, java.lang.String, java.lang.String, int, java.lang.String, int, int, cyanogenmod.app.CustomTile, android.os.UserHandle, long);
+ ctor public StatusBarPanelCustomTile(java.lang.String, java.lang.String, java.lang.String, int, java.lang.String, int, int, lineageos.app.CustomTile, android.os.UserHandle);
+ ctor public StatusBarPanelCustomTile(java.lang.String, java.lang.String, java.lang.String, int, java.lang.String, int, int, lineageos.app.CustomTile, android.os.UserHandle, long);
ctor public StatusBarPanelCustomTile(android.os.Parcel);
- method public cyanogenmod.app.StatusBarPanelCustomTile clone();
+ method public lineageos.app.StatusBarPanelCustomTile clone();
method public int describeContents();
- method public cyanogenmod.app.CustomTile getCustomTile();
+ method public lineageos.app.CustomTile getCustomTile();
method public int getId();
method public java.lang.String getKey();
method public java.lang.String getPackage();
@@ -393,36 +393,36 @@ package cyanogenmod.app {
method public android.os.UserHandle getUser();
method public int getUserId();
method public void writeToParcel(android.os.Parcel, int);
- field public static final android.os.Parcelable.Creator CREATOR;
+ field public static final android.os.Parcelable.Creator CREATOR;
}
}
-package cyanogenmod.content {
+package lineageos.content {
public class Intent {
ctor public Intent();
- field public static final java.lang.String ACTION_PROTECTED = "cyanogenmod.intent.action.PACKAGE_PROTECTED";
- field public static final java.lang.String ACTION_PROTECTED_CHANGED = "cyanogenmod.intent.action.PROTECTED_COMPONENT_UPDATE";
- field public static final java.lang.String ACTION_THEME_INSTALLED = "cyanogenmod.intent.action.THEME_INSTALLED";
- field public static final java.lang.String ACTION_THEME_REMOVED = "cyanogenmod.intent.action.THEME_REMOVED";
- field public static final java.lang.String ACTION_THEME_UPDATED = "cyanogenmod.intent.action.THEME_UPDATED";
- field public static final java.lang.String CATEGORY_THEME_PACKAGE_INSTALLED_STATE_CHANGE = "cyanogenmod.intent.category.THEME_PACKAGE_INSTALL_STATE_CHANGE";
- field public static final java.lang.String EXTRA_PROTECTED_COMPONENTS = "cyanogenmod.intent.extra.PACKAGE_PROTECTED_COMPONENTS";
- field public static final java.lang.String EXTRA_PROTECTED_STATE = "cyanogenmod.intent.extra.PACKAGE_PROTECTED_STATE";
+ field public static final java.lang.String ACTION_PROTECTED = "lineageos.intent.action.PACKAGE_PROTECTED";
+ field public static final java.lang.String ACTION_PROTECTED_CHANGED = "lineageos.intent.action.PROTECTED_COMPONENT_UPDATE";
+ field public static final java.lang.String ACTION_THEME_INSTALLED = "lineageos.intent.action.THEME_INSTALLED";
+ field public static final java.lang.String ACTION_THEME_REMOVED = "lineageos.intent.action.THEME_REMOVED";
+ field public static final java.lang.String ACTION_THEME_UPDATED = "lineageos.intent.action.THEME_UPDATED";
+ field public static final java.lang.String CATEGORY_THEME_PACKAGE_INSTALLED_STATE_CHANGE = "lineageos.intent.category.THEME_PACKAGE_INSTALL_STATE_CHANGE";
+ field public static final java.lang.String EXTRA_PROTECTED_COMPONENTS = "lineageos.intent.extra.PACKAGE_PROTECTED_COMPONENTS";
+ field public static final java.lang.String EXTRA_PROTECTED_STATE = "lineageos.intent.extra.PACKAGE_PROTECTED_STATE";
field public static final java.lang.String URI_SCHEME_PACKAGE = "package";
}
}
-package cyanogenmod.externalviews {
+package lineageos.externalviews {
public abstract class KeyguardExternalViewProviderService extends android.app.Service {
ctor public KeyguardExternalViewProviderService();
- method protected abstract cyanogenmod.externalviews.KeyguardExternalViewProviderService.Provider createExternalView(android.os.Bundle);
+ method protected abstract lineageos.externalviews.KeyguardExternalViewProviderService.Provider createExternalView(android.os.Bundle);
method public final android.os.IBinder onBind(android.content.Intent);
- field public static final java.lang.String META_DATA = "cyanogenmod.externalviews.keyguard";
- field public static final java.lang.String SERVICE_INTERFACE = "cyanogenmod.externalviews.KeyguardExternalViewProviderService";
+ field public static final java.lang.String META_DATA = "lineageos.externalviews.keyguard";
+ field public static final java.lang.String SERVICE_INTERFACE = "lineageos.externalviews.KeyguardExternalViewProviderService";
}
protected abstract class KeyguardExternalViewProviderService.Provider {
@@ -446,16 +446,16 @@ package cyanogenmod.externalviews {
}
-package cyanogenmod.hardware {
+package lineageos.hardware {
- public final class CMHardwareManager {
+ public final class LineageHardwareManager {
method public boolean deletePersistentObject(java.lang.String);
method public boolean get(int);
method public int getColorBalance();
method public android.util.Range getColorBalanceRange();
- method public cyanogenmod.hardware.DisplayMode getCurrentDisplayMode();
- method public cyanogenmod.hardware.DisplayMode getDefaultDisplayMode();
- method public cyanogenmod.hardware.HSIC getDefaultPictureAdjustment();
+ method public lineageos.hardware.DisplayMode getCurrentDisplayMode();
+ method public lineageos.hardware.DisplayMode getDefaultDisplayMode();
+ method public lineageos.hardware.HSIC getDefaultPictureAdjustment();
method public int[] getDisplayColorCalibration();
method public int getDisplayColorCalibrationDefault();
method public int getDisplayColorCalibrationMax();
@@ -463,14 +463,14 @@ package cyanogenmod.hardware {
method public deprecated int[] getDisplayGammaCalibration(int);
method public deprecated int getDisplayGammaCalibrationMax();
method public deprecated int getDisplayGammaCalibrationMin();
- method public cyanogenmod.hardware.DisplayMode[] getDisplayModes();
- method public cyanogenmod.hardware.TouchscreenGesture[] getTouchscreenGestures();
- method public static cyanogenmod.hardware.CMHardwareManager getInstance(android.content.Context);
+ method public lineageos.hardware.DisplayMode[] getDisplayModes();
+ method public lineageos.hardware.TouchscreenGesture[] getTouchscreenGestures();
+ method public static lineageos.hardware.LineageHardwareManager getInstance(android.content.Context);
method public java.lang.String getLtoDestination();
method public long getLtoDownloadInterval();
method public java.lang.String getLtoSource();
method public deprecated int getNumGammaControls();
- method public cyanogenmod.hardware.HSIC getPictureAdjustment();
+ method public lineageos.hardware.HSIC getPictureAdjustment();
method public java.util.List> getPictureAdjustmentRanges();
method public java.lang.String getSerialNumber();
method public int getSupportedFeatures();
@@ -486,17 +486,17 @@ package cyanogenmod.hardware {
method public byte[] readPersistentBytes(java.lang.String);
method public int readPersistentInt(java.lang.String);
method public java.lang.String readPersistentString(java.lang.String);
- method public boolean registerThermalListener(cyanogenmod.hardware.ThermalListenerCallback);
+ method public boolean registerThermalListener(lineageos.hardware.ThermalListenerCallback);
method public boolean requireAdaptiveBacklightForSunlightEnhancement();
method public boolean set(int, boolean);
method public boolean setColorBalance(int);
method public boolean setDisplayColorCalibration(int[]);
method public deprecated boolean setDisplayGammaCalibration(int, int[]);
- method public boolean setDisplayMode(cyanogenmod.hardware.DisplayMode, boolean);
- method public boolean setPictureAdjustment(cyanogenmod.hardware.HSIC);
- method public boolean setTouchscreenGestureEnabled(cyanogenmod.hardware.TouchscreenGesture, boolean);
+ method public boolean setDisplayMode(lineageos.hardware.DisplayMode, boolean);
+ method public boolean setPictureAdjustment(lineageos.hardware.HSIC);
+ method public boolean setTouchscreenGestureEnabled(lineageos.hardware.TouchscreenGesture, boolean);
method public boolean setVibratorIntensity(int);
- method public boolean unRegisterThermalListener(cyanogenmod.hardware.ThermalListenerCallback);
+ method public boolean unRegisterThermalListener(lineageos.hardware.ThermalListenerCallback);
method public boolean writePersistentBytes(java.lang.String, byte[]);
method public boolean writePersistentInt(java.lang.String, int);
method public boolean writePersistentString(java.lang.String, java.lang.String);
@@ -534,7 +534,7 @@ package cyanogenmod.hardware {
ctor public HSIC(float, float, float, float, float);
method public int describeContents();
method public java.lang.String flatten();
- method public static cyanogenmod.hardware.HSIC fromFloatArray(float[]);
+ method public static lineageos.hardware.HSIC fromFloatArray(float[]);
method public float getContrast();
method public float getHue();
method public float getIntensity();
@@ -542,7 +542,7 @@ package cyanogenmod.hardware {
method public float getSaturationThreshold();
method public float[] toFloatArray();
method public int[] toRGB();
- method public static cyanogenmod.hardware.HSIC unflattenFrom(java.lang.String) throws java.lang.NumberFormatException;
+ method public static lineageos.hardware.HSIC unflattenFrom(java.lang.String) throws java.lang.NumberFormatException;
method public void writeToParcel(android.os.Parcel, int);
}
@@ -559,10 +559,10 @@ package cyanogenmod.hardware {
method public abstract void onThermalChanged(int) throws android.os.RemoteException;
}
- public static abstract class IThermalListenerCallback.Stub extends android.os.Binder implements cyanogenmod.hardware.IThermalListenerCallback {
+ public static abstract class IThermalListenerCallback.Stub extends android.os.Binder implements lineageos.hardware.IThermalListenerCallback {
ctor public IThermalListenerCallback.Stub();
method public android.os.IBinder asBinder();
- method public static cyanogenmod.hardware.IThermalListenerCallback asInterface(android.os.IBinder);
+ method public static lineageos.hardware.IThermalListenerCallback asInterface(android.os.IBinder);
method public boolean onTransact(int, android.os.Parcel, android.os.Parcel, int) throws android.os.RemoteException;
}
@@ -592,13 +592,13 @@ package cyanogenmod.hardware {
public class LiveDisplayManager {
method public float[] getColorAdjustment();
- method public cyanogenmod.hardware.LiveDisplayConfig getConfig();
+ method public lineageos.hardware.LiveDisplayConfig getConfig();
method public int getDayColorTemperature();
- method public cyanogenmod.hardware.HSIC getDefaultPictureAdjustment();
- method public static synchronized cyanogenmod.hardware.LiveDisplayManager getInstance(android.content.Context);
+ method public lineageos.hardware.HSIC getDefaultPictureAdjustment();
+ method public static synchronized lineageos.hardware.LiveDisplayManager getInstance(android.content.Context);
method public int getMode();
method public int getNightColorTemperature();
- method public cyanogenmod.hardware.HSIC getPictureAdjustment();
+ method public lineageos.hardware.HSIC getPictureAdjustment();
method public boolean isAutoContrastEnabled();
method public boolean isAutomaticOutdoorModeEnabled();
method public boolean isCABCEnabled();
@@ -611,7 +611,7 @@ package cyanogenmod.hardware {
method public boolean setDayColorTemperature(int);
method public boolean setMode(int);
method public boolean setNightColorTemperature(int);
- method public boolean setPictureAdjustment(cyanogenmod.hardware.HSIC);
+ method public boolean setPictureAdjustment(lineageos.hardware.HSIC);
field public static final int ADJUSTMENT_CONTRAST = 3; // 0x3
field public static final int ADJUSTMENT_HUE = 0; // 0x0
field public static final int ADJUSTMENT_INTENSITY = 2; // 0x2
@@ -631,7 +631,7 @@ package cyanogenmod.hardware {
field public static final int MODE_OUTDOOR = 3; // 0x3
}
- public abstract class ThermalListenerCallback extends cyanogenmod.hardware.IThermalListenerCallback.Stub {
+ public abstract class ThermalListenerCallback extends lineageos.hardware.IThermalListenerCallback.Stub {
ctor public ThermalListenerCallback();
}
@@ -647,13 +647,13 @@ package cyanogenmod.hardware {
}
-package cyanogenmod.media {
+package lineageos.media {
public class MediaRecorder {
ctor public MediaRecorder();
- field public static final java.lang.String ACTION_HOTWORD_INPUT_CHANGED = "com.cyanogenmod.intent.action.HOTWORD_INPUT_CHANGED";
+ field public static final java.lang.String ACTION_HOTWORD_INPUT_CHANGED = "org.lineageos.intent.action.HOTWORD_INPUT_CHANGED";
field public static final java.lang.String CAPTURE_AUDIO_HOTWORD_PERMISSION = "android.permission.CAPTURE_AUDIO_HOTWORD";
- field public static final java.lang.String EXTRA_CURRENT_PACKAGE_NAME = "com.cyanogenmod.intent.extra.CURRENT_PACKAGE_NAME";
+ field public static final java.lang.String EXTRA_CURRENT_PACKAGE_NAME = "org.lineageos.intent.extra.CURRENT_PACKAGE_NAME";
}
public static class MediaRecorder.AudioSource {
@@ -663,23 +663,23 @@ package cyanogenmod.media {
}
-package cyanogenmod.os {
+package lineageos.os {
public class Build {
ctor public Build();
method public static java.lang.String getNameForSDKInt(int);
- field public static final java.lang.String CYANOGENMOD_DISPLAY_VERSION;
- field public static final java.lang.String CYANOGENMOD_VERSION;
+ field public static final java.lang.String LINEAGEOS_DISPLAY_VERSION;
+ field public static final java.lang.String LINEAGEOS_VERSION;
field public static final java.lang.String UNKNOWN = "unknown";
}
- public static class Build.CM_VERSION {
- ctor public Build.CM_VERSION();
+ public static class Build.LINEAGE_VERSION {
+ ctor public Build.LINEAGE_VERSION();
field public static final int SDK_INT;
}
- public static class Build.CM_VERSION_CODES {
- ctor public Build.CM_VERSION_CODES();
+ public static class Build.LINEAGE_VERSION_CODES {
+ ctor public Build.LINEAGE_VERSION_CODES();
field public static final int APRICOT = 1; // 0x1
field public static final int BOYSENBERRY = 2; // 0x2
field public static final int CANTALOUPE = 3; // 0x3
@@ -690,8 +690,8 @@ package cyanogenmod.os {
}
public final class Concierge {
- method public static cyanogenmod.os.Concierge.ParcelInfo prepareParcel(android.os.Parcel);
- method public static cyanogenmod.os.Concierge.ParcelInfo receiveParcel(android.os.Parcel);
+ method public static lineageos.os.Concierge.ParcelInfo prepareParcel(android.os.Parcel);
+ method public static lineageos.os.Concierge.ParcelInfo receiveParcel(android.os.Parcel);
}
public static final class Concierge.ParcelInfo {
@@ -701,7 +701,7 @@ package cyanogenmod.os {
}
-package cyanogenmod.platform {
+package lineageos.platform {
public final class Manifest {
ctor public Manifest();
@@ -709,35 +709,35 @@ package cyanogenmod.platform {
public static final class Manifest.permission {
ctor public Manifest.permission();
- field public static final java.lang.String ACCESS_APP_SUGGESTIONS = "cyanogenmod.permission.ACCESS_APP_SUGGESTIONS";
- field public static final java.lang.String ACCESS_THEME_MANAGER = "cyanogenmod.permission.ACCESS_THEME_MANAGER";
- field public static final java.lang.String ACCESS_WEATHER_MANAGER = "cyanogenmod.permission.ACCESS_WEATHER_MANAGER";
- field public static final java.lang.String BIND_WEATHER_PROVIDER_SERVICE = "cyanogenmod.permission.BIND_WEATHER_PROVIDER_SERVICE";
- field public static final java.lang.String HARDWARE_ABSTRACTION_ACCESS = "cyanogenmod.permission.HARDWARE_ABSTRACTION_ACCESS";
- field public static final java.lang.String LIVE_LOCK_SCREEN_MANAGER_ACCESS = "cyanogenmod.permission.LIVE_LOCK_SCREEN_MANAGER_ACCESS";
- field public static final java.lang.String MANAGE_ALARMS = "cyanogenmod.permission.MANAGE_ALARMS";
- field public static final java.lang.String MANAGE_LIVEDISPLAY = "cyanogenmod.permission.MANAGE_LIVEDISPLAY";
- field public static final java.lang.String MANAGE_PERSISTENT_STORAGE = "cyanogenmod.permission.MANAGE_PERSISTENT_STORAGE";
- field public static final java.lang.String MANAGE_REMOTE_PREFERENCES = "cyanogenmod.permission.MANAGE_REMOTE_PREFERENCES";
- field public static final java.lang.String MODIFY_MSIM_PHONE_STATE = "cyanogenmod.permission.MODIFY_MSIM_PHONE_STATE";
- field public static final java.lang.String MODIFY_NETWORK_SETTINGS = "cyanogenmod.permission.MODIFY_NETWORK_SETTINGS";
- field public static final java.lang.String MODIFY_PROFILES = "cyanogenmod.permission.MODIFY_PROFILES";
- field public static final java.lang.String MODIFY_SOUND_SETTINGS = "cyanogenmod.permission.MODIFY_SOUND_SETTINGS";
- field public static final java.lang.String PERFORMANCE_ACCESS = "cyanogenmod.permission.PERFORMANCE_ACCESS";
- field public static final java.lang.String PROTECTED_APP = "cyanogenmod.permission.PROTECTED_APP";
- field public static final java.lang.String PUBLISH_CUSTOM_TILE = "cyanogenmod.permission.PUBLISH_CUSTOM_TILE";
- field public static final java.lang.String READ_ALARMS = "cyanogenmod.permission.READ_ALARMS";
- field public static final java.lang.String READ_DATAUSAGE = "cyanogenmod.permission.READ_DATAUSAGE";
- field public static final java.lang.String READ_MSIM_PHONE_STATE = "cyanogenmod.permission.READ_MSIM_PHONE_STATE";
- field public static final java.lang.String READ_THEMES = "cyanogenmod.permission.READ_THEMES";
- field public static final java.lang.String READ_WEATHER = "cyanogenmod.permission.READ_WEATHER";
- field public static final java.lang.String THIRD_PARTY_KEYGUARD = "cyanogenmod.permission.THIRD_PARTY_KEYGUARD";
- field public static final java.lang.String WRITE_ALARMS = "cyanogenmod.permission.WRITE_ALARMS";
- field public static final java.lang.String WRITE_DATAUSAGE = "cyanogenmod.permission.WRITE_DATAUSAGE";
- field public static final java.lang.String WRITE_SECURE_SETTINGS = "cyanogenmod.permission.WRITE_SECURE_SETTINGS";
- field public static final java.lang.String WRITE_SETTINGS = "cyanogenmod.permission.WRITE_SETTINGS";
- field public static final java.lang.String WRITE_THEMES = "cyanogenmod.permission.WRITE_THEMES";
- field public static final java.lang.String WRITE_WEATHER = "cyanogenmod.permission.WRITE_WEATHER";
+ field public static final java.lang.String ACCESS_APP_SUGGESTIONS = "lineageos.permission.ACCESS_APP_SUGGESTIONS";
+ field public static final java.lang.String ACCESS_THEME_MANAGER = "lineageos.permission.ACCESS_THEME_MANAGER";
+ field public static final java.lang.String ACCESS_WEATHER_MANAGER = "lineageos.permission.ACCESS_WEATHER_MANAGER";
+ field public static final java.lang.String BIND_WEATHER_PROVIDER_SERVICE = "lineageos.permission.BIND_WEATHER_PROVIDER_SERVICE";
+ field public static final java.lang.String HARDWARE_ABSTRACTION_ACCESS = "lineageos.permission.HARDWARE_ABSTRACTION_ACCESS";
+ field public static final java.lang.String LIVE_LOCK_SCREEN_MANAGER_ACCESS = "lineageos.permission.LIVE_LOCK_SCREEN_MANAGER_ACCESS";
+ field public static final java.lang.String MANAGE_ALARMS = "lineageos.permission.MANAGE_ALARMS";
+ field public static final java.lang.String MANAGE_LIVEDISPLAY = "lineageos.permission.MANAGE_LIVEDISPLAY";
+ field public static final java.lang.String MANAGE_PERSISTENT_STORAGE = "lineageos.permission.MANAGE_PERSISTENT_STORAGE";
+ field public static final java.lang.String MANAGE_REMOTE_PREFERENCES = "lineageos.permission.MANAGE_REMOTE_PREFERENCES";
+ field public static final java.lang.String MODIFY_MSIM_PHONE_STATE = "lineageos.permission.MODIFY_MSIM_PHONE_STATE";
+ field public static final java.lang.String MODIFY_NETWORK_SETTINGS = "lineageos.permission.MODIFY_NETWORK_SETTINGS";
+ field public static final java.lang.String MODIFY_PROFILES = "lineageos.permission.MODIFY_PROFILES";
+ field public static final java.lang.String MODIFY_SOUND_SETTINGS = "lineageos.permission.MODIFY_SOUND_SETTINGS";
+ field public static final java.lang.String PERFORMANCE_ACCESS = "lineageos.permission.PERFORMANCE_ACCESS";
+ field public static final java.lang.String PROTECTED_APP = "lineageos.permission.PROTECTED_APP";
+ field public static final java.lang.String PUBLISH_CUSTOM_TILE = "lineageos.permission.PUBLISH_CUSTOM_TILE";
+ field public static final java.lang.String READ_ALARMS = "lineageos.permission.READ_ALARMS";
+ field public static final java.lang.String READ_DATAUSAGE = "lineageos.permission.READ_DATAUSAGE";
+ field public static final java.lang.String READ_MSIM_PHONE_STATE = "lineageos.permission.READ_MSIM_PHONE_STATE";
+ field public static final java.lang.String READ_THEMES = "lineageos.permission.READ_THEMES";
+ field public static final java.lang.String READ_WEATHER = "lineageos.permission.READ_WEATHER";
+ field public static final java.lang.String THIRD_PARTY_KEYGUARD = "lineageos.permission.THIRD_PARTY_KEYGUARD";
+ field public static final java.lang.String WRITE_ALARMS = "lineageos.permission.WRITE_ALARMS";
+ field public static final java.lang.String WRITE_DATAUSAGE = "lineageos.permission.WRITE_DATAUSAGE";
+ field public static final java.lang.String WRITE_SECURE_SETTINGS = "lineageos.permission.WRITE_SECURE_SETTINGS";
+ field public static final java.lang.String WRITE_SETTINGS = "lineageos.permission.WRITE_SETTINGS";
+ field public static final java.lang.String WRITE_THEMES = "lineageos.permission.WRITE_THEMES";
+ field public static final java.lang.String WRITE_WEATHER = "lineageos.permission.WRITE_WEATHER";
}
public final class R {
@@ -787,19 +787,19 @@ package cyanogenmod.platform {
}
-package cyanogenmod.power {
+package lineageos.power {
public class PerformanceManager {
- method public cyanogenmod.power.PerformanceProfile getActivePowerProfile();
- method public static cyanogenmod.power.PerformanceManager getInstance(android.content.Context);
+ method public lineageos.power.PerformanceProfile getActivePowerProfile();
+ method public static lineageos.power.PerformanceManager getInstance(android.content.Context);
method public int getNumberOfProfiles();
method public int getPowerProfile();
- method public cyanogenmod.power.PerformanceProfile getPowerProfile(int);
- method public java.util.SortedSet getPowerProfiles();
+ method public lineageos.power.PerformanceProfile getPowerProfile(int);
+ method public java.util.SortedSet getPowerProfiles();
method public boolean getProfileHasAppProfiles(int);
method public boolean setPowerProfile(int);
- method public boolean setPowerProfile(cyanogenmod.power.PerformanceProfile);
- field public static final java.lang.String POWER_PROFILE_CHANGED = "cyanogenmod.power.PROFILE_CHANGED";
+ method public boolean setPowerProfile(lineageos.power.PerformanceProfile);
+ field public static final java.lang.String POWER_PROFILE_CHANGED = "lineageos.power.PROFILE_CHANGED";
field public static final int PROFILE_BALANCED = 1; // 0x1
field public static final int PROFILE_BIAS_PERFORMANCE = 4; // 0x4
field public static final int PROFILE_BIAS_POWER_SAVE = 3; // 0x3
@@ -810,7 +810,7 @@ package cyanogenmod.power {
public class PerformanceProfile implements java.lang.Comparable android.os.Parcelable {
ctor public PerformanceProfile(int, float, java.lang.String, java.lang.String, boolean);
- method public int compareTo(cyanogenmod.power.PerformanceProfile);
+ method public int compareTo(lineageos.power.PerformanceProfile);
method public int describeContents();
method public java.lang.String getDescription();
method public int getId();
@@ -818,68 +818,68 @@ package cyanogenmod.power {
method public float getWeight();
method public boolean isBoostEnabled();
method public void writeToParcel(android.os.Parcel, int);
- field public static final android.os.Parcelable.Creator CREATOR;
+ field public static final android.os.Parcelable.Creator CREATOR;
}
}
-package cyanogenmod.preference {
+package lineageos.preference {
- public class CMGlobalSettingSwitchPreference extends cyanogenmod.preference.SelfRemovingSwitchPreference {
- ctor public CMGlobalSettingSwitchPreference(android.content.Context, android.util.AttributeSet, int);
- ctor public CMGlobalSettingSwitchPreference(android.content.Context, android.util.AttributeSet);
- ctor public CMGlobalSettingSwitchPreference(android.content.Context);
+ public class LineageGlobalSettingSwitchPreference extends lineageos.preference.SelfRemovingSwitchPreference {
+ ctor public LineageGlobalSettingSwitchPreference(android.content.Context, android.util.AttributeSet, int);
+ ctor public LineageGlobalSettingSwitchPreference(android.content.Context, android.util.AttributeSet);
+ ctor public LineageGlobalSettingSwitchPreference(android.content.Context);
method protected boolean getPersistedBoolean(boolean);
method protected boolean isPersisted();
method protected boolean persistBoolean(boolean);
}
- public class CMSecureSettingListPreference extends cyanogenmod.preference.SelfRemovingListPreference {
- ctor public CMSecureSettingListPreference(android.content.Context, android.util.AttributeSet, int);
- ctor public CMSecureSettingListPreference(android.content.Context, android.util.AttributeSet);
+ public class LineageSecureSettingListPreference extends lineageos.preference.SelfRemovingListPreference {
+ ctor public LineageSecureSettingListPreference(android.content.Context, android.util.AttributeSet, int);
+ ctor public LineageSecureSettingListPreference(android.content.Context, android.util.AttributeSet);
method public int getIntValue(int);
method protected java.lang.String getPersistedString(java.lang.String);
method protected boolean isPersisted();
method protected boolean persistString(java.lang.String);
}
- public class CMSecureSettingSwitchPreference extends cyanogenmod.preference.SelfRemovingSwitchPreference {
- ctor public CMSecureSettingSwitchPreference(android.content.Context, android.util.AttributeSet, int);
- ctor public CMSecureSettingSwitchPreference(android.content.Context, android.util.AttributeSet);
- ctor public CMSecureSettingSwitchPreference(android.content.Context);
+ public class LineageSecureSettingSwitchPreference extends lineageos.preference.SelfRemovingSwitchPreference {
+ ctor public LineageSecureSettingSwitchPreference(android.content.Context, android.util.AttributeSet, int);
+ ctor public LineageSecureSettingSwitchPreference(android.content.Context, android.util.AttributeSet);
+ ctor public LineageSecureSettingSwitchPreference(android.content.Context);
method protected boolean getPersistedBoolean(boolean);
method protected boolean isPersisted();
method protected boolean persistBoolean(boolean);
}
- public class CMSystemSettingDropDownPreference extends cyanogenmod.preference.SelfRemovingDropDownPreference {
- ctor public CMSystemSettingDropDownPreference(android.content.Context, android.util.AttributeSet, int);
- ctor public CMSystemSettingDropDownPreference(android.content.Context, android.util.AttributeSet);
+ public class LineageSystemSettingDropDownPreference extends lineageos.preference.SelfRemovingDropDownPreference {
+ ctor public LineageSystemSettingDropDownPreference(android.content.Context, android.util.AttributeSet, int);
+ ctor public LineageSystemSettingDropDownPreference(android.content.Context, android.util.AttributeSet);
method public int getIntValue(int);
method protected java.lang.String getPersistedString(java.lang.String);
method protected boolean isPersisted();
method protected boolean persistString(java.lang.String);
}
- public class CMSystemSettingListPreference extends cyanogenmod.preference.SelfRemovingListPreference {
- ctor public CMSystemSettingListPreference(android.content.Context, android.util.AttributeSet, int);
- ctor public CMSystemSettingListPreference(android.content.Context, android.util.AttributeSet);
+ public class LineageSystemSettingListPreference extends lineageos.preference.SelfRemovingListPreference {
+ ctor public LineageSystemSettingListPreference(android.content.Context, android.util.AttributeSet, int);
+ ctor public LineageSystemSettingListPreference(android.content.Context, android.util.AttributeSet);
method public int getIntValue(int);
method protected java.lang.String getPersistedString(java.lang.String);
method protected boolean isPersisted();
method protected boolean persistString(java.lang.String);
}
- public class CMSystemSettingSwitchPreference extends cyanogenmod.preference.SelfRemovingSwitchPreference {
- ctor public CMSystemSettingSwitchPreference(android.content.Context, android.util.AttributeSet, int);
- ctor public CMSystemSettingSwitchPreference(android.content.Context, android.util.AttributeSet);
- ctor public CMSystemSettingSwitchPreference(android.content.Context);
+ public class LineageSystemSettingSwitchPreference extends lineageos.preference.SelfRemovingSwitchPreference {
+ ctor public LineageSystemSettingSwitchPreference(android.content.Context, android.util.AttributeSet, int);
+ ctor public LineageSystemSettingSwitchPreference(android.content.Context, android.util.AttributeSet);
+ ctor public LineageSystemSettingSwitchPreference(android.content.Context);
method protected boolean getPersistedBoolean(boolean);
method protected boolean isPersisted();
method protected boolean persistBoolean(boolean);
}
- public class GlobalSettingSwitchPreference extends cyanogenmod.preference.SelfRemovingSwitchPreference {
+ public class GlobalSettingSwitchPreference extends lineageos.preference.SelfRemovingSwitchPreference {
ctor public GlobalSettingSwitchPreference(android.content.Context, android.util.AttributeSet, int);
ctor public GlobalSettingSwitchPreference(android.content.Context, android.util.AttributeSet);
ctor public GlobalSettingSwitchPreference(android.content.Context);
@@ -888,7 +888,7 @@ package cyanogenmod.preference {
method protected boolean persistBoolean(boolean);
}
- public class RemotePreference extends cyanogenmod.preference.SelfRemovingPreference {
+ public class RemotePreference extends lineageos.preference.SelfRemovingPreference {
ctor public RemotePreference(android.content.Context, android.util.AttributeSet, int, int);
ctor public RemotePreference(android.content.Context, android.util.AttributeSet, int);
ctor public RemotePreference(android.content.Context, android.util.AttributeSet);
@@ -897,13 +897,13 @@ package cyanogenmod.preference {
method public void onAttached();
method public void onDetached();
method public void onRemoteUpdated(android.os.Bundle);
- field public static final java.lang.String ACTION_REFRESH_PREFERENCE = "cyanogenmod.intent.action.REFRESH_PREFERENCE";
- field public static final java.lang.String ACTION_UPDATE_PREFERENCE = "cyanogenmod.intent.action.UPDATE_PREFERENCE";
- field public static final java.lang.String EXTRA_ENABLED = ":cm:pref_enabled";
- field public static final java.lang.String EXTRA_KEY = ":cm:pref_key";
- field public static final java.lang.String EXTRA_SUMMARY = ":cm:pref_summary";
- field public static final java.lang.String META_REMOTE_KEY = "org.cyanogenmod.settings.summary.key";
- field public static final java.lang.String META_REMOTE_RECEIVER = "org.cyanogenmod.settings.summary.receiver";
+ field public static final java.lang.String ACTION_REFRESH_PREFERENCE = "lineageos.intent.action.REFRESH_PREFERENCE";
+ field public static final java.lang.String ACTION_UPDATE_PREFERENCE = "lineageos.intent.action.UPDATE_PREFERENCE";
+ field public static final java.lang.String EXTRA_ENABLED = ":lineage:pref_enabled";
+ field public static final java.lang.String EXTRA_KEY = ":lineage:pref_key";
+ field public static final java.lang.String EXTRA_SUMMARY = ":lineage:pref_summary";
+ field public static final java.lang.String META_REMOTE_KEY = "org.lineageos.settings.summary.key";
+ field public static final java.lang.String META_REMOTE_RECEIVER = "org.lineageos.settings.summary.receiver";
field protected final android.content.Context mContext;
}
@@ -915,7 +915,7 @@ package cyanogenmod.preference {
method public void onReceive(android.content.Context, android.content.Intent);
}
- public class SecureSettingSwitchPreference extends cyanogenmod.preference.SelfRemovingSwitchPreference {
+ public class SecureSettingSwitchPreference extends lineageos.preference.SelfRemovingSwitchPreference {
ctor public SecureSettingSwitchPreference(android.content.Context, android.util.AttributeSet, int);
ctor public SecureSettingSwitchPreference(android.content.Context, android.util.AttributeSet);
ctor public SecureSettingSwitchPreference(android.content.Context);
@@ -962,22 +962,22 @@ package cyanogenmod.preference {
}
public class SettingsHelper {
- method public static synchronized cyanogenmod.preference.SettingsHelper get(android.content.Context);
+ method public static synchronized lineageos.preference.SettingsHelper get(android.content.Context);
method public boolean getBoolean(android.net.Uri, boolean);
method public int getInt(android.net.Uri, int);
method public java.lang.String getString(android.net.Uri);
method public void putBoolean(android.net.Uri, boolean);
method public void putInt(android.net.Uri, int);
method public void putString(android.net.Uri, java.lang.String);
- method public void startWatching(cyanogenmod.preference.SettingsHelper.OnSettingsChangeListener, android.net.Uri...);
- method public void stopWatching(cyanogenmod.preference.SettingsHelper.OnSettingsChangeListener);
+ method public void startWatching(lineageos.preference.SettingsHelper.OnSettingsChangeListener, android.net.Uri...);
+ method public void stopWatching(lineageos.preference.SettingsHelper.OnSettingsChangeListener);
}
public static abstract interface SettingsHelper.OnSettingsChangeListener {
method public abstract void onSettingsChanged(android.net.Uri);
}
- public class SystemSettingSwitchPreference extends cyanogenmod.preference.SelfRemovingSwitchPreference {
+ public class SystemSettingSwitchPreference extends lineageos.preference.SelfRemovingSwitchPreference {
ctor public SystemSettingSwitchPreference(android.content.Context, android.util.AttributeSet, int);
ctor public SystemSettingSwitchPreference(android.content.Context, android.util.AttributeSet);
ctor public SystemSettingSwitchPreference(android.content.Context);
@@ -988,7 +988,7 @@ package cyanogenmod.preference {
}
-package cyanogenmod.profiles {
+package lineageos.profiles {
public final class AirplaneModeSettings implements android.os.Parcelable {
ctor public AirplaneModeSettings(android.os.Parcel);
@@ -1090,27 +1090,27 @@ package cyanogenmod.profiles {
}
-package cyanogenmod.providers {
+package lineageos.providers {
- public final class CMSettings {
- ctor public CMSettings();
- field public static final java.lang.String ACTION_DATA_USAGE = "cyanogenmod.settings.ACTION_DATA_USAGE";
- field public static final java.lang.String ACTION_LIVEDISPLAY_SETTINGS = "cyanogenmod.settings.LIVEDISPLAY_SETTINGS";
- field public static final java.lang.String AUTHORITY = "cmsettings";
+ public final class LineageSettings {
+ ctor public LineageSettings();
+ field public static final java.lang.String ACTION_DATA_USAGE = "lineageos.settings.ACTION_DATA_USAGE";
+ field public static final java.lang.String ACTION_LIVEDISPLAY_SETTINGS = "lineageos.settings.LIVEDISPLAY_SETTINGS";
+ field public static final java.lang.String AUTHORITY = "lineagesettings";
}
- public static class CMSettings.CMSettingNotFoundException extends android.util.AndroidException {
- ctor public CMSettings.CMSettingNotFoundException(java.lang.String);
+ public static class LineageSettings.LineageSettingNotFoundException extends android.util.AndroidException {
+ ctor public LineageSettings.LineageSettingNotFoundException(java.lang.String);
}
- public static final class CMSettings.Global extends android.provider.Settings.NameValueTable {
- ctor public CMSettings.Global();
+ public static final class LineageSettings.Global extends android.provider.Settings.NameValueTable {
+ ctor public LineageSettings.Global();
method public static float getFloat(android.content.ContentResolver, java.lang.String, float);
- method public static float getFloat(android.content.ContentResolver, java.lang.String) throws cyanogenmod.providers.CMSettings.CMSettingNotFoundException;
+ method public static float getFloat(android.content.ContentResolver, java.lang.String) throws lineageos.providers.LineageSettings.LineageSettingNotFoundException;
method public static int getInt(android.content.ContentResolver, java.lang.String, int);
- method public static int getInt(android.content.ContentResolver, java.lang.String) throws cyanogenmod.providers.CMSettings.CMSettingNotFoundException;
+ method public static int getInt(android.content.ContentResolver, java.lang.String) throws lineageos.providers.LineageSettings.LineageSettingNotFoundException;
method public static long getLong(android.content.ContentResolver, java.lang.String, long);
- method public static long getLong(android.content.ContentResolver, java.lang.String) throws cyanogenmod.providers.CMSettings.CMSettingNotFoundException;
+ method public static long getLong(android.content.ContentResolver, java.lang.String) throws lineageos.providers.LineageSettings.LineageSettingNotFoundException;
method public static java.lang.String getString(android.content.ContentResolver, java.lang.String);
method public static android.net.Uri getUriFor(java.lang.String);
method public static boolean putFloat(android.content.ContentResolver, java.lang.String, float);
@@ -1118,18 +1118,18 @@ package cyanogenmod.providers {
method public static boolean putLong(android.content.ContentResolver, java.lang.String, long);
method public static boolean putString(android.content.ContentResolver, java.lang.String, java.lang.String);
field public static final android.net.Uri CONTENT_URI;
- field public static final java.lang.String SYS_PROP_CM_SETTING_VERSION = "sys.cm_settings_global_version";
+ field public static final java.lang.String SYS_PROP_LINEAGE_SETTING_VERSION = "sys.lineage_settings_global_version";
field public static final java.lang.String WEATHER_TEMPERATURE_UNIT = "weather_temperature_unit";
}
- public static final class CMSettings.Secure extends android.provider.Settings.NameValueTable {
- ctor public CMSettings.Secure();
+ public static final class LineageSettings.Secure extends android.provider.Settings.NameValueTable {
+ ctor public LineageSettings.Secure();
method public static float getFloat(android.content.ContentResolver, java.lang.String, float);
- method public static float getFloat(android.content.ContentResolver, java.lang.String) throws cyanogenmod.providers.CMSettings.CMSettingNotFoundException;
+ method public static float getFloat(android.content.ContentResolver, java.lang.String) throws lineageos.providers.LineageSettings.LineageSettingNotFoundException;
method public static int getInt(android.content.ContentResolver, java.lang.String, int);
- method public static int getInt(android.content.ContentResolver, java.lang.String) throws cyanogenmod.providers.CMSettings.CMSettingNotFoundException;
+ method public static int getInt(android.content.ContentResolver, java.lang.String) throws lineageos.providers.LineageSettings.LineageSettingNotFoundException;
method public static long getLong(android.content.ContentResolver, java.lang.String, long);
- method public static long getLong(android.content.ContentResolver, java.lang.String) throws cyanogenmod.providers.CMSettings.CMSettingNotFoundException;
+ method public static long getLong(android.content.ContentResolver, java.lang.String) throws lineageos.providers.LineageSettings.LineageSettingNotFoundException;
method public static java.lang.String getString(android.content.ContentResolver, java.lang.String);
method public static android.net.Uri getUriFor(java.lang.String);
method public static boolean putFloat(android.content.ContentResolver, java.lang.String, float);
@@ -1137,17 +1137,17 @@ package cyanogenmod.providers {
method public static boolean putLong(android.content.ContentResolver, java.lang.String, long);
method public static boolean putString(android.content.ContentResolver, java.lang.String, java.lang.String);
field public static final android.net.Uri CONTENT_URI;
- field public static final java.lang.String SYS_PROP_CM_SETTING_VERSION = "sys.cm_settings_secure_version";
+ field public static final java.lang.String SYS_PROP_LINEAGE_SETTING_VERSION = "sys.lineage_settings_secure_version";
}
- public static final class CMSettings.System extends android.provider.Settings.NameValueTable {
- ctor public CMSettings.System();
+ public static final class LineageSettings.System extends android.provider.Settings.NameValueTable {
+ ctor public LineageSettings.System();
method public static float getFloat(android.content.ContentResolver, java.lang.String, float);
- method public static float getFloat(android.content.ContentResolver, java.lang.String) throws cyanogenmod.providers.CMSettings.CMSettingNotFoundException;
+ method public static float getFloat(android.content.ContentResolver, java.lang.String) throws lineageos.providers.LineageSettings.LineageSettingNotFoundException;
method public static int getInt(android.content.ContentResolver, java.lang.String, int);
- method public static int getInt(android.content.ContentResolver, java.lang.String) throws cyanogenmod.providers.CMSettings.CMSettingNotFoundException;
+ method public static int getInt(android.content.ContentResolver, java.lang.String) throws lineageos.providers.LineageSettings.LineageSettingNotFoundException;
method public static long getLong(android.content.ContentResolver, java.lang.String, long);
- method public static long getLong(android.content.ContentResolver, java.lang.String) throws cyanogenmod.providers.CMSettings.CMSettingNotFoundException;
+ method public static long getLong(android.content.ContentResolver, java.lang.String) throws lineageos.providers.LineageSettings.LineageSettingNotFoundException;
method public static java.lang.String getString(android.content.ContentResolver, java.lang.String);
method public static android.net.Uri getUriFor(java.lang.String);
method public static boolean putFloat(android.content.ContentResolver, java.lang.String, float);
@@ -1239,7 +1239,7 @@ package cyanogenmod.providers {
field public static final java.lang.String STYLUS_ICON_ENABLED = "stylus_icon_enabled";
field public static final java.lang.String SWAP_VOLUME_KEYS_ON_ROTATION = "swap_volume_keys_on_rotation";
field public static final java.lang.String SYSTEM_PROFILES_ENABLED = "system_profiles_enabled";
- field public static final java.lang.String SYS_PROP_CM_SETTING_VERSION = "sys.cm_settings_system_version";
+ field public static final java.lang.String SYS_PROP_LINEAGE_SETTING_VERSION = "sys.lineage_settings_system_version";
field public static final java.lang.String T9_SEARCH_INPUT_LOCALE = "t9_search_input_locale";
field public static final java.lang.String TORCH_LONG_PRESS_POWER_GESTURE = "torch_long_press_power_gesture";
field public static final java.lang.String TORCH_LONG_PRESS_POWER_TIMEOUT = "torch_long_press_power_timeout";
@@ -1273,7 +1273,7 @@ package cyanogenmod.providers {
field public static final java.lang.String CONTENT_ITEM_TYPE = "vnd.android.cursor.itemdatausage_item";
field public static final java.lang.String CONTENT_TYPE = "vnd.android.cursor.dirdatausage_item";
field public static final android.net.Uri CONTENT_URI;
- field public static final java.lang.String DATAUSAGE_AUTHORITY = "org.cyanogenmod.providers.datausage";
+ field public static final java.lang.String DATAUSAGE_AUTHORITY = "org.lineageos.providers.datausage";
field public static final java.lang.String DATAUSAGE_TABLE = "datausage";
field public static final java.lang.String ENABLE = "enable";
field public static final java.lang.String EXTRA = "extra";
@@ -1289,7 +1289,7 @@ package cyanogenmod.providers {
public class ThemesContract {
ctor public ThemesContract();
- field public static final java.lang.String AUTHORITY = "com.cyanogenmod.themes";
+ field public static final java.lang.String AUTHORITY = "com.lineageos.themes";
field public static final android.net.Uri AUTHORITY_URI;
}
@@ -1429,7 +1429,7 @@ package cyanogenmod.providers {
public class WeatherContract {
ctor public WeatherContract();
- field public static final java.lang.String AUTHORITY = "com.cyanogenmod.weather";
+ field public static final java.lang.String AUTHORITY = "org.lineageos.weather";
field public static final android.net.Uri AUTHORITY_URI;
}
@@ -1518,7 +1518,7 @@ package cyanogenmod.providers {
}
-package cyanogenmod.themes {
+package lineageos.themes {
public final class ThemeChangeRequest implements android.os.Parcelable {
method public int describeContents();
@@ -1533,72 +1533,72 @@ package cyanogenmod.themes {
method public int getNumChangesRequested();
method public java.lang.String getOverlayThemePackageName();
method public final java.util.Map getPerAppOverlays();
- method public cyanogenmod.themes.ThemeChangeRequest.RequestType getReqeustType();
+ method public lineageos.themes.ThemeChangeRequest.RequestType getReqeustType();
method public java.lang.String getRingtoneThemePackageName();
method public java.lang.String getStatusBarThemePackageName();
method public final java.util.Map getThemeComponentsMap();
method public long getWallpaperId();
method public java.lang.String getWallpaperThemePackageName();
method public void writeToParcel(android.os.Parcel, int);
- field public static final android.os.Parcelable.Creator CREATOR;
+ field public static final android.os.Parcelable.Creator CREATOR;
field public static final int DEFAULT_WALLPAPER_ID = -1; // 0xffffffff
}
public static class ThemeChangeRequest.Builder {
ctor public ThemeChangeRequest.Builder();
ctor public ThemeChangeRequest.Builder(android.content.res.ThemeConfig);
- method public cyanogenmod.themes.ThemeChangeRequest build();
- method public cyanogenmod.themes.ThemeChangeRequest.Builder setAlarm(java.lang.String);
- method public cyanogenmod.themes.ThemeChangeRequest.Builder setAppOverlay(java.lang.String, java.lang.String);
- method public cyanogenmod.themes.ThemeChangeRequest.Builder setBootanimation(java.lang.String);
- method public cyanogenmod.themes.ThemeChangeRequest.Builder setComponent(java.lang.String, java.lang.String);
- method public cyanogenmod.themes.ThemeChangeRequest.Builder setFont(java.lang.String);
- method public cyanogenmod.themes.ThemeChangeRequest.Builder setIcons(java.lang.String);
- method public cyanogenmod.themes.ThemeChangeRequest.Builder setLiveLockScreen(java.lang.String);
- method public cyanogenmod.themes.ThemeChangeRequest.Builder setLockWallpaper(java.lang.String);
- method public cyanogenmod.themes.ThemeChangeRequest.Builder setNavBar(java.lang.String);
- method public cyanogenmod.themes.ThemeChangeRequest.Builder setNotification(java.lang.String);
- method public cyanogenmod.themes.ThemeChangeRequest.Builder setOverlay(java.lang.String);
- method public cyanogenmod.themes.ThemeChangeRequest.Builder setRequestType(cyanogenmod.themes.ThemeChangeRequest.RequestType);
- method public cyanogenmod.themes.ThemeChangeRequest.Builder setRingtone(java.lang.String);
- method public cyanogenmod.themes.ThemeChangeRequest.Builder setStatusBar(java.lang.String);
- method public cyanogenmod.themes.ThemeChangeRequest.Builder setWallpaper(java.lang.String);
- method public cyanogenmod.themes.ThemeChangeRequest.Builder setWallpaperId(long);
+ method public lineageos.themes.ThemeChangeRequest build();
+ method public lineageos.themes.ThemeChangeRequest.Builder setAlarm(java.lang.String);
+ method public lineageos.themes.ThemeChangeRequest.Builder setAppOverlay(java.lang.String, java.lang.String);
+ method public lineageos.themes.ThemeChangeRequest.Builder setBootanimation(java.lang.String);
+ method public lineageos.themes.ThemeChangeRequest.Builder setComponent(java.lang.String, java.lang.String);
+ method public lineageos.themes.ThemeChangeRequest.Builder setFont(java.lang.String);
+ method public lineageos.themes.ThemeChangeRequest.Builder setIcons(java.lang.String);
+ method public lineageos.themes.ThemeChangeRequest.Builder setLiveLockScreen(java.lang.String);
+ method public lineageos.themes.ThemeChangeRequest.Builder setLockWallpaper(java.lang.String);
+ method public lineageos.themes.ThemeChangeRequest.Builder setNavBar(java.lang.String);
+ method public lineageos.themes.ThemeChangeRequest.Builder setNotification(java.lang.String);
+ method public lineageos.themes.ThemeChangeRequest.Builder setOverlay(java.lang.String);
+ method public lineageos.themes.ThemeChangeRequest.Builder setRequestType(lineageos.themes.ThemeChangeRequest.RequestType);
+ method public lineageos.themes.ThemeChangeRequest.Builder setRingtone(java.lang.String);
+ method public lineageos.themes.ThemeChangeRequest.Builder setStatusBar(java.lang.String);
+ method public lineageos.themes.ThemeChangeRequest.Builder setWallpaper(java.lang.String);
+ method public lineageos.themes.ThemeChangeRequest.Builder setWallpaperId(long);
}
public static final class ThemeChangeRequest.RequestType extends java.lang.Enum {
- method public static cyanogenmod.themes.ThemeChangeRequest.RequestType valueOf(java.lang.String);
- method public static final cyanogenmod.themes.ThemeChangeRequest.RequestType[] values();
- enum_constant public static final cyanogenmod.themes.ThemeChangeRequest.RequestType THEME_REMOVED;
- enum_constant public static final cyanogenmod.themes.ThemeChangeRequest.RequestType THEME_RESET;
- enum_constant public static final cyanogenmod.themes.ThemeChangeRequest.RequestType THEME_UPDATED;
- enum_constant public static final cyanogenmod.themes.ThemeChangeRequest.RequestType USER_REQUEST;
- enum_constant public static final cyanogenmod.themes.ThemeChangeRequest.RequestType USER_REQUEST_MIXNMATCH;
+ method public static lineageos.themes.ThemeChangeRequest.RequestType valueOf(java.lang.String);
+ method public static final lineageos.themes.ThemeChangeRequest.RequestType[] values();
+ enum_constant public static final lineageos.themes.ThemeChangeRequest.RequestType THEME_REMOVED;
+ enum_constant public static final lineageos.themes.ThemeChangeRequest.RequestType THEME_RESET;
+ enum_constant public static final lineageos.themes.ThemeChangeRequest.RequestType THEME_UPDATED;
+ enum_constant public static final lineageos.themes.ThemeChangeRequest.RequestType USER_REQUEST;
+ enum_constant public static final lineageos.themes.ThemeChangeRequest.RequestType USER_REQUEST_MIXNMATCH;
}
public class ThemeManager {
- method public deprecated void addClient(cyanogenmod.themes.ThemeManager.ThemeChangeListener);
+ method public deprecated void addClient(lineageos.themes.ThemeManager.ThemeChangeListener);
method public void applyDefaultTheme();
- method public static cyanogenmod.themes.ThemeManager getInstance(android.content.Context);
- method public cyanogenmod.themes.ThemeChangeRequest.RequestType getLastThemeChangeRequestType();
+ method public static lineageos.themes.ThemeManager getInstance(android.content.Context);
+ method public lineageos.themes.ThemeChangeRequest.RequestType getLastThemeChangeRequestType();
method public long getLastThemeChangeTime();
method public int getProgress();
method public boolean isThemeApplying();
method public boolean isThemeBeingProcessed(java.lang.String);
- method public deprecated void onClientDestroyed(cyanogenmod.themes.ThemeManager.ThemeChangeListener);
- method public deprecated void onClientPaused(cyanogenmod.themes.ThemeManager.ThemeChangeListener);
- method public deprecated void onClientResumed(cyanogenmod.themes.ThemeManager.ThemeChangeListener);
+ method public deprecated void onClientDestroyed(lineageos.themes.ThemeManager.ThemeChangeListener);
+ method public deprecated void onClientPaused(lineageos.themes.ThemeManager.ThemeChangeListener);
+ method public deprecated void onClientResumed(lineageos.themes.ThemeManager.ThemeChangeListener);
method public boolean processThemeResources(java.lang.String);
- method public void registerProcessingListener(cyanogenmod.themes.ThemeManager.ThemeProcessingListener);
- method public void registerThemeChangeListener(cyanogenmod.themes.ThemeManager.ThemeChangeListener);
- method public deprecated void removeClient(cyanogenmod.themes.ThemeManager.ThemeChangeListener);
+ method public void registerProcessingListener(lineageos.themes.ThemeManager.ThemeProcessingListener);
+ method public void registerThemeChangeListener(lineageos.themes.ThemeManager.ThemeChangeListener);
+ method public deprecated void removeClient(lineageos.themes.ThemeManager.ThemeChangeListener);
method public void requestThemeChange(java.lang.String, java.util.List);
method public void requestThemeChange(java.lang.String, java.util.List, boolean);
method public void requestThemeChange(java.util.Map);
method public void requestThemeChange(java.util.Map, boolean);
- method public void requestThemeChange(cyanogenmod.themes.ThemeChangeRequest, boolean);
- method public void unregisterProcessingListener(cyanogenmod.themes.ThemeManager.ThemeProcessingListener);
- method public void unregisterThemeChangeListener(cyanogenmod.themes.ThemeManager.ThemeChangeListener);
+ method public void requestThemeChange(lineageos.themes.ThemeChangeRequest, boolean);
+ method public void unregisterProcessingListener(lineageos.themes.ThemeManager.ThemeProcessingListener);
+ method public void unregisterThemeChangeListener(lineageos.themes.ThemeManager.ThemeChangeListener);
}
public static abstract interface ThemeManager.ThemeChangeListener {
@@ -1612,7 +1612,7 @@ package cyanogenmod.themes {
}
-package cyanogenmod.util {
+package lineageos.util {
public class ColorUtils {
ctor public ColorUtils();
@@ -1628,24 +1628,24 @@ package cyanogenmod.util {
}
-package cyanogenmod.weather {
+package lineageos.weather {
- public class CMWeatherManager {
+ public class LineageWeatherManager {
method public void cancelRequest(int);
method public java.lang.String getActiveWeatherServiceProviderLabel();
- method public static cyanogenmod.weather.CMWeatherManager getInstance(android.content.Context);
- method public int lookupCity(java.lang.String, cyanogenmod.weather.CMWeatherManager.LookupCityRequestListener);
- method public void registerWeatherServiceProviderChangeListener(cyanogenmod.weather.CMWeatherManager.WeatherServiceProviderChangeListener);
- method public int requestWeatherUpdate(android.location.Location, cyanogenmod.weather.CMWeatherManager.WeatherUpdateRequestListener);
- method public int requestWeatherUpdate(cyanogenmod.weather.WeatherLocation, cyanogenmod.weather.CMWeatherManager.WeatherUpdateRequestListener);
- method public void unregisterWeatherServiceProviderChangeListener(cyanogenmod.weather.CMWeatherManager.WeatherServiceProviderChangeListener);
+ method public static lineageos.weather.LineageWeatherManager getInstance(android.content.Context);
+ method public int lookupCity(java.lang.String, lineageos.weather.LineageWeatherManager.LookupCityRequestListener);
+ method public void registerWeatherServiceProviderChangeListener(lineageos.weather.LineageWeatherManager.WeatherServiceProviderChangeListener);
+ method public int requestWeatherUpdate(android.location.Location, lineageos.weather.LineageWeatherManager.WeatherUpdateRequestListener);
+ method public int requestWeatherUpdate(lineageos.weather.WeatherLocation, lineageos.weather.LineageWeatherManager.WeatherUpdateRequestListener);
+ method public void unregisterWeatherServiceProviderChangeListener(lineageos.weather.LineageWeatherManager.WeatherServiceProviderChangeListener);
}
- public static abstract interface CMWeatherManager.LookupCityRequestListener {
- method public abstract void onLookupCityRequestCompleted(int, java.util.List);
+ public static abstract interface LineageWeatherManager.LookupCityRequestListener {
+ method public abstract void onLookupCityRequestCompleted(int, java.util.List);
}
- public static final class CMWeatherManager.RequestStatus {
+ public static final class LineageWeatherManager.RequestStatus {
field public static final int ALREADY_IN_PROGRESS = -3; // 0xfffffffd
field public static final int COMPLETED = 1; // 0x1
field public static final int FAILED = -1; // 0xffffffff
@@ -1653,12 +1653,12 @@ package cyanogenmod.weather {
field public static final int SUBMITTED_TOO_SOON = -2; // 0xfffffffe
}
- public static abstract interface CMWeatherManager.WeatherServiceProviderChangeListener {
+ public static abstract interface LineageWeatherManager.WeatherServiceProviderChangeListener {
method public abstract void onWeatherServiceProviderChanged(java.lang.String);
}
- public static abstract interface CMWeatherManager.WeatherUpdateRequestListener {
- method public abstract void onWeatherRequestCompleted(int, cyanogenmod.weather.WeatherInfo);
+ public static abstract interface LineageWeatherManager.WeatherUpdateRequestListener {
+ method public abstract void onWeatherRequestCompleted(int, lineageos.weather.WeatherInfo);
}
public final class RequestInfo implements android.os.Parcelable {
@@ -1667,9 +1667,9 @@ package cyanogenmod.weather {
method public android.location.Location getLocation();
method public int getRequestType();
method public int getTemperatureUnit();
- method public cyanogenmod.weather.WeatherLocation getWeatherLocation();
+ method public lineageos.weather.WeatherLocation getWeatherLocation();
method public void writeToParcel(android.os.Parcel, int);
- field public static final android.os.Parcelable.Creator CREATOR;
+ field public static final android.os.Parcelable.Creator CREATOR;
field public static final int TYPE_LOOKUP_CITY_NAME_REQ = 3; // 0x3
field public static final int TYPE_WEATHER_BY_GEO_LOCATION_REQ = 1; // 0x1
field public static final int TYPE_WEATHER_BY_WEATHER_LOCATION_REQ = 2; // 0x2
@@ -1679,7 +1679,7 @@ package cyanogenmod.weather {
method public int describeContents();
method public java.lang.String getCity();
method public int getConditionCode();
- method public java.util.List getForecasts();
+ method public java.util.List getForecasts();
method public double getHumidity();
method public double getTemperature();
method public int getTemperatureUnit();
@@ -1690,19 +1690,19 @@ package cyanogenmod.weather {
method public double getWindSpeed();
method public int getWindSpeedUnit();
method public void writeToParcel(android.os.Parcel, int);
- field public static final android.os.Parcelable.Creator CREATOR;
+ field public static final android.os.Parcelable.Creator CREATOR;
}
public static class WeatherInfo.Builder {
ctor public WeatherInfo.Builder(java.lang.String, double, int);
- method public cyanogenmod.weather.WeatherInfo build();
- method public cyanogenmod.weather.WeatherInfo.Builder setForecast(java.util.List);
- method public cyanogenmod.weather.WeatherInfo.Builder setHumidity(double);
- method public cyanogenmod.weather.WeatherInfo.Builder setTimestamp(long);
- method public cyanogenmod.weather.WeatherInfo.Builder setTodaysHigh(double);
- method public cyanogenmod.weather.WeatherInfo.Builder setTodaysLow(double);
- method public cyanogenmod.weather.WeatherInfo.Builder setWeatherCondition(int);
- method public cyanogenmod.weather.WeatherInfo.Builder setWind(double, double, int);
+ method public lineageos.weather.WeatherInfo build();
+ method public lineageos.weather.WeatherInfo.Builder setForecast(java.util.List);
+ method public lineageos.weather.WeatherInfo.Builder setHumidity(double);
+ method public lineageos.weather.WeatherInfo.Builder setTimestamp(long);
+ method public lineageos.weather.WeatherInfo.Builder setTodaysHigh(double);
+ method public lineageos.weather.WeatherInfo.Builder setTodaysLow(double);
+ method public lineageos.weather.WeatherInfo.Builder setWeatherCondition(int);
+ method public lineageos.weather.WeatherInfo.Builder setWind(double, double, int);
}
public static class WeatherInfo.DayForecast implements android.os.Parcelable {
@@ -1711,14 +1711,14 @@ package cyanogenmod.weather {
method public double getHigh();
method public double getLow();
method public void writeToParcel(android.os.Parcel, int);
- field public static final android.os.Parcelable.Creator CREATOR;
+ field public static final android.os.Parcelable.Creator CREATOR;
}
public static class WeatherInfo.DayForecast.Builder {
ctor public WeatherInfo.DayForecast.Builder(int);
- method public cyanogenmod.weather.WeatherInfo.DayForecast build();
- method public cyanogenmod.weather.WeatherInfo.DayForecast.Builder setHigh(double);
- method public cyanogenmod.weather.WeatherInfo.DayForecast.Builder setLow(double);
+ method public lineageos.weather.WeatherInfo.DayForecast build();
+ method public lineageos.weather.WeatherInfo.DayForecast.Builder setHigh(double);
+ method public lineageos.weather.WeatherInfo.DayForecast.Builder setLow(double);
}
public final class WeatherLocation implements android.os.Parcelable {
@@ -1730,43 +1730,43 @@ package cyanogenmod.weather {
method public java.lang.String getPostalCode();
method public java.lang.String getState();
method public void writeToParcel(android.os.Parcel, int);
- field public static final android.os.Parcelable.Creator CREATOR;
+ field public static final android.os.Parcelable.Creator CREATOR;
}
public static class WeatherLocation.Builder {
ctor public WeatherLocation.Builder(java.lang.String, java.lang.String);
ctor public WeatherLocation.Builder(java.lang.String);
- method public cyanogenmod.weather.WeatherLocation build();
- method public cyanogenmod.weather.WeatherLocation.Builder setCountry(java.lang.String);
- method public cyanogenmod.weather.WeatherLocation.Builder setCountryId(java.lang.String);
- method public cyanogenmod.weather.WeatherLocation.Builder setPostalCode(java.lang.String);
- method public cyanogenmod.weather.WeatherLocation.Builder setState(java.lang.String);
+ method public lineageos.weather.WeatherLocation build();
+ method public lineageos.weather.WeatherLocation.Builder setCountry(java.lang.String);
+ method public lineageos.weather.WeatherLocation.Builder setCountryId(java.lang.String);
+ method public lineageos.weather.WeatherLocation.Builder setPostalCode(java.lang.String);
+ method public lineageos.weather.WeatherLocation.Builder setState(java.lang.String);
}
}
-package cyanogenmod.weatherservice {
+package lineageos.weatherservice {
public final class ServiceRequest {
- method public void complete(cyanogenmod.weatherservice.ServiceRequestResult);
+ method public void complete(lineageos.weatherservice.ServiceRequestResult);
method public void fail();
- method public cyanogenmod.weather.RequestInfo getRequestInfo();
+ method public lineageos.weather.RequestInfo getRequestInfo();
method public void reject(int);
}
public final class ServiceRequestResult implements android.os.Parcelable {
method public int describeContents();
- method public java.util.List getLocationLookupList();
- method public cyanogenmod.weather.WeatherInfo getWeatherInfo();
+ method public java.util.List getLocationLookupList();
+ method public lineageos.weather.WeatherInfo getWeatherInfo();
method public void writeToParcel(android.os.Parcel, int);
- field public static final android.os.Parcelable.Creator CREATOR;
+ field public static final android.os.Parcelable.Creator CREATOR;
}
public static class ServiceRequestResult.Builder {
ctor public ServiceRequestResult.Builder();
- ctor public ServiceRequestResult.Builder(cyanogenmod.weather.WeatherInfo);
- ctor public ServiceRequestResult.Builder(java.util.List);
- method public cyanogenmod.weatherservice.ServiceRequestResult build();
+ ctor public ServiceRequestResult.Builder(lineageos.weather.WeatherInfo);
+ ctor public ServiceRequestResult.Builder(java.util.List);
+ method public lineageos.weatherservice.ServiceRequestResult build();
}
public abstract class WeatherProviderService extends android.app.Service {
@@ -1775,10 +1775,10 @@ package cyanogenmod.weatherservice {
method public final android.os.IBinder onBind(android.content.Intent);
method protected void onConnected();
method protected void onDisconnected();
- method protected abstract void onRequestCancelled(cyanogenmod.weatherservice.ServiceRequest);
- method protected abstract void onRequestSubmitted(cyanogenmod.weatherservice.ServiceRequest);
- field public static final java.lang.String SERVICE_INTERFACE = "cyanogenmod.weatherservice.WeatherProviderService";
- field public static final java.lang.String SERVICE_META_DATA = "cyanogenmod.weatherservice";
+ method protected abstract void onRequestCancelled(lineageos.weatherservice.ServiceRequest);
+ method protected abstract void onRequestSubmitted(lineageos.weatherservice.ServiceRequest);
+ field public static final java.lang.String SERVICE_INTERFACE = "lineageos.weatherservice.WeatherProviderService";
+ field public static final java.lang.String SERVICE_META_DATA = "lineageos.weatherservice";
}
}
diff --git a/host/migration/README.md b/host/migration/README.md
index c15b632c..ea0b87f7 100644
--- a/host/migration/README.md
+++ b/host/migration/README.md
@@ -1,4 +1,4 @@
-## CMSettings Migration Test
+## LineageSettings Migration Test
The tests host library contains a simple interface which calls down to a client interface on the device
to take a snapshot of the current settings, forces an update with the current build defined in params,
then verifies the settings post migration.
diff --git a/host/migration/example-cm12.1-settings.txt b/host/migration/example-cm12.1-settings.txt
index 2db59610..1b5c1b2c 100644
--- a/host/migration/example-cm12.1-settings.txt
+++ b/host/migration/example-cm12.1-settings.txt
@@ -1,5 +1,5 @@
-# Settings which are to be moved to CMSettings
-# Automatically generated by vendor/cmsdk/host/migration/src/GenerateExampleSettingsGenerateExampleSettings.java.
+# Settings which are to be moved to LineageSettings
+# Automatically generated by lineage-sdk/host/migration/src/GenerateExampleSettingsGenerateExampleSettings.java.
Row: 0 name=status_bar_battery_style, type=s, value=2, type=s
Row: 1 name=enable_forward_lookup, type=s, value=1, type=s
Row: 2 name=enable_people_lookup, type=s, value=1, type=s
diff --git a/host/migration/src/Command.java b/host/migration/src/Command.java
index 4fe29a94..60cd530e 100644
--- a/host/migration/src/Command.java
+++ b/host/migration/src/Command.java
@@ -49,7 +49,7 @@ public class Command implements Runnable {
protected static boolean filter(String uri, Setting setting) {
switch (uri) {
case SettingsConstants.SYSTEM:
- if (!CMSettings.System.isLegacySetting(setting.getKey())) {
+ if (!LineageSettings.System.isLegacySetting(setting.getKey())) {
return true;
}
break;
@@ -57,12 +57,12 @@ public class Command implements Runnable {
if (SettingsConstants.Ignorables.SECURE_SETTINGS.contains(setting.getKey())) {
return true;
}
- if (!CMSettings.Secure.isLegacySetting(setting.getKey())) {
+ if (!LineageSettings.Secure.isLegacySetting(setting.getKey())) {
return true;
}
break;
case SettingsConstants.GLOBAL:
- if (!CMSettings.Global.isLegacySetting(setting.getKey())) {
+ if (!LineageSettings.Global.isLegacySetting(setting.getKey())) {
return true;
}
break;
diff --git a/host/migration/src/GenerateExampleSettings.java b/host/migration/src/GenerateExampleSettings.java
index 56e5fa57..a4c7c2e3 100644
--- a/host/migration/src/GenerateExampleSettings.java
+++ b/host/migration/src/GenerateExampleSettings.java
@@ -25,7 +25,7 @@ import java.nio.charset.Charset;
import java.util.ArrayList;
/**
- * This is to be run on a live CM 12.1 device.
+ * This is to be run on a live Lineage 12.1 device.
*/
public class GenerateExampleSettings {
@@ -49,19 +49,19 @@ public class GenerateExampleSettings {
androidSettingImage.execute();
for (Setting system : androidSystemSettingList) {
- if (CMSettings.System.isLegacySetting(system.getKey())) {
+ if (LineageSettings.System.isLegacySetting(system.getKey())) {
defaultSettings.add(system);
}
}
for (Setting secure : androidSecureSettingList) {
- if (CMSettings.Secure.isLegacySetting(secure.getKey())) {
+ if (LineageSettings.Secure.isLegacySetting(secure.getKey())) {
defaultSettings.add(secure);
}
}
for (Setting global : androidGlobalSettingList) {
- if (CMSettings.Global.isLegacySetting(global.getKey())) {
+ if (LineageSettings.Global.isLegacySetting(global.getKey())) {
defaultSettings.add(global);
}
}
@@ -70,9 +70,9 @@ public class GenerateExampleSettings {
new FileOutputStream(rootFile),
Charset.forName("US-ASCII")));
- out.write("# Settings which are to be moved to CMSettings\n");
+ out.write("# Settings which are to be moved to LineageSettings\n");
out.write("# Automatically generated by " +
- "vendor/cmsdk/host/migration/src/GenerateExampleSettings"
+ "lineage-sdk/host/migration/src/GenerateExampleSettings"
+ GenerateExampleSettings.class.getSimpleName() + ".java.\n");
// Write settings to file for output.
for (int i = 0; i < defaultSettings.size(); i++) {
diff --git a/host/migration/src/LineageSettings.java b/host/migration/src/LineageSettings.java
index 5290d58c..d2b06bab 100644
--- a/host/migration/src/LineageSettings.java
+++ b/host/migration/src/LineageSettings.java
@@ -17,13 +17,13 @@
import java.util.Arrays;
/**
- * CMSettings contains CM specific preferences in System, Secure, and Global.
+ * LineageSettings contains Lineage specific preferences in System, Secure, and Global.
*/
-public final class CMSettings {
- public static final String AUTHORITY = "cmsettings";
+public final class LineageSettings {
+ public static final String AUTHORITY = "lineagesettings";
/**
- * System settings, containing miscellaneous CM system preferences. This table holds simple
+ * System settings, containing miscellaneous Lineage system preferences. This table holds simple
* name/value pairs. There are convenience functions for accessing individual settings entries.
*/
public static final class System {
@@ -646,93 +646,93 @@ public final class CMSettings {
* @hide
*/
public static final String[] LEGACY_SYSTEM_SETTINGS = new String[]{
- CMSettings.System.QS_QUICK_PULLDOWN,
- CMSettings.System.NAV_BUTTONS,
- CMSettings.System.KEY_HOME_LONG_PRESS_ACTION,
- CMSettings.System.KEY_HOME_DOUBLE_TAP_ACTION,
- CMSettings.System.BACK_WAKE_SCREEN,
- CMSettings.System.MENU_WAKE_SCREEN,
- CMSettings.System.VOLUME_WAKE_SCREEN,
- CMSettings.System.KEY_MENU_ACTION,
- CMSettings.System.KEY_MENU_LONG_PRESS_ACTION,
- CMSettings.System.KEY_ASSIST_ACTION,
- CMSettings.System.KEY_ASSIST_LONG_PRESS_ACTION,
- CMSettings.System.KEY_APP_SWITCH_ACTION,
- CMSettings.System.KEY_APP_SWITCH_LONG_PRESS_ACTION,
- CMSettings.System.HOME_WAKE_SCREEN,
- CMSettings.System.ASSIST_WAKE_SCREEN,
- CMSettings.System.APP_SWITCH_WAKE_SCREEN,
- CMSettings.System.CAMERA_WAKE_SCREEN,
- CMSettings.System.CAMERA_SLEEP_ON_RELEASE,
- CMSettings.System.CAMERA_LAUNCH,
- CMSettings.System.STYLUS_ICON_ENABLED,
- CMSettings.System.SWAP_VOLUME_KEYS_ON_ROTATION,
- CMSettings.System.BATTERY_LIGHT_ENABLED,
- CMSettings.System.BATTERY_LIGHT_PULSE,
- CMSettings.System.BATTERY_LIGHT_LOW_COLOR,
- CMSettings.System.BATTERY_LIGHT_MEDIUM_COLOR,
- CMSettings.System.BATTERY_LIGHT_FULL_COLOR,
- CMSettings.System.ENABLE_MWI_NOTIFICATION,
- CMSettings.System.PROXIMITY_ON_WAKE,
- CMSettings.System.ENABLE_FORWARD_LOOKUP,
- CMSettings.System.ENABLE_PEOPLE_LOOKUP,
- CMSettings.System.ENABLE_REVERSE_LOOKUP,
- CMSettings.System.FORWARD_LOOKUP_PROVIDER,
- CMSettings.System.PEOPLE_LOOKUP_PROVIDER,
- CMSettings.System.REVERSE_LOOKUP_PROVIDER,
- CMSettings.System.DIALER_OPENCNAM_ACCOUNT_SID,
- CMSettings.System.DIALER_OPENCNAM_AUTH_TOKEN,
- CMSettings.System.DISPLAY_TEMPERATURE_DAY,
- CMSettings.System.DISPLAY_TEMPERATURE_NIGHT,
- CMSettings.System.DISPLAY_TEMPERATURE_MODE,
- CMSettings.System.DISPLAY_AUTO_OUTDOOR_MODE,
- CMSettings.System.DISPLAY_LOW_POWER,
- CMSettings.System.DISPLAY_COLOR_ENHANCE,
- CMSettings.System.DISPLAY_COLOR_ADJUSTMENT,
- CMSettings.System.LIVE_DISPLAY_HINTED,
- CMSettings.System.DOUBLE_TAP_SLEEP_GESTURE,
- CMSettings.System.STATUS_BAR_SHOW_WEATHER,
- CMSettings.System.RECENTS_SHOW_SEARCH_BAR,
- CMSettings.System.NAVBAR_LEFT_IN_LANDSCAPE,
- CMSettings.System.T9_SEARCH_INPUT_LOCALE,
- CMSettings.System.BLUETOOTH_ACCEPT_ALL_FILES,
- CMSettings.System.LOCKSCREEN_PIN_SCRAMBLE_LAYOUT,
- CMSettings.System.LOCKSCREEN_ROTATION,
- CMSettings.System.SHOW_ALARM_ICON,
- CMSettings.System.STATUS_BAR_IME_SWITCHER,
- CMSettings.System.QS_SHOW_BRIGHTNESS_SLIDER,
- CMSettings.System.STATUS_BAR_BRIGHTNESS_CONTROL,
- CMSettings.System.VOLBTN_MUSIC_CONTROLS,
- CMSettings.System.SWAP_VOLUME_KEYS_ON_ROTATION,
- CMSettings.System.USE_EDGE_SERVICE_FOR_GESTURES,
- CMSettings.System.STATUS_BAR_NOTIF_COUNT,
- CMSettings.System.CALL_RECORDING_FORMAT,
- CMSettings.System.NOTIFICATION_LIGHT_BRIGHTNESS_LEVEL,
- CMSettings.System.NOTIFICATION_LIGHT_MULTIPLE_LEDS_ENABLE,
- CMSettings.System.NOTIFICATION_LIGHT_SCREEN_ON,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_DEFAULT_COLOR,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_DEFAULT_LED_ON,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_DEFAULT_LED_OFF,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_CALL_COLOR,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_CALL_LED_ON,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_CALL_LED_OFF,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_VMAIL_COLOR,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_VMAIL_LED_ON,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_VMAIL_LED_OFF,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_ENABLE,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_VALUES,
- CMSettings.System.STATUS_BAR_QUICK_QS_PULLDOWN,
- CMSettings.System.VOLUME_ADJUST_SOUNDS_ENABLED,
- CMSettings.System.SYSTEM_PROFILES_ENABLED,
- CMSettings.System.INCREASING_RING,
- CMSettings.System.INCREASING_RING_START_VOLUME,
- CMSettings.System.INCREASING_RING_RAMP_UP_TIME,
- CMSettings.System.STATUS_BAR_CLOCK,
- CMSettings.System.STATUS_BAR_AM_PM,
- CMSettings.System.STATUS_BAR_BATTERY_STYLE,
- CMSettings.System.STATUS_BAR_SHOW_BATTERY_PERCENT,
- CMSettings.System.VOLUME_KEYS_CONTROL_RING_STREAM,
- CMSettings.System.NAVIGATION_BAR_MENU_ARROW_KEYS,
+ LineageSettings.System.QS_QUICK_PULLDOWN,
+ LineageSettings.System.NAV_BUTTONS,
+ LineageSettings.System.KEY_HOME_LONG_PRESS_ACTION,
+ LineageSettings.System.KEY_HOME_DOUBLE_TAP_ACTION,
+ LineageSettings.System.BACK_WAKE_SCREEN,
+ LineageSettings.System.MENU_WAKE_SCREEN,
+ LineageSettings.System.VOLUME_WAKE_SCREEN,
+ LineageSettings.System.KEY_MENU_ACTION,
+ LineageSettings.System.KEY_MENU_LONG_PRESS_ACTION,
+ LineageSettings.System.KEY_ASSIST_ACTION,
+ LineageSettings.System.KEY_ASSIST_LONG_PRESS_ACTION,
+ LineageSettings.System.KEY_APP_SWITCH_ACTION,
+ LineageSettings.System.KEY_APP_SWITCH_LONG_PRESS_ACTION,
+ LineageSettings.System.HOME_WAKE_SCREEN,
+ LineageSettings.System.ASSIST_WAKE_SCREEN,
+ LineageSettings.System.APP_SWITCH_WAKE_SCREEN,
+ LineageSettings.System.CAMERA_WAKE_SCREEN,
+ LineageSettings.System.CAMERA_SLEEP_ON_RELEASE,
+ LineageSettings.System.CAMERA_LAUNCH,
+ LineageSettings.System.STYLUS_ICON_ENABLED,
+ LineageSettings.System.SWAP_VOLUME_KEYS_ON_ROTATION,
+ LineageSettings.System.BATTERY_LIGHT_ENABLED,
+ LineageSettings.System.BATTERY_LIGHT_PULSE,
+ LineageSettings.System.BATTERY_LIGHT_LOW_COLOR,
+ LineageSettings.System.BATTERY_LIGHT_MEDIUM_COLOR,
+ LineageSettings.System.BATTERY_LIGHT_FULL_COLOR,
+ LineageSettings.System.ENABLE_MWI_NOTIFICATION,
+ LineageSettings.System.PROXIMITY_ON_WAKE,
+ LineageSettings.System.ENABLE_FORWARD_LOOKUP,
+ LineageSettings.System.ENABLE_PEOPLE_LOOKUP,
+ LineageSettings.System.ENABLE_REVERSE_LOOKUP,
+ LineageSettings.System.FORWARD_LOOKUP_PROVIDER,
+ LineageSettings.System.PEOPLE_LOOKUP_PROVIDER,
+ LineageSettings.System.REVERSE_LOOKUP_PROVIDER,
+ LineageSettings.System.DIALER_OPENCNAM_ACCOUNT_SID,
+ LineageSettings.System.DIALER_OPENCNAM_AUTH_TOKEN,
+ LineageSettings.System.DISPLAY_TEMPERATURE_DAY,
+ LineageSettings.System.DISPLAY_TEMPERATURE_NIGHT,
+ LineageSettings.System.DISPLAY_TEMPERATURE_MODE,
+ LineageSettings.System.DISPLAY_AUTO_OUTDOOR_MODE,
+ LineageSettings.System.DISPLAY_LOW_POWER,
+ LineageSettings.System.DISPLAY_COLOR_ENHANCE,
+ LineageSettings.System.DISPLAY_COLOR_ADJUSTMENT,
+ LineageSettings.System.LIVE_DISPLAY_HINTED,
+ LineageSettings.System.DOUBLE_TAP_SLEEP_GESTURE,
+ LineageSettings.System.STATUS_BAR_SHOW_WEATHER,
+ LineageSettings.System.RECENTS_SHOW_SEARCH_BAR,
+ LineageSettings.System.NAVBAR_LEFT_IN_LANDSCAPE,
+ LineageSettings.System.T9_SEARCH_INPUT_LOCALE,
+ LineageSettings.System.BLUETOOTH_ACCEPT_ALL_FILES,
+ LineageSettings.System.LOCKSCREEN_PIN_SCRAMBLE_LAYOUT,
+ LineageSettings.System.LOCKSCREEN_ROTATION,
+ LineageSettings.System.SHOW_ALARM_ICON,
+ LineageSettings.System.STATUS_BAR_IME_SWITCHER,
+ LineageSettings.System.QS_SHOW_BRIGHTNESS_SLIDER,
+ LineageSettings.System.STATUS_BAR_BRIGHTNESS_CONTROL,
+ LineageSettings.System.VOLBTN_MUSIC_CONTROLS,
+ LineageSettings.System.SWAP_VOLUME_KEYS_ON_ROTATION,
+ LineageSettings.System.USE_EDGE_SERVICE_FOR_GESTURES,
+ LineageSettings.System.STATUS_BAR_NOTIF_COUNT,
+ LineageSettings.System.CALL_RECORDING_FORMAT,
+ LineageSettings.System.NOTIFICATION_LIGHT_BRIGHTNESS_LEVEL,
+ LineageSettings.System.NOTIFICATION_LIGHT_MULTIPLE_LEDS_ENABLE,
+ LineageSettings.System.NOTIFICATION_LIGHT_SCREEN_ON,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_DEFAULT_COLOR,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_DEFAULT_LED_ON,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_DEFAULT_LED_OFF,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_CALL_COLOR,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_CALL_LED_ON,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_CALL_LED_OFF,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_VMAIL_COLOR,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_VMAIL_LED_ON,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_VMAIL_LED_OFF,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_ENABLE,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_VALUES,
+ LineageSettings.System.STATUS_BAR_QUICK_QS_PULLDOWN,
+ LineageSettings.System.VOLUME_ADJUST_SOUNDS_ENABLED,
+ LineageSettings.System.SYSTEM_PROFILES_ENABLED,
+ LineageSettings.System.INCREASING_RING,
+ LineageSettings.System.INCREASING_RING_START_VOLUME,
+ LineageSettings.System.INCREASING_RING_RAMP_UP_TIME,
+ LineageSettings.System.STATUS_BAR_CLOCK,
+ LineageSettings.System.STATUS_BAR_AM_PM,
+ LineageSettings.System.STATUS_BAR_BATTERY_STYLE,
+ LineageSettings.System.STATUS_BAR_SHOW_BATTERY_PERCENT,
+ LineageSettings.System.VOLUME_KEYS_CONTROL_RING_STREAM,
+ LineageSettings.System.NAVIGATION_BAR_MENU_ARROW_KEYS,
};
/**
@@ -744,7 +744,7 @@ public final class CMSettings {
}
/**
- * Secure settings, containing miscellaneous CM secure preferences. This
+ * Secure settings, containing miscellaneous Lineage secure preferences. This
* table holds simple name/value pairs. There are convenience
* functions for accessing individual settings entries.
*/
@@ -1012,7 +1012,7 @@ public final class CMSettings {
/**
* This will be set to the system's current theme API version when ThemeService starts.
- * It is useful for when an upgrade from one version of CM to another occurs.
+ * It is useful for when an upgrade from one version of Lineage to another occurs.
* For example, after a user upgrades from CM11 to CM12, the value of this field
* might be 19. ThemeService would then change the value to 21. This is useful
* when an API change breaks a theme. Themeservice can identify old themes and
@@ -1026,37 +1026,37 @@ public final class CMSettings {
* @hide
*/
public static final String[] LEGACY_SECURE_SETTINGS = new String[]{
- CMSettings.Secure.ADVANCED_MODE,
- CMSettings.Secure.BUTTON_BACKLIGHT_TIMEOUT,
- CMSettings.Secure.BUTTON_BRIGHTNESS,
- CMSettings.Secure.DEFAULT_THEME_COMPONENTS,
- CMSettings.Secure.DEFAULT_THEME_PACKAGE,
- CMSettings.Secure.DEV_FORCE_SHOW_NAVBAR,
- CMSettings.Secure.KEYBOARD_BRIGHTNESS,
- CMSettings.Secure.POWER_MENU_ACTIONS,
- CMSettings.Secure.STATS_COLLECTION,
- CMSettings.Secure.QS_SHOW_BRIGHTNESS_SLIDER,
- CMSettings.Secure.QS_TILES,
- CMSettings.Secure.QS_USE_MAIN_TILES,
- CMSettings.Secure.VOLUME_LINK_NOTIFICATION,
- CMSettings.Secure.NAVIGATION_RING_TARGETS[0],
- CMSettings.Secure.NAVIGATION_RING_TARGETS[1],
- CMSettings.Secure.NAVIGATION_RING_TARGETS[2],
- CMSettings.Secure.RECENTS_LONG_PRESS_ACTIVITY,
- CMSettings.Secure.ADB_NOTIFY,
- CMSettings.Secure.ADB_PORT,
- CMSettings.Secure.DEVICE_HOSTNAME,
- CMSettings.Secure.KILL_APP_LONGPRESS_BACK,
- CMSettings.Secure.PROTECTED_COMPONENTS,
- CMSettings.Secure.LIVE_DISPLAY_COLOR_MATRIX,
- CMSettings.Secure.ADVANCED_REBOOT,
- CMSettings.Secure.THEME_PREV_BOOT_API_LEVEL,
- CMSettings.Secure.LOCKSCREEN_TARGETS,
- CMSettings.Secure.RING_HOME_BUTTON_BEHAVIOR,
- CMSettings.Secure.PRIVACY_GUARD_DEFAULT,
- CMSettings.Secure.DEVELOPMENT_SHORTCUT,
- CMSettings.Secure.PERFORMANCE_PROFILE,
- CMSettings.Secure.APP_PERFORMANCE_PROFILES_ENABLED};
+ LineageSettings.Secure.ADVANCED_MODE,
+ LineageSettings.Secure.BUTTON_BACKLIGHT_TIMEOUT,
+ LineageSettings.Secure.BUTTON_BRIGHTNESS,
+ LineageSettings.Secure.DEFAULT_THEME_COMPONENTS,
+ LineageSettings.Secure.DEFAULT_THEME_PACKAGE,
+ LineageSettings.Secure.DEV_FORCE_SHOW_NAVBAR,
+ LineageSettings.Secure.KEYBOARD_BRIGHTNESS,
+ LineageSettings.Secure.POWER_MENU_ACTIONS,
+ LineageSettings.Secure.STATS_COLLECTION,
+ LineageSettings.Secure.QS_SHOW_BRIGHTNESS_SLIDER,
+ LineageSettings.Secure.QS_TILES,
+ LineageSettings.Secure.QS_USE_MAIN_TILES,
+ LineageSettings.Secure.VOLUME_LINK_NOTIFICATION,
+ LineageSettings.Secure.NAVIGATION_RING_TARGETS[0],
+ LineageSettings.Secure.NAVIGATION_RING_TARGETS[1],
+ LineageSettings.Secure.NAVIGATION_RING_TARGETS[2],
+ LineageSettings.Secure.RECENTS_LONG_PRESS_ACTIVITY,
+ LineageSettings.Secure.ADB_NOTIFY,
+ LineageSettings.Secure.ADB_PORT,
+ LineageSettings.Secure.DEVICE_HOSTNAME,
+ LineageSettings.Secure.KILL_APP_LONGPRESS_BACK,
+ LineageSettings.Secure.PROTECTED_COMPONENTS,
+ LineageSettings.Secure.LIVE_DISPLAY_COLOR_MATRIX,
+ LineageSettings.Secure.ADVANCED_REBOOT,
+ LineageSettings.Secure.THEME_PREV_BOOT_API_LEVEL,
+ LineageSettings.Secure.LOCKSCREEN_TARGETS,
+ LineageSettings.Secure.RING_HOME_BUTTON_BEHAVIOR,
+ LineageSettings.Secure.PRIVACY_GUARD_DEFAULT,
+ LineageSettings.Secure.DEVELOPMENT_SHORTCUT,
+ LineageSettings.Secure.PERFORMANCE_PROFILE,
+ LineageSettings.Secure.APP_PERFORMANCE_PROFILES_ENABLED};
/**
* @hide
@@ -1067,7 +1067,7 @@ public final class CMSettings {
}
/**
- * Global settings, containing miscellaneous CM global preferences. This
+ * Global settings, containing miscellaneous Lineage global preferences. This
* table holds simple name/value pairs. There are convenience
* functions for accessing individual settings entries.
*/
@@ -1122,12 +1122,12 @@ public final class CMSettings {
* @hide
*/
public static final String[] LEGACY_GLOBAL_SETTINGS = new String[]{
- CMSettings.Global.WAKE_WHEN_PLUGGED_OR_UNPLUGGED,
- CMSettings.Global.POWER_NOTIFICATIONS_ENABLED,
- CMSettings.Global.POWER_NOTIFICATIONS_VIBRATE,
- CMSettings.Global.POWER_NOTIFICATIONS_RINGTONE,
- CMSettings.Global.ZEN_DISABLE_DUCKING_DURING_MEDIA_PLAYBACK,
- CMSettings.Global.WIFI_AUTO_PRIORITIES_CONFIGURATION};
+ LineageSettings.Global.WAKE_WHEN_PLUGGED_OR_UNPLUGGED,
+ LineageSettings.Global.POWER_NOTIFICATIONS_ENABLED,
+ LineageSettings.Global.POWER_NOTIFICATIONS_VIBRATE,
+ LineageSettings.Global.POWER_NOTIFICATIONS_RINGTONE,
+ LineageSettings.Global.ZEN_DISABLE_DUCKING_DURING_MEDIA_PLAYBACK,
+ LineageSettings.Global.WIFI_AUTO_PRIORITIES_CONFIGURATION};
/**
* @hide
diff --git a/host/migration/src/MigrationTest.java b/host/migration/src/MigrationTest.java
index 32475939..8882afbb 100644
--- a/host/migration/src/MigrationTest.java
+++ b/host/migration/src/MigrationTest.java
@@ -30,9 +30,9 @@ class MigrationTest {
public static final boolean DEBUG = true;
- private static ArrayList cmSystemSettingList = new ArrayList();
- private static ArrayList cmSecureSettingList = new ArrayList();
- private static ArrayList cmGlobalSettingList = new ArrayList();
+ private static ArrayList lineageSystemSettingList = new ArrayList();
+ private static ArrayList lineageSecureSettingList = new ArrayList();
+ private static ArrayList lineageGlobalSettingList = new ArrayList();
private static ArrayList legacySystemSettings = new ArrayList();
private static ArrayList legacySecureSettings = new ArrayList();
@@ -74,20 +74,20 @@ class MigrationTest {
//Read settings
legacySettings.execute();
- SettingImageCommands legacyToCMSettings =
+ SettingImageCommands legacyToLineageSettings =
new SettingImageCommands(SettingsConstants.SETTINGS_AUTHORITY);
//For each example setting in the table, add inserts
for (Setting setting : legacySystemSettings) {
- legacyToCMSettings.addInsert(SettingsConstants.SYSTEM, setting);
+ legacyToLineageSettings.addInsert(SettingsConstants.SYSTEM, setting);
}
for (Setting setting : legacySecureSettings) {
- legacyToCMSettings.addInsert(SettingsConstants.SECURE, setting);
+ legacyToLineageSettings.addInsert(SettingsConstants.SECURE, setting);
}
for (Setting setting : legacyGlobalSettings) {
- legacyToCMSettings.addInsert(SettingsConstants.GLOBAL, setting);
+ legacyToLineageSettings.addInsert(SettingsConstants.GLOBAL, setting);
}
//Write them to the database for verification later
- legacyToCMSettings.execute();
+ legacyToLineageSettings.execute();
//Force update
DebuggingCommands updateRom = new DebuggingCommands();
@@ -102,20 +102,20 @@ class MigrationTest {
updateRom.execute();
//Requery
- SettingImageCommands cmSettingImage =
- new SettingImageCommands(SettingsConstants.CMSETTINGS_AUTHORITY);
- cmSettingImage.addQuery(SettingsConstants.SYSTEM, cmSystemSettingList);
- cmSettingImage.addQuery(SettingsConstants.SECURE, cmSecureSettingList);
- cmSettingImage.addQuery(SettingsConstants.GLOBAL, cmGlobalSettingList);
- cmSettingImage.execute();
+ SettingImageCommands lineageSettingImage =
+ new SettingImageCommands(SettingsConstants.LINEAGESETTINGS_AUTHORITY);
+ lineageSettingImage.addQuery(SettingsConstants.SYSTEM, lineageSystemSettingList);
+ lineageSettingImage.addQuery(SettingsConstants.SECURE, lineageSecureSettingList);
+ lineageSettingImage.addQuery(SettingsConstants.GLOBAL, lineageGlobalSettingList);
+ lineageSettingImage.execute();
//Validate
System.out.println("\n\nValidating " + SettingsConstants.SYSTEM + "...");
- validate(legacySystemSettings, cmSystemSettingList);
+ validate(legacySystemSettings, lineageSystemSettingList);
System.out.println("\n\nValidating " + SettingsConstants.SECURE + "...");
- validate(legacySecureSettings, cmSecureSettingList);
+ validate(legacySecureSettings, lineageSecureSettingList);
System.out.println("\n\nValidating " + SettingsConstants.GLOBAL + "...");
- validate(legacyGlobalSettings, cmGlobalSettingList);
+ validate(legacyGlobalSettings, lineageGlobalSettingList);
System.exit(0);
}
@@ -150,43 +150,43 @@ class MigrationTest {
return value;
}
- private static void validate(ArrayList legacySettings, ArrayList cmSettings) {
+ private static void validate(ArrayList legacySettings, ArrayList lineageSettings) {
Collections.sort(legacySettings);
- Collections.sort(cmSettings);
+ Collections.sort(lineageSettings);
- if (legacySettings.size() != cmSettings.size()) {
+ if (legacySettings.size() != lineageSettings.size()) {
System.err.println("Warning: Size mismatch: " + " legacy "
- + legacySettings.size() + " cm " + cmSettings.size());
+ + legacySettings.size() + " lineage " + lineageSettings.size());
}
for (int i = 0; i < legacySettings.size(); i++) {
Setting legacySetting = legacySettings.get(i);
- Setting cmSetting = cmSettings.get(i);
+ Setting lineageSetting = lineageSettings.get(i);
int error = 0;
- System.out.println("Comparing: legacy " + legacySetting.getKey() + " and cmsetting "
- + cmSetting.getKey());
+ System.out.println("Comparing: legacy " + legacySetting.getKey() + " and lineagesetting "
+ + lineageSetting.getKey());
- if (!legacySetting.getKey().equals(cmSetting.getKey())) {
+ if (!legacySetting.getKey().equals(lineageSetting.getKey())) {
System.err.println(" Key mismatch: " + legacySetting.getKey() + " and "
- + cmSetting.getKey());
+ + lineageSetting.getKey());
error = 1;
}
- if (!legacySetting.getKeyType().equals(cmSetting.getKeyType())) {
+ if (!legacySetting.getKeyType().equals(lineageSetting.getKeyType())) {
System.err.println(" Key type mismatch: " + legacySetting.getKeyType() + " and "
- + cmSetting.getKeyType());
+ + lineageSetting.getKeyType());
error = 1;
}
if (legacySetting.getValue().length() > 0) {
- if (!legacySetting.getValue().equals(cmSetting.getValue())) {
+ if (!legacySetting.getValue().equals(lineageSetting.getValue())) {
System.err.println(" Value mismatch: " + legacySetting.getValue() + " and "
- + cmSetting.getValue());
+ + lineageSetting.getValue());
error = 1;
}
}
- if (!legacySetting.getValueType().equals(cmSetting.getValueType())) {
+ if (!legacySetting.getValueType().equals(lineageSetting.getValueType())) {
System.err.println(" Value type mismatch: " + legacySetting.getValueType()
- + " and " + cmSetting.getValueType());
+ + " and " + lineageSetting.getValueType());
error = 1;
}
diff --git a/host/migration/src/QueryCommand.java b/host/migration/src/QueryCommand.java
index c25779aa..6d5c1dc8 100644
--- a/host/migration/src/QueryCommand.java
+++ b/host/migration/src/QueryCommand.java
@@ -61,7 +61,7 @@ public class QueryCommand extends Command {
commandList.add(SettingsConstants.CONTENT_URI + getAuthority() + uri);
commandList.add("--projection");
commandList.add(PROJECTION);
- commandList.add("--show-type"); //this is totally awesomely cm specific
+ commandList.add("--show-type"); //this is totally awesomely lineage specific
commandList.add("true");
commands = commandList.toArray(new String[commandList.size()]);
if (MigrationTest.DEBUG) {
diff --git a/host/migration/src/SettingsConstants.java b/host/migration/src/SettingsConstants.java
index 3868467d..53a2ea13 100644
--- a/host/migration/src/SettingsConstants.java
+++ b/host/migration/src/SettingsConstants.java
@@ -20,7 +20,7 @@ import java.util.ArrayList;
* Created by adnan on 11/16/15.
*/
public class SettingsConstants {
- public static final String CMSETTINGS_AUTHORITY = "cmsettings";
+ public static final String LINEAGESETTINGS_AUTHORITY = "lineagesettings";
public static final String SETTINGS_AUTHORITY = "settings";
public static final String CONTENT_URI = "content://";
public static final String SYSTEM = "/system";
@@ -31,7 +31,7 @@ public class SettingsConstants {
public static ArrayList SECURE_SETTINGS = new ArrayList();
static {
- SECURE_SETTINGS.add(CMSettings.Secure.ADB_PORT);
+ SECURE_SETTINGS.add(LineageSettings.Secure.ADB_PORT);
}
}
}
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/AppSuggestManagerService.java b/lineage/lib/main/java/org/lineageos/platform/internal/AppSuggestManagerService.java
index d2c11210..c40c80f6 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/AppSuggestManagerService.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/AppSuggestManagerService.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal;
+package org.lineageos.platform.internal;
import android.content.Context;
import android.content.Intent;
@@ -23,21 +23,21 @@ import android.util.Log;
import android.util.Slog;
import com.android.server.SystemService;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.app.suggest.ApplicationSuggestion;
-import cyanogenmod.app.suggest.IAppSuggestManager;
+import lineageos.app.LineageContextConstants;
+import lineageos.app.suggest.ApplicationSuggestion;
+import lineageos.app.suggest.IAppSuggestManager;
import java.util.ArrayList;
import java.util.List;
/** @hide */
-public class AppSuggestManagerService extends CMSystemService {
+public class AppSuggestManagerService extends LineageSystemService {
private static final String TAG = "AppSgstMgrService";
public static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG);
public static final String NAME = "appsuggest";
- public static final String ACTION = "org.cyanogenmod.app.suggest";
+ public static final String ACTION = "org.lineageos.app.suggest";
private AppSuggestProviderInterface mImpl;
private Context mContext;
@@ -63,7 +63,7 @@ public class AppSuggestManagerService extends CMSystemService {
@Override
public String getFeatureDeclaration() {
- return CMContextConstants.Features.APP_SUGGEST;
+ return LineageContextConstants.Features.APP_SUGGEST;
}
@Override
@@ -77,6 +77,6 @@ public class AppSuggestManagerService extends CMSystemService {
} else {
Slog.i(TAG, "Bound to to suggest provider");
}
- publishBinderService(CMContextConstants.CM_APP_SUGGEST_SERVICE, mService);
+ publishBinderService(LineageContextConstants.LINEAGE_APP_SUGGEST_SERVICE, mService);
}
}
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/AppSuggestProviderInterface.java b/lineage/lib/main/java/org/lineageos/platform/internal/AppSuggestProviderInterface.java
index da815cec..99046096 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/AppSuggestProviderInterface.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/AppSuggestProviderInterface.java
@@ -14,10 +14,10 @@
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal;
+package org.lineageos.platform.internal;
import android.content.Intent;
-import cyanogenmod.app.suggest.ApplicationSuggestion;
+import lineageos.app.suggest.ApplicationSuggestion;
import java.util.List;
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/AppSuggestProviderProxy.java b/lineage/lib/main/java/org/lineageos/platform/internal/AppSuggestProviderProxy.java
index 0357f73d..75869a71 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/AppSuggestProviderProxy.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/AppSuggestProviderProxy.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal;
+package org.lineageos.platform.internal;
import android.content.Context;
import android.content.Intent;
@@ -23,8 +23,8 @@ import android.os.RemoteException;
import android.util.Log;
import com.android.server.ServiceWatcher;
-import cyanogenmod.app.suggest.ApplicationSuggestion;
-import cyanogenmod.app.suggest.IAppSuggestProvider;
+import lineageos.app.suggest.ApplicationSuggestion;
+import lineageos.app.suggest.IAppSuggestProvider;
import java.util.ArrayList;
import java.util.List;
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/AppsFailureReceiver.java b/lineage/lib/main/java/org/lineageos/platform/internal/AppsFailureReceiver.java
index e199d2ac..2b994407 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/AppsFailureReceiver.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/AppsFailureReceiver.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal;
+package org.lineageos.platform.internal;
import android.app.Notification;
import android.app.NotificationManager;
@@ -26,14 +26,14 @@ import android.os.RemoteException;
import android.os.ServiceManager;
import android.os.SystemClock;
-import org.cyanogenmod.internal.util.ThemeUtils;
+import org.lineageos.internal.util.ThemeUtils;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.themes.IThemeService;
-import cyanogenmod.themes.ThemeChangeRequest;
-import cyanogenmod.themes.ThemeChangeRequest.RequestType;
+import lineageos.app.LineageContextConstants;
+import lineageos.themes.IThemeService;
+import lineageos.themes.ThemeChangeRequest;
+import lineageos.themes.ThemeChangeRequest.RequestType;
-import static cyanogenmod.content.Intent.ACTION_APP_FAILURE;
+import static lineageos.content.Intent.ACTION_APP_FAILURE;
public class AppsFailureReceiver extends BroadcastReceiver {
@@ -63,7 +63,7 @@ public class AppsFailureReceiver extends BroadcastReceiver {
if (mFailuresCount == FAILURES_THRESHOLD) {
// let the theme manager take care of getting us back on the default theme
IThemeService tm = IThemeService.Stub.asInterface(ServiceManager
- .getService(CMContextConstants.CM_THEME_SERVICE));
+ .getService(LineageContextConstants.LINEAGE_THEME_SERVICE));
final String themePkgName = ThemeConfig.SYSTEM_DEFAULT;
ThemeChangeRequest.Builder builder = new ThemeChangeRequest.Builder();
builder.setOverlay(themePkgName)
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/BrokerableLineageSystemService.java b/lineage/lib/main/java/org/lineageos/platform/internal/BrokerableLineageSystemService.java
index 76bad9fb..f3773fa3 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/BrokerableLineageSystemService.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/BrokerableLineageSystemService.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal;
+package org.lineageos.platform.internal;
import android.annotation.NonNull;
import android.annotation.Nullable;
@@ -30,14 +30,14 @@ import android.os.Message;
import android.os.SystemClock;
import android.util.Slog;
-import cyanogenmod.platform.Manifest;
+import lineageos.platform.Manifest;
import com.android.internal.util.Preconditions;
-import org.cyanogenmod.platform.internal.common.BrokeredServiceConnection;
+import org.lineageos.platform.internal.common.BrokeredServiceConnection;
-public abstract class BrokerableCMSystemService extends CMSystemService {
- private static final String TAG = BrokerableCMSystemService.class.getSimpleName();
+public abstract class BrokerableLineageSystemService extends LineageSystemService {
+ private static final String TAG = BrokerableLineageSystemService.class.getSimpleName();
private static final int MSG_TRY_CONNECTING = 1;
private static final long SERVICE_CONNECTION_WAIT_TIME_MS = 4 * 1000L; // 4 seconds
@@ -46,7 +46,7 @@ public abstract class BrokerableCMSystemService extends CM
private BrokeredServiceConnection mBrokeredServiceConnection;
private T mImplementingBinderInterface;
- public BrokerableCMSystemService(Context context) {
+ public BrokerableLineageSystemService(Context context) {
super(context);
mContext = context;
}
@@ -209,9 +209,9 @@ public abstract class BrokerableCMSystemService extends CM
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
Slog.i(TAG, "Implementation service connected");
- synchronized (BrokerableCMSystemService.this) {
+ synchronized (BrokerableLineageSystemService.this) {
mImplementingBinderInterface = getIBinderAsIInterface(service);
- BrokerableCMSystemService.this.notifyAll();
+ BrokerableLineageSystemService.this.notifyAll();
if (mBrokeredServiceConnection != null) {
Slog.i(TAG, "Notifying service connected");
mBrokeredServiceConnection.onBrokeredServiceConnected();
@@ -222,9 +222,9 @@ public abstract class BrokerableCMSystemService extends CM
@Override
public void onServiceDisconnected(ComponentName name) {
Slog.i(TAG, "Implementation service unexpectedly disconnected");
- synchronized (BrokerableCMSystemService.this) {
+ synchronized (BrokerableLineageSystemService.this) {
mImplementingBinderInterface = null;
- BrokerableCMSystemService.this.notifyAll();
+ BrokerableLineageSystemService.this.notifyAll();
if (mBrokeredServiceConnection != null) {
mBrokeredServiceConnection.onBrokeredServiceDisconnected();
}
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/IconCacheManagerServiceBroker.java b/lineage/lib/main/java/org/lineageos/platform/internal/IconCacheManagerServiceBroker.java
index 044449a9..388335ea 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/IconCacheManagerServiceBroker.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/IconCacheManagerServiceBroker.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal;
+package org.lineageos.platform.internal;
import android.annotation.NonNull;
import android.content.ComponentName;
@@ -23,21 +23,21 @@ import android.graphics.Bitmap;
import android.os.IBinder;
import android.os.RemoteException;
-import cyanogenmod.app.CMContextConstants;
+import lineageos.app.LineageContextConstants;
-import org.cyanogenmod.internal.themes.IIconCacheManager;
-import org.cyanogenmod.platform.internal.common.BrokeredServiceConnection;
+import org.lineageos.internal.themes.IIconCacheManager;
+import org.lineageos.platform.internal.common.BrokeredServiceConnection;
/**
* Icon cache service broker for connecting clients to a backing icon cache manager service.
*
* @hide
*/
-public class IconCacheManagerServiceBroker extends BrokerableCMSystemService {
+public class IconCacheManagerServiceBroker extends BrokerableLineageSystemService {
private static final ComponentName SERVICE_COMPONENT =
- new ComponentName("org.cyanogenmod.themeservice",
- "org.cyanogenmod.themeservice.IconCacheManagerService");
+ new ComponentName("org.lineageos.themeservice",
+ "org.lineageos.themeservice.IconCacheManagerService");
private final IIconCacheManager mServiceStubForFailure = new IIconCacheManager.Stub() {
@Override
@@ -70,7 +70,7 @@ public class IconCacheManagerServiceBroker extends BrokerableCMSystemService {
+public class LineageAudioServiceBroker extends BrokerableLineageSystemService {
- private static final String TAG = "CMAudioServiceBroker";
+ private static final String TAG = "LineageAudioServiceBroker";
private static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG);
private final Context mContext;
private static final ComponentName TARGET_IMPLEMENTATION_COMPONENT =
- new ComponentName("org.cyanogenmod.cmaudio.service",
- "org.cyanogenmod.cmaudio.service.CMAudioService");
+ new ComponentName("org.lineageos.lineageaudio.service",
+ "org.lineageos.lineageaudio.service.LineageAudioService");
- public CMAudioServiceBroker(Context context) {
+ public LineageAudioServiceBroker(Context context) {
super(context);
mContext = context;
}
@@ -57,7 +57,7 @@ public class CMAudioServiceBroker extends BrokerableCMSystemService listAudioSessions(int streamType) throws RemoteException {
checkPermission();
@@ -99,7 +99,7 @@ public class CMAudioServiceBroker extends BrokerableCMSystemService listAudioSessions(int streamType) throws RemoteException {
checkPermission();
@@ -111,7 +111,7 @@ public class CMAudioServiceBroker extends BrokerableCMSystemService sessions = listAudioSessions(-1);
if (sessions.size() > 0) {
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/LineageHardwareService.java b/lineage/lib/main/java/org/lineageos/platform/internal/LineageHardwareService.java
index 567c94d8..eb7eb041 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/LineageHardwareService.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/LineageHardwareService.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal;
+package org.lineageos.platform.internal;
import android.content.Context;
import android.content.Intent;
@@ -28,49 +28,49 @@ import android.util.Range;
import com.android.server.SystemService;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.hardware.ICMHardwareService;
-import cyanogenmod.hardware.CMHardwareManager;
-import cyanogenmod.hardware.DisplayMode;
-import cyanogenmod.hardware.IThermalListenerCallback;
-import cyanogenmod.hardware.ThermalListenerCallback;
-import cyanogenmod.hardware.HSIC;
-import cyanogenmod.hardware.TouchscreenGesture;
+import lineageos.app.LineageContextConstants;
+import lineageos.hardware.ILineageHardwareService;
+import lineageos.hardware.LineageHardwareManager;
+import lineageos.hardware.DisplayMode;
+import lineageos.hardware.IThermalListenerCallback;
+import lineageos.hardware.ThermalListenerCallback;
+import lineageos.hardware.HSIC;
+import lineageos.hardware.TouchscreenGesture;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
-import org.cyanogenmod.hardware.AdaptiveBacklight;
-import org.cyanogenmod.hardware.AutoContrast;
-import org.cyanogenmod.hardware.ColorBalance;
-import org.cyanogenmod.hardware.ColorEnhancement;
-import org.cyanogenmod.hardware.DisplayColorCalibration;
-import org.cyanogenmod.hardware.DisplayGammaCalibration;
-import org.cyanogenmod.hardware.DisplayModeControl;
-import org.cyanogenmod.hardware.HighTouchSensitivity;
-import org.cyanogenmod.hardware.KeyDisabler;
-import org.cyanogenmod.hardware.LongTermOrbits;
-import org.cyanogenmod.hardware.PersistentStorage;
-import org.cyanogenmod.hardware.PictureAdjustment;
-import org.cyanogenmod.hardware.SerialNumber;
-import org.cyanogenmod.hardware.SunlightEnhancement;
-import org.cyanogenmod.hardware.ThermalMonitor;
-import org.cyanogenmod.hardware.ThermalUpdateCallback;
-import org.cyanogenmod.hardware.TouchscreenGestures;
-import org.cyanogenmod.hardware.TouchscreenHovering;
-import org.cyanogenmod.hardware.UniqueDeviceId;
-import org.cyanogenmod.hardware.VibratorHW;
+import org.lineageos.hardware.AdaptiveBacklight;
+import org.lineageos.hardware.AutoContrast;
+import org.lineageos.hardware.ColorBalance;
+import org.lineageos.hardware.ColorEnhancement;
+import org.lineageos.hardware.DisplayColorCalibration;
+import org.lineageos.hardware.DisplayGammaCalibration;
+import org.lineageos.hardware.DisplayModeControl;
+import org.lineageos.hardware.HighTouchSensitivity;
+import org.lineageos.hardware.KeyDisabler;
+import org.lineageos.hardware.LongTermOrbits;
+import org.lineageos.hardware.PersistentStorage;
+import org.lineageos.hardware.PictureAdjustment;
+import org.lineageos.hardware.SerialNumber;
+import org.lineageos.hardware.SunlightEnhancement;
+import org.lineageos.hardware.ThermalMonitor;
+import org.lineageos.hardware.ThermalUpdateCallback;
+import org.lineageos.hardware.TouchscreenGestures;
+import org.lineageos.hardware.TouchscreenHovering;
+import org.lineageos.hardware.UniqueDeviceId;
+import org.lineageos.hardware.VibratorHW;
/** @hide */
-public class CMHardwareService extends CMSystemService implements ThermalUpdateCallback {
+public class LineageHardwareService extends LineageSystemService implements ThermalUpdateCallback {
private static final boolean DEBUG = true;
- private static final String TAG = CMHardwareService.class.getSimpleName();
+ private static final String TAG = LineageHardwareService.class.getSimpleName();
private final Context mContext;
- private final CMHardwareInterface mCmHwImpl;
+ private final LineageHardwareInterface mLineageHwImpl;
private int mCurrentThermalState = ThermalListenerCallback.State.STATE_UNKNOWN;
private RemoteCallbackList mRemoteCallbackList;
@@ -78,7 +78,7 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
new ArrayMap();
private final boolean mFilterDisplayModes;
- private interface CMHardwareInterface {
+ private interface LineageHardwareInterface {
public int getSupportedFeatures();
public boolean get(int feature);
public boolean set(int feature, boolean enable);
@@ -125,49 +125,49 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
public boolean setTouchscreenGestureEnabled(TouchscreenGesture gesture, boolean state);
}
- private class LegacyCMHardware implements CMHardwareInterface {
+ private class LegacyLineageHardware implements LineageHardwareInterface {
private int mSupportedFeatures = 0;
- public LegacyCMHardware() {
+ public LegacyLineageHardware() {
if (AdaptiveBacklight.isSupported())
- mSupportedFeatures |= CMHardwareManager.FEATURE_ADAPTIVE_BACKLIGHT;
+ mSupportedFeatures |= LineageHardwareManager.FEATURE_ADAPTIVE_BACKLIGHT;
if (ColorEnhancement.isSupported())
- mSupportedFeatures |= CMHardwareManager.FEATURE_COLOR_ENHANCEMENT;
+ mSupportedFeatures |= LineageHardwareManager.FEATURE_COLOR_ENHANCEMENT;
if (DisplayColorCalibration.isSupported())
- mSupportedFeatures |= CMHardwareManager.FEATURE_DISPLAY_COLOR_CALIBRATION;
+ mSupportedFeatures |= LineageHardwareManager.FEATURE_DISPLAY_COLOR_CALIBRATION;
if (DisplayGammaCalibration.isSupported())
- mSupportedFeatures |= CMHardwareManager.FEATURE_DISPLAY_GAMMA_CALIBRATION;
+ mSupportedFeatures |= LineageHardwareManager.FEATURE_DISPLAY_GAMMA_CALIBRATION;
if (HighTouchSensitivity.isSupported())
- mSupportedFeatures |= CMHardwareManager.FEATURE_HIGH_TOUCH_SENSITIVITY;
+ mSupportedFeatures |= LineageHardwareManager.FEATURE_HIGH_TOUCH_SENSITIVITY;
if (KeyDisabler.isSupported())
- mSupportedFeatures |= CMHardwareManager.FEATURE_KEY_DISABLE;
+ mSupportedFeatures |= LineageHardwareManager.FEATURE_KEY_DISABLE;
if (LongTermOrbits.isSupported())
- mSupportedFeatures |= CMHardwareManager.FEATURE_LONG_TERM_ORBITS;
+ mSupportedFeatures |= LineageHardwareManager.FEATURE_LONG_TERM_ORBITS;
if (SerialNumber.isSupported())
- mSupportedFeatures |= CMHardwareManager.FEATURE_SERIAL_NUMBER;
+ mSupportedFeatures |= LineageHardwareManager.FEATURE_SERIAL_NUMBER;
if (SunlightEnhancement.isSupported())
- mSupportedFeatures |= CMHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT;
+ mSupportedFeatures |= LineageHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT;
if (VibratorHW.isSupported())
- mSupportedFeatures |= CMHardwareManager.FEATURE_VIBRATOR;
+ mSupportedFeatures |= LineageHardwareManager.FEATURE_VIBRATOR;
if (TouchscreenHovering.isSupported())
- mSupportedFeatures |= CMHardwareManager.FEATURE_TOUCH_HOVERING;
+ mSupportedFeatures |= LineageHardwareManager.FEATURE_TOUCH_HOVERING;
if (AutoContrast.isSupported())
- mSupportedFeatures |= CMHardwareManager.FEATURE_AUTO_CONTRAST;
+ mSupportedFeatures |= LineageHardwareManager.FEATURE_AUTO_CONTRAST;
if (DisplayModeControl.isSupported())
- mSupportedFeatures |= CMHardwareManager.FEATURE_DISPLAY_MODES;
+ mSupportedFeatures |= LineageHardwareManager.FEATURE_DISPLAY_MODES;
if (PersistentStorage.isSupported())
- mSupportedFeatures |= CMHardwareManager.FEATURE_PERSISTENT_STORAGE;
+ mSupportedFeatures |= LineageHardwareManager.FEATURE_PERSISTENT_STORAGE;
if (ThermalMonitor.isSupported())
- mSupportedFeatures |= CMHardwareManager.FEATURE_THERMAL_MONITOR;
+ mSupportedFeatures |= LineageHardwareManager.FEATURE_THERMAL_MONITOR;
if (UniqueDeviceId.isSupported())
- mSupportedFeatures |= CMHardwareManager.FEATURE_UNIQUE_DEVICE_ID;
+ mSupportedFeatures |= LineageHardwareManager.FEATURE_UNIQUE_DEVICE_ID;
if (ColorBalance.isSupported())
- mSupportedFeatures |= CMHardwareManager.FEATURE_COLOR_BALANCE;
+ mSupportedFeatures |= LineageHardwareManager.FEATURE_COLOR_BALANCE;
if (PictureAdjustment.isSupported())
- mSupportedFeatures |= CMHardwareManager.FEATURE_PICTURE_ADJUSTMENT;
+ mSupportedFeatures |= LineageHardwareManager.FEATURE_PICTURE_ADJUSTMENT;
if (TouchscreenGestures.isSupported())
- mSupportedFeatures |= CMHardwareManager.FEATURE_TOUCHSCREEN_GESTURES;
+ mSupportedFeatures |= LineageHardwareManager.FEATURE_TOUCHSCREEN_GESTURES;
}
public int getSupportedFeatures() {
@@ -176,21 +176,21 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
public boolean get(int feature) {
switch(feature) {
- case CMHardwareManager.FEATURE_ADAPTIVE_BACKLIGHT:
+ case LineageHardwareManager.FEATURE_ADAPTIVE_BACKLIGHT:
return AdaptiveBacklight.isEnabled();
- case CMHardwareManager.FEATURE_COLOR_ENHANCEMENT:
+ case LineageHardwareManager.FEATURE_COLOR_ENHANCEMENT:
return ColorEnhancement.isEnabled();
- case CMHardwareManager.FEATURE_HIGH_TOUCH_SENSITIVITY:
+ case LineageHardwareManager.FEATURE_HIGH_TOUCH_SENSITIVITY:
return HighTouchSensitivity.isEnabled();
- case CMHardwareManager.FEATURE_KEY_DISABLE:
+ case LineageHardwareManager.FEATURE_KEY_DISABLE:
return KeyDisabler.isActive();
- case CMHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT:
+ case LineageHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT:
return SunlightEnhancement.isEnabled();
- case CMHardwareManager.FEATURE_TOUCH_HOVERING:
+ case LineageHardwareManager.FEATURE_TOUCH_HOVERING:
return TouchscreenHovering.isEnabled();
- case CMHardwareManager.FEATURE_AUTO_CONTRAST:
+ case LineageHardwareManager.FEATURE_AUTO_CONTRAST:
return AutoContrast.isEnabled();
- case CMHardwareManager.FEATURE_THERMAL_MONITOR:
+ case LineageHardwareManager.FEATURE_THERMAL_MONITOR:
return ThermalMonitor.isEnabled();
default:
Log.e(TAG, "feature " + feature + " is not a boolean feature");
@@ -200,19 +200,19 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
public boolean set(int feature, boolean enable) {
switch(feature) {
- case CMHardwareManager.FEATURE_ADAPTIVE_BACKLIGHT:
+ case LineageHardwareManager.FEATURE_ADAPTIVE_BACKLIGHT:
return AdaptiveBacklight.setEnabled(enable);
- case CMHardwareManager.FEATURE_COLOR_ENHANCEMENT:
+ case LineageHardwareManager.FEATURE_COLOR_ENHANCEMENT:
return ColorEnhancement.setEnabled(enable);
- case CMHardwareManager.FEATURE_HIGH_TOUCH_SENSITIVITY:
+ case LineageHardwareManager.FEATURE_HIGH_TOUCH_SENSITIVITY:
return HighTouchSensitivity.setEnabled(enable);
- case CMHardwareManager.FEATURE_KEY_DISABLE:
+ case LineageHardwareManager.FEATURE_KEY_DISABLE:
return KeyDisabler.setActive(enable);
- case CMHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT:
+ case LineageHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT:
return SunlightEnhancement.setEnabled(enable);
- case CMHardwareManager.FEATURE_TOUCH_HOVERING:
+ case LineageHardwareManager.FEATURE_TOUCH_HOVERING:
return TouchscreenHovering.setEnabled(enable);
- case CMHardwareManager.FEATURE_AUTO_CONTRAST:
+ case LineageHardwareManager.FEATURE_AUTO_CONTRAST:
return AutoContrast.setEnabled(enable);
default:
Log.e(TAG, "feature " + feature + " is not a boolean feature");
@@ -239,11 +239,11 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
private String rgbToString(int[] rgb) {
StringBuilder builder = new StringBuilder();
- builder.append(rgb[CMHardwareManager.COLOR_CALIBRATION_RED_INDEX]);
+ builder.append(rgb[LineageHardwareManager.COLOR_CALIBRATION_RED_INDEX]);
builder.append(" ");
- builder.append(rgb[CMHardwareManager.COLOR_CALIBRATION_GREEN_INDEX]);
+ builder.append(rgb[LineageHardwareManager.COLOR_CALIBRATION_GREEN_INDEX]);
builder.append(" ");
- builder.append(rgb[CMHardwareManager.COLOR_CALIBRATION_BLUE_INDEX]);
+ builder.append(rgb[LineageHardwareManager.COLOR_CALIBRATION_BLUE_INDEX]);
return builder.toString();
}
@@ -254,14 +254,14 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
return null;
}
int[] currentCalibration = new int[6];
- currentCalibration[CMHardwareManager.COLOR_CALIBRATION_RED_INDEX] = rgb[0];
- currentCalibration[CMHardwareManager.COLOR_CALIBRATION_GREEN_INDEX] = rgb[1];
- currentCalibration[CMHardwareManager.COLOR_CALIBRATION_BLUE_INDEX] = rgb[2];
- currentCalibration[CMHardwareManager.COLOR_CALIBRATION_DEFAULT_INDEX] =
+ currentCalibration[LineageHardwareManager.COLOR_CALIBRATION_RED_INDEX] = rgb[0];
+ currentCalibration[LineageHardwareManager.COLOR_CALIBRATION_GREEN_INDEX] = rgb[1];
+ currentCalibration[LineageHardwareManager.COLOR_CALIBRATION_BLUE_INDEX] = rgb[2];
+ currentCalibration[LineageHardwareManager.COLOR_CALIBRATION_DEFAULT_INDEX] =
DisplayColorCalibration.getDefValue();
- currentCalibration[CMHardwareManager.COLOR_CALIBRATION_MIN_INDEX] =
+ currentCalibration[LineageHardwareManager.COLOR_CALIBRATION_MIN_INDEX] =
DisplayColorCalibration.getMinValue();
- currentCalibration[CMHardwareManager.COLOR_CALIBRATION_MAX_INDEX] =
+ currentCalibration[LineageHardwareManager.COLOR_CALIBRATION_MAX_INDEX] =
DisplayColorCalibration.getMaxValue();
return currentCalibration;
}
@@ -281,12 +281,12 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
return null;
}
int[] currentCalibration = new int[5];
- currentCalibration[CMHardwareManager.GAMMA_CALIBRATION_RED_INDEX] = rgb[0];
- currentCalibration[CMHardwareManager.GAMMA_CALIBRATION_GREEN_INDEX] = rgb[1];
- currentCalibration[CMHardwareManager.GAMMA_CALIBRATION_BLUE_INDEX] = rgb[2];
- currentCalibration[CMHardwareManager.GAMMA_CALIBRATION_MIN_INDEX] =
+ currentCalibration[LineageHardwareManager.GAMMA_CALIBRATION_RED_INDEX] = rgb[0];
+ currentCalibration[LineageHardwareManager.GAMMA_CALIBRATION_GREEN_INDEX] = rgb[1];
+ currentCalibration[LineageHardwareManager.GAMMA_CALIBRATION_BLUE_INDEX] = rgb[2];
+ currentCalibration[LineageHardwareManager.GAMMA_CALIBRATION_MIN_INDEX] =
DisplayGammaCalibration.getMinValue(idx);
- currentCalibration[CMHardwareManager.GAMMA_CALIBRATION_MAX_INDEX] =
+ currentCalibration[LineageHardwareManager.GAMMA_CALIBRATION_MAX_INDEX] =
DisplayGammaCalibration.getMaxValue(idx);
return currentCalibration;
}
@@ -297,11 +297,11 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
public int[] getVibratorIntensity() {
int[] vibrator = new int[5];
- vibrator[CMHardwareManager.VIBRATOR_INTENSITY_INDEX] = VibratorHW.getCurIntensity();
- vibrator[CMHardwareManager.VIBRATOR_DEFAULT_INDEX] = VibratorHW.getDefaultIntensity();
- vibrator[CMHardwareManager.VIBRATOR_MIN_INDEX] = VibratorHW.getMinIntensity();
- vibrator[CMHardwareManager.VIBRATOR_MAX_INDEX] = VibratorHW.getMaxIntensity();
- vibrator[CMHardwareManager.VIBRATOR_WARNING_INDEX] = VibratorHW.getWarningThreshold();
+ vibrator[LineageHardwareManager.VIBRATOR_INTENSITY_INDEX] = VibratorHW.getCurIntensity();
+ vibrator[LineageHardwareManager.VIBRATOR_DEFAULT_INDEX] = VibratorHW.getDefaultIntensity();
+ vibrator[LineageHardwareManager.VIBRATOR_MIN_INDEX] = VibratorHW.getMinIntensity();
+ vibrator[LineageHardwareManager.VIBRATOR_MAX_INDEX] = VibratorHW.getMaxIntensity();
+ vibrator[LineageHardwareManager.VIBRATOR_WARNING_INDEX] = VibratorHW.getWarningThreshold();
return vibrator;
}
@@ -402,18 +402,18 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
}
}
- private CMHardwareInterface getImpl(Context context) {
- return new LegacyCMHardware();
+ private LineageHardwareInterface getImpl(Context context) {
+ return new LegacyLineageHardware();
}
- public CMHardwareService(Context context) {
+ public LineageHardwareService(Context context) {
super(context);
mContext = context;
- mCmHwImpl = getImpl(context);
- publishBinderService(CMContextConstants.CM_HARDWARE_SERVICE, mService);
+ mLineageHwImpl = getImpl(context);
+ publishBinderService(LineageContextConstants.LINEAGE_HARDWARE_SERVICE, mService);
final String[] mappings = mContext.getResources().getStringArray(
- org.cyanogenmod.platform.internal.R.array.config_displayModeMappings);
+ org.lineageos.platform.internal.R.array.config_displayModeMappings);
if (mappings != null && mappings.length > 0) {
for (String mapping : mappings) {
String[] split = mapping.split(":");
@@ -423,21 +423,21 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
}
}
mFilterDisplayModes = mContext.getResources().getBoolean(
- org.cyanogenmod.platform.internal.R.bool.config_filterDisplayModes);
+ org.lineageos.platform.internal.R.bool.config_filterDisplayModes);
}
@Override
public String getFeatureDeclaration() {
- return CMContextConstants.Features.HARDWARE_ABSTRACTION;
+ return LineageContextConstants.Features.HARDWARE_ABSTRACTION;
}
@Override
public void onBootPhase(int phase) {
if (phase == PHASE_BOOT_COMPLETED) {
- Intent intent = new Intent(cyanogenmod.content.Intent.ACTION_INITIALIZE_CM_HARDWARE);
+ Intent intent = new Intent(lineageos.content.Intent.ACTION_INITIALIZE_LINEAGE_HARDWARE);
intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
mContext.sendBroadcastAsUser(intent, UserHandle.ALL,
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS);
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS);
}
}
@@ -478,7 +478,7 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
return null;
}
- private final IBinder mService = new ICMHardwareService.Stub() {
+ private final IBinder mService = new ILineageHardwareService.Stub() {
private boolean isSupported(int feature) {
return (getSupportedFeatures() & feature) == feature;
@@ -487,48 +487,48 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
@Override
public int getSupportedFeatures() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- return mCmHwImpl.getSupportedFeatures();
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ return mLineageHwImpl.getSupportedFeatures();
}
@Override
public boolean get(int feature) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
if (!isSupported(feature)) {
Log.e(TAG, "feature " + feature + " is not supported");
return false;
}
- return mCmHwImpl.get(feature);
+ return mLineageHwImpl.get(feature);
}
@Override
public boolean set(int feature, boolean enable) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
if (!isSupported(feature)) {
Log.e(TAG, "feature " + feature + " is not supported");
return false;
}
- return mCmHwImpl.set(feature, enable);
+ return mLineageHwImpl.set(feature, enable);
}
@Override
public int[] getDisplayColorCalibration() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (!isSupported(CMHardwareManager.FEATURE_DISPLAY_COLOR_CALIBRATION)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (!isSupported(LineageHardwareManager.FEATURE_DISPLAY_COLOR_CALIBRATION)) {
Log.e(TAG, "Display color calibration is not supported");
return null;
}
- return mCmHwImpl.getDisplayColorCalibration();
+ return mLineageHwImpl.getDisplayColorCalibration();
}
@Override
public boolean setDisplayColorCalibration(int[] rgb) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (!isSupported(CMHardwareManager.FEATURE_DISPLAY_COLOR_CALIBRATION)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (!isSupported(LineageHardwareManager.FEATURE_DISPLAY_COLOR_CALIBRATION)) {
Log.e(TAG, "Display color calibration is not supported");
return false;
}
@@ -536,150 +536,150 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
Log.e(TAG, "Invalid color calibration");
return false;
}
- return mCmHwImpl.setDisplayColorCalibration(rgb);
+ return mLineageHwImpl.setDisplayColorCalibration(rgb);
}
@Override
public int getNumGammaControls() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (!isSupported(CMHardwareManager.FEATURE_DISPLAY_GAMMA_CALIBRATION)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (!isSupported(LineageHardwareManager.FEATURE_DISPLAY_GAMMA_CALIBRATION)) {
Log.e(TAG, "Display gamma calibration is not supported");
return 0;
}
- return mCmHwImpl.getNumGammaControls();
+ return mLineageHwImpl.getNumGammaControls();
}
@Override
public int[] getDisplayGammaCalibration(int idx) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (!isSupported(CMHardwareManager.FEATURE_DISPLAY_GAMMA_CALIBRATION)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (!isSupported(LineageHardwareManager.FEATURE_DISPLAY_GAMMA_CALIBRATION)) {
Log.e(TAG, "Display gamma calibration is not supported");
return null;
}
- return mCmHwImpl.getDisplayGammaCalibration(idx);
+ return mLineageHwImpl.getDisplayGammaCalibration(idx);
}
@Override
public boolean setDisplayGammaCalibration(int idx, int[] rgb) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (!isSupported(CMHardwareManager.FEATURE_DISPLAY_GAMMA_CALIBRATION)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (!isSupported(LineageHardwareManager.FEATURE_DISPLAY_GAMMA_CALIBRATION)) {
Log.e(TAG, "Display gamma calibration is not supported");
return false;
}
- return mCmHwImpl.setDisplayGammaCalibration(idx, rgb);
+ return mLineageHwImpl.setDisplayGammaCalibration(idx, rgb);
}
@Override
public int[] getVibratorIntensity() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (!isSupported(CMHardwareManager.FEATURE_VIBRATOR)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (!isSupported(LineageHardwareManager.FEATURE_VIBRATOR)) {
Log.e(TAG, "Vibrator is not supported");
return null;
}
- return mCmHwImpl.getVibratorIntensity();
+ return mLineageHwImpl.getVibratorIntensity();
}
@Override
public boolean setVibratorIntensity(int intensity) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (!isSupported(CMHardwareManager.FEATURE_VIBRATOR)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (!isSupported(LineageHardwareManager.FEATURE_VIBRATOR)) {
Log.e(TAG, "Vibrator is not supported");
return false;
}
- return mCmHwImpl.setVibratorIntensity(intensity);
+ return mLineageHwImpl.setVibratorIntensity(intensity);
}
@Override
public String getLtoSource() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (!isSupported(CMHardwareManager.FEATURE_LONG_TERM_ORBITS)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (!isSupported(LineageHardwareManager.FEATURE_LONG_TERM_ORBITS)) {
Log.e(TAG, "Long term orbits is not supported");
return null;
}
- return mCmHwImpl.getLtoSource();
+ return mLineageHwImpl.getLtoSource();
}
@Override
public String getLtoDestination() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (!isSupported(CMHardwareManager.FEATURE_LONG_TERM_ORBITS)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (!isSupported(LineageHardwareManager.FEATURE_LONG_TERM_ORBITS)) {
Log.e(TAG, "Long term orbits is not supported");
return null;
}
- return mCmHwImpl.getLtoDestination();
+ return mLineageHwImpl.getLtoDestination();
}
@Override
public long getLtoDownloadInterval() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (!isSupported(CMHardwareManager.FEATURE_LONG_TERM_ORBITS)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (!isSupported(LineageHardwareManager.FEATURE_LONG_TERM_ORBITS)) {
Log.e(TAG, "Long term orbits is not supported");
return 0;
}
- return mCmHwImpl.getLtoDownloadInterval();
+ return mLineageHwImpl.getLtoDownloadInterval();
}
@Override
public String getSerialNumber() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (!isSupported(CMHardwareManager.FEATURE_SERIAL_NUMBER)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (!isSupported(LineageHardwareManager.FEATURE_SERIAL_NUMBER)) {
Log.e(TAG, "Serial number is not supported");
return null;
}
- return mCmHwImpl.getSerialNumber();
+ return mLineageHwImpl.getSerialNumber();
}
@Override
public String getUniqueDeviceId() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (!isSupported(CMHardwareManager.FEATURE_UNIQUE_DEVICE_ID)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (!isSupported(LineageHardwareManager.FEATURE_UNIQUE_DEVICE_ID)) {
Log.e(TAG, "Unique device ID is not supported");
return null;
}
- return mCmHwImpl.getUniqueDeviceId();
+ return mLineageHwImpl.getUniqueDeviceId();
}
@Override
public boolean requireAdaptiveBacklightForSunlightEnhancement() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (!isSupported(CMHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (!isSupported(LineageHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT)) {
Log.e(TAG, "Sunlight enhancement is not supported");
return false;
}
- return mCmHwImpl.requireAdaptiveBacklightForSunlightEnhancement();
+ return mLineageHwImpl.requireAdaptiveBacklightForSunlightEnhancement();
}
@Override
public boolean isSunlightEnhancementSelfManaged() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (!isSupported(CMHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (!isSupported(LineageHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT)) {
Log.e(TAG, "Sunlight enhancement is not supported");
return false;
}
- return mCmHwImpl.isSunlightEnhancementSelfManaged();
+ return mLineageHwImpl.isSunlightEnhancementSelfManaged();
}
@Override
public DisplayMode[] getDisplayModes() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (!isSupported(CMHardwareManager.FEATURE_DISPLAY_MODES)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (!isSupported(LineageHardwareManager.FEATURE_DISPLAY_MODES)) {
Log.e(TAG, "Display modes are not supported");
return null;
}
- final DisplayMode[] modes = mCmHwImpl.getDisplayModes();
+ final DisplayMode[] modes = mLineageHwImpl.getDisplayModes();
if (modes == null) {
return null;
}
@@ -696,40 +696,40 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
@Override
public DisplayMode getCurrentDisplayMode() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (!isSupported(CMHardwareManager.FEATURE_DISPLAY_MODES)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (!isSupported(LineageHardwareManager.FEATURE_DISPLAY_MODES)) {
Log.e(TAG, "Display modes are not supported");
return null;
}
- return remapDisplayMode(mCmHwImpl.getCurrentDisplayMode());
+ return remapDisplayMode(mLineageHwImpl.getCurrentDisplayMode());
}
@Override
public DisplayMode getDefaultDisplayMode() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (!isSupported(CMHardwareManager.FEATURE_DISPLAY_MODES)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (!isSupported(LineageHardwareManager.FEATURE_DISPLAY_MODES)) {
Log.e(TAG, "Display modes are not supported");
return null;
}
- return remapDisplayMode(mCmHwImpl.getDefaultDisplayMode());
+ return remapDisplayMode(mLineageHwImpl.getDefaultDisplayMode());
}
@Override
public boolean setDisplayMode(DisplayMode mode, boolean makeDefault) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (!isSupported(CMHardwareManager.FEATURE_DISPLAY_MODES)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (!isSupported(LineageHardwareManager.FEATURE_DISPLAY_MODES)) {
Log.e(TAG, "Display modes are not supported");
return false;
}
- return mCmHwImpl.setDisplayMode(mode, makeDefault);
+ return mLineageHwImpl.setDisplayMode(mode, makeDefault);
}
@Override
public boolean writePersistentBytes(String key, byte[] value) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.MANAGE_PERSISTENT_STORAGE, null);
+ lineageos.platform.Manifest.permission.MANAGE_PERSISTENT_STORAGE, null);
if (key == null || key.length() == 0 || key.length() > 64) {
Log.e(TAG, "Invalid key: " + key);
return false;
@@ -739,33 +739,33 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
Log.e(TAG, "Invalid value: " + (value != null ? Arrays.toString(value) : null));
return false;
}
- if (!isSupported(CMHardwareManager.FEATURE_PERSISTENT_STORAGE)) {
+ if (!isSupported(LineageHardwareManager.FEATURE_PERSISTENT_STORAGE)) {
Log.e(TAG, "Persistent storage is not supported");
return false;
}
- return mCmHwImpl.writePersistentBytes(key, value);
+ return mLineageHwImpl.writePersistentBytes(key, value);
}
@Override
public byte[] readPersistentBytes(String key) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.MANAGE_PERSISTENT_STORAGE, null);
+ lineageos.platform.Manifest.permission.MANAGE_PERSISTENT_STORAGE, null);
if (key == null || key.length() == 0 || key.length() > 64) {
Log.e(TAG, "Invalid key: " + key);
return null;
}
- if (!isSupported(CMHardwareManager.FEATURE_PERSISTENT_STORAGE)) {
+ if (!isSupported(LineageHardwareManager.FEATURE_PERSISTENT_STORAGE)) {
Log.e(TAG, "Persistent storage is not supported");
return null;
}
- return mCmHwImpl.readPersistentBytes(key);
+ return mLineageHwImpl.readPersistentBytes(key);
}
@Override
public int getThermalState() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (isSupported(CMHardwareManager.FEATURE_THERMAL_MONITOR)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (isSupported(LineageHardwareManager.FEATURE_THERMAL_MONITOR)) {
return mCurrentThermalState;
}
return ThermalListenerCallback.State.STATE_UNKNOWN;
@@ -774,8 +774,8 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
@Override
public boolean registerThermalListener(IThermalListenerCallback callback) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (isSupported(CMHardwareManager.FEATURE_THERMAL_MONITOR)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (isSupported(LineageHardwareManager.FEATURE_THERMAL_MONITOR)) {
return mRemoteCallbackList.register(callback);
}
return false;
@@ -784,8 +784,8 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
@Override
public boolean unRegisterThermalListener(IThermalListenerCallback callback) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (isSupported(CMHardwareManager.FEATURE_THERMAL_MONITOR)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (isSupported(LineageHardwareManager.FEATURE_THERMAL_MONITOR)) {
return mRemoteCallbackList.unregister(callback);
}
return false;
@@ -794,9 +794,9 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
@Override
public int getColorBalanceMin() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (isSupported(CMHardwareManager.FEATURE_COLOR_BALANCE)) {
- return mCmHwImpl.getColorBalanceMin();
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (isSupported(LineageHardwareManager.FEATURE_COLOR_BALANCE)) {
+ return mLineageHwImpl.getColorBalanceMin();
}
return 0;
}
@@ -804,9 +804,9 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
@Override
public int getColorBalanceMax() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (isSupported(CMHardwareManager.FEATURE_COLOR_BALANCE)) {
- return mCmHwImpl.getColorBalanceMax();
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (isSupported(LineageHardwareManager.FEATURE_COLOR_BALANCE)) {
+ return mLineageHwImpl.getColorBalanceMax();
}
return 0;
}
@@ -814,9 +814,9 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
@Override
public int getColorBalance() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (isSupported(CMHardwareManager.FEATURE_COLOR_BALANCE)) {
- return mCmHwImpl.getColorBalance();
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (isSupported(LineageHardwareManager.FEATURE_COLOR_BALANCE)) {
+ return mLineageHwImpl.getColorBalance();
}
return 0;
}
@@ -824,9 +824,9 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
@Override
public boolean setColorBalance(int value) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (isSupported(CMHardwareManager.FEATURE_COLOR_BALANCE)) {
- return mCmHwImpl.setColorBalance(value);
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (isSupported(LineageHardwareManager.FEATURE_COLOR_BALANCE)) {
+ return mLineageHwImpl.setColorBalance(value);
}
return false;
}
@@ -834,9 +834,9 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
@Override
public HSIC getPictureAdjustment() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (isSupported(CMHardwareManager.FEATURE_PICTURE_ADJUSTMENT)) {
- return mCmHwImpl.getPictureAdjustment();
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (isSupported(LineageHardwareManager.FEATURE_PICTURE_ADJUSTMENT)) {
+ return mLineageHwImpl.getPictureAdjustment();
}
return new HSIC(0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
}
@@ -844,9 +844,9 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
@Override
public HSIC getDefaultPictureAdjustment() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (isSupported(CMHardwareManager.FEATURE_PICTURE_ADJUSTMENT)) {
- return mCmHwImpl.getDefaultPictureAdjustment();
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (isSupported(LineageHardwareManager.FEATURE_PICTURE_ADJUSTMENT)) {
+ return mLineageHwImpl.getDefaultPictureAdjustment();
}
return new HSIC(0.0f, 0.0f, 0.0f, 0.0f, 0.0f);
}
@@ -854,9 +854,9 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
@Override
public boolean setPictureAdjustment(HSIC hsic) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (isSupported(CMHardwareManager.FEATURE_PICTURE_ADJUSTMENT) && hsic != null) {
- return mCmHwImpl.setPictureAdjustment(hsic);
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (isSupported(LineageHardwareManager.FEATURE_PICTURE_ADJUSTMENT) && hsic != null) {
+ return mLineageHwImpl.setPictureAdjustment(hsic);
}
return false;
}
@@ -864,9 +864,9 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
@Override
public float[] getPictureAdjustmentRanges() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (isSupported(CMHardwareManager.FEATURE_COLOR_BALANCE)) {
- final List> r = mCmHwImpl.getPictureAdjustmentRanges();
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (isSupported(LineageHardwareManager.FEATURE_COLOR_BALANCE)) {
+ final List> r = mLineageHwImpl.getPictureAdjustmentRanges();
return new float[] {
r.get(0).getLower(), r.get(0).getUpper(),
r.get(1).getLower(), r.get(1).getUpper(),
@@ -880,23 +880,23 @@ public class CMHardwareService extends CMSystemService implements ThermalUpdateC
@Override
public TouchscreenGesture[] getTouchscreenGestures() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (!isSupported(CMHardwareManager.FEATURE_TOUCHSCREEN_GESTURES)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (!isSupported(LineageHardwareManager.FEATURE_TOUCHSCREEN_GESTURES)) {
Log.e(TAG, "Touchscreen gestures are not supported");
return null;
}
- return mCmHwImpl.getTouchscreenGestures();
+ return mLineageHwImpl.getTouchscreenGestures();
}
@Override
public boolean setTouchscreenGestureEnabled(TouchscreenGesture gesture, boolean state) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
- if (!isSupported(CMHardwareManager.FEATURE_TOUCHSCREEN_GESTURES)) {
+ lineageos.platform.Manifest.permission.HARDWARE_ABSTRACTION_ACCESS, null);
+ if (!isSupported(LineageHardwareManager.FEATURE_TOUCHSCREEN_GESTURES)) {
Log.e(TAG, "Touchscreen gestures are not supported");
return false;
}
- return mCmHwImpl.setTouchscreenGestureEnabled(gesture, state);
+ return mLineageHwImpl.setTouchscreenGestureEnabled(gesture, state);
}
};
}
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/LineageStatusBarManagerService.java b/lineage/lib/main/java/org/lineageos/platform/internal/LineageStatusBarManagerService.java
index 6fe0d1a5..4ed76dce 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/LineageStatusBarManagerService.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/LineageStatusBarManagerService.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal;
+package org.lineageos.platform.internal;
import android.app.ActivityManager;
import android.app.AppGlobals;
@@ -41,26 +41,26 @@ import android.util.Slog;
import com.android.server.SystemService;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.app.CustomTile;
-import cyanogenmod.app.CustomTileListenerService;
-import cyanogenmod.app.StatusBarPanelCustomTile;
-import cyanogenmod.app.ICustomTileListener;
-import cyanogenmod.app.ICMStatusBarManager;
-import cyanogenmod.app.IStatusBarCustomTileHolder;
+import lineageos.app.LineageContextConstants;
+import lineageos.app.CustomTile;
+import lineageos.app.CustomTileListenerService;
+import lineageos.app.StatusBarPanelCustomTile;
+import lineageos.app.ICustomTileListener;
+import lineageos.app.ILineageStatusBarManager;
+import lineageos.app.IStatusBarCustomTileHolder;
-import org.cyanogenmod.internal.statusbar.ExternalQuickSettingsRecord;
+import org.lineageos.internal.statusbar.ExternalQuickSettingsRecord;
import java.util.ArrayList;
-import org.cyanogenmod.platform.internal.R;
+import org.lineageos.platform.internal.R;
/**
* Internal service which manages interactions with system ui elements
* @hide
*/
-public class CMStatusBarManagerService extends CMSystemService {
- private static final String TAG = "CMStatusBarManagerService";
+public class LineageStatusBarManagerService extends LineageSystemService {
+ private static final String TAG = "LineageStatusBarManagerService";
private Context mContext;
private Handler mHandler = new Handler();
@@ -77,21 +77,21 @@ public class CMStatusBarManagerService extends CMSystemService {
final ArrayMap mCustomTileByKey =
new ArrayMap();
- public CMStatusBarManagerService(Context context) {
+ public LineageStatusBarManagerService(Context context) {
super(context);
mContext = context;
}
@Override
public String getFeatureDeclaration() {
- return CMContextConstants.Features.STATUSBAR;
+ return LineageContextConstants.Features.STATUSBAR;
}
@Override
public void onStart() {
- Log.d(TAG, "registerCMStatusBar cmstatusbar: " + this);
+ Log.d(TAG, "registerLineageStatusBar lineagestatusbar: " + this);
mCustomTileListeners = new CustomTileListeners();
- publishBinderService(CMContextConstants.CM_STATUS_BAR_SERVICE, mService);
+ publishBinderService(LineageContextConstants.LINEAGE_STATUS_BAR_SERVICE, mService);
IntentFilter pkgFilter = new IntentFilter();
pkgFilter.addAction(Intent.ACTION_PACKAGE_ADDED);
@@ -180,7 +180,7 @@ public class CMStatusBarManagerService extends CMSystemService {
}
};
- private final IBinder mService = new ICMStatusBarManager.Stub() {
+ private final IBinder mService = new ILineageStatusBarManager.Stub() {
/**
* @hide
*/
@@ -208,7 +208,7 @@ public class CMStatusBarManagerService extends CMSystemService {
* Register a listener binder directly with the status bar manager.
*
* Only works with system callers. Apps should extend
- * {@link cyanogenmod.app.CustomTileListenerService}.
+ * {@link lineageos.app.CustomTileListenerService}.
* @hide
*/
@Override
@@ -526,13 +526,13 @@ public class CMStatusBarManagerService extends CMSystemService {
private void enforceCustomTilePublish() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.PUBLISH_CUSTOM_TILE,
+ lineageos.platform.Manifest.permission.PUBLISH_CUSTOM_TILE,
"StatusBarManagerService");
}
private void enforceBindCustomTileListener() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE,
+ lineageos.platform.Manifest.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE,
"StatusBarManagerService");
}
@@ -544,7 +544,7 @@ public class CMStatusBarManagerService extends CMSystemService {
public class CustomTileListeners extends ManagedServices {
public CustomTileListeners() {
- super(CMStatusBarManagerService.this.mContext, mHandler, mQSTileList, mUserProfiles);
+ super(LineageStatusBarManagerService.this.mContext, mHandler, mQSTileList, mUserProfiles);
}
@Override
@@ -555,7 +555,7 @@ public class CMStatusBarManagerService extends CMSystemService {
//TODO: Implement this in the future
//c.secureSettingName = Settings.Secure.ENABLED_CUSTOM_TILE_LISTENERS;
c.bindPermission =
- cyanogenmod.platform.Manifest.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE;
+ lineageos.platform.Manifest.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE;
//TODO: Implement this in the future
//c.settingsAction = Settings.ACTION_CUSTOM_TILE_LISTENER_SETTINGS;
c.clientLabel = R.string.custom_tile_listener_binding_label;
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/LineageSystemServer.java b/lineage/lib/main/java/org/lineageos/platform/internal/LineageSystemServer.java
index 0c8ab2b0..6cbc2bda 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/LineageSystemServer.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/LineageSystemServer.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal;
+package org.lineageos.platform.internal;
import android.content.Context;
import android.os.SystemProperties;
@@ -22,24 +22,24 @@ import android.util.Slog;
import com.android.server.LocalServices;
import com.android.server.SystemServiceManager;
-import org.cyanogenmod.platform.internal.common.CMSystemServiceHelper;
+import org.lineageos.platform.internal.common.LineageSystemServiceHelper;
/**
- * Base CM System Server which handles the starting and states of various CM
+ * Base Lineage System Server which handles the starting and states of various Lineage
* specific system services. Since its part of the main looper provided by the system
* server, it will be available indefinitely (until all the things die).
*/
-public class CMSystemServer {
- private static final String TAG = "CMSystemServer";
+public class LineageSystemServer {
+ private static final String TAG = "LineageSystemServer";
private Context mSystemContext;
- private CMSystemServiceHelper mSystemServiceHelper;
+ private LineageSystemServiceHelper mSystemServiceHelper;
private static final String ENCRYPTING_STATE = "trigger_restart_min_framework";
private static final String ENCRYPTED_STATE = "1";
- public CMSystemServer(Context systemContext) {
+ public LineageSystemServer(Context systemContext) {
mSystemContext = systemContext;
- mSystemServiceHelper = new CMSystemServiceHelper(mSystemContext);
+ mSystemServiceHelper = new LineageSystemServiceHelper(mSystemContext);
}
public static boolean coreAppsOnly() {
@@ -60,7 +60,7 @@ public class CMSystemServer {
startServices();
} catch (Throwable ex) {
Slog.e("System", "******************************************");
- Slog.e("System", "************ Failure starting cm system services", ex);
+ Slog.e("System", "************ Failure starting lineage system services", ex);
throw ex;
}
}
@@ -69,20 +69,20 @@ public class CMSystemServer {
final Context context = mSystemContext;
final SystemServiceManager ssm = LocalServices.getService(SystemServiceManager.class);
String[] externalServices = context.getResources().getStringArray(
- org.cyanogenmod.platform.internal.R.array.config_externalCMServices);
+ org.lineageos.platform.internal.R.array.config_externalLineageServices);
for (String service : externalServices) {
try {
Slog.i(TAG, "Attempting to start service " + service);
- CMSystemService cmSystemService = mSystemServiceHelper.getServiceFor(service);
+ LineageSystemService lineageSystemService = mSystemServiceHelper.getServiceFor(service);
if (context.getPackageManager().hasSystemFeature(
- cmSystemService.getFeatureDeclaration())) {
- if (coreAppsOnly() && !cmSystemService.isCoreService()) {
+ lineageSystemService.getFeatureDeclaration())) {
+ if (coreAppsOnly() && !lineageSystemService.isCoreService()) {
Slog.d(TAG, "Not starting " + service +
" - only parsing core apps");
} else {
Slog.i(TAG, "Starting service " + service);
- ssm.startService(cmSystemService.getClass());
+ ssm.startService(lineageSystemService.getClass());
}
} else {
Slog.i(TAG, "Not starting service " + service +
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/LineageSystemService.java b/lineage/lib/main/java/org/lineageos/platform/internal/LineageSystemService.java
index 2316ec2b..53657b3e 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/LineageSystemService.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/LineageSystemService.java
@@ -14,13 +14,13 @@
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal;
+package org.lineageos.platform.internal;
import android.content.Context;
import com.android.server.SystemService;
-public abstract class CMSystemService extends SystemService {
- public CMSystemService(Context context) {
+public abstract class LineageSystemService extends SystemService {
+ public LineageSystemService(Context context) {
super(context);
}
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/LineageTelephonyManagerService.java b/lineage/lib/main/java/org/lineageos/platform/internal/LineageTelephonyManagerService.java
index 322fb5f1..3fafa6c4 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/LineageTelephonyManagerService.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/LineageTelephonyManagerService.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal;
+package org.lineageos.platform.internal;
import com.android.server.SystemService;
@@ -27,22 +27,22 @@ import android.util.Log;
import java.util.List;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.app.CMTelephonyManager;
-import cyanogenmod.app.ICMTelephonyManager;
+import lineageos.app.LineageContextConstants;
+import lineageos.app.LineageTelephonyManager;
+import lineageos.app.ILineageTelephonyManager;
/**
* Internal service which manages interactions with the phone and data connection
*
* @hide
*/
-public class CMTelephonyManagerService extends CMSystemService {
- private static final String TAG = "CMTelephonyManagerSrv";
+public class LineageTelephonyManagerService extends LineageSystemService {
+ private static final String TAG = "LineageTelephonyManagerSrv";
private static boolean localLOGD = Log.isLoggable(TAG, Log.DEBUG);
private TelephonyManager mTelephonyManager;
private Context mContext;
- private final IBinder mService = new ICMTelephonyManager.Stub() {
+ private final IBinder mService = new ILineageTelephonyManager.Stub() {
/**
* Returns the available SIM subscription information.
@@ -69,7 +69,7 @@ public class CMTelephonyManagerService extends CMSystemService {
@Override
public boolean isSubActive(int subId) {
enforceTelephonyReadPermission();
- return CMTelephonyManagerService.this.isSubActive(subId);
+ return LineageTelephonyManagerService.this.isSubActive(subId);
}
/**
@@ -85,7 +85,7 @@ public class CMTelephonyManagerService extends CMSystemService {
@Override
public void setSubState(int subId, boolean state) {
enforceTelephonyModifyPermission();
- CMTelephonyManagerService.this.setSubState(subId, state);
+ LineageTelephonyManagerService.this.setSubState(subId, state);
}
/**
@@ -103,7 +103,7 @@ public class CMTelephonyManagerService extends CMSystemService {
*/
public boolean isDataConnectionSelectedOnSub(int subId) {
enforceTelephonyReadPermission();
- return CMTelephonyManagerService.this.isDataConnectionSelectedOnSub(subId);
+ return LineageTelephonyManagerService.this.isDataConnectionSelectedOnSub(subId);
}
/**
@@ -117,7 +117,7 @@ public class CMTelephonyManagerService extends CMSystemService {
*/
public boolean isDataConnectionEnabled() {
enforceTelephonyReadPermission();
- return CMTelephonyManagerService.this.isDataConnectionEnabled();
+ return LineageTelephonyManagerService.this.isDataConnectionEnabled();
}
/**
@@ -128,7 +128,7 @@ public class CMTelephonyManagerService extends CMSystemService {
*/
public void setDataConnectionState(boolean state) {
enforceTelephonyModifyPermission();
- CMTelephonyManagerService.this.setDataConnectionState(state);
+ LineageTelephonyManagerService.this.setDataConnectionState(state);
}
/**
@@ -142,7 +142,7 @@ public class CMTelephonyManagerService extends CMSystemService {
*/
public void setDataConnectionSelectedOnSub(int subId) {
enforceTelephonyModifyPermission();
- CMTelephonyManagerService.this.setDataConnectionSelectedOnSub(subId);
+ LineageTelephonyManagerService.this.setDataConnectionSelectedOnSub(subId);
}
/**
@@ -157,7 +157,7 @@ public class CMTelephonyManagerService extends CMSystemService {
*/
public void setDefaultPhoneSub(int subId) {
enforceTelephonyModifyPermission();
- CMTelephonyManagerService.this.setDefaultPhoneSub(subId);
+ LineageTelephonyManagerService.this.setDefaultPhoneSub(subId);
}
/**
@@ -172,26 +172,26 @@ public class CMTelephonyManagerService extends CMSystemService {
*/
public void setDefaultSmsSub(int subId) {
enforceTelephonyModifyPermission();
- CMTelephonyManagerService.this.setDefaultSmsSub(subId);
+ LineageTelephonyManagerService.this.setDefaultSmsSub(subId);
}
};
- public CMTelephonyManagerService(Context context) {
+ public LineageTelephonyManagerService(Context context) {
super(context);
mContext = context;
}
@Override
public String getFeatureDeclaration() {
- return CMContextConstants.Features.TELEPHONY;
+ return LineageContextConstants.Features.TELEPHONY;
}
@Override
public void onStart() {
if (localLOGD) {
- Log.d(TAG, "CM telephony manager service start: " + this);
+ Log.d(TAG, "Lineage telephony manager service start: " + this);
}
- publishBinderService(CMContextConstants.CM_TELEPHONY_MANAGER_SERVICE, mService);
+ publishBinderService(LineageContextConstants.LINEAGE_TELEPHONY_MANAGER_SERVICE, mService);
mTelephonyManager = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE);
}
@@ -310,7 +310,7 @@ public class CMTelephonyManagerService extends CMSystemService {
}
SubscriptionManager subscriptionManager = SubscriptionManager.from(mContext);
- /*if (subId == CMTelephonyManager.ASK_FOR_SUBSCRIPTION_ID) {
+ /*if (subId == LineageTelephonyManager.ASK_FOR_SUBSCRIPTION_ID) {
if (localLOGD) {
Log.d(TAG, "Activates the prompt for phone calls");
}
@@ -328,7 +328,7 @@ public class CMTelephonyManagerService extends CMSystemService {
}
SubscriptionManager subscriptionManager = SubscriptionManager.from(mContext);
- /*if (subId == CMTelephonyManager.ASK_FOR_SUBSCRIPTION_ID) {
+ /*if (subId == LineageTelephonyManager.ASK_FOR_SUBSCRIPTION_ID) {
if (localLOGD) {
Log.d(TAG, "Activates the prompt for SMS");
}
@@ -342,13 +342,13 @@ public class CMTelephonyManagerService extends CMSystemService {
private void enforceTelephonyReadPermission() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.READ_MSIM_PHONE_STATE,
- "CMTelephonyManagerService");
+ lineageos.platform.Manifest.permission.READ_MSIM_PHONE_STATE,
+ "LineageTelephonyManagerService");
}
private void enforceTelephonyModifyPermission() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.MODIFY_MSIM_PHONE_STATE,
- "CMTelephonyManagerService");
+ lineageos.platform.Manifest.permission.MODIFY_MSIM_PHONE_STATE,
+ "LineageTelephonyManagerService");
}
}
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/LiveLockScreenServiceBroker.java b/lineage/lib/main/java/org/lineageos/platform/internal/LiveLockScreenServiceBroker.java
index e133aa65..a8ec8dab 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/LiveLockScreenServiceBroker.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/LiveLockScreenServiceBroker.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal;
+package org.lineageos.platform.internal;
import android.annotation.Nullable;
import android.content.ComponentName;
@@ -36,16 +36,16 @@ import android.util.Slog;
import com.android.server.SystemService;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.app.ILiveLockScreenChangeListener;
-import cyanogenmod.app.ILiveLockScreenManager;
-import cyanogenmod.app.ILiveLockScreenManagerProvider;
-import cyanogenmod.app.LiveLockScreenInfo;
-import cyanogenmod.app.LiveLockScreenManager;
-import cyanogenmod.platform.Manifest;
-import cyanogenmod.providers.CMSettings;
+import lineageos.app.LineageContextConstants;
+import lineageos.app.ILiveLockScreenChangeListener;
+import lineageos.app.ILiveLockScreenManager;
+import lineageos.app.ILiveLockScreenManagerProvider;
+import lineageos.app.LiveLockScreenInfo;
+import lineageos.app.LiveLockScreenManager;
+import lineageos.platform.Manifest;
+import lineageos.providers.LineageSettings;
-import org.cyanogenmod.platform.internal.common.BrokeredServiceConnection;
+import org.lineageos.platform.internal.common.BrokeredServiceConnection;
import java.util.List;
@@ -56,7 +56,7 @@ import java.util.List;
* @hide
*/
public class LiveLockScreenServiceBroker extends
- BrokerableCMSystemService {
+ BrokerableLineageSystemService {
private static final String TAG = LiveLockScreenServiceBroker.class.getSimpleName();
private static final boolean DEBUG = false;
@@ -188,13 +188,13 @@ public class LiveLockScreenServiceBroker extends
@Override
public String getFeatureDeclaration() {
- return CMContextConstants.Features.LIVE_LOCK_SCREEN;
+ return LineageContextConstants.Features.LIVE_LOCK_SCREEN;
}
@Override
public void onStart() {
if (DEBUG) Slog.d(TAG, "service started");
- publishBinderService(CMContextConstants.CM_LIVE_LOCK_SCREEN_SERVICE, new BinderService());
+ publishBinderService(LineageContextConstants.LINEAGE_LIVE_LOCK_SCREEN_SERVICE, new BinderService());
}
@Override
@@ -262,8 +262,8 @@ public class LiveLockScreenServiceBroker extends
if (DEBUG) Slog.d(TAG, "Third party apps ready");
// Initialize the default LLS component
- String defComponent = CMSettings.Secure.getString(mContext.getContentResolver(),
- CMSettings.Secure.DEFAULT_LIVE_LOCK_SCREEN_COMPONENT);
+ String defComponent = LineageSettings.Secure.getString(mContext.getContentResolver(),
+ LineageSettings.Secure.DEFAULT_LIVE_LOCK_SCREEN_COMPONENT);
if (!TextUtils.isEmpty(defComponent)) {
mDefaultLlsInfo = new LiveLockScreenInfo.Builder()
.setComponent(ComponentName.unflattenFromString(defComponent))
@@ -275,7 +275,7 @@ public class LiveLockScreenServiceBroker extends
/**
* Enforces the
- * {@link cyanogenmod.platform.Manifest.permission#LIVE_LOCK_SCREEN_MANAGER_ACCESS_PRIVATE}
+ * {@link lineageos.platform.Manifest.permission#LIVE_LOCK_SCREEN_MANAGER_ACCESS_PRIVATE}
* permission.
*/
private void enforcePrivateAccessPermission() {
@@ -305,8 +305,8 @@ public class LiveLockScreenServiceBroker extends
long token = Binder.clearCallingIdentity();
try {
- CMSettings.Secure.putString(mContext.getContentResolver(),
- CMSettings.Secure.DEFAULT_LIVE_LOCK_SCREEN_COMPONENT,
+ LineageSettings.Secure.putString(mContext.getContentResolver(),
+ LineageSettings.Secure.DEFAULT_LIVE_LOCK_SCREEN_COMPONENT,
(llsInfo != null && llsInfo.component != null)
? llsInfo.component.flattenToString()
: "");
@@ -324,8 +324,8 @@ public class LiveLockScreenServiceBroker extends
private void setLiveLockScreenEnabledInternal(boolean enabled) {
long token = Binder.clearCallingIdentity();
- CMSettings.Secure.putInt(mContext.getContentResolver(),
- CMSettings.Secure.LIVE_LOCK_SCREEN_ENABLED, enabled ? 1 : 0);
+ LineageSettings.Secure.putInt(mContext.getContentResolver(),
+ LineageSettings.Secure.LIVE_LOCK_SCREEN_ENABLED, enabled ? 1 : 0);
Binder.restoreCallingIdentity(token);
}
}
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/ManagedServices.java b/lineage/lib/main/java/org/lineageos/platform/internal/ManagedServices.java
index 598d90ce..51ccea03 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/ManagedServices.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/ManagedServices.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal;
+package org.lineageos.platform.internal;
import android.app.ActivityManager;
import android.app.PendingIntent;
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/PartnerInterfaceService.java b/lineage/lib/main/java/org/lineageos/platform/internal/PartnerInterfaceService.java
index 2fce9c68..b83ec345 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/PartnerInterfaceService.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/PartnerInterfaceService.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal;
+package org.lineageos.platform.internal;
import android.app.INotificationManager;
import android.content.ContentResolver;
@@ -34,10 +34,10 @@ import android.provider.Settings;
import android.telephony.TelephonyManager;
import android.util.Log;
import com.android.server.SystemService;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.app.IPartnerInterface;
-import cyanogenmod.app.PartnerInterface;
-import cyanogenmod.media.MediaRecorder;
+import lineageos.app.LineageContextConstants;
+import lineageos.app.IPartnerInterface;
+import lineageos.app.PartnerInterface;
+import lineageos.media.MediaRecorder;
import java.io.ByteArrayInputStream;
import java.security.PublicKey;
@@ -48,9 +48,9 @@ import java.security.interfaces.RSAPublicKey;
/** @hide */
-public class PartnerInterfaceService extends CMSystemService {
+public class PartnerInterfaceService extends LineageSystemService {
- private static final String TAG = "CMSettingsService";
+ private static final String TAG = "LineageSettingsService";
private Context mContext;
private TelephonyManager mTelephonyManager;
@@ -60,12 +60,12 @@ public class PartnerInterfaceService extends CMSystemService {
public PartnerInterfaceService(Context context) {
super(context);
mContext = context;
- publishBinderService(CMContextConstants.CM_PARTNER_INTERFACE, mService);
+ publishBinderService(LineageContextConstants.LINEAGE_PARTNER_INTERFACE, mService);
}
@Override
public String getFeatureDeclaration() {
- return CMContextConstants.Features.PARTNER;
+ return LineageContextConstants.Features.PARTNER;
}
@Override
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/PerformanceManagerService.java b/lineage/lib/main/java/org/lineageos/platform/internal/PerformanceManagerService.java
index 378050e3..68a27452 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/PerformanceManagerService.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/PerformanceManagerService.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal;
+package org.lineageos.platform.internal;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
@@ -48,24 +48,24 @@ import java.util.Map;
import java.util.Objects;
import java.util.regex.Pattern;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.power.IPerformanceManager;
-import cyanogenmod.power.PerformanceManagerInternal;
-import cyanogenmod.power.PerformanceProfile;
+import lineageos.app.LineageContextConstants;
+import lineageos.power.IPerformanceManager;
+import lineageos.power.PerformanceManagerInternal;
+import lineageos.power.PerformanceProfile;
-import static cyanogenmod.power.PerformanceManager.PROFILE_BALANCED;
-import static cyanogenmod.power.PerformanceManager.PROFILE_HIGH_PERFORMANCE;
-import static cyanogenmod.power.PerformanceManager.PROFILE_POWER_SAVE;
-import static cyanogenmod.providers.CMSettings.Secure.APP_PERFORMANCE_PROFILES_ENABLED;
-import static cyanogenmod.providers.CMSettings.Secure.PERFORMANCE_PROFILE;
-import static cyanogenmod.providers.CMSettings.Secure.getInt;
-import static cyanogenmod.providers.CMSettings.Secure.getUriFor;
-import static cyanogenmod.providers.CMSettings.Secure.putInt;
+import static lineageos.power.PerformanceManager.PROFILE_BALANCED;
+import static lineageos.power.PerformanceManager.PROFILE_HIGH_PERFORMANCE;
+import static lineageos.power.PerformanceManager.PROFILE_POWER_SAVE;
+import static lineageos.providers.LineageSettings.Secure.APP_PERFORMANCE_PROFILES_ENABLED;
+import static lineageos.providers.LineageSettings.Secure.PERFORMANCE_PROFILE;
+import static lineageos.providers.LineageSettings.Secure.getInt;
+import static lineageos.providers.LineageSettings.Secure.getUriFor;
+import static lineageos.providers.LineageSettings.Secure.putInt;
/**
* @hide
*/
-public class PerformanceManagerService extends CMSystemService {
+public class PerformanceManagerService extends LineageSystemService {
private static final String TAG = "PerformanceManager";
@@ -194,12 +194,12 @@ public class PerformanceManagerService extends CMSystemService {
@Override
public String getFeatureDeclaration() {
- return CMContextConstants.Features.PERFORMANCE;
+ return LineageContextConstants.Features.PERFORMANCE;
}
@Override
public void onStart() {
- publishBinderService(CMContextConstants.CM_PERFORMANCE_SERVICE, mBinder);
+ publishBinderService(LineageContextConstants.LINEAGE_PERFORMANCE_SERVICE, mBinder);
publishLocalService(PerformanceManagerInternal.class, new LocalService());
}
@@ -303,9 +303,9 @@ public class PerformanceManagerService extends CMSystemService {
return false;
}
- // Enforce the performance access permission declared by cm's res package
+ // Enforce the performance access permission declared by lineage's res package
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.PERFORMANCE_ACCESS, null);
+ lineageos.platform.Manifest.permission.PERFORMANCE_ACCESS, null);
long token = Binder.clearCallingIdentity();
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/ProfileManagerService.java b/lineage/lib/main/java/org/lineageos/platform/internal/ProfileManagerService.java
index 20cfa2b6..a3ea2a03 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/ProfileManagerService.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/ProfileManagerService.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal;
+package org.lineageos.platform.internal;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
@@ -28,7 +28,7 @@ import android.net.wifi.WifiSsid;
import android.os.Message;
import android.util.ArraySet;
import com.android.internal.policy.IKeyguardService;
-import cyanogenmod.providers.CMSettings;
+import lineageos.providers.LineageSettings;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmlpull.v1.XmlPullParserFactory;
@@ -51,11 +51,11 @@ import android.os.ParcelUuid;
import com.android.server.SystemService;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.app.Profile;
-import cyanogenmod.app.ProfileGroup;
-import cyanogenmod.app.ProfileManager;
-import cyanogenmod.app.IProfileManager;
+import lineageos.app.LineageContextConstants;
+import lineageos.app.Profile;
+import lineageos.app.ProfileGroup;
+import lineageos.app.ProfileManager;
+import lineageos.app.IProfileManager;
import java.util.Collection;
import java.io.File;
@@ -70,9 +70,9 @@ import java.util.Set;
import java.util.UUID;
/** @hide */
-public class ProfileManagerService extends CMSystemService {
+public class ProfileManagerService extends LineageSystemService {
- private static final String TAG = "CMProfileService";
+ private static final String TAG = "LineageProfileService";
// Enable the below for detailed logging of this class
private static final boolean LOCAL_LOGV = false;
@@ -222,8 +222,8 @@ public class ProfileManagerService extends CMSystemService {
@Override
public void onChange(boolean selfChange, Uri uri) {
- int state = CMSettings.System.getInt(mContext.getContentResolver(),
- CMSettings.System.SYSTEM_PROFILES_ENABLED,
+ int state = LineageSettings.System.getInt(mContext.getContentResolver(),
+ LineageSettings.System.SYSTEM_PROFILES_ENABLED,
ProfileManager.PROFILES_STATE_ENABLED);
mHandler.obtainMessage(MSG_SEND_PROFILE_STATE, state, 0 /* unused */).sendToTarget();
}
@@ -234,17 +234,17 @@ public class ProfileManagerService extends CMSystemService {
mContext = context;
mHandler = new Handler(mHandlerCallback);
if (context.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.PROFILES)) {
- publishBinderService(CMContextConstants.CM_PROFILE_SERVICE, mService);
+ LineageContextConstants.Features.PROFILES)) {
+ publishBinderService(LineageContextConstants.LINEAGE_PROFILE_SERVICE, mService);
} else {
- Log.wtf(TAG, "CM profile service started by system server but feature xml not" +
+ Log.wtf(TAG, "Lineage profile service started by system server but feature xml not" +
" declared. Not publishing binder service!");
}
}
@Override
public String getFeatureDeclaration() {
- return CMContextConstants.Features.PROFILES;
+ return LineageContextConstants.Features.PROFILES;
}
@Override
@@ -252,8 +252,8 @@ public class ProfileManagerService extends CMSystemService {
mBackupManager = new BackupManager(mContext);
mWildcardGroup = new NotificationGroup(
- mContext.getString(org.cyanogenmod.platform.internal.R.string.wildcardProfile),
- org.cyanogenmod.platform.internal.R.string.wildcardProfile,
+ mContext.getString(org.lineageos.platform.internal.R.string.wildcardProfile),
+ org.lineageos.platform.internal.R.string.wildcardProfile,
mWildcardUUID);
initialize();
@@ -281,7 +281,7 @@ public class ProfileManagerService extends CMSystemService {
bindKeyguard();
} else if (phase == PHASE_BOOT_COMPLETED) {
mContext.getContentResolver().registerContentObserver(
- CMSettings.System.getUriFor(CMSettings.System.SYSTEM_PROFILES_ENABLED),
+ LineageSettings.System.getUriFor(LineageSettings.System.SYSTEM_PROFILES_ENABLED),
false, new ProfilesObserver(mHandler), UserHandle.USER_ALL);
}
}
@@ -551,8 +551,8 @@ public class ProfileManagerService extends CMSystemService {
public boolean isEnabled() {
long token = clearCallingIdentity();
try {
- return CMSettings.System.getIntForUser(mContext.getContentResolver(),
- CMSettings.System.SYSTEM_PROFILES_ENABLED,
+ return LineageSettings.System.getIntForUser(mContext.getContentResolver(),
+ LineageSettings.System.SYSTEM_PROFILES_ENABLED,
ProfileManager.PROFILES_STATE_ENABLED,
UserHandle.USER_CURRENT) == ProfileManager.PROFILES_STATE_ENABLED;
} finally {
@@ -662,7 +662,7 @@ public class ProfileManagerService extends CMSystemService {
private void enforceChangePermissions() {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.MODIFY_PROFILES,
+ lineageos.platform.Manifest.permission.MODIFY_PROFILES,
"You do not have permissions to change the Profile Manager.");
}
@@ -731,7 +731,7 @@ public class ProfileManagerService extends CMSystemService {
private void initialiseStructure() throws XmlPullParserException, IOException {
XmlResourceParser xml = mContext.getResources().getXml(
- org.cyanogenmod.platform.internal.R.xml.profile_default);
+ org.lineageos.platform.internal.R.xml.profile_default);
try {
loadXml(xml, mContext);
mDirty = true;
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/ProfileTriggerHelper.java b/lineage/lib/main/java/org/lineageos/platform/internal/ProfileTriggerHelper.java
index 82e66876..0c4f861e 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/ProfileTriggerHelper.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/ProfileTriggerHelper.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal;
+package org.lineageos.platform.internal;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
@@ -33,10 +33,10 @@ import android.os.UserHandle;
import android.text.TextUtils;
import android.util.ArraySet;
import android.util.Log;
-import cyanogenmod.app.Profile;
-import cyanogenmod.app.Profile.ProfileTrigger;
-import cyanogenmod.app.ProfileManager;
-import cyanogenmod.providers.CMSettings;
+import lineageos.app.Profile;
+import lineageos.app.Profile.ProfileTrigger;
+import lineageos.app.ProfileManager;
+import lineageos.providers.LineageSettings;
import java.util.Set;
import java.util.UUID;
@@ -85,13 +85,13 @@ public class ProfileTriggerHelper extends BroadcastReceiver {
updateEnabled();
mContext.getContentResolver().registerContentObserver(
- CMSettings.System.getUriFor(CMSettings.System.SYSTEM_PROFILES_ENABLED), false,
+ LineageSettings.System.getUriFor(LineageSettings.System.SYSTEM_PROFILES_ENABLED), false,
mSettingsObserver);
}
public void updateEnabled() {
- boolean enabled = CMSettings.System.getInt(mContext.getContentResolver(),
- CMSettings.System.SYSTEM_PROFILES_ENABLED, 1) == 1;
+ boolean enabled = LineageSettings.System.getInt(mContext.getContentResolver(),
+ LineageSettings.System.SYSTEM_PROFILES_ENABLED, 1) == 1;
if (enabled && !mFilterRegistered) {
Log.v(TAG, "Enabling");
mContext.registerReceiver(this, mIntentFilter);
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/ThemeManagerServiceBroker.java b/lineage/lib/main/java/org/lineageos/platform/internal/ThemeManagerServiceBroker.java
index c46608c5..450608d8 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/ThemeManagerServiceBroker.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/ThemeManagerServiceBroker.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal;
+package org.lineageos.platform.internal;
import android.annotation.NonNull;
import android.content.ComponentName;
@@ -30,32 +30,32 @@ import android.system.StructStat;
import android.util.Log;
import android.util.Slog;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.platform.Manifest;
-import cyanogenmod.themes.IThemeChangeListener;
-import cyanogenmod.themes.IThemeProcessingListener;
-import cyanogenmod.themes.IThemeService;
-import cyanogenmod.themes.ThemeChangeRequest;
+import lineageos.app.LineageContextConstants;
+import lineageos.platform.Manifest;
+import lineageos.themes.IThemeChangeListener;
+import lineageos.themes.IThemeProcessingListener;
+import lineageos.themes.IThemeService;
+import lineageos.themes.ThemeChangeRequest;
-import org.cyanogenmod.internal.util.ThemeUtils;
-import org.cyanogenmod.platform.internal.common.BrokeredServiceConnection;
+import org.lineageos.internal.util.ThemeUtils;
+import org.lineageos.platform.internal.common.BrokeredServiceConnection;
import java.io.File;
-import static cyanogenmod.platform.Manifest.permission.ACCESS_THEME_MANAGER;
+import static lineageos.platform.Manifest.permission.ACCESS_THEME_MANAGER;
/**
* Theme service broker for connecting clients to a backing theme manager service.
*
* @hide
*/
-public class ThemeManagerServiceBroker extends BrokerableCMSystemService {
+public class ThemeManagerServiceBroker extends BrokerableLineageSystemService {
private static final String TAG = ThemeManagerServiceBroker.class.getSimpleName();
private static final boolean DEBUG = false;
private static final ComponentName SERVICE_COMPONENT =
- new ComponentName("org.cyanogenmod.themeservice",
- "org.cyanogenmod.themeservice.ThemeManagerService");
+ new ComponentName("org.lineageos.themeservice",
+ "org.lineageos.themeservice.ThemeManagerService");
// Cached change listeners
private final RemoteCallbackList mChangeListeners =
@@ -240,13 +240,13 @@ public class ThemeManagerServiceBroker extends BrokerableCMSystemService {
+public class WeatherManagerServiceBroker extends BrokerableLineageSystemService {
private Context mContext;
private static final ComponentName TARGET_IMPLEMENTATION_COMPONENT =
- new ComponentName("org.cyanogenmod.weatherservice",
- "org.cyanogenmod.weatherservice.WeatherManagerService");
+ new ComponentName("org.lineageos.weatherservice",
+ "org.lineageos.weatherservice.WeatherManagerService");
private void enforcePermission() {
mContext.enforceCallingOrSelfPermission(
Manifest.permission.ACCESS_WEATHER_MANAGER, null);
}
- private final IBinder mService = new ICMWeatherManager.Stub() {
+ private final IBinder mService = new ILineageWeatherManager.Stub() {
@Override
public void updateWeather(RequestInfo info) throws RemoteException {
@@ -99,22 +99,22 @@ public class WeatherManagerServiceBroker extends BrokerableCMSystemService serviceClass;
+ public LineageSystemService getServiceFor(String className) {
+ final Class serviceClass;
try {
- serviceClass = (Class)Class.forName(className);
+ serviceClass = (Class)Class.forName(className);
} catch (ClassNotFoundException ex) {
throw new RuntimeException("Failed to create service " + className
+ ": service class not found", ex);
@@ -44,7 +44,7 @@ public class CMSystemServiceHelper {
return getServiceFromClass(serviceClass);
}
- public T getServiceFromClass(Class serviceClass) {
+ public T getServiceFromClass(Class serviceClass) {
final T service;
try {
Constructor constructor = serviceClass.getConstructor(Context.class);
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/common/UserContentObserver.java b/lineage/lib/main/java/org/lineageos/platform/internal/common/UserContentObserver.java
index b61dc5c6..9d2d8f8f 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/common/UserContentObserver.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/common/UserContentObserver.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License
*/
-package org.cyanogenmod.platform.internal.common;
+package org.lineageos.platform.internal.common;
import android.app.ActivityManagerNative;
import android.app.IUserSwitchObserver;
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/display/AmbientLuxObserver.java b/lineage/lib/main/java/org/lineageos/platform/internal/display/AmbientLuxObserver.java
index 3bca9cbb..c7b8aef7 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/display/AmbientLuxObserver.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/display/AmbientLuxObserver.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal.display;
+package org.lineageos.platform.internal.display;
import android.content.Context;
import android.hardware.Sensor;
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/display/ColorTemperatureController.java b/lineage/lib/main/java/org/lineageos/platform/internal/display/ColorTemperatureController.java
index 5d2794dc..8694c1ff 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/display/ColorTemperatureController.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/display/ColorTemperatureController.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal.display;
+package org.lineageos.platform.internal.display;
import android.animation.ValueAnimator;
import android.animation.ValueAnimator.AnimatorUpdateListener;
@@ -26,20 +26,20 @@ import android.util.Range;
import android.util.Slog;
import android.view.animation.LinearInterpolator;
-import org.cyanogenmod.platform.internal.display.TwilightTracker.TwilightState;
+import org.lineageos.platform.internal.display.TwilightTracker.TwilightState;
import java.io.PrintWriter;
import java.util.BitSet;
-import cyanogenmod.hardware.CMHardwareManager;
-import cyanogenmod.hardware.LiveDisplayManager;
-import cyanogenmod.providers.CMSettings;
-import cyanogenmod.util.ColorUtils;
+import lineageos.hardware.LineageHardwareManager;
+import lineageos.hardware.LiveDisplayManager;
+import lineageos.providers.LineageSettings;
+import lineageos.util.ColorUtils;
-import static cyanogenmod.hardware.LiveDisplayManager.MODE_AUTO;
-import static cyanogenmod.hardware.LiveDisplayManager.MODE_DAY;
-import static cyanogenmod.hardware.LiveDisplayManager.MODE_NIGHT;
-import static cyanogenmod.hardware.LiveDisplayManager.MODE_OFF;
+import static lineageos.hardware.LiveDisplayManager.MODE_AUTO;
+import static lineageos.hardware.LiveDisplayManager.MODE_DAY;
+import static lineageos.hardware.LiveDisplayManager.MODE_NIGHT;
+import static lineageos.hardware.LiveDisplayManager.MODE_OFF;
public class ColorTemperatureController extends LiveDisplayFeature {
@@ -60,40 +60,40 @@ public class ColorTemperatureController extends LiveDisplayFeature {
private ValueAnimator mAnimator;
- private final CMHardwareManager mHardware;
+ private final LineageHardwareManager mHardware;
private static final long TWILIGHT_ADJUSTMENT_TIME = DateUtils.HOUR_IN_MILLIS * 1;
private static final Uri DISPLAY_TEMPERATURE_DAY =
- CMSettings.System.getUriFor(CMSettings.System.DISPLAY_TEMPERATURE_DAY);
+ LineageSettings.System.getUriFor(LineageSettings.System.DISPLAY_TEMPERATURE_DAY);
private static final Uri DISPLAY_TEMPERATURE_NIGHT =
- CMSettings.System.getUriFor(CMSettings.System.DISPLAY_TEMPERATURE_NIGHT);
+ LineageSettings.System.getUriFor(LineageSettings.System.DISPLAY_TEMPERATURE_NIGHT);
public ColorTemperatureController(Context context,
Handler handler, DisplayHardwareController displayHardware) {
super(context, handler);
mDisplayHardware = displayHardware;
- mHardware = CMHardwareManager.getInstance(mContext);
+ mHardware = LineageHardwareManager.getInstance(mContext);
mUseColorBalance = mHardware
- .isSupported(CMHardwareManager.FEATURE_COLOR_BALANCE);
+ .isSupported(LineageHardwareManager.FEATURE_COLOR_BALANCE);
mColorBalanceRange = mHardware.getColorBalanceRange();
mUseTemperatureAdjustment = mUseColorBalance ||
mDisplayHardware.hasColorAdjustment();
mDefaultDayTemperature = mContext.getResources().getInteger(
- org.cyanogenmod.platform.internal.R.integer.config_dayColorTemperature);
+ org.lineageos.platform.internal.R.integer.config_dayColorTemperature);
mDefaultNightTemperature = mContext.getResources().getInteger(
- org.cyanogenmod.platform.internal.R.integer.config_nightColorTemperature);
+ org.lineageos.platform.internal.R.integer.config_nightColorTemperature);
mColorTemperatureRange = Range.create(
mContext.getResources().getInteger(
- org.cyanogenmod.platform.internal.R.integer.config_minColorTemperature),
+ org.lineageos.platform.internal.R.integer.config_minColorTemperature),
mContext.getResources().getInteger(
- org.cyanogenmod.platform.internal.R.integer.config_maxColorTemperature));
+ org.lineageos.platform.internal.R.integer.config_maxColorTemperature));
- mColorBalanceCurve = org.cyanogenmod.internal.util.MathUtils.powerCurve(
+ mColorBalanceCurve = org.lineageos.internal.util.MathUtils.powerCurve(
mColorTemperatureRange.getLower(),
mDefaultDayTemperature,
mColorTemperatureRange.getUpper());
@@ -254,7 +254,7 @@ public class ColorTemperatureController extends LiveDisplayFeature {
* correct configuration at the device level!
*/
private int mapColorTemperatureToBalance(int temperature) {
- double z = org.cyanogenmod.internal.util.MathUtils.powerCurveToLinear(mColorBalanceCurve, temperature);
+ double z = org.lineageos.internal.util.MathUtils.powerCurveToLinear(mColorBalanceCurve, temperature);
return Math.round(MathUtils.lerp((float)mColorBalanceRange.getLower(),
(float)mColorBalanceRange.getUpper(), (float)z));
}
@@ -342,21 +342,21 @@ public class ColorTemperatureController extends LiveDisplayFeature {
}
int getDayColorTemperature() {
- return getInt(CMSettings.System.DISPLAY_TEMPERATURE_DAY,
+ return getInt(LineageSettings.System.DISPLAY_TEMPERATURE_DAY,
mDefaultDayTemperature);
}
void setDayColorTemperature(int temperature) {
- putInt(CMSettings.System.DISPLAY_TEMPERATURE_DAY, temperature);
+ putInt(LineageSettings.System.DISPLAY_TEMPERATURE_DAY, temperature);
}
int getNightColorTemperature() {
- return getInt(CMSettings.System.DISPLAY_TEMPERATURE_NIGHT,
+ return getInt(LineageSettings.System.DISPLAY_TEMPERATURE_NIGHT,
mDefaultNightTemperature);
}
void setNightColorTemperature(int temperature) {
- putInt(CMSettings.System.DISPLAY_TEMPERATURE_NIGHT, temperature);
+ putInt(LineageSettings.System.DISPLAY_TEMPERATURE_NIGHT, temperature);
}
Range getColorTemperatureRange() {
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/display/DisplayHardwareController.java b/lineage/lib/main/java/org/lineageos/platform/internal/display/DisplayHardwareController.java
index b43e17b5..ac5ce395 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/display/DisplayHardwareController.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/display/DisplayHardwareController.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal.display;
+package org.lineageos.platform.internal.display;
import android.animation.FloatArrayEvaluator;
import android.animation.ValueAnimator;
@@ -34,13 +34,13 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.BitSet;
-import cyanogenmod.hardware.CMHardwareManager;
-import cyanogenmod.hardware.LiveDisplayManager;
-import cyanogenmod.providers.CMSettings;
+import lineageos.hardware.LineageHardwareManager;
+import lineageos.hardware.LiveDisplayManager;
+import lineageos.providers.LineageSettings;
public class DisplayHardwareController extends LiveDisplayFeature {
- private final CMHardwareManager mHardware;
+ private final LineageHardwareManager mHardware;
// hardware capabilities
private final boolean mUseAutoContrast;
@@ -64,38 +64,38 @@ public class DisplayHardwareController extends LiveDisplayFeature {
// settings uris
private static final Uri DISPLAY_AUTO_CONTRAST =
- CMSettings.System.getUriFor(CMSettings.System.DISPLAY_AUTO_CONTRAST);
+ LineageSettings.System.getUriFor(LineageSettings.System.DISPLAY_AUTO_CONTRAST);
private static final Uri DISPLAY_COLOR_ADJUSTMENT =
- CMSettings.System.getUriFor(CMSettings.System.DISPLAY_COLOR_ADJUSTMENT);
+ LineageSettings.System.getUriFor(LineageSettings.System.DISPLAY_COLOR_ADJUSTMENT);
private static final Uri DISPLAY_COLOR_ENHANCE =
- CMSettings.System.getUriFor(CMSettings.System.DISPLAY_COLOR_ENHANCE);
+ LineageSettings.System.getUriFor(LineageSettings.System.DISPLAY_COLOR_ENHANCE);
private static final Uri DISPLAY_CABC =
- CMSettings.System.getUriFor(CMSettings.System.DISPLAY_CABC);
+ LineageSettings.System.getUriFor(LineageSettings.System.DISPLAY_CABC);
public DisplayHardwareController(Context context, Handler handler) {
super(context, handler);
- mHardware = CMHardwareManager.getInstance(mContext);
+ mHardware = LineageHardwareManager.getInstance(mContext);
mUseCABC = mHardware
- .isSupported(CMHardwareManager.FEATURE_ADAPTIVE_BACKLIGHT);
+ .isSupported(LineageHardwareManager.FEATURE_ADAPTIVE_BACKLIGHT);
mDefaultCABC = mContext.getResources().getBoolean(
- org.cyanogenmod.platform.internal.R.bool.config_defaultCABC);
+ org.lineageos.platform.internal.R.bool.config_defaultCABC);
mUseColorEnhancement = mHardware
- .isSupported(CMHardwareManager.FEATURE_COLOR_ENHANCEMENT);
+ .isSupported(LineageHardwareManager.FEATURE_COLOR_ENHANCEMENT);
mDefaultColorEnhancement = mContext.getResources().getBoolean(
- org.cyanogenmod.platform.internal.R.bool.config_defaultColorEnhancement);
+ org.lineageos.platform.internal.R.bool.config_defaultColorEnhancement);
mUseAutoContrast = mHardware
- .isSupported(CMHardwareManager.FEATURE_AUTO_CONTRAST);
+ .isSupported(LineageHardwareManager.FEATURE_AUTO_CONTRAST);
mDefaultAutoContrast = mContext.getResources().getBoolean(
- org.cyanogenmod.platform.internal.R.bool.config_defaultAutoContrast);
+ org.lineageos.platform.internal.R.bool.config_defaultAutoContrast);
mUseColorAdjustment = mHardware
- .isSupported(CMHardwareManager.FEATURE_DISPLAY_COLOR_CALIBRATION);
+ .isSupported(LineageHardwareManager.FEATURE_DISPLAY_COLOR_CALIBRATION);
mUseDisplayModes = mHardware
- .isSupported(CMHardwareManager.FEATURE_DISPLAY_MODES);
+ .isSupported(LineageHardwareManager.FEATURE_DISPLAY_MODES);
if (mUseColorAdjustment) {
mMaxColor = mHardware.getDisplayColorCalibrationMax();
@@ -217,7 +217,7 @@ public class DisplayHardwareController extends LiveDisplayFeature {
if (!mUseAutoContrast) {
return;
}
- mHardware.set(CMHardwareManager.FEATURE_AUTO_CONTRAST,
+ mHardware.set(LineageHardwareManager.FEATURE_AUTO_CONTRAST,
!isLowPowerMode() && isAutoContrastEnabled());
}
@@ -228,7 +228,7 @@ public class DisplayHardwareController extends LiveDisplayFeature {
if (!mUseColorEnhancement) {
return;
}
- mHardware.set(CMHardwareManager.FEATURE_COLOR_ENHANCEMENT,
+ mHardware.set(LineageHardwareManager.FEATURE_COLOR_ENHANCEMENT,
!isLowPowerMode() && isColorEnhancementEnabled());
}
@@ -239,7 +239,7 @@ public class DisplayHardwareController extends LiveDisplayFeature {
if (!mUseCABC) {
return;
}
- mHardware.set(CMHardwareManager.FEATURE_ADAPTIVE_BACKLIGHT,
+ mHardware.set(LineageHardwareManager.FEATURE_ADAPTIVE_BACKLIGHT,
!isLowPowerMode() && isCABCEnabled());
}
@@ -418,33 +418,33 @@ public class DisplayHardwareController extends LiveDisplayFeature {
boolean isAutoContrastEnabled() {
return mUseAutoContrast &&
- getBoolean(CMSettings.System.DISPLAY_AUTO_CONTRAST, mDefaultAutoContrast);
+ getBoolean(LineageSettings.System.DISPLAY_AUTO_CONTRAST, mDefaultAutoContrast);
}
boolean setAutoContrastEnabled(boolean enabled) {
if (!mUseAutoContrast) {
return false;
}
- putBoolean(CMSettings.System.DISPLAY_AUTO_CONTRAST, enabled);
+ putBoolean(LineageSettings.System.DISPLAY_AUTO_CONTRAST, enabled);
return true;
}
boolean isCABCEnabled() {
return mUseCABC &&
- getBoolean(CMSettings.System.DISPLAY_CABC, mDefaultCABC);
+ getBoolean(LineageSettings.System.DISPLAY_CABC, mDefaultCABC);
}
boolean setCABCEnabled(boolean enabled) {
if (!mUseCABC) {
return false;
}
- putBoolean(CMSettings.System.DISPLAY_CABC, enabled);
+ putBoolean(LineageSettings.System.DISPLAY_CABC, enabled);
return true;
}
boolean isColorEnhancementEnabled() {
return mUseColorEnhancement &&
- getBoolean(CMSettings.System.DISPLAY_COLOR_ENHANCE,
+ getBoolean(LineageSettings.System.DISPLAY_COLOR_ENHANCE,
mDefaultColorEnhancement);
}
@@ -452,7 +452,7 @@ public class DisplayHardwareController extends LiveDisplayFeature {
if (!mUseColorEnhancement) {
return false;
}
- putBoolean(CMSettings.System.DISPLAY_COLOR_ENHANCE, enabled);
+ putBoolean(LineageSettings.System.DISPLAY_COLOR_ENHANCE, enabled);
return true;
}
@@ -461,7 +461,7 @@ public class DisplayHardwareController extends LiveDisplayFeature {
return getDefaultAdjustment();
}
float[] cur = new float[3];
- if (!parseColorAdjustment(getString(CMSettings.System.DISPLAY_COLOR_ADJUSTMENT), cur)) {
+ if (!parseColorAdjustment(getString(LineageSettings.System.DISPLAY_COLOR_ADJUSTMENT), cur)) {
// clear it out if invalid
cur = getDefaultAdjustment();
saveColorAdjustmentString(cur);
@@ -481,7 +481,7 @@ public class DisplayHardwareController extends LiveDisplayFeature {
private void saveColorAdjustmentString(final float[] adj) {
StringBuilder sb = new StringBuilder();
sb.append(adj[0]).append(" ").append(adj[1]).append(" ").append(adj[2]);
- putString(CMSettings.System.DISPLAY_COLOR_ADJUSTMENT, sb.toString());
+ putString(LineageSettings.System.DISPLAY_COLOR_ADJUSTMENT, sb.toString());
}
boolean hasColorAdjustment() {
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/display/LiveDisplayFeature.java b/lineage/lib/main/java/org/lineageos/platform/internal/display/LiveDisplayFeature.java
index 85e87d0a..37575d2e 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/display/LiveDisplayFeature.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/display/LiveDisplayFeature.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal.display;
+package org.lineageos.platform.internal.display;
import android.content.ContentResolver;
import android.content.Context;
@@ -22,19 +22,19 @@ import android.os.Handler;
import android.os.UserHandle;
import android.util.Log;
-import org.cyanogenmod.platform.internal.common.UserContentObserver;
-import org.cyanogenmod.platform.internal.display.LiveDisplayService.State;
-import org.cyanogenmod.platform.internal.display.TwilightTracker.TwilightState;
+import org.lineageos.platform.internal.common.UserContentObserver;
+import org.lineageos.platform.internal.display.LiveDisplayService.State;
+import org.lineageos.platform.internal.display.TwilightTracker.TwilightState;
import java.io.PrintWriter;
import java.util.BitSet;
-import cyanogenmod.providers.CMSettings;
+import lineageos.providers.LineageSettings;
-import static org.cyanogenmod.platform.internal.display.LiveDisplayService.ALL_CHANGED;
-import static org.cyanogenmod.platform.internal.display.LiveDisplayService.DISPLAY_CHANGED;
-import static org.cyanogenmod.platform.internal.display.LiveDisplayService.MODE_CHANGED;
-import static org.cyanogenmod.platform.internal.display.LiveDisplayService.TWILIGHT_CHANGED;
+import static org.lineageos.platform.internal.display.LiveDisplayService.ALL_CHANGED;
+import static org.lineageos.platform.internal.display.LiveDisplayService.DISPLAY_CHANGED;
+import static org.lineageos.platform.internal.display.LiveDisplayService.MODE_CHANGED;
+import static org.lineageos.platform.internal.display.LiveDisplayService.TWILIGHT_CHANGED;
public abstract class LiveDisplayFeature {
@@ -98,32 +98,32 @@ public abstract class LiveDisplayFeature {
}
protected final boolean getBoolean(String setting, boolean defaultValue) {
- return CMSettings.System.getIntForUser(mContext.getContentResolver(),
+ return LineageSettings.System.getIntForUser(mContext.getContentResolver(),
setting, (defaultValue ? 1 : 0), UserHandle.USER_CURRENT) == 1;
}
protected final void putBoolean(String setting, boolean value) {
- CMSettings.System.putIntForUser(mContext.getContentResolver(),
+ LineageSettings.System.putIntForUser(mContext.getContentResolver(),
setting, (value ? 1 : 0), UserHandle.USER_CURRENT);
}
protected final int getInt(String setting, int defaultValue) {
- return CMSettings.System.getIntForUser(mContext.getContentResolver(),
+ return LineageSettings.System.getIntForUser(mContext.getContentResolver(),
setting, defaultValue, UserHandle.USER_CURRENT);
}
protected final void putInt(String setting, int value) {
- CMSettings.System.putIntForUser(mContext.getContentResolver(),
+ LineageSettings.System.putIntForUser(mContext.getContentResolver(),
setting, value, UserHandle.USER_CURRENT);
}
protected final String getString(String setting) {
- return CMSettings.System.getStringForUser(mContext.getContentResolver(),
+ return LineageSettings.System.getStringForUser(mContext.getContentResolver(),
setting, UserHandle.USER_CURRENT);
}
protected final void putString(String setting, String value) {
- CMSettings.System.putStringForUser(mContext.getContentResolver(),
+ LineageSettings.System.putStringForUser(mContext.getContentResolver(),
setting, value, UserHandle.USER_CURRENT);
}
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/display/LiveDisplayService.java b/lineage/lib/main/java/org/lineageos/platform/internal/display/LiveDisplayService.java
index 8a298158..0e18700e 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/display/LiveDisplayService.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/display/LiveDisplayService.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal.display;
+package org.lineageos.platform.internal.display;
import android.app.Notification;
import android.app.NotificationManager;
@@ -39,13 +39,13 @@ import com.android.internal.util.ArrayUtils;
import com.android.server.LocalServices;
import com.android.server.ServiceThread;
-import org.cyanogenmod.internal.util.QSConstants;
-import org.cyanogenmod.internal.util.QSUtils;
-import org.cyanogenmod.platform.internal.CMSystemService;
-import org.cyanogenmod.platform.internal.R;
-import org.cyanogenmod.platform.internal.common.UserContentObserver;
-import org.cyanogenmod.platform.internal.display.TwilightTracker.TwilightListener;
-import org.cyanogenmod.platform.internal.display.TwilightTracker.TwilightState;
+import org.lineageos.internal.util.QSConstants;
+import org.lineageos.internal.util.QSUtils;
+import org.lineageos.platform.internal.LineageSystemService;
+import org.lineageos.platform.internal.R;
+import org.lineageos.platform.internal.common.UserContentObserver;
+import org.lineageos.platform.internal.display.TwilightTracker.TwilightListener;
+import org.lineageos.platform.internal.display.TwilightTracker.TwilightState;
import java.io.FileDescriptor;
import java.io.PrintWriter;
@@ -55,20 +55,20 @@ import java.util.Iterator;
import java.util.List;
import java.util.Locale;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.app.CMStatusBarManager;
-import cyanogenmod.app.CustomTile;
-import cyanogenmod.hardware.HSIC;
-import cyanogenmod.hardware.ILiveDisplayService;
-import cyanogenmod.hardware.LiveDisplayConfig;
-import cyanogenmod.providers.CMSettings;
+import lineageos.app.LineageContextConstants;
+import lineageos.app.LineageStatusBarManager;
+import lineageos.app.CustomTile;
+import lineageos.hardware.HSIC;
+import lineageos.hardware.ILiveDisplayService;
+import lineageos.hardware.LiveDisplayConfig;
+import lineageos.providers.LineageSettings;
-import static cyanogenmod.hardware.LiveDisplayManager.FEATURE_MANAGED_OUTDOOR_MODE;
-import static cyanogenmod.hardware.LiveDisplayManager.MODE_DAY;
-import static cyanogenmod.hardware.LiveDisplayManager.MODE_FIRST;
-import static cyanogenmod.hardware.LiveDisplayManager.MODE_LAST;
-import static cyanogenmod.hardware.LiveDisplayManager.MODE_OFF;
-import static cyanogenmod.hardware.LiveDisplayManager.MODE_OUTDOOR;
+import static lineageos.hardware.LiveDisplayManager.FEATURE_MANAGED_OUTDOOR_MODE;
+import static lineageos.hardware.LiveDisplayManager.MODE_DAY;
+import static lineageos.hardware.LiveDisplayManager.MODE_FIRST;
+import static lineageos.hardware.LiveDisplayManager.MODE_LAST;
+import static lineageos.hardware.LiveDisplayManager.MODE_OFF;
+import static lineageos.hardware.LiveDisplayManager.MODE_OUTDOOR;
/**
* LiveDisplay is an advanced set of features for improving
@@ -76,10 +76,10 @@ import static cyanogenmod.hardware.LiveDisplayManager.MODE_OUTDOOR;
*
* The service is constructed with a set of LiveDisplayFeatures
* which provide capabilities such as outdoor mode, night mode,
- * and calibration. It interacts with CMHardwareService to relay
+ * and calibration. It interacts with LineageHardwareService to relay
* changes down to the lower layers.
*/
-public class LiveDisplayService extends CMSystemService {
+public class LiveDisplayService extends LineageSystemService {
private static final String TAG = "LiveDisplay";
@@ -110,7 +110,7 @@ public class LiveDisplayService extends CMSystemService {
private String[] mTileValues;
private int[] mTileEntryIconRes;
- private static String ACTION_NEXT_MODE = "cyanogenmod.hardware.NEXT_LIVEDISPLAY_MODE";
+ private static String ACTION_NEXT_MODE = "lineageos.hardware.NEXT_LIVEDISPLAY_MODE";
static int MODE_CHANGED = 1;
static int DISPLAY_CHANGED = 2;
@@ -151,7 +151,7 @@ public class LiveDisplayService extends CMSystemService {
@Override
public String getFeatureDeclaration() {
- return CMContextConstants.Features.LIVEDISPLAY;
+ return LineageContextConstants.Features.LIVEDISPLAY;
}
@Override
@@ -161,7 +161,7 @@ public class LiveDisplayService extends CMSystemService {
@Override
public void onStart() {
- publishBinderService(CMContextConstants.CM_LIVEDISPLAY_SERVICE, mBinder);
+ publishBinderService(LineageContextConstants.LINEAGE_LIVEDISPLAY_SERVICE, mBinder);
}
@Override
@@ -193,7 +193,7 @@ public class LiveDisplayService extends CMSystemService {
// static config
int defaultMode = mContext.getResources().getInteger(
- org.cyanogenmod.platform.internal.R.integer.config_defaultLiveDisplayMode);
+ org.lineageos.platform.internal.R.integer.config_defaultLiveDisplayMode);
mConfig = new LiveDisplayConfig(capabilities, defaultMode,
mCTC.getDefaultDayTemperature(), mCTC.getDefaultNightTemperature(),
@@ -310,7 +310,7 @@ public class LiveDisplayService extends CMSystemService {
final UserHandle user = new UserHandle(userId);
final Context resourceContext = QSUtils.getQSTileContext(mContext, userId);
- CMStatusBarManager statusBarManager = CMStatusBarManager.getInstance(mContext);
+ LineageStatusBarManager statusBarManager = LineageStatusBarManager.getInstance(mContext);
CustomTile tile = new CustomTile.Builder(resourceContext)
.setLabel(mTileEntries[idx])
.setContentDescription(mTileDescriptionEntries[idx])
@@ -331,7 +331,7 @@ public class LiveDisplayService extends CMSystemService {
final int userId = UserHandle.myUserId();
long token = Binder.clearCallingIdentity();
try {
- CMStatusBarManager statusBarManager = CMStatusBarManager.getInstance(mContext);
+ LineageStatusBarManager statusBarManager = LineageStatusBarManager.getInstance(mContext);
statusBarManager.removeTileAsUser(QSConstants.DYNAMIC_TILE_LIVE_DISPLAY,
LiveDisplayService.class.hashCode(), new UserHandle(userId));
} finally {
@@ -346,7 +346,7 @@ public class LiveDisplayService extends CMSystemService {
}
private PendingIntent getCustomTileLongClickPendingIntent() {
- Intent i = new Intent(CMSettings.ACTION_LIVEDISPLAY_SETTINGS);
+ Intent i = new Intent(LineageSettings.ACTION_LIVEDISPLAY_SETTINGS);
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
return PendingIntent.getActivityAsUser(mContext, 0, i,
PendingIntent.FLAG_UPDATE_CURRENT, null, UserHandle.CURRENT);
@@ -379,7 +379,7 @@ public class LiveDisplayService extends CMSystemService {
@Override
public boolean setMode(int mode) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.MANAGE_LIVEDISPLAY, null);
+ lineageos.platform.Manifest.permission.MANAGE_LIVEDISPLAY, null);
if (!mConfig.hasModeSupport()) {
return false;
}
@@ -394,7 +394,7 @@ public class LiveDisplayService extends CMSystemService {
@Override
public boolean setColorAdjustment(float[] adj) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.MANAGE_LIVEDISPLAY, null);
+ lineageos.platform.Manifest.permission.MANAGE_LIVEDISPLAY, null);
return mDHC.setColorAdjustment(adj);
}
@@ -406,7 +406,7 @@ public class LiveDisplayService extends CMSystemService {
@Override
public boolean setAutoContrastEnabled(boolean enabled) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.MANAGE_LIVEDISPLAY, null);
+ lineageos.platform.Manifest.permission.MANAGE_LIVEDISPLAY, null);
return mDHC.setAutoContrastEnabled(enabled);
}
@@ -418,7 +418,7 @@ public class LiveDisplayService extends CMSystemService {
@Override
public boolean setCABCEnabled(boolean enabled) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.MANAGE_LIVEDISPLAY, null);
+ lineageos.platform.Manifest.permission.MANAGE_LIVEDISPLAY, null);
return mDHC.setCABCEnabled(enabled);
}
@@ -430,7 +430,7 @@ public class LiveDisplayService extends CMSystemService {
@Override
public boolean setColorEnhancementEnabled(boolean enabled) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.MANAGE_LIVEDISPLAY, null);
+ lineageos.platform.Manifest.permission.MANAGE_LIVEDISPLAY, null);
return mDHC.setColorEnhancementEnabled(enabled);
}
@@ -442,7 +442,7 @@ public class LiveDisplayService extends CMSystemService {
@Override
public boolean setAutomaticOutdoorModeEnabled(boolean enabled) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.MANAGE_LIVEDISPLAY, null);
+ lineageos.platform.Manifest.permission.MANAGE_LIVEDISPLAY, null);
return mOMC.setAutomaticOutdoorModeEnabled(enabled);
}
@@ -454,7 +454,7 @@ public class LiveDisplayService extends CMSystemService {
@Override
public boolean setDayColorTemperature(int temperature) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.MANAGE_LIVEDISPLAY, null);
+ lineageos.platform.Manifest.permission.MANAGE_LIVEDISPLAY, null);
mCTC.setDayColorTemperature(temperature);
return true;
}
@@ -467,7 +467,7 @@ public class LiveDisplayService extends CMSystemService {
@Override
public boolean setNightColorTemperature(int temperature) {
mContext.enforceCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.MANAGE_LIVEDISPLAY, null);
+ lineageos.platform.Manifest.permission.MANAGE_LIVEDISPLAY, null);
mCTC.setNightColorTemperature(temperature);
return true;
}
@@ -542,7 +542,7 @@ public class LiveDisplayService extends CMSystemService {
private final class ModeObserver extends UserContentObserver {
private final Uri MODE_SETTING =
- CMSettings.System.getUriFor(CMSettings.System.DISPLAY_TEMPERATURE_MODE);
+ LineageSettings.System.getUriFor(LineageSettings.System.DISPLAY_TEMPERATURE_MODE);
ModeObserver(Handler handler) {
super(handler);
@@ -565,13 +565,13 @@ public class LiveDisplayService extends CMSystemService {
}
int getMode() {
- return getInt(CMSettings.System.DISPLAY_TEMPERATURE_MODE,
+ return getInt(LineageSettings.System.DISPLAY_TEMPERATURE_MODE,
mConfig.getDefaultMode());
}
boolean setMode(int mode) {
if (mConfig.hasFeature(mode) && mode >= MODE_FIRST && mode <= MODE_LAST) {
- putInt(CMSettings.System.DISPLAY_TEMPERATURE_MODE, mode);
+ putInt(LineageSettings.System.DISPLAY_TEMPERATURE_MODE, mode);
if (mode != mConfig.getDefaultMode()) {
stopNudgingMe();
}
@@ -599,16 +599,16 @@ public class LiveDisplayService extends CMSystemService {
private int getSunsetCounter() {
// Counter used to determine when we should tell the user about this feature.
// If it's not used after 3 sunsets, we'll show the hint once.
- return CMSettings.System.getIntForUser(mContext.getContentResolver(),
- CMSettings.System.LIVE_DISPLAY_HINTED,
+ return LineageSettings.System.getIntForUser(mContext.getContentResolver(),
+ LineageSettings.System.LIVE_DISPLAY_HINTED,
-3,
UserHandle.USER_CURRENT);
}
private void updateSunsetCounter(int count) {
- CMSettings.System.putIntForUser(mContext.getContentResolver(),
- CMSettings.System.LIVE_DISPLAY_HINTED,
+ LineageSettings.System.putIntForUser(mContext.getContentResolver(),
+ LineageSettings.System.LIVE_DISPLAY_HINTED,
count,
UserHandle.USER_CURRENT);
mAwaitingNudge = count > 0;
@@ -650,18 +650,18 @@ public class LiveDisplayService extends CMSystemService {
}
if (counter == 0) {
//show the notification and don't come back here
- final Intent intent = new Intent(CMSettings.ACTION_LIVEDISPLAY_SETTINGS);
+ final Intent intent = new Intent(LineageSettings.ACTION_LIVEDISPLAY_SETTINGS);
PendingIntent result = PendingIntent.getActivity(
mContext, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
Notification.Builder builder = new Notification.Builder(mContext)
.setContentTitle(mContext.getResources().getString(
- org.cyanogenmod.platform.internal.R.string.live_display_title))
+ org.lineageos.platform.internal.R.string.live_display_title))
.setContentText(mContext.getResources().getString(
- org.cyanogenmod.platform.internal.R.string.live_display_hint))
- .setSmallIcon(org.cyanogenmod.platform.internal.R.drawable.ic_livedisplay_notif)
+ org.lineageos.platform.internal.R.string.live_display_hint))
+ .setSmallIcon(org.lineageos.platform.internal.R.drawable.ic_livedisplay_notif)
.setStyle(new Notification.BigTextStyle().bigText(mContext.getResources()
.getString(
- org.cyanogenmod.platform.internal.R.string.live_display_hint)))
+ org.lineageos.platform.internal.R.string.live_display_hint)))
.setContentIntent(result)
.setAutoCancel(true);
@@ -674,12 +674,12 @@ public class LiveDisplayService extends CMSystemService {
}
private int getInt(String setting, int defValue) {
- return CMSettings.System.getIntForUser(mContext.getContentResolver(),
+ return LineageSettings.System.getIntForUser(mContext.getContentResolver(),
setting, defValue, UserHandle.USER_CURRENT);
}
private void putInt(String setting, int value) {
- CMSettings.System.putIntForUser(mContext.getContentResolver(),
+ LineageSettings.System.putIntForUser(mContext.getContentResolver(),
setting, value, UserHandle.USER_CURRENT);
}
}
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/display/OutdoorModeController.java b/lineage/lib/main/java/org/lineageos/platform/internal/display/OutdoorModeController.java
index 20f047d0..205a73a1 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/display/OutdoorModeController.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/display/OutdoorModeController.java
@@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal.display;
+package org.lineageos.platform.internal.display;
-import static cyanogenmod.hardware.LiveDisplayManager.MODE_AUTO;
-import static cyanogenmod.hardware.LiveDisplayManager.MODE_DAY;
-import static cyanogenmod.hardware.LiveDisplayManager.MODE_OUTDOOR;
+import static lineageos.hardware.LiveDisplayManager.MODE_AUTO;
+import static lineageos.hardware.LiveDisplayManager.MODE_DAY;
+import static lineageos.hardware.LiveDisplayManager.MODE_OUTDOOR;
import android.content.Context;
import android.net.Uri;
@@ -26,13 +26,13 @@ import android.os.Handler;
import java.io.PrintWriter;
import java.util.BitSet;
-import cyanogenmod.hardware.CMHardwareManager;
-import cyanogenmod.hardware.LiveDisplayManager;
-import cyanogenmod.providers.CMSettings;
+import lineageos.hardware.LineageHardwareManager;
+import lineageos.hardware.LiveDisplayManager;
+import lineageos.providers.LineageSettings;
public class OutdoorModeController extends LiveDisplayFeature {
- private final CMHardwareManager mHardware;
+ private final LineageHardwareManager mHardware;
private AmbientLuxObserver mLuxObserver;
// hardware capabilities
@@ -54,16 +54,16 @@ public class OutdoorModeController extends LiveDisplayFeature {
public OutdoorModeController(Context context, Handler handler) {
super(context, handler);
- mHardware = CMHardwareManager.getInstance(mContext);
- mUseOutdoorMode = mHardware.isSupported(CMHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT);
+ mHardware = LineageHardwareManager.getInstance(mContext);
+ mUseOutdoorMode = mHardware.isSupported(LineageHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT);
mSelfManaged = mUseOutdoorMode && mHardware.isSunlightEnhancementSelfManaged();
mDefaultOutdoorLux = mContext.getResources().getInteger(
- org.cyanogenmod.platform.internal.R.integer.config_outdoorAmbientLux);
+ org.lineageos.platform.internal.R.integer.config_outdoorAmbientLux);
mOutdoorLuxHysteresis = mContext.getResources().getInteger(
- org.cyanogenmod.platform.internal.R.integer.config_outdoorAmbientLuxHysteresis);
+ org.lineageos.platform.internal.R.integer.config_outdoorAmbientLuxHysteresis);
mDefaultAutoOutdoorMode = mContext.getResources().getBoolean(
- org.cyanogenmod.platform.internal.R.bool.config_defaultAutoOutdoorMode);
+ org.lineageos.platform.internal.R.bool.config_defaultAutoOutdoorMode);
}
@Override
@@ -78,7 +78,7 @@ public class OutdoorModeController extends LiveDisplayFeature {
}
registerSettings(
- CMSettings.System.getUriFor(CMSettings.System.DISPLAY_AUTO_OUTDOOR_MODE));
+ LineageSettings.System.getUriFor(LineageSettings.System.DISPLAY_AUTO_OUTDOOR_MODE));
}
@Override
@@ -115,7 +115,7 @@ public class OutdoorModeController extends LiveDisplayFeature {
// face if they turn it back on in normal conditions
if (!isScreenOn() && !mSelfManaged && getMode() != MODE_OUTDOOR) {
mIsOutdoor = false;
- mHardware.set(CMHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT, false);
+ mHardware.set(LineageHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT, false);
}
}
@@ -138,7 +138,7 @@ public class OutdoorModeController extends LiveDisplayFeature {
pw.println(" mIsOutdoor=" + mIsOutdoor);
pw.println(" mIsNight=" + isNight());
pw.println(" hardware state=" +
- mHardware.get(CMHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT));
+ mHardware.get(LineageHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT));
}
mLuxObserver.dump(pw);
}
@@ -218,7 +218,7 @@ public class OutdoorModeController extends LiveDisplayFeature {
}
}
}
- mHardware.set(CMHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT, enabled);
+ mHardware.set(LineageHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT, enabled);
}
}
@@ -242,13 +242,13 @@ public class OutdoorModeController extends LiveDisplayFeature {
if (!mUseOutdoorMode) {
return false;
}
- putBoolean(CMSettings.System.DISPLAY_AUTO_OUTDOOR_MODE, enabled);
+ putBoolean(LineageSettings.System.DISPLAY_AUTO_OUTDOOR_MODE, enabled);
return true;
}
boolean isAutomaticOutdoorModeEnabled() {
return mUseOutdoorMode &&
- getBoolean(CMSettings.System.DISPLAY_AUTO_OUTDOOR_MODE,
+ getBoolean(LineageSettings.System.DISPLAY_AUTO_OUTDOOR_MODE,
getDefaultAutoOutdoorMode());
}
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/display/PictureAdjustmentController.java b/lineage/lib/main/java/org/lineageos/platform/internal/display/PictureAdjustmentController.java
index 5cb08b22..6de0de36 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/display/PictureAdjustmentController.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/display/PictureAdjustmentController.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal.display;
+package org.lineageos.platform.internal.display;
import android.content.Context;
import android.net.Uri;
@@ -29,17 +29,17 @@ import java.util.ArrayList;
import java.util.BitSet;
import java.util.List;
-import cyanogenmod.hardware.CMHardwareManager;
-import cyanogenmod.hardware.DisplayMode;
-import cyanogenmod.hardware.HSIC;
-import cyanogenmod.hardware.LiveDisplayManager;
-import cyanogenmod.providers.CMSettings;
+import lineageos.hardware.LineageHardwareManager;
+import lineageos.hardware.DisplayMode;
+import lineageos.hardware.HSIC;
+import lineageos.hardware.LiveDisplayManager;
+import lineageos.providers.LineageSettings;
public class PictureAdjustmentController extends LiveDisplayFeature {
private static final String TAG = "LiveDisplay-PAC";
- private final CMHardwareManager mHardware;
+ private final LineageHardwareManager mHardware;
private final boolean mUsePictureAdjustment;
private final boolean mHasDisplayModes;
@@ -47,10 +47,10 @@ public class PictureAdjustmentController extends LiveDisplayFeature {
public PictureAdjustmentController(Context context, Handler handler) {
super(context, handler);
- mHardware = CMHardwareManager.getInstance(context);
- mHasDisplayModes = mHardware.isSupported(CMHardwareManager.FEATURE_DISPLAY_MODES);
+ mHardware = LineageHardwareManager.getInstance(context);
+ mHasDisplayModes = mHardware.isSupported(LineageHardwareManager.FEATURE_DISPLAY_MODES);
- boolean usePA = mHardware.isSupported(CMHardwareManager.FEATURE_PICTURE_ADJUSTMENT);
+ boolean usePA = mHardware.isSupported(LineageHardwareManager.FEATURE_PICTURE_ADJUSTMENT);
if (usePA) {
mRanges.addAll(mHardware.getPictureAdjustmentRanges());
if (mRanges.size() < 4) {
@@ -77,7 +77,7 @@ public class PictureAdjustmentController extends LiveDisplayFeature {
}
registerSettings(
- CMSettings.System.getUriFor(CMSettings.System.DISPLAY_PICTURE_ADJUSTMENT));
+ LineageSettings.System.getUriFor(LineageSettings.System.DISPLAY_PICTURE_ADJUSTMENT));
}
@Override
@@ -213,7 +213,7 @@ public class PictureAdjustmentController extends LiveDisplayFeature {
private SparseArray unpackPreference() {
final SparseArray ret = new SparseArray();
- String pref = getString(CMSettings.System.DISPLAY_PICTURE_ADJUSTMENT);
+ String pref = getString(LineageSettings.System.DISPLAY_PICTURE_ADJUSTMENT);
if (pref != null) {
String[] byMode = TextUtils.split(pref, ",");
for (String mode : byMode) {
@@ -236,7 +236,7 @@ public class PictureAdjustmentController extends LiveDisplayFeature {
}
sb.append(id).append(":").append(m.flatten());
}
- putString(CMSettings.System.DISPLAY_PICTURE_ADJUSTMENT, sb.toString());
+ putString(LineageSettings.System.DISPLAY_PICTURE_ADJUSTMENT, sb.toString());
}
}
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/display/TwilightCalculator.java b/lineage/lib/main/java/org/lineageos/platform/internal/display/TwilightCalculator.java
index 17357faa..31c94c7b 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/display/TwilightCalculator.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/display/TwilightCalculator.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal.display;
+package org.lineageos.platform.internal.display;
import android.text.format.DateUtils;
import android.util.FloatMath;
diff --git a/lineage/lib/main/java/org/lineageos/platform/internal/display/TwilightTracker.java b/lineage/lib/main/java/org/lineageos/platform/internal/display/TwilightTracker.java
index 8d26db03..e64f28d4 100644
--- a/lineage/lib/main/java/org/lineageos/platform/internal/display/TwilightTracker.java
+++ b/lineage/lib/main/java/org/lineageos/platform/internal/display/TwilightTracker.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.platform.internal.display;
+package org.lineageos.platform.internal.display;
import android.app.AlarmManager;
import android.app.PendingIntent;
@@ -51,7 +51,7 @@ public final class TwilightTracker {
private static final String TAG = "TwilightTracker";
private static final boolean DEBUG = false;
private static final String ACTION_UPDATE_TWILIGHT_STATE =
- "cyanogenmod.platform.intent.action.UPDATE_TWILIGHT_STATE";
+ "lineageos.platform.intent.action.UPDATE_TWILIGHT_STATE";
private final Object mLock = new Object();
diff --git a/lineage/res/Android.mk b/lineage/res/Android.mk
index 4b186962..6baba6b9 100644
--- a/lineage/res/Android.mk
+++ b/lineage/res/Android.mk
@@ -17,10 +17,10 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
-LOCAL_PACKAGE_NAME := org.cyanogenmod.platform-res
+LOCAL_PACKAGE_NAME := org.lineageos.platform-res
LOCAL_CERTIFICATE := platform
LOCAL_AAPT_FLAGS := --auto-add-overlay
-LOCAL_AAPT_FLAGS += --private-symbols org.cyanogenmod.platform.internal
+LOCAL_AAPT_FLAGS += --private-symbols org.lineageos.platform.internal
LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, res)
LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/../../sdk/res/res
diff --git a/lineage/res/AndroidManifest.xml b/lineage/res/AndroidManifest.xml
index 241b25a1..54f63d0f 100644
--- a/lineage/res/AndroidManifest.xml
+++ b/lineage/res/AndroidManifest.xml
@@ -18,111 +18,111 @@
-->
+ android:sharedUserLabel="@string/lineageos_system_label">
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
-
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
- Not for use by third-party applications. -->
-
-
@@ -145,26 +145,26 @@
-
-
-
@@ -172,27 +172,27 @@
-
-
-
-
-
-
-
-
-
- Although the protection is normal, this permission should be required ONLY by those apps
meant to do something meaningful with the data provided by the service (LockClock, SysUI)-->
-
-
-
-
-
-
-
diff --git a/lineage/res/res/values-af/strings.xml b/lineage/res/res/values-af/strings.xml
index 0e5bf88c..18832e70 100644
--- a/lineage/res/res/values-af/strings.xml
+++ b/lineage/res/res/values-af/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS Stelsel
+ LineageOS Stelsel
Skep \'n persoonlike teël binne die vinnige instellings paneel
Laat \'n program toe om \'n vinnige instellings teël te publiseer.
verander stelsel se netwerk instellings
@@ -38,7 +38,7 @@
Laat \'n toep toe om stelsel profiele te verander.
gebruik hardeware raamwerk
- Laat program toegang tot die CM hardeware raamwerk.
+ Laat program toegang tot die Lineage hardeware raamwerk.
verander direk jou wekkers
Laat \'n toep toe om by te voeg, te verander of al jou alarms te verwyder.
@@ -49,11 +49,11 @@
toegang na geskeduleerde wekkers
Laat \'n toep toe om jou geskeduleerde wekkers te lees.
- verander CM stelsel instellings
- Laat \'n toep toe om CM stelsel instellings te verander.
+ verander Lineage stelsel instellings
+ Laat \'n toep toe om Lineage stelsel instellings te verander.
- verander CM veilige instellings
- Laat \'n toep toe om CM veilige stelsel instellings te verander. Nie vir gebruik deur normale toeps nie.
+ verander Lineage veilige instellings
+ Laat \'n toep toe om Lineage veilige stelsel instellings te verander. Nie vir gebruik deur normale toeps nie.
bestuur aanhoudende spasie
Laat \'n toep toe om eienskappe te skryf of lees, al word jou toestel herstel na fabriek instellings.
@@ -174,10 +174,10 @@
bestuur LiveDisplay instellings
Laat \'n toep toe om gevorderde skerm instellings te konfigureer.
-
+
neem oudio-sessie verandering waar
Laat \'n toep toe, om oudio-strome wat geskep en vernietig word, waar te neem.
-
+
bestuur oudio-sessie veranderinge
Laat \'n toep toe om oudio-stroom bywerkings te stuur.
diff --git a/lineage/res/res/values-am/strings.xml b/lineage/res/res/values-am/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-am/strings.xml
+++ b/lineage/res/res/values-am/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-ar/strings.xml b/lineage/res/res/values-ar/strings.xml
index a0807fa3..b4512f06 100644
--- a/lineage/res/res/values-ar/strings.xml
+++ b/lineage/res/res/values-ar/strings.xml
@@ -18,7 +18,7 @@
-->
- نظام LineageOS
+ نظام LineageOS
إنشاء لوحة مخصصة ضمن لوحة الإعدادات السريعة
السماح للتطبيق بنشر لوحة الإعدادت السريعة.
تغيير إعدادات شبكة النظام
@@ -38,7 +38,7 @@
السماح للتطبيق بتعديل الملفات التعريفية للنظام.
استخدام إطار عمل الجهاز
- يسمح للتطبيق بالوصول إلى إطار عمل جهاز CM.
+ يسمح للتطبيق بالوصول إلى إطار عمل جهاز Lineage.
تغيير التنبيهات مباشرةً
السماح للتطبيق بإضافة أو تعديل أو حذف كل التنبيهات الخاصة بك.
@@ -49,11 +49,11 @@
الوصول إلى التنبيهات المجدولة
السماح للتطبيق بقراءة تنبيهاتك المجدولة.
- تعديل إعدادات نظام CM
- السماح للتطبيق بتعديل إعدادات نظام CM.
+ تعديل إعدادات نظام Lineage
+ السماح للتطبيق بتعديل إعدادات نظام Lineage.
- تعديل إعدادات نظام CM الآمن
- السماح للتطبيق بتعديل إعدادات نظام CM الآمن. غير مخصص للاستخدام بواسطة التطبيقات العادية.
+ تعديل إعدادات نظام Lineage الآمن
+ السماح للتطبيق بتعديل إعدادات نظام Lineage الآمن. غير مخصص للاستخدام بواسطة التطبيقات العادية.
إدارة التخزين الدائم
السماح للتطبيق بقراءة أو كتابة الخصائص التي تستمر خلال إعادة تعيين المصنع.
@@ -170,10 +170,10 @@
إدارة إعدادات LiveDisplay
يسمح لتطبيق معين بتكوين إعدادات العرض المتقدمة.
-
+
ملاحظة تغييرات جلسة عمل الصوت
يسمح لتطبيق معين لملاحظة تدفقات الصوت الجاري إنشاؤها وتدميرها.
-
+
السمات
تخصيص السمة
diff --git a/lineage/res/res/values-as-rIN/strings.xml b/lineage/res/res/values-as-rIN/strings.xml
index 166053ec..75459fe7 100644
--- a/lineage/res/res/values-as-rIN/strings.xml
+++ b/lineage/res/res/values-as-rIN/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS ছিষ্টেম
+ LineageOS ছিষ্টেম
দ্ৰুত ছেটিংছ পেনেল ভিতৰত এটা কাষ্টম টাইল সৃষ্টি কৰা
এটা এপ্প্ক দ্ৰুত ছেটিং টাইল প্ৰকাশ কৰিবলৈ অনুমতি দিয়ে।
ছিষ্টেম নেটৱৰ্ক ছেটিং পৰিৱৰ্তন কৰা
@@ -38,7 +38,7 @@
এটা এপ্প্ক ছিষ্টেম প্ৰ\'ফাইল সংশোধন কৰিবলৈ অনুমতি দিয়ে
হাৰ্ডৱেৰ ফ্ৰেমৱৰ্ক ব্যৱহাৰ কৰক
- এটা এপ্প্ক CM হাৰ্ডৱেৰ ফ্ৰেমৱৰ্কত প্ৰৱেশ কৰিবলৈ অনুমতি দিয়ে।
+ এটা এপ্প্ক Lineage হাৰ্ডৱেৰ ফ্ৰেমৱৰ্কত প্ৰৱেশ কৰিবলৈ অনুমতি দিয়ে।
প্ৰত্যক্ষভাবে এলাৰ্ম পৰিৱৰ্তন কৰক
এটা এপ্প্ক আপোনাৰ এলাৰ্ম যোগ কৰিবলৈ, সংশোধন কৰিবলৈ আৰু সকলোবোৰ বিলোপ কৰিবলৈ অনুমতি দিয়ে।
@@ -49,11 +49,11 @@
অনুসূচীত এলাৰ্মত প্ৰৱেশ কৰক
এটা এপ্প্ক আপোনাৰ অনুসূচীত এলাৰ্মবোৰ পঢ়িবলৈ অনুমতি দিয়ে।
- CM ছিষ্টেম ছেটিংচ সংশোধন কৰক
- এটা এপ্প্ক CM ছিষ্টেম ছেটিং সংশোধন কৰিবলৈ অনুমতি দিয়ে
+ Lineage ছিষ্টেম ছেটিংচ সংশোধন কৰক
+ এটা এপ্প্ক Lineage ছিষ্টেম ছেটিং সংশোধন কৰিবলৈ অনুমতি দিয়ে
- CM চিকিওৰ ছিষ্টেম ছেটিংচ সংশোধন কৰক
- এটা এপ্প্ক CM চিকিওৰ ছিষ্টেম ছেটিং সংশোধন কৰিবলৈ অনুমতি দিয়ে সাধাৰণ এপ্প্সমূহৰ ব্যৱহাৰৰ কাৰণে নহয়৷
+ Lineage চিকিওৰ ছিষ্টেম ছেটিংচ সংশোধন কৰক
+ এটা এপ্প্ক Lineage চিকিওৰ ছিষ্টেম ছেটিং সংশোধন কৰিবলৈ অনুমতি দিয়ে সাধাৰণ এপ্প্সমূহৰ ব্যৱহাৰৰ কাৰণে নহয়৷
নিৰবিচ্ছিন্ন ষ্ট\'ৰেজ প্ৰবন্ধন কৰক
এটা এপ্প্ক ধৰ্মবোৰ পঢ়িবলৈ বা লিখিবলৈ অনুমতি দিয়ে যিবোৰ ফেক্টৰী ৰিছেটৰ মাধ্যমত চলি থাকিব পাৰে।
@@ -126,8 +126,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-ast-rES/strings.xml b/lineage/res/res/values-ast-rES/strings.xml
index 7b076ec4..18a7f02f 100644
--- a/lineage/res/res/values-ast-rES/strings.xml
+++ b/lineage/res/res/values-ast-rES/strings.xml
@@ -18,7 +18,7 @@
-->
- Sistema LineageOS
+ Sistema LineageOS
crear una caxella personalizada dientro\'l panel d\'axustes rápidos
Permite qu\'una aplicación espublize una caxella d\'axustes rápidos.
camudar los axustes de rede del sistema
@@ -38,7 +38,7 @@
Permite qu\'una aplicación modifique los perfiles del sistema.
usar framework de hardware
- Permite qu\'una aplicación acceda al framework de hardware de CM.
+ Permite qu\'una aplicación acceda al framework de hardware de Lineage.
camudar direutamente les alarmes
Permite qu\'una aplicación amieste, modifique o desanicie toles tos alarmes.
@@ -49,11 +49,11 @@
acceder a alarmes planificaes
Permite qu\'una aplicación llea les tos alarmes planificaes.
- modificar axustes del sistema CM
- Permite qu\'una aplicación modifique los axustes del sistema CM.
+ modificar axustes del sistema Lineage
+ Permite qu\'una aplicación modifique los axustes del sistema Lineage.
- modificar axustes del sistema de seguranza CM
- Permite qu\'una aplicación modifique los axustes del sistema de seguranza de CM. Nun s\'usa pa les aplicaciones normales.
+ modificar axustes del sistema de seguranza Lineage
+ Permite qu\'una aplicación modifique los axustes del sistema de seguranza de Lineage. Nun s\'usa pa les aplicaciones normales.
xestionar almacenamientu persistente
Permite qu\'una aplicación llea o escriba propiedaes que quiciabes persistan dempués de reafitar el preséu.
@@ -151,10 +151,10 @@
xestionar axustes de LiveDisplay
Permite qu\'una aplicación configure los axustes avanzaos de pantalla.
-
+
mirar camudancies de sesiones d\'audiu
Permite qu\'una aplicación mire los fluxos d\'audiu que se creen y destrúin.
-
+
xestionar camudancies de sesiones d\'audiu
Permite qu\'una aplicación unvie anovamientos de fluxos d\'audiu.
diff --git a/lineage/res/res/values-az-rAZ/strings.xml b/lineage/res/res/values-az-rAZ/strings.xml
index 974e2da1..942ace96 100644
--- a/lineage/res/res/values-az-rAZ/strings.xml
+++ b/lineage/res/res/values-az-rAZ/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS Sistemi
+ LineageOS Sistemi
cəld tənzimləmələr panelində özəl bir çərçivə yarat
Tətbiqetməyə cəld tənzimləmələr çərçivəsi yaratmağa icazə verər.
sistem şəbəkə tənzimləmələrini dəyişdir
@@ -38,7 +38,7 @@
Tətbiqetməyə sistem profillərini dəyişdirmə icazəsi verər.
avadanlıq bünövrəsindən istifadə et
- Tətbiqetmənin CM avadanlıq bünövrəsinə müraciətinə icazə verər.
+ Tətbiqetmənin Lineage avadanlıq bünövrəsinə müraciətinə icazə verər.
birbaşa zəngli saatları dəyişdir
Tətbiqetməyə zəngli saat əlavə etmə, dəyişdirmə və silmə icazəsi verər.
@@ -49,11 +49,11 @@
müəyyən zəngli saatlara müraciət
Tətbiqetməyə müəyyən zəngli saatları oxuma icazəsi verər.
- CM sistem tənzimləmələrini dəyişdir
- Tətbiqetməyə CM sistem tənzimləmələrini dəyişmə icazəsi verər.
+ Lineage sistem tənzimləmələrini dəyişdir
+ Tətbiqetməyə Lineage sistem tənzimləmələrini dəyişmə icazəsi verər.
- CM təhlükəsiz sistem tənzimləmələrini dəyişdir
- Tətbiqetməyə CM təhlükəsiz sistem tənzimləmələrini dəyişmə icazəsi verər. Normal tətbiqetmələr üçün deyil.
+ Lineage təhlükəsiz sistem tənzimləmələrini dəyişdir
+ Tətbiqetməyə Lineage təhlükəsiz sistem tənzimləmələrini dəyişmə icazəsi verər. Normal tətbiqetmələr üçün deyil.
davamlı saxlama sahəsini idarə et
Tətbiqetməyə zavod tənzimləmələrinə qayıtdıqda davamlı qalıcı xüsusiyyətləri oxuma və ya yazma icazəsi verər.
@@ -126,8 +126,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-be-rBY/strings.xml b/lineage/res/res/values-be-rBY/strings.xml
index fdf27dc2..71379338 100644
--- a/lineage/res/res/values-be-rBY/strings.xml
+++ b/lineage/res/res/values-be-rBY/strings.xml
@@ -18,7 +18,7 @@
-->
- Сістэма LineageOS
+ Сістэма LineageOS
Стварэнне самавольных плітак у панэлі хуткіх налад
Дадатак зможа дадаваць пліткі ў панэль хуткіх налад.
Змена сеціўных налад сістэмы
@@ -38,7 +38,7 @@
Дазваляць дадаткам змяняць сістэмныя профілі.
Узаемадзеянне з абсталяваннем
- Дадатак зможа атрымваць доступ да падсістэмы апаратных абстракцый CyanogenMod.
+ Дадатак зможа атрымваць доступ да падсістэмы апаратных абстракцый LineageOS.
змена будзільнікаў
Дадатак зможа дадаваць, змяняць ці выдаляць любыя будзільнікі.
@@ -151,8 +151,8 @@
кіраванне наладамі LiveDisplay
-
-
+
+
Знешні выгляд
diff --git a/lineage/res/res/values-be/strings.xml b/lineage/res/res/values-be/strings.xml
index e9171dfe..3e12da30 100644
--- a/lineage/res/res/values-be/strings.xml
+++ b/lineage/res/res/values-be/strings.xml
@@ -18,7 +18,7 @@
-->
- Сістэма LineageOS
+ Сістэма LineageOS
Стварэнне самавольных плітак у панэлі хуткіх налад
Дадатак зможа дадаваць пліткі ў панэль хуткіх налад.
Змена сеціўных налад сістэмы
@@ -154,8 +154,8 @@
кіраванне наладамі LiveDisplay
-
-
+
+
Знешні выгляд
diff --git a/lineage/res/res/values-bg/strings.xml b/lineage/res/res/values-bg/strings.xml
index b972f20a..076da17c 100644
--- a/lineage/res/res/values-bg/strings.xml
+++ b/lineage/res/res/values-bg/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS Система
+ LineageOS Система
създаване на потребителска плочка чрез панел за бързи настройки
Позволява на приложение да публикува плочка с бързи настройки.
промяна на системните мрежови настройки
@@ -38,7 +38,7 @@
Позволява да модифицирате системни профили.
Използване на framework хардуер
- Разрешава на едно приложение да достъпва до framework хардуера на CM.
+ Разрешава на едно приложение да достъпва до framework хардуера на Lineage.
промяна на аларми
Разрешава на приложението да добавя, променяте или изтрива аларми.
@@ -52,7 +52,7 @@
Модифициране на СМ системни настройки
Позволява на приложението да модифицира СМ системни настройки.
- Модифициране настройките на CM сигурността
+ Модифициране настройките на Lineage сигурността
Разрешава на проложението да променя системните настройки на сигурността. Това разрешение не се използва от нормални приложения.
управлявате места за съхранение на данни
@@ -173,10 +173,10 @@
управление на настройките за Адаптивен дисплей
Позволява на приложението да променя разширените настройки на дисплея.
-
+
преглед на промените в аудио сесии
Позволява на приложение да наблюдава създаване и унищожаване на аудио потоци.
-
+
управление на промените в аудио сесии
Разрешава на приложението да изпраща известия за аудио стрийминг актуализации.
diff --git a/lineage/res/res/values-bn-rBD/strings.xml b/lineage/res/res/values-bn-rBD/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-bn-rBD/strings.xml
+++ b/lineage/res/res/values-bn-rBD/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-br-rFR/strings.xml b/lineage/res/res/values-br-rFR/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-br-rFR/strings.xml
+++ b/lineage/res/res/values-br-rFR/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-bs-rBA/strings.xml b/lineage/res/res/values-bs-rBA/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-bs-rBA/strings.xml
+++ b/lineage/res/res/values-bs-rBA/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-ca/strings.xml b/lineage/res/res/values-ca/strings.xml
index 276366e3..be99184a 100644
--- a/lineage/res/res/values-ca/strings.xml
+++ b/lineage/res/res/values-ca/strings.xml
@@ -18,7 +18,7 @@
-->
- Sistema de LineageOS
+ Sistema de LineageOS
crea una cel·la personalitzada al panell d\'ajustos ràpids
Permet a una aplicació publicar una cel·la d\'ajustos ràpids.
canvia la configuració de xarxa de sistema
@@ -38,7 +38,7 @@
Permet a una aplicació modificar els perfils del sistema.
utilitza el marc de hardware
- Permet a una aplicació accedir al marc de hardware de CM.
+ Permet a una aplicació accedir al marc de hardware de Lineage.
canviar directament les alarmes
Permet a una aplicació afegir, modificar o esborrar totes les teves alarmes.
@@ -49,11 +49,11 @@
accedir a les alarmes programades
Permet a una aplicació llegir les teves alarmes programades.
- modificar la configuració del sistema CM
- Permet a una aplicació modificar la configuració del sistema CM.
+ modificar la configuració del sistema Lineage
+ Permet a una aplicació modificar la configuració del sistema Lineage.
- modificar la configuració segura del sistema CM
- Permet a una aplicació modificar la configuració segura del sistema CM. No utilitzar en aplicacions normals.
+ modificar la configuració segura del sistema Lineage
+ Permet a una aplicació modificar la configuració segura del sistema Lineage. No utilitzar en aplicacions normals.
gestiona l\'emmagatzematge persistent
Permet a una aplicació llegir o escriure propietats que poden persistir després d\'un reinici a la configuració de fàbrica.
@@ -173,10 +173,10 @@
administra la configuració de LiveDisplay
Permet a una aplicació configurar les opcions de visualització avançades.
-
+
observa els canvis en la sessió de so
Permet a una aplicació observar els fluxos de so que són creats i destruïts.
-
+
administra els canvis en la sessió de so
Permet a una aplicació enviar actualitzacions de transmissió d\'àudio.
diff --git a/lineage/res/res/values-cs/strings.xml b/lineage/res/res/values-cs/strings.xml
index 861978da..5a5dc1d1 100644
--- a/lineage/res/res/values-cs/strings.xml
+++ b/lineage/res/res/values-cs/strings.xml
@@ -18,7 +18,7 @@
-->
- Systém LineageOS
+ Systém LineageOS
vytvoření vlastní dlaždice do panelu rychlého nastavení
Umožní vytvořit vlastní dlaždici v panelu rychlého nastavení.
změnit systémové nastavení sítě
@@ -38,7 +38,7 @@
Umožňuje upravovat systémové profily.
využití hardware zařízení
- Umožní přistupovat k hardware pomocí CM.
+ Umožní přistupovat k hardware pomocí Lineage.
přímá změna budíků
Umožňuje přidat, změnit nebo odebrat všechn budíky.
@@ -49,11 +49,11 @@
přístup k naplánovaným budíkům
Umožní číst naplánované budíky.
- změnit CM systémové nastavení
- Umožní měnit systémové nastavení CyanogenMod.
+ změnit Lineage systémové nastavení
+ Umožní měnit systémové nastavení LineageOS.
- upravit nastavení zabezpečení systému CM
- Umožní změnit nastavení zabezpečení systému CyanogenMod. Není určeno pro normální aplikace.
+ upravit nastavení zabezpečení systému Lineage
+ Umožní změnit nastavení zabezpečení systému LineageOS. Není určeno pro normální aplikace.
spravovat trvalé úložiště
Umožňuje číst a zapisovat vlastnosti, které mohou přetrvat při tovární obnově.
@@ -173,10 +173,10 @@
spravovat nastavení LiveDisplay
Umožní nastavovat rozšířené nastavení obrazovky.
-
+
sledovat změny audio relace
Umožní sledovat vytváření a rušení zvukových zdrojů.
-
+
upravovat změny audio relace
Umožňuje aktualizovat zvukové relace.
diff --git a/lineage/res/res/values-csb-rPL/strings.xml b/lineage/res/res/values-csb-rPL/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-csb-rPL/strings.xml
+++ b/lineage/res/res/values-csb-rPL/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-cy/strings.xml b/lineage/res/res/values-cy/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-cy/strings.xml
+++ b/lineage/res/res/values-cy/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-da/strings.xml b/lineage/res/res/values-da/strings.xml
index d557d136..5a1a4a36 100644
--- a/lineage/res/res/values-da/strings.xml
+++ b/lineage/res/res/values-da/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS System
+ LineageOS System
opret en brugerdefineret flise i panelet til hurtige indstillinger
Tillader en app at lave en flise med hurtig indstilling.
ændre indstillinger for system netværk
@@ -38,7 +38,7 @@
Tillader en app at ændre systemprofiler.
anvend hardware framework
- Giver en app adgang til CM hardware framework.
+ Giver en app adgang til Lineage hardware framework.
ændrer alarmer direkte
Tillader en app at tilføje, ændre eller slette alle dine alarmer.
@@ -49,11 +49,11 @@
få adgang til planlagte alarmer
Tillader en app at læse dine planlagte alarmer.
- ændre CM-systemindstillinger
- Tillader en app at ændre CM systemindstillinger.
+ ændre Lineage-systemindstillinger
+ Tillader en app at ændre Lineage systemindstillinger.
- ændre systemindstillinger for CM sikkerhed
- Tillader en app at ændre systemindstillinger for CM sikkerhed. Bør ikke anvendes til normale apps.
+ ændre systemindstillinger for Lineage sikkerhed
+ Tillader en app at ændre systemindstillinger for Lineage sikkerhed. Bør ikke anvendes til normale apps.
administrere permanent lager
Tillader en app at læse eller skrive egenskaber, som kan overleve en gendannelse af fabriksdata.
@@ -173,10 +173,10 @@
administrer indstillinger for LiveDisplay
Tillader en app at konfigurere avancerede skærmindstillinger.
-
+
observér ændringer for lydsession
Tillader en app at observere når lyd streams bliver oprettet eller ødelagt.
-
+
administrér ændringer for lydsession
Tillader en app at sende lydstream-opdateringer.
diff --git a/lineage/res/res/values-de/strings.xml b/lineage/res/res/values-de/strings.xml
index 1a408f3e..3d56af02 100644
--- a/lineage/res/res/values-de/strings.xml
+++ b/lineage/res/res/values-de/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS-System
+ LineageOS-System
eine Kachel in den Schnelleinstellungen erstellen
Ermöglicht der App, eine Kachel in den Schnelleinstellungen anzuzeigen.
System-Netzwerkeinstellungen ändern
@@ -38,7 +38,7 @@
Ermöglicht der App, Systemprofile zu ändern.
Hardware-Framework verwenden
- Ermöglicht der App, auf das CM-Hardware-Framework zuzugreifen.
+ Ermöglicht der App, auf das Lineage-Hardware-Framework zuzugreifen.
Alarme direkt ändern
Ermöglicht der App das Hinzufügen, Ändern oder Löschen Ihrer Alarme.
@@ -49,11 +49,11 @@
auf geplante Alarme zugreifen
Ermöglicht der App, Ihre geplanten Alarme auszulesen.
- CM-Systemeinstellungen ändern
- Ermöglicht der App, CM-Systemeinstellungen zu ändern.
+ Lineage-Systemeinstellungen ändern
+ Ermöglicht der App, Lineage-Systemeinstellungen zu ändern.
- CM-Sicherheits-Systemeinstellungen ändern
- Ermöglicht der App, CM-Sicherheits-Systemeinstellungen zu ändern. Nicht für die Nutzung durch normale Anwendungen bestimmt.
+ Lineage-Sicherheits-Systemeinstellungen ändern
+ Ermöglicht der App, Lineage-Sicherheits-Systemeinstellungen zu ändern. Nicht für die Nutzung durch normale Anwendungen bestimmt.
permanenten Speicher verwalten
Ermöglicht der App, Eigenschaften auszulesen oder zu speichern, die auch beim Zurücksetzen auf die Werkseinstellungen erhalten bleiben können.
@@ -173,10 +173,10 @@
LiveDisplay-Einstellungen verwalten
Erlaubt der App, erweiterte Displayeinstellungen vorzunehmen.
-
+
Audiositzungsänderungen überwachen
Erlaubt einer App, die Erstellung und Löschung von Audio-Streams zu überwachen.
-
+
Audiositzungsänderungen verwalten
Ermöglicht einer App, Audiostream-Aktualisierungen zu senden.
diff --git a/lineage/res/res/values-el/strings.xml b/lineage/res/res/values-el/strings.xml
index 25845b78..1406ad48 100644
--- a/lineage/res/res/values-el/strings.xml
+++ b/lineage/res/res/values-el/strings.xml
@@ -18,7 +18,7 @@
-->
- Σύστημα LineageOS
+ Σύστημα LineageOS
δημιουργία προσαρμοσμένου πλακιδίου στον Πίνακα Γρήγορων ρυθμίσεων
Επιτρέπει σε μία εφαρμογή τη δημιουργία πλακιδίου στον Πίνακα Γρήγορων ρυθμίσεων.
αλλαγή ρυθμίσεων δικτύου συστήματος
@@ -38,7 +38,7 @@
Επιτρέπει σε μια εφαρμογή να τροποποιεί τα προφίλ του συστήματος.
χρήση του πλαισίου υλικού
- Επιτρέπει σε μια εφαρμογή την πρόσβαση στο πλαίσιο υλικού του CM.
+ Επιτρέπει σε μια εφαρμογή την πρόσβαση στο πλαίσιο υλικού του Lineage.
άμεση επεξεργασία αφυπνίσεων
Επιτρέπει σε μια εφαρμογή να προσθέσει, να τροποποιήσει ή να διαγράψει όλες τις αφυπνίσεις.
@@ -49,11 +49,11 @@
ανάγνωση προγραμματισμένων αφυπνίσεων
Επιτρέπει σε μια εφαρμογή να διαβάσει τις προγραμματισμένες αφυπνίσεις.
- τροποποίηση ρυθμίσεων συστήματος CM
- Επιτρέπει σε μια εφαρμογή να τροποποιεί τις ρυθμίσεις συστήματος του CM.
+ τροποποίηση ρυθμίσεων συστήματος Lineage
+ Επιτρέπει σε μια εφαρμογή να τροποποιεί τις ρυθμίσεις συστήματος του Lineage.
- τροποποίηση ασφαλών ρυθμίσεων συστήματος CM
- Επιτρέπει σε μια εφαρμογή να τροποποιεί τις ασφαλείς ρυθμίσεις συστήματος του CM. Δεν χρησιμοποιείται από κανονικές εφαρμογές.
+ τροποποίηση ασφαλών ρυθμίσεων συστήματος Lineage
+ Επιτρέπει σε μια εφαρμογή να τροποποιεί τις ασφαλείς ρυθμίσεις συστήματος του Lineage. Δεν χρησιμοποιείται από κανονικές εφαρμογές.
διαχείριση επίμονου χώρου αποθήκευσης
Επιτρέπει σε μια εφαρμογή να διαβάσει ή να γράψει ιδιότητες που μπορούν να επιμείνουν ακόμη και μετά από μια επαναφορά εργοστασιακών ρυθμίσεων.
@@ -173,10 +173,10 @@
διαχείριση ρυθμίσεων LiveDisplay
Επιτρέπει σε μια εφαρμογή να τροποποιεί τις ρυθμίσεις οθόνης για προχωρημένους.
-
+
παρατήρηση αλλαγών στις συνεδρίες ήχου
Επιτρέπει σε μια εφαρμογή να παρατηρεί τις ροές ήχου να δημιουργούνται και να καταστρέφονται.
-
+
διαχείριση αλλαγών στις συνεδρίες ήχου
Επιτρέπει σε μια εφαρμογή να στέλνει ενημερώσεις στη ροή ήχου.
diff --git a/lineage/res/res/values-en-rAU/strings.xml b/lineage/res/res/values-en-rAU/strings.xml
index 3ac17741..b2b53f4a 100644
--- a/lineage/res/res/values-en-rAU/strings.xml
+++ b/lineage/res/res/values-en-rAU/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS System
+ LineageOS System
create a custom tile within quick settings panel
Allows an app to publish a quick settings tile.
change system network settings
@@ -38,7 +38,7 @@
Allows an app to modify system profiles.
use hardware framework
- Allows an app access to the CM hardware framework.
+ Allows an app access to the Lineage hardware framework.
directly change alarms
Allows an app to add, modify or delete all of your alarms.
@@ -49,11 +49,11 @@
access scheduled alarms
Allows an app to read your scheduled alarms.
- modify CM system settings
- Allows an app to modify CM system settings.
+ modify Lineage system settings
+ Allows an app to modify Lineage system settings.
- modify CM secure system settings
- Allows an app to modify CM secure system settings. Not for use by normal apps.
+ modify Lineage secure system settings
+ Allows an app to modify Lineage secure system settings. Not for use by normal apps.
manage persistent storage
Allows an app to read or write properties which may persist thrοugh a factory reset.
@@ -174,10 +174,10 @@
manage LiveDisplay settings
Allows an app to configure advanced display settings.
-
+
observe audio session changes
Allows an app to observe audio streams being created and destroyed.
-
+
manage audio session changes
Allows an app to send audio stream updates.
diff --git a/lineage/res/res/values-en-rGB/strings.xml b/lineage/res/res/values-en-rGB/strings.xml
index 3aa47381..6b1fd2b2 100644
--- a/lineage/res/res/values-en-rGB/strings.xml
+++ b/lineage/res/res/values-en-rGB/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS System
+ LineageOS System
create a custom tile within quick settings panel
Allows an app to publish a quick settings tile.
change system network settings
@@ -38,7 +38,7 @@
Allows an app to modify system profiles.
use hardware framework
- Allows an app access to the CM hardware framework.
+ Allows an app access to the Lineage hardware framework.
directly change alarms
Allows an app to add, modify or delete all of your alarms.
@@ -49,11 +49,11 @@
access scheduled alarms
Allows an app to read your scheduled alarms.
- modify CM system settings
- Allows an app to modify CM system settings.
+ modify Lineage system settings
+ Allows an app to modify Lineage system settings.
- modify CM secure system settings
- Allows an app to modify CM secure system settings. Not for use by normal apps.
+ modify Lineage secure system settings
+ Allows an app to modify Lineage secure system settings. Not for use by normal apps.
manage persistent storage
Allows an app to read or write properties which may persist thrοugh a factory reset.
@@ -174,10 +174,10 @@
manage LiveDisplay settings
Allows an app to configure advanced display settings.
-
+
observe audio session changes
Allows an app to observe audio streams being created and destroyed.
-
+
manage audio session changes
Allows an app to send audio stream updates.
diff --git a/lineage/res/res/values-en-rIN/strings.xml b/lineage/res/res/values-en-rIN/strings.xml
index 13275e6e..77fc29bb 100644
--- a/lineage/res/res/values-en-rIN/strings.xml
+++ b/lineage/res/res/values-en-rIN/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS System
+ LineageOS System
create a custom tile within quick settings panel
Allows an app to publish a quick settings tile.
change system network settings
@@ -38,7 +38,7 @@
Allows an app to modify system profiles.
use hardware framework
- Allows an app access to the CM hardware framework.
+ Allows an app access to the Lineage hardware framework.
directly change alarms
Allows an app to add, modify or delete all of your alarms.
@@ -49,11 +49,11 @@
access scheduled alarms
Allows an app to read your scheduled alarms.
- modify CM system settings
- Allows an app to modify CM system settings.
+ modify Lineage system settings
+ Allows an app to modify Lineage system settings.
- modify CM secure system settings
- Allows an app to modify CM secure system settings. Not for use by normal apps.
+ modify Lineage secure system settings
+ Allows an app to modify Lineage secure system settings. Not for use by normal apps.
manage persistent storage
Allows an app to read or write properties which may persist thrοugh a factory reset.
@@ -174,10 +174,10 @@
manage LiveDisplay settings
Allows an app to configure advanced display settings.
-
+
observe audio session changes
Allows an app to observe audio streams being created and destroyed.
-
+
manage audio session changes
Allows an app to send audio stream updates.
diff --git a/lineage/res/res/values-en-rPT/strings.xml b/lineage/res/res/values-en-rPT/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-en-rPT/strings.xml
+++ b/lineage/res/res/values-en-rPT/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-eo/strings.xml b/lineage/res/res/values-eo/strings.xml
index cd3fdc30..387cd2eb 100644
--- a/lineage/res/res/values-eo/strings.xml
+++ b/lineage/res/res/values-eo/strings.xml
@@ -63,8 +63,8 @@
-
-
+
+
Etosoj
diff --git a/lineage/res/res/values-es-rCO/strings.xml b/lineage/res/res/values-es-rCO/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-es-rCO/strings.xml
+++ b/lineage/res/res/values-es-rCO/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-es-rMX/strings.xml b/lineage/res/res/values-es-rMX/strings.xml
index df2b3b49..32e5e5ef 100644
--- a/lineage/res/res/values-es-rMX/strings.xml
+++ b/lineage/res/res/values-es-rMX/strings.xml
@@ -95,8 +95,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-es-rUS/strings.xml b/lineage/res/res/values-es-rUS/strings.xml
index d00a3f51..20da347e 100644
--- a/lineage/res/res/values-es-rUS/strings.xml
+++ b/lineage/res/res/values-es-rUS/strings.xml
@@ -18,7 +18,7 @@
-->
- Sistema de LineageOS
+ Sistema de LineageOS
crea un control personalizado en el panel de ajustes rápidos
Permite que la aplicación pueda publicar un control de ajustes rápidos.
cambiar ajustes de red del sistema
@@ -38,7 +38,7 @@
Permite que una aplicación modifique los perfiles del sistema.
usar framework de hardware
- Permite que la aplicación acceda al framework de hardware de CM.
+ Permite que la aplicación acceda al framework de hardware de Lineage.
cambiar las alarmas directamente
Permite a una aplicación añadir, modificar o borrar todas las alarmas.
@@ -49,11 +49,11 @@
acceder a alarmas programadas
Permite que una aplicación lea las alarmas programadas.
- modificar los ajustes del sistema de CM
- Permite que una aplicación modifique los ajustes del sistema de CM.
+ modificar los ajustes del sistema de Lineage
+ Permite que una aplicación modifique los ajustes del sistema de Lineage.
- modificar los ajustes del sistema seguro de CM
- Permite que una aplicación modifique los ajustes del sistema seguro de CM. No es para el uso de aplicaciones normales.
+ modificar los ajustes del sistema seguro de Lineage
+ Permite que una aplicación modifique los ajustes del sistema seguro de Lineage. No es para el uso de aplicaciones normales.
gestionar el almacenamiento persistente
Permite que una aplicación lea o escriba propiedades que pueden continuar incluso después de una restauración de fábrica.
@@ -173,10 +173,10 @@
gestionar los ajustes de LiveDisplay
Permite que una aplicación modifique los ajustes avanzados de la pantalla.
-
+
observa los cambios de sesión del audio
Permite que una aplicación observe los flujos de audio que se crean y destruyen.
-
+
gestionar los cambios de sesión del audio
Permitir a una aplicación enviar actualizaciones de la transmisión del audio.
diff --git a/lineage/res/res/values-es/strings.xml b/lineage/res/res/values-es/strings.xml
index 39b638e8..0db151e8 100644
--- a/lineage/res/res/values-es/strings.xml
+++ b/lineage/res/res/values-es/strings.xml
@@ -18,7 +18,7 @@
-->
- Sistema de LineageOS
+ Sistema de LineageOS
crea un control personalizado en el panel de ajustes rápidos
Permite que la aplicación pueda publicar un control de ajustes rápidos.
cambiar ajustes de red del sistema
@@ -38,7 +38,7 @@
Permite que una aplicación modifique los perfiles del sistema.
usar marco de hardware
- Permite a la aplicación acceso al marco de hardware de CM.
+ Permite a la aplicación acceso al marco de hardware de Lineage.
cambiar las alarmas directamente
Permite que una aplicación añada, modifique o elimine todas tus alarmas.
@@ -49,11 +49,11 @@
acceder a alarmas programadas
Permite que una aplicación lea tus alarmas programadas.
- modificar la configuración del sistema de CM
- Permite que una aplicación modifique la configuración del sistema de CM.
+ modificar la configuración del sistema de Lineage
+ Permite que una aplicación modifique la configuración del sistema de Lineage.
- modificar la configuración de sistema seguro de CM
- Permite que una aplicación modifique la configuración del sistema seguro de CM. No es para el uso de aplicaciones normales.
+ modificar la configuración de sistema seguro de Lineage
+ Permite que una aplicación modifique la configuración del sistema seguro de Lineage. No es para el uso de aplicaciones normales.
administrar el almacenamiento persistente
Permite que una aplicación lea o escriba propiedades que pueden persistir incluso después de una restauración de fábrica.
@@ -173,10 +173,10 @@
administrar la configuración de LiveDisplay
Permite que una aplicación modifique la configuración de pantalla avanzada.
-
+
observa los cambios en la sesión de sonido
Permite que una aplicación observe los flujos de sonido que se crean y destruyen.
-
+
gestionar los cambios de la sesión de audio
Permite a la aplicación enviar actualizaciones de la transmisión del audio.
diff --git a/lineage/res/res/values-et-rEE/strings.xml b/lineage/res/res/values-et-rEE/strings.xml
index 54631aeb..e157ef1c 100644
--- a/lineage/res/res/values-et-rEE/strings.xml
+++ b/lineage/res/res/values-et-rEE/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS Süsteem
+ LineageOS Süsteem
loo kohandatud tahvel kiirseadete paneelil
Lubab rakendusel avaldada kiirseadete tahvli.
süsteemi võrgusätete muutmine
@@ -34,7 +34,7 @@
kasutada riistvara raamistikku
- Annab rakendusele ligipääsu CM riistvara raamistikule.
+ Annab rakendusele ligipääsu Lineage riistvara raamistikule.
@@ -89,8 +89,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-eu-rES/strings.xml b/lineage/res/res/values-eu-rES/strings.xml
index 959f81c4..69dc26bd 100644
--- a/lineage/res/res/values-eu-rES/strings.xml
+++ b/lineage/res/res/values-eu-rES/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS sistema
+ LineageOS sistema
sortu lauza pertsonalizatu bat ezarpen azkarren panelean
Ezarpen azkarretako lauza bat argitaratzea ahalbidetzen dio aplikazioari.
aldatu sistemaren sare ezarpenak
@@ -38,7 +38,7 @@
Sistemaren profilak aldatzea ahalbidetzen dio aplikazioari.
hardware markoa erabili
- CM hardware markoa atzitzea ahalbidetzen dio aplikazioari.
+ Lineage hardware markoa atzitzea ahalbidetzen dio aplikazioari.
zuzenean aldatu alarmak
Zure alarma guztiak gehitu, aldatu, edo ezabatzea ahalbidetzen dio aplikazioari.
@@ -49,11 +49,11 @@
atzitu programatutako alarmak
Programatutako alarmak irakurtzea ahalbidetzen dio aplikazioari.
- aldatu CM sistemaren ezarpenak
- CM sistemaren ezarpenak aldatzea ahalbidetzen dio aplikazioari.
+ aldatu Lineage sistemaren ezarpenak
+ Lineage sistemaren ezarpenak aldatzea ahalbidetzen dio aplikazioari.
- aldatu CM sistemaren ezarpen seguruak
- CM sistemaren ezarpen seguruak aldatzea ahalbidetzen dio aplikazioari. Aplikazio arruntek ez dute behar.
+ aldatu Lineage sistemaren ezarpen seguruak
+ Lineage sistemaren ezarpen seguruak aldatzea ahalbidetzen dio aplikazioari. Aplikazio arruntek ez dute behar.
kudeatu behin betiko biltegiratzea
Gailua lantegiko ezarpenetara leheneratuta ere mantenduko diren ezaugarriak irakurri edo idaztea ahalbidetzen dio aplikazioari.
@@ -173,10 +173,10 @@
LiveDisplay ezarpenak kudeatu
Pantailaren ezarpen aurreratuak ezartzea ahalbidetzen dio aplikazioari.
-
+
audio saio aldaketak aztertu
Audio jarioen sorrerak eta suntsiketak aztertzea ahalbidetzen dio aplikazioari.
-
+
audio saioen aldaketak kudeatu
Audio jarioen eguneratzeak bidaltzea ahalbidetzen dio aplikazioari.
diff --git a/lineage/res/res/values-fa/strings.xml b/lineage/res/res/values-fa/strings.xml
index e2475d41..199198d1 100644
--- a/lineage/res/res/values-fa/strings.xml
+++ b/lineage/res/res/values-fa/strings.xml
@@ -18,7 +18,7 @@
-->
- سیستم سایانوژنمود
+ سیستم سایانوژنمود
ایجاد کاشی سفارشی در پنل تنظیمات سریع
به برنامه اجازه میدهد یک کاشی در تنظیمات سریع ایجاد کند.
تغییر تنظیمات شبکهی سیستم
@@ -38,7 +38,7 @@
به برنامه اجازه میدهد تا پروفایلهای سیستم را تغییر دهد.
استفاده از چارچوب سختافزار
- به برنامه اجازه میدهد به چارچوب سختافزار CM دسترسی داشته باشد.
+ به برنامه اجازه میدهد به چارچوب سختافزار Lineage دسترسی داشته باشد.
تغییر مستقیم هشدارها
به برنامه اجازه افزودن، تغییر یا حذف تمام هشدارهای دستگاه را میدهد.
@@ -49,11 +49,11 @@
دسترسی به هشدارهای زمانبندی شده
به برنامه اجازه میدهد هشدارهای زمانبندی شده را مشاهده کند.
- تغییر تنظیمات سیستم CM
- به برنامه اجازه میدهد که تنظیمات سیستم CM را تغییر دهد.
+ تغییر تنظیمات سیستم Lineage
+ به برنامه اجازه میدهد که تنظیمات سیستم Lineage را تغییر دهد.
- تغییر تنظیمات امنیت سیستم CM
- به برنامه اجازه میدهد تا تنظیمات امنیت سیستم CM را تغییر دهد. برای استفاده برنامههای عادی پیشنهاد نمیشود.
+ تغییر تنظیمات امنیت سیستم Lineage
+ به برنامه اجازه میدهد تا تنظیمات امنیت سیستم Lineage را تغییر دهد. برای استفاده برنامههای عادی پیشنهاد نمیشود.
مدیریت حافظه پایدار
به برنامه اجازه میدهد ویژگیهایی را مشاهده و ویرایش کند که بعد از تنظیم مجدد کارخانه ممکن است باقی بماند.
@@ -105,8 +105,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-fi/strings.xml b/lineage/res/res/values-fi/strings.xml
index 16a97557..d4da3176 100644
--- a/lineage/res/res/values-fi/strings.xml
+++ b/lineage/res/res/values-fi/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS Järjestelmä
+ LineageOS Järjestelmä
luo mukautettu tiili pika-asetuspaneeliin
Sallii sovelluksen julkaista pika-asetustiiliä.
muuta järjestelmän verkkoasetuksia
@@ -38,7 +38,7 @@
Sallii sovelluksen muokata järjestelmäprofiileja.
käytä laitteiston kehystä
- Sallii sovelluksen pääsyn CM-laitteiston kehykseen.
+ Sallii sovelluksen pääsyn Lineage-laitteiston kehykseen.
muuta hälytyksiä suoraan
Sallii sovelluksen lisätä, muokata tai poistaa kaikki hälytyksesi.
@@ -49,11 +49,11 @@
käytä ajoitettua hälytystä
Sallii sovelluksen lukea ajoitettuja hälytyksiä.
- muokkaa CM-järjestelmän asetuksia
- Sallii sovelluksen muokata CM-järjestelmän asetuksia.
+ muokkaa Lineage-järjestelmän asetuksia
+ Sallii sovelluksen muokata Lineage-järjestelmän asetuksia.
- muokkaa CM-järjestelmän turvallisuusasetuksia
- Sallii sovelluksen muokata CM-järjestelmän turvallisuusasetuksia. Ei normaalin sovelluksen käytettäväksi.
+ muokkaa Lineage-järjestelmän turvallisuusasetuksia
+ Sallii sovelluksen muokata Lineage-järjestelmän turvallisuusasetuksia. Ei normaalin sovelluksen käytettäväksi.
hallitse pysyvää tallennustilaa
Sallii sovelluksen lukea tai kirjoittaa ominaisuuksia jotka voivat säilyä tehdasasetusten palautuksen jälkeen.
@@ -173,10 +173,10 @@
hallitse LiveDisplay-asetuksia
Sallii sovelluksen määrittää kehittyneitä näytön asetuksia.
-
+
tutki ääni-istunnon muutoksia
Sallii sovelluksen tarkastella milloin ääntä luodaan ja tuhotaan.
-
+
hallitse ääni-istunnon muutoksia
Sallii sovelluksen lähettää äänisyötteen päivityksiä.
diff --git a/lineage/res/res/values-fil-rPH/strings.xml b/lineage/res/res/values-fil-rPH/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-fil-rPH/strings.xml
+++ b/lineage/res/res/values-fil-rPH/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-fr-rCA/strings.xml b/lineage/res/res/values-fr-rCA/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-fr-rCA/strings.xml
+++ b/lineage/res/res/values-fr-rCA/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-fr/strings.xml b/lineage/res/res/values-fr/strings.xml
index cf68ce50..2c9a3d9b 100644
--- a/lineage/res/res/values-fr/strings.xml
+++ b/lineage/res/res/values-fr/strings.xml
@@ -18,7 +18,7 @@
-->
- Système LineageOS
+ Système LineageOS
créer un raccourci personnalisé dans la fenêtre de configuration rapide
Autorise une application à insérer un raccourci de configuration rapide.
modifier les paramètres réseau du système
@@ -38,7 +38,7 @@
Permet à une application de modifier les profils système.
utiliser le framework matériel
- Permet à une application d\'accéder au framework matériel de CM.
+ Permet à une application d\'accéder au framework matériel de Lineage.
modifier directement les alarmes
Autorise une application à ajouter, modifier ou supprimer toutes vos alarmes.
@@ -49,11 +49,11 @@
accéder aux alarmes planifiées
Autorise une application à lire vos alarmes planifiées
- modifier les paramètres système CM
- Autorise une application à modifier les paramètres système de CM.
+ modifier les paramètres système Lineage
+ Autorise une application à modifier les paramètres système de Lineage.
- modifier les paramètres système sécurisés de CM
- Autorise une application à modifier des paramètres système sécurisés de CM. Ne pas utiliser pour des applications normales.
+ modifier les paramètres système sécurisés de Lineage
+ Autorise une application à modifier des paramètres système sécurisés de Lineage. Ne pas utiliser pour des applications normales.
gérer le stockage permanent
Autorise une application à lire ou à écrire des propriétés qui pourraient persister après une réinitialisation d\'usine.
@@ -174,10 +174,10 @@
gérer les paramètres de LiveDisplay
Permet à une application de configurer les paramètres avancés de l\'affichage.
-
+
observer les changements de session audio
Permet à une application d\'observer la création et destruction des flux audio.
-
+
gérer les changements de session audio
Autorise une application à envoyer des mises à jour du flux audio.
diff --git a/lineage/res/res/values-frp-rIT/strings.xml b/lineage/res/res/values-frp-rIT/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-frp-rIT/strings.xml
+++ b/lineage/res/res/values-frp-rIT/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-fy-rNL/strings.xml b/lineage/res/res/values-fy-rNL/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-fy-rNL/strings.xml
+++ b/lineage/res/res/values-fy-rNL/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-ga-rIE/strings.xml b/lineage/res/res/values-ga-rIE/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-ga-rIE/strings.xml
+++ b/lineage/res/res/values-ga-rIE/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-gd-rGB/strings.xml b/lineage/res/res/values-gd-rGB/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-gd-rGB/strings.xml
+++ b/lineage/res/res/values-gd-rGB/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-gl-rES/strings.xml b/lineage/res/res/values-gl-rES/strings.xml
index ca9196fb..6d0f29d1 100644
--- a/lineage/res/res/values-gl-rES/strings.xml
+++ b/lineage/res/res/values-gl-rES/strings.xml
@@ -18,7 +18,7 @@
-->
- Sistema LineageOS
+ Sistema LineageOS
crear un botón personalizado no panel de axustes rápidos
Permite a unha aplicación publicar un botón de axustes rápidos.
cambiar a configuración de rede do sistema
@@ -49,11 +49,11 @@
acceder ás alarmas programadas
Permítellee a unha aplicación ler todas as alarmas que teña programadas.
- modificar os axustes de CM do sistema
- Permítelle a unha aplicación modificar os axustes de CM do sistema.
+ modificar os axustes de Lineage do sistema
+ Permítelle a unha aplicación modificar os axustes de Lineage do sistema.
- modificar a configuración de seguridade do sistema CM
- Permítelle a unha aplicación modificar a configuración de seguridade do sistema CM. As aplicacións normais non deberían utilizar este permiso.
+ modificar a configuración de seguridade do sistema Lineage
+ Permítelle a unha aplicación modificar a configuración de seguridade do sistema Lineage. As aplicacións normais non deberían utilizar este permiso.
Xestionar almacenamento persistente
Permítelle a unha aplicación ler ou escribir propiedades que poden persisitir tras unha restauración de fábrica.
@@ -174,10 +174,10 @@
xestionar os axustes de LiveDisplay
Permite que unha aplicación poida configurar os axustes de pantalla avanzados.
-
+
observar os cambios na sesión de son
Permite a unha aplicación observar os fluxos de son que se crean e se destrúen.
-
+
xestionar os trocos da sesión de son
Permite a unha aplicación enviar actualizacións de fluxo de son.
diff --git a/lineage/res/res/values-gu-rIN/strings.xml b/lineage/res/res/values-gu-rIN/strings.xml
index dbd4896b..3ef3fae4 100644
--- a/lineage/res/res/values-gu-rIN/strings.xml
+++ b/lineage/res/res/values-gu-rIN/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS સિસ્ટમ
+ LineageOS સિસ્ટમ
ક્વિક સેટિંગ્સ પૅનલની અંદર કસ્ટમ ટાઇલ સર્જો
ઍપને ક્વિક સેટિંગ્સ ટાઇલ પ્રકાશિત કરવાની પરવાનગી આપે છે.
સિસ્ટમ નેટવર્ક સેટિંગ્સ પરિવર્તન કરો
@@ -38,7 +38,7 @@
ઍપને સિસ્ટમ પ્રોફાઇલ્સમાં ફેરફાર કરવાની પરવાનગી આપે છે.
હાર્ડવેર ફ્રેમવર્કનો ઉપયોગ કરો
- ઍપને CM હાર્ડવેર ફ્રેમવર્કની ઍક્સેસની પરવાનગી આપે છે.
+ ઍપને Lineage હાર્ડવેર ફ્રેમવર્કની ઍક્સેસની પરવાનગી આપે છે.
અલાર્મ સીધા પરિવર્તન કરો
ઍપને તમારા તમામ અલાર્મ ઉમેરવાની, ફેરફાર કરવાની અને ભૂંસવાની પરવાનગી આપે છે.
@@ -49,11 +49,11 @@
અનુસૂચિત અલાર્મ ઍક્સેસ કરો
ઍપને તમારા અનુસૂચિત અલાર્મ વાંચવાની પરવાનગી આપે છે.
- CM સિસ્ટમ સેટિંગ્સમાં ફેરફાર કરો
- ઍપને CM સિસ્ટમ સેટિંગ્સમાં ફેરફાર કરવાની પરવાનગી આપે છે.
+ Lineage સિસ્ટમ સેટિંગ્સમાં ફેરફાર કરો
+ ઍપને Lineage સિસ્ટમ સેટિંગ્સમાં ફેરફાર કરવાની પરવાનગી આપે છે.
- CM સુરક્ષિત સિસ્ટમ સેટિંગ્સમાં ફેરફાર કરો
- ઍપને CM સુરક્ષિત સિસ્ટમ સેટિંગ્સમાં ફેરફાર કરવાની પરવાનગી આપે છે. સામાન્ય એપ્સ દ્વારા ઉપયોગ માટે નથી.
+ Lineage સુરક્ષિત સિસ્ટમ સેટિંગ્સમાં ફેરફાર કરો
+ ઍપને Lineage સુરક્ષિત સિસ્ટમ સેટિંગ્સમાં ફેરફાર કરવાની પરવાનગી આપે છે. સામાન્ય એપ્સ દ્વારા ઉપયોગ માટે નથી.
નિરંતર સંગ્રહનું વ્યવસ્થાપન કરો
ફેક્ટરી રિસેટ મારફત વળગી રહે એવા ગુણધર્મો વાંચવાની અથવા લખવાની ઍપને પરવાનગી આપે છે.
@@ -138,8 +138,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-hi/strings.xml b/lineage/res/res/values-hi/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-hi/strings.xml
+++ b/lineage/res/res/values-hi/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-hr/strings.xml b/lineage/res/res/values-hr/strings.xml
index 7c43ecee..6206a04c 100644
--- a/lineage/res/res/values-hr/strings.xml
+++ b/lineage/res/res/values-hr/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS sustav
+ LineageOS sustav
stvori prilagođenu pločicu u brzim postavkama
Dopušta aplikaciji da stvori pločicu u brzim postavkama.
promijeni sistemske postavke mreže
@@ -38,7 +38,7 @@
Dopušta aplikaciji da izmijeni profile sustava.
koristi hardware framework
- Dopušta aplikaciji pristupiti CM hardware framework.
+ Dopušta aplikaciji pristupiti Lineage hardware framework.
izravno promijeni alarme
Dopušta aplikaciji dodavanje, izmijenu ili brisanje svih alarma.
@@ -49,11 +49,11 @@
pristup zakazanim alarmima
Dopušta aplikaciji čitati zakazane alarme.
- izmijeni postavke sustava CM
- Dopušta aplikaciji da izmijeni postavke sustava CM.
+ izmijeni postavke sustava Lineage
+ Dopušta aplikaciji da izmijeni postavke sustava Lineage.
- promijeni CM postavke sigurnosti sustava
- Dopušta aplikaciji da promjeni CM postavke sigurnosti sustava. Nije za korištenje kod normalnih aplikacija.
+ promijeni Lineage postavke sigurnosti sustava
+ Dopušta aplikaciji da promjeni Lineage postavke sigurnosti sustava. Nije za korištenje kod normalnih aplikacija.
upravljanje stalnom pohranom
Dopušta aplikaciji čitati ili pisati svojstva koja ostaju poslije resetiranja na tvorničke postavke.
@@ -172,10 +172,10 @@
upravljanje postavkama LiveDisplay-a
Omogućuje aplikaciji konfiguriranje postavki naprednog prikaza.
-
+
promatraj promjene zvučnih sesija
Dopušta aplikaciji promatrati tijek zvuka dok je kreiran i prekinut.
-
+
upravljaj promjenama zvučnih sesija
Omogućuje aplikaciji slanje ažuriranja audio streama.
diff --git a/lineage/res/res/values-hu/strings.xml b/lineage/res/res/values-hu/strings.xml
index 9d69e0d8..3af60a13 100644
--- a/lineage/res/res/values-hu/strings.xml
+++ b/lineage/res/res/values-hu/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS rendszer
+ LineageOS rendszer
egy egyedi csempe létrehozása a gyors beállítások panelen
Lehetővé teszi az alkalmazás számára, hogy gyors beállítások csempét hozzon létre.
rendszer hálózati beállításainak módosítása
@@ -38,7 +38,7 @@
Lehetővé teszi az alkalmazás számára a rendszerprofilok módosítását.
hardver keretrendszert használ
- Lehetővé teszi az alkalmazás számára, hogy a CM hardver hozzáférjen a keretrendszerhez.
+ Lehetővé teszi az alkalmazás számára, hogy a Lineage hardver hozzáférjen a keretrendszerhez.
riasztások közvetlen megváltoztatása
Lehetővé teszi az alkalmazás számára, hogy hozzáadja, módosítsa, vagy törölje az összes riasztást.
@@ -49,11 +49,11 @@
hozzáférés ütemezett riasztásokhoz
Lehetővé teszi az alkalmazás számára, hogy olvassa az ütemezett riasztásait.
- CM rendszer beállításainak módosítása
- Lehetővé teszi egy alkalmazás számára a CM rendszer beállításainak módosítását.
+ Lineage rendszer beállításainak módosítása
+ Lehetővé teszi egy alkalmazás számára a Lineage rendszer beállításainak módosítását.
- CM biztonsági rendszer beállításainak módosítása
- Lehetővé teszi egy alkalmazás számára a CM biztonsági rendszer beállításainak módosítását. Szokásos alkalmazások számára nem használható.
+ Lineage biztonsági rendszer beállításainak módosítása
+ Lehetővé teszi egy alkalmazás számára a Lineage biztonsági rendszer beállításainak módosítását. Szokásos alkalmazások számára nem használható.
állandó tároló kezelése
Lehetővé teszi az alkalmazás számára olyan tulajdonságok írását vagy olvasását, amelyek a gyári beállítások visszaállítása során is megmaradnak.
@@ -174,10 +174,10 @@
LiveDisplay beállítások kezelése
Lehetővé teszi az alkalmazás számára a speciális megjelenítési beállítások konfigurálását.
-
+
audió munkamenet változásainak megfigyelése
Lehetővé teszi az alkalmazás számára, hogy megfigyelje ahogy az audió folyamok létrejönnek és elpusztulnak.
-
+
audió munkamenet változások kezelése
Lehetővé teszi az alkalmazás számára, hogy audio stream frissítéseket küldjön.
diff --git a/lineage/res/res/values-hy-rAM/strings.xml b/lineage/res/res/values-hy-rAM/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-hy-rAM/strings.xml
+++ b/lineage/res/res/values-hy-rAM/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-in/strings.xml b/lineage/res/res/values-in/strings.xml
index 760ff3a6..ac0c4043 100644
--- a/lineage/res/res/values-in/strings.xml
+++ b/lineage/res/res/values-in/strings.xml
@@ -18,7 +18,7 @@
-->
- Sistem LineageOS
+ Sistem LineageOS
membuat ikon kustom dalam panel setelan cepat
Izinkan aplikasi untuk mempublikasikan ikon pengaturan cepat.
ubah pengaturan jaringan sistem
@@ -37,7 +37,7 @@
memodifikasi profil sistem
gunakan hardware framework
- Izinkan aplikasi untuk mengakses hardware framework CM.
+ Izinkan aplikasi untuk mengakses hardware framework Lineage.
secara langsung mengubah alarm
Mengizinkan aplikasi untuk menambah, mengubah atau menghapus semua alarm.
@@ -48,11 +48,11 @@
akses alarm terjadwal
Mengizinkan aplikasi untuk melihat alarm terjadwal.
- mengubah pengaturan sistem CM
- Mengizinkan aplikasi untuk memodifikasi pengaturan sistem CM.
+ mengubah pengaturan sistem Lineage
+ Mengizinkan aplikasi untuk memodifikasi pengaturan sistem Lineage.
- mengubah pengaturan sistem aman CM
- Memungkinkan aplikasi untuk memodifikasi pengaturan sistem aman CM. Tidak untuk digunakan oleh aplikasi normal.
+ mengubah pengaturan sistem aman Lineage
+ Memungkinkan aplikasi untuk memodifikasi pengaturan sistem aman Lineage. Tidak untuk digunakan oleh aplikasi normal.
mengatur penyimpanan tetap
Memungkinkan aplikasi untuk membaca atau menulis properti yang dapat bertahan dari setel ulang ke pabrik.
@@ -171,10 +171,10 @@
kelola pengaturan LiveDisplay
Izinkan aplikasi untuk mengonfigurasi pengaturan tampilan lanjutan.
-
+
pantau perubahan sesi audio
Izinkan aplikasi untuk memantau pengaliran audio yang dibuat dan dihilangkan.
-
+
kelola perubahan sesi audio
Memungkinkan aplikasi untuk mengirim pembaruan stream audio.
diff --git a/lineage/res/res/values-is-rIS/strings.xml b/lineage/res/res/values-is-rIS/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-is-rIS/strings.xml
+++ b/lineage/res/res/values-is-rIS/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-it/strings.xml b/lineage/res/res/values-it/strings.xml
index 97586be2..0e51085e 100644
--- a/lineage/res/res/values-it/strings.xml
+++ b/lineage/res/res/values-it/strings.xml
@@ -18,7 +18,7 @@
-->
- Sistema LineageOS
+ Sistema LineageOS
creare un tile personalizzato all\'interno del pannello Impostazioni rapide
Consenti ad un\'app di pubblicare un tile personalizzato.
modifica le impostazioni di rete di sistema
@@ -38,7 +38,7 @@
Consenti ad un\'app di modificare i profili di sistema.
utilizza framework hardware
- Consenti ad un\'app di accedere al framework hardware di CM.
+ Consenti ad un\'app di accedere al framework hardware di Lineage.
modifica le sveglie
Consenti ad un\'app di aggiungere, modificare o eliminare tutti i tuoi allarmi.
@@ -49,11 +49,11 @@
accesso avvisi programmati
Consenti all\'app di leggere i tuoi avvisi programmati.
- modifica le impostazioni di sistema CM
- Consenti ad un\'app di modificare le impostazioni di sistema CM.
+ modifica le impostazioni di sistema Lineage
+ Consenti ad un\'app di modificare le impostazioni di sistema Lineage.
- modifica le impostazioni di sistema sicure CM
- Consenti ad un\'app di modificare le impostazioni di sistema sicure CM. Non per l\'uso di normali applicazioni.
+ modifica le impostazioni di sistema sicure Lineage
+ Consenti ad un\'app di modificare le impostazioni di sistema sicure Lineage. Non per l\'uso di normali applicazioni.
gestione archivio persistente
Consenti ad un\'app di leggere o scrivere proprietà che possono persistere ad un ripristino di fabbrica.
@@ -173,10 +173,10 @@
gestisci le impostazioni LiveDisplay
Consenti ad un\'app di configurare impostazioni avanzate del display.
-
+
osserva cambiamenti di sessioni audio
Consenti ad un\'app di osservare la creazione e distruzione di flussi audio.
-
+
gestisci cambiamenti di sessioni audio
Consenti ad un\'app di inviare aggiornamenti del flusso audio.
diff --git a/lineage/res/res/values-iw/strings.xml b/lineage/res/res/values-iw/strings.xml
index b591a4d1..54cbcc75 100644
--- a/lineage/res/res/values-iw/strings.xml
+++ b/lineage/res/res/values-iw/strings.xml
@@ -18,7 +18,7 @@
-->
- מערכת LineageOS
+ מערכת LineageOS
צור אריח מותאם אישית בתוך לוח ההגדרות המהירות
מאפשר ליישום לפרסם אריח הגדרות מותאם אישית.
שנה את הגדרות הרשת של המערכת
@@ -38,7 +38,7 @@
מאפשר ליישום לשנות פרופילי מערכת.
השתמש במסגרת חומרה
- מאפשר ליישום לגשת למסגרת החומרתית של CM.
+ מאפשר ליישום לגשת למסגרת החומרתית של Lineage.
שנה ישירות שעונים מעוררים
מאפשר ליישום להוסיף, לשנות או למחוק את כל השעונים המעוררים שלך.
@@ -49,11 +49,11 @@
גישה לשעונים מעוררים שנקבעו
מאפשר ליישום לקרוא את השעונים המעוררים שנקבעו.
- שנה הגדרות מערכת CM
- מאפשר ליישום לשנות את הגדרות מערכת CM.
+ שנה הגדרות מערכת Lineage
+ מאפשר ליישום לשנות את הגדרות מערכת Lineage.
- שנה הגדרות מאובטחות של מערכת CM
- מאפשר ליישום לשנות את ההגדרות המאובטחות של מערכת CM. לא לשימוש ביישומים רגילים.
+ שנה הגדרות מאובטחות של מערכת Lineage
+ מאפשר ליישום לשנות את ההגדרות המאובטחות של מערכת Lineage. לא לשימוש ביישומים רגילים.
נהל אחסון תמידי
מאפשר ליישום לקרוא או לכתוב נתונים והגדרות העלולים לשרוד גם לאחר איפוס המכשיר להגדרות היצרן.
@@ -173,10 +173,10 @@
נהל הגדרות livedisplay
מאפשר ליישום לקבוע הגדרות תצוגה מתקדמות.
-
+
הרשאה לקבלת עדכוני פעולות במערכת השמע
מאפשר ליישום לקבל עדכוני יצירה וסגירה של זרמי שמע.
-
+
נהל עדכוני פעולות במערכת השמע
מאפשר ליישום לשלוח עדכוני זרימת שמע.
diff --git a/lineage/res/res/values-ja/strings.xml b/lineage/res/res/values-ja/strings.xml
index 65356c36..9d601426 100644
--- a/lineage/res/res/values-ja/strings.xml
+++ b/lineage/res/res/values-ja/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS システム
+ LineageOS システム
クイック設定パネルでのカスタムタイルの作成
クイック設定タイルの作成をアプリに許可します
システムのネットワークの設定の変更
@@ -173,10 +173,10 @@
LiveDisplayの設定の管理
ディスプレイの詳細設定をアプリに許可します。
-
+
オーディオセッションの変更の監視
オーディオストリームの作成および破棄の監視をアプリに許可します。
-
+
オーディオセッションの変更の管理
オーディオストリームの更新の送信をアプリに許可します。
diff --git a/lineage/res/res/values-ka-rGE/strings.xml b/lineage/res/res/values-ka-rGE/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-ka-rGE/strings.xml
+++ b/lineage/res/res/values-ka-rGE/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-kk-rKZ/strings.xml b/lineage/res/res/values-kk-rKZ/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-kk-rKZ/strings.xml
+++ b/lineage/res/res/values-kk-rKZ/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-km-rKH/strings.xml b/lineage/res/res/values-km-rKH/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-km-rKH/strings.xml
+++ b/lineage/res/res/values-km-rKH/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-kn-rIN/strings.xml b/lineage/res/res/values-kn-rIN/strings.xml
index 8a19c418..ddcbda88 100644
--- a/lineage/res/res/values-kn-rIN/strings.xml
+++ b/lineage/res/res/values-kn-rIN/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS ಸಿಸ್ಟಂ
+ LineageOS ಸಿಸ್ಟಂ
ತ್ವರಿತ ಸೆಟ್ಟಿಂಗ್ಸ್ ಪ್ಯಾನೆಲ್ ಒಳಗೆಯೇ ಒಂದು ಕಸ್ಟಮ್ ಟೈಲ್ ರಚಿಸಿ
ಒಂದು ಆಪ್ಗೆ ತ್ವರಿತ ಸೆಟ್ಟಿಂಗ್ಸ್ ಟೈಲನ್ನು ಮುದ್ರಿಸಲು ಅನುಮತಿಸುತ್ತದೆ.
ಸಿಸ್ಟಂ ನೆಟ್ವರ್ಕ್ ಸೆಟ್ಟಿಂಗ್ಸ್ ಬದಲಿಸು
@@ -38,7 +38,7 @@
ಒಂದು ಆಪ್ಗೆ ಸಿಸ್ಟಂ ಪ್ರೊಫೈಲ್ಗಳನ್ನು ಮಾರ್ಪಡಿಸಲು ಅನುಮತಿಸುತ್ತದೆ.
ಹಾರ್ಡ್ವೇರ್ ಫ್ರೇಮ್ವರ್ಕ್ ಉಪಯೋಗಿಸು
- ಒಂದು ಆಪ್ CM ಹಾರ್ಡ್ವೇರ್ ಫ್ರೇಮ್ವರ್ಕನ್ನು ಪ್ರವೇಶಿಸಲು ಅನುಮತಿಸುತ್ತದೆ.
+ ಒಂದು ಆಪ್ Lineage ಹಾರ್ಡ್ವೇರ್ ಫ್ರೇಮ್ವರ್ಕನ್ನು ಪ್ರವೇಶಿಸಲು ಅನುಮತಿಸುತ್ತದೆ.
ಅಲಾರಂಗಳನ್ನು ನೇರವಾಗಿ ಬದಲಿಸು
ಒಂದು ಆಪ್ಗೆ ನಿಮ್ಮ ಎಲ್ಲಾ ಅಲಾರಂಗಳನ್ನು ಅಳಿಸಲು, ಸೇರಿಸಲು, ಅಥವ ಮಾರ್ಪಡಿಸಲು ಅನುಮತಿಸುತ್ತದೆ.
@@ -49,11 +49,11 @@
ನಿಗದಿಪಡಿಸಿದ ಅಲಾರಂಗಳನ್ನು ಪ್ರವೇಶಿಸು
ಒಂದು ಆಪ್ಗೆ ನಿಮ್ಮ ನಿಗದಿಪಡಿಸಿದ ಅಲಾರಂಗಳನ್ನು ಓದಲು ಅನುಮತಿಸುತ್ತದೆ.
- CM ಸಿಸ್ಟಂ ಸೆಟ್ಟಿಂಗ್ಸನ್ನು ಮಾರ್ಪಡಿಸು
- ಒಂದು ಆಪ್ಗೆ CM ಸಿಸ್ಟಂ ಸೆಟ್ಟಿಂಗ್ಸನ್ನು ಮಾರ್ಪಡಿಸಲು ಅನುಮತಿಸುತ್ತದೆ.
+ Lineage ಸಿಸ್ಟಂ ಸೆಟ್ಟಿಂಗ್ಸನ್ನು ಮಾರ್ಪಡಿಸು
+ ಒಂದು ಆಪ್ಗೆ Lineage ಸಿಸ್ಟಂ ಸೆಟ್ಟಿಂಗ್ಸನ್ನು ಮಾರ್ಪಡಿಸಲು ಅನುಮತಿಸುತ್ತದೆ.
- CM ಸುರಕ್ಷಿತ ಸೆಟ್ಟಿಂಗ್ಸನ್ನು ಮಾರ್ಪಡಿಸು
- ಒಂದು ಆಪ್ಗೆ CM ಸುರಕ್ಷಿತ ಸೆಟ್ಟಿಂಗ್ಸನ್ನು ಮಾರ್ಪಡಿಸಲು ಅನುಮತಿಸುತ್ತದೆ. ಸಾಮಾನ್ಯ ಆಪ್ಗಳ ಬಳಕೆಗಲ್ಲ.
+ Lineage ಸುರಕ್ಷಿತ ಸೆಟ್ಟಿಂಗ್ಸನ್ನು ಮಾರ್ಪಡಿಸು
+ ಒಂದು ಆಪ್ಗೆ Lineage ಸುರಕ್ಷಿತ ಸೆಟ್ಟಿಂಗ್ಸನ್ನು ಮಾರ್ಪಡಿಸಲು ಅನುಮತಿಸುತ್ತದೆ. ಸಾಮಾನ್ಯ ಆಪ್ಗಳ ಬಳಕೆಗಲ್ಲ.
ನಿರಂತರ ಸಂಗ್ರಹಣೆ ನಿರ್ವಹಿಸು
ಒಂದು ಆಪ್ಗೆ ಪ್ರಾಪರ್ಟೀಸನ್ನು ರೀಡ್/ವ್ರೈಟ್ ಮಾಡಲು ಅನುಮತಿಸುತ್ತದೆ ಅದು ಫ್ಯಾಕ್ಟರಿ ಮರುಹೊಂದಿಕೆಯ ನಂತರವೂ ಮುಂದುವರೆಯಬಹುದು.
@@ -126,8 +126,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-ko/strings.xml b/lineage/res/res/values-ko/strings.xml
index 478b67e0..d7be0bb0 100644
--- a/lineage/res/res/values-ko/strings.xml
+++ b/lineage/res/res/values-ko/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS 시스템
+ LineageOS 시스템
빠른 설정 패널에 사용자 정의 타일 생성
앱이 빠른 설정 타일을 만들 수 있도록 허용합니다.
시스템 네트워크 설정 변경
@@ -38,7 +38,7 @@
앱이 시스템 프로필을 수정할 수 있도록 허용합니다.
하드웨어 프레임워크 사용
- 앱이 CM 하드웨어 프레임워크에 접근할 수 있도록 허용합니다.
+ 앱이 Lineage 하드웨어 프레임워크에 접근할 수 있도록 허용합니다.
알람을 직접 변경
앱이 알람을 추가, 변경 또는 삭제할 수 있도록 허용합니다.
@@ -49,11 +49,11 @@
예정된 알람 접근
앱이 예정된 알람을 볼 수 있도록 허용합니다.
- CM 시스템 설정 수정
- 앱이 CM 시스템 설정을 수정할 수 있도록 허용합니다.
+ Lineage 시스템 설정 수정
+ 앱이 Lineage 시스템 설정을 수정할 수 있도록 허용합니다.
- CM 보안 시스템 설정 수정
- 앱이 CM 보안 시스템 설정을 수정할 수 있도록 허용합니다. 일반 앱을 위한 것이 아닙니다.
+ Lineage 보안 시스템 설정 수정
+ 앱이 Lineage 보안 시스템 설정을 수정할 수 있도록 허용합니다. 일반 앱을 위한 것이 아닙니다.
상주 저장소 관리
공장 초기화 후에도 지속될 수 있는 속성의 읽기 쓰기를 허용합니다.
@@ -173,10 +173,10 @@
LiveDisplay 설정 관리
앱이 고급 디스플레이 설정을 변경할 수 있도록 허용합니다.
-
+
오디오 세션 변화 관찰
앱이 오디오 스트림이 생성되고 제거되는 것을 관찰할 수 있도록 허용합니다.
-
+
오디오 세션 변경 관리
앱을 통해 오디오 스트림 업데이트를 보내도록 합니다.
diff --git a/lineage/res/res/values-ku/strings.xml b/lineage/res/res/values-ku/strings.xml
index 820743eb..b2eb2db2 100644
--- a/lineage/res/res/values-ku/strings.xml
+++ b/lineage/res/res/values-ku/strings.xml
@@ -18,7 +18,7 @@
-->
- سیستەمی ساینەجنمۆد
+ سیستەمی ساینەجنمۆد
گرێدانی دروستکراو لە خزمەتگوزاری گوێگر
@@ -65,8 +65,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-ky-rKG/strings.xml b/lineage/res/res/values-ky-rKG/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-ky-rKG/strings.xml
+++ b/lineage/res/res/values-ky-rKG/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-lb/strings.xml b/lineage/res/res/values-lb/strings.xml
index 9a8bad3d..16ce614e 100644
--- a/lineage/res/res/values-lb/strings.xml
+++ b/lineage/res/res/values-lb/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS-System
+ LineageOS-System
eng Kachel an de séieren Astellungen uweisen
Erlaabt der App, eng Kachel an de séieren Astellungen uweisen.
Netzwierkastellunge vum System änneren
@@ -34,7 +34,7 @@
Hardware-Framework benotzen
- Erlaabt der App, den Accès op den CM-Hardware-Framework.
+ Erlaabt der App, den Accès op den Lineage-Hardware-Framework.
@@ -102,8 +102,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-lo-rLA/strings.xml b/lineage/res/res/values-lo-rLA/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-lo-rLA/strings.xml
+++ b/lineage/res/res/values-lo-rLA/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-lt/strings.xml b/lineage/res/res/values-lt/strings.xml
index eb66a1cc..5e09446d 100644
--- a/lineage/res/res/values-lt/strings.xml
+++ b/lineage/res/res/values-lt/strings.xml
@@ -18,7 +18,7 @@
-->
- „LineageOS“ sistema
+ „LineageOS“ sistema
sukurti tinkintą plytelę per greitųjų nustatymų skydelį
Leidžia programai paskelbti greitųjų nustatymų plytelę.
keisti sistemos tinklo nustatymus
@@ -38,7 +38,7 @@
Leidžia programai keisti sistemos profilius.
naudoti aparatinės įrangos sistemą
- Leidžia programai pasiekti CM aparatinės įrangos sistemą.
+ Leidžia programai pasiekti Lineage aparatinės įrangos sistemą.
tiesiogiai pakeisti signalus
Leidžia programai pridėti, pakeisti arba ištrinti visus jūsų signalus.
@@ -49,11 +49,11 @@
pasiekti suplanuotus signalus
Leidžia programai skaityti jūsų suplanuotus signalus.
- keisti CM sistemos nustatymus
- Leidžia programai keisti CM sistemos nustatymus.
+ keisti Lineage sistemos nustatymus
+ Leidžia programai keisti Lineage sistemos nustatymus.
- keisti CM sistemos saugos nustatymus
- Leidžia programai keisti CM sistemos saugos nustatymus. Neskirta naudoti įprastoms programoms.
+ keisti Lineage sistemos saugos nustatymus
+ Leidžia programai keisti Lineage sistemos saugos nustatymus. Neskirta naudoti įprastoms programoms.
valdyti nuolatinę saugykla
Leidžia programai skaityti ar rašyti įrašus, kurie gali išlikti net atstačius gamyklinius nustatymus.
@@ -105,8 +105,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-lv/strings.xml b/lineage/res/res/values-lv/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-lv/strings.xml
+++ b/lineage/res/res/values-lv/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-mk-rMK/strings.xml b/lineage/res/res/values-mk-rMK/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-mk-rMK/strings.xml
+++ b/lineage/res/res/values-mk-rMK/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-ml-rIN/strings.xml b/lineage/res/res/values-ml-rIN/strings.xml
index c485addd..bdb1ea83 100644
--- a/lineage/res/res/values-ml-rIN/strings.xml
+++ b/lineage/res/res/values-ml-rIN/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS സിസ്റ്റം
+ LineageOS സിസ്റ്റം
ദ്രുത ക്രമീകരണ പാനലിൽ ഒരു ഇഷ്ടാനുസൃത ടൈൽ സൃഷ്ടിക്കുക
ദ്രുത ക്രമീകരണ ടൈൽ പ്രസിദ്ധീകരിക്കാൻ ഒരു ആപ്ലിക്കേഷനെ അനുവദിക്കുന്നു.
സിസ്റ്റം നെറ്റ്വർക്ക് ക്രമീകരണങ്ങൾ മാറ്റുക
@@ -38,7 +38,7 @@
സിസ്റ്റം പ്രൊഫൈലുകൾ പരിഷ്കരിക്കുന്നതിന് ഒരു ആപ്ലിക്കേഷനെ അനുവദിക്കുന്നു.
ഹാര്ഡ്വെയര് ഫ്രെയിംവര്ക്ക് ഉപയോഗിക്കുക
- CM ഹാര്ഡ്വെയര് ഫ്രെയിംവര്ക്കിലേക്ക് പ്രവേശിക്കാന് ഒരു ആപ്ലിക്കേഷനെ അനുവദിക്കുന്നു.
+ Lineage ഹാര്ഡ്വെയര് ഫ്രെയിംവര്ക്കിലേക്ക് പ്രവേശിക്കാന് ഒരു ആപ്ലിക്കേഷനെ അനുവദിക്കുന്നു.
അലാറങ്ങൾ നേരിട്ട് മാറ്റുക
നിങ്ങളുടെ അലാറങ്ങൾ ചേർക്കുന്നതിനും പരിഷ്ക്കരിക്കുന്നതിനും അല്ലെങ്കിൽ എല്ലാം ഇല്ലാതാക്കുന്നതിനും ഒരു ആപ്ലിക്കേഷനെ അനുവദിക്കുന്നു.
@@ -49,11 +49,11 @@
ഷെഡ്യൂൾ ചെയ്ത അലാറങ്ങളിലേക്ക് പ്രവേശിക്കുക
ഷെഡ്യൂൾ ചെയ്ത നിങ്ങളുടെ അലാറങ്ങൾ റീഡ് ചെയ്യാന് ഒരു ആപ്ലിക്കേഷനെ അനുവദിക്കുന്നു.
- CM സിസ്റ്റം ക്രമീകരണങ്ങൾ പരിഷ്ക്കരിക്കുക
- CM സിസ്റ്റം ക്രമീകരണങ്ങൾ പരിഷ്ക്കരിക്കുവാന് ഒരു ആപ്ലിക്കേഷനെ അനുവദിക്കുന്നു.
+ Lineage സിസ്റ്റം ക്രമീകരണങ്ങൾ പരിഷ്ക്കരിക്കുക
+ Lineage സിസ്റ്റം ക്രമീകരണങ്ങൾ പരിഷ്ക്കരിക്കുവാന് ഒരു ആപ്ലിക്കേഷനെ അനുവദിക്കുന്നു.
- CM സുരക്ഷാ സംവിധാന ക്രമീകരണങ്ങൾ പരിഷ്ക്കരിക്കുക
- CM സുരക്ഷിത സിസ്റ്റം ക്രമീകരണങ്ങൾ പരിഷ്ക്കരിക്കുവാന് ഒരു ആപ്ലിക്കേഷനെ അനുവദിക്കുന്നു. സാധാരണ ആപ്ലിക്കേഷനുകൾക്ക് ഉപയോഗിക്കാനുള്ളതല്ല.
+ Lineage സുരക്ഷാ സംവിധാന ക്രമീകരണങ്ങൾ പരിഷ്ക്കരിക്കുക
+ Lineage സുരക്ഷിത സിസ്റ്റം ക്രമീകരണങ്ങൾ പരിഷ്ക്കരിക്കുവാന് ഒരു ആപ്ലിക്കേഷനെ അനുവദിക്കുന്നു. സാധാരണ ആപ്ലിക്കേഷനുകൾക്ക് ഉപയോഗിക്കാനുള്ളതല്ല.
സ്ഥിര സംഭരണം മാനേജ് ചെയ്യുക
ഫാക്ടറി റീസെറ്റ് മുഖേന നിലനില്ക്കുന്ന പ്രോപ്പര്ട്ടീസ് റീഡ് അല്ലെങ്കില് വ്രൈറ്റ് ചെയ്യാന് ഒരു ആപ്ലിക്കേഷനെ അനുവദിക്കുന്നു.
@@ -126,8 +126,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-mn-rMN/strings.xml b/lineage/res/res/values-mn-rMN/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-mn-rMN/strings.xml
+++ b/lineage/res/res/values-mn-rMN/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-mr-rIN/strings.xml b/lineage/res/res/values-mr-rIN/strings.xml
index bb216a78..20476672 100644
--- a/lineage/res/res/values-mr-rIN/strings.xml
+++ b/lineage/res/res/values-mr-rIN/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS सिस्टिम
+ LineageOS सिस्टिम
जलद सेटिंग्ज पॅनेलमध्ये एक सानुकूल टाईल तयार करा
अॅपला एक जलद सेटिंग्ज टाईल प्रकाशित करण्याची परवानगी देते.
सिस्टिम नेटवर्क सेटिंग्ज बदला
@@ -38,7 +38,7 @@
अॅपला सिस्टिम प्रोफाइल्स सुधारित करण्याची परवानगी देते.
हार्डवेअर फ्रेमवर्क वापरा
- अॅपला CM हार्डवेअर फ्रेमवर्कमध्ये ऍक्सेस करण्याची परवानगी देते.
+ अॅपला Lineage हार्डवेअर फ्रेमवर्कमध्ये ऍक्सेस करण्याची परवानगी देते.
अलार्म्स थेट बदला
अॅपला तुमचे सर्व अलार्म्स जोडू, सुधारित करू किंवा हटवू देते.
@@ -49,11 +49,11 @@
शेड्युल केलेल्या अलार्म्समध्ये ऍक्सेस करा
अॅपला तुमचे शेड्युल केलेले अलार्म्स वाचू देते.
- CM सिस्टिम सेटिंग्ज सुधारित करा
- अॅपला CM सिस्टिम सेटिंग्ज सुधारित करण्याची परवानगी देते.
+ Lineage सिस्टिम सेटिंग्ज सुधारित करा
+ अॅपला Lineage सिस्टिम सेटिंग्ज सुधारित करण्याची परवानगी देते.
- CM सुरक्षित सिस्टिम सेटिंग्ज सुधारित करा
- अॅपला CM सुरक्षित सिस्टिम सेटिंग्ज सुधारित करण्याची परवानगी देते. सामान्य अॅपद्वारे वापरासाठी नाही.
+ Lineage सुरक्षित सिस्टिम सेटिंग्ज सुधारित करा
+ अॅपला Lineage सुरक्षित सिस्टिम सेटिंग्ज सुधारित करण्याची परवानगी देते. सामान्य अॅपद्वारे वापरासाठी नाही.
पर्सिस्टंट संग्रह व्यवस्थापित करा
अॅपला गुणधर्म वाचू किंवा लिहू देते जे फॅक्टरी रीसेटद्वारे पर्सिस्ट होऊ शकतात.
@@ -138,8 +138,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-ms-rMY/strings.xml b/lineage/res/res/values-ms-rMY/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-ms-rMY/strings.xml
+++ b/lineage/res/res/values-ms-rMY/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-my-rMM/strings.xml b/lineage/res/res/values-my-rMM/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-my-rMM/strings.xml
+++ b/lineage/res/res/values-my-rMM/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-nb/strings.xml b/lineage/res/res/values-nb/strings.xml
index beed3681..fbfb41f1 100644
--- a/lineage/res/res/values-nb/strings.xml
+++ b/lineage/res/res/values-nb/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS System
+ LineageOS System
opprett en egendefinert flis i hurtiginnstillingspanelet
Tillater en app å publisere en hurtiginnstillingsflis.
endre innstillingene for nettverk
@@ -49,11 +49,11 @@
tilgang til planlagte alarmer
Gir en app tilgang til å lese av dine planlagte alarmer.
- endre CM systeminnstillinger
- Gir en app tilgang til å endre CMs systeminnstillinger.
+ endre Lineage systeminnstillinger
+ Gir en app tilgang til å endre Lineages systeminnstillinger.
- endre CM sikker systeminnstillinger
- Gir en app tilgang til å endre CM sikkerhets-systeminnstillinger. Tilgangen bør ikke gis til normale apper.
+ endre Lineage sikker systeminnstillinger
+ Gir en app tilgang til å endre Lineage sikkerhets-systeminnstillinger. Tilgangen bør ikke gis til normale apper.
administrere permanent lager
Gir en app tilgang til å lese eller skrive egenskaper, som kan overleve gjenoppretting av fabrikkinnstillinger.
@@ -174,10 +174,10 @@
behandle LiveDisplay innstillinger
Tillater en app å konfigurere avanserte skjerminnstillinger.
-
+
observer lydøkt-endringer
Tillater en app å observere om lyd-strømmer blir lagd eller ødelagt.
-
+
administrer lyd økt endringer
Gir en app tillatelse til å sende lydstrømning oppdateringer.
diff --git a/lineage/res/res/values-ne-rNP/strings.xml b/lineage/res/res/values-ne-rNP/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-ne-rNP/strings.xml
+++ b/lineage/res/res/values-ne-rNP/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-nl/strings.xml b/lineage/res/res/values-nl/strings.xml
index a27e1ea5..1a38a2c9 100644
--- a/lineage/res/res/values-nl/strings.xml
+++ b/lineage/res/res/values-nl/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS-systeem
+ LineageOS-systeem
een aangepaste tegel aanmaken in het snelle instellingenpaneel
Hiermee kan een app een tegel toevoegen aan snelle instellingen.
systeemnetwerkinstellingen wijzigen
@@ -38,7 +38,7 @@
Hiermee kan de app systeemprofielen wijzigen.
hardware-framework gebruiken
- Hiermee kan de app toegang krijgen tot het hardware-framework van CM.
+ Hiermee kan de app toegang krijgen tot het hardware-framework van Lineage.
rechtstreeks alarmen wijzigen
Hiermee kan de app alarmen toevoegen, bewerken of verwijderen.
@@ -49,11 +49,11 @@
toegang tot geplande alarmen
Hiermee kan de app uw geplande alarmen lezen.
- CM-systeeminstellingen wijzigen
- Hiermee kan de app de systeeminstellingen van CM wijzigen.
+ Lineage-systeeminstellingen wijzigen
+ Hiermee kan de app de systeeminstellingen van Lineage wijzigen.
- beveiligde CM-systeeminstellingen wijzigen
- Hiermee kan de app de beveiligde systeeminstellingen van CM wijzigen. Niet voor gebruik door normale apps.
+ beveiligde Lineage-systeeminstellingen wijzigen
+ Hiermee kan de app de beveiligde systeeminstellingen van Lineage wijzigen. Niet voor gebruik door normale apps.
blijvende opslag beheren
Hiermee kan de app eigenschappen lezen of schrijven die blijven bestaan na terugzetten naar fabrieksinstellingen.
@@ -173,10 +173,10 @@
LiveDisplay-instellingen beheren
Hiermee kan de app geavanceerde beeldscherminstellingen wijzigen.
-
+
wijzigingen in audiosessie observeren
Hiermee kan de app de aanmaak en vernietiging van audiostreams observeren.
-
+
wijzigingen in audiosessie beheren
Hiermee kan de app audiostreams bijwerken.
diff --git a/lineage/res/res/values-oc-rFR/strings.xml b/lineage/res/res/values-oc-rFR/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-oc-rFR/strings.xml
+++ b/lineage/res/res/values-oc-rFR/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-or-rIN/strings.xml b/lineage/res/res/values-or-rIN/strings.xml
index 632406f4..5dec0a1e 100644
--- a/lineage/res/res/values-or-rIN/strings.xml
+++ b/lineage/res/res/values-or-rIN/strings.xml
@@ -18,7 +18,7 @@
-->
- ସିଆନୋଜେନ୍ମୋଡ୍ ସିଷ୍ଟମ୍
+ ସିଆନୋଜେନ୍ମୋଡ୍ ସିଷ୍ଟମ୍
ଦ୍ରୁତ ସେଟିଂସମୂହ ପ୍ୟାନେଲ୍ ମଧ୍ୟରେ ଏକ କଷ୍ଟମ୍ ଟାଇଲ୍ ସୃଷ୍ଟି କରନ୍ତୁ
ଏକ ଦ୍ରୁତ ସେଟିଂସମୂହ ଟାଇଲ୍ ପ୍ରକାଶନ କରିବା ପାଇଁ ଆପ୍ଲିକେସନ୍କୁ ଅନୁମତି ଦେଇଥାଏ
ସିଷ୍ଟମ୍ ନେଟ୍ୱାର୍କ ସେଟିଂସମୂହ ପରିବର୍ତ୍ତନ କରନ୍ତୁ
@@ -38,7 +38,7 @@
ସିଷ୍ଟମ୍ ପ୍ରୋଫାଇଲ୍ ସମ୍ପାଦନା କରିବାକୁ ଆପ୍ଲିକେସନ୍କୁ ଅନୁମତି ଦିଏ।
ହାର୍ଡ୍ଓୟାର୍ ଫ୍ରେମ୍ୱାର୍କ୍ ବ୍ୟବହାର କରନ୍ତୁ
- CM ହାର୍ଡ୍ଓୟାର୍ ଫ୍ରେମ୍ୱାର୍କ୍ ଆକ୍ସେସ୍ କରିବାକୁ ଆପ୍ଲିକେସନ୍କୁ ଅନୁମତି ଦିଏ।
+ Lineage ହାର୍ଡ୍ଓୟାର୍ ଫ୍ରେମ୍ୱାର୍କ୍ ଆକ୍ସେସ୍ କରିବାକୁ ଆପ୍ଲିକେସନ୍କୁ ଅନୁମତି ଦିଏ।
ଆଲାର୍ମ୍ଗୁଡିକୁ ସିଧାସଳଖ ପରିବର୍ତ୍ତନ କରନ୍ତୁ
ଆପଣଙ୍କର ସମ୍ସ୍ତ ଆଲାର୍ମ୍ ଯୋଗ, ସମ୍ପାଦନା ବା ବିଲୋପ କରିବାକୁ ଆପ୍ଲିକେସନ୍କୁ ଅନୁମତି ଦିଏ।
@@ -49,11 +49,11 @@
ସୂଚୀଭୁକ୍ତ ଆଲାର୍ମ୍ଗୁଡିକୁ ଆକ୍ସେସ୍ କରନ୍ତୁ
ଆପଣଙ୍କ ସୂଚୀଭୁକ୍ତ ଆଲାର୍ମ୍ଗୁଡିକୁ ଆକ୍ସେସ୍ କରିବାକୁ ଆପ୍ଲିକେସନ୍କୁ ଅନୁମତି ଦିଏ।
- CM ସିଷ୍ଟମ୍ ସେଟିଂସମୂହ ସମ୍ପାଦନା କରନ୍ତୁ
- CM ସିଷ୍ଟମ୍ ସେଟିଂସମୂହ ସମ୍ପାଦନା କରିବାକୁ ଆପ୍ଲିକେସନ୍କୁ ଅନୁମତି ଦିଏ।
+ Lineage ସିଷ୍ଟମ୍ ସେଟିଂସମୂହ ସମ୍ପାଦନା କରନ୍ତୁ
+ Lineage ସିଷ୍ଟମ୍ ସେଟିଂସମୂହ ସମ୍ପାଦନା କରିବାକୁ ଆପ୍ଲିକେସନ୍କୁ ଅନୁମତି ଦିଏ।
- CM ସୁରଷିତ ସିଷ୍ଟମ୍ ସେଟିଂସମୂହ ସମ୍ପାଦନା
- CM ସୁରଷିତ ସିଷ୍ଟମ୍ ସେଟିଂସମୂହ ସମ୍ପାଦନା କରିବାକୁ ଆପ୍ଲିକେସନ୍କୁ ଅନୁମତି ଦିଏ। ସାଧାରଣ ଆପ୍ଲିକେସନଗୁଡିକ ଦ୍ଵାରା ବ୍ୟବହାରରେ ନାହିଁ।
+ Lineage ସୁରଷିତ ସିଷ୍ଟମ୍ ସେଟିଂସମୂହ ସମ୍ପାଦନା
+ Lineage ସୁରଷିତ ସିଷ୍ଟମ୍ ସେଟିଂସମୂହ ସମ୍ପାଦନା କରିବାକୁ ଆପ୍ଲିକେସନ୍କୁ ଅନୁମତି ଦିଏ। ସାଧାରଣ ଆପ୍ଲିକେସନଗୁଡିକ ଦ୍ଵାରା ବ୍ୟବହାରରେ ନାହିଁ।
ସ୍ଥାୟୀ ଷ୍ଟୋରେଜ୍ ପରିଚାଳନା କରନ୍ତୁ
ଏକ ଫ୍ୟାକ୍ଟରୀ ରିସେଟ୍ ମାଧ୍ୟମରେ ଯେଉଁ ଗୁଣାବଳି ଥ୍ୟାୟୀ ହୋଇ ରହିଥାଏ ତାହା ପଢିବା ବା ଲେଖିବା ପାଇଁ ଆପ୍ଲିକେସନ୍କୁ ଅନୁମତି ଦିଏ।
@@ -126,8 +126,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-pa-rIN/strings.xml b/lineage/res/res/values-pa-rIN/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-pa-rIN/strings.xml
+++ b/lineage/res/res/values-pa-rIN/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-pl/strings.xml b/lineage/res/res/values-pl/strings.xml
index e9224a37..a168e15b 100644
--- a/lineage/res/res/values-pl/strings.xml
+++ b/lineage/res/res/values-pl/strings.xml
@@ -18,7 +18,7 @@
-->
- System LineageOS
+ System LineageOS
utwórz niestandardowy przełącznik w panelu szybkich ustawień
Umożliwia aplikacji stworzenie kafelka szybkich ustawień.
zmień ustawienia sieciowe systemu
@@ -38,7 +38,7 @@
Umożliwia aplikacji modyfikację profili systemowych.
używa sprzętowego frameworka
- Umożliwia aplikacji na dostęp do frameworka CM.
+ Umożliwia aplikacji na dostęp do frameworka Lineage.
bezpośrednio zmienia alarmy
Pozwala aplikacji na dodanie, modyfikacje lub usunięcie wszystkich twoich alarmów.
@@ -49,11 +49,11 @@
dostęp do zaplanowanych alarmów
Pozwala aplikacji na odczytywanie twoich zaplanowanych alarmów.
- modyfikuje systemowe ustawienia CM
- Pozwala aplikacji na modyfikacje ustawień systemowych CM.
+ modyfikuje systemowe ustawienia Lineage
+ Pozwala aplikacji na modyfikacje ustawień systemowych Lineage.
- modyfikuje zabezpieczone ustawienia systemowe CM
- Pozwala aplikacji na modyfikacje zabezpieczonych ustawień systemowych CM. Nie do użytku przez zwykłe aplikacje.
+ modyfikuje zabezpieczone ustawienia systemowe Lineage
+ Pozwala aplikacji na modyfikacje zabezpieczonych ustawień systemowych Lineage. Nie do użytku przez zwykłe aplikacje.
zarządza trwałą pamięcią
Umożliwia aplikacji odczyt lub zapis właściwości, które mogą przetrwać reset do ustawień fabrycznych.
@@ -173,10 +173,10 @@
zarządzanie ustawieniami LiveDisplay
Pozwala aplikacji na konfigurację zaawansowanych ustawień wyświetlacza.
-
+
obserwuj zmiany sesji audio
Zezwalaj aplikacji na obserwowanie utworzenia lub zamknięcia strumienia dźwięku.
-
+
zarządza zmianami sesji audio
Pozwala aplikacji na wysyłanie aktualizacji strumienia audio.
diff --git a/lineage/res/res/values-pt-rBR/strings.xml b/lineage/res/res/values-pt-rBR/strings.xml
index 40698f71..f332ef14 100644
--- a/lineage/res/res/values-pt-rBR/strings.xml
+++ b/lineage/res/res/values-pt-rBR/strings.xml
@@ -18,7 +18,7 @@
-->
- Sistema LineageOS
+ Sistema LineageOS
criar um botão personalizado no painel de configurações rápidas
Permite que um aplicativo insira um botão nas configurações rápidas.
alterar as configurações de rede do sistema
@@ -38,7 +38,7 @@
Permite que um aplicativo modifique os perfis de sistema.
usar o framework do hardware
- Permite o acesso de um aplicativo ao framework de acesso ao hardware CM.
+ Permite o acesso de um aplicativo ao framework de acesso ao hardware Lineage.
alterar os alarmes diretamente
Permite a um aplicativo adicionar, modificar ou excluir todos os seus alarmes.
@@ -49,11 +49,11 @@
acessar os alarmes agendados
Permite a um aplicativo ler os alarmes agendados.
- modificar as configurações do sistema da CM
- Permite que um aplicativo modifique as configurações do sistema da CM.
+ modificar as configurações do sistema da Lineage
+ Permite que um aplicativo modifique as configurações do sistema da Lineage.
- modificar as configurações de segurança do sistema da CM
- Permite que um aplicativo modifique as configurações de segurança do sistema CM. Não deve ser usado por aplicativos normais.
+ modificar as configurações de segurança do sistema da Lineage
+ Permite que um aplicativo modifique as configurações de segurança do sistema Lineage. Não deve ser usado por aplicativos normais.
gerenciar o armazenamento persistente
Permite a um app ler ou escrever propriedades que podem persistir mesmo após um reset de fábrica.
@@ -174,10 +174,10 @@
gerenciar configurações do LiveDisplay
Permite que um aplicativo configure as definições de visualização avançada.
-
+
observar as alterações da sessão de áudio
Permite que um app observe o fluxo de áudio sendo criado e destruído.
-
+
gerenciar as alterações da sessão de áudio
Permite que um app envie atualizações de fluxo de áudio.
diff --git a/lineage/res/res/values-pt-rPT/strings.xml b/lineage/res/res/values-pt-rPT/strings.xml
index f3079591..b4770abe 100644
--- a/lineage/res/res/values-pt-rPT/strings.xml
+++ b/lineage/res/res/values-pt-rPT/strings.xml
@@ -18,7 +18,7 @@
-->
- Sistema LineageOS
+ Sistema LineageOS
criar um mosaico personalizado no painel de definições rápidas
Permite que uma aplicação publique um mosaico de definições rápidas.
alterar as definições de rede do sistema
@@ -38,7 +38,7 @@
Permite que uma aplicação modifique os perfis do sistema.
utilizar a framework de hardware
- Permite que uma aplicação aceda à framework de hardware CM.
+ Permite que uma aplicação aceda à framework de hardware Lineage.
alterar diretamente os alarmes
Permite que uma aplicação adicione, modifique ou elimine todos os seus alarmes.
@@ -49,11 +49,11 @@
aceder aos alarmes agendados
Permite que uma aplicação leia os seus alarmes agendados.
- modificar as definições de sistema CM
- Permite que uma aplicação modifique as definições de sistema CM.
+ modificar as definições de sistema Lineage
+ Permite que uma aplicação modifique as definições de sistema Lineage.
- modificar as definições de sistema seguro CM
- Permite que uma aplicação modifique as definições de sistema seguro CM. Nunca deverá ser necessário para aplicações normais.
+ modificar as definições de sistema seguro Lineage
+ Permite que uma aplicação modifique as definições de sistema seguro Lineage. Nunca deverá ser necessário para aplicações normais.
gerir o armazenamento persistente
Permite que uma aplicação leia ou escreva propriedades que possam persistir mesmo após a reposição dos dados de fábrica.
@@ -174,10 +174,10 @@
gerir as definições do LiveDisplay
Permite que uma aplicação configure definições avançadas do ecrã.
-
+
observar as alterações da sessão de som
Permite que uma aplicação observe a criação e destruição de fluxos de som.
-
+
gerir sessões de alterações de som
Permite que uma aplicação envie atualizações de fluxo de áudio.
diff --git a/lineage/res/res/values-rm/strings.xml b/lineage/res/res/values-rm/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-rm/strings.xml
+++ b/lineage/res/res/values-rm/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-ro/strings.xml b/lineage/res/res/values-ro/strings.xml
index 64c6f5b7..34c92405 100644
--- a/lineage/res/res/values-ro/strings.xml
+++ b/lineage/res/res/values-ro/strings.xml
@@ -18,7 +18,7 @@
-->
- Sistem LineageOS
+ Sistem LineageOS
creează un chenar personalizat în panoul de setări rapide
Permite unei aplicații să publice un chenar de setări rapide.
modifică setările de rețea ale sistemului
@@ -38,7 +38,7 @@
Permite unei aplicații să modifice profilurile de sistem.
folosește framework-ul hardware
- Permite unei aplicații să acceseze framework-ul CM hardware.
+ Permite unei aplicații să acceseze framework-ul Lineage hardware.
schimbă direct alarme
Permite unei aplicații să adauge, modifice sau să șteargă toate alarmele.
@@ -49,11 +49,11 @@
accesează alarme programate
Permite unei aplicații să citească alarmele programate.
- modifică setările de sistem CM
- Permite unei aplicații să modifice setările de sistem CM.
+ modifică setările de sistem Lineage
+ Permite unei aplicații să modifice setările de sistem Lineage.
- modifică setările de siguranță sistem CM
- Permite unei aplicații să modifice setările de sistem CM sigure. Nu este utilizabilă de către aplicațiile normale.
+ modifică setările de siguranță sistem Lineage
+ Permite unei aplicații să modifice setările de sistem Lineage sigure. Nu este utilizabilă de către aplicațiile normale.
gestionează stocare persistentă
Permite unei aplicații să citească sau să scrie proprietăți ce se pot menține în urma unei reveniri la setările din fabrică.
@@ -174,10 +174,10 @@
gestionează setările LiveDisplay
Permite unei aplicații să configureze setările de afișare avansate.
-
+
observă schimbări sesiune audio
Permite unei aplicații să observe dacă fluxurile audio sunt create şi distruse.
-
+
gestionează schimbările de sesiune audio
Permite unei aplicații să trimită actualizări de flux audio.
diff --git a/lineage/res/res/values-ru/strings.xml b/lineage/res/res/values-ru/strings.xml
index 86a74e3c..9624467c 100644
--- a/lineage/res/res/values-ru/strings.xml
+++ b/lineage/res/res/values-ru/strings.xml
@@ -18,7 +18,7 @@
-->
- Система LineageOS
+ Система LineageOS
Создание пользовательских плиток на панели быстрых настроек
Приложение сможет добавлять плитки на панель быстрых настроек.
Изменение сетевых параметров системы
@@ -38,7 +38,7 @@
Приложение сможет изменять настройки системных профилей.
Взаимодействие с оборудованием
- Приложение сможет получать доступ к подсистеме аппаратных абстракций CyanogenMod.
+ Приложение сможет получать доступ к подсистеме аппаратных абстракций LineageOS.
Изменение будильников
Приложение сможет добавлять, изменять или удалять любые будильники.
@@ -52,7 +52,7 @@
Изменение параметров системы
Приложение сможет изменять параметры системы СМ.
- Изменение параметров безопасности системы CM
+ Изменение параметров безопасности системы Lineage
Приложение сможет изменять параметры безопасности системы. Это разрешение не используется обычными приложениями.
Управление хранилищем ПЗУ
@@ -173,10 +173,10 @@
управление настройками LiveDisplay
Приложение сможет изменять расширенные настройки экрана.
-
+
просмотр изменений аудиосеансов
Приложение сможет просматривать аудиопотоки, которые создаются или уничтожаются.
-
+
управление изменениями аудиосеансов
Приложение сможет изменять параметры аудиопотоков.
diff --git a/lineage/res/res/values-si-rLK/strings.xml b/lineage/res/res/values-si-rLK/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-si-rLK/strings.xml
+++ b/lineage/res/res/values-si-rLK/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-sk/strings.xml b/lineage/res/res/values-sk/strings.xml
index 93932723..368aacd3 100644
--- a/lineage/res/res/values-sk/strings.xml
+++ b/lineage/res/res/values-sk/strings.xml
@@ -18,7 +18,7 @@
-->
- Systém LineageOS
+ Systém LineageOS
vytvoriť vlastnú dlaždicu v paneli rýchlych nastavení
Umožňuje aplikácii vytvoriť dlaždicu v rýchlych nastaveniach.
zmeniť systémové nastavenia siete
@@ -38,7 +38,7 @@
Umožňuje aplikácii upraviť systémové profily.
používať hardvérový framework
- Umožňuje aplikácii pristupovať k hardvérovému frameworku CM.
+ Umožňuje aplikácii pristupovať k hardvérovému frameworku Lineage.
priamo zmeniť budíky
Umožňuje aplikácii pridať, upraviť alebo odstrániť všetky vaše budíky.
@@ -49,11 +49,11 @@
prístup k naplánovaným budíkom
Umožňuje aplikácii čítať vaše naplánované budíky.
- upraviť systémové nastavenia CM
- Umožňuje aplikácii zmeniť systémové nastavenia CM.
+ upraviť systémové nastavenia Lineage
+ Umožňuje aplikácii zmeniť systémové nastavenia Lineage.
- upraviť zabezpečené systémové nastavenia CM
- Umožňuje aplikácii zmeniť zabezpečené systémové nastavenia CM. Nie je určené pre normálne aplikácie.
+ upraviť zabezpečené systémové nastavenia Lineage
+ Umožňuje aplikácii zmeniť zabezpečené systémové nastavenia Lineage. Nie je určené pre normálne aplikácie.
spravovať trvalé úložisko
Umožňuje aplikácii čítanie alebo zápis vlastností, ktoré môžu pretrvávať po obnove továrenských nastavení.
@@ -173,10 +173,10 @@
spravovať nastavenia LiveDisplay
Umožní aplikácii nastavovať pokročilé nastavenia obrazovky.
-
+
pozorovať zmeny audio sedenia
Umožní aplikácii sledovať vytváranie a rušenie zvukových zdrojov.
-
+
spravovať zmeny audio relácie
Umožňuje aktualizovať zvukové relácie.
diff --git a/lineage/res/res/values-sl/strings.xml b/lineage/res/res/values-sl/strings.xml
index 3d32aa15..93bcf18e 100644
--- a/lineage/res/res/values-sl/strings.xml
+++ b/lineage/res/res/values-sl/strings.xml
@@ -18,7 +18,7 @@
-->
- Sistem LineageOS
+ Sistem LineageOS
ustvarjanje ploščice po meri na plošči za Hitre nastavitve
Dovoli aplikaciji, da objavi ploščico za Hitre nastavitve.
spreminjanje sistemskih nastavitev omrežja
@@ -38,7 +38,7 @@
Dovoli aplikaciji spreminjanje sistemskih profilov.
uporabi strojno ogrodje
- Dovoli aplikaciji dostop do strojnega ogrodja CM.
+ Dovoli aplikaciji dostop do strojnega ogrodja Lineage.
neposredno spreminjanje budilk
Dovoli aplikaciji dodajanje, spreminjanje in brisanje vseh vaših budilk.
@@ -49,11 +49,11 @@
dostop do načrtovanih budilk
Dovoli aplikaciji branje vaših načrtovanih budilk.
- spreminjanje sistemskih nastavitev CM
- Dovoli aplikaciji spreminjanje sistemskih nastavitev CM.
+ spreminjanje sistemskih nastavitev Lineage
+ Dovoli aplikaciji spreminjanje sistemskih nastavitev Lineage.
- spreminjanje varnih sistemskih nastavitev CM
- Dovoli aplikaciji spreminjanje varnih sistemskih nastavitev CM. Običajne aplikacije tega ne uporabljajo.
+ spreminjanje varnih sistemskih nastavitev Lineage
+ Dovoli aplikaciji spreminjanje varnih sistemskih nastavitev Lineage. Običajne aplikacije tega ne uporabljajo.
upravljanje vztrajne pom. naprave
Dovoli aplikaciji branje ali pisanje lastnosti, ki se ohranijo po ponastavitvi na tovarniške vrednosti.
@@ -174,10 +174,10 @@
upravljanje z nastavitvami LiveDisplay
Dovoli aplikaciji nastavljanje naprednih nastavitev zaslona.
-
+
opazovanje sprememb zvočne seje
Dovoli aplikaciji, da opazuje ustvarjanje in uničevanje zvočnih pretokov.
-
+
upravljanje sprememb zvočne seje
Dovoli aplikaciji pošiljanje posodobitev zvočnih pretokov.
diff --git a/lineage/res/res/values-sq-rAL/strings.xml b/lineage/res/res/values-sq-rAL/strings.xml
index 2e5af488..06121cd9 100644
--- a/lineage/res/res/values-sq-rAL/strings.xml
+++ b/lineage/res/res/values-sq-rAL/strings.xml
@@ -18,7 +18,7 @@
-->
- Sistemi LineageOS
+ Sistemi LineageOS
krijo një tjegull të personalizuar brenda panelit të parametrave të shpejtë
Lejo një aplikacion që të publikojë një tjegull të parametrave të shpejtë.
ndrysho parametrat e rrjetit të sistemit
@@ -37,8 +37,8 @@
akseso alarmet e caktuar
- modifiko parametrat e sistemit CM
- Lejon një aplikacion që të modifikojë parametrat e sistemit CM.
+ modifiko parametrat e sistemit Lineage
+ Lejon një aplikacion që të modifikojë parametrat e sistemit Lineage.
@@ -133,8 +133,8 @@
menaxho parametrat e LiveDisplay
Lejon një aplikacion të konfigurojë parametra të përparuar të ekranit.
-
-
+
+
Temat
Personalizo temën
diff --git a/lineage/res/res/values-sr-rCS/strings.xml b/lineage/res/res/values-sr-rCS/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-sr-rCS/strings.xml
+++ b/lineage/res/res/values-sr-rCS/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-sr/strings.xml b/lineage/res/res/values-sr/strings.xml
index 7462fb92..ec37aa19 100644
--- a/lineage/res/res/values-sr/strings.xml
+++ b/lineage/res/res/values-sr/strings.xml
@@ -18,7 +18,7 @@
-->
- Систем LineageOS
+ Систем LineageOS
прављење прилагођених плочица на панелу са брзим подешавањима
Апликација може да додаје плочице на панел са брзим подешавањима.
промена мрежних подешавања система
@@ -173,10 +173,10 @@
управљање подешавањима LiveDisplay-а
Апликација може да мења подешавања напредног приказа.
-
+
преглед измена звучних сесија
Апликација може да прегледа звучне токове који се стварају и нестају.
-
+
управљање изменама звучних сесија
Апликација може да мења параметре звучних токова.
diff --git a/lineage/res/res/values-sv/strings.xml b/lineage/res/res/values-sv/strings.xml
index b0894dd4..0e50e5a7 100644
--- a/lineage/res/res/values-sv/strings.xml
+++ b/lineage/res/res/values-sv/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS System
+ LineageOS System
skapa en anpassad bricka inom snabbinställningspanelen
Ger en app tillåtelse att publicera en snabbinställningsbricka.
ändra systeminställningar för nätverk
@@ -38,7 +38,7 @@
Tillåter att en app ändrar systemprofiler.
använda hårdvaruramverk
- Ger en app åtkomst till CyanogenMods hårdvaruramverk.
+ Ger en app åtkomst till LineageOS hårdvaruramverk.
ändra alarm direkt
Tillåter att en app lägger till, ändrar eller tar bort alla dina alarm.
@@ -49,11 +49,11 @@
åtkomst till schemalagda alarm
Tillåt att en app läser dina schemalagda alarm.
- ändra CM systeminställningar
- Tillåt att en app ändrar CM systeminställningar.
+ ändra Lineage systeminställningar
+ Tillåt att en app ändrar Lineage systeminställningar.
- ändra CM säkra systeminställningar
- Tillåt att en app ändrar CM säkra systeminställningar. Inte för användning av normala appar.
+ ändra Lineage säkra systeminställningar
+ Tillåt att en app ändrar Lineage säkra systeminställningar. Inte för användning av normala appar.
hantera beständig lagring
Tillåt att en app läser och skriver egenskaper som kan kvarstå efter en fabriksåterställning.
@@ -143,8 +143,8 @@
-
-
+
+
Teman
diff --git a/lineage/res/res/values-sw/strings.xml b/lineage/res/res/values-sw/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-sw/strings.xml
+++ b/lineage/res/res/values-sw/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-ta-rIN/strings.xml b/lineage/res/res/values-ta-rIN/strings.xml
index 518cf16a..367b0a0a 100644
--- a/lineage/res/res/values-ta-rIN/strings.xml
+++ b/lineage/res/res/values-ta-rIN/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS அமைப்பு
+ LineageOS அமைப்பு
விரைவு அமைப்புகள் பேனல் உள்ளே ஒரு தனிப்பயன் டைலை உருவாக்கு
ஒரு பயன்பாடானது ஒரு விரைவு அமைப்புகள் டைலை பிரசுரிக்க அனுமதிக்கிறது.
அமைப்பின் நெட்வொர்க் அமைப்புகளை மாற்றுதல்
@@ -38,7 +38,7 @@
ஒரு பயன்பாடானது கணினி சுயவிவரங்களை மாற்றியமைக்க அனுமதிக்கிறது.
வன்பொருள் கட்டமைப்பைப் பயன்படுத்து
- ஒரு பயன்பாடானது CM வன்பொருள் கட்டமைப்பை அணுக அனுமதிக்கிறது.
+ ஒரு பயன்பாடானது Lineage வன்பொருள் கட்டமைப்பை அணுக அனுமதிக்கிறது.
அலாரங்களை நேரடியாக மாற்று
ஒரு பயன்பாடானது உங்கள் அலாரங்கள் அனைத்தையும் சேர்க்க, மாற்றியமைக்க அல்லது நீக்க அனுமதிக்கிறது.
@@ -49,11 +49,11 @@
திட்டமிடப்பட்ட அலாரங்களை அணுகு
ஒரு பயன்பாடானது உங்கள் திட்டமிடப்பட்ட அலாரங்களை படிக்க அனுமதிக்கிறது.
- CM கணினி அமைப்புகளை மாற்றியமை
- ஒரு பயன்பாடானது CM கணினி அமைப்புகளை மாற்றியமைக்க அனுமதிக்கிறது
+ Lineage கணினி அமைப்புகளை மாற்றியமை
+ ஒரு பயன்பாடானது Lineage கணினி அமைப்புகளை மாற்றியமைக்க அனுமதிக்கிறது
- CM பாதுகாப்பான கணினி அமைப்புகளை மாற்றியமை
- ஒரு பயன்பாடானது CM பாதுகாப்பான கணினி அமைப்புகளை மாற்றியமைக்க அனுமதிக்கிறது. இயல்பான பயன்பாடுகளின் பயன்பாட்டிற்காக அல்ல
+ Lineage பாதுகாப்பான கணினி அமைப்புகளை மாற்றியமை
+ ஒரு பயன்பாடானது Lineage பாதுகாப்பான கணினி அமைப்புகளை மாற்றியமைக்க அனுமதிக்கிறது. இயல்பான பயன்பாடுகளின் பயன்பாட்டிற்காக அல்ல
விடாப்பிடியான சேமிப்பகத்தை நிர்வகி
ஒரு பயன்பாடானது ஒரு தொழிற்சாலை மீட்டமைத்தலின் மூலம் தொடர்கின்ற பண்புகளை படிக்க அல்லது எழுத அனுமதிக்கிறது
@@ -126,8 +126,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-te-rIN/strings.xml b/lineage/res/res/values-te-rIN/strings.xml
index ac5299a9..d0830bba 100644
--- a/lineage/res/res/values-te-rIN/strings.xml
+++ b/lineage/res/res/values-te-rIN/strings.xml
@@ -18,7 +18,7 @@
-->
- సయనోజెన్ మోడ్ సిస్టమ్
+ సయనోజెన్ మోడ్ సిస్టమ్
త్వరిత సెట్టింగుల ప్యానలులో అనుకూలిత టైలును సృష్టించుము
త్వరిత సెట్టింగుల టైలును ప్రచురించేందుకు ప్రోగ్రాంకి అనుమతినిస్తుంది.
సిస్టమ్ నెట్వర్క్ సెట్టింగులను మార్చుము
@@ -38,7 +38,7 @@
సిస్టమ్ ప్రొఫైళ్ళను సవరించేందుకు ప్రోగ్రాంకి అనుమతినిస్తుంది.
వినియోగదారు హార్డ్వేర్ ఫ్రేమ్వర్క్
- CM హార్డ్వేర్ ఫ్రేమ్వర్కుకు ప్రాప్తి పొందడానికి ప్రోగ్రాంకి అనుమతినిస్తుంది.
+ Lineage హార్డ్వేర్ ఫ్రేమ్వర్కుకు ప్రాప్తి పొందడానికి ప్రోగ్రాంకి అనుమతినిస్తుంది.
నేరుగా అలారంలను మార్చుము
మీ యొక్క అన్ని అలారంలను జోడించేందుకు, సవరించేందుకు లేదా తొలిగించేందుకు ప్రోగ్రాంకి అనుమతినిస్తుంది.
@@ -49,11 +49,11 @@
షెడ్యూల్ చేయబడిన అలారంలను ప్రాప్తి చేయుము
మీచే షెడ్యూల్ చేయబడిన అలారంలను చదివేందుకు ప్రోగ్రాంకి అనుమతినిస్తుంది.
- CM సిస్టమ్ సెట్టింగులను సవరించుము
- CM సిస్టమ్ సెట్టింగులను సవరించేందుకు ప్రోగ్రాంకి అనుమతినిస్తుంది.
+ Lineage సిస్టమ్ సెట్టింగులను సవరించుము
+ Lineage సిస్టమ్ సెట్టింగులను సవరించేందుకు ప్రోగ్రాంకి అనుమతినిస్తుంది.
- CM సురక్షిత సిస్టమ్ సెట్టింగులను సవరించుము
- CM సురక్షిత సిస్టమ్ సెట్టింగులను సవరించడానికి ప్రోగ్రాంకి అనుమతినిస్తుంది. సాధారణ ప్రోగ్రాంలచే ఉపయోగించబడటానికి కాదు.
+ Lineage సురక్షిత సిస్టమ్ సెట్టింగులను సవరించుము
+ Lineage సురక్షిత సిస్టమ్ సెట్టింగులను సవరించడానికి ప్రోగ్రాంకి అనుమతినిస్తుంది. సాధారణ ప్రోగ్రాంలచే ఉపయోగించబడటానికి కాదు.
నిరంతర నిల్వను నిర్వహించుము
ఫ్యాక్టరీ రీసెట్ ద్వారా కొనసాగే అవకాశం ఉన్న లక్షణాలను చదవడానికి లేదా వ్రాయడానికి ప్రోగ్రాంకి అనుమతినిస్తుంది.
@@ -126,8 +126,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-th/strings.xml b/lineage/res/res/values-th/strings.xml
index 1c543187..9d442b23 100644
--- a/lineage/res/res/values-th/strings.xml
+++ b/lineage/res/res/values-th/strings.xml
@@ -18,7 +18,7 @@
-->
- ระบบ LineageOS
+ ระบบ LineageOS
สร้างไทล์ที่กำหนดเองในแผงการตั้งค่าแบบรวดเร็ว
อนุญาตให้แอปแสดงไทล์การตั้งค่าแบบรวดเร็ว
เปลี่ยนการตั้งค่าเครือข่ายระบบ
@@ -38,7 +38,7 @@
อนุญาตให้แอปปรับแต่งโปรไฟล์ระบบ
ใช้ฮาร์ดแวร์เฟรมเวิร์ค
- อนุญาตให้แอพเข้าถึง CM ฮาร์ดแวร์เฟรมเวิร์ค
+ อนุญาตให้แอพเข้าถึง Lineage ฮาร์ดแวร์เฟรมเวิร์ค
เปลี่ยนการปลุกเตือนโดยตรง
อนุญาตให้แอปเพิ่ม ปรับแต่ง หรือลบการปลุกเตือนทั้งหมดของคุณ
@@ -49,11 +49,11 @@
การเข้าถึงการปลุกเตือนที่กำหนดไว้
อนุญาตให้แอปอ่านการปลุกเตือนที่กำหนดไว้
- ปรับแต่งการตั้งค่าระบบ CM
- อนุญาตให้แอปปรับการตั้งค่าระบบ CM
+ ปรับแต่งการตั้งค่าระบบ Lineage
+ อนุญาตให้แอปปรับการตั้งค่าระบบ Lineage
- ปรับแต่งการตั้งค่าระบบความปลอดภัยของ CM
- อนุญาตให้แอปปรับแต่งการตั้งค่าระบบความปลอดภัยของ CM ไม่ใช่เพื่อให้แอปปกตินำไปใช้
+ ปรับแต่งการตั้งค่าระบบความปลอดภัยของ Lineage
+ อนุญาตให้แอปปรับแต่งการตั้งค่าระบบความปลอดภัยของ Lineage ไม่ใช่เพื่อให้แอปปกตินำไปใช้
จัดการพื้นที่จัดเก็บถาวร
อนุญาตให้แอปอ่านหรือเขียนคุณสมบัติซึ่งอาจยังมีอยู่จากการรีเซ็ตของโรงงาน
@@ -168,10 +168,10 @@
จัดการตั้งค่า LiveDisplay
อนุญาตให้แอปตั้งค่าการแสดงผลขั้นสูง
-
+
สังเกตการเปลี่ยนแปลงเซสชันเสียง
อนุญาตให้แอปสังเกตกระแสข้อมูลเสียงที่กำลังถูกสร้างและทำลาย
-
+
รูปแบบธีม
กำหนดรูปแบบธีมเอง
diff --git a/lineage/res/res/values-tr/strings.xml b/lineage/res/res/values-tr/strings.xml
index ebd71d66..dd8464ee 100644
--- a/lineage/res/res/values-tr/strings.xml
+++ b/lineage/res/res/values-tr/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS Sistemi
+ LineageOS Sistemi
hızlı ayarlar paneli içinde özel bir kare oluştur
Uygulamalara hızlı ayarlar karesi oluşturma izni verir.
sistem ağ ayarlarını değiştir
@@ -38,7 +38,7 @@
Uygulamaya sistem profillerini değiştirme izni verir.
donanım altyapısını kullan
- Uygulamanın CM donanım altyapısına erişimine izin verir.
+ Uygulamanın Lineage donanım altyapısına erişimine izin verir.
doğrudan alarmları değiştir
Uygulamalarınıza alarm ekleme, değiştirme ya da tümünü silme izni verir.
@@ -49,11 +49,11 @@
programlı alarmlara eriş
Uygulamalara planlanan alarmları okuma izni verir.
- CM sistem ayarlarını değiştir
- Uygulamalara CM sistem ayarlarını değiştirme izni verir.
+ Lineage sistem ayarlarını değiştir
+ Uygulamalara Lineage sistem ayarlarını değiştirme izni verir.
- CM güvenli sistem ayarlarını değiştir
- Uygulamalara CM güvenli sistem ayarlarını değiştirme izni verir. Normal uygulamalar için değildir.
+ Lineage güvenli sistem ayarlarını değiştir
+ Uygulamalara Lineage güvenli sistem ayarlarını değiştirme izni verir. Normal uygulamalar için değildir.
kalıcı depolama alanını yönet
Uygulamalara fabrika ayarlarına dönüldüğünde kalıcı özellikleri okuma ve yazma izni verir.
@@ -175,10 +175,10 @@ uyguladığınız temayı değiştirmesine izin verir.
LiveDisplay ayarlarını yönet
Uygulamalara gelişmiş ekran ayarlarını düzenleme izni verir.
-
+
ses oturum değişikliklerini gözlemle
Bir uygulamanın, ses akışlarınının oluşturulma ve yok edilmesinde gözlem yapmasına izin verir.
-
+
sesli oturum değişikliklerini yönet
Bir uygulamaya ses akış güncellemeleri gönderme izni verir.
diff --git a/lineage/res/res/values-ug/strings.xml b/lineage/res/res/values-ug/strings.xml
index a4898207..aa10950e 100644
--- a/lineage/res/res/values-ug/strings.xml
+++ b/lineage/res/res/values-ug/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS سىستېمىسى
+ LineageOS سىستېمىسى
تىز تەكشەك تاختىسىدا خاسلاشتۇرۇلغان خىش قۇرۇش
ئەپنىڭ بىر تىز تەڭشەك خىشى قۇرۇشىغا رۇخسەت قىلىش.
سىستېمىنىڭ تور تەڭشىنى ئۆزگەرتىش
@@ -38,7 +38,7 @@
ئەپنىڭ سىستېما سەپلەنمىسىنى ئۆزگەرتىشىگە يول قويۇش.
قاتتىق دىتال جازىسىنى ئىشلىتىش
- ئەپنىڭ CM قاتتىق دىتال جازىسىنى زىيارەت قىلىشىغا يول قويۇش.
+ ئەپنىڭ Lineage قاتتىق دىتال جازىسىنى زىيارەت قىلىشىغا يول قويۇش.
قوڭغۇراقنى بىۋاستە ئۆزگەرتىش
ئەپنىڭ قوڭغۇراق قوشۇش ياكى ئۆچۈرۈشىگە يول قويۇش.
@@ -49,11 +49,11 @@
پىلاندىكى قوڭغۇراقنى زىيارەت قىلىش
ئەپنىڭ پىلاندىكى قوڭغۇراقنى زىيارەت قىلىشغا يول قويۇش.
- سىستېما CMنىڭ تەڭشىكىنى ئۆزگەرتىش
- سىستېما CMنىڭ تەڭشىكىنى ئۆزگەرتىشكە يول قويۇش.
+ سىستېما Lineageنىڭ تەڭشىكىنى ئۆزگەرتىش
+ سىستېما Lineageنىڭ تەڭشىكىنى ئۆزگەرتىشكە يول قويۇش.
- سىستېما CMنىڭ بىخەتەرلىك تەڭشىكىنى ئۆزگەرتىش
- ئەپنىڭ سىستېما CMنىڭ بىخەتەرلىك تەڭشىكىنى ئۆزگەرتىشگە يول قويۇش.
+ سىستېما Lineageنىڭ بىخەتەرلىك تەڭشىكىنى ئۆزگەرتىش
+ ئەپنىڭ سىستېما Lineageنىڭ بىخەتەرلىك تەڭشىكىنى ئۆزگەرتىشگە يول قويۇش.
ئەبەدى ساقلىغۇچنى باشقۇرۇش
ئەپنىڭ زاۋۇت ئەسلىگە قايتۇرغاندىن كىيىن ئۆزگەرمەيدىغان خۇسۇسىيىتىنى ئوقۇپ ۋە يېزىشىغا يول قويۇش.
@@ -138,8 +138,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-uk/strings.xml b/lineage/res/res/values-uk/strings.xml
index 085a363d..c903d844 100644
--- a/lineage/res/res/values-uk/strings.xml
+++ b/lineage/res/res/values-uk/strings.xml
@@ -18,7 +18,7 @@
-->
- Система LineageOS
+ Система LineageOS
Створити власну плитку для панелі швидких налаштувань
Дозволяє додатку створити плитку швидких налаштувань.
змінювати налаштування мережі системи
@@ -38,7 +38,7 @@
Дозволяє додатку змінювати системні профілі.
Взаємодія із обладнанням
- Додаток зможе отримувати доступ до підсистеми апаратних абстракцій CyanogenMod.
+ Додаток зможе отримувати доступ до підсистеми апаратних абстракцій LineageOS.
безпосередньо змінювати будильники
Дозволяє програмі додавати, змінювати або видаляти налаштування сигналів будильника.
@@ -49,8 +49,8 @@
доступ до запланованих будильників
Дозволяє програмі читати заплановані сигнали будильника.
- змінювати налаштування CM
- Дозволяє додатку змінювати системні налаштування CM.
+ змінювати налаштування Lineage
+ Дозволяє додатку змінювати системні налаштування Lineage.
змінювати налаштування безпеки
Дозволяє додатку змінювати системні налаштування безпеки. Непотрібно звичайним додаткам.
@@ -174,10 +174,10 @@
керування налаштуваннями LiveDisplay
Дозволяє додатку керувати розширеними налаштуваннями дисплея.
-
+
спостерігати за змінами аудіо сесії
Дозволяє додатку переглядати аудіопотоки, які створюються або знищуються.
-
+
керувати змінами аудіо сесії
Дозволяє додатку змінювати параметри аудіопотоків.
diff --git a/lineage/res/res/values-ur-rPK/strings.xml b/lineage/res/res/values-ur-rPK/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-ur-rPK/strings.xml
+++ b/lineage/res/res/values-ur-rPK/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-uz-rUZ/strings.xml b/lineage/res/res/values-uz-rUZ/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-uz-rUZ/strings.xml
+++ b/lineage/res/res/values-uz-rUZ/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-vi/strings.xml b/lineage/res/res/values-vi/strings.xml
index 683149a0..ef798234 100644
--- a/lineage/res/res/values-vi/strings.xml
+++ b/lineage/res/res/values-vi/strings.xml
@@ -18,7 +18,7 @@
-->
- Hệ thống LineageOS
+ Hệ thống LineageOS
tạo một ô tùy chỉnh trong bảng cài đặt nhanh
Cho phép một ứng dụng taọ ô mới trong cài đặt nhanh.
thay đổi cài đặt hệ thống mạng
@@ -38,7 +38,7 @@
Cho phép một ứng dụng sửa đổi cấu hình hệ thống.
dùng khung làm việc phần cứng
- Cho phép ứng dụng truy cập khung làm việc phần cứng CM.
+ Cho phép ứng dụng truy cập khung làm việc phần cứng Lineage.
trực tiếp thay đổi báo thức
Cho phép ứng dụng thêm, chỉnh sửa hoặc xóa tất cả các báo thức của bạn.
@@ -49,11 +49,11 @@
truy cập các báo thức đã lên lịch
Cho phép ứng dụng đọc các báo thức đã lên lịch của bạn.
- sửa đổi cài đặt hệ thống CM
- Cho phép một ứng dụng sửa đổi cài đặt hệ thống CM.
+ sửa đổi cài đặt hệ thống Lineage
+ Cho phép một ứng dụng sửa đổi cài đặt hệ thống Lineage.
- sửa đổi cài đặt hệ thống an toàn CM
- Cho phép ứng dụng sửa đổi cài đặt hệ thống an toàn CM. Không cho ứng dụng bình thường sử dụng.
+ sửa đổi cài đặt hệ thống an toàn Lineage
+ Cho phép ứng dụng sửa đổi cài đặt hệ thống an toàn Lineage. Không cho ứng dụng bình thường sử dụng.
quản lý bộ lưu trữ vĩnh viễn
Cho phép ứng dụng đọc hoặc ghi thuộc tính có thể vẫn tồn tại sau khi đặt lại mặc định nhà sản xuất.
@@ -173,10 +173,10 @@
quản lý cài đặt LiveDisplay
Cho phép ứng dụng thiết lập cấu hình cài đặt hiển thị nâng cao.
-
+
quan sát các thay đổi về phiên âm thanh
Cho phép ứng dụng quan sát dòng âm thanh được tạo và bị hủy.
-
+
quản lý thay đổi âm thanh phiên
Cho phép một ứng dụng gửi thông tin các cập nhật stream âm thanh.
diff --git a/lineage/res/res/values-zh-rCN/strings.xml b/lineage/res/res/values-zh-rCN/strings.xml
index 73631091..4c614c6e 100644
--- a/lineage/res/res/values-zh-rCN/strings.xml
+++ b/lineage/res/res/values-zh-rCN/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS 系统
+ LineageOS 系统
在快速设置面板中创建一个自定义瓷块
允许应用发布一个快速设置瓷片。
更改系统网络设置
@@ -38,7 +38,7 @@
允许应用修改系统配置文件。
使用硬件框架
- 允许应用访问 CM 硬件框架。
+ 允许应用访问 Lineage 硬件框架。
直接修改闹钟
允许应用添加、修改或删除您的闹钟。
@@ -49,11 +49,11 @@
访问已计划的闹钟
允许应用读取您已计划的闹钟。
- 修改 CM 系统设置
- 允许应用修改 CM 系统设置。
+ 修改 Lineage 系统设置
+ 允许应用修改 Lineage 系统设置。
- 修改 CM 系统安全设置
- 允许应用修改 CM 系统安全设置。不供正常应用使用。
+ 修改 Lineage 系统安全设置
+ 允许应用修改 Lineage 系统安全设置。不供正常应用使用。
管理永久存储
允许应用读取或写入出厂设置后仍可保持的属性。
@@ -173,10 +173,10 @@
管理 LiveDisplay 设置
允许应用配置高级显示设置。
-
+
观察音频会话变动
允许应用观察音频流的创建和销毁。
-
+
管理音频会话变动
允许应用发送音频流更新。
diff --git a/lineage/res/res/values-zh-rHK/strings.xml b/lineage/res/res/values-zh-rHK/strings.xml
index 6109e992..628ae978 100644
--- a/lineage/res/res/values-zh-rHK/strings.xml
+++ b/lineage/res/res/values-zh-rHK/strings.xml
@@ -24,7 +24,7 @@
使用硬件框架
- 允許應用程式存取 CM 硬件框架。
+ 允許應用程式存取 Lineage 硬件框架。
@@ -66,8 +66,8 @@
-
-
+
+
diff --git a/lineage/res/res/values-zh-rTW/strings.xml b/lineage/res/res/values-zh-rTW/strings.xml
index d5487ab2..01888939 100644
--- a/lineage/res/res/values-zh-rTW/strings.xml
+++ b/lineage/res/res/values-zh-rTW/strings.xml
@@ -18,7 +18,7 @@
-->
- LineageOS 系統
+ LineageOS 系統
於快速設定面板中建立自訂標題
允許應用程式發佈快速設定圖塊
變更系統網路設定
@@ -38,7 +38,7 @@
允許應用程式修改系統設定檔。
使用硬體框架
- 允許應用程式存取 CM 硬體框架。
+ 允許應用程式存取 Lineage 硬體框架。
直接修改鬧鐘
允許應用程式增加、修改或刪除您的鬧鐘。
@@ -49,11 +49,11 @@
讀取已設定的鬧鐘
允許應用程式讀取已設定的鬧鐘。
- 修改 CM 系統設定
- 允許應用程式更改 CM 系統設定
+ 修改 Lineage 系統設定
+ 允許應用程式更改 Lineage 系統設定
- 修改 CM 系統安全設定
- 允許應用程式修改 CM 安全系統設定,非供一般應用程式使用。
+ 修改 Lineage 系統安全設定
+ 允許應用程式修改 Lineage 安全系統設定,非供一般應用程式使用。
管理永久儲存空間
允許應用程式讀/寫一些重設後仍可保存的屬性。
@@ -174,10 +174,10 @@
管理 LiveDisplay 設定
允許應用程式設定進階顯示配置
-
+
觀察音訊會話變動
允許應用程式觀察音訊串流的建立和銷毀。
-
+
管理音訊會話變動
允許應用程式傳送音訊串流更新。
diff --git a/lineage/res/res/values-zu/strings.xml b/lineage/res/res/values-zu/strings.xml
index 70665758..ec4d0c1a 100644
--- a/lineage/res/res/values-zu/strings.xml
+++ b/lineage/res/res/values-zu/strings.xml
@@ -62,8 +62,8 @@
-
-
+
+
diff --git a/lineage/res/res/values/config.xml b/lineage/res/res/values/config.xml
index a4429ce4..9bffb896 100644
--- a/lineage/res/res/values/config.xml
+++ b/lineage/res/res/values/config.xml
@@ -114,29 +114,29 @@
-
-
- - org.cyanogenmod.platform.internal.CMStatusBarManagerService
- - org.cyanogenmod.platform.internal.ProfileManagerService
- - org.cyanogenmod.platform.internal.CMTelephonyManagerService
- - org.cyanogenmod.platform.internal.CMHardwareService
- - org.cyanogenmod.platform.internal.PerformanceManagerService
- - org.cyanogenmod.platform.internal.WeatherManagerServiceBroker
- - org.cyanogenmod.platform.internal.display.LiveDisplayService
- - org.cyanogenmod.platform.internal.CMAudioServiceBroker
+
+ - org.lineageos.platform.internal.LineageStatusBarManagerService
+ - org.lineageos.platform.internal.ProfileManagerService
+ - org.lineageos.platform.internal.LineageTelephonyManagerService
+ - org.lineageos.platform.internal.LineageHardwareService
+ - org.lineageos.platform.internal.PerformanceManagerService
+ - org.lineageos.platform.internal.WeatherManagerServiceBroker
+ - org.lineageos.platform.internal.display.LiveDisplayService
+ - org.lineageos.platform.internal.LineageAudioServiceBroker
-
- org.cyanogenmod.platform.internal.CMSystemServer
+
+ org.lineageos.platform.internal.LineageSystemServer
- - /system/priv-app/CMParts/CMParts.apk
+ - /system/priv-app/LineageParts/LineageParts.apk
- - org.cyanogenmod.cmparts.gestures.KeyHandler
+ - org.lineageos.lineageparts.gestures.KeyHandler
diff --git a/lineage/res/res/values/strings.xml b/lineage/res/res/values/strings.xml
index d4a6f7d3..b3304f47 100644
--- a/lineage/res/res/values/strings.xml
+++ b/lineage/res/res/values/strings.xml
@@ -17,7 +17,7 @@
-->
- LineageOS System
+ LineageOS System
create a custom tile within quick settings panel
Allows an app to publish a quick settings tile.
@@ -45,7 +45,7 @@
use hardware framework
- Allows an app access to the CM hardware framework.
+ Allows an app access to the Lineage hardware framework.
directly change alarms
@@ -60,12 +60,12 @@
Allows an app to read your scheduled alarms.
- modify CM system settings
- Allows an app to modify CM system settings.
+ modify Lineage system settings
+ Allows an app to modify Lineage system settings.
- modify CM secure system settings
- Allows an app to modify CM secure system settings. Not for use by normal apps.
+ modify Lineage secure system settings
+ Allows an app to modify Lineage secure system settings. Not for use by normal apps.
manage persistent storage
@@ -212,11 +212,11 @@
manage LiveDisplay settings
Allows an app to configure advanced display settings.
-
+
observe audio session changes
Allows an app to observe audio streams being created and destroyed.
-
+
manage audio session changes
Allows an app to send audio stream updates.
diff --git a/lineage/res/res/values/symbols.xml b/lineage/res/res/values/symbols.xml
index 888e2e3f..cd13a524 100644
--- a/lineage/res/res/values/symbols.xml
+++ b/lineage/res/res/values/symbols.xml
@@ -16,7 +16,7 @@
limitations under the License.
-->
-
+
@@ -111,15 +111,15 @@
-
-
+
+
-
+
diff --git a/org.lineageos.platform.xml b/org.lineageos.platform.xml
index b85d06a4..6a805376 100644
--- a/org.lineageos.platform.xml
+++ b/org.lineageos.platform.xml
@@ -15,6 +15,6 @@
-->
-
+
diff --git a/packages/LineageSettingsProvider/Android.mk b/packages/LineageSettingsProvider/Android.mk
index 5891aae3..0b1151e4 100644
--- a/packages/LineageSettingsProvider/Android.mk
+++ b/packages/LineageSettingsProvider/Android.mk
@@ -23,12 +23,12 @@ res_dir := res
LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dir))
LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dir))
-LOCAL_PACKAGE_NAME := CMSettingsProvider
+LOCAL_PACKAGE_NAME := LineageSettingsProvider
LOCAL_CERTIFICATE := platform
LOCAL_PRIVILEGED_MODULE := true
LOCAL_STATIC_JAVA_LIBRARIES := \
- org.cyanogenmod.platform.internal
+ org.lineageos.platform.internal
include $(BUILD_PACKAGE)
diff --git a/packages/LineageSettingsProvider/AndroidManifest.xml b/packages/LineageSettingsProvider/AndroidManifest.xml
index 49fe2536..e6301013 100644
--- a/packages/LineageSettingsProvider/AndroidManifest.xml
+++ b/packages/LineageSettingsProvider/AndroidManifest.xml
@@ -14,13 +14,13 @@
limitations under the License.
-->
+ for LineageSettings on user starting -->
@@ -33,11 +33,11 @@
android:defaultToDeviceProtectedStorage="true"
android:directBootAware="true">
-
diff --git a/packages/LineageSettingsProvider/res/values-af/strings.xml b/packages/LineageSettingsProvider/res/values-af/strings.xml
index 9327a7b5..b79df96e 100644
--- a/packages/LineageSettingsProvider/res/values-af/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-af/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Berging van CM instellings
+ Berging van Lineage instellings
diff --git a/packages/LineageSettingsProvider/res/values-ar/strings.xml b/packages/LineageSettingsProvider/res/values-ar/strings.xml
index f2dd6fd4..93013401 100644
--- a/packages/LineageSettingsProvider/res/values-ar/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-ar/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- إعدادت تخزين CM
+ إعدادت تخزين Lineage
diff --git a/packages/LineageSettingsProvider/res/values-as-rIN/strings.xml b/packages/LineageSettingsProvider/res/values-as-rIN/strings.xml
index 7279ce66..d51f0068 100644
--- a/packages/LineageSettingsProvider/res/values-as-rIN/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-as-rIN/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM ছেটিংচ ষ্ট\'ৰেজ
+ Lineage ছেটিংচ ষ্ট\'ৰেজ
diff --git a/packages/LineageSettingsProvider/res/values-ast-rES/strings.xml b/packages/LineageSettingsProvider/res/values-ast-rES/strings.xml
index af30308a..cb4c4ee1 100644
--- a/packages/LineageSettingsProvider/res/values-ast-rES/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-ast-rES/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Almacenamientu d\'axustes CM
+ Almacenamientu d\'axustes Lineage
diff --git a/packages/LineageSettingsProvider/res/values-az-rAZ/strings.xml b/packages/LineageSettingsProvider/res/values-az-rAZ/strings.xml
index 785f289e..1a6045d8 100644
--- a/packages/LineageSettingsProvider/res/values-az-rAZ/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-az-rAZ/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM Tənzimləmə Yaddaşı
+ Lineage Tənzimləmə Yaddaşı
diff --git a/packages/LineageSettingsProvider/res/values-be-rBY/strings.xml b/packages/LineageSettingsProvider/res/values-be-rBY/strings.xml
index 00e29afa..9dd27484 100644
--- a/packages/LineageSettingsProvider/res/values-be-rBY/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-be-rBY/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Налады захоўвання CM
+ Налады захоўвання Lineage
diff --git a/packages/LineageSettingsProvider/res/values-be/strings.xml b/packages/LineageSettingsProvider/res/values-be/strings.xml
index 00e29afa..9dd27484 100644
--- a/packages/LineageSettingsProvider/res/values-be/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-be/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Налады захоўвання CM
+ Налады захоўвання Lineage
diff --git a/packages/LineageSettingsProvider/res/values-bg/strings.xml b/packages/LineageSettingsProvider/res/values-bg/strings.xml
index 942252bc..4e565e63 100644
--- a/packages/LineageSettingsProvider/res/values-bg/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-bg/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Хранилище на CM настройки
+ Хранилище на Lineage настройки
diff --git a/packages/LineageSettingsProvider/res/values-ca/strings.xml b/packages/LineageSettingsProvider/res/values-ca/strings.xml
index a66d1bbd..54309407 100644
--- a/packages/LineageSettingsProvider/res/values-ca/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-ca/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Configuració d\'emmagatzematge de CM
+ Configuració d\'emmagatzematge de Lineage
diff --git a/packages/LineageSettingsProvider/res/values-cs/strings.xml b/packages/LineageSettingsProvider/res/values-cs/strings.xml
index bf432b54..466ee763 100644
--- a/packages/LineageSettingsProvider/res/values-cs/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-cs/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Nastavení úložiště CM
+ Nastavení úložiště Lineage
diff --git a/packages/LineageSettingsProvider/res/values-da/strings.xml b/packages/LineageSettingsProvider/res/values-da/strings.xml
index fb45bc21..6c43e248 100644
--- a/packages/LineageSettingsProvider/res/values-da/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-da/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM Lagerindstillinger
+ Lineage Lagerindstillinger
diff --git a/packages/LineageSettingsProvider/res/values-de/strings.xml b/packages/LineageSettingsProvider/res/values-de/strings.xml
index 113b341e..c2fff7ff 100644
--- a/packages/LineageSettingsProvider/res/values-de/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-de/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM-Einstellungsspeicher
+ Lineage-Einstellungsspeicher
diff --git a/packages/LineageSettingsProvider/res/values-el/strings.xml b/packages/LineageSettingsProvider/res/values-el/strings.xml
index c10a2d7c..ab75af8b 100644
--- a/packages/LineageSettingsProvider/res/values-el/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-el/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Αποθηκευτικός χώρος ρυθμίσεων CM
+ Αποθηκευτικός χώρος ρυθμίσεων Lineage
diff --git a/packages/LineageSettingsProvider/res/values-en-rAU/strings.xml b/packages/LineageSettingsProvider/res/values-en-rAU/strings.xml
index 3cbb4017..684528bb 100644
--- a/packages/LineageSettingsProvider/res/values-en-rAU/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-en-rAU/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM Settings Storage
+ Lineage Settings Storage
diff --git a/packages/LineageSettingsProvider/res/values-en-rGB/strings.xml b/packages/LineageSettingsProvider/res/values-en-rGB/strings.xml
index 3cbb4017..684528bb 100644
--- a/packages/LineageSettingsProvider/res/values-en-rGB/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-en-rGB/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM Settings Storage
+ Lineage Settings Storage
diff --git a/packages/LineageSettingsProvider/res/values-en-rIN/strings.xml b/packages/LineageSettingsProvider/res/values-en-rIN/strings.xml
index 3cbb4017..684528bb 100644
--- a/packages/LineageSettingsProvider/res/values-en-rIN/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-en-rIN/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM Settings Storage
+ Lineage Settings Storage
diff --git a/packages/LineageSettingsProvider/res/values-es-rUS/strings.xml b/packages/LineageSettingsProvider/res/values-es-rUS/strings.xml
index fd02142a..430dcc6b 100644
--- a/packages/LineageSettingsProvider/res/values-es-rUS/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-es-rUS/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Almacenamiento de la configuración de CM
+ Almacenamiento de la configuración de Lineage
diff --git a/packages/LineageSettingsProvider/res/values-es/strings.xml b/packages/LineageSettingsProvider/res/values-es/strings.xml
index fd02142a..430dcc6b 100644
--- a/packages/LineageSettingsProvider/res/values-es/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-es/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Almacenamiento de la configuración de CM
+ Almacenamiento de la configuración de Lineage
diff --git a/packages/LineageSettingsProvider/res/values-et-rEE/strings.xml b/packages/LineageSettingsProvider/res/values-et-rEE/strings.xml
index 1ff943ec..e3317f2e 100644
--- a/packages/LineageSettingsProvider/res/values-et-rEE/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-et-rEE/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM sätete salvestusruum
+ Lineage sätete salvestusruum
diff --git a/packages/LineageSettingsProvider/res/values-eu-rES/strings.xml b/packages/LineageSettingsProvider/res/values-eu-rES/strings.xml
index 8776039e..32f3ffa8 100644
--- a/packages/LineageSettingsProvider/res/values-eu-rES/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-eu-rES/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM Ezarpenen biltegia
+ Lineage Ezarpenen biltegia
diff --git a/packages/LineageSettingsProvider/res/values-fa/strings.xml b/packages/LineageSettingsProvider/res/values-fa/strings.xml
index 3a75c999..0f64e2e3 100644
--- a/packages/LineageSettingsProvider/res/values-fa/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-fa/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- حافظه تنظیمات CM
+ حافظه تنظیمات Lineage
diff --git a/packages/LineageSettingsProvider/res/values-fi/strings.xml b/packages/LineageSettingsProvider/res/values-fi/strings.xml
index 11fb47b0..0eed9d9c 100644
--- a/packages/LineageSettingsProvider/res/values-fi/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-fi/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM Asetusten tallennustila
+ Lineage Asetusten tallennustila
diff --git a/packages/LineageSettingsProvider/res/values-fr/strings.xml b/packages/LineageSettingsProvider/res/values-fr/strings.xml
index 37ba56e9..1ce0af62 100644
--- a/packages/LineageSettingsProvider/res/values-fr/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-fr/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Stockage des paramètres CM
+ Stockage des paramètres Lineage
diff --git a/packages/LineageSettingsProvider/res/values-gl-rES/strings.xml b/packages/LineageSettingsProvider/res/values-gl-rES/strings.xml
index 5aefc91d..d4e200a0 100644
--- a/packages/LineageSettingsProvider/res/values-gl-rES/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-gl-rES/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Almacenamento dos axustes de CM
+ Almacenamento dos axustes de Lineage
diff --git a/packages/LineageSettingsProvider/res/values-gu-rIN/strings.xml b/packages/LineageSettingsProvider/res/values-gu-rIN/strings.xml
index c1dbdd96..45e0684a 100644
--- a/packages/LineageSettingsProvider/res/values-gu-rIN/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-gu-rIN/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM સેટિંગ્સ અને સંગ્રહ
+ Lineage સેટિંગ્સ અને સંગ્રહ
diff --git a/packages/LineageSettingsProvider/res/values-hr/strings.xml b/packages/LineageSettingsProvider/res/values-hr/strings.xml
index 695941bd..aa3157cf 100644
--- a/packages/LineageSettingsProvider/res/values-hr/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-hr/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM Memorija Postavki
+ Lineage Memorija Postavki
diff --git a/packages/LineageSettingsProvider/res/values-hu/strings.xml b/packages/LineageSettingsProvider/res/values-hu/strings.xml
index decedd6f..aa456fb9 100644
--- a/packages/LineageSettingsProvider/res/values-hu/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-hu/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM Beállítások Tároló
+ Lineage Beállítások Tároló
diff --git a/packages/LineageSettingsProvider/res/values-in/strings.xml b/packages/LineageSettingsProvider/res/values-in/strings.xml
index 03d78426..1def4d28 100644
--- a/packages/LineageSettingsProvider/res/values-in/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-in/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Penyimpanan Pengaturan CM
+ Penyimpanan Pengaturan Lineage
diff --git a/packages/LineageSettingsProvider/res/values-it/strings.xml b/packages/LineageSettingsProvider/res/values-it/strings.xml
index 4337046c..a4a6932c 100644
--- a/packages/LineageSettingsProvider/res/values-it/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-it/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Impostazioni archiviazione CM
+ Impostazioni archiviazione Lineage
diff --git a/packages/LineageSettingsProvider/res/values-iw/strings.xml b/packages/LineageSettingsProvider/res/values-iw/strings.xml
index 2d0984de..183c7db0 100644
--- a/packages/LineageSettingsProvider/res/values-iw/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-iw/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- הגדרות אחסון CM
+ הגדרות אחסון Lineage
diff --git a/packages/LineageSettingsProvider/res/values-kn-rIN/strings.xml b/packages/LineageSettingsProvider/res/values-kn-rIN/strings.xml
index abf6b804..77b5d465 100644
--- a/packages/LineageSettingsProvider/res/values-kn-rIN/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-kn-rIN/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM ಸೆಟ್ಟಿಂಗ್ಸ್ ಸಂಗ್ರಹಣೆ
+ Lineage ಸೆಟ್ಟಿಂಗ್ಸ್ ಸಂಗ್ರಹಣೆ
diff --git a/packages/LineageSettingsProvider/res/values-ko/strings.xml b/packages/LineageSettingsProvider/res/values-ko/strings.xml
index 53f4f009..f6dddc9a 100644
--- a/packages/LineageSettingsProvider/res/values-ko/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-ko/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM 설정 저장 공간
+ Lineage 설정 저장 공간
diff --git a/packages/LineageSettingsProvider/res/values-lb/strings.xml b/packages/LineageSettingsProvider/res/values-lb/strings.xml
index f5c5ca21..8532d023 100644
--- a/packages/LineageSettingsProvider/res/values-lb/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-lb/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM-Astellungsspäicher
+ Lineage-Astellungsspäicher
diff --git a/packages/LineageSettingsProvider/res/values-lt/strings.xml b/packages/LineageSettingsProvider/res/values-lt/strings.xml
index bf4a566a..6bfe49e8 100644
--- a/packages/LineageSettingsProvider/res/values-lt/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-lt/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM nustatymų saugykla
+ Lineage nustatymų saugykla
diff --git a/packages/LineageSettingsProvider/res/values-lv/strings.xml b/packages/LineageSettingsProvider/res/values-lv/strings.xml
index e0dba2b1..05521a6d 100644
--- a/packages/LineageSettingsProvider/res/values-lv/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-lv/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM iestatījumu krātuve
+ Lineage iestatījumu krātuve
diff --git a/packages/LineageSettingsProvider/res/values-mr-rIN/strings.xml b/packages/LineageSettingsProvider/res/values-mr-rIN/strings.xml
index 1e05a8ea..dd2fed99 100644
--- a/packages/LineageSettingsProvider/res/values-mr-rIN/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-mr-rIN/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM सेटिंग्ज संचयन
+ Lineage सेटिंग्ज संचयन
diff --git a/packages/LineageSettingsProvider/res/values-nb/strings.xml b/packages/LineageSettingsProvider/res/values-nb/strings.xml
index dd0ae1fb..a8ada140 100644
--- a/packages/LineageSettingsProvider/res/values-nb/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-nb/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM Lagringsinnstillinger
+ Lineage Lagringsinnstillinger
diff --git a/packages/LineageSettingsProvider/res/values-nl/strings.xml b/packages/LineageSettingsProvider/res/values-nl/strings.xml
index c1207aa7..47f09d36 100644
--- a/packages/LineageSettingsProvider/res/values-nl/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-nl/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM-instellingenopslag
+ Lineage-instellingenopslag
diff --git a/packages/LineageSettingsProvider/res/values-or-rIN/strings.xml b/packages/LineageSettingsProvider/res/values-or-rIN/strings.xml
index 5738ce41..6f45b7e5 100644
--- a/packages/LineageSettingsProvider/res/values-or-rIN/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-or-rIN/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM ସେଟିଂ ଷ୍ଟୋରେଜ୍
+ Lineage ସେଟିଂ ଷ୍ଟୋରେଜ୍
diff --git a/packages/LineageSettingsProvider/res/values-pl/strings.xml b/packages/LineageSettingsProvider/res/values-pl/strings.xml
index 386bcdc6..31f1f29f 100644
--- a/packages/LineageSettingsProvider/res/values-pl/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-pl/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Ustawienia Pamięci CM
+ Ustawienia Pamięci Lineage
diff --git a/packages/LineageSettingsProvider/res/values-pt-rBR/strings.xml b/packages/LineageSettingsProvider/res/values-pt-rBR/strings.xml
index dbad7b33..a73f5925 100644
--- a/packages/LineageSettingsProvider/res/values-pt-rBR/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-pt-rBR/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Configurações de Armazenamento CM
+ Configurações de Armazenamento Lineage
diff --git a/packages/LineageSettingsProvider/res/values-pt-rPT/strings.xml b/packages/LineageSettingsProvider/res/values-pt-rPT/strings.xml
index 1ece5299..1e92fcc6 100644
--- a/packages/LineageSettingsProvider/res/values-pt-rPT/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-pt-rPT/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Definições de armazenamento CM
+ Definições de armazenamento Lineage
diff --git a/packages/LineageSettingsProvider/res/values-ro/strings.xml b/packages/LineageSettingsProvider/res/values-ro/strings.xml
index 57e091c1..b3884aa8 100644
--- a/packages/LineageSettingsProvider/res/values-ro/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-ro/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Stocare setări CM
+ Stocare setări Lineage
diff --git a/packages/LineageSettingsProvider/res/values-ru/strings.xml b/packages/LineageSettingsProvider/res/values-ru/strings.xml
index dc8a2283..d24bb92c 100644
--- a/packages/LineageSettingsProvider/res/values-ru/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-ru/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Хранилище настроек CM
+ Хранилище настроек Lineage
diff --git a/packages/LineageSettingsProvider/res/values-sk/strings.xml b/packages/LineageSettingsProvider/res/values-sk/strings.xml
index 9badfff2..914b848d 100644
--- a/packages/LineageSettingsProvider/res/values-sk/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-sk/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Úložisko nastavení CM
+ Úložisko nastavení Lineage
diff --git a/packages/LineageSettingsProvider/res/values-sl/strings.xml b/packages/LineageSettingsProvider/res/values-sl/strings.xml
index 2ef70c34..c2ff9c15 100644
--- a/packages/LineageSettingsProvider/res/values-sl/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-sl/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Shranjevanje nastavitev CM
+ Shranjevanje nastavitev Lineage
diff --git a/packages/LineageSettingsProvider/res/values-sq-rAL/strings.xml b/packages/LineageSettingsProvider/res/values-sq-rAL/strings.xml
index c6fd42b6..75ac5a47 100644
--- a/packages/LineageSettingsProvider/res/values-sq-rAL/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-sq-rAL/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Memoria e Parametrave të CM
+ Memoria e Parametrave të Lineage
diff --git a/packages/LineageSettingsProvider/res/values-sr/strings.xml b/packages/LineageSettingsProvider/res/values-sr/strings.xml
index 5ad547e6..bc3622fb 100644
--- a/packages/LineageSettingsProvider/res/values-sr/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-sr/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Складиште CM поставки
+ Складиште Lineage поставки
diff --git a/packages/LineageSettingsProvider/res/values-sv/strings.xml b/packages/LineageSettingsProvider/res/values-sv/strings.xml
index e2594945..d18cb7ec 100644
--- a/packages/LineageSettingsProvider/res/values-sv/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-sv/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Lagring för CM-inställningar
+ Lagring för Lineage-inställningar
diff --git a/packages/LineageSettingsProvider/res/values-ta-rIN/strings.xml b/packages/LineageSettingsProvider/res/values-ta-rIN/strings.xml
index 33b1b1a8..f7b6b4aa 100644
--- a/packages/LineageSettingsProvider/res/values-ta-rIN/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-ta-rIN/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM அமைப்புகள் சேமிப்பகம்
+ Lineage அமைப்புகள் சேமிப்பகம்
diff --git a/packages/LineageSettingsProvider/res/values-te-rIN/strings.xml b/packages/LineageSettingsProvider/res/values-te-rIN/strings.xml
index 6402dae8..9143653c 100644
--- a/packages/LineageSettingsProvider/res/values-te-rIN/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-te-rIN/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM సెట్టింగ్ ల నిల్వ
+ Lineage సెట్టింగ్ ల నిల్వ
diff --git a/packages/LineageSettingsProvider/res/values-th/strings.xml b/packages/LineageSettingsProvider/res/values-th/strings.xml
index 0ac28dc7..43a77f00 100644
--- a/packages/LineageSettingsProvider/res/values-th/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-th/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- พื้นที่การจัดเก็บการตั้งค่า CM
+ พื้นที่การจัดเก็บการตั้งค่า Lineage
diff --git a/packages/LineageSettingsProvider/res/values-tr/strings.xml b/packages/LineageSettingsProvider/res/values-tr/strings.xml
index 41c99c39..b81d13fe 100644
--- a/packages/LineageSettingsProvider/res/values-tr/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-tr/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM Ayar Deposu
+ Lineage Ayar Deposu
diff --git a/packages/LineageSettingsProvider/res/values-ug/strings.xml b/packages/LineageSettingsProvider/res/values-ug/strings.xml
index 4448f313..8610d555 100644
--- a/packages/LineageSettingsProvider/res/values-ug/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-ug/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM تەڭشەكلەر ساقلىغۇچى
+ Lineage تەڭشەكلەر ساقلىغۇچى
diff --git a/packages/LineageSettingsProvider/res/values-uk/strings.xml b/packages/LineageSettingsProvider/res/values-uk/strings.xml
index e6b1175e..74f31a54 100644
--- a/packages/LineageSettingsProvider/res/values-uk/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-uk/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- Налаштування CM
+ Налаштування Lineage
diff --git a/packages/LineageSettingsProvider/res/values-vi/strings.xml b/packages/LineageSettingsProvider/res/values-vi/strings.xml
index 3cbb4017..684528bb 100644
--- a/packages/LineageSettingsProvider/res/values-vi/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-vi/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM Settings Storage
+ Lineage Settings Storage
diff --git a/packages/LineageSettingsProvider/res/values-zh-rCN/strings.xml b/packages/LineageSettingsProvider/res/values-zh-rCN/strings.xml
index 68c45ab6..1781aa35 100644
--- a/packages/LineageSettingsProvider/res/values-zh-rCN/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-zh-rCN/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM 设置存储
+ Lineage 设置存储
diff --git a/packages/LineageSettingsProvider/res/values-zh-rTW/strings.xml b/packages/LineageSettingsProvider/res/values-zh-rTW/strings.xml
index afc09a42..f5dd0b36 100644
--- a/packages/LineageSettingsProvider/res/values-zh-rTW/strings.xml
+++ b/packages/LineageSettingsProvider/res/values-zh-rTW/strings.xml
@@ -16,5 +16,5 @@
limitations under the License.
-->
- CM 設定儲存空間
+ Lineage 設定儲存空間
diff --git a/packages/LineageSettingsProvider/res/values/defaults.xml b/packages/LineageSettingsProvider/res/values/defaults.xml
index 8e558b4b..f9eebf9c 100644
--- a/packages/LineageSettingsProvider/res/values/defaults.xml
+++ b/packages/LineageSettingsProvider/res/values/defaults.xml
@@ -17,41 +17,41 @@
-
0
-
+
true
-
+
true
-
+
-
+
-
+
0
-
-
+
false
-
2
-
+
true
-
+
true
-
+
1
-
+
1
-
+
1
-
%1$s
-
1
-
+
false
-
+
false
-
+
content://settings/system/notification_sound
- com.android.settings|com.android.launcher3|com.cyanogenmod.trebuchet|org.cyanogenmod.cmparts
+ com.android.settings|com.android.launcher3|org.lineageos.trebuchet|org.lineageos.lineageparts
2
diff --git a/packages/LineageSettingsProvider/res/values/strings.xml b/packages/LineageSettingsProvider/res/values/strings.xml
index 293cb2bc..9ef266df 100644
--- a/packages/LineageSettingsProvider/res/values/strings.xml
+++ b/packages/LineageSettingsProvider/res/values/strings.xml
@@ -15,5 +15,5 @@
limitations under the License.
-->
- CM Settings Storage
+ Lineage Settings Storage
diff --git a/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageDatabaseHelper.java b/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageDatabaseHelper.java
index c7076b07..52d5a5fb 100644
--- a/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageDatabaseHelper.java
+++ b/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageDatabaseHelper.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.cmsettings;
+package org.lineageos.lineagesettings;
import android.content.ContentValues;
import android.content.Context;
@@ -34,22 +34,22 @@ import android.provider.Settings;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.util.Log;
-import cyanogenmod.providers.CMSettings;
+import lineageos.providers.LineageSettings;
import java.io.File;
/**
- * The CMDatabaseHelper allows creation of a database to store CM specific settings for a user
+ * The LineageDatabaseHelper allows creation of a database to store Lineage specific settings for a user
* in System, Secure, and Global tables.
*/
-public class CMDatabaseHelper extends SQLiteOpenHelper{
- private static final String TAG = "CMDatabaseHelper";
+public class LineageDatabaseHelper extends SQLiteOpenHelper{
+ private static final String TAG = "LineageDatabaseHelper";
private static final boolean LOCAL_LOGV = false;
- private static final String DATABASE_NAME = "cmsettings.db";
+ private static final String DATABASE_NAME = "lineagesettings.db";
private static final int DATABASE_VERSION = 8;
- public static class CMTableNames {
+ public static class LineageTableNames {
public static final String TABLE_SYSTEM = "system";
public static final String TABLE_SECURE = "secure";
public static final String TABLE_GLOBAL = "global";
@@ -92,11 +92,11 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{
}
/**
- * Creates an instance of {@link CMDatabaseHelper}
+ * Creates an instance of {@link LineageDatabaseHelper}
* @param context
* @param userId
*/
- public CMDatabaseHelper(Context context, int userId) {
+ public LineageDatabaseHelper(Context context, int userId) {
super(context, dbNameForUser(userId), null, DATABASE_VERSION);
mContext = context;
mUserHandle = userId;
@@ -120,18 +120,18 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{
db.beginTransaction();
try {
- createDbTable(db, CMTableNames.TABLE_SYSTEM);
- createDbTable(db, CMTableNames.TABLE_SECURE);
+ createDbTable(db, LineageTableNames.TABLE_SYSTEM);
+ createDbTable(db, LineageTableNames.TABLE_SECURE);
if (mUserHandle == UserHandle.USER_OWNER) {
- createDbTable(db, CMTableNames.TABLE_GLOBAL);
+ createDbTable(db, LineageTableNames.TABLE_GLOBAL);
}
loadSettings(db);
db.setTransactionSuccessful();
- if (LOCAL_LOGV) Log.d(TAG, "Successfully created tables for cm settings db");
+ if (LOCAL_LOGV) Log.d(TAG, "Successfully created tables for lineage settings db");
} finally {
db.endTransaction();
}
@@ -176,7 +176,7 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{
try {
stmt = db.compileStatement("INSERT INTO secure(name,value)"
+ " VALUES(?,?);");
- loadStringSetting(stmt, CMSettings.Secure.PROTECTED_COMPONENT_MANAGERS,
+ loadStringSetting(stmt, LineageSettings.Secure.PROTECTED_COMPONENT_MANAGERS,
R.string.def_protected_component_managers);
db.setTransactionSuccessful();
} finally {
@@ -195,7 +195,7 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{
+ " VALUES(?,?);");
final String provisionedFlag = Settings.Global.getString(
mContext.getContentResolver(), Settings.Global.DEVICE_PROVISIONED);
- loadSetting(stmt, CMSettings.Secure.CM_SETUP_WIZARD_COMPLETED, provisionedFlag);
+ loadSetting(stmt, LineageSettings.Secure.LINEAGE_SETUP_WIZARD_COMPLETED, provisionedFlag);
db.setTransactionSuccessful();
} finally {
if (stmt != null) stmt.close();
@@ -212,7 +212,7 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{
try {
stmt = db.compileStatement("INSERT INTO global(name,value)"
+ " VALUES(?,?);");
- loadIntegerSetting(stmt, CMSettings.Global.WEATHER_TEMPERATURE_UNIT,
+ loadIntegerSetting(stmt, LineageSettings.Global.WEATHER_TEMPERATURE_UNIT,
R.integer.def_temperature_unit);
db.setTransactionSuccessful();
} finally {
@@ -226,9 +226,9 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{
if (upgradeVersion < 6) {
// Move force_show_navbar to global
if (mUserHandle == UserHandle.USER_OWNER) {
- moveSettingsToNewTable(db, CMTableNames.TABLE_SECURE,
- CMTableNames.TABLE_GLOBAL, new String[] {
- CMSettings.Secure.DEV_FORCE_SHOW_NAVBAR
+ moveSettingsToNewTable(db, LineageTableNames.TABLE_SECURE,
+ LineageTableNames.TABLE_GLOBAL, new String[] {
+ LineageSettings.Secure.DEV_FORCE_SHOW_NAVBAR
}, true);
}
upgradeVersion = 6;
@@ -240,18 +240,18 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{
SQLiteStatement stmt = null;
try {
stmt = db.compileStatement("SELECT value FROM system WHERE name=?");
- stmt.bindString(1, CMSettings.System.STATUS_BAR_CLOCK);
+ stmt.bindString(1, LineageSettings.System.STATUS_BAR_CLOCK);
long value = stmt.simpleQueryForLong();
if (value != 0) {
stmt = db.compileStatement("UPDATE system SET value=? WHERE name=?");
stmt.bindLong(1, value - 1);
- stmt.bindString(2, CMSettings.System.STATUS_BAR_CLOCK);
+ stmt.bindString(2, LineageSettings.System.STATUS_BAR_CLOCK);
stmt.execute();
}
db.setTransactionSuccessful();
} catch (SQLiteDoneException ex) {
- // CMSettings.System.STATUS_BAR_CLOCK is not set
+ // LineageSettings.System.STATUS_BAR_CLOCK is not set
} finally {
if (stmt != null) stmt.close();
db.endTransaction();
@@ -267,7 +267,7 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{
stmt = db.compileStatement("UPDATE secure SET value=? WHERE name=?");
stmt.bindString(1, mContext.getResources()
.getString(R.string.def_protected_component_managers));
- stmt.bindString(2, CMSettings.Secure.PROTECTED_COMPONENT_MANAGERS);
+ stmt.bindString(2, LineageSettings.Secure.PROTECTED_COMPONENT_MANAGERS);
stmt.execute();
db.setTransactionSuccessful();
} finally {
@@ -281,13 +281,13 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{
if (upgradeVersion < newVersion) {
Log.w(TAG, "Got stuck trying to upgrade db. Old version: " + oldVersion
+ ", version stuck at: " + upgradeVersion + ", new version: "
- + newVersion + ". Must wipe the cm settings provider.");
+ + newVersion + ". Must wipe the lineage settings provider.");
- dropDbTable(db, CMTableNames.TABLE_SYSTEM);
- dropDbTable(db, CMTableNames.TABLE_SECURE);
+ dropDbTable(db, LineageTableNames.TABLE_SYSTEM);
+ dropDbTable(db, LineageTableNames.TABLE_SECURE);
if (mUserHandle == UserHandle.USER_OWNER) {
- dropDbTable(db, CMTableNames.TABLE_GLOBAL);
+ dropDbTable(db, LineageTableNames.TABLE_GLOBAL);
}
onCreate(db);
@@ -362,42 +362,42 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{
stmt = db.compileStatement("INSERT OR IGNORE INTO secure(name,value)"
+ " VALUES(?,?);");
// Secure
- loadBooleanSetting(stmt, CMSettings.Secure.ADVANCED_MODE,
+ loadBooleanSetting(stmt, LineageSettings.Secure.ADVANCED_MODE,
R.bool.def_advanced_mode);
loadRegionLockedStringSetting(stmt,
- CMSettings.Secure.DEFAULT_THEME_COMPONENTS, R.string.def_theme_components);
+ LineageSettings.Secure.DEFAULT_THEME_COMPONENTS, R.string.def_theme_components);
loadRegionLockedStringSetting(stmt,
- CMSettings.Secure.DEFAULT_THEME_PACKAGE, R.string.def_theme_package);
+ LineageSettings.Secure.DEFAULT_THEME_PACKAGE, R.string.def_theme_package);
- loadIntegerSetting(stmt, CMSettings.Secure.DEV_FORCE_SHOW_NAVBAR,
+ loadIntegerSetting(stmt, LineageSettings.Secure.DEV_FORCE_SHOW_NAVBAR,
R.integer.def_force_show_navbar);
- loadStringSetting(stmt, CMSettings.Secure.QS_TILES,
- org.cyanogenmod.platform.internal.
+ loadStringSetting(stmt, LineageSettings.Secure.QS_TILES,
+ org.lineageos.platform.internal.
R.string.config_defaultQuickSettingsTiles);
- loadBooleanSetting(stmt, CMSettings.Secure.QS_USE_MAIN_TILES,
+ loadBooleanSetting(stmt, LineageSettings.Secure.QS_USE_MAIN_TILES,
R.bool.def_sysui_qs_main_tiles);
- loadBooleanSetting(stmt, CMSettings.Secure.STATS_COLLECTION,
+ loadBooleanSetting(stmt, LineageSettings.Secure.STATS_COLLECTION,
R.bool.def_stats_collection);
- loadBooleanSetting(stmt, CMSettings.Secure.LOCKSCREEN_VISUALIZER_ENABLED,
+ loadBooleanSetting(stmt, LineageSettings.Secure.LOCKSCREEN_VISUALIZER_ENABLED,
R.bool.def_lockscreen_visualizer);
loadStringSetting(stmt,
- CMSettings.Secure.PROTECTED_COMPONENT_MANAGERS,
+ LineageSettings.Secure.PROTECTED_COMPONENT_MANAGERS,
R.string.def_protected_component_managers);
loadStringSetting(stmt,
- CMSettings.Secure.ENABLED_EVENT_LIVE_LOCKS_KEY,
+ LineageSettings.Secure.ENABLED_EVENT_LIVE_LOCKS_KEY,
R.string.def_enabled_event_lls_components);
final String provisionedFlag = Settings.Global.getString(mContext.getContentResolver(),
Settings.Global.DEVICE_PROVISIONED);
- loadSetting(stmt, CMSettings.Secure.CM_SETUP_WIZARD_COMPLETED, provisionedFlag);
+ loadSetting(stmt, LineageSettings.Secure.LINEAGE_SETUP_WIZARD_COMPLETED, provisionedFlag);
} finally {
if (stmt != null) stmt.close();
}
@@ -409,38 +409,38 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{
stmt = db.compileStatement("INSERT OR IGNORE INTO system(name,value)"
+ " VALUES(?,?);");
// System
- loadIntegerSetting(stmt, CMSettings.System.STATUS_BAR_QUICK_QS_PULLDOWN,
+ loadIntegerSetting(stmt, LineageSettings.System.STATUS_BAR_QUICK_QS_PULLDOWN,
R.integer.def_qs_quick_pulldown);
- loadIntegerSetting(stmt, CMSettings.System.NOTIFICATION_LIGHT_BRIGHTNESS_LEVEL,
+ loadIntegerSetting(stmt, LineageSettings.System.NOTIFICATION_LIGHT_BRIGHTNESS_LEVEL,
R.integer.def_notification_brightness_level);
- loadBooleanSetting(stmt, CMSettings.System.NOTIFICATION_LIGHT_MULTIPLE_LEDS_ENABLE,
+ loadBooleanSetting(stmt, LineageSettings.System.NOTIFICATION_LIGHT_MULTIPLE_LEDS_ENABLE,
R.bool.def_notification_multiple_leds);
- loadBooleanSetting(stmt, CMSettings.System.SYSTEM_PROFILES_ENABLED,
+ loadBooleanSetting(stmt, LineageSettings.System.SYSTEM_PROFILES_ENABLED,
R.bool.def_profiles_enabled);
- loadIntegerSetting(stmt, CMSettings.System.ENABLE_FORWARD_LOOKUP,
+ loadIntegerSetting(stmt, LineageSettings.System.ENABLE_FORWARD_LOOKUP,
R.integer.def_forward_lookup);
- loadIntegerSetting(stmt, CMSettings.System.ENABLE_PEOPLE_LOOKUP,
+ loadIntegerSetting(stmt, LineageSettings.System.ENABLE_PEOPLE_LOOKUP,
R.integer.def_people_lookup);
- loadIntegerSetting(stmt, CMSettings.System.ENABLE_REVERSE_LOOKUP,
+ loadIntegerSetting(stmt, LineageSettings.System.ENABLE_REVERSE_LOOKUP,
R.integer.def_reverse_lookup);
- loadBooleanSetting(stmt, CMSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_ENABLE,
+ loadBooleanSetting(stmt, LineageSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_ENABLE,
R.bool.def_notification_pulse_custom_enable);
- loadBooleanSetting(stmt, CMSettings.System.SWAP_VOLUME_KEYS_ON_ROTATION,
+ loadBooleanSetting(stmt, LineageSettings.System.SWAP_VOLUME_KEYS_ON_ROTATION,
R.bool.def_swap_volume_keys_on_rotation);
- loadIntegerSetting(stmt, CMSettings.System.STATUS_BAR_BATTERY_STYLE,
+ loadIntegerSetting(stmt, LineageSettings.System.STATUS_BAR_BATTERY_STYLE,
R.integer.def_battery_style);
if (mContext.getResources().getBoolean(R.bool.def_notification_pulse_custom_enable)) {
- loadStringSetting(stmt, CMSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_VALUES,
+ loadStringSetting(stmt, LineageSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_VALUES,
R.string.def_notification_pulse_custom_value);
}
} finally {
@@ -455,18 +455,18 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{
+ " VALUES(?,?);");
// Global
loadBooleanSetting(stmt,
- CMSettings.Global.POWER_NOTIFICATIONS_ENABLED,
+ LineageSettings.Global.POWER_NOTIFICATIONS_ENABLED,
R.bool.def_power_notifications_enabled);
loadBooleanSetting(stmt,
- CMSettings.Global.POWER_NOTIFICATIONS_VIBRATE,
+ LineageSettings.Global.POWER_NOTIFICATIONS_VIBRATE,
R.bool.def_power_notifications_vibrate);
loadStringSetting(stmt,
- CMSettings.Global.POWER_NOTIFICATIONS_RINGTONE,
+ LineageSettings.Global.POWER_NOTIFICATIONS_RINGTONE,
R.string.def_power_notifications_ringtone);
- loadIntegerSetting(stmt, CMSettings.Global.WEATHER_TEMPERATURE_UNIT,
+ loadIntegerSetting(stmt, LineageSettings.Global.WEATHER_TEMPERATURE_UNIT,
R.integer.def_temperature_unit);
} finally {
if (stmt != null) stmt.close();
diff --git a/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageSettingsProvider.java b/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageSettingsProvider.java
index a4630df4..d481378a 100644
--- a/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageSettingsProvider.java
+++ b/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/LineageSettingsProvider.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.cmsettings;
+package org.lineageos.lineagesettings;
import android.app.ActivityManager;
import android.content.BroadcastReceiver;
@@ -45,10 +45,10 @@ import android.text.TextUtils;
import android.util.Log;
import android.util.SparseArray;
-import org.cyanogenmod.internal.util.QSConstants;
-import org.cyanogenmod.internal.util.QSUtils;
+import org.lineageos.internal.util.QSConstants;
+import org.lineageos.internal.util.QSUtils;
-import cyanogenmod.providers.CMSettings;
+import lineageos.providers.LineageSettings;
import java.util.HashMap;
import java.util.List;
@@ -56,20 +56,20 @@ import java.util.Map;
import java.util.Set;
/**
- * The CMSettingsProvider serves as a {@link ContentProvider} for CM specific settings
+ * The LineageSettingsProvider serves as a {@link ContentProvider} for Lineage specific settings
*/
-public class CMSettingsProvider extends ContentProvider {
- public static final String TAG = "CMSettingsProvider";
+public class LineageSettingsProvider extends ContentProvider {
+ public static final String TAG = "LineageSettingsProvider";
private static final boolean LOCAL_LOGV = false;
private static final boolean USER_CHECK_THROWS = true;
- public static final String PREF_HAS_MIGRATED_CM_SETTINGS = "has_migrated_cm13_settings";
+ public static final String PREF_HAS_MIGRATED_LINEAGE_SETTINGS = "has_migrated_cm13_settings";
private static final Bundle NULL_SETTING = Bundle.forPair("value", null);
// Each defined user has their own settings
- protected final SparseArray mDbHelpers = new SparseArray();
+ protected final SparseArray mDbHelpers = new SparseArray();
private static final int SYSTEM = 1;
private static final int SECURE = 2;
@@ -85,17 +85,17 @@ public class CMSettingsProvider extends ContentProvider {
private static final UriMatcher sUriMatcher = new UriMatcher(UriMatcher.NO_MATCH);
static {
- sUriMatcher.addURI(CMSettings.AUTHORITY, CMDatabaseHelper.CMTableNames.TABLE_SYSTEM,
+ sUriMatcher.addURI(LineageSettings.AUTHORITY, LineageDatabaseHelper.LineageTableNames.TABLE_SYSTEM,
SYSTEM);
- sUriMatcher.addURI(CMSettings.AUTHORITY, CMDatabaseHelper.CMTableNames.TABLE_SECURE,
+ sUriMatcher.addURI(LineageSettings.AUTHORITY, LineageDatabaseHelper.LineageTableNames.TABLE_SECURE,
SECURE);
- sUriMatcher.addURI(CMSettings.AUTHORITY, CMDatabaseHelper.CMTableNames.TABLE_GLOBAL,
+ sUriMatcher.addURI(LineageSettings.AUTHORITY, LineageDatabaseHelper.LineageTableNames.TABLE_GLOBAL,
GLOBAL);
- sUriMatcher.addURI(CMSettings.AUTHORITY, CMDatabaseHelper.CMTableNames.TABLE_SYSTEM +
+ sUriMatcher.addURI(LineageSettings.AUTHORITY, LineageDatabaseHelper.LineageTableNames.TABLE_SYSTEM +
ITEM_MATCHER, SYSTEM_ITEM_NAME);
- sUriMatcher.addURI(CMSettings.AUTHORITY, CMDatabaseHelper.CMTableNames.TABLE_SECURE +
+ sUriMatcher.addURI(LineageSettings.AUTHORITY, LineageDatabaseHelper.LineageTableNames.TABLE_SECURE +
ITEM_MATCHER, SECURE_ITEM_NAME);
- sUriMatcher.addURI(CMSettings.AUTHORITY, CMDatabaseHelper.CMTableNames.TABLE_GLOBAL +
+ sUriMatcher.addURI(LineageSettings.AUTHORITY, LineageDatabaseHelper.LineageTableNames.TABLE_GLOBAL +
ITEM_MATCHER, GLOBAL_ITEM_NAME);
}
@@ -105,7 +105,7 @@ public class CMSettingsProvider extends ContentProvider {
@Override
public boolean onCreate() {
- if (LOCAL_LOGV) Log.d(TAG, "Creating CMSettingsProvider");
+ if (LOCAL_LOGV) Log.d(TAG, "Creating LineageSettingsProvider");
mUserManager = UserManager.get(getContext());
@@ -113,7 +113,7 @@ public class CMSettingsProvider extends ContentProvider {
mUriBuilder = new Uri.Builder();
mUriBuilder.scheme(ContentResolver.SCHEME_CONTENT);
- mUriBuilder.authority(CMSettings.AUTHORITY);
+ mUriBuilder.authority(LineageSettings.AUTHORITY);
mSharedPrefs = getContext().getSharedPreferences(TAG, Context.MODE_PRIVATE);
@@ -140,20 +140,20 @@ public class CMSettingsProvider extends ContentProvider {
// region Migration Methods
/**
- * Migrates CM settings for all existing users if this has not been run before.
+ * Migrates Lineage settings for all existing users if this has not been run before.
*/
- private void migrateCMSettingsForExistingUsersIfNeeded() {
- boolean hasMigratedCMSettings = mSharedPrefs.getBoolean(PREF_HAS_MIGRATED_CM_SETTINGS,
+ private void migrateLineageSettingsForExistingUsersIfNeeded() {
+ boolean hasMigratedLineageSettings = mSharedPrefs.getBoolean(PREF_HAS_MIGRATED_LINEAGE_SETTINGS,
false);
- if (!hasMigratedCMSettings) {
+ if (!hasMigratedLineageSettings) {
long startTime = System.currentTimeMillis();
for (UserInfo user : mUserManager.getUsers()) {
- migrateCMSettingsForUser(user.id);
+ migrateLineageSettingsForUser(user.id);
}
- mSharedPrefs.edit().putBoolean(PREF_HAS_MIGRATED_CM_SETTINGS, true).commit();
+ mSharedPrefs.edit().putBoolean(PREF_HAS_MIGRATED_LINEAGE_SETTINGS, true).commit();
// TODO: Add this as part of a boot message to the UI
long timeDiffMillis = System.currentTimeMillis() - startTime;
@@ -162,38 +162,38 @@ public class CMSettingsProvider extends ContentProvider {
}
/**
- * Migrates CM settings for a specific user.
- * @param userId The id of the user to run CM settings migration for.
+ * Migrates Lineage settings for a specific user.
+ * @param userId The id of the user to run Lineage settings migration for.
*/
- private void migrateCMSettingsForUser(int userId) {
+ private void migrateLineageSettingsForUser(int userId) {
synchronized (this) {
- if (LOCAL_LOGV) Log.d(TAG, "CM settings will be migrated for user id: " + userId);
+ if (LOCAL_LOGV) Log.d(TAG, "Lineage settings will be migrated for user id: " + userId);
// Migrate system settings
- int rowsMigrated = migrateCMSettingsForTable(userId,
- CMDatabaseHelper.CMTableNames.TABLE_SYSTEM, CMSettings.System.LEGACY_SYSTEM_SETTINGS);
- if (LOCAL_LOGV) Log.d(TAG, "Migrated " + rowsMigrated + " to CM system table");
+ int rowsMigrated = migrateLineageSettingsForTable(userId,
+ LineageDatabaseHelper.LineageTableNames.TABLE_SYSTEM, LineageSettings.System.LEGACY_SYSTEM_SETTINGS);
+ if (LOCAL_LOGV) Log.d(TAG, "Migrated " + rowsMigrated + " to Lineage system table");
// Migrate secure settings
- rowsMigrated = migrateCMSettingsForTable(userId,
- CMDatabaseHelper.CMTableNames.TABLE_SECURE, CMSettings.Secure.LEGACY_SECURE_SETTINGS);
- if (LOCAL_LOGV) Log.d(TAG, "Migrated " + rowsMigrated + " to CM secure table");
+ rowsMigrated = migrateLineageSettingsForTable(userId,
+ LineageDatabaseHelper.LineageTableNames.TABLE_SECURE, LineageSettings.Secure.LEGACY_SECURE_SETTINGS);
+ if (LOCAL_LOGV) Log.d(TAG, "Migrated " + rowsMigrated + " to Lineage secure table");
// Migrate global settings
- rowsMigrated = migrateCMSettingsForTable(userId,
- CMDatabaseHelper.CMTableNames.TABLE_GLOBAL, CMSettings.Global.LEGACY_GLOBAL_SETTINGS);
- if (LOCAL_LOGV) Log.d(TAG, "Migrated " + rowsMigrated + " to CM global table");
+ rowsMigrated = migrateLineageSettingsForTable(userId,
+ LineageDatabaseHelper.LineageTableNames.TABLE_GLOBAL, LineageSettings.Global.LEGACY_GLOBAL_SETTINGS);
+ if (LOCAL_LOGV) Log.d(TAG, "Migrated " + rowsMigrated + " to Lineage global table");
}
}
/**
- * Migrates CM settings for a specific table and user id.
- * @param userId The id of the user to run CM settings migration for.
- * @param tableName The name of the table to run CM settings migration on.
- * @param settings An array of keys to migrate from {@link Settings} to {@link CMSettings}
+ * Migrates Lineage settings for a specific table and user id.
+ * @param userId The id of the user to run Lineage settings migration for.
+ * @param tableName The name of the table to run Lineage settings migration on.
+ * @param settings An array of keys to migrate from {@link Settings} to {@link LineageSettings}
* @return Number of rows migrated.
*/
- private int migrateCMSettingsForTable(int userId, String tableName, String[] settings) {
+ private int migrateLineageSettingsForTable(int userId, String tableName, String[] settings) {
ContentResolver contentResolver = getContext().getContentResolver();
ContentValues[] contentValues = new ContentValues[settings.length];
@@ -201,15 +201,15 @@ public class CMSettingsProvider extends ContentProvider {
for (String settingsKey : settings) {
String settingsValue = null;
- if (tableName.equals(CMDatabaseHelper.CMTableNames.TABLE_SYSTEM)) {
+ if (tableName.equals(LineageDatabaseHelper.LineageTableNames.TABLE_SYSTEM)) {
settingsValue = Settings.System.getStringForUser(contentResolver, settingsKey,
userId);
}
- else if (tableName.equals(CMDatabaseHelper.CMTableNames.TABLE_SECURE)) {
+ else if (tableName.equals(LineageDatabaseHelper.LineageTableNames.TABLE_SECURE)) {
settingsValue = Settings.Secure.getStringForUser(contentResolver, settingsKey,
userId);
- if (settingsValue != null && settingsKey.equals(CMSettings.Secure.STATS_COLLECTION)
- && CMSettings.Secure.getStringForUser(contentResolver, settingsKey, userId)
+ if (settingsValue != null && settingsKey.equals(LineageSettings.Secure.STATS_COLLECTION)
+ && LineageSettings.Secure.getStringForUser(contentResolver, settingsKey, userId)
!= null) {
// incorrect migration from YOG4P -> YOG7D failed to remove
// Settings.Secure.STATS_COLLECTION after migration; so it may exist in both
@@ -218,7 +218,7 @@ public class CMSettingsProvider extends ContentProvider {
}
// insert dnd, edit tiles for upgrade from 12.1 -> 13.0
- if (CMSettings.Secure.QS_TILES.equals(settingsKey) && (settingsValue != null
+ if (LineageSettings.Secure.QS_TILES.equals(settingsKey) && (settingsValue != null
&& (!settingsValue.contains(QSConstants.TILE_DND)
|| !settingsValue.contains(QSConstants.TILE_EDIT)))) {
if (LOCAL_LOGV) {
@@ -238,7 +238,7 @@ public class CMSettingsProvider extends ContentProvider {
// use value in old database
boolean nineTilesPerPage = Settings.Secure.getInt(contentResolver,
- CMSettings.Secure.QS_USE_MAIN_TILES, 0) == 1;
+ LineageSettings.Secure.QS_USE_MAIN_TILES, 0) == 1;
final int TILES_PER_PAGE = nineTilesPerPage ? 9 : 8;
@@ -252,7 +252,7 @@ public class CMSettingsProvider extends ContentProvider {
settingsValue = TextUtils.join(",", tiles);
}
}
- else if (tableName.equals(CMDatabaseHelper.CMTableNames.TABLE_GLOBAL)) {
+ else if (tableName.equals(LineageDatabaseHelper.LineageTableNames.TABLE_GLOBAL)) {
settingsValue = Settings.Global.getStringForUser(contentResolver, settingsKey,
userId);
}
@@ -309,7 +309,7 @@ public class CMSettingsProvider extends ContentProvider {
int callingUserId = UserHandle.getCallingUserId();
if (args != null) {
- int reqUser = args.getInt(CMSettings.CALL_METHOD_USER_KEY, callingUserId);
+ int reqUser = args.getInt(LineageSettings.CALL_METHOD_USER_KEY, callingUserId);
if (reqUser != callingUserId) {
callingUserId = ActivityManager.handleIncomingUser(Binder.getCallingPid(),
Binder.getCallingUid(), reqUser, false, true,
@@ -318,12 +318,12 @@ public class CMSettingsProvider extends ContentProvider {
}
}
- boolean hasMigratedCMSettings = mSharedPrefs.getBoolean(PREF_HAS_MIGRATED_CM_SETTINGS,
+ boolean hasMigratedLineageSettings = mSharedPrefs.getBoolean(PREF_HAS_MIGRATED_LINEAGE_SETTINGS,
false);
- final ComponentName preBootReceiver = new ComponentName("org.cyanogenmod.cmsettings",
- "org.cyanogenmod.cmsettings.PreBootReceiver");
+ final ComponentName preBootReceiver = new ComponentName("org.lineageos.lineagesettings",
+ "org.lineageos.lineagesettings.PreBootReceiver");
final PackageManager packageManager = getContext().getPackageManager();
- if (!hasMigratedCMSettings &&
+ if (!hasMigratedLineageSettings &&
packageManager.getComponentEnabledSetting(preBootReceiver)
== PackageManager.COMPONENT_ENABLED_STATE_DISABLED ) {
if (LOCAL_LOGV) {
@@ -335,25 +335,25 @@ public class CMSettingsProvider extends ContentProvider {
}
// Migrate methods
- if (CMSettings.CALL_METHOD_MIGRATE_SETTINGS.equals(method)) {
- migrateCMSettingsForExistingUsersIfNeeded();
+ if (LineageSettings.CALL_METHOD_MIGRATE_SETTINGS.equals(method)) {
+ migrateLineageSettingsForExistingUsersIfNeeded();
return null;
- } else if (CMSettings.CALL_METHOD_MIGRATE_SETTINGS_FOR_USER.equals(method)) {
- migrateCMSettingsForUser(callingUserId);
+ } else if (LineageSettings.CALL_METHOD_MIGRATE_SETTINGS_FOR_USER.equals(method)) {
+ migrateLineageSettingsForUser(callingUserId);
return null;
}
// Get methods
- if (CMSettings.CALL_METHOD_GET_SYSTEM.equals(method)) {
- return lookupSingleValue(callingUserId, CMSettings.System.CONTENT_URI, request);
+ if (LineageSettings.CALL_METHOD_GET_SYSTEM.equals(method)) {
+ return lookupSingleValue(callingUserId, LineageSettings.System.CONTENT_URI, request);
}
- else if (CMSettings.CALL_METHOD_GET_SECURE.equals(method)) {
- return lookupSingleValue(callingUserId, CMSettings.Secure.CONTENT_URI, request);
+ else if (LineageSettings.CALL_METHOD_GET_SECURE.equals(method)) {
+ return lookupSingleValue(callingUserId, LineageSettings.Secure.CONTENT_URI, request);
}
- else if (CMSettings.CALL_METHOD_GET_GLOBAL.equals(method)) {
- return lookupSingleValue(callingUserId, CMSettings.Global.CONTENT_URI, request);
+ else if (LineageSettings.CALL_METHOD_GET_GLOBAL.equals(method)) {
+ return lookupSingleValue(callingUserId, LineageSettings.Global.CONTENT_URI, request);
}
// Put methods - new value is in the args bundle under the key named by
@@ -363,10 +363,10 @@ public class CMSettingsProvider extends ContentProvider {
// Framework can't do automatic permission checking for calls, so we need
// to do it here.
- if (CMSettings.CALL_METHOD_PUT_SYSTEM.equals(method)) {
- enforceWritePermission(cyanogenmod.platform.Manifest.permission.WRITE_SETTINGS);
+ if (LineageSettings.CALL_METHOD_PUT_SYSTEM.equals(method)) {
+ enforceWritePermission(lineageos.platform.Manifest.permission.WRITE_SETTINGS);
} else {
- enforceWritePermission(cyanogenmod.platform.Manifest.permission.WRITE_SECURE_SETTINGS);
+ enforceWritePermission(lineageos.platform.Manifest.permission.WRITE_SECURE_SETTINGS);
}
// Put methods
@@ -374,14 +374,14 @@ public class CMSettingsProvider extends ContentProvider {
values.put(Settings.NameValueTable.NAME, request);
values.put(Settings.NameValueTable.VALUE, newValue);
- if (CMSettings.CALL_METHOD_PUT_SYSTEM.equals(method)) {
- insertForUser(callingUserId, CMSettings.System.CONTENT_URI, values);
+ if (LineageSettings.CALL_METHOD_PUT_SYSTEM.equals(method)) {
+ insertForUser(callingUserId, LineageSettings.System.CONTENT_URI, values);
}
- else if (CMSettings.CALL_METHOD_PUT_SECURE.equals(method)) {
- insertForUser(callingUserId, CMSettings.Secure.CONTENT_URI, values);
+ else if (LineageSettings.CALL_METHOD_PUT_SECURE.equals(method)) {
+ insertForUser(callingUserId, LineageSettings.Secure.CONTENT_URI, values);
}
- else if (CMSettings.CALL_METHOD_PUT_GLOBAL.equals(method)) {
- insertForUser(callingUserId, CMSettings.Global.CONTENT_URI, values);
+ else if (LineageSettings.CALL_METHOD_PUT_GLOBAL.equals(method)) {
+ insertForUser(callingUserId, LineageSettings.Global.CONTENT_URI, values);
}
return null;
@@ -454,7 +454,7 @@ public class CMSettingsProvider extends ContentProvider {
int code = sUriMatcher.match(uri);
String tableName = getTableNameFromUriMatchCode(code);
- CMDatabaseHelper dbHelper = getOrEstablishDatabase(getUserIdForTable(tableName, userId));
+ LineageDatabaseHelper dbHelper = getOrEstablishDatabase(getUserIdForTable(tableName, userId));
SQLiteDatabase db = dbHelper.getReadableDatabase();
SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder();
@@ -512,7 +512,7 @@ public class CMSettingsProvider extends ContentProvider {
String tableName = getTableNameFromUri(uri);
checkWritePermissions(tableName);
- CMDatabaseHelper dbHelper = getOrEstablishDatabase(getUserIdForTable(tableName, userId));
+ LineageDatabaseHelper dbHelper = getOrEstablishDatabase(getUserIdForTable(tableName, userId));
SQLiteDatabase db = dbHelper.getWritableDatabase();
db.beginTransaction();
@@ -569,14 +569,14 @@ public class CMSettingsProvider extends ContentProvider {
String tableName = getTableNameFromUri(uri);
checkWritePermissions(tableName);
- CMDatabaseHelper dbHelper = getOrEstablishDatabase(getUserIdForTable(tableName, userId));
+ LineageDatabaseHelper dbHelper = getOrEstablishDatabase(getUserIdForTable(tableName, userId));
// Validate value if inserting int System table
final String name = values.getAsString(Settings.NameValueTable.NAME);
final String value = values.getAsString(Settings.NameValueTable.VALUE);
- if (CMDatabaseHelper.CMTableNames.TABLE_SYSTEM.equals(tableName)) {
+ if (LineageDatabaseHelper.LineageTableNames.TABLE_SYSTEM.equals(tableName)) {
validateSystemSettingNameValue(name, value);
- } else if (CMDatabaseHelper.CMTableNames.TABLE_SECURE.equals(tableName)) {
+ } else if (LineageDatabaseHelper.LineageTableNames.TABLE_SECURE.equals(tableName)) {
validateSecureSettingValue(name, value);
}
@@ -609,7 +609,7 @@ public class CMSettingsProvider extends ContentProvider {
checkWritePermissions(tableName);
int callingUserId = UserHandle.getCallingUserId();
- CMDatabaseHelper dbHelper = getOrEstablishDatabase(getUserIdForTable(tableName,
+ LineageDatabaseHelper dbHelper = getOrEstablishDatabase(getUserIdForTable(tableName,
callingUserId));
SQLiteDatabase db = dbHelper.getWritableDatabase();
@@ -626,7 +626,7 @@ public class CMSettingsProvider extends ContentProvider {
@Override
public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) {
- // NOTE: update() is never called by the front-end CMSettings API, and updates that
+ // NOTE: update() is never called by the front-end LineageSettings API, and updates that
// wind up affecting rows in Secure that are globally shared will not have the
// intended effect (the update will be invisible to the rest of the system).
// This should have no practical effect, since writes to the Secure db can only
@@ -645,14 +645,14 @@ public class CMSettingsProvider extends ContentProvider {
// Validate value if updating System table
final String name = values.getAsString(Settings.NameValueTable.NAME);
final String value = values.getAsString(Settings.NameValueTable.VALUE);
- if (CMDatabaseHelper.CMTableNames.TABLE_SYSTEM.equals(tableName)) {
+ if (LineageDatabaseHelper.LineageTableNames.TABLE_SYSTEM.equals(tableName)) {
validateSystemSettingNameValue(name, value);
- } else if (CMDatabaseHelper.CMTableNames.TABLE_SECURE.equals(tableName)) {
+ } else if (LineageDatabaseHelper.LineageTableNames.TABLE_SECURE.equals(tableName)) {
validateSecureSettingValue(name, value);
}
int callingUserId = UserHandle.getCallingUserId();
- CMDatabaseHelper dbHelper = getOrEstablishDatabase(getUserIdForTable(tableName,
+ LineageDatabaseHelper dbHelper = getOrEstablishDatabase(getUserIdForTable(tableName,
callingUserId));
SQLiteDatabase db = dbHelper.getWritableDatabase();
@@ -669,12 +669,12 @@ public class CMSettingsProvider extends ContentProvider {
// endregion Content Provider Methods
/**
- * Tries to get a {@link CMDatabaseHelper} for the specified user and if it does not exist, a
- * new instance of {@link CMDatabaseHelper} is created for the specified user and returned.
+ * Tries to get a {@link LineageDatabaseHelper} for the specified user and if it does not exist, a
+ * new instance of {@link LineageDatabaseHelper} is created for the specified user and returned.
* @param callingUser
* @return
*/
- private CMDatabaseHelper getOrEstablishDatabase(int callingUser) {
+ private LineageDatabaseHelper getOrEstablishDatabase(int callingUser) {
if (callingUser >= android.os.Process.SYSTEM_UID) {
if (USER_CHECK_THROWS) {
throw new IllegalArgumentException("Uid rather than user handle: " + callingUser);
@@ -685,7 +685,7 @@ public class CMSettingsProvider extends ContentProvider {
long oldId = Binder.clearCallingIdentity();
try {
- CMDatabaseHelper dbHelper;
+ LineageDatabaseHelper dbHelper;
synchronized (this) {
dbHelper = mDbHelpers.get(callingUser);
}
@@ -702,23 +702,23 @@ public class CMSettingsProvider extends ContentProvider {
}
/**
- * Check if a {@link CMDatabaseHelper} exists for a user and if it doesn't, a new helper is
+ * Check if a {@link LineageDatabaseHelper} exists for a user and if it doesn't, a new helper is
* created and added to the list of tracked database helpers
* @param userId
*/
private void establishDbTracking(int userId) {
- CMDatabaseHelper dbHelper;
+ LineageDatabaseHelper dbHelper;
synchronized (this) {
dbHelper = mDbHelpers.get(userId);
if (LOCAL_LOGV) {
- Log.i(TAG, "Checking cm settings db helper for user " + userId);
+ Log.i(TAG, "Checking lineage settings db helper for user " + userId);
}
if (dbHelper == null) {
if (LOCAL_LOGV) {
- Log.i(TAG, "Installing new cm settings db helper for user " + userId);
+ Log.i(TAG, "Installing new lineage settings db helper for user " + userId);
}
- dbHelper = new CMDatabaseHelper(getContext(), userId);
+ dbHelper = new LineageDatabaseHelper(getContext(), userId);
mDbHelpers.append(userId, dbHelper);
}
}
@@ -737,14 +737,14 @@ public class CMSettingsProvider extends ContentProvider {
* @throws SecurityException if the caller is forbidden to write.
*/
private void checkWritePermissions(String tableName) {
- if ((CMDatabaseHelper.CMTableNames.TABLE_SECURE.equals(tableName) ||
- CMDatabaseHelper.CMTableNames.TABLE_GLOBAL.equals(tableName)) &&
+ if ((LineageDatabaseHelper.LineageTableNames.TABLE_SECURE.equals(tableName) ||
+ LineageDatabaseHelper.LineageTableNames.TABLE_GLOBAL.equals(tableName)) &&
getContext().checkCallingOrSelfPermission(
- cyanogenmod.platform.Manifest.permission.WRITE_SECURE_SETTINGS) !=
+ lineageos.platform.Manifest.permission.WRITE_SECURE_SETTINGS) !=
PackageManager.PERMISSION_GRANTED) {
throw new SecurityException(
- String.format("Permission denial: writing to cm secure settings requires %1$s",
- cyanogenmod.platform.Manifest.permission.WRITE_SECURE_SETTINGS));
+ String.format("Permission denial: writing to lineage secure settings requires %1$s",
+ lineageos.platform.Manifest.permission.WRITE_SECURE_SETTINGS));
}
}
@@ -789,13 +789,13 @@ public class CMSettingsProvider extends ContentProvider {
switch (code) {
case SYSTEM:
case SYSTEM_ITEM_NAME:
- return CMDatabaseHelper.CMTableNames.TABLE_SYSTEM;
+ return LineageDatabaseHelper.LineageTableNames.TABLE_SYSTEM;
case SECURE:
case SECURE_ITEM_NAME:
- return CMDatabaseHelper.CMTableNames.TABLE_SECURE;
+ return LineageDatabaseHelper.LineageTableNames.TABLE_SECURE;
case GLOBAL:
case GLOBAL_ITEM_NAME:
- return CMDatabaseHelper.CMTableNames.TABLE_GLOBAL;
+ return LineageDatabaseHelper.LineageTableNames.TABLE_GLOBAL;
default:
throw new IllegalArgumentException("Invalid uri match code: " + code);
}
@@ -809,25 +809,25 @@ public class CMSettingsProvider extends ContentProvider {
* @return User id
*/
private int getUserIdForTable(String tableName, int userId) {
- return CMDatabaseHelper.CMTableNames.TABLE_GLOBAL.equals(tableName) ?
+ return LineageDatabaseHelper.LineageTableNames.TABLE_GLOBAL.equals(tableName) ?
UserHandle.USER_OWNER : userId;
}
/**
* Modify setting version for an updated table before notifying of change. The
- * {@link CMSettings} class uses these to provide client-side caches.
+ * {@link LineageSettings} class uses these to provide client-side caches.
* @param uri to send notifications for
* @param userId
*/
private void notifyChange(Uri uri, String tableName, int userId) {
String property = null;
- final boolean isGlobal = tableName.equals(CMDatabaseHelper.CMTableNames.TABLE_GLOBAL);
- if (tableName.equals(CMDatabaseHelper.CMTableNames.TABLE_SYSTEM)) {
- property = CMSettings.System.SYS_PROP_CM_SETTING_VERSION;
- } else if (tableName.equals(CMDatabaseHelper.CMTableNames.TABLE_SECURE)) {
- property = CMSettings.Secure.SYS_PROP_CM_SETTING_VERSION;
+ final boolean isGlobal = tableName.equals(LineageDatabaseHelper.LineageTableNames.TABLE_GLOBAL);
+ if (tableName.equals(LineageDatabaseHelper.LineageTableNames.TABLE_SYSTEM)) {
+ property = LineageSettings.System.SYS_PROP_LINEAGE_SETTING_VERSION;
+ } else if (tableName.equals(LineageDatabaseHelper.LineageTableNames.TABLE_SECURE)) {
+ property = LineageSettings.Secure.SYS_PROP_LINEAGE_SETTING_VERSION;
} else if (isGlobal) {
- property = CMSettings.Global.SYS_PROP_CM_SETTING_VERSION;
+ property = LineageSettings.Global.SYS_PROP_LINEAGE_SETTING_VERSION;
}
if (property != null) {
@@ -847,7 +847,7 @@ public class CMSettingsProvider extends ContentProvider {
}
private void validateSystemSettingNameValue(String name, String value) {
- CMSettings.Validator validator = CMSettings.System.VALIDATORS.get(name);
+ LineageSettings.Validator validator = LineageSettings.System.VALIDATORS.get(name);
if (validator == null) {
throw new IllegalArgumentException("Invalid setting: " + name);
}
@@ -859,7 +859,7 @@ public class CMSettingsProvider extends ContentProvider {
}
private void validateSecureSettingValue(String name, String value) {
- CMSettings.Validator validator = CMSettings.Secure.VALIDATORS.get(name);
+ LineageSettings.Validator validator = LineageSettings.Secure.VALIDATORS.get(name);
// Not all secure settings have validators, but if a validator exists, the validate method
// should return true
diff --git a/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/PreBootReceiver.java b/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/PreBootReceiver.java
index ef0a6f02..04697320 100644
--- a/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/PreBootReceiver.java
+++ b/packages/LineageSettingsProvider/src/org/lineageos/lineagesettings/PreBootReceiver.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.cmsettings;
+package org.lineageos.lineagesettings;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
@@ -25,25 +25,25 @@ import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.RemoteException;
import android.util.Log;
-import cyanogenmod.providers.CMSettings;
+import lineageos.providers.LineageSettings;
public class PreBootReceiver extends BroadcastReceiver{
- private static final String TAG = "CMSettingsReceiver";
+ private static final String TAG = "LineageSettingsReceiver";
private static final boolean LOCAL_LOGV = false;
@Override
public void onReceive(Context context, Intent intent) {
if (LOCAL_LOGV) {
- Log.d(TAG, "Received pre boot intent. Attempting to migrate CM settings.");
+ Log.d(TAG, "Received pre boot intent. Attempting to migrate Lineage settings.");
}
ContentResolver contentResolver = context.getContentResolver();
IContentProvider contentProvider = contentResolver.acquireProvider(
- CMSettings.AUTHORITY);
+ LineageSettings.AUTHORITY);
try{
contentProvider.call(contentResolver.getPackageName(),
- CMSettings.CALL_METHOD_MIGRATE_SETTINGS, null, null);
+ LineageSettings.CALL_METHOD_MIGRATE_SETTINGS, null, null);
context.getPackageManager().setComponentEnabledSetting(
new ComponentName(context, getClass()),
diff --git a/packages/LineageSettingsProvider/tests/Android.mk b/packages/LineageSettingsProvider/tests/Android.mk
index 813da15e..31c3aa38 100644
--- a/packages/LineageSettingsProvider/tests/Android.mk
+++ b/packages/LineageSettingsProvider/tests/Android.mk
@@ -19,8 +19,8 @@ include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := tests
-LOCAL_PACKAGE_NAME := CMSettingsProviderTests
-LOCAL_INSTRUMENTATION_FOR := CMSettingsProvider
+LOCAL_PACKAGE_NAME := LineageSettingsProviderTests
+LOCAL_INSTRUMENTATION_FOR := LineageSettingsProvider
LOCAL_SRC_FILES := $(call all-subdir-java-files)
@@ -30,17 +30,17 @@ LOCAL_PROGUARD_ENABLED := optimization shrinktests
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
LOCAL_STATIC_JAVA_LIBRARIES := \
- org.cyanogenmod.platform.internal
+ org.lineageos.platform.internal
include $(BUILD_PACKAGE)
-# Register as CMTS
+# Register as LineageTS
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := tests
-LOCAL_PACKAGE_NAME := CmtsCMSettingsProviderTests
-LOCAL_INSTRUMENTATION_FOR := CMSettingsProvider
+LOCAL_PACKAGE_NAME := CmtsLineageSettingsProviderTests
+LOCAL_INSTRUMENTATION_FOR := LineageSettingsProvider
LOCAL_SRC_FILES := $(call all-subdir-java-files)
@@ -50,7 +50,7 @@ LOCAL_PROGUARD_ENABLED := optimization shrinktests
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
LOCAL_STATIC_JAVA_LIBRARIES := \
- org.cyanogenmod.platform.internal
+ org.lineageos.platform.internal
-include $(BUILD_CMTS_PACKAGE)
+include $(BUILD_LineageTS_PACKAGE)
diff --git a/packages/LineageSettingsProvider/tests/AndroidManifest.xml b/packages/LineageSettingsProvider/tests/AndroidManifest.xml
index c5643174..ec333a69 100644
--- a/packages/LineageSettingsProvider/tests/AndroidManifest.xml
+++ b/packages/LineageSettingsProvider/tests/AndroidManifest.xml
@@ -14,10 +14,10 @@
limitations under the License.
-->
+ package="org.lineageos.lineagesettings.tests">
-
-
+
+
@@ -25,8 +25,8 @@
+ android:targetPackage="org.lineageos.lineagesettings.tests"
+ android:label="Lineage Settings Provider Tests" />
diff --git a/packages/LineageSettingsProvider/tests/README.md b/packages/LineageSettingsProvider/tests/README.md
index 2353967b..5b91285e 100644
--- a/packages/LineageSettingsProvider/tests/README.md
+++ b/packages/LineageSettingsProvider/tests/README.md
@@ -1,7 +1,7 @@
-## CM Settings Provider Tests
-The tests package contains coverage for the CM Settings provider as well as
+## Lineage Settings Provider Tests
+The tests package contains coverage for the Lineage Settings provider as well as
its public interfaces.
To run the tests (on a live device):
- ```adb shell am instrument -w org.cyanogenmod.cmsettings.tests/android.test.InstrumentationTestRunner```
+ ```adb shell am instrument -w org.lineageos.lineagesettings.tests/android.test.InstrumentationTestRunner```
diff --git a/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsGlobalTests.java b/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsGlobalTests.java
index 28669257..619580bb 100644
--- a/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsGlobalTests.java
+++ b/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsGlobalTests.java
@@ -14,15 +14,15 @@
* limitations under the License.
*/
-package org.cyanogenmod.cmsettings.tests;
+package org.lineageos.lineagesettings.tests;
import android.content.ContentResolver;
import android.net.Uri;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.providers.CMSettings;
+import lineageos.providers.LineageSettings;
-public class CMSettingsGlobalTests extends AndroidTestCase {
+public class LineageSettingsGlobalTests extends AndroidTestCase {
private ContentResolver mContentResolver;
private static final String UNREALISTIC_SETTING = "_______UNREAL_______";
@@ -36,14 +36,14 @@ public class CMSettingsGlobalTests extends AndroidTestCase {
@SmallTest
public void testFloat() {
final float expectedFloatValue = 1.0f;
- CMSettings.Global.putFloat(mContentResolver,
- CMSettings.Global.__MAGICAL_TEST_PASSING_ENABLER, expectedFloatValue);
+ LineageSettings.Global.putFloat(mContentResolver,
+ LineageSettings.Global.__MAGICAL_TEST_PASSING_ENABLER, expectedFloatValue);
try {
- float actualValue = CMSettings.Global.getFloat(mContentResolver,
- CMSettings.Global.__MAGICAL_TEST_PASSING_ENABLER);
+ float actualValue = LineageSettings.Global.getFloat(mContentResolver,
+ LineageSettings.Global.__MAGICAL_TEST_PASSING_ENABLER);
assertEquals(expectedFloatValue, actualValue);
- } catch (CMSettings.CMSettingNotFoundException e) {
+ } catch (LineageSettings.LineageSettingNotFoundException e) {
throw new AssertionError(e);
}
}
@@ -51,7 +51,7 @@ public class CMSettingsGlobalTests extends AndroidTestCase {
@SmallTest
public void testFloatWithDefault() {
final float expectedDefaultFloatValue = 1.5f;
- float actualValue = CMSettings.Global.getFloat(mContentResolver,
+ float actualValue = LineageSettings.Global.getFloat(mContentResolver,
UNREALISTIC_SETTING, expectedDefaultFloatValue);
assertEquals(expectedDefaultFloatValue, actualValue);
}
@@ -59,14 +59,14 @@ public class CMSettingsGlobalTests extends AndroidTestCase {
@SmallTest
public void testInt() {
final int expectedIntValue = 2;
- CMSettings.Global.putInt(mContentResolver,
- CMSettings.Global.__MAGICAL_TEST_PASSING_ENABLER, expectedIntValue);
+ LineageSettings.Global.putInt(mContentResolver,
+ LineageSettings.Global.__MAGICAL_TEST_PASSING_ENABLER, expectedIntValue);
try {
- int actualValue = CMSettings.Global.getInt(mContentResolver,
- CMSettings.Global.__MAGICAL_TEST_PASSING_ENABLER);
+ int actualValue = LineageSettings.Global.getInt(mContentResolver,
+ LineageSettings.Global.__MAGICAL_TEST_PASSING_ENABLER);
assertEquals(expectedIntValue, actualValue);
- } catch (CMSettings.CMSettingNotFoundException e) {
+ } catch (LineageSettings.LineageSettingNotFoundException e) {
throw new AssertionError(e);
}
}
@@ -74,7 +74,7 @@ public class CMSettingsGlobalTests extends AndroidTestCase {
@SmallTest
public void testIntWithDefault() {
final int expectedDefaultIntValue = 11;
- int actualValue = CMSettings.Global.getInt(mContentResolver,
+ int actualValue = LineageSettings.Global.getInt(mContentResolver,
UNREALISTIC_SETTING, expectedDefaultIntValue);
assertEquals(expectedDefaultIntValue, actualValue);
}
@@ -82,14 +82,14 @@ public class CMSettingsGlobalTests extends AndroidTestCase {
@SmallTest
public void testLong() {
final long expectedLongValue = 3l;
- CMSettings.Global.putLong(mContentResolver,
- CMSettings.Global.__MAGICAL_TEST_PASSING_ENABLER, expectedLongValue);
+ LineageSettings.Global.putLong(mContentResolver,
+ LineageSettings.Global.__MAGICAL_TEST_PASSING_ENABLER, expectedLongValue);
try {
- long actualValue = CMSettings.Global.getLong(mContentResolver,
- CMSettings.Global.__MAGICAL_TEST_PASSING_ENABLER);
+ long actualValue = LineageSettings.Global.getLong(mContentResolver,
+ LineageSettings.Global.__MAGICAL_TEST_PASSING_ENABLER);
assertEquals(expectedLongValue, actualValue);
- } catch (CMSettings.CMSettingNotFoundException e) {
+ } catch (LineageSettings.LineageSettingNotFoundException e) {
throw new AssertionError(e);
}
}
@@ -97,7 +97,7 @@ public class CMSettingsGlobalTests extends AndroidTestCase {
@SmallTest
public void testLongWithDefault() {
final long expectedDefaultLongValue = 17l;
- long actualValue = CMSettings.Global.getLong(mContentResolver,
+ long actualValue = LineageSettings.Global.getLong(mContentResolver,
UNREALISTIC_SETTING, expectedDefaultLongValue);
assertEquals(expectedDefaultLongValue, actualValue);
}
@@ -105,21 +105,21 @@ public class CMSettingsGlobalTests extends AndroidTestCase {
@SmallTest
public void testString() {
final String expectedStringValue = "4";
- CMSettings.Global.putString(mContentResolver,
- CMSettings.Global.__MAGICAL_TEST_PASSING_ENABLER, expectedStringValue);
+ LineageSettings.Global.putString(mContentResolver,
+ LineageSettings.Global.__MAGICAL_TEST_PASSING_ENABLER, expectedStringValue);
- String actualValue = CMSettings.Global.getString(mContentResolver,
- CMSettings.Global.__MAGICAL_TEST_PASSING_ENABLER);
+ String actualValue = LineageSettings.Global.getString(mContentResolver,
+ LineageSettings.Global.__MAGICAL_TEST_PASSING_ENABLER);
assertEquals(expectedStringValue, actualValue);
}
@SmallTest
public void testGetUri() {
- final Uri expectedUri = Uri.withAppendedPath(CMSettings.Global.CONTENT_URI,
- CMSettings.Global.__MAGICAL_TEST_PASSING_ENABLER);
+ final Uri expectedUri = Uri.withAppendedPath(LineageSettings.Global.CONTENT_URI,
+ LineageSettings.Global.__MAGICAL_TEST_PASSING_ENABLER);
- final Uri actualUri = CMSettings.Global.getUriFor(
- CMSettings.Global.__MAGICAL_TEST_PASSING_ENABLER);
+ final Uri actualUri = LineageSettings.Global.getUriFor(
+ LineageSettings.Global.__MAGICAL_TEST_PASSING_ENABLER);
assertEquals(expectedUri, actualUri);
}
diff --git a/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsProviderDefaultsTest.java b/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsProviderDefaultsTest.java
index 2ea0bf8e..ddb9c946 100644
--- a/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsProviderDefaultsTest.java
+++ b/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsProviderDefaultsTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.cmsettings.tests;
+package org.lineageos.lineagesettings.tests;
import android.content.ContentResolver;
import android.content.Context;
@@ -29,15 +29,15 @@ import java.util.ArrayList;
import android.text.TextUtils;
import android.util.Log;
import android.util.TypedValue;
-import cyanogenmod.providers.CMSettings;
-import org.cyanogenmod.cmsettings.CMDatabaseHelper;
-import org.cyanogenmod.cmsettings.CMSettingsProvider;
-import org.cyanogenmod.cmsettings.R;
+import lineageos.providers.LineageSettings;
+import org.lineageos.lineagesettings.LineageDatabaseHelper;
+import org.lineageos.lineagesettings.LineageSettingsProvider;
+import org.lineageos.lineagesettings.R;
/**
* Created by adnan on 1/25/16.
*/
-public class CMSettingsProviderDefaultsTest extends AndroidTestCase {
+public class LineageSettingsProviderDefaultsTest extends AndroidTestCase {
private ContentResolver mContentResolver;
private boolean mHasMigratedSettings;
private Resources mRemoteResources;
@@ -50,81 +50,81 @@ public class CMSettingsProviderDefaultsTest extends AndroidTestCase {
//SYSTEM
static {
SYSTEM_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.System.STATUS_BAR_QUICK_QS_PULLDOWN,
+ LineageSettings.System.STATUS_BAR_QUICK_QS_PULLDOWN,
"R.integer.def_qs_quick_pulldown"));
SYSTEM_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.System.NOTIFICATION_LIGHT_BRIGHTNESS_LEVEL,
+ LineageSettings.System.NOTIFICATION_LIGHT_BRIGHTNESS_LEVEL,
"R.integer.def_notification_brightness_level"));
SYSTEM_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.System.ENABLE_FORWARD_LOOKUP,
+ LineageSettings.System.ENABLE_FORWARD_LOOKUP,
"R.integer.def_forward_lookup"));
SYSTEM_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.System.ENABLE_PEOPLE_LOOKUP,
+ LineageSettings.System.ENABLE_PEOPLE_LOOKUP,
"R.integer.def_people_lookup"));
SYSTEM_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.System.ENABLE_REVERSE_LOOKUP,
+ LineageSettings.System.ENABLE_REVERSE_LOOKUP,
"R.integer.def_reverse_lookup"));
SYSTEM_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.System.NOTIFICATION_LIGHT_MULTIPLE_LEDS_ENABLE,
+ LineageSettings.System.NOTIFICATION_LIGHT_MULTIPLE_LEDS_ENABLE,
"R.bool.def_notification_multiple_leds"));
SYSTEM_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.System.SYSTEM_PROFILES_ENABLED,
+ LineageSettings.System.SYSTEM_PROFILES_ENABLED,
"R.bool.def_profiles_enabled"));
SYSTEM_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_ENABLE,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_ENABLE,
"R.bool.def_notification_pulse_custom_enable"));
SYSTEM_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.System.SWAP_VOLUME_KEYS_ON_ROTATION,
+ LineageSettings.System.SWAP_VOLUME_KEYS_ON_ROTATION,
"R.bool.def_swap_volume_keys_on_rotation"));
SYSTEM_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_VALUES,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_VALUES,
"R.string.def_notification_pulse_custom_value"));
SYSTEM_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.System.STATUS_BAR_BATTERY_STYLE,
+ LineageSettings.System.STATUS_BAR_BATTERY_STYLE,
"R.integer.def_battery_style"));
}
//SECURE
static {
SECURE_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.Secure.ADVANCED_MODE,
+ LineageSettings.Secure.ADVANCED_MODE,
"R.bool.def_advanced_mode"));
SECURE_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.Secure.QS_USE_MAIN_TILES,
+ LineageSettings.Secure.QS_USE_MAIN_TILES,
"R.bool.def_sysui_qs_main_tiles"));
SECURE_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.Secure.STATS_COLLECTION,
+ LineageSettings.Secure.STATS_COLLECTION,
"R.bool.def_stats_collection"));
SECURE_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.Secure.LOCKSCREEN_VISUALIZER_ENABLED,
+ LineageSettings.Secure.LOCKSCREEN_VISUALIZER_ENABLED,
"R.bool.def_lockscreen_visualizer"));
SECURE_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.Secure.DEFAULT_THEME_COMPONENTS,
+ LineageSettings.Secure.DEFAULT_THEME_COMPONENTS,
"R.string.def_theme_components"));
SECURE_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.Secure.DEFAULT_THEME_PACKAGE,
+ LineageSettings.Secure.DEFAULT_THEME_PACKAGE,
"R.string.def_theme_package"));
SECURE_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.Secure.PROTECTED_COMPONENT_MANAGERS,
+ LineageSettings.Secure.PROTECTED_COMPONENT_MANAGERS,
"R.string.def_protected_component_managers"));
}
//GLOBAL
static {
GLOBAL_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.Global.POWER_NOTIFICATIONS_ENABLED,
+ LineageSettings.Global.POWER_NOTIFICATIONS_ENABLED,
"R.bool.def_power_notifications_enabled"));
GLOBAL_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.Global.POWER_NOTIFICATIONS_VIBRATE,
+ LineageSettings.Global.POWER_NOTIFICATIONS_VIBRATE,
"R.bool.def_power_notifications_vibrate"));
GLOBAL_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.Global.POWER_NOTIFICATIONS_RINGTONE,
+ LineageSettings.Global.POWER_NOTIFICATIONS_RINGTONE,
"R.string.def_power_notifications_ringtone"));
GLOBAL_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.Global.WEATHER_TEMPERATURE_UNIT,
+ LineageSettings.Global.WEATHER_TEMPERATURE_UNIT,
"R.integer.def_temperature_unit"));
GLOBAL_SETTINGS_DEFAULTS.add(new Setting(
- CMSettings.Global.DEV_FORCE_SHOW_NAVBAR,
+ LineageSettings.Global.DEV_FORCE_SHOW_NAVBAR,
"R.integer.def_force_show_navbar"));
}
@@ -132,17 +132,17 @@ public class CMSettingsProviderDefaultsTest extends AndroidTestCase {
protected void setUp() throws Exception {
super.setUp();
mContentResolver = getContext().getContentResolver();
- mHasMigratedSettings = getContext().getSharedPreferences(CMSettingsProvider.TAG,
- Context.MODE_PRIVATE).getBoolean(CMSettingsProvider.PREF_HAS_MIGRATED_CM_SETTINGS,
+ mHasMigratedSettings = getContext().getSharedPreferences(LineageSettingsProvider.TAG,
+ Context.MODE_PRIVATE).getBoolean(LineageSettingsProvider.PREF_HAS_MIGRATED_LINEAGE_SETTINGS,
false);
- mRemoteResources = getRemoteResources("org.cyanogenmod.cmsettings");
+ mRemoteResources = getRemoteResources("org.lineageos.lineagesettings");
}
@SmallTest
public void testVerifySystemSettingsDefault() {
if (verifyNotMigratedSettings()) {
for (Setting setting : SYSTEM_SETTINGS_DEFAULTS) {
- verifyDefaultSettingForTable(setting, CMDatabaseHelper.CMTableNames.TABLE_SYSTEM);
+ verifyDefaultSettingForTable(setting, LineageDatabaseHelper.LineageTableNames.TABLE_SYSTEM);
}
}
}
@@ -151,7 +151,7 @@ public class CMSettingsProviderDefaultsTest extends AndroidTestCase {
public void testVerifySecureSettingsDefaults() {
if (verifyNotMigratedSettings()) {
for (Setting setting : SECURE_SETTINGS_DEFAULTS) {
- verifyDefaultSettingForTable(setting, CMDatabaseHelper.CMTableNames.TABLE_SECURE);
+ verifyDefaultSettingForTable(setting, LineageDatabaseHelper.LineageTableNames.TABLE_SECURE);
}
}
}
@@ -160,7 +160,7 @@ public class CMSettingsProviderDefaultsTest extends AndroidTestCase {
public void testVerifyGlobalSettingsDefaults() {
if (verifyNotMigratedSettings()) {
for (Setting setting : GLOBAL_SETTINGS_DEFAULTS) {
- verifyDefaultSettingForTable(setting, CMDatabaseHelper.CMTableNames.TABLE_GLOBAL);
+ verifyDefaultSettingForTable(setting, LineageDatabaseHelper.LineageTableNames.TABLE_GLOBAL);
}
}
}
@@ -173,7 +173,7 @@ public class CMSettingsProviderDefaultsTest extends AndroidTestCase {
TypedValue value = new TypedValue();
try {
int identifier = mRemoteResources.getIdentifier(
- setting.mDefResName, setting.mType, "org.cyanogenmod.cmsettings");
+ setting.mDefResName, setting.mType, "org.lineageos.lineagesettings");
mRemoteResources.getValue(identifier, value, true);
} catch (Resources.NotFoundException e) {
// Resource not found, can't verify because it probably wasn't loaded in
@@ -220,23 +220,23 @@ public class CMSettingsProviderDefaultsTest extends AndroidTestCase {
case TypedValue.TYPE_NULL:
break;
}
- } catch (CMSettings.CMSettingNotFoundException e) {
+ } catch (LineageSettings.LineageSettingNotFoundException e) {
e.printStackTrace();
throw new AssertionError("Setting " + setting.mKey + " not found!");
}
}
private int getIntForTable(Setting setting, String table)
- throws CMSettings.CMSettingNotFoundException {
+ throws LineageSettings.LineageSettingNotFoundException {
switch (table) {
- case CMDatabaseHelper.CMTableNames.TABLE_SYSTEM:
- return CMSettings.System.getIntForUser(mContentResolver, setting.mKey,
+ case LineageDatabaseHelper.LineageTableNames.TABLE_SYSTEM:
+ return LineageSettings.System.getIntForUser(mContentResolver, setting.mKey,
UserHandle.USER_OWNER);
- case CMDatabaseHelper.CMTableNames.TABLE_SECURE:
- return CMSettings.Secure.getIntForUser(mContentResolver, setting.mKey,
+ case LineageDatabaseHelper.LineageTableNames.TABLE_SECURE:
+ return LineageSettings.Secure.getIntForUser(mContentResolver, setting.mKey,
UserHandle.USER_OWNER);
- case CMDatabaseHelper.CMTableNames.TABLE_GLOBAL:
- return CMSettings.Global.getIntForUser(mContentResolver, setting.mKey,
+ case LineageDatabaseHelper.LineageTableNames.TABLE_GLOBAL:
+ return LineageSettings.Global.getIntForUser(mContentResolver, setting.mKey,
UserHandle.USER_OWNER);
default:
throw new AssertionError("Invalid or empty table!");
@@ -244,16 +244,16 @@ public class CMSettingsProviderDefaultsTest extends AndroidTestCase {
}
private String getStringForTable(Setting setting, String table)
- throws CMSettings.CMSettingNotFoundException {
+ throws LineageSettings.LineageSettingNotFoundException {
switch (table) {
- case CMDatabaseHelper.CMTableNames.TABLE_SYSTEM:
- return CMSettings.System.getStringForUser(mContentResolver, setting.mKey,
+ case LineageDatabaseHelper.LineageTableNames.TABLE_SYSTEM:
+ return LineageSettings.System.getStringForUser(mContentResolver, setting.mKey,
UserHandle.USER_OWNER);
- case CMDatabaseHelper.CMTableNames.TABLE_SECURE:
- return CMSettings.Secure.getStringForUser(mContentResolver, setting.mKey,
+ case LineageDatabaseHelper.LineageTableNames.TABLE_SECURE:
+ return LineageSettings.Secure.getStringForUser(mContentResolver, setting.mKey,
UserHandle.USER_OWNER);
- case CMDatabaseHelper.CMTableNames.TABLE_GLOBAL:
- return CMSettings.Global.getStringForUser(mContentResolver, setting.mKey,
+ case LineageDatabaseHelper.LineageTableNames.TABLE_GLOBAL:
+ return LineageSettings.Global.getStringForUser(mContentResolver, setting.mKey,
UserHandle.USER_OWNER);
default:
throw new AssertionError("Invalid or empty table!");
diff --git a/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsProviderTest.java b/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsProviderTest.java
index c4db088a..17908ffe 100644
--- a/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsProviderTest.java
+++ b/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsProviderTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.cmsettings.tests;
+package org.lineageos.lineagesettings.tests;
import android.content.ContentResolver;
import android.content.ContentValues;
@@ -32,14 +32,14 @@ import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.MediumTest;
import android.test.suitebuilder.annotation.SmallTest;
import android.text.TextUtils;
-import cyanogenmod.providers.CMSettings;
-import org.cyanogenmod.cmsettings.CMSettingsProvider;
+import lineageos.providers.LineageSettings;
+import org.lineageos.lineagesettings.LineageSettingsProvider;
import java.util.LinkedHashMap;
import java.util.Map;
- public class CMSettingsProviderTest extends AndroidTestCase {
- private static final String TAG = "CMSettingsProviderTest";
+ public class LineageSettingsProviderTest extends AndroidTestCase {
+ private static final String TAG = "LineageSettingsProviderTest";
private static final LinkedHashMap sMap = new LinkedHashMap();
@@ -70,7 +70,7 @@ import java.util.Map;
}
@MediumTest
- public void testMigrateCMSettingsForOtherUser() {
+ public void testMigrateLineageSettingsForOtherUser() {
// Make sure there's an owner
assertTrue(findUser(mUserManager, UserHandle.USER_OWNER));
@@ -81,19 +81,19 @@ import java.util.Map;
}
/**
- * make sure that queries to SettingsProvider are forwarded to CMSettingsProvider as needed
- * See {@link cyanogenmod.providers.CMSettings.System#shouldInterceptSystemProvider(String)}
+ * make sure that queries to SettingsProvider are forwarded to LineageSettingsProvider as needed
+ * See {@link lineageos.providers.LineageSettings.System#shouldInterceptSystemProvider(String)}
*
* Currently this test only checks that
- * {@link cyanogenmod.providers.CMSettings.System#SYSTEM_PROFILES_ENABLED} is expected to
+ * {@link lineageos.providers.LineageSettings.System#SYSTEM_PROFILES_ENABLED} is expected to
* be forwarded, and is forwarded.
*/
@SmallTest
public void testSettingsProviderKeyForwarding() {
- String forwardedKey = CMSettings.System.SYSTEM_PROFILES_ENABLED;
+ String forwardedKey = LineageSettings.System.SYSTEM_PROFILES_ENABLED;
// make sure the key should be forwarded
- assertTrue(CMSettings.System.shouldInterceptSystemProvider(forwardedKey));
+ assertTrue(LineageSettings.System.shouldInterceptSystemProvider(forwardedKey));
// put value 1 into Settings provider:
// let's try to disable the profiles via the Settings provider
@@ -104,23 +104,23 @@ import java.util.Map;
assertEquals("0", Settings.System.getStringForUser(getContext().getContentResolver(),
forwardedKey, UserHandle.USER_CURRENT));
- // put value 2 into CMSettings provider
- CMSettings.System.putStringForUser(mContentResolver,
+ // put value 2 into LineageSettings provider
+ LineageSettings.System.putStringForUser(mContentResolver,
forwardedKey, "1", UserHandle.USER_CURRENT);
- assertEquals("1", CMSettings.System.getStringForUser(getContext().getContentResolver(),
+ assertEquals("1", LineageSettings.System.getStringForUser(getContext().getContentResolver(),
forwardedKey, UserHandle.USER_CURRENT));
// assert reading from both returns value 2
- final String cmProviderValue = CMSettings.System.getStringForUser(
+ final String lineageProviderValue = LineageSettings.System.getStringForUser(
getContext().getContentResolver(), forwardedKey, UserHandle.USER_CURRENT);
final String settingsProviderValue = Settings.System.getStringForUser(
getContext().getContentResolver(), forwardedKey, UserHandle.USER_CURRENT);
- assertEquals(cmProviderValue, settingsProviderValue);
+ assertEquals(lineageProviderValue, settingsProviderValue);
}
/**
- * The new {@link CMSettings.Secure#CM_SETUP_WIZARD_COMPLETED} cm specific provisioned flag
+ * The new {@link LineageSettings.Secure#LINEAGE_SETUP_WIZARD_COMPLETED} lineage specific provisioned flag
* should be equal to the old {@link Settings.Global#DEVICE_PROVISIONED} flag on boot, or on
* upgrade. These flags will almost always be equal, except during the provisioning process,
* they may change at slightly different times.
@@ -132,50 +132,50 @@ import java.util.Map;
*/
@Deprecated
@SmallTest
- public void testCMProvisionedFlagFallbackSet() {
- final String newCmFlag = CMSettings.Secure.getStringForUser(
- getContext().getContentResolver(), CMSettings.Secure.CM_SETUP_WIZARD_COMPLETED,
+ public void testLineageProvisionedFlagFallbackSet() {
+ final String newLineageFlag = LineageSettings.Secure.getStringForUser(
+ getContext().getContentResolver(), LineageSettings.Secure.LINEAGE_SETUP_WIZARD_COMPLETED,
UserHandle.USER_OWNER);
- assertNotNull(newCmFlag);
+ assertNotNull(newLineageFlag);
final String previousFlag = Settings.Global.getStringForUser(
getContext().getContentResolver(), Settings.Global.DEVICE_PROVISIONED,
UserHandle.USER_OWNER);
- assertEquals(previousFlag, newCmFlag);
+ assertEquals(previousFlag, newLineageFlag);
}
private void testMigrateSettingsForUser(int userId) {
// Setup values in Settings
/*final String expectedPullDownValue = "testQuickPullDownValue";
Settings.System.putStringForUser(mContentResolver,
- CMSettingsProvider.LegacyCMSettings.STATUS_BAR_QUICK_QS_PULLDOWN,
+ LineageSettingsProvider.LegacyLineageSettings.STATUS_BAR_QUICK_QS_PULLDOWN,
expectedPullDownValue, userId);
final int expectedKeyboardBrightness = 4;
Settings.Secure.putIntForUser(mContentResolver,
- CMSettingsProvider.LegacyCMSettings.KEYBOARD_BRIGHTNESS,
+ LineageSettingsProvider.LegacyLineageSettings.KEYBOARD_BRIGHTNESS,
expectedKeyboardBrightness, userId);
Bundle arg = new Bundle();
- arg.putInt(CMSettings.CALL_METHOD_USER_KEY, userId);
+ arg.putInt(LineageSettings.CALL_METHOD_USER_KEY, userId);
IContentProvider contentProvider = mContentResolver.acquireProvider(
- CMSettings.AUTHORITY);
+ LineageSettings.AUTHORITY);
try{
// Trigger migrate settings for guest
contentProvider.call(mContentResolver.getPackageName(),
- CMSettings.CALL_METHOD_MIGRATE_SETTINGS_FOR_USER, null, arg);
+ LineageSettings.CALL_METHOD_MIGRATE_SETTINGS_FOR_USER, null, arg);
} catch (RemoteException ex) {
fail("Failed to trigger settings migration due to RemoteException");
}
// Check values
- final String actualPullDownValue = CMSettings.System.getStringForUser(mContentResolver,
- CMSettings.System.QS_QUICK_PULLDOWN, userId);
+ final String actualPullDownValue = LineageSettings.System.getStringForUser(mContentResolver,
+ LineageSettings.System.QS_QUICK_PULLDOWN, userId);
assertEquals(expectedPullDownValue, actualPullDownValue);
- final int actualKeyboardBrightness = CMSettings.Secure.getIntForUser(mContentResolver,
- CMSettings.Secure.KEYBOARD_BRIGHTNESS, -1, userId);
+ final int actualKeyboardBrightness = LineageSettings.Secure.getIntForUser(mContentResolver,
+ LineageSettings.Secure.KEYBOARD_BRIGHTNESS, -1, userId);
assertEquals(expectedKeyboardBrightness, actualKeyboardBrightness);*/
}
@@ -204,9 +204,9 @@ import java.util.Map;
contentValues[count++] = contentValue;
}
- testBulkInsertForUri(CMSettings.System.CONTENT_URI, contentValues, keyValues);
- testBulkInsertForUri(CMSettings.Secure.CONTENT_URI, contentValues, keyValues);
- testBulkInsertForUri(CMSettings.Global.CONTENT_URI, contentValues, keyValues);
+ testBulkInsertForUri(LineageSettings.System.CONTENT_URI, contentValues, keyValues);
+ testBulkInsertForUri(LineageSettings.Secure.CONTENT_URI, contentValues, keyValues);
+ testBulkInsertForUri(LineageSettings.Global.CONTENT_URI, contentValues, keyValues);
}
private void testBulkInsertForUri(Uri uri, ContentValues[] contentValues, String[] keyValues) {
@@ -248,9 +248,9 @@ import java.util.Map;
@MediumTest
public void testInsertUpdateDeleteSuccess() {
- //testInsertUpdateDeleteForUri(CMSettings.System.CONTENT_URI);
- testInsertUpdateDeleteForUri(CMSettings.Secure.CONTENT_URI);
- testInsertUpdateDeleteForUri(CMSettings.Global.CONTENT_URI);
+ //testInsertUpdateDeleteForUri(LineageSettings.System.CONTENT_URI);
+ testInsertUpdateDeleteForUri(LineageSettings.Secure.CONTENT_URI);
+ testInsertUpdateDeleteForUri(LineageSettings.Global.CONTENT_URI);
}
private void testInsertUpdateDeleteForUri(Uri uri) {
diff --git a/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsSecureTests.java b/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsSecureTests.java
index 434b95df..b27accad 100644
--- a/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsSecureTests.java
+++ b/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsSecureTests.java
@@ -14,15 +14,15 @@
* limitations under the License.
*/
-package org.cyanogenmod.cmsettings.tests;
+package org.lineageos.lineagesettings.tests;
import android.content.ContentResolver;
import android.net.Uri;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.providers.CMSettings;
+import lineageos.providers.LineageSettings;
-public class CMSettingsSecureTests extends AndroidTestCase {
+public class LineageSettingsSecureTests extends AndroidTestCase {
private ContentResolver mContentResolver;
private static final String UNREALISTIC_SETTING = "_______UNREAL_______";
@@ -36,14 +36,14 @@ public class CMSettingsSecureTests extends AndroidTestCase {
@SmallTest
public void testFloat() {
final float expectedFloatValue = 1.0f;
- CMSettings.Secure.putFloat(mContentResolver,
- CMSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER, expectedFloatValue);
+ LineageSettings.Secure.putFloat(mContentResolver,
+ LineageSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER, expectedFloatValue);
try {
- float actualValue = CMSettings.Secure.getFloat(mContentResolver,
- CMSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER);
+ float actualValue = LineageSettings.Secure.getFloat(mContentResolver,
+ LineageSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER);
assertEquals(expectedFloatValue, actualValue);
- } catch (CMSettings.CMSettingNotFoundException e) {
+ } catch (LineageSettings.LineageSettingNotFoundException e) {
throw new AssertionError(e);
}
}
@@ -51,7 +51,7 @@ public class CMSettingsSecureTests extends AndroidTestCase {
@SmallTest
public void testFloatWithDefault() {
final float expectedDefaultFloatValue = 1.5f;
- float actualValue = CMSettings.Secure.getFloat(mContentResolver,
+ float actualValue = LineageSettings.Secure.getFloat(mContentResolver,
UNREALISTIC_SETTING, expectedDefaultFloatValue);
assertEquals(expectedDefaultFloatValue, actualValue);
}
@@ -59,14 +59,14 @@ public class CMSettingsSecureTests extends AndroidTestCase {
@SmallTest
public void testInt() {
final int expectedIntValue = 2;
- CMSettings.Secure.putInt(mContentResolver,
- CMSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER, expectedIntValue);
+ LineageSettings.Secure.putInt(mContentResolver,
+ LineageSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER, expectedIntValue);
try {
- int actualValue = CMSettings.Secure.getInt(mContentResolver,
- CMSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER);
+ int actualValue = LineageSettings.Secure.getInt(mContentResolver,
+ LineageSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER);
assertEquals(expectedIntValue, actualValue);
- } catch (CMSettings.CMSettingNotFoundException e) {
+ } catch (LineageSettings.LineageSettingNotFoundException e) {
throw new AssertionError(e);
}
}
@@ -74,7 +74,7 @@ public class CMSettingsSecureTests extends AndroidTestCase {
@SmallTest
public void testIntWithDefault() {
final int expectedDefaultIntValue = 11;
- int actualValue = CMSettings.Secure.getInt(mContentResolver,
+ int actualValue = LineageSettings.Secure.getInt(mContentResolver,
UNREALISTIC_SETTING, expectedDefaultIntValue);
assertEquals(expectedDefaultIntValue, actualValue);
}
@@ -82,14 +82,14 @@ public class CMSettingsSecureTests extends AndroidTestCase {
@SmallTest
public void testLong() {
final long expectedLongValue = 3l;
- CMSettings.Secure.putLong(mContentResolver,
- CMSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER, expectedLongValue);
+ LineageSettings.Secure.putLong(mContentResolver,
+ LineageSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER, expectedLongValue);
try {
- long actualValue = CMSettings.Secure.getLong(mContentResolver,
- CMSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER);
+ long actualValue = LineageSettings.Secure.getLong(mContentResolver,
+ LineageSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER);
assertEquals(expectedLongValue, actualValue);
- } catch (CMSettings.CMSettingNotFoundException e) {
+ } catch (LineageSettings.LineageSettingNotFoundException e) {
throw new AssertionError(e);
}
}
@@ -97,7 +97,7 @@ public class CMSettingsSecureTests extends AndroidTestCase {
@SmallTest
public void testLongWithDefault() {
final long expectedDefaultLongValue = 17l;
- long actualValue = CMSettings.Secure.getLong(mContentResolver,
+ long actualValue = LineageSettings.Secure.getLong(mContentResolver,
UNREALISTIC_SETTING, expectedDefaultLongValue);
assertEquals(expectedDefaultLongValue, actualValue);
}
@@ -105,21 +105,21 @@ public class CMSettingsSecureTests extends AndroidTestCase {
@SmallTest
public void testString() {
final String expectedStringValue = "4";
- CMSettings.Secure.putString(mContentResolver,
- CMSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER, expectedStringValue);
+ LineageSettings.Secure.putString(mContentResolver,
+ LineageSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER, expectedStringValue);
- String actualValue = CMSettings.Secure.getString(mContentResolver,
- CMSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER);
+ String actualValue = LineageSettings.Secure.getString(mContentResolver,
+ LineageSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER);
assertEquals(expectedStringValue, actualValue);
}
@SmallTest
public void testGetUri() {
- final Uri expectedUri = Uri.withAppendedPath(CMSettings.Secure.CONTENT_URI,
- CMSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER);
+ final Uri expectedUri = Uri.withAppendedPath(LineageSettings.Secure.CONTENT_URI,
+ LineageSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER);
- final Uri actualUri = CMSettings.Secure.getUriFor(
- CMSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER);
+ final Uri actualUri = LineageSettings.Secure.getUriFor(
+ LineageSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER);
assertEquals(expectedUri, actualUri);
}
diff --git a/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsSystemTests.java b/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsSystemTests.java
index da968bd7..101a60f4 100644
--- a/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsSystemTests.java
+++ b/packages/LineageSettingsProvider/tests/src/org/lineageos/lineagesettings/tests/LineageSettingsSystemTests.java
@@ -14,15 +14,15 @@
* limitations under the License.
*/
-package org.cyanogenmod.cmsettings.tests;
+package org.lineageos.lineagesettings.tests;
import android.content.ContentResolver;
import android.net.Uri;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.providers.CMSettings;
+import lineageos.providers.LineageSettings;
-public class CMSettingsSystemTests extends AndroidTestCase {
+public class LineageSettingsSystemTests extends AndroidTestCase {
private ContentResolver mContentResolver;
private static final String UNREALISTIC_SETTING = "_______UNREAL_______";
@@ -36,14 +36,14 @@ public class CMSettingsSystemTests extends AndroidTestCase {
@SmallTest
public void testFloat() {
final float expectedFloatValue = 1.0f;
- CMSettings.System.putFloat(mContentResolver,
- CMSettings.System.__MAGICAL_TEST_PASSING_ENABLER, expectedFloatValue);
+ LineageSettings.System.putFloat(mContentResolver,
+ LineageSettings.System.__MAGICAL_TEST_PASSING_ENABLER, expectedFloatValue);
try {
- float actualValue = CMSettings.System.getFloat(mContentResolver,
- CMSettings.System.__MAGICAL_TEST_PASSING_ENABLER);
+ float actualValue = LineageSettings.System.getFloat(mContentResolver,
+ LineageSettings.System.__MAGICAL_TEST_PASSING_ENABLER);
assertEquals(expectedFloatValue, actualValue);
- } catch (CMSettings.CMSettingNotFoundException e) {
+ } catch (LineageSettings.LineageSettingNotFoundException e) {
throw new AssertionError(e);
}
}
@@ -51,7 +51,7 @@ public class CMSettingsSystemTests extends AndroidTestCase {
@SmallTest
public void testFloatWithDefault() {
final float expectedDefaultFloatValue = 1.5f;
- float actualValue = CMSettings.System.getFloat(mContentResolver,
+ float actualValue = LineageSettings.System.getFloat(mContentResolver,
UNREALISTIC_SETTING, expectedDefaultFloatValue);
assertEquals(expectedDefaultFloatValue, actualValue);
}
@@ -59,14 +59,14 @@ public class CMSettingsSystemTests extends AndroidTestCase {
@SmallTest
public void testInt() {
final int expectedIntValue = 2;
- CMSettings.System.putInt(mContentResolver,
- CMSettings.System.__MAGICAL_TEST_PASSING_ENABLER, expectedIntValue);
+ LineageSettings.System.putInt(mContentResolver,
+ LineageSettings.System.__MAGICAL_TEST_PASSING_ENABLER, expectedIntValue);
try {
- int actualValue = CMSettings.System.getInt(mContentResolver,
- CMSettings.System.__MAGICAL_TEST_PASSING_ENABLER);
+ int actualValue = LineageSettings.System.getInt(mContentResolver,
+ LineageSettings.System.__MAGICAL_TEST_PASSING_ENABLER);
assertEquals(expectedIntValue, actualValue);
- } catch (CMSettings.CMSettingNotFoundException e) {
+ } catch (LineageSettings.LineageSettingNotFoundException e) {
throw new AssertionError(e);
}
}
@@ -74,7 +74,7 @@ public class CMSettingsSystemTests extends AndroidTestCase {
@SmallTest
public void testIntWithDefault() {
final int expectedDefaultIntValue = 11;
- int actualValue = CMSettings.System.getInt(mContentResolver,
+ int actualValue = LineageSettings.System.getInt(mContentResolver,
UNREALISTIC_SETTING, expectedDefaultIntValue);
assertEquals(expectedDefaultIntValue, actualValue);
}
@@ -82,14 +82,14 @@ public class CMSettingsSystemTests extends AndroidTestCase {
@SmallTest
public void testLong() {
final long expectedLongValue = 3l;
- CMSettings.System.putLong(mContentResolver,
- CMSettings.System.__MAGICAL_TEST_PASSING_ENABLER, expectedLongValue);
+ LineageSettings.System.putLong(mContentResolver,
+ LineageSettings.System.__MAGICAL_TEST_PASSING_ENABLER, expectedLongValue);
try {
- long actualValue = CMSettings.System.getLong(mContentResolver,
- CMSettings.System.__MAGICAL_TEST_PASSING_ENABLER);
+ long actualValue = LineageSettings.System.getLong(mContentResolver,
+ LineageSettings.System.__MAGICAL_TEST_PASSING_ENABLER);
assertEquals(expectedLongValue, actualValue);
- } catch (CMSettings.CMSettingNotFoundException e) {
+ } catch (LineageSettings.LineageSettingNotFoundException e) {
throw new AssertionError(e);
}
}
@@ -97,7 +97,7 @@ public class CMSettingsSystemTests extends AndroidTestCase {
@SmallTest
public void testLongWithDefault() {
final long expectedDefaultLongValue = 17l;
- long actualValue = CMSettings.System.getLong(mContentResolver,
+ long actualValue = LineageSettings.System.getLong(mContentResolver,
UNREALISTIC_SETTING, expectedDefaultLongValue);
assertEquals(expectedDefaultLongValue, actualValue);
}
@@ -105,21 +105,21 @@ public class CMSettingsSystemTests extends AndroidTestCase {
@SmallTest
public void testString() {
final String expectedStringValue = "4";
- CMSettings.System.putString(mContentResolver,
- CMSettings.System.__MAGICAL_TEST_PASSING_ENABLER, expectedStringValue);
+ LineageSettings.System.putString(mContentResolver,
+ LineageSettings.System.__MAGICAL_TEST_PASSING_ENABLER, expectedStringValue);
- String actualValue = CMSettings.System.getString(mContentResolver,
- CMSettings.System.__MAGICAL_TEST_PASSING_ENABLER);
+ String actualValue = LineageSettings.System.getString(mContentResolver,
+ LineageSettings.System.__MAGICAL_TEST_PASSING_ENABLER);
assertEquals(expectedStringValue, actualValue);
}
@SmallTest
public void testGetUri() {
- final Uri expectedUri = Uri.withAppendedPath(CMSettings.System.CONTENT_URI,
- CMSettings.System.__MAGICAL_TEST_PASSING_ENABLER);
+ final Uri expectedUri = Uri.withAppendedPath(LineageSettings.System.CONTENT_URI,
+ LineageSettings.System.__MAGICAL_TEST_PASSING_ENABLER);
- final Uri actualUri = CMSettings.System.getUriFor(
- CMSettings.System.__MAGICAL_TEST_PASSING_ENABLER);
+ final Uri actualUri = LineageSettings.System.getUriFor(
+ LineageSettings.System.__MAGICAL_TEST_PASSING_ENABLER);
assertEquals(expectedUri, actualUri);
}
diff --git a/samples/customtiles/Android.mk b/samples/customtiles/Android.mk
index 98d54875..75406341 100644
--- a/samples/customtiles/Android.mk
+++ b/samples/customtiles/Android.mk
@@ -2,10 +2,10 @@ LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_STATIC_JAVA_LIBRARIES := \
- org.cyanogenmod.platform.sdk
+ org.lineageos.platform.sdk
LOCAL_SRC_FILES := $(call all-subdir-java-files)
-LOCAL_PACKAGE_NAME := CMCustomTiles
+LOCAL_PACKAGE_NAME := LineageCustomTiles
include $(BUILD_PACKAGE)
\ No newline at end of file
diff --git a/samples/customtiles/AndroidManifest.xml b/samples/customtiles/AndroidManifest.xml
index 166374b6..9eaa717f 100644
--- a/samples/customtiles/AndroidManifest.xml
+++ b/samples/customtiles/AndroidManifest.xml
@@ -1,10 +1,10 @@
-
+
-
+
diff --git a/samples/customtiles/src/org/lineageos/samples/customtiles/MainActivity.java b/samples/customtiles/src/org/lineageos/samples/customtiles/MainActivity.java
index b71eef49..f6c51a40 100644
--- a/samples/customtiles/src/org/lineageos/samples/customtiles/MainActivity.java
+++ b/samples/customtiles/src/org/lineageos/samples/customtiles/MainActivity.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.samples.customtiles;
+package org.lineageos.samples.customtiles;
import android.app.Activity;
import android.app.PendingIntent;
@@ -26,10 +26,10 @@ import android.os.Bundle;
import android.view.View;
import android.widget.Button;
-import cyanogenmod.app.CMStatusBarManager;
-import cyanogenmod.app.CustomTile;
+import lineageos.app.LineageStatusBarManager;
+import lineageos.app.CustomTile;
-import org.cyanogenmod.samples.customtiles.R;
+import org.lineageos.samples.customtiles.R;
import java.util.ArrayList;
@@ -43,7 +43,7 @@ public class MainActivity extends Activity implements View.OnClickListener {
public static final int CUSTOM_TILE_LIST_ID = 2;
public static final int CUSTOM_TILE_GRID_ID = 3;
public static final String ACTION_TOGGLE_STATE =
- "org.cyanogenmod.samples.customtiles.ACTION_TOGGLE_STATE";
+ "org.lineageos.samples.customtiles.ACTION_TOGGLE_STATE";
public static final String STATE = "state";
private Button mCustomTileButton;
@@ -87,7 +87,7 @@ public class MainActivity extends Activity implements View.OnClickListener {
.shouldCollapsePanel(false)
.setIcon(R.drawable.ic_launcher)
.build();
- CMStatusBarManager.getInstance(this)
+ LineageStatusBarManager.getInstance(this)
.publishTile(CUSTOM_TILE_ID, mCustomTile);
break;
case R.id.custom_tile_list_expanded_button:
@@ -111,7 +111,7 @@ public class MainActivity extends Activity implements View.OnClickListener {
.setLabel("CustomTile Expanded List")
.setIcon(R.drawable.ic_launcher)
.build();
- CMStatusBarManager.getInstance(this)
+ LineageStatusBarManager.getInstance(this)
.publishTile(CUSTOM_TILE_LIST_ID, mCustomTile);
break;
case R.id.custom_tile_grid_expanded_button:
@@ -133,7 +133,7 @@ public class MainActivity extends Activity implements View.OnClickListener {
.setLabel("CustomTile Expanded Grid")
.setIcon(R.drawable.ic_launcher)
.build();
- CMStatusBarManager.getInstance(this)
+ LineageStatusBarManager.getInstance(this)
.publishTile(CUSTOM_TILE_GRID_ID, mCustomTile);
break;
}
diff --git a/samples/customtiles/src/org/lineageos/samples/customtiles/States.java b/samples/customtiles/src/org/lineageos/samples/customtiles/States.java
index b11a535a..5f9b203f 100644
--- a/samples/customtiles/src/org/lineageos/samples/customtiles/States.java
+++ b/samples/customtiles/src/org/lineageos/samples/customtiles/States.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.samples.customtiles;
+package org.lineageos.samples.customtiles;
/**
* Created by Adnan on 4/30/15.
diff --git a/samples/customtiles/src/org/lineageos/samples/customtiles/TileReceiver.java b/samples/customtiles/src/org/lineageos/samples/customtiles/TileReceiver.java
index 4d516999..49e53d36 100644
--- a/samples/customtiles/src/org/lineageos/samples/customtiles/TileReceiver.java
+++ b/samples/customtiles/src/org/lineageos/samples/customtiles/TileReceiver.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.samples.customtiles;
+package org.lineageos.samples.customtiles;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
@@ -23,10 +23,10 @@ import android.content.Intent;
import android.net.Uri;
import android.text.TextUtils;
-import cyanogenmod.app.CMStatusBarManager;
-import cyanogenmod.app.CustomTile;
+import lineageos.app.LineageStatusBarManager;
+import lineageos.app.CustomTile;
-import org.cyanogenmod.samples.customtiles.R;
+import org.lineageos.samples.customtiles.R;
/**
* Created by Adnan on 4/30/15.
@@ -65,7 +65,7 @@ public class TileReceiver extends BroadcastReceiver {
.setIcon(R.drawable.ic_launcher)
.build();
- CMStatusBarManager.getInstance(context)
+ LineageStatusBarManager.getInstance(context)
.publishTile(MainActivity.CUSTOM_TILE_ID, customTile);
}
}
diff --git a/samples/externalviews/keyguardviewprovider/Android.mk b/samples/externalviews/keyguardviewprovider/Android.mk
index 730e7bc8..017f09c2 100644
--- a/samples/externalviews/keyguardviewprovider/Android.mk
+++ b/samples/externalviews/keyguardviewprovider/Android.mk
@@ -15,11 +15,11 @@ LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_STATIC_JAVA_LIBRARIES := \
- org.cyanogenmod.platform.sdk
+ org.lineageos.platform.sdk
LOCAL_SRC_FILES := $(call all-java-files-under, src/)
-LOCAL_PACKAGE_NAME := CMKeyguardExternalViewProvider
+LOCAL_PACKAGE_NAME := LineageKeyguardExternalViewProvider
# Need a permission that is signature|privileged
LOCAL_PRIVILEGED_MODULE := true
diff --git a/samples/externalviews/keyguardviewprovider/AndroidManifest.xml b/samples/externalviews/keyguardviewprovider/AndroidManifest.xml
index 75a80bd2..390ec766 100644
--- a/samples/externalviews/keyguardviewprovider/AndroidManifest.xml
+++ b/samples/externalviews/keyguardviewprovider/AndroidManifest.xml
@@ -15,23 +15,23 @@
limitations under the License.
-->
-
+
-
+
diff --git a/samples/externalviews/keyguardviewprovider/res/layout/main.xml b/samples/externalviews/keyguardviewprovider/res/layout/main.xml
index fd6ff02d..0160e85e 100644
--- a/samples/externalviews/keyguardviewprovider/res/layout/main.xml
+++ b/samples/externalviews/keyguardviewprovider/res/layout/main.xml
@@ -22,7 +22,7 @@
android:id="@+id/cid"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:src="@drawable/platlogo_cm"
+ android:src="@drawable/platlogo_lineage"
android:scaleType="fitCenter"
/>
diff --git a/samples/externalviews/keyguardviewprovider/res/xml/mylockscreen.xml b/samples/externalviews/keyguardviewprovider/res/xml/mylockscreen.xml
index 6c4fcefb..12f56939 100644
--- a/samples/externalviews/keyguardviewprovider/res/xml/mylockscreen.xml
+++ b/samples/externalviews/keyguardviewprovider/res/xml/mylockscreen.xml
@@ -1,3 +1,3 @@
\ No newline at end of file
+ android:settingsActivity="org.lineageos.samples.keyguardextview.Settings"/>
\ No newline at end of file
diff --git a/samples/externalviews/keyguardviewprovider/src/org/lineageos/samples/keyguardextview/SampleKeyguardProviderService.java b/samples/externalviews/keyguardviewprovider/src/org/lineageos/samples/keyguardextview/SampleKeyguardProviderService.java
index 194173ae..ff15f0ba 100644
--- a/samples/externalviews/keyguardviewprovider/src/org/lineageos/samples/keyguardextview/SampleKeyguardProviderService.java
+++ b/samples/externalviews/keyguardviewprovider/src/org/lineageos/samples/keyguardextview/SampleKeyguardProviderService.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.samples.keyguardextview;
+package org.lineageos.samples.keyguardextview;
import android.os.Bundle;
import android.view.LayoutInflater;
@@ -23,7 +23,7 @@ import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;
-import cyanogenmod.externalviews.KeyguardExternalViewProviderService;
+import lineageos.externalviews.KeyguardExternalViewProviderService;
public class SampleKeyguardProviderService extends KeyguardExternalViewProviderService {
diff --git a/samples/externalviews/keyguardviewprovider/src/org/lineageos/samples/keyguardextview/Settings.java b/samples/externalviews/keyguardviewprovider/src/org/lineageos/samples/keyguardextview/Settings.java
index 5fb130ea..bb9e0a85 100644
--- a/samples/externalviews/keyguardviewprovider/src/org/lineageos/samples/keyguardextview/Settings.java
+++ b/samples/externalviews/keyguardviewprovider/src/org/lineageos/samples/keyguardextview/Settings.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.samples.keyguardextview;
+package org.lineageos.samples.keyguardextview;
import android.app.Activity;
import android.os.Bundle;
diff --git a/samples/externalviews/setkeyguardviewprovider/Android.mk b/samples/externalviews/setkeyguardviewprovider/Android.mk
index 8ed385ae..068382c2 100644
--- a/samples/externalviews/setkeyguardviewprovider/Android.mk
+++ b/samples/externalviews/setkeyguardviewprovider/Android.mk
@@ -15,11 +15,11 @@ LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_STATIC_JAVA_LIBRARIES := \
- org.cyanogenmod.platform.internal
+ org.lineageos.platform.internal
LOCAL_SRC_FILES := $(call all-java-files-under, src/)
-LOCAL_PACKAGE_NAME := CMSetKeyguardExternalViewProvider
+LOCAL_PACKAGE_NAME := LineageSetKeyguardExternalViewProvider
LOCAL_PRIVILEGED_MODULE := true
LOCAL_CERTIFICATE := platform
diff --git a/samples/externalviews/setkeyguardviewprovider/AndroidManifest.xml b/samples/externalviews/setkeyguardviewprovider/AndroidManifest.xml
index f5300fd6..9977b08b 100644
--- a/samples/externalviews/setkeyguardviewprovider/AndroidManifest.xml
+++ b/samples/externalviews/setkeyguardviewprovider/AndroidManifest.xml
@@ -15,7 +15,7 @@
limitations under the License.
-->
diff --git a/samples/externalviews/setkeyguardviewprovider/README.md b/samples/externalviews/setkeyguardviewprovider/README.md
index f0edd448..bfb82692 100644
--- a/samples/externalviews/setkeyguardviewprovider/README.md
+++ b/samples/externalviews/setkeyguardviewprovider/README.md
@@ -3,4 +3,4 @@ This sample is provided as a way to set and clear the setting that defines what
KeyguardExternalViewProviderService the system should use. Changing this setting
requires a permission that is only granted to system apps. As such, this sample
is not intended to be built as a standalone application and must be built as part
-of the CyanogenMod build system.
\ No newline at end of file
+of the LineageOS build system.
diff --git a/samples/externalviews/setkeyguardviewprovider/src/org/lineageos/samples/keyguardextview/SetKeyguardComponentActivity.java b/samples/externalviews/setkeyguardviewprovider/src/org/lineageos/samples/keyguardextview/SetKeyguardComponentActivity.java
index 961bcf0d..bc606f96 100644
--- a/samples/externalviews/setkeyguardviewprovider/src/org/lineageos/samples/keyguardextview/SetKeyguardComponentActivity.java
+++ b/samples/externalviews/setkeyguardviewprovider/src/org/lineageos/samples/keyguardextview/SetKeyguardComponentActivity.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.samples.setkeyguardextview;
+package org.lineageos.samples.setkeyguardextview;
import android.app.Activity;
import android.content.ComponentName;
@@ -24,11 +24,11 @@ import android.util.Log;
import android.view.View;
import android.widget.Button;
-import org.cyanogenmod.internal.util.CmLockPatternUtils;
+import org.lineageos.internal.util.LineageLockPatternUtils;
public class SetKeyguardComponentActivity extends Activity {
private static final String TAG = SetKeyguardComponentActivity.class.getSimpleName();
- private static final String KEYGUARD_PACKAGE = "org.cyanogenmod.samples.keyguardextview";
+ private static final String KEYGUARD_PACKAGE = "org.lineageos.samples.keyguardextview";
private static final String KEYGUARD_COMPONENT =
KEYGUARD_PACKAGE + ".SampleKeyguardProviderService";
@@ -62,8 +62,8 @@ public class SetKeyguardComponentActivity extends Activity {
}
private void setKeyguardComponent(ComponentName cn) {
- CmLockPatternUtils lockPatternUtils =
- new CmLockPatternUtils(this);
+ LineageLockPatternUtils lockPatternUtils =
+ new LineageLockPatternUtils(this);
try {
lockPatternUtils.setThirdPartyKeyguard(cn);
} catch (PackageManager.NameNotFoundException e) {
diff --git a/samples/externalviews/viewhost/Android.mk b/samples/externalviews/viewhost/Android.mk
index 67e82a37..f914ba74 100644
--- a/samples/externalviews/viewhost/Android.mk
+++ b/samples/externalviews/viewhost/Android.mk
@@ -15,10 +15,10 @@ LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_STATIC_JAVA_LIBRARIES := \
- org.cyanogenmod.platform.sdk
+ org.lineageos.platform.sdk
LOCAL_SRC_FILES := $(call all-java-files-under, src/)
-LOCAL_PACKAGE_NAME := CMExternalViewHost
+LOCAL_PACKAGE_NAME := LineageExternalViewHost
include $(BUILD_PACKAGE)
diff --git a/samples/externalviews/viewhost/AndroidManifest.xml b/samples/externalviews/viewhost/AndroidManifest.xml
index 1e30cf05..770ff22f 100644
--- a/samples/externalviews/viewhost/AndroidManifest.xml
+++ b/samples/externalviews/viewhost/AndroidManifest.xml
@@ -15,7 +15,7 @@
limitations under the License.
-->
+ package="org.lineageos.samples.extviewhost" >
diff --git a/samples/externalviews/viewhost/res/layout/activity_main.xml b/samples/externalviews/viewhost/res/layout/activity_main.xml
index a21a338d..10bbd91d 100644
--- a/samples/externalviews/viewhost/res/layout/activity_main.xml
+++ b/samples/externalviews/viewhost/res/layout/activity_main.xml
@@ -27,7 +27,7 @@
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
-
diff --git a/samples/externalviews/viewhost/src/org/lineageos/samples/extviewhost/MainActivity.java b/samples/externalviews/viewhost/src/org/lineageos/samples/extviewhost/MainActivity.java
index 0ce662e1..f13cece7 100644
--- a/samples/externalviews/viewhost/src/org/lineageos/samples/extviewhost/MainActivity.java
+++ b/samples/externalviews/viewhost/src/org/lineageos/samples/extviewhost/MainActivity.java
@@ -14,13 +14,13 @@
* limitations under the License.
*/
-package org.cyanogenmod.samples.extviewhost;
+package org.lineageos.samples.extviewhost;
import android.app.Activity;
import android.content.ComponentName;
import android.os.Bundle;
-import cyanogenmod.externalviews.ExternalView;
+import lineageos.externalviews.ExternalView;
public class MainActivity extends Activity {
@@ -29,8 +29,8 @@ public class MainActivity extends Activity {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ExternalView ev = (ExternalView) findViewById(R.id.external_view);
- ComponentName cn = new ComponentName("org.cyanogenmod.samples.extview",
- "org.cyanogenmod.samples.extview.SampleProviderService");
+ ComponentName cn = new ComponentName("org.lineageos.samples.extview",
+ "org.lineageos.samples.extview.SampleProviderService");
ev.setProviderComponent(cn);
}
diff --git a/samples/externalviews/viewprovider/Android.mk b/samples/externalviews/viewprovider/Android.mk
index dda3a6f6..dd297ab1 100644
--- a/samples/externalviews/viewprovider/Android.mk
+++ b/samples/externalviews/viewprovider/Android.mk
@@ -15,10 +15,10 @@ LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_STATIC_JAVA_LIBRARIES := \
- org.cyanogenmod.platform.sdk
+ org.lineageos.platform.sdk
LOCAL_SRC_FILES := $(call all-java-files-under, src/)
-LOCAL_PACKAGE_NAME := CMExternalViewProvider
+LOCAL_PACKAGE_NAME := LineageExternalViewProvider
include $(BUILD_PACKAGE)
\ No newline at end of file
diff --git a/samples/externalviews/viewprovider/AndroidManifest.xml b/samples/externalviews/viewprovider/AndroidManifest.xml
index 0556a03d..83c8eaef 100644
--- a/samples/externalviews/viewprovider/AndroidManifest.xml
+++ b/samples/externalviews/viewprovider/AndroidManifest.xml
@@ -15,7 +15,7 @@
limitations under the License.
-->
diff --git a/samples/externalviews/viewprovider/src/org/lineageos/samples/extview/SampleProviderService.java b/samples/externalviews/viewprovider/src/org/lineageos/samples/extview/SampleProviderService.java
index 21ef2741..713a882a 100644
--- a/samples/externalviews/viewprovider/src/org/lineageos/samples/extview/SampleProviderService.java
+++ b/samples/externalviews/viewprovider/src/org/lineageos/samples/extview/SampleProviderService.java
@@ -14,12 +14,12 @@
* limitations under the License.
*/
-package org.cyanogenmod.samples.extview;
+package org.lineageos.samples.extview;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
-import cyanogenmod.externalviews.ExternalViewProviderService;
+import lineageos.externalviews.ExternalViewProviderService;
public class SampleProviderService extends ExternalViewProviderService {
@Override
diff --git a/samples/gradle-sample/ExampleApplication/app/build.gradle b/samples/gradle-sample/ExampleApplication/app/build.gradle
index 89e2b5ff..c114d6ce 100644
--- a/samples/gradle-sample/ExampleApplication/app/build.gradle
+++ b/samples/gradle-sample/ExampleApplication/app/build.gradle
@@ -25,5 +25,5 @@ dependencies {
}
dependencies {
- compile 'org.cyanogenmod:platform.sdk:2.0-SNAPSHOT'
+ compile 'org.lineageos:platform.sdk:2.0-SNAPSHOT'
}
diff --git a/samples/gradle-sample/ExampleApplication/app/src/main/AndroidManifest.xml b/samples/gradle-sample/ExampleApplication/app/src/main/AndroidManifest.xml
index 39780eff..ccee3d45 100644
--- a/samples/gradle-sample/ExampleApplication/app/src/main/AndroidManifest.xml
+++ b/samples/gradle-sample/ExampleApplication/app/src/main/AndroidManifest.xml
@@ -3,9 +3,9 @@
package="com.example.test.myapplication" >
-
+
-
+
-
+
+ package="lineageos.library">
diff --git a/sdk/proguard.txt b/sdk/proguard.txt
index 909b72df..4802b279 100644
--- a/sdk/proguard.txt
+++ b/sdk/proguard.txt
@@ -1,3 +1,3 @@
-# Ignore CyanogenMod SDK access to private resources
--dontwarn cyanogenmod.**
--dontnote cyanogenmod.**
+# Ignore LineageOS SDK access to private resources
+-dontwarn lineageos.**
+-dontnote lineageos.**
diff --git a/sdk/res/res/values/attrs.xml b/sdk/res/res/values/attrs.xml
index 36cfeb84..7e67bb6a 100644
--- a/sdk/res/res/values/attrs.xml
+++ b/sdk/res/res/values/attrs.xml
@@ -14,7 +14,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-
+
@@ -23,7 +23,7 @@
-
+
@@ -35,7 +35,7 @@
-
+
diff --git a/sdk/src/java/lineageos/alarmclock/ClockContract.java b/sdk/src/java/lineageos/alarmclock/ClockContract.java
index 63a1d271..f4a8e47f 100644
--- a/sdk/src/java/lineageos/alarmclock/ClockContract.java
+++ b/sdk/src/java/lineageos/alarmclock/ClockContract.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.alarmclock;
+package lineageos.alarmclock;
import android.net.Uri;
import android.provider.BaseColumns;
@@ -37,9 +37,9 @@ import android.provider.BaseColumns;
*
*
*
- * Requires {@link cyanogenmod.alarmclock.CyanogenModAlarmClock#READ_ALARMS_PERMISSION}
+ * Requires {@link lineageos.alarmclock.LineageOSAlarmClock#READ_ALARMS_PERMISSION}
* to read from the provider.
- * Requires {@link cyanogenmod.alarmclock.CyanogenModAlarmClock#WRITE_ALARMS_PERMISSION} to write
+ * Requires {@link lineageos.alarmclock.LineageOSAlarmClock#WRITE_ALARMS_PERMISSION} to write
* to the provider.
*
*/
diff --git a/sdk/src/java/lineageos/alarmclock/LineageOSAlarmClock.java b/sdk/src/java/lineageos/alarmclock/LineageOSAlarmClock.java
index 76508a9f..9e375fe4 100644
--- a/sdk/src/java/lineageos/alarmclock/LineageOSAlarmClock.java
+++ b/sdk/src/java/lineageos/alarmclock/LineageOSAlarmClock.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.alarmclock;
+package lineageos.alarmclock;
import android.content.ComponentName;
import android.content.Context;
@@ -26,13 +26,13 @@ import android.provider.AlarmClock;
import java.util.List;
/**
- * The CyanogenModAlarmClock class contains utilities for interacting with
- * a variety of Alarm features that the CyanogenMod AlarmClock application
+ * The LineageOSAlarmClock class contains utilities for interacting with
+ * a variety of Alarm features that the LineageOS AlarmClock application
* (based on AOSP DeskClock) supports.
*/
-public class CyanogenModAlarmClock {
+public class LineageOSAlarmClock {
/**
- * The package name of the CyanogenMod DeskClock application.
+ * The package name of the LineageOS DeskClock application.
*/
private static final String DESKCLOCK_PACKAGE = "com.android.deskclock";
@@ -43,26 +43,26 @@ public class CyanogenModAlarmClock {
* @see #ACTION_SET_ALARM_ENABLED
*/
public static final String MODIFY_ALARMS_PERMISSION
- = "cyanogenmod.alarmclock.permission.MODIFY_ALARMS";
+ = "lineageos.alarmclock.permission.MODIFY_ALARMS";
/**
* Allows an application to have read access to all alarms in the
- * CyanogenMod DeskClock application.
+ * LineageOS DeskClock application.
*
- * @see cyanogenmod.alarmclock.ClockContract
+ * @see lineageos.alarmclock.ClockContract
*/
public static final String READ_ALARMS_PERMISSION
- = "cyanogenmod.alarmclock.permission.READ_ALARMS";
+ = "lineageos.alarmclock.permission.READ_ALARMS";
/**
* Allows an application to have write access to all alarms in the
- * CyanogenMod DeskClock application. This is a system level permission.
+ * LineageOS DeskClock application. This is a system level permission.
*
- * @see cyanogenmod.alarmclock.ClockContract
+ * @see lineageos.alarmclock.ClockContract
* @hide
*/
public static final String WRITE_ALARMS_PERMISSION
- = "cyanogenmod.alarmclock.permission.WRITE_ALARMS";
+ = "lineageos.alarmclock.permission.WRITE_ALARMS";
/**
* Service Action: Set an existing alarm to be either enabled or disabled.
@@ -83,13 +83,13 @@ public class CyanogenModAlarmClock {
* Request parameters
*
* - {@link #EXTRA_ALARM_ID} (required): The id of the alarm to modify,
- * as stored in {@link cyanogenmod.alarmclock.ClockContract.AlarmsColumns#_ID}
+ * as stored in {@link lineageos.alarmclock.ClockContract.AlarmsColumns#_ID}
* - {@link #EXTRA_ENABLED} (required): Whether to set this alarm to be enabled
* or disabled.
*
*/
public static final String ACTION_SET_ALARM_ENABLED
- = "cyanogenmod.alarmclock.SET_ALARM_ENABLED";
+ = "lineageos.alarmclock.SET_ALARM_ENABLED";
/**
* Bundle extra: The id of the alarm.
@@ -99,13 +99,13 @@ public class CyanogenModAlarmClock {
* This extra is required.
*
* The value is an {@link Long} and is the ID stored in
- * {@link cyanogenmod.alarmclock.ClockContract.AlarmsColumns#_ID} for this alarm.
+ * {@link lineageos.alarmclock.ClockContract.AlarmsColumns#_ID} for this alarm.
*
*
* @see #ACTION_SET_ALARM_ENABLED
* @see #EXTRA_ENABLED
*/
- public static final String EXTRA_ALARM_ID = "cyanogenmod.intent.extra.alarmclock.ID";
+ public static final String EXTRA_ALARM_ID = "lineageos.intent.extra.alarmclock.ID";
/**
* Bundle extra: Whether to set the alarm to enabled to disabled.
@@ -121,12 +121,12 @@ public class CyanogenModAlarmClock {
* @see #ACTION_SET_ALARM_ENABLED
* @see #EXTRA_ALARM_ID
*/
- public static final String EXTRA_ENABLED = "cyanogenmod.intent.extra.alarmclock.ENABLED";
+ public static final String EXTRA_ENABLED = "lineageos.intent.extra.alarmclock.ENABLED";
/**
*
* Retrieves an Intent that is prepopulated with the proper action and ComponentName to
- * create a new alarm in the CyanogenMod DeskClock application.
+ * create a new alarm in the LineageOS DeskClock application.
*
* The action will be set to {@link android.provider.AlarmClock#ACTION_SET_ALARM}. Use the
* Intent extras contained at {@link android.provider.AlarmClock} to configure the alarm.
@@ -136,7 +136,7 @@ public class CyanogenModAlarmClock {
*
*
* @see android.provider.AlarmClock#ACTION_SET_ALARM
- * @return The Intent to create a new alarm with the CyanogenMod DeskClock application.
+ * @return The Intent to create a new alarm with the LineageOS DeskClock application.
*/
public static Intent createAlarmIntent(Context context) {
Intent intent = new Intent();
diff --git a/sdk/src/java/lineageos/app/BaseLiveLockManagerService.java b/sdk/src/java/lineageos/app/BaseLiveLockManagerService.java
index feae94f3..c8becbdf 100644
--- a/sdk/src/java/lineageos/app/BaseLiveLockManagerService.java
+++ b/sdk/src/java/lineageos/app/BaseLiveLockManagerService.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
import android.annotation.NonNull;
import android.app.AppGlobals;
@@ -29,7 +29,7 @@ import android.os.RemoteException;
import android.os.UserHandle;
import android.util.Log;
-import cyanogenmod.platform.Manifest;
+import lineageos.platform.Manifest;
/**
* Base Live lock screen manager service to be extended by applications that implement the
@@ -107,7 +107,7 @@ abstract public class BaseLiveLockManagerService extends Service
/**
* Returns true if the caller has been granted the
- * {@link cyanogenmod.platform.Manifest.permission#LIVE_LOCK_SCREEN_MANAGER_ACCESS_PRIVATE}
+ * {@link lineageos.platform.Manifest.permission#LIVE_LOCK_SCREEN_MANAGER_ACCESS_PRIVATE}
* permission.
*
* @return
@@ -118,7 +118,7 @@ abstract public class BaseLiveLockManagerService extends Service
}
/**
- * Enforces the {@link cyanogenmod.platform.Manifest.permission#LIVE_LOCK_SCREEN_MANAGER_ACCESS}
+ * Enforces the {@link lineageos.platform.Manifest.permission#LIVE_LOCK_SCREEN_MANAGER_ACCESS}
* permission.
*/
protected final void enforceAccessPermission() {
@@ -130,7 +130,7 @@ abstract public class BaseLiveLockManagerService extends Service
/**
* Enforces the
- * {@link cyanogenmod.platform.Manifest.permission#LIVE_LOCK_SCREEN_MANAGER_ACCESS_PRIVATE}
+ * {@link lineageos.platform.Manifest.permission#LIVE_LOCK_SCREEN_MANAGER_ACCESS_PRIVATE}
* permission.
*/
protected final void enforcePrivateAccessPermission() {
@@ -141,7 +141,7 @@ abstract public class BaseLiveLockManagerService extends Service
/**
* Enforces the LLS being shown/canceled is from the calling package or from a system app that
* has the
- * {@link cyanogenmod.platform.Manifest.permission#LIVE_LOCK_SCREEN_MANAGER_ACCESS_PRIVATE}
+ * {@link lineageos.platform.Manifest.permission#LIVE_LOCK_SCREEN_MANAGER_ACCESS_PRIVATE}
* permission.
*
* @param pkg Package name of caller
diff --git a/sdk/src/java/lineageos/app/CustomTile.aidl b/sdk/src/java/lineageos/app/CustomTile.aidl
index 1a35ad0b..25b30858 100644
--- a/sdk/src/java/lineageos/app/CustomTile.aidl
+++ b/sdk/src/java/lineageos/app/CustomTile.aidl
@@ -14,6 +14,6 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
parcelable CustomTile;
diff --git a/sdk/src/java/lineageos/app/CustomTile.java b/sdk/src/java/lineageos/app/CustomTile.java
index dee8c373..b6b89296 100644
--- a/sdk/src/java/lineageos/app/CustomTile.java
+++ b/sdk/src/java/lineageos/app/CustomTile.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
import android.app.PendingIntent;
import android.content.Context;
@@ -26,17 +26,17 @@ import android.os.Parcelable;
import android.text.TextUtils;
import android.util.Log;
import android.widget.RemoteViews;
-import cyanogenmod.os.Build;
+import lineageos.os.Build;
-import cyanogenmod.os.Concierge;
-import cyanogenmod.os.Concierge.ParcelInfo;
+import lineageos.os.Concierge;
+import lineageos.os.Concierge.ParcelInfo;
import java.util.ArrayList;
/**
* A class that represents a quick settings tile
*
- * The {@link cyanogenmod.app.CustomTile.Builder} has been added to make it
+ *
The {@link lineageos.app.CustomTile.Builder} has been added to make it
* easier to construct CustomTiles.
*/
public class CustomTile implements Parcelable {
@@ -138,7 +138,7 @@ public class CustomTile implements Parcelable {
// Pattern here is that all new members should be added to the end of
// the writeToParcel method. Then we step through each version, until the latest
// API release to help unravel this parcel
- if (parcelableVersion >= Build.CM_VERSION_CODES.APRICOT) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.APRICOT) {
if (parcel.readInt() != 0) {
this.onClick = PendingIntent.CREATOR.createFromParcel(parcel);
}
@@ -160,7 +160,7 @@ public class CustomTile implements Parcelable {
this.icon = parcel.readInt();
}
- if (parcelableVersion >= Build.CM_VERSION_CODES.BOYSENBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.BOYSENBERRY) {
this.resourcesPackageName = parcel.readString();
this.collapsePanel = (parcel.readInt() == 1);
if (parcel.readInt() != 0) {
@@ -172,7 +172,7 @@ public class CustomTile implements Parcelable {
this.sensitiveData = (parcel.readInt() == 1);
}
- if (parcelableVersion >= Build.CM_VERSION_CODES.DRAGON_FRUIT) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.DRAGON_FRUIT) {
if (parcel.readInt() != 0) {
this.onLongClick = PendingIntent.CREATOR.createFromParcel(parcel);
}
@@ -184,7 +184,7 @@ public class CustomTile implements Parcelable {
/**
* Constructs a CustomTile object with default values.
- * You might want to consider using {@link cyanogenmod.app.CustomTile.Builder} instead.
+ * You might want to consider using {@link lineageos.app.CustomTile.Builder} instead.
*/
public CustomTile()
{
@@ -381,14 +381,14 @@ public class CustomTile implements Parcelable {
// Pattern here is that all new members should be added to the end of
// the writeToParcel method. Then we step through each version, until the latest
// API release to help unravel this parcel
- if (parcelableVersion >= Build.CM_VERSION_CODES.APRICOT) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.APRICOT) {
if (parcel.readInt() != 0) {
expandedItems = parcel.createTypedArray(ExpandedItem.CREATOR);
}
styleId = parcel.readInt();
}
- if (parcelableVersion >= Build.CM_VERSION_CODES.BOYSENBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.BOYSENBERRY) {
if (parcel.readInt() != 0) {
contentViews = RemoteViews.CREATOR.createFromParcel(parcel);
}
@@ -667,7 +667,7 @@ public class CustomTile implements Parcelable {
// Pattern here is that all new members should be added to the end of
// the writeToParcel method. Then we step through each version, until the latest
// API release to help unravel this parcel
- if (parcelableVersion >= Build.CM_VERSION_CODES.APRICOT) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.APRICOT) {
if (parcel.readInt() != 0) {
onClickPendingIntent = PendingIntent.CREATOR.createFromParcel(parcel);
}
@@ -680,7 +680,7 @@ public class CustomTile implements Parcelable {
itemDrawableResourceId = parcel.readInt();
}
- if (parcelableVersion >= Build.CM_VERSION_CODES.BOYSENBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.BOYSENBERRY) {
if (parcel.readInt() != 0) {
itemBitmapResource = Bitmap.CREATOR.createFromParcel(parcel);
}
@@ -885,9 +885,9 @@ public class CustomTile implements Parcelable {
};
/**
- * Builder class for {@link cyanogenmod.app.CustomTile} objects.
+ * Builder class for {@link lineageos.app.CustomTile} objects.
*
- * Provides a convenient way to set the various fields of a {@link cyanogenmod.app.CustomTile}
+ * Provides a convenient way to set the various fields of a {@link lineageos.app.CustomTile}
*
* Example:
*
@@ -927,7 +927,7 @@ public class CustomTile implements Parcelable {
/**
* Set the label for the custom tile
* @param label a string to be used for the custom tile label
- * @return {@link cyanogenmod.app.CustomTile.Builder}
+ * @return {@link lineageos.app.CustomTile.Builder}
*/
public Builder setLabel(String label) {
mLabel = label;
@@ -937,7 +937,7 @@ public class CustomTile implements Parcelable {
/**
* Set the label for the custom tile
* @param id a string resource id to be used for the custom tile label
- * @return {@link cyanogenmod.app.CustomTile.Builder}
+ * @return {@link lineageos.app.CustomTile.Builder}
*/
public Builder setLabel(int id) {
mLabel = mContext.getString(id);
@@ -947,7 +947,7 @@ public class CustomTile implements Parcelable {
/**
* Set the content description for the custom tile
* @param contentDescription a string to explain content
- * @return {@link cyanogenmod.app.CustomTile.Builder}
+ * @return {@link lineageos.app.CustomTile.Builder}
*/
public Builder setContentDescription(String contentDescription) {
mContentDescription = contentDescription;
@@ -957,7 +957,7 @@ public class CustomTile implements Parcelable {
/**
* Set the content description for the custom tile
* @param id a string resource id to explain content
- * @return {@link cyanogenmod.app.CustomTile.Builder}
+ * @return {@link lineageos.app.CustomTile.Builder}
*/
public Builder setContentDescription(int id) {
mContentDescription = mContext.getString(id);
@@ -967,7 +967,7 @@ public class CustomTile implements Parcelable {
/**
* Set a {@link android.app.PendingIntent} to be fired on custom tile click
* @param intent
- * @return {@link cyanogenmod.app.CustomTile.Builder}
+ * @return {@link lineageos.app.CustomTile.Builder}
*/
public Builder setOnClickIntent(PendingIntent intent) {
mOnClick = intent;
@@ -978,7 +978,7 @@ public class CustomTile implements Parcelable {
* Set a {@link android.app.PendingIntent} to be fired on custom tile long press.
* Note: if this is an activity, the host panel will automatically collapse.
* @param intent
- * @return {@link cyanogenmod.app.CustomTile.Builder}
+ * @return {@link lineageos.app.CustomTile.Builder}
*/
public Builder setOnLongClickIntent(PendingIntent intent) {
mOnLongClick = intent;
@@ -989,7 +989,7 @@ public class CustomTile implements Parcelable {
* Set a settings {@link android.content.Intent} to be fired on custom
* tile detail pane click
* @param intent
- * @return {@link cyanogenmod.app.CustomTile.Builder}
+ * @return {@link lineageos.app.CustomTile.Builder}
*/
public Builder setOnSettingsClickIntent(Intent intent) {
mOnSettingsClick = intent;
@@ -999,7 +999,7 @@ public class CustomTile implements Parcelable {
/**
* Set a {@link android.net.Uri} to be broadcasted in an intent on custom tile click
* @param uri
- * @return {@link cyanogenmod.app.CustomTile.Builder}
+ * @return {@link lineageos.app.CustomTile.Builder}
*/
public Builder setOnClickUri(Uri uri) {
mOnClickUri = uri;
@@ -1010,7 +1010,7 @@ public class CustomTile implements Parcelable {
* Set an icon for the custom tile to be presented to the user
*
* @param drawableId
- * @return {@link cyanogenmod.app.CustomTile.Builder}
+ * @return {@link lineageos.app.CustomTile.Builder}
*/
public Builder setIcon(int drawableId) {
mIcon = drawableId;
@@ -1023,7 +1023,7 @@ public class CustomTile implements Parcelable {
* This will unset {@link #setIcon(int)} if utilized together.
* @see CustomTile#remoteIcon
* @param remoteIcon
- * @return {@link cyanogenmod.app.CustomTile.Builder}
+ * @return {@link lineageos.app.CustomTile.Builder}
*/
public Builder setIcon(Bitmap remoteIcon) {
mIcon = 0; // empty
@@ -1034,7 +1034,7 @@ public class CustomTile implements Parcelable {
/**
* Set an {@link ExpandedStyle} to to be displayed when a user clicks the custom tile
* @param expandedStyle
- * @return {@link cyanogenmod.app.CustomTile.Builder}
+ * @return {@link lineageos.app.CustomTile.Builder}
*/
public Builder setExpandedStyle(ExpandedStyle expandedStyle) {
if (mExpandedStyle != expandedStyle) {
@@ -1050,7 +1050,7 @@ public class CustomTile implements Parcelable {
* Set whether or not the Statusbar Panel should be collapsed when an
* {@link #onClick} or {@link #onClickUri} event is fired.
* @param bool
- * @return {@link cyanogenmod.app.CustomTile.Builder}
+ * @return {@link lineageos.app.CustomTile.Builder}
*/
public Builder shouldCollapsePanel(boolean bool) {
mCollapsePanel = bool;
@@ -1063,7 +1063,7 @@ public class CustomTile implements Parcelable {
*
* @see CustomTile#deleteIntent
* @param intent
- * @return {@link cyanogenmod.app.CustomTile.Builder}
+ * @return {@link lineageos.app.CustomTile.Builder}
*/
public Builder setDeleteIntent(PendingIntent intent) {
mDeleteIntent = intent;
@@ -1074,7 +1074,7 @@ public class CustomTile implements Parcelable {
* Indicates whether this tile has sensitive data that have to be hidden
* on secure lockscreens.
* @param bool
- * @return {@link cyanogenmod.app.CustomTile.Builder}
+ * @return {@link lineageos.app.CustomTile.Builder}
*/
public Builder hasSensitiveData(boolean bool) {
mSensitiveData = bool;
@@ -1082,8 +1082,8 @@ public class CustomTile implements Parcelable {
}
/**
- * Create a {@link cyanogenmod.app.CustomTile} object
- * @return {@link cyanogenmod.app.CustomTile}
+ * Create a {@link lineageos.app.CustomTile} object
+ * @return {@link lineageos.app.CustomTile}
*/
public CustomTile build() {
CustomTile tile = new CustomTile();
diff --git a/sdk/src/java/lineageos/app/CustomTileListenerService.java b/sdk/src/java/lineageos/app/CustomTileListenerService.java
index 5b35b0d5..22efde41 100644
--- a/sdk/src/java/lineageos/app/CustomTileListenerService.java
+++ b/sdk/src/java/lineageos/app/CustomTileListenerService.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
import android.annotation.SdkConstant;
import android.app.Service;
@@ -26,22 +26,22 @@ import android.os.RemoteException;
import android.os.ServiceManager;
import android.util.Log;
-import cyanogenmod.app.ICustomTileListener;
-import cyanogenmod.app.IStatusBarCustomTileHolder;
-import cyanogenmod.app.ICMStatusBarManager;
+import lineageos.app.ICustomTileListener;
+import lineageos.app.IStatusBarCustomTileHolder;
+import lineageos.app.ILineageStatusBarManager;
/**
* A service that receives calls from the system when new custom tiles are
* posted or removed.
*
To extend this class, you must declare the service in your manifest file with
- * the cyanogenmod.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE
+ * the lineageos.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE
* and include an intent filter with the {@link #SERVICE_INTERFACE} action. For example:
*
* <service android:name=".CustomTileListener"
* android:label="@string/service_name"
- * android:permission="cyanogenmod.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE">
+ * android:permission="lineageos.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE">
* <intent-filter>
- * <action android:name="cyanogenmod.app.CustomTileListenerService" />
+ * <action android:name="lineageos.app.CustomTileListenerService" />
* </intent-filter>
* </service>
*/
@@ -53,10 +53,10 @@ public class CustomTileListenerService extends Service {
*/
@SdkConstant(SdkConstant.SdkConstantType.SERVICE_ACTION)
public static final String SERVICE_INTERFACE
- = "cyanogenmod.app.CustomTileListenerService";
+ = "lineageos.app.CustomTileListenerService";
private ICustomTileListenerWrapper mWrapper = null;
- private ICMStatusBarManager mStatusBarService;
+ private ILineageStatusBarManager mStatusBarService;
/** Only valid after a successful call to (@link registerAsService}. */
private int mCurrentUser;
@@ -68,10 +68,10 @@ public class CustomTileListenerService extends Service {
return mWrapper;
}
- private final ICMStatusBarManager getStatusBarInterface() {
+ private final ILineageStatusBarManager getStatusBarInterface() {
if (mStatusBarService == null) {
- mStatusBarService = ICMStatusBarManager.Stub.asInterface(
- ServiceManager.getService(CMContextConstants.CM_STATUS_BAR_SERVICE));
+ mStatusBarService = ILineageStatusBarManager.Stub.asInterface(
+ ServiceManager.getService(LineageContextConstants.LINEAGE_STATUS_BAR_SERVICE));
}
return mStatusBarService;
}
@@ -93,7 +93,7 @@ public class CustomTileListenerService extends Service {
if (isBound()) {
return;
}
- ICMStatusBarManager statusBarInterface = mStatusBarService;
+ ILineageStatusBarManager statusBarInterface = mStatusBarService;
if (mStatusBarService != null) {
mWrapper = new ICustomTileListenerWrapper();
statusBarInterface.registerListener(mWrapper, componentName, currentUser);
@@ -110,7 +110,7 @@ public class CustomTileListenerService extends Service {
*/
public void unregisterAsSystemService() throws RemoteException {
if (isBound()) {
- ICMStatusBarManager statusBarInterface = mStatusBarService;
+ ILineageStatusBarManager statusBarInterface = mStatusBarService;
statusBarInterface.unregisterListener(mWrapper, mCurrentUser);
mWrapper = null;
mStatusBarService = null;
@@ -168,7 +168,7 @@ public class CustomTileListenerService extends Service {
/**
* Implement this method to learn about new custom tiles as they are posted by apps.
*
- * @param sbc A data structure encapsulating the original {@link cyanogenmod.app.CustomTile}
+ * @param sbc A data structure encapsulating the original {@link lineageos.app.CustomTile}
* object as well as its identifying information (tag and id) and source
* (package name).
*/
@@ -180,7 +180,7 @@ public class CustomTileListenerService extends Service {
* Implement this method to learn when custom tiles are removed.
*
* @param sbc A data structure encapsulating at least the original information (tag and id)
- * and source (package name) used to post the {@link cyanogenmod.app.CustomTile} that
+ * and source (package name) used to post the {@link lineageos.app.CustomTile} that
* was just removed.
*/
public void onCustomTileRemoved(StatusBarPanelCustomTile sbc) {
@@ -197,12 +197,12 @@ public class CustomTileListenerService extends Service {
}
/**
- * Inform the {@link cyanogenmod.app.CMStatusBarManager} about dismissal of a single custom tile.
+ * Inform the {@link lineageos.app.LineageStatusBarManager} about dismissal of a single custom tile.
*
* Use this if your listener has a user interface that allows the user to dismiss individual
* custom tiles, similar to the behavior of Android's status bar and notification panel.
* It should be called after the user dismisses a single custom tile using your UI;
- * upon being informed, the cmstatusbar manager will actually remove the custom tile
+ * upon being informed, the lineagestatusbar manager will actually remove the custom tile
* and you will get an {@link #onCustomTileRemoved(StatusBarPanelCustomTile)} callback.
*
*
@@ -217,7 +217,7 @@ public class CustomTileListenerService extends Service {
mStatusBarService.removeCustomTileFromListener(
mWrapper, pkg, tag, id);
} catch (android.os.RemoteException ex) {
- Log.v(TAG, "Unable to contact cmstautusbar manager", ex);
+ Log.v(TAG, "Unable to contact lineagestatusbar manager", ex);
}
}
diff --git a/sdk/src/java/lineageos/app/ICustomTileListener.aidl b/sdk/src/java/lineageos/app/ICustomTileListener.aidl
index f3dbfba3..f45ab116 100644
--- a/sdk/src/java/lineageos/app/ICustomTileListener.aidl
+++ b/sdk/src/java/lineageos/app/ICustomTileListener.aidl
@@ -14,10 +14,10 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
-import cyanogenmod.app.IStatusBarCustomTileHolder;
-import cyanogenmod.app.StatusBarPanelCustomTile;
+import lineageos.app.IStatusBarCustomTileHolder;
+import lineageos.app.StatusBarPanelCustomTile;
/** @hide */
oneway interface ICustomTileListener
diff --git a/sdk/src/java/lineageos/app/ILineageStatusBarManager.aidl b/sdk/src/java/lineageos/app/ILineageStatusBarManager.aidl
index 62283a59..f4955e9b 100644
--- a/sdk/src/java/lineageos/app/ILineageStatusBarManager.aidl
+++ b/sdk/src/java/lineageos/app/ILineageStatusBarManager.aidl
@@ -14,15 +14,15 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
import android.content.ComponentName;
-import cyanogenmod.app.CustomTile;
-import cyanogenmod.app.ICustomTileListener;
+import lineageos.app.CustomTile;
+import lineageos.app.ICustomTileListener;
/** @hide */
-interface ICMStatusBarManager {
+interface ILineageStatusBarManager {
// --- Methods below are for use by 3rd party applications to publish quick
// settings tiles to the status bar panel
// You need the PUBLISH_CUSTOM_TILE permission
diff --git a/sdk/src/java/lineageos/app/ILineageTelephonyManager.aidl b/sdk/src/java/lineageos/app/ILineageTelephonyManager.aidl
index 743d61c0..3dbec46d 100644
--- a/sdk/src/java/lineageos/app/ILineageTelephonyManager.aidl
+++ b/sdk/src/java/lineageos/app/ILineageTelephonyManager.aidl
@@ -14,14 +14,14 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
import android.telephony.SubscriptionInfo;
import java.util.List;
/** @hide */
-interface ICMTelephonyManager {
+interface ILineageTelephonyManager {
// --- Methods below are for use by 3rd party applications to manage phone and data connection
// You need the READ_MSIM_PHONE_STATE permission
List getSubInformation();
diff --git a/sdk/src/java/lineageos/app/ILiveLockScreenChangeListener.aidl b/sdk/src/java/lineageos/app/ILiveLockScreenChangeListener.aidl
index 48e7f361..6c359aa6 100644
--- a/sdk/src/java/lineageos/app/ILiveLockScreenChangeListener.aidl
+++ b/sdk/src/java/lineageos/app/ILiveLockScreenChangeListener.aidl
@@ -14,9 +14,9 @@
** limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
-import cyanogenmod.app.LiveLockScreenInfo;
+import lineageos.app.LiveLockScreenInfo;
/**
* Listener interface for notifying clients that the current Live lock screen has changed.
diff --git a/sdk/src/java/lineageos/app/ILiveLockScreenManager.aidl b/sdk/src/java/lineageos/app/ILiveLockScreenManager.aidl
index 15142c14..570295de 100644
--- a/sdk/src/java/lineageos/app/ILiveLockScreenManager.aidl
+++ b/sdk/src/java/lineageos/app/ILiveLockScreenManager.aidl
@@ -14,10 +14,10 @@
** limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
-import cyanogenmod.app.ILiveLockScreenChangeListener;
-import cyanogenmod.app.LiveLockScreenInfo;
+import lineageos.app.ILiveLockScreenChangeListener;
+import lineageos.app.LiveLockScreenInfo;
/** @hide */
interface ILiveLockScreenManager {
diff --git a/sdk/src/java/lineageos/app/ILiveLockScreenManagerProvider.aidl b/sdk/src/java/lineageos/app/ILiveLockScreenManagerProvider.aidl
index 933eb97b..1236a4ae 100644
--- a/sdk/src/java/lineageos/app/ILiveLockScreenManagerProvider.aidl
+++ b/sdk/src/java/lineageos/app/ILiveLockScreenManagerProvider.aidl
@@ -14,10 +14,10 @@
** limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
-import cyanogenmod.app.ILiveLockScreenChangeListener;
-import cyanogenmod.app.LiveLockScreenInfo;
+import lineageos.app.ILiveLockScreenChangeListener;
+import lineageos.app.LiveLockScreenInfo;
/**
* Interface to be implemented by services that support the
@@ -62,4 +62,4 @@ interface ILiveLockScreenManagerProvider {
* Unregisters a previously registered ILiveLockScreenChangeListener.
*/
boolean unregisterChangeListener(in ILiveLockScreenChangeListener listener);
-}
\ No newline at end of file
+}
diff --git a/sdk/src/java/lineageos/app/IPartnerInterface.aidl b/sdk/src/java/lineageos/app/IPartnerInterface.aidl
index 1b02dd1e..9be61d05 100644
--- a/sdk/src/java/lineageos/app/IPartnerInterface.aidl
+++ b/sdk/src/java/lineageos/app/IPartnerInterface.aidl
@@ -15,7 +15,7 @@
** limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
/** {@hide} */
interface IPartnerInterface
diff --git a/sdk/src/java/lineageos/app/IProfileManager.aidl b/sdk/src/java/lineageos/app/IProfileManager.aidl
index 091ba550..17678301 100644
--- a/sdk/src/java/lineageos/app/IProfileManager.aidl
+++ b/sdk/src/java/lineageos/app/IProfileManager.aidl
@@ -15,9 +15,9 @@
** limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
-import cyanogenmod.app.Profile;
+import lineageos.app.Profile;
import android.app.NotificationGroup;
import android.os.ParcelUuid;
diff --git a/sdk/src/java/lineageos/app/IStatusBarCustomTileHolder.aidl b/sdk/src/java/lineageos/app/IStatusBarCustomTileHolder.aidl
index e8d48dd3..0a787f6f 100644
--- a/sdk/src/java/lineageos/app/IStatusBarCustomTileHolder.aidl
+++ b/sdk/src/java/lineageos/app/IStatusBarCustomTileHolder.aidl
@@ -14,9 +14,9 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
-import cyanogenmod.app.StatusBarPanelCustomTile;
+import lineageos.app.StatusBarPanelCustomTile;
/** @hide */
interface IStatusBarCustomTileHolder {
diff --git a/sdk/src/java/lineageos/app/LineageContextConstants.java b/sdk/src/java/lineageos/app/LineageContextConstants.java
index 43c700b1..e5c0df17 100644
--- a/sdk/src/java/lineageos/app/LineageContextConstants.java
+++ b/sdk/src/java/lineageos/app/LineageContextConstants.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
import android.annotation.SdkConstant;
@@ -22,121 +22,121 @@ import android.annotation.SdkConstant;
* @hide
* TODO: We need to somehow make these managers accessible via getSystemService
*/
-public final class CMContextConstants {
+public final class LineageContextConstants {
/**
* @hide
*/
- private CMContextConstants() {
+ private LineageContextConstants() {
// Empty constructor
}
/**
* Use with {@link android.content.Context#getSystemService} to retrieve a
- * {@link cyanogenmod.app.CMStatusBarManager} for informing the user of
+ * {@link lineageos.app.LineageStatusBarManager} for informing the user of
* background events.
*
* @see android.content.Context#getSystemService
- * @see cyanogenmod.app.CMStatusBarManager
+ * @see lineageos.app.LineageStatusBarManager
*/
- public static final String CM_STATUS_BAR_SERVICE = "cmstatusbar";
+ public static final String LINEAGE_STATUS_BAR_SERVICE = "lineagestatusbar";
/**
* Use with {@link android.content.Context#getSystemService} to retrieve a
- * {@link cyanogenmod.app.ProfileManager} for informing the user of
+ * {@link lineageos.app.ProfileManager} for informing the user of
* background events.
*
* @see android.content.Context#getSystemService
- * @see cyanogenmod.app.ProfileManager
+ * @see lineageos.app.ProfileManager
*
* @hide
*/
- public static final String CM_PROFILE_SERVICE = "profile";
+ public static final String LINEAGE_PROFILE_SERVICE = "profile";
/**
* Use with {@link android.content.Context#getSystemService} to retrieve a
- * {@link cyanogenmod.app.PartnerInterface} interact with system settings.
+ * {@link lineageos.app.PartnerInterface} interact with system settings.
*
* @see android.content.Context#getSystemService
- * @see cyanogenmod.app.PartnerInterface
+ * @see lineageos.app.PartnerInterface
*
* @hide
*/
- public static final String CM_PARTNER_INTERFACE = "cmpartnerinterface";
+ public static final String LINEAGE_PARTNER_INTERFACE = "lineagepartnerinterface";
/**
* Use with {@link android.content.Context#getSystemService} to retrieve a
- * {@link cyanogenmod.app.CMTelephonyManager} to manage the phone and
+ * {@link lineageos.app.LineageTelephonyManager} to manage the phone and
* data connection.
*
* @see android.content.Context#getSystemService
- * @see cyanogenmod.app.CMTelephonyManager
+ * @see lineageos.app.LineageTelephonyManager
*
* @hide
*/
- public static final String CM_TELEPHONY_MANAGER_SERVICE = "cmtelephonymanager";
+ public static final String LINEAGE_TELEPHONY_MANAGER_SERVICE = "lineagetelephonymanager";
/**
* Use with {@link android.content.Context#getSystemService} to retrieve a
- * {@link cyanogenmod.hardware.CMHardwareManager} to manage the extended
+ * {@link lineageos.hardware.LineageHardwareManager} to manage the extended
* hardware features of the device.
*
* @see android.content.Context#getSystemService
- * @see cyanogenmod.hardware.CMHardwareManager
+ * @see lineageos.hardware.LineageHardwareManager
*
* @hide
*/
- public static final String CM_HARDWARE_SERVICE = "cmhardware";
+ public static final String LINEAGE_HARDWARE_SERVICE = "lineagehardware";
/**
* @hide
*/
- public static final String CM_APP_SUGGEST_SERVICE = "cmappsuggest";
+ public static final String LINEAGE_APP_SUGGEST_SERVICE = "lineageappsuggest";
/**
* Control device power profile and characteristics.
*
* @hide
*/
- public static final String CM_PERFORMANCE_SERVICE = "cmperformance";
+ public static final String LINEAGE_PERFORMANCE_SERVICE = "lineageperformance";
/**
* Controls changing and applying themes
*
* @hide
*/
- public static final String CM_THEME_SERVICE = "cmthemes";
+ public static final String LINEAGE_THEME_SERVICE = "lineagethemes";
/**
* Manages composed icons
*
* @hide
*/
- public static final String CM_ICON_CACHE_SERVICE = "cmiconcache";
+ public static final String LINEAGE_ICON_CACHE_SERVICE = "lineageiconcache";
/**
* @hide
*/
- public static final String CM_LIVE_LOCK_SCREEN_SERVICE = "cmlivelockscreen";
+ public static final String LINEAGE_LIVE_LOCK_SCREEN_SERVICE = "lineagelivelockscreen";
/**
* Use with {@link android.content.Context#getSystemService} to retrieve a
- * {@link cyanogenmod.weather.CMWeatherManager} to manage the weather service
+ * {@link lineageos.weather.LineageWeatherManager} to manage the weather service
* settings and request weather updates
*
* @see android.content.Context#getSystemService
- * @see cyanogenmod.weather.CMWeatherManager
+ * @see lineageos.weather.LineageWeatherManager
*
* @hide
*/
- public static final String CM_WEATHER_SERVICE = "cmweather";
+ public static final String LINEAGE_WEATHER_SERVICE = "lineageweather";
/**
* Manages display color adjustments
*
* @hide
*/
- public static final String CM_LIVEDISPLAY_SERVICE = "cmlivedisplay";
+ public static final String LINEAGE_LIVEDISPLAY_SERVICE = "lineagelivedisplay";
/**
@@ -144,75 +144,75 @@ public final class CMContextConstants {
*
* @hide
*/
- public static final String CM_AUDIO_SERVICE = "cmaudio";
+ public static final String LINEAGE_AUDIO_SERVICE = "lineageaudio";
/**
- * Features supported by the CMSDK.
+ * Features supported by the Lineage SDK.
*/
public static class Features {
/**
* Feature for {@link PackageManager#getSystemAvailableFeatures} and
* {@link PackageManager#hasSystemFeature}: The device includes the hardware abstraction
- * framework service utilized by the cmsdk.
+ * framework service utilized by the lineage sdk.
*/
@SdkConstant(SdkConstant.SdkConstantType.FEATURE)
- public static final String HARDWARE_ABSTRACTION = "org.cyanogenmod.hardware";
+ public static final String HARDWARE_ABSTRACTION = "org.lineageos.hardware";
/**
* Feature for {@link PackageManager#getSystemAvailableFeatures} and
- * {@link PackageManager#hasSystemFeature}: The device includes the cm status bar service
- * utilzed by the cmsdk.
+ * {@link PackageManager#hasSystemFeature}: The device includes the lineage status bar service
+ * utilzed by the lineage sdk.
*/
@SdkConstant(SdkConstant.SdkConstantType.FEATURE)
- public static final String STATUSBAR = "org.cyanogenmod.statusbar";
+ public static final String STATUSBAR = "org.lineageos.statusbar";
/**
* Feature for {@link PackageManager#getSystemAvailableFeatures} and
- * {@link PackageManager#hasSystemFeature}: The device includes the cm profiles service
- * utilized by the cmsdk.
+ * {@link PackageManager#hasSystemFeature}: The device includes the lineage profiles service
+ * utilized by the lineage sdk.
*/
@SdkConstant(SdkConstant.SdkConstantType.FEATURE)
- public static final String PROFILES = "org.cyanogenmod.profiles";
+ public static final String PROFILES = "org.lineageos.profiles";
/**
* Feature for {@link PackageManager#getSystemAvailableFeatures} and
- * {@link PackageManager#hasSystemFeature}: The device includes the cm app suggest service
- * utilized by the cmsdk.
+ * {@link PackageManager#hasSystemFeature}: The device includes the lineage app suggest service
+ * utilized by the lineage sdk.
*/
@SdkConstant(SdkConstant.SdkConstantType.FEATURE)
- public static final String APP_SUGGEST = "org.cyanogenmod.appsuggest";
+ public static final String APP_SUGGEST = "org.lineageos.appsuggest";
/**
* Feature for {@link PackageManager#getSystemAvailableFeatures} and
- * {@link PackageManager#hasSystemFeature}: The device includes the cm telephony service
- * utilized by the cmsdk.
+ * {@link PackageManager#hasSystemFeature}: The device includes the lineage telephony service
+ * utilized by the lineage sdk.
*/
@SdkConstant(SdkConstant.SdkConstantType.FEATURE)
- public static final String TELEPHONY = "org.cyanogenmod.telephony";
+ public static final String TELEPHONY = "org.lineageos.telephony";
/**
* Feature for {@link PackageManager#getSystemAvailableFeatures} and
- * {@link PackageManager#hasSystemFeature}: The device includes the cm theme service
- * utilized by the cmsdk.
+ * {@link PackageManager#hasSystemFeature}: The device includes the lineage theme service
+ * utilized by the lineage sdk.
*/
@SdkConstant(SdkConstant.SdkConstantType.FEATURE)
- public static final String THEMES = "org.cyanogenmod.theme";
+ public static final String THEMES = "org.lineageos.theme";
/**
* Feature for {@link PackageManager#getSystemAvailableFeatures} and
- * {@link PackageManager#hasSystemFeature}: The device includes the cm performance service
- * utilized by the cmsdk.
+ * {@link PackageManager#hasSystemFeature}: The device includes the lineage performance service
+ * utilized by the lineage sdk.
*/
@SdkConstant(SdkConstant.SdkConstantType.FEATURE)
- public static final String PERFORMANCE = "org.cyanogenmod.performance";
+ public static final String PERFORMANCE = "org.lineageos.performance";
/**
* Feature for {@link PackageManager#getSystemAvailableFeatures} and
- * {@link PackageManager#hasSystemFeature}: The device includes the cm partner service
- * utilized by the cmsdk.
+ * {@link PackageManager#hasSystemFeature}: The device includes the lineage partner service
+ * utilized by the lineage sdk.
*/
@SdkConstant(SdkConstant.SdkConstantType.FEATURE)
- public static final String PARTNER = "org.cyanogenmod.partner";
+ public static final String PARTNER = "org.lineageos.partner";
/*
* Feature for {@link PackageManager#getSystemAvailableFeatures} and
@@ -220,30 +220,30 @@ public final class CMContextConstants {
* feature.
*/
@SdkConstant(SdkConstant.SdkConstantType.FEATURE)
- public static final String LIVE_LOCK_SCREEN = "org.cyanogenmod.livelockscreen";
+ public static final String LIVE_LOCK_SCREEN = "org.lineageos.livelockscreen";
/**
* Feature for {@link PackageManager#getSystemAvailableFeatures} and
- * {@link PackageManager#hasSystemFeature}: The device includes the cm weather weather
- * service utilized by the cmsdk.
+ * {@link PackageManager#hasSystemFeature}: The device includes the lineage weather weather
+ * service utilized by the lineage sdk.
*/
@SdkConstant(SdkConstant.SdkConstantType.FEATURE)
- public static final String WEATHER_SERVICES = "org.cyanogenmod.weather";
+ public static final String WEATHER_SERVICES = "org.lineageos.weather";
/**
* Feature for {@link PackageManager#getSystemAvailableFeatures} and
* {@link PackageManager#hasSystemFeature}: The device includes the LiveDisplay service
- * utilized by the cmsdk.
+ * utilized by the lineage sdk.
*/
@SdkConstant(SdkConstant.SdkConstantType.FEATURE)
- public static final String LIVEDISPLAY = "org.cyanogenmod.livedisplay";
+ public static final String LIVEDISPLAY = "org.lineageos.livedisplay";
/**
* Feature for {@link PackageManager#getSystemAvailableFeatures} and
- * {@link PackageManager#hasSystemFeature}: The device includes the CM audio extensions
- * utilized by the cmsdk.
+ * {@link PackageManager#hasSystemFeature}: The device includes the Lineage audio extensions
+ * utilized by the lineage sdk.
*/
@SdkConstant(SdkConstant.SdkConstantType.FEATURE)
- public static final String AUDIO = "org.cyanogenmod.audio";
+ public static final String AUDIO = "org.lineageos.audio";
}
}
diff --git a/sdk/src/java/lineageos/app/LineageStatusBarManager.java b/sdk/src/java/lineageos/app/LineageStatusBarManager.java
index ecd31061..4e50455b 100644
--- a/sdk/src/java/lineageos/app/LineageStatusBarManager.java
+++ b/sdk/src/java/lineageos/app/LineageStatusBarManager.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
import android.content.Context;
import android.os.IBinder;
@@ -24,10 +24,10 @@ import android.os.UserHandle;
import android.util.Log;
import android.util.Slog;
-import cyanogenmod.app.ICMStatusBarManager;
+import lineageos.app.ILineageStatusBarManager;
/**
- * The CMStatusBarManager allows you to publish and remove CustomTiles within the
+ * The LineageStatusBarManager allows you to publish and remove CustomTiles within the
* Quick Settings Panel.
*
*
@@ -44,20 +44,20 @@ import cyanogenmod.app.ICMStatusBarManager;
* this custom tile.
*
*
- * To get the instance of this class, utilize CMStatusBarManager#getInstance(Context context)
+ * To get the instance of this class, utilize LineageStatusBarManager#getInstance(Context context)
*
- * @see cyanogenmod.app.CustomTile
+ * @see lineageos.app.CustomTile
*/
-public class CMStatusBarManager {
- private static final String TAG = "CMStatusBarManager";
+public class LineageStatusBarManager {
+ private static final String TAG = "LineageStatusBarManager";
private static boolean localLOGV = false;
private Context mContext;
- private static ICMStatusBarManager sService;
+ private static ILineageStatusBarManager sService;
- private static CMStatusBarManager sCMStatusBarManagerInstance;
- private CMStatusBarManager(Context context) {
+ private static LineageStatusBarManager sLineageStatusBarManagerInstance;
+ private LineageStatusBarManager(Context context) {
Context appContext = context.getApplicationContext();
if (appContext != null) {
mContext = appContext;
@@ -67,23 +67,23 @@ public class CMStatusBarManager {
sService = getService();
if (context.getPackageManager().hasSystemFeature(
- cyanogenmod.app.CMContextConstants.Features.STATUSBAR) && sService == null) {
- Log.wtf(TAG, "Unable to get CMStatusBarService. The service either" +
+ lineageos.app.LineageContextConstants.Features.STATUSBAR) && sService == null) {
+ Log.wtf(TAG, "Unable to get LineageStatusBarService. The service either" +
" crashed, was not started, or the interface has been called to early in" +
" SystemServer init");
}
}
/**
- * Get or create an instance of the {@link cyanogenmod.app.CMStatusBarManager}
+ * Get or create an instance of the {@link lineageos.app.LineageStatusBarManager}
* @param context
- * @return {@link cyanogenmod.app.CMStatusBarManager}
+ * @return {@link lineageos.app.LineageStatusBarManager}
*/
- public static CMStatusBarManager getInstance(Context context) {
- if (sCMStatusBarManagerInstance == null) {
- sCMStatusBarManagerInstance = new CMStatusBarManager(context);
+ public static LineageStatusBarManager getInstance(Context context) {
+ if (sLineageStatusBarManagerInstance == null) {
+ sLineageStatusBarManagerInstance = new LineageStatusBarManager(context);
}
- return sCMStatusBarManagerInstance;
+ return sLineageStatusBarManagerInstance;
}
/**
@@ -91,7 +91,7 @@ public class CMStatusBarManager {
* the same id has already been posted by your application and has not yet been removed, it
* will be replaced by the updated information.
*
- * You will need the cyanogenmod.permission.PUBLISH_CUSTOM_TILE
+ * You will need the lineageos.permission.PUBLISH_CUSTOM_TILE
* to utilize this functionality.
*
* @param id An identifier for this customTile unique within your
@@ -108,18 +108,18 @@ public class CMStatusBarManager {
* the same tag and id has already been posted by your application and has not yet been
* removed, it will be replaced by the updated information.
*
- * You will need the cyanogenmod.permission.PUBLISH_CUSTOM_TILE
+ * You will need the lineageos.permission.PUBLISH_CUSTOM_TILE
* to utilize this functionality.
*
* @param tag A string identifier for this custom tile. May be {@code null}.
* @param id An identifier for this custom tile. The pair (tag, id) must be unique
* within your application.
- * @param customTile A {@link cyanogenmod.app.CustomTile} object describing what to
+ * @param customTile A {@link lineageos.app.CustomTile} object describing what to
* show the user. Must not be null.
*/
public void publishTile(String tag, int id, CustomTile customTile) {
if (sService == null) {
- Log.w(TAG, "not connected to CMStatusBarManagerService");
+ Log.w(TAG, "not connected to LineageStatusBarManagerService");
return;
}
@@ -133,27 +133,27 @@ public class CMStatusBarManager {
Log.w(TAG, "notify: id corrupted: sent " + id + ", got back " + idOut[0]);
}
} catch (RemoteException e) {
- Slog.w("CMStatusBarManager", "warning: no cm status bar service");
+ Slog.w("LineageStatusBarManager", "warning: no lineage status bar service");
}
}
/**
- * Similar to {@link cyanogenmod.app.CMStatusBarManager#publishTile(int id, cyanogenmod.app.CustomTile)},
+ * Similar to {@link lineageos.app.LineageStatusBarManager#publishTile(int id, lineageos.app.CustomTile)},
* however lets you specify a {@link android.os.UserHandle}
*
- * You will need the cyanogenmod.permission.PUBLISH_CUSTOM_TILE
+ * You will need the lineageos.permission.PUBLISH_CUSTOM_TILE
* to utilize this functionality.
*
* @param tag A string identifier for this custom tile. May be {@code null}.
* @param id An identifier for this custom tile. The pair (tag, id) must be unique
* within your application.
- * @param customTile A {@link cyanogenmod.app.CustomTile} object describing what to
+ * @param customTile A {@link lineageos.app.CustomTile} object describing what to
* show the user. Must not be null.
* @param user A user handle to publish the tile as.
*/
public void publishTileAsUser(String tag, int id, CustomTile customTile, UserHandle user) {
if (sService == null) {
- Log.w(TAG, "not connected to CMStatusBarManagerService");
+ Log.w(TAG, "not connected to LineageStatusBarManagerService");
return;
}
@@ -167,14 +167,14 @@ public class CMStatusBarManager {
Log.w(TAG, "notify: id corrupted: sent " + id + ", got back " + idOut[0]);
}
} catch (RemoteException e) {
- Slog.w("CMStatusBarManager", "warning: no cm status bar service");
+ Slog.w("LineageStatusBarManager", "warning: no lineage status bar service");
}
}
/**
* Remove a custom tile that's currently published to the StatusBarPanel.
*
- * You will need the cyanogenmod.permission.PUBLISH_CUSTOM_TILE
+ * You will need the lineageos.permission.PUBLISH_CUSTOM_TILE
* to utilize this functionality.
*
* @param id The identifier for the custom tile to be removed.
@@ -186,7 +186,7 @@ public class CMStatusBarManager {
/**
* Remove a custom tile that's currently published to the StatusBarPanel.
*
- * You will need the cyanogenmod.platform.PUBLISH_CUSTOM_TILE
+ * You will need the lineageos.platform.PUBLISH_CUSTOM_TILE
* to utilize this functionality.
*
* @param tag The string identifier for the custom tile to be removed.
@@ -194,7 +194,7 @@ public class CMStatusBarManager {
*/
public void removeTile(String tag, int id) {
if (sService == null) {
- Log.w(TAG, "not connected to CMStatusBarManagerService");
+ Log.w(TAG, "not connected to LineageStatusBarManagerService");
return;
}
@@ -203,15 +203,15 @@ public class CMStatusBarManager {
try {
sService.removeCustomTileWithTag(pkg, tag, id, UserHandle.myUserId());
} catch (RemoteException e) {
- Slog.w("CMStatusBarManager", "warning: no cm status bar service");
+ Slog.w("LineageStatusBarManager", "warning: no lineage status bar service");
}
}
/**
- * Similar to {@link cyanogenmod.app.CMStatusBarManager#removeTile(String tag, int id)}
+ * Similar to {@link lineageos.app.LineageStatusBarManager#removeTile(String tag, int id)}
* however lets you specific a {@link android.os.UserHandle}
*
- * You will need the cyanogenmod.platform.PUBLISH_CUSTOM_TILE
+ * You will need the lineageos.platform.PUBLISH_CUSTOM_TILE
* to utilize this functionality.
*
* @param tag The string identifier for the custom tile to be removed.
@@ -220,7 +220,7 @@ public class CMStatusBarManager {
*/
public void removeTileAsUser(String tag, int id, UserHandle user) {
if (sService == null) {
- Log.w(TAG, "not connected to CMStatusBarManagerService");
+ Log.w(TAG, "not connected to LineageStatusBarManagerService");
return;
}
@@ -233,13 +233,13 @@ public class CMStatusBarManager {
}
/** @hide */
- public ICMStatusBarManager getService() {
+ public ILineageStatusBarManager getService() {
if (sService != null) {
return sService;
}
- IBinder b = ServiceManager.getService(CMContextConstants.CM_STATUS_BAR_SERVICE);
+ IBinder b = ServiceManager.getService(LineageContextConstants.LINEAGE_STATUS_BAR_SERVICE);
if (b != null) {
- sService = ICMStatusBarManager.Stub.asInterface(b);
+ sService = ILineageStatusBarManager.Stub.asInterface(b);
return sService;
}
return null;
diff --git a/sdk/src/java/lineageos/app/LineageTelephonyManager.java b/sdk/src/java/lineageos/app/LineageTelephonyManager.java
index 866d34ad..af21849a 100644
--- a/sdk/src/java/lineageos/app/LineageTelephonyManager.java
+++ b/sdk/src/java/lineageos/app/LineageTelephonyManager.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
import android.content.Context;
import android.os.IBinder;
@@ -26,30 +26,30 @@ import android.util.Slog;
import java.util.List;
-import cyanogenmod.app.CMContextConstants;
+import lineageos.app.LineageContextConstants;
/**
- * The CMTelephonyManager allows you to view and manage the phone state and
+ * The LineageTelephonyManager allows you to view and manage the phone state and
* the data connection, with multiple SIMs support.
*
*
- * To get the instance of this class, utilize CMTelephonyManager#getInstance(Context context)
+ * To get the instance of this class, utilize LineageTelephonyManager#getInstance(Context context)
*/
-public class CMTelephonyManager {
+public class LineageTelephonyManager {
/**
* Subscription ID used to set the default Phone and SMS to "ask every time".
*/
public static final int ASK_FOR_SUBSCRIPTION_ID = 0;
- private static final String TAG = "CMTelephonyManager";
+ private static final String TAG = "LineageTelephonyManager";
private static boolean localLOGD = Log.isLoggable(TAG, Log.DEBUG);
- private static ICMTelephonyManager sService;
- private static CMTelephonyManager sCMTelephonyManagerInstance;
+ private static ILineageTelephonyManager sService;
+ private static LineageTelephonyManager sLineageTelephonyManagerInstance;
private Context mContext;
- private CMTelephonyManager(Context context) {
+ private LineageTelephonyManager(Context context) {
Context appContext = context.getApplicationContext();
if (appContext != null) {
mContext = appContext;
@@ -58,34 +58,34 @@ public class CMTelephonyManager {
}
sService = getService();
- if (context.getPackageManager().hasSystemFeature(CMContextConstants.Features.TELEPHONY)
+ if (context.getPackageManager().hasSystemFeature(LineageContextConstants.Features.TELEPHONY)
&& sService == null) {
- Log.wtf(TAG, "Unable to get CMTelephonyManagerService. " +
+ Log.wtf(TAG, "Unable to get LineageTelephonyManagerService. " +
"The service either crashed, was not started, or the interface has been " +
"called to early in SystemServer init");
}
}
/**
- * Get or create an instance of the {@link cyanogenmod.app.CMTelephonyManager}
+ * Get or create an instance of the {@link lineageos.app.LineageTelephonyManager}
*
- * @return {@link cyanogenmod.app.CMTelephonyManager}
+ * @return {@link lineageos.app.LineageTelephonyManager}
*/
- public static CMTelephonyManager getInstance(Context context) {
- if (sCMTelephonyManagerInstance == null) {
- sCMTelephonyManagerInstance = new CMTelephonyManager(context);
+ public static LineageTelephonyManager getInstance(Context context) {
+ if (sLineageTelephonyManagerInstance == null) {
+ sLineageTelephonyManagerInstance = new LineageTelephonyManager(context);
}
- return sCMTelephonyManagerInstance;
+ return sLineageTelephonyManagerInstance;
}
/** @hide */
- public ICMTelephonyManager getService() {
+ public ILineageTelephonyManager getService() {
if (sService != null) {
return sService;
}
- IBinder b = ServiceManager.getService(CMContextConstants.CM_TELEPHONY_MANAGER_SERVICE);
+ IBinder b = ServiceManager.getService(LineageContextConstants.LINEAGE_TELEPHONY_MANAGER_SERVICE);
if (b != null) {
- sService = ICMTelephonyManager.Stub.asInterface(b);
+ sService = ILineageTelephonyManager.Stub.asInterface(b);
return sService;
}
return null;
@@ -100,7 +100,7 @@ public class CMTelephonyManager {
*/
public List getSubInformation() {
if (sService == null) {
- Log.w(TAG, "not connected to CMTelephonyManager");
+ Log.w(TAG, "not connected to LineageTelephonyManager");
return null;
}
@@ -117,7 +117,7 @@ public class CMTelephonyManager {
Log.w(TAG, "the subscription list is empty");
}
} catch (RemoteException e) {
- Slog.w(TAG, "warning: no cm telephony manager service");
+ Slog.w(TAG, "warning: no lineage telephony manager service");
}
return subInfoList;
@@ -134,7 +134,7 @@ public class CMTelephonyManager {
*/
public boolean isSubActive(int subId) {
if (sService == null) {
- Log.w(TAG, "not connected to CMTelephonyManager");
+ Log.w(TAG, "not connected to LineageTelephonyManager");
return false;
}
@@ -150,7 +150,7 @@ public class CMTelephonyManager {
Log.v(TAG, pkg + " getting the SIM state with subscription " + subId + " as active: " + simActive);
}
} catch (RemoteException e) {
- Slog.w(TAG, "warning: no cm telephony manager service");
+ Slog.w(TAG, "warning: no lineage telephony manager service");
}
return simActive;
@@ -167,7 +167,7 @@ public class CMTelephonyManager {
*/
public void setSubState(int subId, boolean state) {
if (sService == null) {
- Log.w(TAG, "not connected to CMTelephonyManager");
+ Log.w(TAG, "not connected to LineageTelephonyManager");
return;
}
@@ -179,7 +179,7 @@ public class CMTelephonyManager {
try {
sService.setSubState(subId, state);
} catch (RemoteException e) {
- Slog.w(TAG, "warning: no cm telephony manager service");
+ Slog.w(TAG, "warning: no lineage telephony manager service");
}
}
@@ -197,7 +197,7 @@ public class CMTelephonyManager {
*/
public boolean isDataConnectionSelectedOnSub(int subId) {
if (sService == null) {
- Log.w(TAG, "not connected to CMTelephonyManager");
+ Log.w(TAG, "not connected to LineageTelephonyManager");
return false;
}
@@ -214,7 +214,7 @@ public class CMTelephonyManager {
subId + " as active: " + dataConnectionActiveOnSim);
}
} catch (RemoteException e) {
- Slog.w(TAG, "warning: no cm telephony manager service");
+ Slog.w(TAG, "warning: no lineage telephony manager service");
}
return dataConnectionActiveOnSim;
@@ -230,7 +230,7 @@ public class CMTelephonyManager {
*/
public boolean isDataConnectionEnabled() {
if (sService == null) {
- Log.w(TAG, "not connected to CMTelephonyManager");
+ Log.w(TAG, "not connected to LineageTelephonyManager");
return false;
}
@@ -246,7 +246,7 @@ public class CMTelephonyManager {
Log.v(TAG, pkg + " getting if the network data connection is enabled: " + dataConnectionEnabled);
}
} catch (RemoteException e) {
- Slog.w(TAG, "warning: no cm telephony manager service");
+ Slog.w(TAG, "warning: no lineage telephony manager service");
}
return dataConnectionEnabled;
@@ -259,7 +259,7 @@ public class CMTelephonyManager {
*/
public void setDataConnectionState(boolean state) {
if (sService == null) {
- Log.w(TAG, "not connected to CMTelephonyManager");
+ Log.w(TAG, "not connected to LineageTelephonyManager");
return;
}
@@ -271,7 +271,7 @@ public class CMTelephonyManager {
try {
sService.setDataConnectionState(state);
} catch (RemoteException e) {
- Slog.w(TAG, "warning: no cm telephony manager service");
+ Slog.w(TAG, "warning: no lineage telephony manager service");
}
}
@@ -286,7 +286,7 @@ public class CMTelephonyManager {
*/
public void setDataConnectionSelectedOnSub(int subId) {
if (sService == null) {
- Log.w(TAG, "not connected to CMTelephonyManager");
+ Log.w(TAG, "not connected to LineageTelephonyManager");
return;
}
@@ -298,7 +298,7 @@ public class CMTelephonyManager {
try {
sService.setDataConnectionSelectedOnSub(subId);
} catch (RemoteException e) {
- Slog.w(TAG, "warning: no cm telephony manager service");
+ Slog.w(TAG, "warning: no lineage telephony manager service");
}
}
@@ -313,7 +313,7 @@ public class CMTelephonyManager {
*/
public void setDefaultPhoneSub(int subId) {
if (sService == null) {
- Log.w(TAG, "not connected to CMTelephonyManager");
+ Log.w(TAG, "not connected to LineageTelephonyManager");
return;
}
@@ -325,7 +325,7 @@ public class CMTelephonyManager {
try {
sService.setDefaultPhoneSub(subId);
} catch (RemoteException e) {
- Slog.w(TAG, "warning: no cm telephony manager service");
+ Slog.w(TAG, "warning: no lineage telephony manager service");
}
}
@@ -340,7 +340,7 @@ public class CMTelephonyManager {
*/
public void setDefaultSmsSub(int subId) {
if (sService == null) {
- Log.w(TAG, "not connected to CMTelephonyManager");
+ Log.w(TAG, "not connected to LineageTelephonyManager");
return;
}
@@ -352,7 +352,7 @@ public class CMTelephonyManager {
try {
sService.setDefaultSmsSub(subId);
} catch (RemoteException e) {
- Slog.w(TAG, "warning: no cm telephony manager service");
+ Slog.w(TAG, "warning: no lineage telephony manager service");
}
}
}
diff --git a/sdk/src/java/lineageos/app/LiveLockScreenInfo.aidl b/sdk/src/java/lineageos/app/LiveLockScreenInfo.aidl
index bffa3b01..7758a069 100644
--- a/sdk/src/java/lineageos/app/LiveLockScreenInfo.aidl
+++ b/sdk/src/java/lineageos/app/LiveLockScreenInfo.aidl
@@ -14,6 +14,6 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
parcelable LiveLockScreenInfo;
diff --git a/sdk/src/java/lineageos/app/LiveLockScreenInfo.java b/sdk/src/java/lineageos/app/LiveLockScreenInfo.java
index 5ac22208..23b9d146 100644
--- a/sdk/src/java/lineageos/app/LiveLockScreenInfo.java
+++ b/sdk/src/java/lineageos/app/LiveLockScreenInfo.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
import android.annotation.NonNull;
import android.content.ComponentName;
@@ -23,9 +23,9 @@ import android.os.Parcelable;
import android.text.TextUtils;
-import cyanogenmod.os.Build;
-import cyanogenmod.os.Concierge;
-import cyanogenmod.os.Concierge.ParcelInfo;
+import lineageos.os.Build;
+import lineageos.os.Concierge;
+import lineageos.os.Concierge.ParcelInfo;
/**
* Data structure defining a Live lock screen.
@@ -59,7 +59,7 @@ public class LiveLockScreenInfo implements Parcelable {
/**
* The component, which implements
- * {@link cyanogenmod.externalviews.KeyguardExternalViewProviderService}, to display for this
+ * {@link lineageos.externalviews.KeyguardExternalViewProviderService}, to display for this
* live lock screen.
*/
public ComponentName component;
diff --git a/sdk/src/java/lineageos/app/LiveLockScreenManager.java b/sdk/src/java/lineageos/app/LiveLockScreenManager.java
index bd6a515f..6c9d0650 100644
--- a/sdk/src/java/lineageos/app/LiveLockScreenManager.java
+++ b/sdk/src/java/lineageos/app/LiveLockScreenManager.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
import android.annotation.NonNull;
import android.annotation.Nullable;
@@ -42,13 +42,13 @@ public class LiveLockScreenManager {
*/
@SdkConstant(SdkConstant.SdkConstantType.SERVICE_ACTION)
public static final String SERVICE_INTERFACE
- = "cyanogenmod.app.LiveLockScreenManagerService";
+ = "lineageos.app.LiveLockScreenManagerService";
private LiveLockScreenManager(Context context) {
mContext = context;
sService = getService();
if (context.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.LIVE_LOCK_SCREEN) && sService == null) {
+ LineageContextConstants.Features.LIVE_LOCK_SCREEN) && sService == null) {
Log.wtf(TAG, "Unable to get LiveLockScreenManagerService. " +
"The service either crashed, was not started, or the interface has " +
"been called to early in SystemServer init");
@@ -57,7 +57,7 @@ public class LiveLockScreenManager {
private ILiveLockScreenManager getService() {
if (sService == null) {
- IBinder b = ServiceManager.getService(CMContextConstants.CM_LIVE_LOCK_SCREEN_SERVICE);
+ IBinder b = ServiceManager.getService(LineageContextConstants.LINEAGE_LIVE_LOCK_SCREEN_SERVICE);
if (b != null) {
sService = ILiveLockScreenManager.Stub.asInterface(b);
}
diff --git a/sdk/src/java/lineageos/app/PartnerInterface.java b/sdk/src/java/lineageos/app/PartnerInterface.java
index a7661ff8..8e253669 100644
--- a/sdk/src/java/lineageos/app/PartnerInterface.java
+++ b/sdk/src/java/lineageos/app/PartnerInterface.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
import android.content.Context;
import android.os.IBinder;
@@ -63,13 +63,13 @@ public class PartnerInterface {
* such as enabling or disabling airplane mode.
*/
public static final String MODIFY_NETWORK_SETTINGS_PERMISSION =
- "cyanogenmod.permission.MODIFY_NETWORK_SETTINGS";
+ "lineageos.permission.MODIFY_NETWORK_SETTINGS";
/**
* Allows an application to change system sound settings, such as the zen mode.
*/
public static final String MODIFY_SOUND_SETTINGS_PERMISSION =
- "cyanogenmod.permission.MODIFY_SOUND_SETTINGS";
+ "lineageos.permission.MODIFY_SOUND_SETTINGS";
private static final String TAG = "PartnerInterface";
@@ -84,7 +84,7 @@ public class PartnerInterface {
}
sService = getService();
if (context.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.PARTNER) && sService == null) {
+ LineageContextConstants.Features.PARTNER) && sService == null) {
throw new RuntimeException("Unable to get PartnerInterfaceService. The service" +
" either crashed, was not started, or the interface has been called to early" +
" in SystemServer init");
@@ -92,7 +92,7 @@ public class PartnerInterface {
}
/**
- * Get or create an instance of the {@link cyanogenmod.app.PartnerInterface}
+ * Get or create an instance of the {@link lineageos.app.PartnerInterface}
* @param context
* @return {@link PartnerInterface}
*/
@@ -108,7 +108,7 @@ public class PartnerInterface {
if (sService != null) {
return sService;
}
- IBinder b = ServiceManager.getService(CMContextConstants.CM_PARTNER_INTERFACE);
+ IBinder b = ServiceManager.getService(LineageContextConstants.LINEAGE_PARTNER_INTERFACE);
if (b != null) {
sService = IPartnerInterface.Stub.asInterface(b);
return sService;
@@ -245,7 +245,7 @@ public class PartnerInterface {
/**
* Retrieves the package name of the application that currently holds the
- * {@link cyanogenmod.media.MediaRecorder.AudioSource#HOTWORD} input.
+ * {@link lineageos.media.MediaRecorder.AudioSource#HOTWORD} input.
* @return The package name or null if no application currently holds the HOTWORD input.
*/
public String getCurrentHotwordPackageName() {
diff --git a/sdk/src/java/lineageos/app/Profile.aidl b/sdk/src/java/lineageos/app/Profile.aidl
index ff6c54ea..a180d0eb 100644
--- a/sdk/src/java/lineageos/app/Profile.aidl
+++ b/sdk/src/java/lineageos/app/Profile.aidl
@@ -14,6 +14,6 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
parcelable Profile;
diff --git a/sdk/src/java/lineageos/app/Profile.java b/sdk/src/java/lineageos/app/Profile.java
index 9a4666d7..6553336a 100755
--- a/sdk/src/java/lineageos/app/Profile.java
+++ b/sdk/src/java/lineageos/app/Profile.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
import android.content.Context;
import android.media.AudioManager;
@@ -27,16 +27,16 @@ import android.text.TextUtils;
import android.util.Log;
import com.android.internal.policy.IKeyguardService;
-import cyanogenmod.os.Build;
-import cyanogenmod.profiles.AirplaneModeSettings;
-import cyanogenmod.profiles.BrightnessSettings;
-import cyanogenmod.profiles.ConnectionSettings;
-import cyanogenmod.profiles.LockSettings;
-import cyanogenmod.profiles.RingModeSettings;
-import cyanogenmod.profiles.StreamSettings;
+import lineageos.os.Build;
+import lineageos.profiles.AirplaneModeSettings;
+import lineageos.profiles.BrightnessSettings;
+import lineageos.profiles.ConnectionSettings;
+import lineageos.profiles.LockSettings;
+import lineageos.profiles.RingModeSettings;
+import lineageos.profiles.StreamSettings;
-import cyanogenmod.os.Concierge;
-import cyanogenmod.os.Concierge.ParcelInfo;
+import lineageos.os.Concierge;
+import lineageos.os.Concierge.ParcelInfo;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
@@ -236,7 +236,7 @@ public final class Profile implements Parcelable, Comparable {
// Pattern here is that all new members should be added to the end of
// the writeToParcel method. Then we step through each version, until the latest
// API release to help unravel this parcel
- if (parcelableVersion >= Build.CM_VERSION_CODES.BOYSENBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.BOYSENBERRY) {
mType = in.readInt();
mId = in.readString();
mState = in.readInt();
@@ -646,7 +646,7 @@ public final class Profile implements Parcelable, Comparable {
// Pattern here is that all new members should be added to the end of
// the writeToParcel method. Then we step through each version, until the latest
// API release to help unravel this parcel
- if (parcelableVersion >= Build.CM_VERSION_CODES.BOYSENBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.BOYSENBERRY) {
if (in.readInt() != 0) {
mName = in.readString();
}
@@ -702,7 +702,7 @@ public final class Profile implements Parcelable, Comparable {
mExpandedDesktopMode = in.readInt();
mDozeMode = in.readInt();
}
- if (parcelableVersion >= Build.CM_VERSION_CODES.ELDERBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.ELDERBERRY) {
mNotificationLightMode = in.readInt();
if (in.readInt() != 0) {
for (ConnectionSettings connection :
@@ -1127,7 +1127,7 @@ public final class Profile implements Parcelable, Comparable {
if (value != null) {
profileNameResId = context.getResources().getIdentifier(value, "string",
- "cyanogenmod.platform");
+ "lineageos.platform");
if (profileNameResId > 0) {
profileName = context.getResources().getString(profileNameResId);
}
@@ -1206,7 +1206,7 @@ public final class Profile implements Parcelable, Comparable {
}
if (name.equals("connectionDescriptor")) {
ConnectionSettings cs = ConnectionSettings.fromXml(xpp, context);
- if (Build.CM_VERSION.SDK_INT >= Build.CM_VERSION_CODES.ELDERBERRY
+ if (Build.LINEAGE_VERSION.SDK_INT >= Build.LINEAGE_VERSION_CODES.ELDERBERRY
&& cs.getConnectionId() == ConnectionSettings.PROFILE_CONNECTION_2G3G4G) {
profile.networkConnectionSubIds.put(cs.getSubId(), cs);
} else {
diff --git a/sdk/src/java/lineageos/app/ProfileGroup.java b/sdk/src/java/lineageos/app/ProfileGroup.java
index 56ec5077..e0130e09 100644
--- a/sdk/src/java/lineageos/app/ProfileGroup.java
+++ b/sdk/src/java/lineageos/app/ProfileGroup.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
import android.app.Notification;
import android.app.NotificationGroup;
@@ -29,10 +29,10 @@ import android.os.ParcelUuid;
import android.text.TextUtils;
import android.util.Log;
-import cyanogenmod.os.Build;
+import lineageos.os.Build;
-import cyanogenmod.os.Concierge;
-import cyanogenmod.os.Concierge.ParcelInfo;
+import lineageos.os.Concierge;
+import lineageos.os.Concierge.ParcelInfo;
import java.io.IOException;
import java.util.UUID;
@@ -297,7 +297,7 @@ public final class ProfileGroup implements Parcelable {
// Pattern here is that all new members should be added to the end of
// the writeToParcel method. Then we step through each version, until the latest
// API release to help unravel this parcel
- if (parcelableVersion >= Build.CM_VERSION_CODES.BOYSENBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.BOYSENBERRY) {
mName = in.readString();
mUuid = ParcelUuid.CREATOR.createFromParcel(in).getUuid();
mDefaultGroup = in.readInt() != 0;
diff --git a/sdk/src/java/lineageos/app/ProfileManager.java b/sdk/src/java/lineageos/app/ProfileManager.java
index 298afb37..8d69d0b4 100644
--- a/sdk/src/java/lineageos/app/ProfileManager.java
+++ b/sdk/src/java/lineageos/app/ProfileManager.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
import java.util.UUID;
@@ -28,10 +28,10 @@ import android.os.RemoteException;
import android.os.ServiceManager;
import android.util.Log;
-import cyanogenmod.app.IProfileManager;
+import lineageos.app.IProfileManager;
import com.android.internal.R;
-import cyanogenmod.providers.CMSettings;
+import lineageos.providers.LineageSettings;
/**
@@ -57,8 +57,8 @@ import cyanogenmod.providers.CMSettings;
*
* This manager requires the MODIFY_PROFILES permission.
*
- * @see cyanogenmod.app.Profile
- * @see cyanogenmod.app.ProfileGroup
+ * @see lineageos.app.Profile
+ * @see lineageos.app.ProfileGroup
*/
public class ProfileManager {
@@ -73,7 +73,7 @@ public class ProfileManager {
* or by calls to the ProfileManagerService / Profile.
*/
public static final String INTENT_ACTION_PROFILE_SELECTED =
- "cyanogenmod.platform.intent.action.PROFILE_SELECTED";
+ "lineageos.platform.intent.action.PROFILE_SELECTED";
/**
* Broadcast Action: Current profile has been updated. This is triggered every time the
@@ -82,14 +82,14 @@ public class ProfileManager {
* trigger a profile selection, but causes its name to change.
*/
public static final String INTENT_ACTION_PROFILE_UPDATED =
- "cyanogenmod.platform.intent.action.PROFILE_UPDATED";
+ "lineageos.platform.intent.action.PROFILE_UPDATED";
/**
* @hide
*/
public static final String INTENT_ACTION_PROFILE_TRIGGER_STATE_CHANGED =
- "cyanogenmod.platform.intent.action.INTENT_ACTION_PROFILE_TRIGGER_STATE_CHANGED";
+ "lineageos.platform.intent.action.INTENT_ACTION_PROFILE_TRIGGER_STATE_CHANGED";
/**
* @hide
@@ -141,7 +141,7 @@ public class ProfileManager {
*/
@SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
public static final String ACTION_PROFILE_PICKER =
- "cyanogenmod.platform.intent.action.PROFILE_PICKER";
+ "lineageos.platform.intent.action.PROFILE_PICKER";
/**
* Constant for NO_PROFILE
@@ -157,7 +157,7 @@ public class ProfileManager {
* @see #ACTION_PROFILE_PICKER
*/
public static final String EXTRA_PROFILE_SHOW_NONE =
- "cyanogenmod.platform.intent.extra.profile.SHOW_NONE";
+ "lineageos.platform.intent.extra.profile.SHOW_NONE";
/**
* Given to the profile picker as a {@link UUID} string representation. The {@link UUID}
@@ -169,7 +169,7 @@ public class ProfileManager {
* @see #ACTION_PROFILE_PICKER
*/
public static final String EXTRA_PROFILE_EXISTING_UUID =
- "cyanogenmod.platform.extra.profile.EXISTING_UUID";
+ "lineageos.platform.extra.profile.EXISTING_UUID";
/**
* Given to the profile picker as a {@link CharSequence}. The title to
@@ -179,7 +179,7 @@ public class ProfileManager {
* @see #ACTION_PROFILE_PICKER
*/
public static final String EXTRA_PROFILE_TITLE =
- "cyanogenmod.platform.intent.extra.profile.TITLE";
+ "lineageos.platform.intent.extra.profile.TITLE";
/**
* Returned from the profile picker as a {@link UUID} string representation.
@@ -191,7 +191,7 @@ public class ProfileManager {
* @see #ACTION_PROFILE_PICKER
*/
public static final String EXTRA_PROFILE_PICKED_UUID =
- "cyanogenmod.platform.intent.extra.profile.PICKED_UUID";
+ "lineageos.platform.intent.extra.profile.PICKED_UUID";
/**
* Broadcast intent action indicating that Profiles has been enabled or disabled.
@@ -201,7 +201,7 @@ public class ProfileManager {
*/
@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String PROFILES_STATE_CHANGED_ACTION =
- "cyanogenmod.platform.app.profiles.PROFILES_STATE_CHANGED";
+ "lineageos.platform.app.profiles.PROFILES_STATE_CHANGED";
/**
* The lookup key for an int that indicates whether Profiles are enabled or
@@ -219,7 +219,7 @@ public class ProfileManager {
* @see #ACTION_PROFILE_PICKER
*/
public static final String EXTRA_PROFILE_DIALOG_THEME =
- "cyanogenmod.platform.intent.extra.profile.DIALOG_THEME";
+ "lineageos.platform.intent.extra.profile.DIALOG_THEME";
/**
* Profiles are disabled.
@@ -246,7 +246,7 @@ public class ProfileManager {
sService = getService();
if (context.getPackageManager().hasSystemFeature(
- cyanogenmod.app.CMContextConstants.Features.PROFILES) && sService == null) {
+ lineageos.app.LineageContextConstants.Features.PROFILES) && sService == null) {
Log.wtf(TAG, "Unable to get ProfileManagerService. The service either" +
" crashed, was not started, or the interface has been called to early in" +
" SystemServer init");
@@ -254,7 +254,7 @@ public class ProfileManager {
}
/**
- * Get or create an instance of the {@link cyanogenmod.app.ProfileManager}
+ * Get or create an instance of the {@link lineageos.app.ProfileManager}
* @param context
* @return {@link ProfileManager}
*/
@@ -270,7 +270,7 @@ public class ProfileManager {
if (sService != null) {
return sService;
}
- IBinder b = ServiceManager.getService(CMContextConstants.CM_PROFILE_SERVICE);
+ IBinder b = ServiceManager.getService(LineageContextConstants.LINEAGE_PROFILE_SERVICE);
sService = IProfileManager.Stub.asInterface(b);
return sService;
}
diff --git a/sdk/src/java/lineageos/app/StatusBarPanelCustomTile.aidl b/sdk/src/java/lineageos/app/StatusBarPanelCustomTile.aidl
index 96cfb6ab..49c110d4 100644
--- a/sdk/src/java/lineageos/app/StatusBarPanelCustomTile.aidl
+++ b/sdk/src/java/lineageos/app/StatusBarPanelCustomTile.aidl
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
parcelable StatusBarPanelCustomTile;
diff --git a/sdk/src/java/lineageos/app/StatusBarPanelCustomTile.java b/sdk/src/java/lineageos/app/StatusBarPanelCustomTile.java
index 2ee33da2..0e53b3b3 100644
--- a/sdk/src/java/lineageos/app/StatusBarPanelCustomTile.java
+++ b/sdk/src/java/lineageos/app/StatusBarPanelCustomTile.java
@@ -14,20 +14,20 @@
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.UserHandle;
-import cyanogenmod.os.Build;
+import lineageos.os.Build;
-import cyanogenmod.os.Concierge;
-import cyanogenmod.os.Concierge.ParcelInfo;
+import lineageos.os.Concierge;
+import lineageos.os.Concierge.ParcelInfo;
/**
* Class encapsulating a Custom Tile. Sent by the StatusBarManagerService to clients including
- * the status bar panel and any {@link cyanogenmod.app.CustomTileListenerService} clients.
+ * the status bar panel and any {@link lineageos.app.CustomTileListenerService} clients.
*/
public class StatusBarPanelCustomTile implements Parcelable {
@@ -90,7 +90,7 @@ public class StatusBarPanelCustomTile implements Parcelable {
// Pattern here is that all new members should be added to the end of
// the writeToParcel method. Then we step through each version, until the latest
// API release to help unravel this parcel
- if (parcelableVersion >= Build.CM_VERSION_CODES.APRICOT) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.APRICOT) {
// default
tmpPkg = in.readString();
tmpOpPkg = in.readString();
@@ -107,7 +107,7 @@ public class StatusBarPanelCustomTile implements Parcelable {
tmpPostTime = in.readLong();
}
- if (parcelableVersion >= Build.CM_VERSION_CODES.BOYSENBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.BOYSENBERRY) {
tmpResPkg = in.readString();
}
@@ -151,8 +151,8 @@ public class StatusBarPanelCustomTile implements Parcelable {
}
};
- /** The {@link cyanogenmod.app.CustomTile} supplied to
- * {@link cyanogenmod.app.CMStatusBarManager#publishTile(int, cyanogenmod.app.CustomTile)}.
+ /** The {@link lineageos.app.CustomTile} supplied to
+ * {@link lineageos.app.LineageStatusBarManager#publishTile(int, lineageos.app.CustomTile)}.
*/
public CustomTile getCustomTile() {
return customTile;
@@ -210,12 +210,12 @@ public class StatusBarPanelCustomTile implements Parcelable {
return pkg;
}
- /** The id supplied to CMStatusBarManager */
+ /** The id supplied to LineageStatusBarManager */
public int getId() {
return id;
}
- /** The tag supplied to CMStatusBarManager or null if no tag was specified. */
+ /** The tag supplied to LineageStatusBarManager or null if no tag was specified. */
public String getTag() {
return tag;
}
diff --git a/sdk/src/java/lineageos/app/ThemeComponent.java b/sdk/src/java/lineageos/app/ThemeComponent.java
index d3f66259..cc7d2f0e 100644
--- a/sdk/src/java/lineageos/app/ThemeComponent.java
+++ b/sdk/src/java/lineageos/app/ThemeComponent.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
/**
* The id value here matches the framework. Unknown is given a -1 value since future
diff --git a/sdk/src/java/lineageos/app/ThemeVersion.java b/sdk/src/java/lineageos/app/ThemeVersion.java
index b9846c6e..4dd09748 100644
--- a/sdk/src/java/lineageos/app/ThemeVersion.java
+++ b/sdk/src/java/lineageos/app/ThemeVersion.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.app;
+package lineageos.app;
import android.os.Build;
diff --git a/sdk/src/java/lineageos/app/suggest/AppSuggestManager.java b/sdk/src/java/lineageos/app/suggest/AppSuggestManager.java
index 667eaa79..f156727c 100644
--- a/sdk/src/java/lineageos/app/suggest/AppSuggestManager.java
+++ b/sdk/src/java/lineageos/app/suggest/AppSuggestManager.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.app.suggest;
+package lineageos.app.suggest;
import android.content.Context;
import android.content.Intent;
@@ -31,12 +31,12 @@ import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.app.suggest.ApplicationSuggestion;
+import lineageos.app.LineageContextConstants;
+import lineageos.app.suggest.ApplicationSuggestion;
/**
* Provides an interface to get information about suggested apps for an intent which may include
- * applications not installed on the device. This is used by the CMResolver in order to provide
+ * applications not installed on the device. This is used by the LineageResolver in order to provide
* suggestions when an intent is fired but no application exists for the given intent.
*
* @hide
@@ -68,7 +68,7 @@ public class AppSuggestManager {
sInstance = new AppSuggestManager(context);
- if (context.getPackageManager().hasSystemFeature(CMContextConstants.Features.APP_SUGGEST)
+ if (context.getPackageManager().hasSystemFeature(LineageContextConstants.Features.APP_SUGGEST)
&& sImpl == null) {
throw new RuntimeException("Unable to get AppSuggestManagerService. " +
"The service either crashed, was not started, or the interface has been" +
@@ -86,7 +86,7 @@ public class AppSuggestManager {
/** @hide */
public static synchronized IAppSuggestManager getService() {
if (sImpl == null) {
- IBinder b = ServiceManager.getService(CMContextConstants.CM_APP_SUGGEST_SERVICE);
+ IBinder b = ServiceManager.getService(LineageContextConstants.LINEAGE_APP_SUGGEST_SERVICE);
if (b != null) {
sImpl = IAppSuggestManager.Stub.asInterface(b);
} else {
diff --git a/sdk/src/java/lineageos/app/suggest/ApplicationSuggestion.aidl b/sdk/src/java/lineageos/app/suggest/ApplicationSuggestion.aidl
index 7ab8584b..378db285 100644
--- a/sdk/src/java/lineageos/app/suggest/ApplicationSuggestion.aidl
+++ b/sdk/src/java/lineageos/app/suggest/ApplicationSuggestion.aidl
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.app.suggest;
+package lineageos.app.suggest;
/**
* @hide
diff --git a/sdk/src/java/lineageos/app/suggest/ApplicationSuggestion.java b/sdk/src/java/lineageos/app/suggest/ApplicationSuggestion.java
index 17e40b98..1ab32627 100644
--- a/sdk/src/java/lineageos/app/suggest/ApplicationSuggestion.java
+++ b/sdk/src/java/lineageos/app/suggest/ApplicationSuggestion.java
@@ -14,16 +14,16 @@
* limitations under the License.
*/
-package cyanogenmod.app.suggest;
+package lineageos.app.suggest;
import android.annotation.NonNull;
import android.net.Uri;
import android.os.Parcel;
import android.os.Parcelable;
-import cyanogenmod.os.Build;
-import cyanogenmod.os.Concierge;
-import cyanogenmod.os.Concierge.ParcelInfo;
+import lineageos.os.Build;
+import lineageos.os.Concierge;
+import lineageos.os.Concierge.ParcelInfo;
/**
* @hide
@@ -62,7 +62,7 @@ public class ApplicationSuggestion implements Parcelable {
ParcelInfo parcelInfo = Concierge.receiveParcel(in);
int parcelableVersion = parcelInfo.getParcelVersion();
- if (parcelableVersion >= Build.CM_VERSION_CODES.APRICOT) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.APRICOT) {
mName = in.readString();
mPackage = in.readString();
mDownloadUri = in.readParcelable(Uri.class.getClassLoader());
diff --git a/sdk/src/java/lineageos/app/suggest/IAppSuggestManager.aidl b/sdk/src/java/lineageos/app/suggest/IAppSuggestManager.aidl
index 68ab87f8..c121b522 100644
--- a/sdk/src/java/lineageos/app/suggest/IAppSuggestManager.aidl
+++ b/sdk/src/java/lineageos/app/suggest/IAppSuggestManager.aidl
@@ -14,11 +14,11 @@
* limitations under the License.
*/
-package cyanogenmod.app.suggest;
+package lineageos.app.suggest;
import android.content.Intent;
-import cyanogenmod.app.suggest.ApplicationSuggestion;
+import lineageos.app.suggest.ApplicationSuggestion;
/**
* @hide
diff --git a/sdk/src/java/lineageos/app/suggest/IAppSuggestProvider.aidl b/sdk/src/java/lineageos/app/suggest/IAppSuggestProvider.aidl
index 759880d8..84b3db13 100644
--- a/sdk/src/java/lineageos/app/suggest/IAppSuggestProvider.aidl
+++ b/sdk/src/java/lineageos/app/suggest/IAppSuggestProvider.aidl
@@ -14,11 +14,11 @@
* limitations under the License.
*/
-package cyanogenmod.app.suggest;
+package lineageos.app.suggest;
import android.content.Intent;
-import cyanogenmod.app.suggest.ApplicationSuggestion;
+import lineageos.app.suggest.ApplicationSuggestion;
/**
* @hide
diff --git a/sdk/src/java/lineageos/content/Intent.java b/sdk/src/java/lineageos/content/Intent.java
index 6bd96fd5..fc4dbace 100644
--- a/sdk/src/java/lineageos/content/Intent.java
+++ b/sdk/src/java/lineageos/content/Intent.java
@@ -15,12 +15,12 @@
* limitations under the License.
*/
-package cyanogenmod.content;
+package lineageos.content;
import android.Manifest;
/**
- * CyanogenMod specific intent definition class.
+ * LineageOS specific intent definition class.
*/
public class Intent {
@@ -32,7 +32,7 @@ public class Intent {
* @hide
*/
public static final String ACTION_RECENTS_LONG_PRESS =
- "cyanogenmod.intent.action.RECENTS_LONG_PRESS";
+ "lineageos.intent.action.RECENTS_LONG_PRESS";
/**
* This field is part of the intent {@link #ACTION_RECENTS_LONG_PRESS}.
@@ -41,32 +41,32 @@ public class Intent {
* @hide
*/
public static final String EXTRA_RECENTS_LONG_PRESS_RELEASE =
- "cyanogenmod.intent.extra.RECENTS_LONG_PRESS_RELEASE";
+ "lineageos.intent.extra.RECENTS_LONG_PRESS_RELEASE";
/**
* Intent filter to update protected app component's settings
*/
- public static final String ACTION_PROTECTED = "cyanogenmod.intent.action.PACKAGE_PROTECTED";
+ public static final String ACTION_PROTECTED = "lineageos.intent.action.PACKAGE_PROTECTED";
/**
* Intent filter to notify change in state of protected application.
*/
public static final String ACTION_PROTECTED_CHANGED =
- "cyanogenmod.intent.action.PROTECTED_COMPONENT_UPDATE";
+ "lineageos.intent.action.PROTECTED_COMPONENT_UPDATE";
/**
* This field is part of the intent {@link #ACTION_PROTECTED_CHANGED}.
* Intent extra field for the state of protected application
*/
public static final String EXTRA_PROTECTED_STATE =
- "cyanogenmod.intent.extra.PACKAGE_PROTECTED_STATE";
+ "lineageos.intent.extra.PACKAGE_PROTECTED_STATE";
/**
* This field is part of the intent {@link #ACTION_PROTECTED_CHANGED}.
* Intent extra field to indicate protected component value
*/
public static final String EXTRA_PROTECTED_COMPONENTS =
- "cyanogenmod.intent.extra.PACKAGE_PROTECTED_COMPONENTS";
+ "lineageos.intent.extra.PACKAGE_PROTECTED_COMPONENTS";
/**
* Broadcast action: notify the system that the user has performed a gesture on the screen
@@ -75,57 +75,57 @@ public class Intent {
* @hide
*/
public static final String ACTION_SCREEN_CAMERA_GESTURE =
- "cyanogenmod.intent.action.SCREEN_CAMERA_GESTURE";
+ "lineageos.intent.action.SCREEN_CAMERA_GESTURE";
/**
- * Broadcast action: perform any initialization required for CMHW services.
+ * Broadcast action: perform any initialization required for LineageHW services.
* Runs when the service receives the signal the device has booted, but
* should happen before {@link android.content.Intent#ACTION_BOOT_COMPLETED}.
*
- * Requires {@link cyanogenmod.platform.Manifest.permission#HARDWARE_ABSTRACTION_ACCESS}.
+ * Requires {@link lineageos.platform.Manifest.permission#HARDWARE_ABSTRACTION_ACCESS}.
* @hide
*/
- public static final String ACTION_INITIALIZE_CM_HARDWARE =
- "cyanogenmod.intent.action.INITIALIZE_CM_HARDWARE";
+ public static final String ACTION_INITIALIZE_LINEAGE_HARDWARE =
+ "lineageos.intent.action.INITIALIZE_LINEAGE_HARDWARE";
/**
* Broadcast Action: Indicate that an unrecoverable error happened during app launch.
* Could indicate that curently applied theme is malicious.
* @hide
*/
- public static final String ACTION_APP_FAILURE = "cyanogenmod.intent.action.APP_FAILURE";
+ public static final String ACTION_APP_FAILURE = "lineageos.intent.action.APP_FAILURE";
/**
* Used to indicate that a theme package has been installed or un-installed.
*/
public static final String CATEGORY_THEME_PACKAGE_INSTALLED_STATE_CHANGE =
- "cyanogenmod.intent.category.THEME_PACKAGE_INSTALL_STATE_CHANGE";
+ "lineageos.intent.category.THEME_PACKAGE_INSTALL_STATE_CHANGE";
/**
* Action sent from the provider when a theme has been fully installed. Fully installed
* means that the apk was installed by PackageManager and the theme resources were
- * processed and cached by {@link org.cyanogenmod.platform.internal.ThemeManagerService}
- * Requires the {@link cyanogenmod.platform.Manifest.permission#READ_THEMES} permission to
+ * processed and cached by {@link org.lineageos.platform.internal.ThemeManagerService}
+ * Requires the {@link lineageos.platform.Manifest.permission#READ_THEMES} permission to
* receive this broadcast.
*/
public static final String ACTION_THEME_INSTALLED =
- "cyanogenmod.intent.action.THEME_INSTALLED";
+ "lineageos.intent.action.THEME_INSTALLED";
/**
* Action sent from the provider when a theme has been updated.
- * Requires the {@link cyanogenmod.platform.Manifest.permission#READ_THEMES} permission to
+ * Requires the {@link lineageos.platform.Manifest.permission#READ_THEMES} permission to
* receive this broadcast.
*/
public static final String ACTION_THEME_UPDATED =
- "cyanogenmod.intent.action.THEME_UPDATED";
+ "lineageos.intent.action.THEME_UPDATED";
/**
* Action sent from the provider when a theme has been removed.
- * Requires the {@link cyanogenmod.platform.Manifest.permission#READ_THEMES} permission to
+ * Requires the {@link lineageos.platform.Manifest.permission#READ_THEMES} permission to
* receive this broadcast.
*/
public static final String ACTION_THEME_REMOVED =
- "cyanogenmod.intent.action.THEME_REMOVED";
+ "lineageos.intent.action.THEME_REMOVED";
/**
* Uri scheme used to broadcast the theme's package name when broadcasting
@@ -139,14 +139,14 @@ public class Intent {
* @hide
*/
public static final String ACTION_OPEN_LIVE_LOCKSCREEN_SETTINGS =
- "cyanogenmod.intent.action.OPEN_LIVE_LOCKSCREEN_SETTINGS";
+ "lineageos.intent.action.OPEN_LIVE_LOCKSCREEN_SETTINGS";
/**
* Broadcast action: lid state changed
* @hide
*/
public static final String ACTION_LID_STATE_CHANGED =
- "cyanogenmod.intent.action.LID_STATE_CHANGED";
+ "lineageos.intent.action.LID_STATE_CHANGED";
/**
* This field is part of the intent {@link #ACTION_LID_STATE_CHANGED}.
@@ -154,5 +154,5 @@ public class Intent {
* @hide
*/
public static final String EXTRA_LID_STATE =
- "cyanogenmod.intent.extra.LID_STATE";
+ "lineageos.intent.extra.LID_STATE";
}
diff --git a/sdk/src/java/lineageos/externalviews/ExternalView.java b/sdk/src/java/lineageos/externalviews/ExternalView.java
index 3c3adb43..2cb632fc 100644
--- a/sdk/src/java/lineageos/externalviews/ExternalView.java
+++ b/sdk/src/java/lineageos/externalviews/ExternalView.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.externalviews;
+package lineageos.externalviews;
import android.app.Activity;
import android.app.Application;
diff --git a/sdk/src/java/lineageos/externalviews/ExternalViewProperties.java b/sdk/src/java/lineageos/externalviews/ExternalViewProperties.java
index e8adddf8..998962c4 100644
--- a/sdk/src/java/lineageos/externalviews/ExternalViewProperties.java
+++ b/sdk/src/java/lineageos/externalviews/ExternalViewProperties.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.externalviews;
+package lineageos.externalviews;
import android.app.Activity;
import android.app.Application;
diff --git a/sdk/src/java/lineageos/externalviews/ExternalViewProviderService.java b/sdk/src/java/lineageos/externalviews/ExternalViewProviderService.java
index b15e01a3..c0a4aa84 100644
--- a/sdk/src/java/lineageos/externalviews/ExternalViewProviderService.java
+++ b/sdk/src/java/lineageos/externalviews/ExternalViewProviderService.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.externalviews;
+package lineageos.externalviews;
import android.app.Service;
import android.content.Context;
diff --git a/sdk/src/java/lineageos/externalviews/IExternalViewProvider.aidl b/sdk/src/java/lineageos/externalviews/IExternalViewProvider.aidl
index e05215f0..48de0fd4 100644
--- a/sdk/src/java/lineageos/externalviews/IExternalViewProvider.aidl
+++ b/sdk/src/java/lineageos/externalviews/IExternalViewProvider.aidl
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.externalviews;
+package lineageos.externalviews;
import android.graphics.Rect;
diff --git a/sdk/src/java/lineageos/externalviews/IExternalViewProviderFactory.aidl b/sdk/src/java/lineageos/externalviews/IExternalViewProviderFactory.aidl
index 75a8b353..2131abd8 100644
--- a/sdk/src/java/lineageos/externalviews/IExternalViewProviderFactory.aidl
+++ b/sdk/src/java/lineageos/externalviews/IExternalViewProviderFactory.aidl
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.externalviews;
+package lineageos.externalviews;
import android.os.Bundle;
diff --git a/sdk/src/java/lineageos/externalviews/IKeyguardExternalViewCallbacks.aidl b/sdk/src/java/lineageos/externalviews/IKeyguardExternalViewCallbacks.aidl
index c9d75e2d..c33a2ee3 100644
--- a/sdk/src/java/lineageos/externalviews/IKeyguardExternalViewCallbacks.aidl
+++ b/sdk/src/java/lineageos/externalviews/IKeyguardExternalViewCallbacks.aidl
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.externalviews;
+package lineageos.externalviews;
import android.content.Intent;
diff --git a/sdk/src/java/lineageos/externalviews/IKeyguardExternalViewProvider.aidl b/sdk/src/java/lineageos/externalviews/IKeyguardExternalViewProvider.aidl
index a708984f..052453de 100644
--- a/sdk/src/java/lineageos/externalviews/IKeyguardExternalViewProvider.aidl
+++ b/sdk/src/java/lineageos/externalviews/IKeyguardExternalViewProvider.aidl
@@ -14,11 +14,11 @@
* limitations under the License.
*/
-package cyanogenmod.externalviews;
+package lineageos.externalviews;
import android.graphics.Rect;
-import cyanogenmod.externalviews.IKeyguardExternalViewCallbacks;
+import lineageos.externalviews.IKeyguardExternalViewCallbacks;
/** @hide */
interface IKeyguardExternalViewProvider
diff --git a/sdk/src/java/lineageos/externalviews/KeyguardExternalView.java b/sdk/src/java/lineageos/externalviews/KeyguardExternalView.java
index e8a611b0..e8ce7072 100644
--- a/sdk/src/java/lineageos/externalviews/KeyguardExternalView.java
+++ b/sdk/src/java/lineageos/externalviews/KeyguardExternalView.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.externalviews;
+package lineageos.externalviews;
import android.app.Activity;
import android.app.Application;
@@ -37,7 +37,7 @@ import java.util.LinkedList;
/**
* This class provides a placeholder view for hosting an external view, provided by a
- * {@link cyanogenmod.externalviews.KeyguardExternalViewProviderService}, within the lock screen.
+ * {@link lineageos.externalviews.KeyguardExternalViewProviderService}, within the lock screen.
*
* This class is intended to only be used within the SystemUi process.
* @hide
@@ -54,13 +54,13 @@ public class KeyguardExternalView extends View implements ViewTreeObserver.OnPre
/**
* Category defining an activity to call to request permissions that a
- * {@link cyanogenmod.externalviews.KeyguardExternalViewProviderService} will need. Apps that
- * provide a {@link cyanogenmod.externalviews.KeyguardExternalViewProviderService} should
+ * {@link lineageos.externalviews.KeyguardExternalViewProviderService} will need. Apps that
+ * provide a {@link lineageos.externalviews.KeyguardExternalViewProviderService} should
* check that they have the required permission before making any method calls that would
* require a dangerous permission to be granted.
*/
public static final String CATEGORY_KEYGUARD_GRANT_PERMISSION
- = "org.cyanogenmod.intent.category.KEYGUARD_GRANT_PERMISSION";
+ = "org.lineageos.intent.category.KEYGUARD_GRANT_PERMISSION";
private LinkedList mQueue = new LinkedList();
@@ -91,7 +91,7 @@ public class KeyguardExternalView extends View implements ViewTreeObserver.OnPre
* @param context
* @param attributeSet
* @param componentName The component name for the
- * {@link cyanogenmod.externalviews.KeyguardExternalViewProviderService}
+ * {@link lineageos.externalviews.KeyguardExternalViewProviderService}
* that will be bound to create the external view.
*/
public KeyguardExternalView(Context context, AttributeSet attributeSet, ComponentName componentName) {
@@ -284,10 +284,10 @@ public class KeyguardExternalView extends View implements ViewTreeObserver.OnPre
}
/**
- * Sets the component of the {@link cyanogenmod.externalviews.KeyguardExternalViewProviderService}
+ * Sets the component of the {@link lineageos.externalviews.KeyguardExternalViewProviderService}
* to be used for this ExternalView. If a provider is already connected to this view, it is
* first unbound before binding to the new provider.
- * @param componentName The {@link cyanogenmod.externalviews.KeyguardExternalViewProviderService}
+ * @param componentName The {@link lineageos.externalviews.KeyguardExternalViewProviderService}
* to bind to.
*/
public void setProviderComponent(ComponentName componentName) {
@@ -401,7 +401,7 @@ public class KeyguardExternalView extends View implements ViewTreeObserver.OnPre
/**
* External views provided by a
- * {@link cyanogenmod.externalviews.KeyguardExternalViewProviderService} can be either
+ * {@link lineageos.externalviews.KeyguardExternalViewProviderService} can be either
* interactive or non-interactive.
*
* A non-interactive component does not receive any input events and functions similar to a
@@ -417,9 +417,9 @@ public class KeyguardExternalView extends View implements ViewTreeObserver.OnPre
}
/**
- * Registers a {@link cyanogenmod.externalviews.KeyguardExternalView.KeyguardExternalViewCallbacks}
+ * Registers a {@link lineageos.externalviews.KeyguardExternalView.KeyguardExternalViewCallbacks}
* for receiving events from the
- * {@link cyanogenmod.externalviews.KeyguardExternalViewProviderService}
+ * {@link lineageos.externalviews.KeyguardExternalViewProviderService}
* @param callback The callback to register
*/
public void registerKeyguardExternalViewCallback(KeyguardExternalViewCallbacks callback) {
@@ -428,7 +428,7 @@ public class KeyguardExternalView extends View implements ViewTreeObserver.OnPre
/**
* Unregister a previously registered
- * {@link cyanogenmod.externalviews.KeyguardExternalView.KeyguardExternalViewCallbacks}
+ * {@link lineageos.externalviews.KeyguardExternalView.KeyguardExternalViewCallbacks}
* @param callback The callback to unregister
*/
public void unregisterKeyguardExternalViewCallback(KeyguardExternalViewCallbacks callback) {
@@ -439,9 +439,9 @@ public class KeyguardExternalView extends View implements ViewTreeObserver.OnPre
}
/**
- * Registers a {@link cyanogenmod.externalviews.KeyguardExternalView.OnWindowAttachmentChangedListener}
+ * Registers a {@link lineageos.externalviews.KeyguardExternalView.OnWindowAttachmentChangedListener}
* for receiving events from the
- * {@link cyanogenmod.externalviews.KeyguardExternalViewProviderService}
+ * {@link lineageos.externalviews.KeyguardExternalViewProviderService}
* @param listener The callback to register
*
* @hide
@@ -453,7 +453,7 @@ public class KeyguardExternalView extends View implements ViewTreeObserver.OnPre
/**
* Unregister a previously registered
- * {@link cyanogenmod.externalviews.KeyguardExternalView.OnWindowAttachmentChangedListener}
+ * {@link lineageos.externalviews.KeyguardExternalView.OnWindowAttachmentChangedListener}
* @param listener The callback to unregister
*
* @hide
@@ -467,9 +467,9 @@ public class KeyguardExternalView extends View implements ViewTreeObserver.OnPre
}
/**
- * Callback interface for a {@link cyanogenmod.externalviews.KeyguardExternalViewProviderService}
+ * Callback interface for a {@link lineageos.externalviews.KeyguardExternalViewProviderService}
* to send events to the host's registered
- * {@link cyanogenmod.externalviews.KeyguardExternalView.KeyguardExternalViewCallbacks}
+ * {@link lineageos.externalviews.KeyguardExternalView.KeyguardExternalViewCallbacks}
*/
public interface KeyguardExternalViewCallbacks {
boolean requestDismiss();
diff --git a/sdk/src/java/lineageos/externalviews/KeyguardExternalViewProviderService.java b/sdk/src/java/lineageos/externalviews/KeyguardExternalViewProviderService.java
index 8bd51fd9..9b435995 100644
--- a/sdk/src/java/lineageos/externalviews/KeyguardExternalViewProviderService.java
+++ b/sdk/src/java/lineageos/externalviews/KeyguardExternalViewProviderService.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.externalviews;
+package lineageos.externalviews;
import android.app.Service;
import android.content.Context;
@@ -50,7 +50,7 @@ import java.util.concurrent.FutureTask;
* wish to provide a view to be displayed within the lock screen should extend this service.
*
*
Applications extending this class should include the
- * {@link cyanogenmod.platform.Manifest.permission#THIRD_PARTY_KEYGUARD} permission in their
+ * {@link lineageos.platform.Manifest.permission#THIRD_PARTY_KEYGUARD} permission in their
* manifest
* Applications extending this class should also extend
@@ -68,12 +68,12 @@ public abstract class KeyguardExternalViewProviderService extends Service {
*
*
{@code
*
- *
+ *
*
*}
*/
public static final String SERVICE_INTERFACE =
- "cyanogenmod.externalviews.KeyguardExternalViewProviderService";
+ "lineageos.externalviews.KeyguardExternalViewProviderService";
/**
* Name under which an external keyguard view publishes information about itself.
@@ -81,7 +81,7 @@ public abstract class KeyguardExternalViewProviderService extends Service {
* a <lockscreen>
* tag.
*/
- public static final String META_DATA = "cyanogenmod.externalviews.keyguard";
+ public static final String META_DATA = "lineageos.externalviews.keyguard";
private WindowManager mWindowManager;
private final Handler mHandler = new Handler();
@@ -595,7 +595,7 @@ public abstract class KeyguardExternalViewProviderService extends Service {
* attention. The user will still be able to bring the notifications back into view by
* sliding down from the status bar.
* Calling this method has no effect for non-interactive components.
- * @deprecated As of SDK version {@link cyanogenmod.os.Build.CM_VERSION_CODES#ELDERBERRY}
+ * @deprecated As of SDK version {@link lineageos.os.Build.LINEAGE_VERSION_CODES#ELDERBERRY}
* this does nothing.
*/
@Deprecated
diff --git a/sdk/src/java/lineageos/hardware/DisplayMode.aidl b/sdk/src/java/lineageos/hardware/DisplayMode.aidl
index a4f9163a..5dbab072 100644
--- a/sdk/src/java/lineageos/hardware/DisplayMode.aidl
+++ b/sdk/src/java/lineageos/hardware/DisplayMode.aidl
@@ -14,6 +14,6 @@
* limitations under the License.
*/
-package cyanogenmod.hardware;
+package lineageos.hardware;
parcelable DisplayMode;
diff --git a/sdk/src/java/lineageos/hardware/DisplayMode.java b/sdk/src/java/lineageos/hardware/DisplayMode.java
index 77172b8e..1e0f8476 100644
--- a/sdk/src/java/lineageos/hardware/DisplayMode.java
+++ b/sdk/src/java/lineageos/hardware/DisplayMode.java
@@ -14,14 +14,14 @@
* limitations under the License.
*/
-package cyanogenmod.hardware;
+package lineageos.hardware;
import android.os.Parcel;
import android.os.Parcelable;
-import cyanogenmod.os.Build;
-import cyanogenmod.os.Concierge;
-import cyanogenmod.os.Concierge.ParcelInfo;
+import lineageos.os.Build;
+import lineageos.os.Concierge;
+import lineageos.os.Concierge.ParcelInfo;
/**
* Display Modes API
@@ -55,7 +55,7 @@ public class DisplayMode implements Parcelable {
int tmpId = -1;
String tmpName = null;
- if (parcelableVersion >= Build.CM_VERSION_CODES.BOYSENBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.BOYSENBERRY) {
tmpId = parcel.readInt();
if (parcel.readInt() != 0) {
tmpName = parcel.readString();
diff --git a/sdk/src/java/lineageos/hardware/HSIC.aidl b/sdk/src/java/lineageos/hardware/HSIC.aidl
index 1689ee6c..1313a634 100644
--- a/sdk/src/java/lineageos/hardware/HSIC.aidl
+++ b/sdk/src/java/lineageos/hardware/HSIC.aidl
@@ -14,6 +14,6 @@
* limitations under the License.
*/
-package cyanogenmod.hardware;
+package lineageos.hardware;
parcelable HSIC;
diff --git a/sdk/src/java/lineageos/hardware/HSIC.java b/sdk/src/java/lineageos/hardware/HSIC.java
index df6cb5f0..b5a9f250 100644
--- a/sdk/src/java/lineageos/hardware/HSIC.java
+++ b/sdk/src/java/lineageos/hardware/HSIC.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.hardware;
+package lineageos.hardware;
import android.graphics.Color;
import android.os.Parcel;
diff --git a/sdk/src/java/lineageos/hardware/ILineageHardwareService.aidl b/sdk/src/java/lineageos/hardware/ILineageHardwareService.aidl
index f8ec46d2..22785acb 100644
--- a/sdk/src/java/lineageos/hardware/ILineageHardwareService.aidl
+++ b/sdk/src/java/lineageos/hardware/ILineageHardwareService.aidl
@@ -15,15 +15,15 @@
* limitations under the License.
*/
-package cyanogenmod.hardware;
+package lineageos.hardware;
-import cyanogenmod.hardware.DisplayMode;
-import cyanogenmod.hardware.HSIC;
-import cyanogenmod.hardware.IThermalListenerCallback;
-import cyanogenmod.hardware.TouchscreenGesture;
+import lineageos.hardware.DisplayMode;
+import lineageos.hardware.HSIC;
+import lineageos.hardware.IThermalListenerCallback;
+import lineageos.hardware.TouchscreenGesture;
/** @hide */
-interface ICMHardwareService {
+interface ILineageHardwareService {
int getSupportedFeatures();
boolean get(int feature);
diff --git a/sdk/src/java/lineageos/hardware/ILiveDisplayService.aidl b/sdk/src/java/lineageos/hardware/ILiveDisplayService.aidl
index 3c9c971e..a9a766d9 100644
--- a/sdk/src/java/lineageos/hardware/ILiveDisplayService.aidl
+++ b/sdk/src/java/lineageos/hardware/ILiveDisplayService.aidl
@@ -14,10 +14,10 @@
* limitations under the License.
*/
-package cyanogenmod.hardware;
+package lineageos.hardware;
-import cyanogenmod.hardware.HSIC;
-import cyanogenmod.hardware.LiveDisplayConfig;
+import lineageos.hardware.HSIC;
+import lineageos.hardware.LiveDisplayConfig;
/** @hide */
interface ILiveDisplayService {
diff --git a/sdk/src/java/lineageos/hardware/IThermalListenerCallback.aidl b/sdk/src/java/lineageos/hardware/IThermalListenerCallback.aidl
index 1a53af20..b2273a60 100644
--- a/sdk/src/java/lineageos/hardware/IThermalListenerCallback.aidl
+++ b/sdk/src/java/lineageos/hardware/IThermalListenerCallback.aidl
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.hardware;
+package lineageos.hardware;
interface IThermalListenerCallback {
void onThermalChanged(int state);
diff --git a/sdk/src/java/lineageos/hardware/LineageHardwareManager.java b/sdk/src/java/lineageos/hardware/LineageHardwareManager.java
index 279d07fe..58696bee 100644
--- a/sdk/src/java/lineageos/hardware/LineageHardwareManager.java
+++ b/sdk/src/java/lineageos/hardware/LineageHardwareManager.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.hardware;
+package lineageos.hardware;
import android.content.Context;
import android.os.IBinder;
@@ -25,8 +25,8 @@ import android.util.Range;
import com.android.internal.annotations.VisibleForTesting;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.hardware.HSIC;
+import lineageos.app.LineageContextConstants;
+import lineageos.hardware.HSIC;
import java.io.UnsupportedEncodingException;
import java.lang.IllegalArgumentException;
@@ -36,17 +36,17 @@ import java.util.Arrays;
import java.util.List;
/**
- * Manages access to CyanogenMod hardware extensions
+ * Manages access to LineageOS hardware extensions
*
*
* This manager requires the HARDWARE_ABSTRACTION_ACCESS permission.
*
- * To get the instance of this class, utilize CMHardwareManager#getInstance(Context context)
+ * To get the instance of this class, utilize LineageHardwareManager#getInstance(Context context)
*/
-public final class CMHardwareManager {
- private static final String TAG = "CMHardwareManager";
+public final class LineageHardwareManager {
+ private static final String TAG = "LineageHardwareManager";
- private static ICMHardwareService sService;
+ private static ILineageHardwareService sService;
private Context mContext;
@@ -113,7 +113,7 @@ public final class CMHardwareManager {
/**
* Double-tap the touch panel to wake up the device
*
- * @deprecated This functionality is replaced by AOSP's implementation as of CM 13.0.
+ * @deprecated This functionality is replaced by AOSP's implementation as of Lineage 13.0.
*/
@Deprecated
@VisibleForTesting
@@ -190,12 +190,12 @@ public final class CMHardwareManager {
FEATURE_THERMAL_MONITOR
);
- private static CMHardwareManager sCMHardwareManagerInstance;
+ private static LineageHardwareManager sLineageHardwareManagerInstance;
/**
* @hide to prevent subclassing from outside of the framework
*/
- private CMHardwareManager(Context context) {
+ private LineageHardwareManager(Context context) {
Context appContext = context.getApplicationContext();
if (appContext != null) {
mContext = appContext;
@@ -205,33 +205,33 @@ public final class CMHardwareManager {
sService = getService();
if (context.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.HARDWARE_ABSTRACTION) && !checkService()) {
- Log.wtf(TAG, "Unable to get CMHardwareService. The service either" +
+ LineageContextConstants.Features.HARDWARE_ABSTRACTION) && !checkService()) {
+ Log.wtf(TAG, "Unable to get LineageHardwareService. The service either" +
" crashed, was not started, or the interface has been called to early in" +
" SystemServer init");
}
}
/**
- * Get or create an instance of the {@link cyanogenmod.hardware.CMHardwareManager}
+ * Get or create an instance of the {@link lineageos.hardware.LineageHardwareManager}
* @param context
- * @return {@link CMHardwareManager}
+ * @return {@link LineageHardwareManager}
*/
- public static CMHardwareManager getInstance(Context context) {
- if (sCMHardwareManagerInstance == null) {
- sCMHardwareManagerInstance = new CMHardwareManager(context);
+ public static LineageHardwareManager getInstance(Context context) {
+ if (sLineageHardwareManagerInstance == null) {
+ sLineageHardwareManagerInstance = new LineageHardwareManager(context);
}
- return sCMHardwareManagerInstance;
+ return sLineageHardwareManagerInstance;
}
/** @hide */
- public static ICMHardwareService getService() {
+ public static ILineageHardwareService getService() {
if (sService != null) {
return sService;
}
- IBinder b = ServiceManager.getService(CMContextConstants.CM_HARDWARE_SERVICE);
+ IBinder b = ServiceManager.getService(LineageContextConstants.LINEAGE_HARDWARE_SERVICE);
if (b != null) {
- sService = ICMHardwareService.Stub.asInterface(b);
+ sService = ILineageHardwareService.Stub.asInterface(b);
return sService;
}
return null;
@@ -251,9 +251,9 @@ public final class CMHardwareManager {
}
/**
- * Determine if a CM Hardware feature is supported on this device
+ * Determine if a Lineage Hardware feature is supported on this device
*
- * @param feature The CM Hardware feature to query
+ * @param feature The Lineage Hardware feature to query
*
* @return true if the feature is supported, false otherwise.
*/
@@ -286,7 +286,7 @@ public final class CMHardwareManager {
*
* Only used for features which have simple enable/disable controls.
*
- * @param feature the CM Hardware feature to query
+ * @param feature the Lineage Hardware feature to query
*
* @return true if the feature is enabled, false otherwise.
*/
@@ -309,7 +309,7 @@ public final class CMHardwareManager {
*
* Only used for features which have simple enable/disable controls.
*
- * @param feature the CM Hardware feature to set
+ * @param feature the Lineage Hardware feature to set
* @param enable true to enable, false to disale
*
* @return true if the feature is enabled, false otherwise.
@@ -1003,14 +1003,14 @@ public final class CMHardwareManager {
*/
private boolean checkService() {
if (sService == null) {
- Log.w(TAG, "not connected to CMHardwareManagerService");
+ Log.w(TAG, "not connected to LineageHardwareManagerService");
return false;
}
return true;
}
/**
- * @return current thermal {@link cyanogenmod.hardware.ThermalListenerCallback.State}
+ * @return current thermal {@link lineageos.hardware.ThermalListenerCallback.State}
*/
public int getThermalState() {
try {
diff --git a/sdk/src/java/lineageos/hardware/LiveDisplayConfig.aidl b/sdk/src/java/lineageos/hardware/LiveDisplayConfig.aidl
index 326e2983..eac48d48 100644
--- a/sdk/src/java/lineageos/hardware/LiveDisplayConfig.aidl
+++ b/sdk/src/java/lineageos/hardware/LiveDisplayConfig.aidl
@@ -14,6 +14,6 @@
* limitations under the License.
*/
-package cyanogenmod.hardware;
+package lineageos.hardware;
parcelable LiveDisplayConfig;
diff --git a/sdk/src/java/lineageos/hardware/LiveDisplayConfig.java b/sdk/src/java/lineageos/hardware/LiveDisplayConfig.java
index dae3db80..c9ac6cc3 100644
--- a/sdk/src/java/lineageos/hardware/LiveDisplayConfig.java
+++ b/sdk/src/java/lineageos/hardware/LiveDisplayConfig.java
@@ -13,14 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.hardware;
+package lineageos.hardware;
-import static cyanogenmod.hardware.LiveDisplayManager.FEATURE_COLOR_BALANCE;
-import static cyanogenmod.hardware.LiveDisplayManager.FEATURE_FIRST;
-import static cyanogenmod.hardware.LiveDisplayManager.FEATURE_LAST;
-import static cyanogenmod.hardware.LiveDisplayManager.MODE_FIRST;
-import static cyanogenmod.hardware.LiveDisplayManager.MODE_LAST;
-import static cyanogenmod.hardware.LiveDisplayManager.MODE_OFF;
+import static lineageos.hardware.LiveDisplayManager.FEATURE_COLOR_BALANCE;
+import static lineageos.hardware.LiveDisplayManager.FEATURE_FIRST;
+import static lineageos.hardware.LiveDisplayManager.FEATURE_LAST;
+import static lineageos.hardware.LiveDisplayManager.MODE_FIRST;
+import static lineageos.hardware.LiveDisplayManager.MODE_LAST;
+import static lineageos.hardware.LiveDisplayManager.MODE_OFF;
import android.os.Parcel;
import android.os.Parcelable;
@@ -30,9 +30,9 @@ import java.util.Arrays;
import java.util.BitSet;
import java.util.List;
-import cyanogenmod.os.Build;
-import cyanogenmod.os.Concierge;
-import cyanogenmod.os.Concierge.ParcelInfo;
+import lineageos.os.Build;
+import lineageos.os.Concierge;
+import lineageos.os.Concierge.ParcelInfo;
/**
* Holder class for LiveDisplay static configuration.
@@ -112,7 +112,7 @@ public class LiveDisplayConfig implements Parcelable {
int maxColorBalance = 0;
float[] paRanges = new float[10];
- if (parcelableVersion >= Build.CM_VERSION_CODES.FIG) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.FIG) {
capabilities = parcel.readLong();
defaultMode = parcel.readInt();
defaultDayTemperature = parcel.readInt();
diff --git a/sdk/src/java/lineageos/hardware/LiveDisplayManager.java b/sdk/src/java/lineageos/hardware/LiveDisplayManager.java
index cfe904f8..2ad650ce 100644
--- a/sdk/src/java/lineageos/hardware/LiveDisplayManager.java
+++ b/sdk/src/java/lineageos/hardware/LiveDisplayManager.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.hardware;
+package lineageos.hardware;
import android.content.Context;
import android.os.IBinder;
@@ -26,7 +26,7 @@ import java.util.Arrays;
import java.util.Collections;
import java.util.List;
-import cyanogenmod.app.CMContextConstants;
+import lineageos.app.LineageContextConstants;
/**
* LiveDisplay is an advanced set of features for improving
@@ -34,7 +34,7 @@ import cyanogenmod.app.CMContextConstants;
*
* The backend service is constructed with a set of LiveDisplayFeatures
* which provide capabilities such as outdoor mode, night mode,
- * and calibration. It interacts with CMHardwareService to relay
+ * and calibration. It interacts with LineageHardwareService to relay
* changes down to the lower layers.
*
* Multiple adaptive modes are supported, and various hardware
@@ -151,7 +151,7 @@ public class LiveDisplayManager {
sService = getService();
if (!context.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.LIVEDISPLAY) || !checkService()) {
+ LineageContextConstants.Features.LIVEDISPLAY) || !checkService()) {
Log.wtf(TAG, "Unable to get LiveDisplayService. The service either" +
" crashed, was not started, or the interface has been called to early in" +
" SystemServer init");
@@ -168,7 +168,7 @@ public class LiveDisplayManager {
}
/**
- * Get or create an instance of the {@link cyanogenmod.hardware.LiveDisplayManager}
+ * Get or create an instance of the {@link lineageos.hardware.LiveDisplayManager}
* @param context
* @return {@link LiveDisplayManager}
*/
@@ -184,7 +184,7 @@ public class LiveDisplayManager {
if (sService != null) {
return sService;
}
- IBinder b = ServiceManager.getService(CMContextConstants.CM_LIVEDISPLAY_SERVICE);
+ IBinder b = ServiceManager.getService(LineageContextConstants.LINEAGE_LIVEDISPLAY_SERVICE);
if (b != null) {
sService = ILiveDisplayService.Stub.asInterface(b);
return sService;
@@ -197,7 +197,7 @@ public class LiveDisplayManager {
*/
private boolean checkService() {
if (sService == null) {
- Log.w(TAG, "not connected to CMHardwareManagerService");
+ Log.w(TAG, "not connected to LineageHardwareManagerService");
return false;
}
return true;
diff --git a/sdk/src/java/lineageos/hardware/ThermalListenerCallback.java b/sdk/src/java/lineageos/hardware/ThermalListenerCallback.java
index 3ef312d0..8d1aefba 100644
--- a/sdk/src/java/lineageos/hardware/ThermalListenerCallback.java
+++ b/sdk/src/java/lineageos/hardware/ThermalListenerCallback.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.hardware;
+package lineageos.hardware;
/**
* Callback class to register for thermal state changes
diff --git a/sdk/src/java/lineageos/hardware/TouchscreenGesture.aidl b/sdk/src/java/lineageos/hardware/TouchscreenGesture.aidl
index f9a7a7b4..b968673b 100644
--- a/sdk/src/java/lineageos/hardware/TouchscreenGesture.aidl
+++ b/sdk/src/java/lineageos/hardware/TouchscreenGesture.aidl
@@ -15,6 +15,6 @@
* limitations under the License.
*/
-package cyanogenmod.hardware;
+package lineageos.hardware;
parcelable TouchscreenGesture;
diff --git a/sdk/src/java/lineageos/hardware/TouchscreenGesture.java b/sdk/src/java/lineageos/hardware/TouchscreenGesture.java
index d9463a37..2af933f4 100644
--- a/sdk/src/java/lineageos/hardware/TouchscreenGesture.java
+++ b/sdk/src/java/lineageos/hardware/TouchscreenGesture.java
@@ -15,7 +15,7 @@
* limitations under the License.
*/
-package cyanogenmod.hardware;
+package lineageos.hardware;
import android.os.Parcel;
import android.os.Parcelable;
diff --git a/sdk/src/java/lineageos/media/AudioSessionInfo.aidl b/sdk/src/java/lineageos/media/AudioSessionInfo.aidl
index 4a442393..2ff9b22d 100644
--- a/sdk/src/java/lineageos/media/AudioSessionInfo.aidl
+++ b/sdk/src/java/lineageos/media/AudioSessionInfo.aidl
@@ -14,6 +14,6 @@
* limitations under the License.
*/
-package cyanogenmod.media;
+package lineageos.media;
parcelable AudioSessionInfo;
diff --git a/sdk/src/java/lineageos/media/AudioSessionInfo.java b/sdk/src/java/lineageos/media/AudioSessionInfo.java
index 5f688ccd..8d588d84 100644
--- a/sdk/src/java/lineageos/media/AudioSessionInfo.java
+++ b/sdk/src/java/lineageos/media/AudioSessionInfo.java
@@ -14,16 +14,16 @@
* limitations under the License.
*/
-package cyanogenmod.media;
+package lineageos.media;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.Objects;
-import cyanogenmod.os.Build;
-import cyanogenmod.os.Concierge;
-import cyanogenmod.os.Concierge.ParcelInfo;
+import lineageos.os.Build;
+import lineageos.os.Concierge;
+import lineageos.os.Concierge.ParcelInfo;
/**
* AudioSessionInfo represents a single instance of an audio session.
@@ -33,8 +33,8 @@ import cyanogenmod.os.Concierge.ParcelInfo;
* an application may create audio effects on the output stream.
*
* A list of global audio sessions can be obtained by calling
- * listAudioSessions() via {@link CMAudioManager}, or a component can listen
- * for the {@link CMAudioManager#ACTION_AUDIO_SESSIONS_CHANGED} broadcast.
+ * listAudioSessions() via {@link LineageAudioManager}, or a component can listen
+ * for the {@link LineageAudioManager#ACTION_AUDIO_SESSIONS_CHANGED} broadcast.
*
* @hide
*/
@@ -81,7 +81,7 @@ public final class AudioSessionInfo implements Parcelable {
mChannelMask = in.readInt();
mUid = in.readInt();
- if (parcelableVersion > Build.CM_VERSION_CODES.FIG) {
+ if (parcelableVersion > Build.LINEAGE_VERSION_CODES.FIG) {
// next-gen mind-altering shit goes here
}
diff --git a/sdk/src/java/lineageos/media/ILineageAudioService.aidl b/sdk/src/java/lineageos/media/ILineageAudioService.aidl
index 7edcb167..71b1d93b 100644
--- a/sdk/src/java/lineageos/media/ILineageAudioService.aidl
+++ b/sdk/src/java/lineageos/media/ILineageAudioService.aidl
@@ -14,12 +14,12 @@
* limitations under the License.
*/
-package cyanogenmod.media;
+package lineageos.media;
-import cyanogenmod.media.AudioSessionInfo;
+import lineageos.media.AudioSessionInfo;
/** @hide */
-interface ICMAudioService {
+interface ILineageAudioService {
List listAudioSessions(int streamType);
diff --git a/sdk/src/java/lineageos/media/LineageAudioManager.java b/sdk/src/java/lineageos/media/LineageAudioManager.java
index 6907fbea..5854520d 100644
--- a/sdk/src/java/lineageos/media/LineageAudioManager.java
+++ b/sdk/src/java/lineageos/media/LineageAudioManager.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.media;
+package lineageos.media;
import android.content.Context;
import android.os.IBinder;
@@ -25,11 +25,11 @@ import android.util.Log;
import java.util.Collections;
import java.util.List;
-import cyanogenmod.app.CMContextConstants;
+import lineageos.app.LineageContextConstants;
/**
* Manager for extended audio system capabilities provided by
- * CyanogenMod.
+ * LineageOS.
*
* Currently, this API provides an application the ability to
* query active global audio sessions, and receive broadcasts
@@ -38,7 +38,7 @@ import cyanogenmod.app.CMContextConstants;
* Applications wishing to receive audio session information
* should register for the {@link ACTION_AUDIO_SESSIONS_CHANGED}
* broadcast. This broadcast requires an application to hold the
- * {@link cyanogenmod.permission.OBSERVE_AUDIO_SESSIONS}
+ * {@link lineageos.permission.OBSERVE_AUDIO_SESSIONS}
* permission. When receiving the broadcast, {@link EXTRA_SESSION_INFO}
* will hold the {@link AudioSessionInfo} object associated
* with the session. {@link EXTRA_SESSION_ADDED} will hold
@@ -55,15 +55,15 @@ import cyanogenmod.app.CMContextConstants;
*
* @hide
*/
-public final class CMAudioManager {
+public final class LineageAudioManager {
- private static final String TAG = "CMAudioManager";
+ private static final String TAG = "LineageAudioManager";
/**
* Broadcast sent when audio session are added and removed.
*/
public static final String ACTION_AUDIO_SESSIONS_CHANGED =
- "cyanogenmod.intent.action.ACTION_AUDIO_SESSIONS_CHANGED";
+ "lineageos.intent.action.ACTION_AUDIO_SESSIONS_CHANGED";
/**
* Extra containing {@link AudioSessionInfo}
@@ -77,13 +77,13 @@ public final class CMAudioManager {
private Context mContext;
- private static CMAudioManager sInstance;
- private static ICMAudioService sService;
+ private static LineageAudioManager sInstance;
+ private static ILineageAudioService sService;
/**
* @hide to prevent subclassing from outside of the framework
*/
- private CMAudioManager(Context context) {
+ private LineageAudioManager(Context context) {
Context appContext = context.getApplicationContext();
if (appContext != null) {
mContext = appContext;
@@ -94,33 +94,33 @@ public final class CMAudioManager {
sService = getService();
if (!context.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.AUDIO) || !checkService()) {
- Log.wtf(TAG, "Unable to get CMAudioService. The service either" +
+ LineageContextConstants.Features.AUDIO) || !checkService()) {
+ Log.wtf(TAG, "Unable to get LineageAudioService. The service either" +
" crashed, was not started, or the interface has been called to early in" +
" SystemServer init");
}
}
/**
- * Get or create an instance of the {@link cyanogenmod.media.CMAudioManager}
+ * Get or create an instance of the {@link lineageos.media.LineageAudioManager}
* @param context
- * @return {@link CMAudioManager}
+ * @return {@link LineageAudioManager}
*/
- public synchronized static CMAudioManager getInstance(Context context) {
+ public synchronized static LineageAudioManager getInstance(Context context) {
if (sInstance == null) {
- sInstance = new CMAudioManager(context);
+ sInstance = new LineageAudioManager(context);
}
return sInstance;
}
/** @hide */
- public static ICMAudioService getService() {
+ public static ILineageAudioService getService() {
if (sService != null) {
return sService;
}
- IBinder b = ServiceManager.getService(CMContextConstants.CM_AUDIO_SERVICE);
+ IBinder b = ServiceManager.getService(LineageContextConstants.LINEAGE_AUDIO_SERVICE);
if (b != null) {
- sService = ICMAudioService.Stub.asInterface(b);
+ sService = ILineageAudioService.Stub.asInterface(b);
return sService;
}
return null;
@@ -131,7 +131,7 @@ public final class CMAudioManager {
*/
private boolean checkService() {
if (sService == null) {
- Log.w(TAG, "not connected to CMAudioService");
+ Log.w(TAG, "not connected to LineageAudioService");
return false;
}
return true;
diff --git a/sdk/src/java/lineageos/media/MediaRecorder.java b/sdk/src/java/lineageos/media/MediaRecorder.java
index c28cc932..9d6651ad 100644
--- a/sdk/src/java/lineageos/media/MediaRecorder.java
+++ b/sdk/src/java/lineageos/media/MediaRecorder.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.media;
+package lineageos.media;
public class MediaRecorder {
/**
@@ -47,7 +47,7 @@ public class MediaRecorder {
*/
//@SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
public static final String ACTION_HOTWORD_INPUT_CHANGED
- = "com.cyanogenmod.intent.action.HOTWORD_INPUT_CHANGED";
+ = "org.lineageos.intent.action.HOTWORD_INPUT_CHANGED";
/**
* Extra for {@link #ACTION_HOTWORD_INPUT_CHANGED} that provides the package name of the
@@ -55,7 +55,7 @@ public class MediaRecorder {
* purposes.
*/
public static final String EXTRA_CURRENT_PACKAGE_NAME =
- "com.cyanogenmod.intent.extra.CURRENT_PACKAGE_NAME";
+ "org.lineageos.intent.extra.CURRENT_PACKAGE_NAME";
/**
* Extra for {@link #ACTION_HOTWORD_INPUT_CHANGED} that provides the state of
@@ -63,7 +63,7 @@ public class MediaRecorder {
* @hide
*/
public static final String EXTRA_HOTWORD_INPUT_STATE =
- "com.cyanogenmod.intent.extra.HOTWORD_INPUT_STATE";
+ "org.lineageos.intent.extra.HOTWORD_INPUT_STATE";
public static class AudioSource {
@@ -76,7 +76,7 @@ public class MediaRecorder {
* always-on software hotword detection, while gracefully giving in to any other application
* that might want to read from the microphone.
*
- * You must hold {@link cyanogenmod.media.MediaRecorder#CAPTURE_AUDIO_HOTWORD_PERMISSION}
+ * You must hold {@link lineageos.media.MediaRecorder#CAPTURE_AUDIO_HOTWORD_PERMISSION}
* to use this audio source.
*/
public static final int HOTWORD = 1999;
diff --git a/sdk/src/java/lineageos/os/Build.java b/sdk/src/java/lineageos/os/Build.java
index ade1e837..2d1258e2 100644
--- a/sdk/src/java/lineageos/os/Build.java
+++ b/sdk/src/java/lineageos/os/Build.java
@@ -14,53 +14,53 @@
* limitations under the License.
*/
-package cyanogenmod.os;
+package lineageos.os;
import android.os.SystemProperties;
import android.text.TextUtils;
import android.util.SparseArray;
/**
- * Information about the current CyanogenMod build, extracted from system properties.
+ * Information about the current LineageOS build, extracted from system properties.
*/
public class Build {
/** Value used for when a build property is unknown. */
public static final String UNKNOWN = "unknown";
- /** A build ID utilized to distinguish cyanogenmod versions */
- public static final String CYANOGENMOD_VERSION = getString("ro.cm.version");
+ /** A build ID utilized to distinguish lineageos versions */
+ public static final String LINEAGEOS_VERSION = getString("ro.lineage.version");
/** A build ID string meant for displaying to the user */
- public static final String CYANOGENMOD_DISPLAY_VERSION = getString("ro.cm.display.version");
+ public static final String LINEAGEOS_DISPLAY_VERSION = getString("ro.lineage.display.version");
private static final SparseArray sdkMap;
static
{
sdkMap = new SparseArray();
- sdkMap.put(CM_VERSION_CODES.APRICOT, "Apricot");
- sdkMap.put(CM_VERSION_CODES.BOYSENBERRY, "Boysenberry");
- sdkMap.put(CM_VERSION_CODES.CANTALOUPE, "Cantaloupe");
- sdkMap.put(CM_VERSION_CODES.DRAGON_FRUIT, "Dragon Fruit");
- sdkMap.put(CM_VERSION_CODES.ELDERBERRY, "Elderberry");
- sdkMap.put(CM_VERSION_CODES.FIG, "Fig");
- sdkMap.put(CM_VERSION_CODES.GUAVA, "Guava");
+ sdkMap.put(LINEAGE_VERSION_CODES.APRICOT, "Apricot");
+ sdkMap.put(LINEAGE_VERSION_CODES.BOYSENBERRY, "Boysenberry");
+ sdkMap.put(LINEAGE_VERSION_CODES.CANTALOUPE, "Cantaloupe");
+ sdkMap.put(LINEAGE_VERSION_CODES.DRAGON_FRUIT, "Dragon Fruit");
+ sdkMap.put(LINEAGE_VERSION_CODES.ELDERBERRY, "Elderberry");
+ sdkMap.put(LINEAGE_VERSION_CODES.FIG, "Fig");
+ sdkMap.put(LINEAGE_VERSION_CODES.GUAVA, "Guava");
}
/** Various version strings. */
- public static class CM_VERSION {
+ public static class LINEAGE_VERSION {
/**
* The user-visible SDK version of the framework; its possible
- * values are defined in {@link Build.CM_VERSION_CODES}.
+ * values are defined in {@link Build.LINEAGE_VERSION_CODES}.
*
- * Will return 0 if the device does not support the CM SDK.
+ * Will return 0 if the device does not support the Lineage SDK.
*/
public static final int SDK_INT = SystemProperties.getInt(
- "ro.cm.build.version.plat.sdk", 0);
+ "ro.lineage.build.version.plat.sdk", 0);
}
/**
* Enumeration of the currently known SDK version codes. These are the
- * values that can be found in {@link CM_VERSION#SDK_INT}. Version numbers
+ * values that can be found in {@link LINEAGE_VERSION#SDK_INT}. Version numbers
* increment monotonically with each official platform release.
*
* To programmatically validate that a given API is available for use on the device,
@@ -71,7 +71,7 @@ public class Build {
*
* private void removeActiveProfile() {
* Make sure we're running on BoysenBerry or higher to use Profiles API
- * if (Build.CM_VERSION.SDK_INT >= Build.CM_VERSION_CODES.BOYSENBERRY) {
+ * if (Build.LINEAGE_VERSION.SDK_INT >= Build.LINEAGE_VERSION_CODES.BOYSENBERRY) {
* ProfileManager profileManager = ProfileManager.getInstance(this);
* Profile activeProfile = profileManager.getActiveProfile();
* if (activeProfile != null) {
@@ -81,7 +81,7 @@ public class Build {
* }
*
*/
- public static class CM_VERSION_CODES {
+ public static class LINEAGE_VERSION_CODES {
/**
* June 2015: The first version of the platform sdk for CyanogenMod
*/
@@ -93,15 +93,15 @@ public class Build {
* Applications targeting this or a later release will get these
* new features:
*
- * - Profiles API via {@link cyanogenmod.app.ProfileManager}
+ *
- Profiles API via {@link lineageos.app.ProfileManager}
*
- New Expanded Styles for Custom Tiles via
- * {@link cyanogenmod.app.CustomTile.RemoteExpandedStyle}
+ * {@link lineageos.app.CustomTile.RemoteExpandedStyle}
*
- Hardware Abstraction Framework Access via
- * {@link cyanogenmod.hardware.CMHardwareManager} (Not for use by 3rd parties)
- *
- MSIM API via {@link cyanogenmod.app.CMTelephonyManager}
- *
- Interface for partners via {@link cyanogenmod.app.PartnerInterface}
- *
- Introductory Settings Provider {@link cyanogenmod.providers.CMSettings}
- *
- AlarmClock API via {@link cyanogenmod.alarmclock.CyanogenModAlarmClock}
+ * {@link lineageos.hardware.LineageHardwareManager} (Not for use by 3rd parties)
+ *
- MSIM API via {@link lineageos.app.LineageTelephonyManager}
+ *
- Interface for partners via {@link lineageos.app.PartnerInterface}
+ *
- Introductory Settings Provider {@link lineageos.providers.LineageSettings}
+ *
- AlarmClock API via {@link lineageos.alarmclock.LineageOSAlarmClock}
*
*/
public static final int BOYSENBERRY = 2;
@@ -119,12 +119,12 @@ public class Build {
* new features:
*
* - External views api, and specifically Keyguard interfaces for making
- * live lockscreens via {@link cyanogenmod.externalviews.KeyguardExternalView}
+ * live lockscreens via {@link lineageos.externalviews.KeyguardExternalView}
* - Inclusion of the PerformanceManager interfaces, allowing an application to specify
* the type of mode to have the device be placed in via
- * {@link cyanogenmod.power.PerformanceManager}
+ * {@link lineageos.power.PerformanceManager}
* - Numerous new "System" settings exposed via the
- * {@link cyanogenmod.providers.CMSettings.System} interface
+ * {@link lineageos.providers.LineageSettings.System} interface
*
*/
public static final int DRAGON_FRUIT = 4;
@@ -136,17 +136,17 @@ public class Build {
* new features!
*
* - Weather request api to fetch weather data from providers on the device
- * {@link cyanogenmod.weather.CMWeatherManager}
+ * {@link lineageos.weather.LineageWeatherManager}
* - Weather provider api to provide weather data to any listener on the device
- * {@link cyanogenmod.weatherservice.WeatherProviderService}
- * - Extended capabilities of the {@link cyanogenmod.externalviews.KeyguardExternalView}
+ * {@link lineageos.weatherservice.WeatherProviderService}
+ * - Extended capabilities of the {@link lineageos.externalviews.KeyguardExternalView}
* interfaces to provide immersive and interactive experiences on the lockscreen.
- * - Themes interfaces have found a new home in the cmsdk, thus we allow access
+ *
- Themes interfaces have found a new home in the lineage sdk, thus we allow access
* to 3rd parties requesting theme changes on the platform via
- * {@link cyanogenmod.themes.ThemeManager} and
- * {@link cyanogenmod.themes.ThemeChangeRequest}
- * - Full access to the {@link cyanogenmod.providers.ThemesContract} and provider
- * - Parceling helper class {@link cyanogenmod.os.Concierge} to help with parcel
+ * {@link lineageos.themes.ThemeManager} and
+ * {@link lineageos.themes.ThemeChangeRequest}
+ * - Full access to the {@link lineageos.providers.ThemesContract} and provider
+ * - Parceling helper class {@link lineageos.os.Concierge} to help with parcel
* headers and protocol revisions
*
*/
@@ -159,12 +159,12 @@ public class Build {
* new features!
*
* - Ability to query and color balance ranges from the
- * {@link cyanogenmod.hardware.CMHardwareManager}, as well as do picture adjustment
+ * {@link lineageos.hardware.LineageHardwareManager}, as well as do picture adjustment
* - Extended capabilities of the LiveDisplay interfaces, now providing
- * {@link cyanogenmod.hardware.LiveDisplayConfig} and a dedicated
- * {@link cyanogenmod.hardware.LiveDisplayManager}
+ * {@link lineageos.hardware.LiveDisplayConfig} and a dedicated
+ * {@link lineageos.hardware.LiveDisplayManager}
* - Added new settings, such as LOCKSCREEN_ROTATION and DISPLAY_LOW_POWER
- * to {@link cyanogenmod.providers.CMSettings}
+ * to {@link lineageos.providers.LineageSettings}
*
*
* Signing out, Adnan \u270C
diff --git a/sdk/src/java/lineageos/os/Concierge.java b/sdk/src/java/lineageos/os/Concierge.java
index cfe1d48b..c4582ce6 100644
--- a/sdk/src/java/lineageos/os/Concierge.java
+++ b/sdk/src/java/lineageos/os/Concierge.java
@@ -14,11 +14,11 @@
* limitations under the License.
*/
-package cyanogenmod.os;
+package lineageos.os;
import android.os.Parcel;
-import cyanogenmod.os.Build.CM_VERSION_CODES;
+import lineageos.os.Build.LINEAGE_VERSION_CODES;
/**
* Simply, Concierge handles your parcels and makes sure they get marshalled and unmarshalled
@@ -56,15 +56,15 @@ public final class Concierge {
}
/**
- * Since there might be a case where new versions of the cm framework use applications running
+ * Since there might be a case where new versions of the lineage framework use applications running
* old versions of the protocol (and thus old versions of this class), we need a versioning
* system for the parcels sent between the core framework and its sdk users.
*
* This parcelable version should be the latest version API version listed in
- * {@link CM_VERSION_CODES}
+ * {@link LINEAGE_VERSION_CODES}
* @hide
*/
- public static final int PARCELABLE_VERSION = CM_VERSION_CODES.GUAVA;
+ public static final int PARCELABLE_VERSION = LINEAGE_VERSION_CODES.GUAVA;
/**
* Tell the concierge to receive our parcel, so we can get information from it.
diff --git a/sdk/src/java/lineageos/power/IPerformanceManager.aidl b/sdk/src/java/lineageos/power/IPerformanceManager.aidl
index 3017b1cc..de648b3e 100644
--- a/sdk/src/java/lineageos/power/IPerformanceManager.aidl
+++ b/sdk/src/java/lineageos/power/IPerformanceManager.aidl
@@ -14,9 +14,9 @@
* limitations under the License.
*/
-package cyanogenmod.power;
+package lineageos.power;
-import cyanogenmod.power.PerformanceProfile;
+import lineageos.power.PerformanceProfile;
/** @hide */
interface IPerformanceManager {
diff --git a/sdk/src/java/lineageos/power/PerformanceManager.java b/sdk/src/java/lineageos/power/PerformanceManager.java
index 66c36efe..ac2836da 100644
--- a/sdk/src/java/lineageos/power/PerformanceManager.java
+++ b/sdk/src/java/lineageos/power/PerformanceManager.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.power;
+package lineageos.power;
import android.content.Context;
import android.os.IBinder;
@@ -26,7 +26,7 @@ import java.util.Collections;
import java.util.SortedSet;
import java.util.TreeSet;
-import cyanogenmod.app.CMContextConstants;
+import lineageos.app.LineageContextConstants;
/**
*
@@ -87,7 +87,7 @@ public class PerformanceManager {
/**
* Broadcast sent when profile is changed
*/
- public static final String POWER_PROFILE_CHANGED = "cyanogenmod.power.PROFILE_CHANGED";
+ public static final String POWER_PROFILE_CHANGED = "lineageos.power.PROFILE_CHANGED";
private static IPerformanceManager sService;
private static PerformanceManager sInstance;
@@ -95,7 +95,7 @@ public class PerformanceManager {
private PerformanceManager(Context context) {
sService = getService();
if (context.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.PERFORMANCE) && sService == null) {
+ LineageContextConstants.Features.PERFORMANCE) && sService == null) {
Log.wtf(TAG, "Unable to get PerformanceManagerService. The service" +
" either crashed, was not started, or the interface has been called to early" +
" in SystemServer init");
@@ -120,7 +120,7 @@ public class PerformanceManager {
if (sService != null) {
return sService;
}
- IBinder b = ServiceManager.getService(CMContextConstants.CM_PERFORMANCE_SERVICE);
+ IBinder b = ServiceManager.getService(LineageContextConstants.LINEAGE_PERFORMANCE_SERVICE);
if (b != null) {
sService = IPerformanceManager.Stub.asInterface(b);
return sService;
diff --git a/sdk/src/java/lineageos/power/PerformanceManagerInternal.java b/sdk/src/java/lineageos/power/PerformanceManagerInternal.java
index b712b749..1d2b6dee 100644
--- a/sdk/src/java/lineageos/power/PerformanceManagerInternal.java
+++ b/sdk/src/java/lineageos/power/PerformanceManagerInternal.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.power;
+package lineageos.power;
import android.content.Intent;
diff --git a/sdk/src/java/lineageos/power/PerformanceProfile.aidl b/sdk/src/java/lineageos/power/PerformanceProfile.aidl
index 94cb8db7..36d7ca55 100644
--- a/sdk/src/java/lineageos/power/PerformanceProfile.aidl
+++ b/sdk/src/java/lineageos/power/PerformanceProfile.aidl
@@ -14,6 +14,6 @@
* limitations under the License.
*/
-package cyanogenmod.power;
+package lineageos.power;
parcelable PerformanceProfile;
diff --git a/sdk/src/java/lineageos/power/PerformanceProfile.java b/sdk/src/java/lineageos/power/PerformanceProfile.java
index b88aded0..4ff7d33d 100644
--- a/sdk/src/java/lineageos/power/PerformanceProfile.java
+++ b/sdk/src/java/lineageos/power/PerformanceProfile.java
@@ -13,15 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.power;
+package lineageos.power;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.Objects;
-import cyanogenmod.os.Build;
-import cyanogenmod.os.Concierge;
+import lineageos.os.Build;
+import lineageos.os.Concierge;
/**
* Encapsulates information about an available system power/peformance profile, managed
@@ -58,7 +58,7 @@ public class PerformanceProfile implements Parcelable, Comparable= Build.CM_VERSION_CODES.GUAVA) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.GUAVA) {
// nothing yet
}
diff --git a/sdk/src/java/lineageos/preference/ConstraintsHelper.java b/sdk/src/java/lineageos/preference/ConstraintsHelper.java
index 4b926053..ac55fc66 100644
--- a/sdk/src/java/lineageos/preference/ConstraintsHelper.java
+++ b/sdk/src/java/lineageos/preference/ConstraintsHelper.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.preference;
+package lineageos.preference;
import android.content.Context;
import android.content.Intent;
@@ -39,8 +39,8 @@ import java.util.List;
import java.util.Objects;
import java.util.Set;
-import cyanogenmod.hardware.CMHardwareManager;
-import cyanogenmod.platform.R;
+import lineageos.hardware.LineageHardwareManager;
+import lineageos.platform.R;
/**
@@ -74,9 +74,9 @@ public class ConstraintsHelper {
mPref = pref;
TypedArray a = context.getResources().obtainAttributes(attrs,
- R.styleable.cm_SelfRemovingPreference);
- mSummaryMinLines = a.getInteger(R.styleable.cm_SelfRemovingPreference_minSummaryLines, -1);
- mReplacesKey = a.getString(R.styleable.cm_SelfRemovingPreference_replacesKey);
+ R.styleable.lineage_SelfRemovingPreference);
+ mSummaryMinLines = a.getInteger(R.styleable.lineage_SelfRemovingPreference_minSummaryLines, -1);
+ mReplacesKey = a.getString(R.styleable.lineage_SelfRemovingPreference_replacesKey);
setAvailable(checkConstraints());
Log.d(TAG, "construct key=" + mPref.getKey() + " available=" + mAvailable);
@@ -135,18 +135,18 @@ public class ConstraintsHelper {
}
TypedArray a = mContext.getResources().obtainAttributes(mAttrs,
- R.styleable.cm_SelfRemovingPreference);
+ R.styleable.lineage_SelfRemovingPreference);
try {
// Check if the current user is an owner
- boolean rOwner = a.getBoolean(R.styleable.cm_SelfRemovingPreference_requiresOwner, false);
+ boolean rOwner = a.getBoolean(R.styleable.lineage_SelfRemovingPreference_requiresOwner, false);
if (rOwner && UserHandle.myUserId() != UserHandle.USER_OWNER) {
return false;
}
// Check if a specific package is installed
- String rPackage = a.getString(R.styleable.cm_SelfRemovingPreference_requiresPackage);
+ String rPackage = a.getString(R.styleable.lineage_SelfRemovingPreference_requiresPackage);
if (rPackage != null) {
boolean negated = isNegated(rPackage);
if (negated) {
@@ -159,7 +159,7 @@ public class ConstraintsHelper {
}
// Check if an intent can be resolved to handle the given action
- String rAction = a.getString(R.styleable.cm_SelfRemovingPreference_requiresAction);
+ String rAction = a.getString(R.styleable.lineage_SelfRemovingPreference_requiresAction);
if (rAction != null) {
boolean negated = isNegated(rAction);
if (negated) {
@@ -172,15 +172,15 @@ public class ConstraintsHelper {
}
// Check if a system feature is available
- String rFeature = a.getString(R.styleable.cm_SelfRemovingPreference_requiresFeature);
+ String rFeature = a.getString(R.styleable.lineage_SelfRemovingPreference_requiresFeature);
if (rFeature != null) {
boolean negated = isNegated(rFeature);
if (negated) {
rFeature = rFeature.substring(1);
}
- boolean available = rFeature.startsWith("cmhardware:") ?
- CMHardwareManager.getInstance(mContext).isSupported(
- rFeature.substring("cmhardware:".length())) :
+ boolean available = rFeature.startsWith("lineagehardware:") ?
+ LineageHardwareManager.getInstance(mContext).isSupported(
+ rFeature.substring("lineagehardware:".length())) :
hasSystemFeature(mContext, rFeature);
if (available == negated) {
return false;
@@ -188,7 +188,7 @@ public class ConstraintsHelper {
}
// Check a boolean system property
- String rProperty = a.getString(R.styleable.cm_SelfRemovingPreference_requiresProperty);
+ String rProperty = a.getString(R.styleable.lineage_SelfRemovingPreference_requiresProperty);
if (rProperty != null) {
boolean negated = isNegated(rProperty);
if (negated) {
@@ -203,7 +203,7 @@ public class ConstraintsHelper {
// Check a config resource. This can be a bool or a string. A null string
// fails the constraint.
- TypedValue tv = a.peekValue(R.styleable.cm_SelfRemovingPreference_requiresConfig);
+ TypedValue tv = a.peekValue(R.styleable.lineage_SelfRemovingPreference_requiresConfig);
if (tv != null) {
if (tv.type == TypedValue.TYPE_STRING) {
if (tv.resourceId != 0) {
diff --git a/sdk/src/java/lineageos/preference/GlobalSettingSwitchPreference.java b/sdk/src/java/lineageos/preference/GlobalSettingSwitchPreference.java
index 573df12d..7ada4906 100644
--- a/sdk/src/java/lineageos/preference/GlobalSettingSwitchPreference.java
+++ b/sdk/src/java/lineageos/preference/GlobalSettingSwitchPreference.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.preference;
+package lineageos.preference;
import android.content.Context;
import android.provider.Settings;
diff --git a/sdk/src/java/lineageos/preference/LineageGlobalSettingSwitchPreference.java b/sdk/src/java/lineageos/preference/LineageGlobalSettingSwitchPreference.java
index 63e5e9d7..8a3cbbb9 100644
--- a/sdk/src/java/lineageos/preference/LineageGlobalSettingSwitchPreference.java
+++ b/sdk/src/java/lineageos/preference/LineageGlobalSettingSwitchPreference.java
@@ -14,24 +14,24 @@
* limitations under the License.
*/
-package cyanogenmod.preference;
+package lineageos.preference;
import android.content.Context;
import android.util.AttributeSet;
-import cyanogenmod.providers.CMSettings;
+import lineageos.providers.LineageSettings;
-public class CMGlobalSettingSwitchPreference extends SelfRemovingSwitchPreference {
+public class LineageGlobalSettingSwitchPreference extends SelfRemovingSwitchPreference {
- public CMGlobalSettingSwitchPreference(Context context, AttributeSet attrs, int defStyle) {
+ public LineageGlobalSettingSwitchPreference(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
- public CMGlobalSettingSwitchPreference(Context context, AttributeSet attrs) {
+ public LineageGlobalSettingSwitchPreference(Context context, AttributeSet attrs) {
super(context, attrs);
}
- public CMGlobalSettingSwitchPreference(Context context) {
+ public LineageGlobalSettingSwitchPreference(Context context) {
super(context);
}
@@ -42,7 +42,7 @@ public class CMGlobalSettingSwitchPreference extends SelfRemovingSwitchPreferenc
// It's already there, so the same as persisting
return true;
}
- CMSettings.Global.putInt(getContext().getContentResolver(), getKey(), value ? 1 : 0);
+ LineageSettings.Global.putInt(getContext().getContentResolver(), getKey(), value ? 1 : 0);
return true;
}
return false;
@@ -53,12 +53,12 @@ public class CMGlobalSettingSwitchPreference extends SelfRemovingSwitchPreferenc
if (!shouldPersist()) {
return defaultReturnValue;
}
- return CMSettings.Global.getInt(getContext().getContentResolver(),
+ return LineageSettings.Global.getInt(getContext().getContentResolver(),
getKey(), defaultReturnValue ? 1 : 0) != 0;
}
@Override
protected boolean isPersisted() {
- return CMSettings.Global.getString(getContext().getContentResolver(), getKey()) != null;
+ return LineageSettings.Global.getString(getContext().getContentResolver(), getKey()) != null;
}
}
diff --git a/sdk/src/java/lineageos/preference/LineageSecureSettingListPreference.java b/sdk/src/java/lineageos/preference/LineageSecureSettingListPreference.java
index aed7211a..291117d9 100644
--- a/sdk/src/java/lineageos/preference/LineageSecureSettingListPreference.java
+++ b/sdk/src/java/lineageos/preference/LineageSecureSettingListPreference.java
@@ -13,21 +13,21 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.preference;
+package lineageos.preference;
import android.content.Context;
import android.util.AttributeSet;
-import cyanogenmod.providers.CMSettings;
+import lineageos.providers.LineageSettings;
-public class CMSecureSettingListPreference extends SelfRemovingListPreference {
+public class LineageSecureSettingListPreference extends SelfRemovingListPreference {
- public CMSecureSettingListPreference(Context context, AttributeSet attrs, int defStyle) {
+ public LineageSecureSettingListPreference(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
- public CMSecureSettingListPreference(Context context, AttributeSet attrs) {
+ public LineageSecureSettingListPreference(Context context, AttributeSet attrs) {
super(context, attrs);
}
@@ -38,7 +38,7 @@ public class CMSecureSettingListPreference extends SelfRemovingListPreference {
// It's already there, so the same as persisting
return true;
}
- CMSettings.Secure.putString(getContext().getContentResolver(), getKey(), value);
+ LineageSettings.Secure.putString(getContext().getContentResolver(), getKey(), value);
return true;
}
return false;
@@ -49,13 +49,13 @@ public class CMSecureSettingListPreference extends SelfRemovingListPreference {
if (!shouldPersist()) {
return defaultReturnValue;
}
- String value = CMSettings.Secure.getString(getContext().getContentResolver(), getKey());
+ String value = LineageSettings.Secure.getString(getContext().getContentResolver(), getKey());
return value == null ? defaultReturnValue : value;
}
@Override
protected boolean isPersisted() {
- return CMSettings.Secure.getString(getContext().getContentResolver(), getKey()) != null;
+ return LineageSettings.Secure.getString(getContext().getContentResolver(), getKey()) != null;
}
public int getIntValue(int defValue) {
diff --git a/sdk/src/java/lineageos/preference/LineageSecureSettingSwitchPreference.java b/sdk/src/java/lineageos/preference/LineageSecureSettingSwitchPreference.java
index e54766ad..ee599880 100644
--- a/sdk/src/java/lineageos/preference/LineageSecureSettingSwitchPreference.java
+++ b/sdk/src/java/lineageos/preference/LineageSecureSettingSwitchPreference.java
@@ -14,24 +14,24 @@
* limitations under the License.
*/
-package cyanogenmod.preference;
+package lineageos.preference;
import android.content.Context;
import android.util.AttributeSet;
-import cyanogenmod.providers.CMSettings;
+import lineageos.providers.LineageSettings;
-public class CMSecureSettingSwitchPreference extends SelfRemovingSwitchPreference {
+public class LineageSecureSettingSwitchPreference extends SelfRemovingSwitchPreference {
- public CMSecureSettingSwitchPreference(Context context, AttributeSet attrs, int defStyle) {
+ public LineageSecureSettingSwitchPreference(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
- public CMSecureSettingSwitchPreference(Context context, AttributeSet attrs) {
+ public LineageSecureSettingSwitchPreference(Context context, AttributeSet attrs) {
super(context, attrs);
}
- public CMSecureSettingSwitchPreference(Context context) {
+ public LineageSecureSettingSwitchPreference(Context context) {
super(context);
}
@@ -42,7 +42,7 @@ public class CMSecureSettingSwitchPreference extends SelfRemovingSwitchPreferenc
// It's already there, so the same as persisting
return true;
}
- CMSettings.Secure.putInt(getContext().getContentResolver(), getKey(), value ? 1 : 0);
+ LineageSettings.Secure.putInt(getContext().getContentResolver(), getKey(), value ? 1 : 0);
return true;
}
return false;
@@ -53,12 +53,12 @@ public class CMSecureSettingSwitchPreference extends SelfRemovingSwitchPreferenc
if (!shouldPersist()) {
return defaultReturnValue;
}
- return CMSettings.Secure.getInt(getContext().getContentResolver(),
+ return LineageSettings.Secure.getInt(getContext().getContentResolver(),
getKey(), defaultReturnValue ? 1 : 0) != 0;
}
@Override
protected boolean isPersisted() {
- return CMSettings.Secure.getString(getContext().getContentResolver(), getKey()) != null;
+ return LineageSettings.Secure.getString(getContext().getContentResolver(), getKey()) != null;
}
}
diff --git a/sdk/src/java/lineageos/preference/LineageSystemSettingDropDownPreference.java b/sdk/src/java/lineageos/preference/LineageSystemSettingDropDownPreference.java
index 9a82a6d2..a8629845 100644
--- a/sdk/src/java/lineageos/preference/LineageSystemSettingDropDownPreference.java
+++ b/sdk/src/java/lineageos/preference/LineageSystemSettingDropDownPreference.java
@@ -13,20 +13,20 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.preference;
+package lineageos.preference;
import android.content.Context;
import android.util.AttributeSet;
-import cyanogenmod.providers.CMSettings;
+import lineageos.providers.LineageSettings;
-public class CMSystemSettingDropDownPreference extends SelfRemovingDropDownPreference {
- public CMSystemSettingDropDownPreference(Context context, AttributeSet attrs, int defStyle) {
+public class LineageSystemSettingDropDownPreference extends SelfRemovingDropDownPreference {
+ public LineageSystemSettingDropDownPreference(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
- public CMSystemSettingDropDownPreference(Context context, AttributeSet attrs) {
+ public LineageSystemSettingDropDownPreference(Context context, AttributeSet attrs) {
super(context, attrs);
}
@@ -37,7 +37,7 @@ public class CMSystemSettingDropDownPreference extends SelfRemovingDropDownPrefe
// It's already there, so the same as persisting
return true;
}
- CMSettings.System.putString(getContext().getContentResolver(), getKey(), value);
+ LineageSettings.System.putString(getContext().getContentResolver(), getKey(), value);
return true;
}
return false;
@@ -48,13 +48,13 @@ public class CMSystemSettingDropDownPreference extends SelfRemovingDropDownPrefe
if (!shouldPersist()) {
return defaultReturnValue;
}
- String value = CMSettings.System.getString(getContext().getContentResolver(), getKey());
+ String value = LineageSettings.System.getString(getContext().getContentResolver(), getKey());
return value == null ? defaultReturnValue : value;
}
@Override
protected boolean isPersisted() {
- return CMSettings.System.getString(getContext().getContentResolver(), getKey()) != null;
+ return LineageSettings.System.getString(getContext().getContentResolver(), getKey()) != null;
}
public int getIntValue(int defValue) {
diff --git a/sdk/src/java/lineageos/preference/LineageSystemSettingListPreference.java b/sdk/src/java/lineageos/preference/LineageSystemSettingListPreference.java
index c8ab9190..b44f608b 100644
--- a/sdk/src/java/lineageos/preference/LineageSystemSettingListPreference.java
+++ b/sdk/src/java/lineageos/preference/LineageSystemSettingListPreference.java
@@ -13,20 +13,20 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.preference;
+package lineageos.preference;
import android.content.Context;
import android.util.AttributeSet;
-import cyanogenmod.providers.CMSettings;
+import lineageos.providers.LineageSettings;
-public class CMSystemSettingListPreference extends SelfRemovingListPreference {
- public CMSystemSettingListPreference(Context context, AttributeSet attrs, int defStyle) {
+public class LineageSystemSettingListPreference extends SelfRemovingListPreference {
+ public LineageSystemSettingListPreference(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
- public CMSystemSettingListPreference(Context context, AttributeSet attrs) {
+ public LineageSystemSettingListPreference(Context context, AttributeSet attrs) {
super(context, attrs);
}
@@ -37,7 +37,7 @@ public class CMSystemSettingListPreference extends SelfRemovingListPreference {
// It's already there, so the same as persisting
return true;
}
- CMSettings.System.putString(getContext().getContentResolver(), getKey(), value);
+ LineageSettings.System.putString(getContext().getContentResolver(), getKey(), value);
return true;
}
return false;
@@ -48,13 +48,13 @@ public class CMSystemSettingListPreference extends SelfRemovingListPreference {
if (!shouldPersist()) {
return defaultReturnValue;
}
- String value = CMSettings.System.getString(getContext().getContentResolver(), getKey());
+ String value = LineageSettings.System.getString(getContext().getContentResolver(), getKey());
return value == null ? defaultReturnValue : value;
}
@Override
protected boolean isPersisted() {
- return CMSettings.System.getString(getContext().getContentResolver(), getKey()) != null;
+ return LineageSettings.System.getString(getContext().getContentResolver(), getKey()) != null;
}
public int getIntValue(int defValue) {
diff --git a/sdk/src/java/lineageos/preference/LineageSystemSettingSwitchPreference.java b/sdk/src/java/lineageos/preference/LineageSystemSettingSwitchPreference.java
index 9bd1cb94..3fa02292 100644
--- a/sdk/src/java/lineageos/preference/LineageSystemSettingSwitchPreference.java
+++ b/sdk/src/java/lineageos/preference/LineageSystemSettingSwitchPreference.java
@@ -14,24 +14,24 @@
* limitations under the License.
*/
-package cyanogenmod.preference;
+package lineageos.preference;
import android.content.Context;
import android.util.AttributeSet;
-import cyanogenmod.providers.CMSettings;
+import lineageos.providers.LineageSettings;
-public class CMSystemSettingSwitchPreference extends SelfRemovingSwitchPreference {
+public class LineageSystemSettingSwitchPreference extends SelfRemovingSwitchPreference {
- public CMSystemSettingSwitchPreference(Context context, AttributeSet attrs, int defStyle) {
+ public LineageSystemSettingSwitchPreference(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
}
- public CMSystemSettingSwitchPreference(Context context, AttributeSet attrs) {
+ public LineageSystemSettingSwitchPreference(Context context, AttributeSet attrs) {
super(context, attrs);
}
- public CMSystemSettingSwitchPreference(Context context) {
+ public LineageSystemSettingSwitchPreference(Context context) {
super(context);
}
@@ -42,7 +42,7 @@ public class CMSystemSettingSwitchPreference extends SelfRemovingSwitchPreferenc
// It's already there, so the same as persisting
return true;
}
- CMSettings.System.putInt(getContext().getContentResolver(), getKey(), value ? 1 : 0);
+ LineageSettings.System.putInt(getContext().getContentResolver(), getKey(), value ? 1 : 0);
return true;
}
return false;
@@ -53,12 +53,12 @@ public class CMSystemSettingSwitchPreference extends SelfRemovingSwitchPreferenc
if (!shouldPersist()) {
return defaultReturnValue;
}
- return CMSettings.System.getInt(getContext().getContentResolver(),
+ return LineageSettings.System.getInt(getContext().getContentResolver(),
getKey(), defaultReturnValue ? 1 : 0) != 0;
}
@Override
protected boolean isPersisted() {
- return CMSettings.System.getString(getContext().getContentResolver(), getKey()) != null;
+ return LineageSettings.System.getString(getContext().getContentResolver(), getKey()) != null;
}
}
diff --git a/sdk/src/java/lineageos/preference/RemotePreference.java b/sdk/src/java/lineageos/preference/RemotePreference.java
index 0b5bebdd..de1eccb4 100644
--- a/sdk/src/java/lineageos/preference/RemotePreference.java
+++ b/sdk/src/java/lineageos/preference/RemotePreference.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.preference;
+package lineageos.preference;
import android.content.ComponentName;
import android.content.Context;
@@ -66,20 +66,20 @@ public class RemotePreference extends SelfRemovingPreference
private static final boolean DEBUG = Log.isLoggable(TAG, Log.VERBOSE);
public static final String ACTION_REFRESH_PREFERENCE =
- "cyanogenmod.intent.action.REFRESH_PREFERENCE";
+ "lineageos.intent.action.REFRESH_PREFERENCE";
public static final String ACTION_UPDATE_PREFERENCE =
- "cyanogenmod.intent.action.UPDATE_PREFERENCE";
+ "lineageos.intent.action.UPDATE_PREFERENCE";
public static final String META_REMOTE_RECEIVER =
- "org.cyanogenmod.settings.summary.receiver";
+ "org.lineageos.settings.summary.receiver";
public static final String META_REMOTE_KEY =
- "org.cyanogenmod.settings.summary.key";
+ "org.lineageos.settings.summary.key";
- public static final String EXTRA_ENABLED = ":cm:pref_enabled";
- public static final String EXTRA_KEY = ":cm:pref_key";
- public static final String EXTRA_SUMMARY = ":cm:pref_summary";
+ public static final String EXTRA_ENABLED = ":lineage:pref_enabled";
+ public static final String EXTRA_KEY = ":lineage:pref_key";
+ public static final String EXTRA_SUMMARY = ":lineage:pref_summary";
protected final Context mContext;
diff --git a/sdk/src/java/lineageos/preference/RemotePreferenceManager.java b/sdk/src/java/lineageos/preference/RemotePreferenceManager.java
index 9ced81e7..e1b6cbc8 100644
--- a/sdk/src/java/lineageos/preference/RemotePreferenceManager.java
+++ b/sdk/src/java/lineageos/preference/RemotePreferenceManager.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.preference;
+package lineageos.preference;
import android.app.Activity;
import android.content.BroadcastReceiver;
@@ -33,11 +33,11 @@ import java.util.Map;
import java.util.Objects;
import java.util.Set;
-import cyanogenmod.platform.Manifest;
+import lineageos.platform.Manifest;
-import static cyanogenmod.preference.RemotePreference.ACTION_REFRESH_PREFERENCE;
-import static cyanogenmod.preference.RemotePreference.ACTION_UPDATE_PREFERENCE;
-import static cyanogenmod.preference.RemotePreference.EXTRA_KEY;
+import static lineageos.preference.RemotePreference.ACTION_REFRESH_PREFERENCE;
+import static lineageos.preference.RemotePreference.ACTION_UPDATE_PREFERENCE;
+import static lineageos.preference.RemotePreference.EXTRA_KEY;
/**
* Manages attaching and detaching of RemotePreferences and optimizes callbacks
diff --git a/sdk/src/java/lineageos/preference/RemotePreferenceUpdater.java b/sdk/src/java/lineageos/preference/RemotePreferenceUpdater.java
index aa2ea622..af2b6502 100644
--- a/sdk/src/java/lineageos/preference/RemotePreferenceUpdater.java
+++ b/sdk/src/java/lineageos/preference/RemotePreferenceUpdater.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.preference;
+package lineageos.preference;
import android.app.Activity;
import android.content.BroadcastReceiver;
@@ -25,7 +25,7 @@ import android.util.Log;
import java.util.Objects;
-import cyanogenmod.platform.Manifest;
+import lineageos.platform.Manifest;
/**
* Base class for remote summary providers.
diff --git a/sdk/src/java/lineageos/preference/SecureSettingSwitchPreference.java b/sdk/src/java/lineageos/preference/SecureSettingSwitchPreference.java
index f5517243..e421d026 100644
--- a/sdk/src/java/lineageos/preference/SecureSettingSwitchPreference.java
+++ b/sdk/src/java/lineageos/preference/SecureSettingSwitchPreference.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.preference;
+package lineageos.preference;
import android.content.Context;
import android.provider.Settings;
diff --git a/sdk/src/java/lineageos/preference/SelfRemovingDropDownPreference.java b/sdk/src/java/lineageos/preference/SelfRemovingDropDownPreference.java
index 9d01d420..76e73461 100644
--- a/sdk/src/java/lineageos/preference/SelfRemovingDropDownPreference.java
+++ b/sdk/src/java/lineageos/preference/SelfRemovingDropDownPreference.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.preference;
+package lineageos.preference;
import android.content.Context;
import android.support.v7.preference.DropDownPreference;
diff --git a/sdk/src/java/lineageos/preference/SelfRemovingListPreference.java b/sdk/src/java/lineageos/preference/SelfRemovingListPreference.java
index ca3469f7..d1d3ec5a 100644
--- a/sdk/src/java/lineageos/preference/SelfRemovingListPreference.java
+++ b/sdk/src/java/lineageos/preference/SelfRemovingListPreference.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.preference;
+package lineageos.preference;
import android.content.Context;
import android.support.v7.preference.ListPreference;
diff --git a/sdk/src/java/lineageos/preference/SelfRemovingPreference.java b/sdk/src/java/lineageos/preference/SelfRemovingPreference.java
index 4169ff9b..a148a09c 100644
--- a/sdk/src/java/lineageos/preference/SelfRemovingPreference.java
+++ b/sdk/src/java/lineageos/preference/SelfRemovingPreference.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.preference;
+package lineageos.preference;
import android.content.Context;
import android.support.v7.preference.Preference;
diff --git a/sdk/src/java/lineageos/preference/SelfRemovingSwitchPreference.java b/sdk/src/java/lineageos/preference/SelfRemovingSwitchPreference.java
index 3815ff02..c8663227 100644
--- a/sdk/src/java/lineageos/preference/SelfRemovingSwitchPreference.java
+++ b/sdk/src/java/lineageos/preference/SelfRemovingSwitchPreference.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.preference;
+package lineageos.preference;
import android.content.Context;
import android.support.v14.preference.SwitchPreference;
diff --git a/sdk/src/java/lineageos/preference/SettingsHelper.java b/sdk/src/java/lineageos/preference/SettingsHelper.java
index 1175b28d..cd9e56fc 100644
--- a/sdk/src/java/lineageos/preference/SettingsHelper.java
+++ b/sdk/src/java/lineageos/preference/SettingsHelper.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.preference;
+package lineageos.preference;
import android.content.ContentResolver;
import android.content.Context;
@@ -29,7 +29,7 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
-import cyanogenmod.providers.CMSettings;
+import lineageos.providers.LineageSettings;
public class SettingsHelper {
@@ -37,9 +37,9 @@ public class SettingsHelper {
private static final String SETTINGS_SECURE = Settings.Secure.CONTENT_URI.toString();
private static final String SETTINGS_SYSTEM = Settings.System.CONTENT_URI.toString();
- private static final String CMSETTINGS_GLOBAL = CMSettings.Global.CONTENT_URI.toString();
- private static final String CMSETTINGS_SECURE = CMSettings.Secure.CONTENT_URI.toString();
- private static final String CMSETTINGS_SYSTEM = CMSettings.System.CONTENT_URI.toString();
+ private static final String LINEAGESETTINGS_GLOBAL = LineageSettings.Global.CONTENT_URI.toString();
+ private static final String LINEAGESETTINGS_SECURE = LineageSettings.Secure.CONTENT_URI.toString();
+ private static final String LINEAGESETTINGS_SYSTEM = LineageSettings.System.CONTENT_URI.toString();
private static SettingsHelper sInstance;
@@ -68,12 +68,12 @@ public class SettingsHelper {
return Settings.System.getString(resolver, uri.substring(SETTINGS_SYSTEM.length()));
} else if (uri.startsWith(SETTINGS_GLOBAL)) {
return Settings.Global.getString(resolver, uri.substring(SETTINGS_GLOBAL.length()));
- } else if (uri.startsWith(CMSETTINGS_SECURE)) {
- return CMSettings.Secure.getString(resolver, uri.substring(CMSETTINGS_SECURE.length()));
- } else if (uri.startsWith(CMSETTINGS_SYSTEM)) {
- return CMSettings.System.getString(resolver, uri.substring(CMSETTINGS_SYSTEM.length()));
- } else if (uri.startsWith(CMSETTINGS_GLOBAL)) {
- return CMSettings.Global.getString(resolver, uri.substring(CMSETTINGS_GLOBAL.length()));
+ } else if (uri.startsWith(LINEAGESETTINGS_SECURE)) {
+ return LineageSettings.Secure.getString(resolver, uri.substring(LINEAGESETTINGS_SECURE.length()));
+ } else if (uri.startsWith(LINEAGESETTINGS_SYSTEM)) {
+ return LineageSettings.System.getString(resolver, uri.substring(LINEAGESETTINGS_SYSTEM.length()));
+ } else if (uri.startsWith(LINEAGESETTINGS_GLOBAL)) {
+ return LineageSettings.Global.getString(resolver, uri.substring(LINEAGESETTINGS_GLOBAL.length()));
}
return null;
}
@@ -88,12 +88,12 @@ public class SettingsHelper {
return Settings.System.getInt(resolver, uri.substring(SETTINGS_SYSTEM.length()), def);
} else if (uri.startsWith(SETTINGS_GLOBAL)) {
return Settings.Global.getInt(resolver, uri.substring(SETTINGS_GLOBAL.length()), def);
- } else if (uri.startsWith(CMSETTINGS_SECURE)) {
- return CMSettings.Secure.getInt(resolver, uri.substring(CMSETTINGS_SECURE.length()), def);
- } else if (uri.startsWith(CMSETTINGS_SYSTEM)) {
- return CMSettings.System.getInt(resolver, uri.substring(CMSETTINGS_SYSTEM.length()), def);
- } else if (uri.startsWith(CMSETTINGS_GLOBAL)) {
- return CMSettings.Global.getInt(resolver, uri.substring(CMSETTINGS_GLOBAL.length()), def);
+ } else if (uri.startsWith(LINEAGESETTINGS_SECURE)) {
+ return LineageSettings.Secure.getInt(resolver, uri.substring(LINEAGESETTINGS_SECURE.length()), def);
+ } else if (uri.startsWith(LINEAGESETTINGS_SYSTEM)) {
+ return LineageSettings.System.getInt(resolver, uri.substring(LINEAGESETTINGS_SYSTEM.length()), def);
+ } else if (uri.startsWith(LINEAGESETTINGS_GLOBAL)) {
+ return LineageSettings.Global.getInt(resolver, uri.substring(LINEAGESETTINGS_GLOBAL.length()), def);
}
return def;
}
@@ -113,12 +113,12 @@ public class SettingsHelper {
Settings.System.putString(resolver, uri.substring(SETTINGS_SYSTEM.length()), value);
} else if (uri.startsWith(SETTINGS_GLOBAL)) {
Settings.Global.putString(resolver, uri.substring(SETTINGS_GLOBAL.length()), value);
- } else if (uri.startsWith(CMSETTINGS_SECURE)) {
- CMSettings.Secure.putString(resolver, uri.substring(CMSETTINGS_SECURE.length()), value);
- } else if (uri.startsWith(CMSETTINGS_SYSTEM)) {
- CMSettings.System.putString(resolver, uri.substring(CMSETTINGS_SYSTEM.length()), value);
- } else if (uri.startsWith(CMSETTINGS_GLOBAL)) {
- CMSettings.Global.putString(resolver, uri.substring(CMSETTINGS_GLOBAL.length()), value);
+ } else if (uri.startsWith(LINEAGESETTINGS_SECURE)) {
+ LineageSettings.Secure.putString(resolver, uri.substring(LINEAGESETTINGS_SECURE.length()), value);
+ } else if (uri.startsWith(LINEAGESETTINGS_SYSTEM)) {
+ LineageSettings.System.putString(resolver, uri.substring(LINEAGESETTINGS_SYSTEM.length()), value);
+ } else if (uri.startsWith(LINEAGESETTINGS_GLOBAL)) {
+ LineageSettings.Global.putString(resolver, uri.substring(LINEAGESETTINGS_GLOBAL.length()), value);
}
}
@@ -132,12 +132,12 @@ public class SettingsHelper {
Settings.System.putInt(resolver, uri.substring(SETTINGS_SYSTEM.length()), value);
} else if (uri.startsWith(SETTINGS_GLOBAL)) {
Settings.Global.putInt(resolver, uri.substring(SETTINGS_GLOBAL.length()), value);
- } else if (uri.startsWith(CMSETTINGS_SECURE)) {
- CMSettings.Secure.putInt(resolver, uri.substring(CMSETTINGS_SECURE.length()), value);
- } else if (uri.startsWith(CMSETTINGS_SYSTEM)) {
- CMSettings.System.putInt(resolver, uri.substring(CMSETTINGS_SYSTEM.length()), value);
- } else if (uri.startsWith(CMSETTINGS_GLOBAL)) {
- CMSettings.Global.putInt(resolver, uri.substring(CMSETTINGS_GLOBAL.length()), value);
+ } else if (uri.startsWith(LINEAGESETTINGS_SECURE)) {
+ LineageSettings.Secure.putInt(resolver, uri.substring(LINEAGESETTINGS_SECURE.length()), value);
+ } else if (uri.startsWith(LINEAGESETTINGS_SYSTEM)) {
+ LineageSettings.System.putInt(resolver, uri.substring(LINEAGESETTINGS_SYSTEM.length()), value);
+ } else if (uri.startsWith(LINEAGESETTINGS_GLOBAL)) {
+ LineageSettings.Global.putInt(resolver, uri.substring(LINEAGESETTINGS_GLOBAL.length()), value);
}
}
diff --git a/sdk/src/java/lineageos/preference/SystemSettingSwitchPreference.java b/sdk/src/java/lineageos/preference/SystemSettingSwitchPreference.java
index 02492821..e47cfb9d 100644
--- a/sdk/src/java/lineageos/preference/SystemSettingSwitchPreference.java
+++ b/sdk/src/java/lineageos/preference/SystemSettingSwitchPreference.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.preference;
+package lineageos.preference;
import android.content.Context;
import android.provider.Settings;
diff --git a/sdk/src/java/lineageos/profiles/AirplaneModeSettings.java b/sdk/src/java/lineageos/profiles/AirplaneModeSettings.java
index a9b828f3..0ae714a9 100644
--- a/sdk/src/java/lineageos/profiles/AirplaneModeSettings.java
+++ b/sdk/src/java/lineageos/profiles/AirplaneModeSettings.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.profiles;
+package lineageos.profiles;
import android.content.Context;
import android.content.Intent;
@@ -22,9 +22,9 @@ import android.provider.Settings;
import android.os.Parcel;
import android.os.Parcelable;
-import cyanogenmod.os.Build;
-import cyanogenmod.os.Concierge;
-import cyanogenmod.os.Concierge.ParcelInfo;
+import lineageos.os.Build;
+import lineageos.os.Concierge;
+import lineageos.os.Concierge.ParcelInfo;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
@@ -212,7 +212,7 @@ public final class AirplaneModeSettings implements Parcelable {
// Pattern here is that all new members should be added to the end of
// the writeToParcel method. Then we step through each version, until the latest
// API release to help unravel this parcel
- if (parcelableVersion >= Build.CM_VERSION_CODES.BOYSENBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.BOYSENBERRY) {
mOverride = in.readInt() != 0;
mValue = in.readInt();
mDirty = in.readInt() != 0;
diff --git a/sdk/src/java/lineageos/profiles/BrightnessSettings.java b/sdk/src/java/lineageos/profiles/BrightnessSettings.java
index 0786a729..25d1eefc 100644
--- a/sdk/src/java/lineageos/profiles/BrightnessSettings.java
+++ b/sdk/src/java/lineageos/profiles/BrightnessSettings.java
@@ -14,16 +14,16 @@
* limitations under the License.
*/
-package cyanogenmod.profiles;
+package lineageos.profiles;
import android.content.Context;
import android.provider.Settings;
import android.os.Parcel;
import android.os.Parcelable;
-import cyanogenmod.os.Build;
-import cyanogenmod.os.Concierge;
-import cyanogenmod.os.Concierge.ParcelInfo;
+import lineageos.os.Build;
+import lineageos.os.Concierge;
+import lineageos.os.Concierge.ParcelInfo;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
@@ -210,7 +210,7 @@ public final class BrightnessSettings implements Parcelable {
// Pattern here is that all new members should be added to the end of
// the writeToParcel method. Then we step through each version, until the latest
// API release to help unravel this parcel
- if (parcelableVersion >= Build.CM_VERSION_CODES.BOYSENBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.BOYSENBERRY) {
mOverride = in.readInt() != 0;
mValue = in.readInt();
mDirty = in.readInt() != 0;
diff --git a/sdk/src/java/lineageos/profiles/ConnectionSettings.java b/sdk/src/java/lineageos/profiles/ConnectionSettings.java
index 654ce2d7..66fda392 100644
--- a/sdk/src/java/lineageos/profiles/ConnectionSettings.java
+++ b/sdk/src/java/lineageos/profiles/ConnectionSettings.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.profiles;
+package lineageos.profiles;
import android.bluetooth.BluetoothAdapter;
import android.content.ContentResolver;
@@ -31,9 +31,9 @@ import android.telephony.SubscriptionManager;
import android.telephony.TelephonyManager;
import com.android.internal.telephony.RILConstants;
-import cyanogenmod.os.Build;
-import cyanogenmod.os.Concierge;
-import cyanogenmod.os.Concierge.ParcelInfo;
+import lineageos.os.Build;
+import lineageos.os.Concierge;
+import lineageos.os.Concierge.ParcelInfo;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
@@ -139,11 +139,11 @@ public final class ConnectionSettings implements Parcelable {
public static final int STATE_ENABLED = 1;
}
- private static final int CM_MODE_2G = 0;
- private static final int CM_MODE_3G = 1;
- private static final int CM_MODE_4G = 2;
- private static final int CM_MODE_2G3G = 3;
- private static final int CM_MODE_ALL = 4;
+ private static final int LINEAGE_MODE_2G = 0;
+ private static final int LINEAGE_MODE_3G = 1;
+ private static final int LINEAGE_MODE_4G = 2;
+ private static final int LINEAGE_MODE_2G3G = 3;
+ private static final int LINEAGE_MODE_ALL = 4;
/** @hide */
public static final Parcelable.Creator CREATOR =
@@ -281,7 +281,7 @@ public final class ConnectionSettings implements Parcelable {
}
break;
case PROFILE_CONNECTION_2G3G4G:
- if (Build.CM_VERSION.SDK_INT >= Build.CM_VERSION_CODES.ELDERBERRY) {
+ if (Build.LINEAGE_VERSION.SDK_INT >= Build.LINEAGE_VERSION_CODES.ELDERBERRY) {
Intent intent = new Intent(ACTION_MODIFY_NETWORK_MODE);
intent.putExtra(EXTRA_NETWORK_MODE, getValue());
intent.putExtra(EXTRA_SUB_ID, getSubId());
@@ -289,19 +289,19 @@ public final class ConnectionSettings implements Parcelable {
} else {
Intent intent = new Intent(ACTION_MODIFY_NETWORK_MODE);
switch(getValue()) {
- case CM_MODE_2G:
+ case LINEAGE_MODE_2G:
intent.putExtra(EXTRA_NETWORK_MODE, RILConstants.NETWORK_MODE_GSM_ONLY);
break;
- case CM_MODE_3G:
+ case LINEAGE_MODE_3G:
intent.putExtra(EXTRA_NETWORK_MODE, RILConstants.NETWORK_MODE_WCDMA_ONLY);
break;
- case CM_MODE_4G:
+ case LINEAGE_MODE_4G:
intent.putExtra(EXTRA_NETWORK_MODE, RILConstants.NETWORK_MODE_LTE_ONLY);
break;
- case CM_MODE_2G3G:
+ case LINEAGE_MODE_2G3G:
intent.putExtra(EXTRA_NETWORK_MODE, RILConstants.NETWORK_MODE_WCDMA_PREF);
break;
- case CM_MODE_ALL:
+ case LINEAGE_MODE_ALL:
intent.putExtra(EXTRA_NETWORK_MODE,
RILConstants.NETWORK_MODE_LTE_GSM_WCDMA);
break;
@@ -409,7 +409,7 @@ public final class ConnectionSettings implements Parcelable {
builder.append("\n");
builder.append(mOverride);
builder.append("\n");
- if (Build.CM_VERSION.SDK_INT >= Build.CM_VERSION_CODES.ELDERBERRY) {
+ if (Build.LINEAGE_VERSION.SDK_INT >= Build.LINEAGE_VERSION_CODES.ELDERBERRY) {
if (mConnectionId == PROFILE_CONNECTION_2G3G4G
&& mSubId != SubscriptionManager.INVALID_SUBSCRIPTION_ID) {
builder.append("").append(mSubId).append("\n");
@@ -453,14 +453,14 @@ public final class ConnectionSettings implements Parcelable {
// Pattern here is that all new members should be added to the end of
// the writeToParcel method. Then we step through each version, until the latest
// API release to help unravel this parcel
- if (parcelableVersion >= Build.CM_VERSION_CODES.BOYSENBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.BOYSENBERRY) {
mConnectionId = in.readInt();
mOverride = in.readInt() != 0;
mValue = in.readInt();
mDirty = in.readInt() != 0;
}
- if (parcelableVersion >= Build.CM_VERSION_CODES.ELDERBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.ELDERBERRY) {
if (mConnectionId == PROFILE_CONNECTION_2G3G4G) {
mSubId = in.readInt();
}
diff --git a/sdk/src/java/lineageos/profiles/LockSettings.java b/sdk/src/java/lineageos/profiles/LockSettings.java
index 2be37253..59fa8f89 100644
--- a/sdk/src/java/lineageos/profiles/LockSettings.java
+++ b/sdk/src/java/lineageos/profiles/LockSettings.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.profiles;
+package lineageos.profiles;
import android.app.admin.DevicePolicyManager;
import android.content.Context;
@@ -26,10 +26,10 @@ import android.util.Log;
import com.android.internal.policy.IKeyguardService;
/* import com.android.internal.policy.PolicyManager; */
-import cyanogenmod.app.Profile;
-import cyanogenmod.os.Build;
-import cyanogenmod.os.Concierge;
-import cyanogenmod.os.Concierge.ParcelInfo;
+import lineageos.app.Profile;
+import lineageos.os.Build;
+import lineageos.os.Concierge;
+import lineageos.os.Concierge.ParcelInfo;
/**
* The {@link LockSettings} class allows for overriding and setting the
@@ -168,7 +168,7 @@ public final class LockSettings implements Parcelable {
// Pattern here is that all new members should be added to the end of
// the writeToParcel method. Then we step through each version, until the latest
// API release to help unravel this parcel
- if (parcelableVersion >= Build.CM_VERSION_CODES.BOYSENBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.BOYSENBERRY) {
mValue = in.readInt();
mDirty = in.readInt() != 0;
}
diff --git a/sdk/src/java/lineageos/profiles/RingModeSettings.java b/sdk/src/java/lineageos/profiles/RingModeSettings.java
index bab74ace..145c5c64 100644
--- a/sdk/src/java/lineageos/profiles/RingModeSettings.java
+++ b/sdk/src/java/lineageos/profiles/RingModeSettings.java
@@ -14,16 +14,16 @@
* limitations under the License.
*/
-package cyanogenmod.profiles;
+package lineageos.profiles;
import android.content.Context;
import android.media.AudioManager;
import android.os.Parcel;
import android.os.Parcelable;
-import cyanogenmod.os.Build;
-import cyanogenmod.os.Concierge;
-import cyanogenmod.os.Concierge.ParcelInfo;
+import lineageos.os.Build;
+import lineageos.os.Concierge;
+import lineageos.os.Concierge.ParcelInfo;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
@@ -202,7 +202,7 @@ public final class RingModeSettings implements Parcelable {
// Pattern here is that all new members should be added to the end of
// the writeToParcel method. Then we step through each version, until the latest
// API release to help unravel this parcel
- if (parcelableVersion >= Build.CM_VERSION_CODES.BOYSENBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.BOYSENBERRY) {
mOverride = in.readInt() != 0;
mValue = in.readString();
mDirty = in.readInt() != 0;
diff --git a/sdk/src/java/lineageos/profiles/StreamSettings.java b/sdk/src/java/lineageos/profiles/StreamSettings.java
index 9ce9415f..aef3a1dc 100644
--- a/sdk/src/java/lineageos/profiles/StreamSettings.java
+++ b/sdk/src/java/lineageos/profiles/StreamSettings.java
@@ -14,16 +14,16 @@
* limitations under the License.
*/
-package cyanogenmod.profiles;
+package lineageos.profiles;
import android.content.Context;
import android.os.Parcel;
import android.os.Parcelable;
-import cyanogenmod.os.Build;
-import cyanogenmod.os.Concierge;
-import cyanogenmod.os.Concierge.ParcelInfo;
+import lineageos.os.Build;
+import lineageos.os.Concierge;
+import lineageos.os.Concierge.ParcelInfo;
import java.io.IOException;
@@ -203,7 +203,7 @@ public final class StreamSettings implements Parcelable{
// Pattern here is that all new members should be added to the end of
// the writeToParcel method. Then we step through each version, until the latest
// API release to help unravel this parcel
- if (parcelableVersion >= Build.CM_VERSION_CODES.BOYSENBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.BOYSENBERRY) {
mStreamId = in.readInt();
mOverride = in.readInt() != 0;
mValue = in.readInt();
diff --git a/sdk/src/java/lineageos/providers/DataUsageContract.java b/sdk/src/java/lineageos/providers/DataUsageContract.java
index 2371cd7f..afa4c3e4 100644
--- a/sdk/src/java/lineageos/providers/DataUsageContract.java
+++ b/sdk/src/java/lineageos/providers/DataUsageContract.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.providers;
+package lineageos.providers;
import android.content.ContentResolver;
import android.net.Uri;
@@ -28,7 +28,7 @@ import android.net.Uri;
public final class DataUsageContract {
/** The authority for the DataUsage provider */
- public static final String DATAUSAGE_AUTHORITY = "org.cyanogenmod.providers.datausage";
+ public static final String DATAUSAGE_AUTHORITY = "org.lineageos.providers.datausage";
public static final String DATAUSAGE_TABLE = "datausage";
/** The content URI for the top-level datausage authority */
diff --git a/sdk/src/java/lineageos/providers/LineageSettings.java b/sdk/src/java/lineageos/providers/LineageSettings.java
index 9dae920e..94b666b1 100644
--- a/sdk/src/java/lineageos/providers/LineageSettings.java
+++ b/sdk/src/java/lineageos/providers/LineageSettings.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.providers;
+package lineageos.providers;
import com.android.internal.util.ArrayUtils;
@@ -44,16 +44,16 @@ import java.util.Map;
import java.util.regex.Pattern;
/**
- * CMSettings contains CM specific preferences in System, Secure, and Global.
+ * LineageSettings contains Lineage specific preferences in System, Secure, and Global.
*/
-public final class CMSettings {
- private static final String TAG = "CMSettings";
+public final class LineageSettings {
+ private static final String TAG = "LineageSettings";
private static final boolean LOCAL_LOGV = false;
- public static final String AUTHORITY = "cmsettings";
+ public static final String AUTHORITY = "lineagesettings";
- public static class CMSettingNotFoundException extends AndroidException {
- public CMSettingNotFoundException(String msg) {
+ public static class LineageSettingNotFoundException extends AndroidException {
+ public LineageSettingNotFoundException(String msg) {
super(msg);
}
}
@@ -66,7 +66,7 @@ public final class CMSettings {
*
* Output: Nothing.
*/
- public static final String ACTION_DATA_USAGE = "cyanogenmod.settings.ACTION_DATA_USAGE";
+ public static final String ACTION_DATA_USAGE = "lineageos.settings.ACTION_DATA_USAGE";
/**
* Activity Action: Show LiveDisplay settings
@@ -76,7 +76,7 @@ public final class CMSettings {
* Output: Nothing.
*/
public static final String ACTION_LIVEDISPLAY_SETTINGS =
- "cyanogenmod.settings.LIVEDISPLAY_SETTINGS";
+ "lineageos.settings.LIVEDISPLAY_SETTINGS";
// region Call Methods
@@ -116,12 +116,12 @@ public final class CMSettings {
public static final String CALL_METHOD_PUT_GLOBAL= "PUT_global";
/**
- * @hide - Private call() method on CMSettingsProvider to migrate CM settings
+ * @hide - Private call() method on LineageSettingsProvider to migrate Lineage settings
*/
public static final String CALL_METHOD_MIGRATE_SETTINGS = "migrate_settings";
/**
- * @hide - Private call() method on CMSettingsProvider to migrate CM settings for a user
+ * @hide - Private call() method on LineageSettingsProvider to migrate Lineage settings for a user
*/
public static final String CALL_METHOD_MIGRATE_SETTINGS_FOR_USER = "migrate_settings_for_user";
@@ -424,16 +424,16 @@ public final class CMSettings {
// endregion Validators
/**
- * System settings, containing miscellaneous CM system preferences. This table holds simple
+ * System settings, containing miscellaneous Lineage system preferences. This table holds simple
* name/value pairs. There are convenience functions for accessing individual settings entries.
*/
public static final class System extends Settings.NameValueTable {
public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/system");
- public static final String SYS_PROP_CM_SETTING_VERSION = "sys.cm_settings_system_version";
+ public static final String SYS_PROP_LINEAGE_SETTING_VERSION = "sys.lineage_settings_system_version";
private static final NameValueCache sNameValueCache = new NameValueCache(
- SYS_PROP_CM_SETTING_VERSION,
+ SYS_PROP_LINEAGE_SETTING_VERSION,
CONTENT_URI,
CALL_METHOD_GET_SYSTEM,
CALL_METHOD_PUT_SYSTEM);
@@ -509,9 +509,9 @@ public final class CMSettings {
public static String getStringForUser(ContentResolver resolver, String name,
int userId) {
if (MOVED_TO_SECURE.contains(name)) {
- Log.w(TAG, "Setting " + name + " has moved from CMSettings.System"
- + " to CMSettings.Secure, value is unchanged.");
- return CMSettings.Secure.getStringForUser(resolver, name, userId);
+ Log.w(TAG, "Setting " + name + " has moved from LineageSettings.System"
+ + " to LineageSettings.Secure, value is unchanged.");
+ return LineageSettings.Secure.getStringForUser(resolver, name, userId);
}
return sNameValueCache.getStringForUser(resolver, name, userId);
}
@@ -531,8 +531,8 @@ public final class CMSettings {
public static boolean putStringForUser(ContentResolver resolver, String name, String value,
int userId) {
if (MOVED_TO_SECURE.contains(name)) {
- Log.w(TAG, "Setting " + name + " has moved from CMSettings.System"
- + " to CMSettings.Secure, value is unchanged.");
+ Log.w(TAG, "Setting " + name + " has moved from LineageSettings.System"
+ + " to LineageSettings.Secure, value is unchanged.");
return false;
}
return sNameValueCache.putStringForUser(resolver, name, value, userId);
@@ -574,29 +574,29 @@ public final class CMSettings {
*
* This version does not take a default value. If the setting has not
* been set, or the string value is not a number,
- * it throws {@link CMSettingNotFoundException}.
+ * it throws {@link LineageSettingNotFoundException}.
*
* @param cr The ContentResolver to access.
* @param name The name of the setting to retrieve.
*
- * @throws CMSettingNotFoundException Thrown if a setting by the given
+ * @throws LineageSettingNotFoundException Thrown if a setting by the given
* name can't be found or the setting value is not an integer.
*
* @return The setting's current value.
*/
public static int getInt(ContentResolver cr, String name)
- throws CMSettingNotFoundException {
+ throws LineageSettingNotFoundException {
return getIntForUser(cr, name, UserHandle.myUserId());
}
/** @hide */
public static int getIntForUser(ContentResolver cr, String name, int userId)
- throws CMSettingNotFoundException {
+ throws LineageSettingNotFoundException {
String v = getStringForUser(cr, name, userId);
try {
return Integer.parseInt(v);
} catch (NumberFormatException e) {
- throw new CMSettingNotFoundException(name);
+ throw new LineageSettingNotFoundException(name);
}
}
@@ -662,28 +662,28 @@ public final class CMSettings {
*
* This version does not take a default value. If the setting has not
* been set, or the string value is not a number,
- * it throws {@link CMSettingNotFoundException}.
+ * it throws {@link LineageSettingNotFoundException}.
*
* @param cr The ContentResolver to access.
* @param name The name of the setting to retrieve.
*
* @return The setting's current value.
- * @throws CMSettingNotFoundException Thrown if a setting by the given
+ * @throws LineageSettingNotFoundException Thrown if a setting by the given
* name can't be found or the setting value is not an integer.
*/
public static long getLong(ContentResolver cr, String name)
- throws CMSettingNotFoundException {
+ throws LineageSettingNotFoundException {
return getLongForUser(cr, name, UserHandle.myUserId());
}
/** @hide */
public static long getLongForUser(ContentResolver cr, String name, int userId)
- throws CMSettingNotFoundException {
+ throws LineageSettingNotFoundException {
String valString = getStringForUser(cr, name, userId);
try {
return Long.parseLong(valString);
} catch (NumberFormatException e) {
- throw new CMSettingNotFoundException(name);
+ throw new LineageSettingNotFoundException(name);
}
}
@@ -747,32 +747,32 @@ public final class CMSettings {
*
* This version does not take a default value. If the setting has not
* been set, or the string value is not a number,
- * it throws {@link CMSettingNotFoundException}.
+ * it throws {@link LineageSettingNotFoundException}.
*
* @param cr The ContentResolver to access.
* @param name The name of the setting to retrieve.
*
- * @throws CMSettingNotFoundException Thrown if a setting by the given
+ * @throws LineageSettingNotFoundException Thrown if a setting by the given
* name can't be found or the setting value is not a float.
*
* @return The setting's current value.
*/
public static float getFloat(ContentResolver cr, String name)
- throws CMSettingNotFoundException {
+ throws LineageSettingNotFoundException {
return getFloatForUser(cr, name, UserHandle.myUserId());
}
/** @hide */
public static float getFloatForUser(ContentResolver cr, String name, int userId)
- throws CMSettingNotFoundException {
+ throws LineageSettingNotFoundException {
String v = getStringForUser(cr, name, userId);
if (v == null) {
- throw new CMSettingNotFoundException(name);
+ throw new LineageSettingNotFoundException(name);
}
try {
return Float.parseFloat(v);
} catch (NumberFormatException e) {
- throw new CMSettingNotFoundException(name);
+ throw new LineageSettingNotFoundException(name);
}
}
@@ -1405,7 +1405,7 @@ public final class CMSettings {
public static final String DISPLAY_CABC = "display_low_power";
/**
- * @deprecated Use {@link cyanogenmod.providers.CMSettings.System#DISPLAY_CABC} instead
+ * @deprecated Use {@link lineageos.providers.LineageSettings.System#DISPLAY_CABC} instead
*/
@Deprecated
public static final String DISPLAY_LOW_POWER = DISPLAY_CABC;
@@ -1935,93 +1935,93 @@ public final class CMSettings {
* @hide
*/
public static final String[] LEGACY_SYSTEM_SETTINGS = new String[]{
- CMSettings.System.NAV_BUTTONS,
- CMSettings.System.KEY_HOME_LONG_PRESS_ACTION,
- CMSettings.System.KEY_HOME_DOUBLE_TAP_ACTION,
- CMSettings.System.BACK_WAKE_SCREEN,
- CMSettings.System.MENU_WAKE_SCREEN,
- CMSettings.System.VOLUME_WAKE_SCREEN,
- CMSettings.System.KEY_MENU_ACTION,
- CMSettings.System.KEY_MENU_LONG_PRESS_ACTION,
- CMSettings.System.KEY_ASSIST_ACTION,
- CMSettings.System.KEY_ASSIST_LONG_PRESS_ACTION,
- CMSettings.System.KEY_APP_SWITCH_ACTION,
- CMSettings.System.KEY_APP_SWITCH_LONG_PRESS_ACTION,
- CMSettings.System.HOME_WAKE_SCREEN,
- CMSettings.System.ASSIST_WAKE_SCREEN,
- CMSettings.System.APP_SWITCH_WAKE_SCREEN,
- CMSettings.System.CAMERA_WAKE_SCREEN,
- CMSettings.System.CAMERA_SLEEP_ON_RELEASE,
- CMSettings.System.CAMERA_LAUNCH,
- CMSettings.System.STYLUS_ICON_ENABLED,
- CMSettings.System.SWAP_VOLUME_KEYS_ON_ROTATION,
- CMSettings.System.BATTERY_LIGHT_ENABLED,
- CMSettings.System.BATTERY_LIGHT_PULSE,
- CMSettings.System.BATTERY_LIGHT_LOW_COLOR,
- CMSettings.System.BATTERY_LIGHT_MEDIUM_COLOR,
- CMSettings.System.BATTERY_LIGHT_FULL_COLOR,
- CMSettings.System.ENABLE_MWI_NOTIFICATION,
- CMSettings.System.PROXIMITY_ON_WAKE,
- CMSettings.System.ENABLE_FORWARD_LOOKUP,
- CMSettings.System.ENABLE_PEOPLE_LOOKUP,
- CMSettings.System.ENABLE_REVERSE_LOOKUP,
- CMSettings.System.FORWARD_LOOKUP_PROVIDER,
- CMSettings.System.PEOPLE_LOOKUP_PROVIDER,
- CMSettings.System.REVERSE_LOOKUP_PROVIDER,
- CMSettings.System.DIALER_OPENCNAM_ACCOUNT_SID,
- CMSettings.System.DIALER_OPENCNAM_AUTH_TOKEN,
- CMSettings.System.DISPLAY_TEMPERATURE_DAY,
- CMSettings.System.DISPLAY_TEMPERATURE_NIGHT,
- CMSettings.System.DISPLAY_TEMPERATURE_MODE,
- CMSettings.System.DISPLAY_AUTO_OUTDOOR_MODE,
- CMSettings.System.DISPLAY_CABC,
- CMSettings.System.DISPLAY_COLOR_ENHANCE,
- CMSettings.System.DISPLAY_COLOR_ADJUSTMENT,
- CMSettings.System.LIVE_DISPLAY_HINTED,
- CMSettings.System.DOUBLE_TAP_SLEEP_GESTURE,
- CMSettings.System.STATUS_BAR_SHOW_WEATHER,
- CMSettings.System.RECENTS_SHOW_SEARCH_BAR,
- CMSettings.System.NAVBAR_LEFT_IN_LANDSCAPE,
- CMSettings.System.T9_SEARCH_INPUT_LOCALE,
- CMSettings.System.BLUETOOTH_ACCEPT_ALL_FILES,
- CMSettings.System.LOCKSCREEN_PIN_SCRAMBLE_LAYOUT,
- CMSettings.System.SHOW_ALARM_ICON,
- CMSettings.System.STATUS_BAR_IME_SWITCHER,
- CMSettings.System.QS_SHOW_BRIGHTNESS_SLIDER,
- CMSettings.System.STATUS_BAR_BRIGHTNESS_CONTROL,
- CMSettings.System.VOLBTN_MUSIC_CONTROLS,
- CMSettings.System.USE_EDGE_SERVICE_FOR_GESTURES,
- CMSettings.System.STATUS_BAR_NOTIF_COUNT,
- CMSettings.System.CALL_RECORDING_FORMAT,
- CMSettings.System.NOTIFICATION_LIGHT_BRIGHTNESS_LEVEL,
- CMSettings.System.NOTIFICATION_LIGHT_MULTIPLE_LEDS_ENABLE,
- CMSettings.System.NOTIFICATION_LIGHT_SCREEN_ON,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_DEFAULT_COLOR,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_DEFAULT_LED_ON,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_DEFAULT_LED_OFF,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_CALL_COLOR,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_CALL_LED_ON,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_CALL_LED_OFF,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_VMAIL_COLOR,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_VMAIL_LED_ON,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_VMAIL_LED_OFF,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_ENABLE,
- CMSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_VALUES,
- CMSettings.System.STATUS_BAR_QUICK_QS_PULLDOWN,
- CMSettings.System.VOLUME_ADJUST_SOUNDS_ENABLED,
- CMSettings.System.SYSTEM_PROFILES_ENABLED,
- CMSettings.System.INCREASING_RING,
- CMSettings.System.INCREASING_RING_START_VOLUME,
- CMSettings.System.INCREASING_RING_RAMP_UP_TIME,
- CMSettings.System.STATUS_BAR_CLOCK,
- CMSettings.System.STATUS_BAR_AM_PM,
- CMSettings.System.STATUS_BAR_BATTERY_STYLE,
- CMSettings.System.STATUS_BAR_SHOW_BATTERY_PERCENT,
- CMSettings.System.VOLUME_KEYS_CONTROL_RING_STREAM,
- CMSettings.System.NAVIGATION_BAR_MENU_ARROW_KEYS,
- CMSettings.System.HEADSET_CONNECT_PLAYER,
- CMSettings.System.ZEN_ALLOW_LIGHTS,
- CMSettings.System.TOUCHSCREEN_GESTURE_HAPTIC_FEEDBACK,
+ LineageSettings.System.NAV_BUTTONS,
+ LineageSettings.System.KEY_HOME_LONG_PRESS_ACTION,
+ LineageSettings.System.KEY_HOME_DOUBLE_TAP_ACTION,
+ LineageSettings.System.BACK_WAKE_SCREEN,
+ LineageSettings.System.MENU_WAKE_SCREEN,
+ LineageSettings.System.VOLUME_WAKE_SCREEN,
+ LineageSettings.System.KEY_MENU_ACTION,
+ LineageSettings.System.KEY_MENU_LONG_PRESS_ACTION,
+ LineageSettings.System.KEY_ASSIST_ACTION,
+ LineageSettings.System.KEY_ASSIST_LONG_PRESS_ACTION,
+ LineageSettings.System.KEY_APP_SWITCH_ACTION,
+ LineageSettings.System.KEY_APP_SWITCH_LONG_PRESS_ACTION,
+ LineageSettings.System.HOME_WAKE_SCREEN,
+ LineageSettings.System.ASSIST_WAKE_SCREEN,
+ LineageSettings.System.APP_SWITCH_WAKE_SCREEN,
+ LineageSettings.System.CAMERA_WAKE_SCREEN,
+ LineageSettings.System.CAMERA_SLEEP_ON_RELEASE,
+ LineageSettings.System.CAMERA_LAUNCH,
+ LineageSettings.System.STYLUS_ICON_ENABLED,
+ LineageSettings.System.SWAP_VOLUME_KEYS_ON_ROTATION,
+ LineageSettings.System.BATTERY_LIGHT_ENABLED,
+ LineageSettings.System.BATTERY_LIGHT_PULSE,
+ LineageSettings.System.BATTERY_LIGHT_LOW_COLOR,
+ LineageSettings.System.BATTERY_LIGHT_MEDIUM_COLOR,
+ LineageSettings.System.BATTERY_LIGHT_FULL_COLOR,
+ LineageSettings.System.ENABLE_MWI_NOTIFICATION,
+ LineageSettings.System.PROXIMITY_ON_WAKE,
+ LineageSettings.System.ENABLE_FORWARD_LOOKUP,
+ LineageSettings.System.ENABLE_PEOPLE_LOOKUP,
+ LineageSettings.System.ENABLE_REVERSE_LOOKUP,
+ LineageSettings.System.FORWARD_LOOKUP_PROVIDER,
+ LineageSettings.System.PEOPLE_LOOKUP_PROVIDER,
+ LineageSettings.System.REVERSE_LOOKUP_PROVIDER,
+ LineageSettings.System.DIALER_OPENCNAM_ACCOUNT_SID,
+ LineageSettings.System.DIALER_OPENCNAM_AUTH_TOKEN,
+ LineageSettings.System.DISPLAY_TEMPERATURE_DAY,
+ LineageSettings.System.DISPLAY_TEMPERATURE_NIGHT,
+ LineageSettings.System.DISPLAY_TEMPERATURE_MODE,
+ LineageSettings.System.DISPLAY_AUTO_OUTDOOR_MODE,
+ LineageSettings.System.DISPLAY_CABC,
+ LineageSettings.System.DISPLAY_COLOR_ENHANCE,
+ LineageSettings.System.DISPLAY_COLOR_ADJUSTMENT,
+ LineageSettings.System.LIVE_DISPLAY_HINTED,
+ LineageSettings.System.DOUBLE_TAP_SLEEP_GESTURE,
+ LineageSettings.System.STATUS_BAR_SHOW_WEATHER,
+ LineageSettings.System.RECENTS_SHOW_SEARCH_BAR,
+ LineageSettings.System.NAVBAR_LEFT_IN_LANDSCAPE,
+ LineageSettings.System.T9_SEARCH_INPUT_LOCALE,
+ LineageSettings.System.BLUETOOTH_ACCEPT_ALL_FILES,
+ LineageSettings.System.LOCKSCREEN_PIN_SCRAMBLE_LAYOUT,
+ LineageSettings.System.SHOW_ALARM_ICON,
+ LineageSettings.System.STATUS_BAR_IME_SWITCHER,
+ LineageSettings.System.QS_SHOW_BRIGHTNESS_SLIDER,
+ LineageSettings.System.STATUS_BAR_BRIGHTNESS_CONTROL,
+ LineageSettings.System.VOLBTN_MUSIC_CONTROLS,
+ LineageSettings.System.USE_EDGE_SERVICE_FOR_GESTURES,
+ LineageSettings.System.STATUS_BAR_NOTIF_COUNT,
+ LineageSettings.System.CALL_RECORDING_FORMAT,
+ LineageSettings.System.NOTIFICATION_LIGHT_BRIGHTNESS_LEVEL,
+ LineageSettings.System.NOTIFICATION_LIGHT_MULTIPLE_LEDS_ENABLE,
+ LineageSettings.System.NOTIFICATION_LIGHT_SCREEN_ON,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_DEFAULT_COLOR,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_DEFAULT_LED_ON,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_DEFAULT_LED_OFF,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_CALL_COLOR,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_CALL_LED_ON,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_CALL_LED_OFF,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_VMAIL_COLOR,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_VMAIL_LED_ON,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_VMAIL_LED_OFF,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_ENABLE,
+ LineageSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_VALUES,
+ LineageSettings.System.STATUS_BAR_QUICK_QS_PULLDOWN,
+ LineageSettings.System.VOLUME_ADJUST_SOUNDS_ENABLED,
+ LineageSettings.System.SYSTEM_PROFILES_ENABLED,
+ LineageSettings.System.INCREASING_RING,
+ LineageSettings.System.INCREASING_RING_START_VOLUME,
+ LineageSettings.System.INCREASING_RING_RAMP_UP_TIME,
+ LineageSettings.System.STATUS_BAR_CLOCK,
+ LineageSettings.System.STATUS_BAR_AM_PM,
+ LineageSettings.System.STATUS_BAR_BATTERY_STYLE,
+ LineageSettings.System.STATUS_BAR_SHOW_BATTERY_PERCENT,
+ LineageSettings.System.VOLUME_KEYS_CONTROL_RING_STREAM,
+ LineageSettings.System.NAVIGATION_BAR_MENU_ARROW_KEYS,
+ LineageSettings.System.HEADSET_CONNECT_PLAYER,
+ LineageSettings.System.ZEN_ALLOW_LIGHTS,
+ LineageSettings.System.TOUCHSCREEN_GESTURE_HAPTIC_FEEDBACK,
};
/**
@@ -2038,7 +2038,7 @@ public final class CMSettings {
switch (key) {
case System.SYSTEM_PROFILES_ENABLED:
// some apps still query Settings.System.DEV_FORCE_SHOW_NAVBAR;
- // we intercept the call, and return CMSettings.Secure.DEV_FORCE_SHOW_NAVBAR's value
+ // we intercept the call, and return LineageSettings.Secure.DEV_FORCE_SHOW_NAVBAR's value
case Secure.DEV_FORCE_SHOW_NAVBAR:
return true;
default:
@@ -2198,17 +2198,17 @@ public final class CMSettings {
}
/**
- * Secure settings, containing miscellaneous CM secure preferences. This
+ * Secure settings, containing miscellaneous Lineage secure preferences. This
* table holds simple name/value pairs. There are convenience
* functions for accessing individual settings entries.
*/
public static final class Secure extends Settings.NameValueTable {
public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/secure");
- public static final String SYS_PROP_CM_SETTING_VERSION = "sys.cm_settings_secure_version";
+ public static final String SYS_PROP_LINEAGE_SETTING_VERSION = "sys.lineage_settings_secure_version";
private static final NameValueCache sNameValueCache = new NameValueCache(
- SYS_PROP_CM_SETTING_VERSION,
+ SYS_PROP_LINEAGE_SETTING_VERSION,
CONTENT_URI,
CALL_METHOD_GET_SECURE,
CALL_METHOD_PUT_SECURE);
@@ -2284,9 +2284,9 @@ public final class CMSettings {
public static String getStringForUser(ContentResolver resolver, String name,
int userId) {
if (MOVED_TO_GLOBAL.contains(name)) {
- Log.w(TAG, "Setting " + name + " has moved from CMSettings.Secure"
- + " to CMSettings.Global, value is unchanged.");
- return CMSettings.Global.getStringForUser(resolver, name, userId);
+ Log.w(TAG, "Setting " + name + " has moved from LineageSettings.Secure"
+ + " to LineageSettings.Global, value is unchanged.");
+ return LineageSettings.Global.getStringForUser(resolver, name, userId);
}
return sNameValueCache.getStringForUser(resolver, name, userId);
}
@@ -2306,8 +2306,8 @@ public final class CMSettings {
public static boolean putStringForUser(ContentResolver resolver, String name, String value,
int userId) {
if (MOVED_TO_GLOBAL.contains(name)) {
- Log.w(TAG, "Setting " + name + " has moved from CMSettings.Secure"
- + " to CMSettings.Global, value is unchanged.");
+ Log.w(TAG, "Setting " + name + " has moved from LineageSettings.Secure"
+ + " to LineageSettings.Global, value is unchanged.");
return false;
}
return sNameValueCache.putStringForUser(resolver, name, value, userId);
@@ -2349,29 +2349,29 @@ public final class CMSettings {
*
* This version does not take a default value. If the setting has not
* been set, or the string value is not a number,
- * it throws {@link CMSettingNotFoundException}.
+ * it throws {@link LineageSettingNotFoundException}.
*
* @param cr The ContentResolver to access.
* @param name The name of the setting to retrieve.
*
- * @throws CMSettingNotFoundException Thrown if a setting by the given
+ * @throws LineageSettingNotFoundException Thrown if a setting by the given
* name can't be found or the setting value is not an integer.
*
* @return The setting's current value.
*/
public static int getInt(ContentResolver cr, String name)
- throws CMSettingNotFoundException {
+ throws LineageSettingNotFoundException {
return getIntForUser(cr, name, UserHandle.myUserId());
}
/** @hide */
public static int getIntForUser(ContentResolver cr, String name, int userId)
- throws CMSettingNotFoundException {
+ throws LineageSettingNotFoundException {
String v = getStringForUser(cr, name, userId);
try {
return Integer.parseInt(v);
} catch (NumberFormatException e) {
- throw new CMSettingNotFoundException(name);
+ throw new LineageSettingNotFoundException(name);
}
}
@@ -2437,28 +2437,28 @@ public final class CMSettings {
*
* This version does not take a default value. If the setting has not
* been set, or the string value is not a number,
- * it throws {@link CMSettingNotFoundException}.
+ * it throws {@link LineageSettingNotFoundException}.
*
* @param cr The ContentResolver to access.
* @param name The name of the setting to retrieve.
*
* @return The setting's current value.
- * @throws CMSettingNotFoundException Thrown if a setting by the given
+ * @throws LineageSettingNotFoundException Thrown if a setting by the given
* name can't be found or the setting value is not an integer.
*/
public static long getLong(ContentResolver cr, String name)
- throws CMSettingNotFoundException {
+ throws LineageSettingNotFoundException {
return getLongForUser(cr, name, UserHandle.myUserId());
}
/** @hide */
public static long getLongForUser(ContentResolver cr, String name, int userId)
- throws CMSettingNotFoundException {
+ throws LineageSettingNotFoundException {
String valString = getStringForUser(cr, name, userId);
try {
return Long.parseLong(valString);
} catch (NumberFormatException e) {
- throw new CMSettingNotFoundException(name);
+ throw new LineageSettingNotFoundException(name);
}
}
@@ -2522,32 +2522,32 @@ public final class CMSettings {
*
* This version does not take a default value. If the setting has not
* been set, or the string value is not a number,
- * it throws {@link CMSettingNotFoundException}.
+ * it throws {@link LineageSettingNotFoundException}.
*
* @param cr The ContentResolver to access.
* @param name The name of the setting to retrieve.
*
- * @throws CMSettingNotFoundException Thrown if a setting by the given
+ * @throws LineageSettingNotFoundException Thrown if a setting by the given
* name can't be found or the setting value is not a float.
*
* @return The setting's current value.
*/
public static float getFloat(ContentResolver cr, String name)
- throws CMSettingNotFoundException {
+ throws LineageSettingNotFoundException {
return getFloatForUser(cr, name, UserHandle.myUserId());
}
/** @hide */
public static float getFloatForUser(ContentResolver cr, String name, int userId)
- throws CMSettingNotFoundException {
+ throws LineageSettingNotFoundException {
String v = getStringForUser(cr, name, userId);
if (v == null) {
- throw new CMSettingNotFoundException(name);
+ throw new LineageSettingNotFoundException(name);
}
try {
return Float.parseFloat(v);
} catch (NumberFormatException e) {
- throw new CMSettingNotFoundException(name);
+ throw new LineageSettingNotFoundException(name);
}
}
@@ -2682,7 +2682,7 @@ public final class CMSettings {
/**
* Whether the global stats collection setting has been successfully reported to server
* @hide
- * @deprecated {@link org.cyanogenmod.cmparts.cmstats.AnonymousStats} no longer uses this
+ * @deprecated {@link org.lineageos.lineageparts.lineagestats.AnonymousStats} no longer uses this
*/
@Deprecated
public static final String STATS_COLLECTION_REPORTED = "stats_collection_reported";
@@ -2808,7 +2808,7 @@ public final class CMSettings {
/**
* This will be set to the system's current theme API version when ThemeService starts.
- * It is useful for when an upgrade from one version of CM to another occurs.
+ * It is useful for when an upgrade from one version of Lineage to another occurs.
* For example, after a user upgrades from CM11 to CM12, the value of this field
* might be 19. ThemeService would then change the value to 21. This is useful
* when an API change breaks a theme. Themeservice can identify old themes and
@@ -2910,15 +2910,15 @@ public final class CMSettings {
public static final String WEATHER_PROVIDER_SERVICE = "weather_provider_service";
/**
- * Set to 0 when we enter the CM Setup Wizard.
- * Set to 1 when we exit the CM Setup Wizard.
+ * Set to 0 when we enter the Lineage Setup Wizard.
+ * Set to 1 when we exit the Lineage Setup Wizard.
*
* @deprecated Use {@link Secure#USER_SETUP_COMPLETE} or
* {@link Settings.Global#DEVICE_PROVISIONED} instead
* @hide
*/
@Deprecated
- public static final String CM_SETUP_WIZARD_COMPLETED = "cm_setup_wizard_completed";
+ public static final String LINEAGE_SETUP_WIZARD_COMPLETED = "lineage_setup_wizard_completed";
/**
* Whether lock screen bluring is enabled on devices that support this feature
@@ -2946,40 +2946,40 @@ public final class CMSettings {
* @hide
*/
public static final String[] LEGACY_SECURE_SETTINGS = new String[]{
- CMSettings.Secure.ADVANCED_MODE,
- CMSettings.Secure.BUTTON_BACKLIGHT_TIMEOUT,
- CMSettings.Secure.BUTTON_BRIGHTNESS,
- CMSettings.Secure.DEFAULT_THEME_COMPONENTS,
- CMSettings.Secure.DEFAULT_THEME_PACKAGE,
- CMSettings.Secure.DEV_FORCE_SHOW_NAVBAR,
- CMSettings.Secure.KEYBOARD_BRIGHTNESS,
- CMSettings.Secure.POWER_MENU_ACTIONS,
- CMSettings.Secure.STATS_COLLECTION,
- CMSettings.Secure.QS_SHOW_BRIGHTNESS_SLIDER,
- CMSettings.Secure.QS_TILES,
- CMSettings.Secure.QS_USE_MAIN_TILES,
- CMSettings.Secure.NAVIGATION_RING_TARGETS[0],
- CMSettings.Secure.NAVIGATION_RING_TARGETS[1],
- CMSettings.Secure.NAVIGATION_RING_TARGETS[2],
- CMSettings.Secure.RECENTS_LONG_PRESS_ACTIVITY,
- CMSettings.Secure.ADB_NOTIFY,
- CMSettings.Secure.ADB_PORT,
- CMSettings.Secure.DEVICE_HOSTNAME,
- CMSettings.Secure.KILL_APP_LONGPRESS_BACK,
- CMSettings.Secure.PROTECTED_COMPONENTS,
- CMSettings.Secure.LIVE_DISPLAY_COLOR_MATRIX,
- CMSettings.Secure.ADVANCED_REBOOT,
- CMSettings.Secure.THEME_PREV_BOOT_API_LEVEL,
- CMSettings.Secure.LOCKSCREEN_TARGETS,
- CMSettings.Secure.RING_HOME_BUTTON_BEHAVIOR,
- CMSettings.Secure.PRIVACY_GUARD_DEFAULT,
- CMSettings.Secure.PRIVACY_GUARD_NOTIFICATION,
- CMSettings.Secure.DEVELOPMENT_SHORTCUT,
- CMSettings.Secure.PERFORMANCE_PROFILE,
- CMSettings.Secure.APP_PERFORMANCE_PROFILES_ENABLED,
- CMSettings.Secure.QS_LOCATION_ADVANCED,
- CMSettings.Secure.LOCKSCREEN_VISUALIZER_ENABLED,
- CMSettings.Secure.LOCK_PASS_TO_SECURITY_VIEW
+ LineageSettings.Secure.ADVANCED_MODE,
+ LineageSettings.Secure.BUTTON_BACKLIGHT_TIMEOUT,
+ LineageSettings.Secure.BUTTON_BRIGHTNESS,
+ LineageSettings.Secure.DEFAULT_THEME_COMPONENTS,
+ LineageSettings.Secure.DEFAULT_THEME_PACKAGE,
+ LineageSettings.Secure.DEV_FORCE_SHOW_NAVBAR,
+ LineageSettings.Secure.KEYBOARD_BRIGHTNESS,
+ LineageSettings.Secure.POWER_MENU_ACTIONS,
+ LineageSettings.Secure.STATS_COLLECTION,
+ LineageSettings.Secure.QS_SHOW_BRIGHTNESS_SLIDER,
+ LineageSettings.Secure.QS_TILES,
+ LineageSettings.Secure.QS_USE_MAIN_TILES,
+ LineageSettings.Secure.NAVIGATION_RING_TARGETS[0],
+ LineageSettings.Secure.NAVIGATION_RING_TARGETS[1],
+ LineageSettings.Secure.NAVIGATION_RING_TARGETS[2],
+ LineageSettings.Secure.RECENTS_LONG_PRESS_ACTIVITY,
+ LineageSettings.Secure.ADB_NOTIFY,
+ LineageSettings.Secure.ADB_PORT,
+ LineageSettings.Secure.DEVICE_HOSTNAME,
+ LineageSettings.Secure.KILL_APP_LONGPRESS_BACK,
+ LineageSettings.Secure.PROTECTED_COMPONENTS,
+ LineageSettings.Secure.LIVE_DISPLAY_COLOR_MATRIX,
+ LineageSettings.Secure.ADVANCED_REBOOT,
+ LineageSettings.Secure.THEME_PREV_BOOT_API_LEVEL,
+ LineageSettings.Secure.LOCKSCREEN_TARGETS,
+ LineageSettings.Secure.RING_HOME_BUTTON_BEHAVIOR,
+ LineageSettings.Secure.PRIVACY_GUARD_DEFAULT,
+ LineageSettings.Secure.PRIVACY_GUARD_NOTIFICATION,
+ LineageSettings.Secure.DEVELOPMENT_SHORTCUT,
+ LineageSettings.Secure.PERFORMANCE_PROFILE,
+ LineageSettings.Secure.APP_PERFORMANCE_PROFILES_ENABLED,
+ LineageSettings.Secure.QS_LOCATION_ADVANCED,
+ LineageSettings.Secure.LOCKSCREEN_VISUALIZER_ENABLED,
+ LineageSettings.Secure.LOCK_PASS_TO_SECURITY_VIEW
};
/**
@@ -3051,8 +3051,8 @@ public final class CMSettings {
public static boolean shouldInterceptSystemProvider(String key) {
switch (key) {
// some apps still query Settings.System.DEV_FORCE_SHOW_NAVBAR, and it was moved to
- // Settings.Secure, then CMSettings.Secure. Forward queries from Settings.Secure
- // to CMSettings.Secure here just in case an app stuck with the Settings.Secure call
+ // Settings.Secure, then LineageSettings.Secure. Forward queries from Settings.Secure
+ // to LineageSettings.Secure here just in case an app stuck with the Settings.Secure call
case DEV_FORCE_SHOW_NAVBAR:
return true;
default:
@@ -3062,17 +3062,17 @@ public final class CMSettings {
}
/**
- * Global settings, containing miscellaneous CM global preferences. This
+ * Global settings, containing miscellaneous Lineage global preferences. This
* table holds simple name/value pairs. There are convenience
* functions for accessing individual settings entries.
*/
public static final class Global extends Settings.NameValueTable {
public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/global");
- public static final String SYS_PROP_CM_SETTING_VERSION = "sys.cm_settings_global_version";
+ public static final String SYS_PROP_LINEAGE_SETTING_VERSION = "sys.lineage_settings_global_version";
private static final NameValueCache sNameValueCache = new NameValueCache(
- SYS_PROP_CM_SETTING_VERSION,
+ SYS_PROP_LINEAGE_SETTING_VERSION,
CONTENT_URI,
CALL_METHOD_GET_GLOBAL,
CALL_METHOD_PUT_GLOBAL);
@@ -3197,29 +3197,29 @@ public final class CMSettings {
*
* This version does not take a default value. If the setting has not
* been set, or the string value is not a number,
- * it throws {@link CMSettingNotFoundException}.
+ * it throws {@link LineageSettingNotFoundException}.
*
* @param cr The ContentResolver to access.
* @param name The name of the setting to retrieve.
*
- * @throws CMSettingNotFoundException Thrown if a setting by the given
+ * @throws LineageSettingNotFoundException Thrown if a setting by the given
* name can't be found or the setting value is not an integer.
*
* @return The setting's current value.
*/
public static int getInt(ContentResolver cr, String name)
- throws CMSettingNotFoundException {
+ throws LineageSettingNotFoundException {
return getIntForUser(cr, name, UserHandle.myUserId());
}
/** @hide */
public static int getIntForUser(ContentResolver cr, String name, int userId)
- throws CMSettingNotFoundException {
+ throws LineageSettingNotFoundException {
String v = getStringForUser(cr, name, userId);
try {
return Integer.parseInt(v);
} catch (NumberFormatException e) {
- throw new CMSettingNotFoundException(name);
+ throw new LineageSettingNotFoundException(name);
}
}
@@ -3285,28 +3285,28 @@ public final class CMSettings {
*
* This version does not take a default value. If the setting has not
* been set, or the string value is not a number,
- * it throws {@link CMSettingNotFoundException}.
+ * it throws {@link LineageSettingNotFoundException}.
*
* @param cr The ContentResolver to access.
* @param name The name of the setting to retrieve.
*
* @return The setting's current value.
- * @throws CMSettingNotFoundException Thrown if a setting by the given
+ * @throws LineageSettingNotFoundException Thrown if a setting by the given
* name can't be found or the setting value is not an integer.
*/
public static long getLong(ContentResolver cr, String name)
- throws CMSettingNotFoundException {
+ throws LineageSettingNotFoundException {
return getLongForUser(cr, name, UserHandle.myUserId());
}
/** @hide */
public static long getLongForUser(ContentResolver cr, String name, int userId)
- throws CMSettingNotFoundException {
+ throws LineageSettingNotFoundException {
String valString = getStringForUser(cr, name, userId);
try {
return Long.parseLong(valString);
} catch (NumberFormatException e) {
- throw new CMSettingNotFoundException(name);
+ throw new LineageSettingNotFoundException(name);
}
}
@@ -3370,32 +3370,32 @@ public final class CMSettings {
*
* This version does not take a default value. If the setting has not
* been set, or the string value is not a number,
- * it throws {@link CMSettingNotFoundException}.
+ * it throws {@link LineageSettingNotFoundException}.
*
* @param cr The ContentResolver to access.
* @param name The name of the setting to retrieve.
*
- * @throws CMSettingNotFoundException Thrown if a setting by the given
+ * @throws LineageSettingNotFoundException Thrown if a setting by the given
* name can't be found or the setting value is not a float.
*
* @return The setting's current value.
*/
public static float getFloat(ContentResolver cr, String name)
- throws CMSettingNotFoundException {
+ throws LineageSettingNotFoundException {
return getFloatForUser(cr, name, UserHandle.myUserId());
}
/** @hide */
public static float getFloatForUser(ContentResolver cr, String name, int userId)
- throws CMSettingNotFoundException {
+ throws LineageSettingNotFoundException {
String v = getStringForUser(cr, name, userId);
if (v == null) {
- throw new CMSettingNotFoundException(name);
+ throw new LineageSettingNotFoundException(name);
}
try {
return Float.parseFloat(v);
} catch (NumberFormatException e) {
- throw new CMSettingNotFoundException(name);
+ throw new LineageSettingNotFoundException(name);
}
}
@@ -3470,8 +3470,8 @@ public final class CMSettings {
/**
* Global temperature unit in which the weather data will be reported
* Valid values are:
- *
{@link cyanogenmod.providers.WeatherContract.WeatherColumns.TempUnit#CELSIUS}
- * {@link cyanogenmod.providers.WeatherContract.WeatherColumns.TempUnit#FAHRENHEIT}
+ * {@link lineageos.providers.WeatherContract.WeatherColumns.TempUnit#CELSIUS}
+ * {@link lineageos.providers.WeatherContract.WeatherColumns.TempUnit#FAHRENHEIT}
*/
public static final String WEATHER_TEMPERATURE_UNIT = "weather_temperature_unit";
@@ -3493,11 +3493,11 @@ public final class CMSettings {
* @hide
*/
public static final String[] LEGACY_GLOBAL_SETTINGS = new String[]{
- CMSettings.Global.WAKE_WHEN_PLUGGED_OR_UNPLUGGED,
- CMSettings.Global.POWER_NOTIFICATIONS_VIBRATE,
- CMSettings.Global.POWER_NOTIFICATIONS_RINGTONE,
- CMSettings.Global.ZEN_DISABLE_DUCKING_DURING_MEDIA_PLAYBACK,
- CMSettings.Global.WIFI_AUTO_PRIORITIES_CONFIGURATION
+ LineageSettings.Global.WAKE_WHEN_PLUGGED_OR_UNPLUGGED,
+ LineageSettings.Global.POWER_NOTIFICATIONS_VIBRATE,
+ LineageSettings.Global.POWER_NOTIFICATIONS_RINGTONE,
+ LineageSettings.Global.ZEN_DISABLE_DUCKING_DURING_MEDIA_PLAYBACK,
+ LineageSettings.Global.WIFI_AUTO_PRIORITIES_CONFIGURATION
};
/**
diff --git a/sdk/src/java/lineageos/providers/ThemesContract.java b/sdk/src/java/lineageos/providers/ThemesContract.java
index b59d7b35..a795f556 100644
--- a/sdk/src/java/lineageos/providers/ThemesContract.java
+++ b/sdk/src/java/lineageos/providers/ThemesContract.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.providers;
+package lineageos.providers;
import android.net.Uri;
@@ -26,7 +26,7 @@ import android.net.Uri;
*/
public class ThemesContract {
/** The authority for the themes provider */
- public static final String AUTHORITY = "com.cyanogenmod.themes";
+ public static final String AUTHORITY = "org.lineageos.themes";
/** A content:// style uri to the authority for the themes provider */
public static final Uri AUTHORITY_URI = Uri.parse("content://" + AUTHORITY);
diff --git a/sdk/src/java/lineageos/providers/WeatherContract.java b/sdk/src/java/lineageos/providers/WeatherContract.java
index 1103fc8b..b352db52 100644
--- a/sdk/src/java/lineageos/providers/WeatherContract.java
+++ b/sdk/src/java/lineageos/providers/WeatherContract.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.providers;
+package lineageos.providers;
import android.net.Uri;
@@ -26,7 +26,7 @@ public class WeatherContract {
/**
* The authority of the weather content provider
*/
- public static final String AUTHORITY = "com.cyanogenmod.weather";
+ public static final String AUTHORITY = "org.lineageos.weather";
/**
* A content:// style uri to the authority for the weather provider
diff --git a/sdk/src/java/lineageos/themes/IThemeChangeListener.aidl b/sdk/src/java/lineageos/themes/IThemeChangeListener.aidl
index 0700eb64..565bcb9b 100644
--- a/sdk/src/java/lineageos/themes/IThemeChangeListener.aidl
+++ b/sdk/src/java/lineageos/themes/IThemeChangeListener.aidl
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.themes;
+package lineageos.themes;
/** {@hide} */
oneway interface IThemeChangeListener {
diff --git a/sdk/src/java/lineageos/themes/IThemeProcessingListener.aidl b/sdk/src/java/lineageos/themes/IThemeProcessingListener.aidl
index 648e1a91..f8e79bfb 100644
--- a/sdk/src/java/lineageos/themes/IThemeProcessingListener.aidl
+++ b/sdk/src/java/lineageos/themes/IThemeProcessingListener.aidl
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.themes;
+package lineageos.themes;
/** {@hide} */
oneway interface IThemeProcessingListener {
diff --git a/sdk/src/java/lineageos/themes/IThemeService.aidl b/sdk/src/java/lineageos/themes/IThemeService.aidl
index fa186e9e..39e1c6ed 100644
--- a/sdk/src/java/lineageos/themes/IThemeService.aidl
+++ b/sdk/src/java/lineageos/themes/IThemeService.aidl
@@ -14,11 +14,11 @@
* limitations under the License.
*/
-package cyanogenmod.themes;
+package lineageos.themes;
-import cyanogenmod.themes.IThemeChangeListener;
-import cyanogenmod.themes.IThemeProcessingListener;
-import cyanogenmod.themes.ThemeChangeRequest;
+import lineageos.themes.IThemeChangeListener;
+import lineageos.themes.IThemeProcessingListener;
+import lineageos.themes.ThemeChangeRequest;
import java.util.Map;
diff --git a/sdk/src/java/lineageos/themes/ThemeChangeRequest.aidl b/sdk/src/java/lineageos/themes/ThemeChangeRequest.aidl
index e1d9e4f4..aaa90194 100644
--- a/sdk/src/java/lineageos/themes/ThemeChangeRequest.aidl
+++ b/sdk/src/java/lineageos/themes/ThemeChangeRequest.aidl
@@ -14,6 +14,6 @@
* limitations under the License.
*/
-package cyanogenmod.themes;
+package lineageos.themes;
parcelable ThemeChangeRequest;
diff --git a/sdk/src/java/lineageos/themes/ThemeChangeRequest.java b/sdk/src/java/lineageos/themes/ThemeChangeRequest.java
index 2037c89a..aaba4f09 100644
--- a/sdk/src/java/lineageos/themes/ThemeChangeRequest.java
+++ b/sdk/src/java/lineageos/themes/ThemeChangeRequest.java
@@ -13,21 +13,21 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.themes;
+package lineageos.themes;
//import android.content.pm.ThemeUtils;
import android.content.res.ThemeConfig;
import android.os.Parcel;
import android.os.Parcelable;
-import cyanogenmod.os.Concierge;
-import cyanogenmod.os.Concierge.ParcelInfo;
+import lineageos.os.Concierge;
+import lineageos.os.Concierge.ParcelInfo;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
-import static cyanogenmod.providers.ThemesContract.ThemesColumns.*;
+import static lineageos.providers.ThemesContract.ThemesColumns.*;
public final class ThemeChangeRequest implements Parcelable {
public static final int DEFAULT_WALLPAPER_ID = -1;
diff --git a/sdk/src/java/lineageos/themes/ThemeManager.java b/sdk/src/java/lineageos/themes/ThemeManager.java
index 6557118c..5671c605 100644
--- a/sdk/src/java/lineageos/themes/ThemeManager.java
+++ b/sdk/src/java/lineageos/themes/ThemeManager.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.themes;
+package lineageos.themes;
import android.content.Context;
import android.os.Handler;
@@ -25,8 +25,8 @@ import android.os.ServiceManager;
import android.util.ArraySet;
import android.util.Log;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.themes.ThemeChangeRequest.RequestType;
+import lineageos.app.LineageContextConstants;
+import lineageos.themes.ThemeChangeRequest.RequestType;
import java.util.ArrayList;
import java.util.HashMap;
@@ -51,7 +51,7 @@ public class ThemeManager {
private ThemeManager(Context context) {
sService = getService();
if (context.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.THEMES) && sService == null) {
+ LineageContextConstants.Features.THEMES) && sService == null) {
Log.wtf(TAG, "Unable to get ThemeManagerService. The service either" +
" crashed, was not started, or the interface has been called to early in" +
" SystemServer init");
@@ -72,7 +72,7 @@ public class ThemeManager {
if (sService != null) {
return sService;
}
- IBinder b = ServiceManager.getService(CMContextConstants.CM_THEME_SERVICE);
+ IBinder b = ServiceManager.getService(LineageContextConstants.LINEAGE_THEME_SERVICE);
if (b != null) {
sService = IThemeService.Stub.asInterface(b);
return sService;
diff --git a/sdk/src/java/lineageos/util/ColorUtils.java b/sdk/src/java/lineageos/util/ColorUtils.java
index 0bcb7fd9..a12e2299 100644
--- a/sdk/src/java/lineageos/util/ColorUtils.java
+++ b/sdk/src/java/lineageos/util/ColorUtils.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package cyanogenmod.util;
+package lineageos.util;
import android.graphics.Bitmap;
import android.graphics.Canvas;
diff --git a/sdk/src/java/lineageos/weather/ILineageWeatherManager.aidl b/sdk/src/java/lineageos/weather/ILineageWeatherManager.aidl
index c933ae61..c04d51e9 100644
--- a/sdk/src/java/lineageos/weather/ILineageWeatherManager.aidl
+++ b/sdk/src/java/lineageos/weather/ILineageWeatherManager.aidl
@@ -14,13 +14,13 @@
* limitations under the License.
*/
-package cyanogenmod.weather;
+package lineageos.weather;
-import cyanogenmod.weather.IWeatherServiceProviderChangeListener;
-import cyanogenmod.weather.RequestInfo;
+import lineageos.weather.IWeatherServiceProviderChangeListener;
+import lineageos.weather.RequestInfo;
/** @hide */
-interface ICMWeatherManager {
+interface ILineageWeatherManager {
oneway void updateWeather(in RequestInfo info);
oneway void lookupCity(in RequestInfo info);
oneway void registerWeatherServiceProviderChangeListener(
diff --git a/sdk/src/java/lineageos/weather/IRequestInfoListener.aidl b/sdk/src/java/lineageos/weather/IRequestInfoListener.aidl
index d35db44b..ddaabcff 100644
--- a/sdk/src/java/lineageos/weather/IRequestInfoListener.aidl
+++ b/sdk/src/java/lineageos/weather/IRequestInfoListener.aidl
@@ -14,11 +14,11 @@
* limitations under the License.
*/
-package cyanogenmod.weather;
+package lineageos.weather;
-import cyanogenmod.weather.RequestInfo;
-import cyanogenmod.weather.WeatherInfo;
-import cyanogenmod.weather.WeatherLocation;
+import lineageos.weather.RequestInfo;
+import lineageos.weather.WeatherInfo;
+import lineageos.weather.WeatherLocation;
import java.util.List;
diff --git a/sdk/src/java/lineageos/weather/IWeatherServiceProviderChangeListener.aidl b/sdk/src/java/lineageos/weather/IWeatherServiceProviderChangeListener.aidl
index 7c823b67..12ad2ff8 100644
--- a/sdk/src/java/lineageos/weather/IWeatherServiceProviderChangeListener.aidl
+++ b/sdk/src/java/lineageos/weather/IWeatherServiceProviderChangeListener.aidl
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.weather;
+package lineageos.weather;
/** @hide */
oneway interface IWeatherServiceProviderChangeListener {
diff --git a/sdk/src/java/lineageos/weather/LineageWeatherManager.java b/sdk/src/java/lineageos/weather/LineageWeatherManager.java
index b351f8a6..87d57c46 100644
--- a/sdk/src/java/lineageos/weather/LineageWeatherManager.java
+++ b/sdk/src/java/lineageos/weather/LineageWeatherManager.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.weather;
+package lineageos.weather;
import android.annotation.NonNull;
import android.content.ComponentName;
@@ -26,9 +26,9 @@ import android.os.RemoteException;
import android.os.ServiceManager;
import android.util.ArraySet;
import android.util.Log;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.providers.CMSettings;
-import cyanogenmod.providers.WeatherContract;
+import lineageos.app.LineageContextConstants;
+import lineageos.providers.LineageSettings;
+import lineageos.providers.WeatherContract;
import java.util.ArrayList;
import java.util.Collections;
@@ -40,10 +40,10 @@ import java.util.Set;
/**
* Provides access to the weather services in the device.
*/
-public class CMWeatherManager {
+public class LineageWeatherManager {
- private static ICMWeatherManager sWeatherManagerService;
- private static CMWeatherManager sInstance;
+ private static ILineageWeatherManager sWeatherManagerService;
+ private static LineageWeatherManager sInstance;
private Context mContext;
private Map mWeatherUpdateRequestListeners
= Collections.synchronizedMap(new HashMap());
@@ -52,7 +52,7 @@ public class CMWeatherManager {
private Handler mHandler;
private Set mProviderChangedListeners = new ArraySet<>();
- private static final String TAG = CMWeatherManager.class.getSimpleName();
+ private static final String TAG = LineageWeatherManager.class.getSimpleName();
/**
@@ -84,38 +84,38 @@ public class CMWeatherManager {
public static final int NO_MATCH_FOUND = -4;
}
- private CMWeatherManager(Context context) {
+ private LineageWeatherManager(Context context) {
Context appContext = context.getApplicationContext();
mContext = (appContext != null) ? appContext : context;
sWeatherManagerService = getService();
if (context.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.WEATHER_SERVICES) && (sWeatherManagerService == null)) {
- Log.wtf(TAG, "Unable to bind the CMWeatherManagerService");
+ LineageContextConstants.Features.WEATHER_SERVICES) && (sWeatherManagerService == null)) {
+ Log.wtf(TAG, "Unable to bind the LineageWeatherManagerService");
}
mHandler = new Handler(appContext.getMainLooper());
}
/**
- * Gets or creates an instance of the {@link cyanogenmod.weather.CMWeatherManager}
+ * Gets or creates an instance of the {@link lineageos.weather.LineageWeatherManager}
* @param context
- * @return {@link CMWeatherManager}
+ * @return {@link LineageWeatherManager}
*/
- public static CMWeatherManager getInstance(Context context) {
+ public static LineageWeatherManager getInstance(Context context) {
if (sInstance == null) {
- sInstance = new CMWeatherManager(context);
+ sInstance = new LineageWeatherManager(context);
}
return sInstance;
}
/** @hide */
- public static ICMWeatherManager getService() {
+ public static ILineageWeatherManager getService() {
if (sWeatherManagerService != null) {
return sWeatherManagerService;
}
- IBinder binder = ServiceManager.getService(CMContextConstants.CM_WEATHER_SERVICE);
+ IBinder binder = ServiceManager.getService(LineageContextConstants.LINEAGE_WEATHER_SERVICE);
if (binder != null) {
- sWeatherManagerService = ICMWeatherManager.Stub.asInterface(binder);
+ sWeatherManagerService = ILineageWeatherManager.Stub.asInterface(binder);
return sWeatherManagerService;
}
return null;
@@ -140,8 +140,8 @@ public class CMWeatherManager {
}
try {
- int tempUnit = CMSettings.Global.getInt(mContext.getContentResolver(),
- CMSettings.Global.WEATHER_TEMPERATURE_UNIT,
+ int tempUnit = LineageSettings.Global.getInt(mContext.getContentResolver(),
+ LineageSettings.Global.WEATHER_TEMPERATURE_UNIT,
WeatherContract.WeatherColumns.TempUnit.FAHRENHEIT);
RequestInfo info = new RequestInfo
@@ -161,7 +161,7 @@ public class CMWeatherManager {
* Forces the weather service to request the latest weather information for the provided
* WeatherLocation. This is the preferred method for requesting a weather update.
*
- * @param weatherLocation A {@link cyanogenmod.weather.WeatherLocation} that was previously
+ * @param weatherLocation A {@link lineageos.weather.WeatherLocation} that was previously
* obtained by calling
* {@link #lookupCity(String, LookupCityRequestListener)}
* @param listener {@link WeatherUpdateRequestListener} To be notified once the active weather
@@ -178,8 +178,8 @@ public class CMWeatherManager {
}
try {
- int tempUnit = CMSettings.Global.getInt(mContext.getContentResolver(),
- CMSettings.Global.WEATHER_TEMPERATURE_UNIT,
+ int tempUnit = LineageSettings.Global.getInt(mContext.getContentResolver(),
+ LineageSettings.Global.WEATHER_TEMPERATURE_UNIT,
WeatherContract.WeatherColumns.TempUnit.FAHRENHEIT);
RequestInfo info = new RequestInfo
@@ -201,7 +201,7 @@ public class CMWeatherManager {
* @param city The city name
* @param listener {@link LookupCityRequestListener} To be notified once the request has been
* completed. Upon success, a list of
- * {@link cyanogenmod.weather.WeatherLocation}
+ * {@link lineageos.weather.WeatherLocation}
* will be provided
* @return An integer that identifies the request submitted to the weather service.
* Note that this method might return -1 if an error occurred while trying to submit
diff --git a/sdk/src/java/lineageos/weather/RequestInfo.aidl b/sdk/src/java/lineageos/weather/RequestInfo.aidl
index 5e53b933..bdc3ecc6 100644
--- a/sdk/src/java/lineageos/weather/RequestInfo.aidl
+++ b/sdk/src/java/lineageos/weather/RequestInfo.aidl
@@ -14,6 +14,6 @@
* limitations under the License.
*/
-package cyanogenmod.weather;
+package lineageos.weather;
parcelable RequestInfo;
\ No newline at end of file
diff --git a/sdk/src/java/lineageos/weather/RequestInfo.java b/sdk/src/java/lineageos/weather/RequestInfo.java
index 44805a23..a1d6c8da 100644
--- a/sdk/src/java/lineageos/weather/RequestInfo.java
+++ b/sdk/src/java/lineageos/weather/RequestInfo.java
@@ -14,17 +14,17 @@
* limitations under the License.
*/
-package cyanogenmod.weather;
+package lineageos.weather;
import android.location.Location;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
-import cyanogenmod.os.Build;
-import cyanogenmod.os.Concierge;
-import cyanogenmod.os.Concierge.ParcelInfo;
-import cyanogenmod.providers.WeatherContract;
+import lineageos.os.Build;
+import lineageos.os.Concierge;
+import lineageos.os.Concierge.ParcelInfo;
+import lineageos.providers.WeatherContract;
import java.util.UUID;
@@ -125,8 +125,8 @@ public final class RequestInfo implements Parcelable {
* Sets the unit in which the temperature will be reported if the request is honored.
* Valid values are:
*
- * {@link cyanogenmod.providers.WeatherContract.WeatherColumns.TempUnit#CELSIUS}
- * {@link cyanogenmod.providers.WeatherContract.WeatherColumns.TempUnit#FAHRENHEIT}
+ * {@link lineageos.providers.WeatherContract.WeatherColumns.TempUnit#CELSIUS}
+ * {@link lineageos.providers.WeatherContract.WeatherColumns.TempUnit#FAHRENHEIT}
*
* Any other value will generate an IllegalArgumentException. If the temperature unit is not
* set, the default will be degrees Fahrenheit
@@ -192,7 +192,7 @@ public final class RequestInfo implements Parcelable {
ParcelInfo parcelInfo = Concierge.receiveParcel(parcel);
int parcelableVersion = parcelInfo.getParcelVersion();
- if (parcelableVersion >= Build.CM_VERSION_CODES.ELDERBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.ELDERBERRY) {
mKey = parcel.readString();
mRequestType = parcel.readInt();
switch (mRequestType) {
@@ -233,7 +233,7 @@ public final class RequestInfo implements Parcelable {
}
/**
- * @return the {@link cyanogenmod.weather.WeatherLocation} if this is a request by weather
+ * @return the {@link lineageos.weather.WeatherLocation} if this is a request by weather
* location, null otherwise
*/
public WeatherLocation getWeatherLocation() {
diff --git a/sdk/src/java/lineageos/weather/WeatherInfo.aidl b/sdk/src/java/lineageos/weather/WeatherInfo.aidl
index ffff02c1..16cbb599 100644
--- a/sdk/src/java/lineageos/weather/WeatherInfo.aidl
+++ b/sdk/src/java/lineageos/weather/WeatherInfo.aidl
@@ -14,6 +14,6 @@
* limitations under the License.
*/
-package cyanogenmod.weather;
+package lineageos.weather;
parcelable WeatherInfo;
\ No newline at end of file
diff --git a/sdk/src/java/lineageos/weather/WeatherInfo.java b/sdk/src/java/lineageos/weather/WeatherInfo.java
index 880252cb..27f6ed3b 100755
--- a/sdk/src/java/lineageos/weather/WeatherInfo.java
+++ b/sdk/src/java/lineageos/weather/WeatherInfo.java
@@ -14,18 +14,18 @@
* limitations under the License.
*/
-package cyanogenmod.weather;
+package lineageos.weather;
import android.annotation.NonNull;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
-import cyanogenmod.os.Build;
-import cyanogenmod.os.Concierge;
-import cyanogenmod.os.Concierge.ParcelInfo;
-import cyanogenmod.providers.WeatherContract;
-import cyanogenmod.weatherservice.ServiceRequest;
-import cyanogenmod.weatherservice.ServiceRequestResult;
+import lineageos.os.Build;
+import lineageos.os.Concierge;
+import lineageos.os.Concierge.ParcelInfo;
+import lineageos.providers.WeatherContract;
+import lineageos.weatherservice.ServiceRequest;
+import lineageos.weatherservice.ServiceRequestResult;
import java.util.ArrayList;
import java.util.List;
@@ -33,7 +33,7 @@ import java.util.UUID;
/**
* This class represents the weather information that a
- * {@link cyanogenmod.weatherservice.WeatherProviderService} will use to update the weather content
+ * {@link lineageos.weatherservice.WeatherProviderService} will use to update the weather content
* provider. A weather provider service will be called by the system to process an update
* request at any time. If the service successfully processes the request, then the weather provider
* service is responsible of calling
@@ -82,7 +82,7 @@ public final class WeatherInfo implements Parcelable {
* @param temperature A valid temperature value. Attempting pass an invalid double value,
* will get you an IllegalArgumentException
* @param tempUnit A valid temperature unit value. See
- * {@link cyanogenmod.providers.WeatherContract.WeatherColumns.TempUnit} for
+ * {@link lineageos.providers.WeatherContract.WeatherColumns.TempUnit} for
* valid values. Attempting to pass an invalid temperature unit will get you
* an IllegalArgumentException
*/
@@ -131,7 +131,7 @@ public final class WeatherInfo implements Parcelable {
* @param windDirection The wind direction. Attempting to pass an invalid double value will
* get you an IllegalArgumentException
* @param windSpeedUnit A valid wind speed direction unit. See
- * {@link cyanogenmod.providers.WeatherContract.WeatherColumns.WindSpeedUnit}
+ * {@link lineageos.providers.WeatherContract.WeatherColumns.WindSpeedUnit}
* for valid values. Attempting to pass an invalid speed unit will get
* you an IllegalArgumentException
* @return The {@link Builder} instance
@@ -154,7 +154,7 @@ public final class WeatherInfo implements Parcelable {
/**
* @param conditionCode A valid weather condition code. See
- * {@link cyanogenmod.providers.WeatherContract.WeatherColumns.WeatherCode}
+ * {@link lineageos.providers.WeatherContract.WeatherColumns.WeatherCode}
* for valid codes. Attempting to pass an invalid code will get you an
* IllegalArgumentException.
* @return The {@link Builder} instance
@@ -339,7 +339,7 @@ public final class WeatherInfo implements Parcelable {
}
/**
- * @return List of {@link cyanogenmod.weather.WeatherInfo.DayForecast}. This list will contain
+ * @return List of {@link lineageos.weather.WeatherInfo.DayForecast}. This list will contain
* the forecast weather for the upcoming days. If you want to know today's high and low
* temperatures, use {@link WeatherInfo#getTodaysHigh()} and {@link WeatherInfo#getTodaysLow()}
*/
@@ -352,7 +352,7 @@ public final class WeatherInfo implements Parcelable {
ParcelInfo parcelInfo = Concierge.receiveParcel(parcel);
int parcelableVersion = parcelInfo.getParcelVersion();
- if (parcelableVersion >= Build.CM_VERSION_CODES.ELDERBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.ELDERBERRY) {
mKey = parcel.readString();
mCity = parcel.readString();
mConditionCode = parcel.readInt();
@@ -447,7 +447,7 @@ public final class WeatherInfo implements Parcelable {
/**
* @param conditionCode A valid weather condition code. See
- * {@link cyanogenmod.providers.WeatherContract.WeatherColumns.WeatherCode} for valid
+ * {@link lineageos.providers.WeatherContract.WeatherColumns.WeatherCode} for valid
* values. Attempting to pass an invalid code will get you an
* IllegalArgumentException
*/
@@ -559,7 +559,7 @@ public final class WeatherInfo implements Parcelable {
ParcelInfo parcelInfo = Concierge.receiveParcel(parcel);
int parcelableVersion = parcelInfo.getParcelVersion();
- if (parcelableVersion >= Build.CM_VERSION_CODES.ELDERBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.ELDERBERRY) {
mKey = parcel.readString();
mLow = parcel.readDouble();
mHigh = parcel.readDouble();
diff --git a/sdk/src/java/lineageos/weather/WeatherLocation.aidl b/sdk/src/java/lineageos/weather/WeatherLocation.aidl
index 23f7b244..d19e8bce 100644
--- a/sdk/src/java/lineageos/weather/WeatherLocation.aidl
+++ b/sdk/src/java/lineageos/weather/WeatherLocation.aidl
@@ -14,6 +14,6 @@
* limitations under the License.
*/
-package cyanogenmod.weather;
+package lineageos.weather;
parcelable WeatherLocation;
\ No newline at end of file
diff --git a/sdk/src/java/lineageos/weather/WeatherLocation.java b/sdk/src/java/lineageos/weather/WeatherLocation.java
index 6befbb46..21a6b07b 100644
--- a/sdk/src/java/lineageos/weather/WeatherLocation.java
+++ b/sdk/src/java/lineageos/weather/WeatherLocation.java
@@ -14,15 +14,15 @@
* limitations under the License.
*/
-package cyanogenmod.weather;
+package lineageos.weather;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
-import cyanogenmod.os.Build;
-import cyanogenmod.os.Concierge;
-import cyanogenmod.os.Concierge.ParcelInfo;
+import lineageos.os.Build;
+import lineageos.os.Concierge;
+import lineageos.os.Concierge.ParcelInfo;
import java.util.UUID;
@@ -192,7 +192,7 @@ public final class WeatherLocation implements Parcelable{
ParcelInfo parcelInfo = Concierge.receiveParcel(in);
int parcelableVersion = parcelInfo.getParcelVersion();
- if (parcelableVersion >= Build.CM_VERSION_CODES.ELDERBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.ELDERBERRY) {
mKey = in.readString();
mCityId = in.readString();
mCity = in.readString();
diff --git a/sdk/src/java/lineageos/weather/util/WeatherUtils.java b/sdk/src/java/lineageos/weather/util/WeatherUtils.java
index 0e6ceedb..dd8418ff 100644
--- a/sdk/src/java/lineageos/weather/util/WeatherUtils.java
+++ b/sdk/src/java/lineageos/weather/util/WeatherUtils.java
@@ -14,10 +14,10 @@
* limitations under the License.
*/
-package cyanogenmod.weather.util;
+package lineageos.weather.util;
-import cyanogenmod.providers.WeatherContract;
+import lineageos.providers.WeatherContract;
import java.text.DecimalFormat;
diff --git a/sdk/src/java/lineageos/weatherservice/IWeatherProviderService.aidl b/sdk/src/java/lineageos/weatherservice/IWeatherProviderService.aidl
index c27f537e..370d8a05 100644
--- a/sdk/src/java/lineageos/weatherservice/IWeatherProviderService.aidl
+++ b/sdk/src/java/lineageos/weatherservice/IWeatherProviderService.aidl
@@ -14,10 +14,10 @@
* limitations under the License.
*/
-package cyanogenmod.weatherservice;
+package lineageos.weatherservice;
-import cyanogenmod.weatherservice.IWeatherProviderServiceClient;
-import cyanogenmod.weather.RequestInfo;
+import lineageos.weatherservice.IWeatherProviderServiceClient;
+import lineageos.weather.RequestInfo;
/** @hide */
oneway interface IWeatherProviderService {
diff --git a/sdk/src/java/lineageos/weatherservice/IWeatherProviderServiceClient.aidl b/sdk/src/java/lineageos/weatherservice/IWeatherProviderServiceClient.aidl
index a4baa4cd..01130692 100644
--- a/sdk/src/java/lineageos/weatherservice/IWeatherProviderServiceClient.aidl
+++ b/sdk/src/java/lineageos/weatherservice/IWeatherProviderServiceClient.aidl
@@ -14,10 +14,10 @@
* limitations under the License.
*/
-package cyanogenmod.weatherservice;
+package lineageos.weatherservice;
-import cyanogenmod.weather.RequestInfo;
-import cyanogenmod.weatherservice.ServiceRequestResult;
+import lineageos.weather.RequestInfo;
+import lineageos.weatherservice.ServiceRequestResult;
/** @hide */
oneway interface IWeatherProviderServiceClient {
diff --git a/sdk/src/java/lineageos/weatherservice/ServiceRequest.java b/sdk/src/java/lineageos/weatherservice/ServiceRequest.java
index f503a2f1..d597ffde 100644
--- a/sdk/src/java/lineageos/weatherservice/ServiceRequest.java
+++ b/sdk/src/java/lineageos/weatherservice/ServiceRequest.java
@@ -14,12 +14,12 @@
* limitations under the License.
*/
-package cyanogenmod.weatherservice;
+package lineageos.weatherservice;
import android.annotation.NonNull;
import android.os.RemoteException;
-import cyanogenmod.weather.CMWeatherManager;
-import cyanogenmod.weather.RequestInfo;
+import lineageos.weather.LineageWeatherManager;
+import lineageos.weather.RequestInfo;
/**
* This class represents a request submitted by the system to the active weather provider service
@@ -42,7 +42,7 @@ public final class ServiceRequest {
/**
* Obtains the request information
- * @return {@link cyanogenmod.weather.RequestInfo}
+ * @return {@link lineageos.weather.RequestInfo}
*/
public RequestInfo getRequestInfo() {
return mInfo;
@@ -64,7 +64,7 @@ public final class ServiceRequest {
+ " contain a valid WeatherInfo object");
}
mClient.setServiceRequestState(mInfo, result,
- CMWeatherManager.RequestStatus.COMPLETED);
+ LineageWeatherManager.RequestStatus.COMPLETED);
break;
case RequestInfo.TYPE_LOOKUP_CITY_NAME_REQ:
if (result.getLocationLookupList() == null
@@ -72,10 +72,10 @@ public final class ServiceRequest {
//In case the user decided to mark this request as completed with
//null or empty list. It's not necessarily a failure
mClient.setServiceRequestState(mInfo, null,
- CMWeatherManager.RequestStatus.NO_MATCH_FOUND);
+ LineageWeatherManager.RequestStatus.NO_MATCH_FOUND);
} else {
mClient.setServiceRequestState(mInfo, result,
- CMWeatherManager.RequestStatus.COMPLETED);
+ LineageWeatherManager.RequestStatus.COMPLETED);
}
break;
}
@@ -99,11 +99,11 @@ public final class ServiceRequest {
case RequestInfo.TYPE_WEATHER_BY_GEO_LOCATION_REQ:
case RequestInfo.TYPE_WEATHER_BY_WEATHER_LOCATION_REQ:
mClient.setServiceRequestState(mInfo, null,
- CMWeatherManager.RequestStatus.FAILED);
+ LineageWeatherManager.RequestStatus.FAILED);
break;
case RequestInfo.TYPE_LOOKUP_CITY_NAME_REQ:
mClient.setServiceRequestState(mInfo, null,
- CMWeatherManager.RequestStatus.FAILED);
+ LineageWeatherManager.RequestStatus.FAILED);
break;
}
} catch (RemoteException e) {
@@ -117,8 +117,8 @@ public final class ServiceRequest {
* This method should be called if the service decides not to honor the request. Note this
* method will accept only the following values.
*
- * - {@link cyanogenmod.weather.CMWeatherManager.RequestStatus#SUBMITTED_TOO_SOON}
- * - {@link cyanogenmod.weather.CMWeatherManager.RequestStatus#ALREADY_IN_PROGRESS}
+ * - {@link lineageos.weather.LineageWeatherManager.RequestStatus#SUBMITTED_TOO_SOON}
+ * - {@link lineageos.weather.LineageWeatherManager.RequestStatus#ALREADY_IN_PROGRESS}
*
* Attempting to pass any other value will get you an IllegalArgumentException
* @param status
@@ -127,8 +127,8 @@ public final class ServiceRequest {
synchronized (this) {
if (mStatus.equals(Status.IN_PROGRESS)) {
switch (status) {
- case CMWeatherManager.RequestStatus.ALREADY_IN_PROGRESS:
- case CMWeatherManager.RequestStatus.SUBMITTED_TOO_SOON:
+ case LineageWeatherManager.RequestStatus.ALREADY_IN_PROGRESS:
+ case LineageWeatherManager.RequestStatus.SUBMITTED_TOO_SOON:
try {
mClient.setServiceRequestState(mInfo, null, status);
} catch (RemoteException e) {
diff --git a/sdk/src/java/lineageos/weatherservice/ServiceRequestResult.aidl b/sdk/src/java/lineageos/weatherservice/ServiceRequestResult.aidl
index 669ece52..ece4f47f 100644
--- a/sdk/src/java/lineageos/weatherservice/ServiceRequestResult.aidl
+++ b/sdk/src/java/lineageos/weatherservice/ServiceRequestResult.aidl
@@ -14,6 +14,6 @@
* limitations under the License.
*/
-package cyanogenmod.weatherservice;
+package lineageos.weatherservice;
parcelable ServiceRequestResult;
\ No newline at end of file
diff --git a/sdk/src/java/lineageos/weatherservice/ServiceRequestResult.java b/sdk/src/java/lineageos/weatherservice/ServiceRequestResult.java
index 753819b9..56b7e791 100644
--- a/sdk/src/java/lineageos/weatherservice/ServiceRequestResult.java
+++ b/sdk/src/java/lineageos/weatherservice/ServiceRequestResult.java
@@ -14,18 +14,18 @@
* limitations under the License.
*/
-package cyanogenmod.weatherservice;
+package lineageos.weatherservice;
import android.annotation.NonNull;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
-import cyanogenmod.os.Build;
-import cyanogenmod.os.Concierge;
-import cyanogenmod.os.Concierge.ParcelInfo;
-import cyanogenmod.weather.WeatherLocation;
-import cyanogenmod.weather.WeatherInfo;
+import lineageos.os.Build;
+import lineageos.os.Concierge;
+import lineageos.os.Concierge.ParcelInfo;
+import lineageos.weather.WeatherLocation;
+import lineageos.weather.WeatherInfo;
import java.util.ArrayList;
import java.util.List;
@@ -47,7 +47,7 @@ public final class ServiceRequestResult implements Parcelable {
ParcelInfo parcelInfo = Concierge.receiveParcel(in);
int parcelableVersion = parcelInfo.getParcelVersion();
- if (parcelableVersion >= Build.CM_VERSION_CODES.ELDERBERRY) {
+ if (parcelableVersion >= Build.LINEAGE_VERSION_CODES.ELDERBERRY) {
mKey = in.readString();
int hasWeatherInfo = in.readInt();
if (hasWeatherInfo == 1) {
diff --git a/sdk/src/java/lineageos/weatherservice/WeatherProviderService.java b/sdk/src/java/lineageos/weatherservice/WeatherProviderService.java
index d090ae51..a27f9b71 100644
--- a/sdk/src/java/lineageos/weatherservice/WeatherProviderService.java
+++ b/sdk/src/java/lineageos/weatherservice/WeatherProviderService.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package cyanogenmod.weatherservice;
+package lineageos.weatherservice;
import android.annotation.SdkConstant;
import android.app.Service;
@@ -24,7 +24,7 @@ import android.os.Handler;
import android.os.IBinder;
import android.os.Looper;
import android.os.Message;
-import cyanogenmod.weather.RequestInfo;
+import lineageos.weather.RequestInfo;
import java.util.Collections;
import java.util.Set;
@@ -37,18 +37,18 @@ import java.util.WeakHashMap;
*
* A weather provider service is declared as any other service in an AndroidManifest.xml but it must
* also specify that in handles the {@link android.content.Intent} with action
- * {@link #SERVICE_INTERFACE cyanogenmod.weatherservice.WeatherProviderService}. Failure to declare
+ * {@link #SERVICE_INTERFACE lineageos.weatherservice.WeatherProviderService}. Failure to declare
* this intent will cause the system to ignore the weather provider service. Additionally, a
* weather provider service must request the
- * {@link cyanogenmod.platform.Manifest.permission#BIND_WEATHER_PROVIDER_SERVICE} permission to
+ * {@link lineageos.platform.Manifest.permission#BIND_WEATHER_PROVIDER_SERVICE} permission to
* ensure that only the system can bind to it. Failure to request this permission will cause the
* system to ignore this weather provider service. Following is an example declaration:
*
*
* <service android:name=".MyWeatherProviderService"
- * android:permission="cyanogenmod.permission.BIND_WEATHER_PROVIDER_SERVICE">
+ * android:permission="lineageos.permission.BIND_WEATHER_PROVIDER_SERVICE">
* <intent-filter>
- * <action android:name="cyanogenmod.weatherservice.WeatherProviderService" />
+ * <action android:name="lineageos.weatherservice.WeatherProviderService" />
* <intent-filter>
* . . .
* </service>
@@ -68,7 +68,7 @@ public abstract class WeatherProviderService extends Service {
*/
@SdkConstant(SdkConstant.SdkConstantType.SERVICE_ACTION)
public static final String SERVICE_INTERFACE
- = "cyanogenmod.weatherservice.WeatherProviderService";
+ = "lineageos.weatherservice.WeatherProviderService";
/**
* Name under which a {@link WeatherProviderService} publishes information about itself.
@@ -76,7 +76,7 @@ public abstract class WeatherProviderService extends Service {
* a <weather-provider-service>
* tag.
*/
- public static final String SERVICE_META_DATA = "cyanogenmod.weatherservice";
+ public static final String SERVICE_META_DATA = "lineageos.weatherservice";
@Override
protected final void attachBaseContext(Context base) {
diff --git a/sdk/src/java/org/lineageos/internal/lineageparts/LineagePartsPreference.java b/sdk/src/java/org/lineageos/internal/lineageparts/LineagePartsPreference.java
index 84372981..d1261bf4 100644
--- a/sdk/src/java/org/lineageos/internal/lineageparts/LineagePartsPreference.java
+++ b/sdk/src/java/org/lineageos/internal/lineageparts/LineagePartsPreference.java
@@ -13,27 +13,27 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.internal.cmparts;
+package org.lineageos.internal.lineageparts;
import android.content.Context;
import android.os.Bundle;
import android.util.AttributeSet;
-import cyanogenmod.preference.RemotePreference;
+import lineageos.preference.RemotePreference;
/**
* A link to a remote preference screen which can be used with a minimum amount
* of information. Supports summary updates asynchronously.
*/
-public class CMPartsPreference extends RemotePreference {
+public class LineagePartsPreference extends RemotePreference {
- private static final String TAG = "CMPartsPreference";
+ private static final String TAG = "LineagePartsPreference";
private final PartInfo mPart;
private final Context mContext;
- public CMPartsPreference(Context context, AttributeSet attrs,
+ public LineagePartsPreference(Context context, AttributeSet attrs,
int defStyle, int defStyleRes) {
super(context, attrs, defStyle, defStyleRes);
mContext = context;
@@ -46,11 +46,11 @@ public class CMPartsPreference extends RemotePreference {
setIntent(mPart.getIntentForActivity());
}
- public CMPartsPreference(Context context, AttributeSet attrs, int defStyle) {
+ public LineagePartsPreference(Context context, AttributeSet attrs, int defStyle) {
this(context, attrs, defStyle, 0);
}
- public CMPartsPreference(Context context, AttributeSet attrs) {
+ public LineagePartsPreference(Context context, AttributeSet attrs) {
this(context, attrs, android.support.v7.preference.R.attr.preferenceScreenStyle);
}
diff --git a/sdk/src/java/org/lineageos/internal/lineageparts/PartInfo.aidl b/sdk/src/java/org/lineageos/internal/lineageparts/PartInfo.aidl
index 2a7dd4ec..6b7bf160 100644
--- a/sdk/src/java/org/lineageos/internal/lineageparts/PartInfo.aidl
+++ b/sdk/src/java/org/lineageos/internal/lineageparts/PartInfo.aidl
@@ -14,6 +14,6 @@
* limitations under the License.
*/
-package org.cyanogenmod.internal.cmparts;
+package org.lineageos.internal.lineageparts;
parcelable PartInfo;
diff --git a/sdk/src/java/org/lineageos/internal/lineageparts/PartInfo.java b/sdk/src/java/org/lineageos/internal/lineageparts/PartInfo.java
index 39c7cf9c..bd8a089d 100644
--- a/sdk/src/java/org/lineageos/internal/lineageparts/PartInfo.java
+++ b/sdk/src/java/org/lineageos/internal/lineageparts/PartInfo.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.internal.cmparts;
+package org.lineageos.internal.lineageparts;
import android.content.Intent;
import android.os.Parcel;
@@ -21,7 +21,7 @@ import android.os.Parcelable;
import java.util.Objects;
-import cyanogenmod.os.Concierge;
+import lineageos.os.Concierge;
public class PartInfo implements Parcelable {
@@ -180,7 +180,7 @@ public class PartInfo implements Parcelable {
public Intent getIntentForActivity() {
Intent i = new Intent(getAction());
- i.setComponent(PartsList.CMPARTS_ACTIVITY);
+ i.setComponent(PartsList.LINEAGEPARTS_ACTIVITY);
return i;
}
diff --git a/sdk/src/java/org/lineageos/internal/lineageparts/PartsList.java b/sdk/src/java/org/lineageos/internal/lineageparts/PartsList.java
index 3ab37a6a..e7ae6645 100644
--- a/sdk/src/java/org/lineageos/internal/lineageparts/PartsList.java
+++ b/sdk/src/java/org/lineageos/internal/lineageparts/PartsList.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.internal.cmparts;
+package org.lineageos.internal.lineageparts;
import android.content.ComponentName;
import android.content.Context;
@@ -42,8 +42,8 @@ import static com.android.internal.R.styleable.Preference_icon;
import static com.android.internal.R.styleable.Preference_key;
import static com.android.internal.R.styleable.Preference_summary;
import static com.android.internal.R.styleable.Preference_title;
-import static cyanogenmod.platform.R.styleable.cm_Searchable;
-import static cyanogenmod.platform.R.styleable.cm_Searchable_xmlRes;
+import static lineageos.platform.R.styleable.lineage_Searchable;
+import static lineageos.platform.R.styleable.lineage_Searchable_xmlRes;
public class PartsList {
@@ -51,14 +51,14 @@ public class PartsList {
private static final boolean DEBUG = Log.isLoggable(TAG, Log.VERBOSE);
- public static final String EXTRA_PART = ":cm:part";
+ public static final String EXTRA_PART = ":lineage:part";
- public static final String CMPARTS_PACKAGE = "org.cyanogenmod.cmparts";
+ public static final String LINEAGEPARTS_PACKAGE = "org.lineageos.lineageparts";
- public static final ComponentName CMPARTS_ACTIVITY = new ComponentName(
- CMPARTS_PACKAGE, CMPARTS_PACKAGE + ".PartsActivity");
+ public static final ComponentName LINEAGEPARTS_ACTIVITY = new ComponentName(
+ LINEAGEPARTS_PACKAGE, LINEAGEPARTS_PACKAGE + ".PartsActivity");
- public static final String PARTS_ACTION_PREFIX = CMPARTS_PACKAGE + ".parts";
+ public static final String PARTS_ACTION_PREFIX = LINEAGEPARTS_PACKAGE + ".parts";
private final Map mParts = new ArrayMap<>();
@@ -85,16 +85,16 @@ public class PartsList {
synchronized (mParts) {
final PackageManager pm = mContext.getPackageManager();
try {
- final Resources r = pm.getResourcesForApplication(CMPARTS_PACKAGE);
+ final Resources r = pm.getResourcesForApplication(LINEAGEPARTS_PACKAGE);
if (r == null) {
return;
}
- int resId = r.getIdentifier("parts_catalog", "xml", CMPARTS_PACKAGE);
+ int resId = r.getIdentifier("parts_catalog", "xml", LINEAGEPARTS_PACKAGE);
if (resId > 0) {
loadPartsFromResourceLocked(r, resId, mParts);
}
} catch (PackageManager.NameNotFoundException e) {
- // no cmparts installed
+ // no lineageparts installed
}
}
}
@@ -190,8 +190,8 @@ public class PartsList {
info.setFragmentClass(sa.getString(Preference_fragment));
info.setIconRes(sa.getResourceId(Preference_icon, 0));
- sa = res.obtainAttributes(attrs, cm_Searchable);
- info.setXmlRes(sa.getResourceId(cm_Searchable_xmlRes, 0));
+ sa = res.obtainAttributes(attrs, lineage_Searchable);
+ info.setXmlRes(sa.getResourceId(lineage_Searchable_xmlRes, 0));
sa.recycle();
diff --git a/sdk/src/java/org/lineageos/internal/logging/LineageMetricsLogger.java b/sdk/src/java/org/lineageos/internal/logging/LineageMetricsLogger.java
index a059b3a5..31c30dec 100644
--- a/sdk/src/java/org/lineageos/internal/logging/LineageMetricsLogger.java
+++ b/sdk/src/java/org/lineageos/internal/logging/LineageMetricsLogger.java
@@ -14,14 +14,14 @@
* limitations under the License.
*/
-package org.cyanogenmod.internal.logging;
+package org.lineageos.internal.logging;
import com.android.internal.logging.MetricsLogger;
/**
* Serves as a central location for logging constants that is android release agnostic.
*/
-public class CMMetricsLogger extends MetricsLogger {
+public class LineageMetricsLogger extends MetricsLogger {
private static final int BASE = -Integer.MAX_VALUE;
//Since we never want to collide, lets start at the back and move inward
public static final int DONT_LOG = BASE + 1;
diff --git a/sdk/src/java/org/lineageos/internal/statusbar/ExternalQuickSettingsRecord.java b/sdk/src/java/org/lineageos/internal/statusbar/ExternalQuickSettingsRecord.java
index 05f8edfd..7a175be2 100644
--- a/sdk/src/java/org/lineageos/internal/statusbar/ExternalQuickSettingsRecord.java
+++ b/sdk/src/java/org/lineageos/internal/statusbar/ExternalQuickSettingsRecord.java
@@ -14,13 +14,13 @@
* limitations under the License.
*/
-package org.cyanogenmod.internal.statusbar;
+package org.lineageos.internal.statusbar;
import android.os.UserHandle;
import com.android.internal.annotations.VisibleForTesting;
-import cyanogenmod.app.CustomTile;
-import cyanogenmod.app.StatusBarPanelCustomTile;
+import lineageos.app.CustomTile;
+import lineageos.app.StatusBarPanelCustomTile;
/**
* @hide
diff --git a/sdk/src/java/org/lineageos/internal/themes/IIconCacheManager.aidl b/sdk/src/java/org/lineageos/internal/themes/IIconCacheManager.aidl
index c69e082f..68986361 100644
--- a/sdk/src/java/org/lineageos/internal/themes/IIconCacheManager.aidl
+++ b/sdk/src/java/org/lineageos/internal/themes/IIconCacheManager.aidl
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.internal.themes;
+package org.lineageos.internal.themes;
import android.graphics.Bitmap;
diff --git a/sdk/src/java/org/lineageos/internal/util/FileUtils.java b/sdk/src/java/org/lineageos/internal/util/FileUtils.java
index 5e2e8444..3d80c8f5 100644
--- a/sdk/src/java/org/lineageos/internal/util/FileUtils.java
+++ b/sdk/src/java/org/lineageos/internal/util/FileUtils.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.internal.util;
+package org.lineageos.internal.util;
import android.util.Log;
diff --git a/sdk/src/java/org/lineageos/internal/util/ImageUtils.java b/sdk/src/java/org/lineageos/internal/util/ImageUtils.java
index c67c23ce..8b1105f7 100644
--- a/sdk/src/java/org/lineageos/internal/util/ImageUtils.java
+++ b/sdk/src/java/org/lineageos/internal/util/ImageUtils.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.internal.util;
+package org.lineageos.internal.util;
import android.app.WallpaperManager;
import android.content.Context;
@@ -31,8 +31,8 @@ import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
-import cyanogenmod.providers.ThemesContract.PreviewColumns;
-import cyanogenmod.providers.ThemesContract.ThemesColumns;
+import lineageos.providers.ThemesContract.PreviewColumns;
+import lineageos.providers.ThemesContract.ThemesColumns;
import libcore.io.IoUtils;
diff --git a/sdk/src/java/org/lineageos/internal/util/LineageLockPatternUtils.java b/sdk/src/java/org/lineageos/internal/util/LineageLockPatternUtils.java
index 75ab0b3e..5e5e8f0c 100644
--- a/sdk/src/java/org/lineageos/internal/util/LineageLockPatternUtils.java
+++ b/sdk/src/java/org/lineageos/internal/util/LineageLockPatternUtils.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.internal.util;
+package org.lineageos.internal.util;
import android.content.ComponentName;
import android.content.Context;
@@ -24,10 +24,10 @@ import android.text.TextUtils;
import com.android.internal.widget.LockPatternUtils;
-import cyanogenmod.platform.Manifest;
-import cyanogenmod.providers.CMSettings;
+import lineageos.platform.Manifest;
+import lineageos.providers.LineageSettings;
-public class CmLockPatternUtils extends LockPatternUtils {
+public class LineageLockPatternUtils extends LockPatternUtils {
/**
* Third party keyguard component to be displayed within the keyguard
@@ -38,11 +38,11 @@ public class CmLockPatternUtils extends LockPatternUtils {
* Action to be broadcasted when the third party keyguard component has been changed
*/
public static final String ACTION_THIRD_PARTY_KEYGUARD_COMPONENT_CHANGED =
- "org.cyanogenmod.internal.action.THIRD_PARTY_KEYGUARD_COMPONENT_CHANGED";
+ "org.lineageos.internal.action.THIRD_PARTY_KEYGUARD_COMPONENT_CHANGED";
private Context mContext;
- public CmLockPatternUtils(Context context) {
+ public LineageLockPatternUtils(Context context) {
super(context);
mContext = context;
}
@@ -97,10 +97,10 @@ public class CmLockPatternUtils extends LockPatternUtils {
}
public boolean shouldPassToSecurityView(int userId) {
- return getBoolean(CMSettings.Secure.LOCK_PASS_TO_SECURITY_VIEW, false, userId);
+ return getBoolean(LineageSettings.Secure.LOCK_PASS_TO_SECURITY_VIEW, false, userId);
}
public void setPassToSecurityView(boolean enabled, int userId) {
- setBoolean(CMSettings.Secure.LOCK_PASS_TO_SECURITY_VIEW, enabled, userId);
+ setBoolean(LineageSettings.Secure.LOCK_PASS_TO_SECURITY_VIEW, enabled, userId);
}
}
diff --git a/sdk/src/java/org/lineageos/internal/util/MathUtils.java b/sdk/src/java/org/lineageos/internal/util/MathUtils.java
index 3a2ddf0d..d4a26397 100644
--- a/sdk/src/java/org/lineageos/internal/util/MathUtils.java
+++ b/sdk/src/java/org/lineageos/internal/util/MathUtils.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.internal.util;
+package org.lineageos.internal.util;
public final class MathUtils {
diff --git a/sdk/src/java/org/lineageos/internal/util/PackageManagerUtils.java b/sdk/src/java/org/lineageos/internal/util/PackageManagerUtils.java
index 690fd481..075dd5cf 100644
--- a/sdk/src/java/org/lineageos/internal/util/PackageManagerUtils.java
+++ b/sdk/src/java/org/lineageos/internal/util/PackageManagerUtils.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.internal.util;
+package org.lineageos.internal.util;
import android.content.Context;
import android.content.pm.ApplicationInfo;
diff --git a/sdk/src/java/org/lineageos/internal/util/QSConstants.java b/sdk/src/java/org/lineageos/internal/util/QSConstants.java
index c5e62eba..45059770 100644
--- a/sdk/src/java/org/lineageos/internal/util/QSConstants.java
+++ b/sdk/src/java/org/lineageos/internal/util/QSConstants.java
@@ -14,7 +14,7 @@
* limitations under the License
*/
-package org.cyanogenmod.internal.util;
+package org.lineageos.internal.util;
import java.util.ArrayList;
diff --git a/sdk/src/java/org/lineageos/internal/util/QSUtils.java b/sdk/src/java/org/lineageos/internal/util/QSUtils.java
index 6aedaf81..3c3d80b9 100644
--- a/sdk/src/java/org/lineageos/internal/util/QSUtils.java
+++ b/sdk/src/java/org/lineageos/internal/util/QSUtils.java
@@ -14,7 +14,7 @@
* limitations under the License
*/
-package org.cyanogenmod.internal.util;
+package org.lineageos.internal.util;
import android.bluetooth.BluetoothAdapter;
import android.content.ContentResolver;
@@ -39,8 +39,8 @@ import android.text.TextUtils;
import android.util.SparseArray;
import com.android.internal.telephony.PhoneConstants;
-import cyanogenmod.power.PerformanceManager;
-import cyanogenmod.providers.CMSettings;
+import lineageos.power.PerformanceManager;
+import lineageos.providers.LineageSettings;
import java.util.ArrayList;
import java.util.Arrays;
@@ -75,7 +75,7 @@ public class QSUtils {
public static List getDefaultTiles(Context context) {
final List tiles = new ArrayList<>();
final String defaults = context.getString(
- org.cyanogenmod.platform.internal.R.string.config_defaultQuickSettingsTiles);
+ org.lineageos.platform.internal.R.string.config_defaultQuickSettingsTiles);
if (!TextUtils.isEmpty(defaults)) {
final String[] array = TextUtils.split(defaults, Pattern.quote(","));
for (String item : array) {
@@ -213,8 +213,8 @@ public class QSUtils {
public static boolean isQSTileEnabledForUser(
Context context, String tileSpec, int userId) {
final ContentResolver resolver = context.getContentResolver();
- String order = CMSettings.Secure.getStringForUser(resolver,
- CMSettings.Secure.QS_TILES, userId);
+ String order = LineageSettings.Secure.getStringForUser(resolver,
+ LineageSettings.Secure.QS_TILES, userId);
return !TextUtils.isEmpty(order) && Arrays.asList(order.split(",")).contains(tileSpec);
}
@@ -227,7 +227,7 @@ public class QSUtils {
};
ctx.getContentResolver().registerContentObserver(
- CMSettings.Secure.getUriFor(CMSettings.Secure.QS_TILES),
+ LineageSettings.Secure.getUriFor(LineageSettings.Secure.QS_TILES),
false, observer, UserHandle.USER_ALL);
return observer;
}
diff --git a/sdk/src/java/org/lineageos/internal/util/ScreenType.java b/sdk/src/java/org/lineageos/internal/util/ScreenType.java
index 23bd9ad6..d1729f15 100644
--- a/sdk/src/java/org/lineageos/internal/util/ScreenType.java
+++ b/sdk/src/java/org/lineageos/internal/util/ScreenType.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.internal.util;
+package org.lineageos.internal.util;
import android.content.Context;
import android.util.DisplayMetrics;
diff --git a/sdk/src/java/org/lineageos/internal/util/ThemeUtils.java b/sdk/src/java/org/lineageos/internal/util/ThemeUtils.java
index ef51ceda..784bc39a 100644
--- a/sdk/src/java/org/lineageos/internal/util/ThemeUtils.java
+++ b/sdk/src/java/org/lineageos/internal/util/ThemeUtils.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.internal.util;
+package org.lineageos.internal.util;
import android.content.BroadcastReceiver;
import android.content.ContentResolver;
@@ -39,8 +39,8 @@ import android.util.DisplayMetrics;
import android.util.Log;
import android.view.WindowManager;
-import cyanogenmod.providers.CMSettings;
-import cyanogenmod.providers.ThemesContract.ThemesColumns;
+import lineageos.providers.LineageSettings;
+import lineageos.providers.ThemesContract.ThemesColumns;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
@@ -91,7 +91,7 @@ public class ThemeUtils {
}
// Constants for theme change broadcast
- public static final String ACTION_THEME_CHANGED = "org.cyanogenmod.intent.action.THEME_CHANGED";
+ public static final String ACTION_THEME_CHANGED = "org.lineageos.intent.action.THEME_CHANGED";
public static final String EXTRA_COMPONENTS = "components";
public static final String EXTRA_REQUEST_TYPE = "request_type";
public static final String EXTRA_UPDATE_TIME = "update_time";
@@ -142,8 +142,8 @@ public class ThemeUtils {
public static final String FONT_XML = "fonts.xml";
public static String getDefaultThemePackageName(Context context) {
- final String defaultThemePkg = CMSettings.Secure.getString(context.getContentResolver(),
- CMSettings.Secure.DEFAULT_THEME_PACKAGE);
+ final String defaultThemePkg = LineageSettings.Secure.getString(context.getContentResolver(),
+ LineageSettings.Secure.DEFAULT_THEME_PACKAGE);
if (!TextUtils.isEmpty(defaultThemePkg)) {
PackageManager pm = context.getPackageManager();
try {
diff --git a/tests/Android.mk b/tests/Android.mk
index 5046bc4e..2cbb309f 100644
--- a/tests/Android.mk
+++ b/tests/Android.mk
@@ -19,7 +19,7 @@ include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := tests
LOCAL_STATIC_JAVA_LIBRARIES := \
- org.cyanogenmod.platform.sdk \
+ org.lineageos.platform.sdk \
android-support-test \
mockito-target
@@ -27,7 +27,7 @@ LOCAL_DEX_PREOPT := false
LOCAL_SRC_FILES := $(call all-subdir-java-files, src/)
-LOCAL_PACKAGE_NAME := CMPlatformTests
+LOCAL_PACKAGE_NAME := LineagePlatformTests
LOCAL_CERTIFICATE := platform
LOCAL_JAVA_LIBRARIES := android.test.runner
LOCAL_PROGUARD_ENABLED := optimization shrinktests
@@ -35,12 +35,12 @@ LOCAL_PROGUARD_FLAG_FILES := proguard.flags
include $(BUILD_PACKAGE)
-# Register as CMTS
+# Register as LineageTS
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := tests
LOCAL_STATIC_JAVA_LIBRARIES := \
- org.cyanogenmod.platform.sdk \
+ org.lineageos.platform.sdk \
android-support-test \
mockito-target
@@ -53,4 +53,4 @@ LOCAL_CERTIFICATE := platform
LOCAL_JAVA_LIBRARIES := android.test.runner
LOCAL_PROGUARD_ENABLED := optimization shrinktests
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
-include $(BUILD_CMTS_PACKAGE)
+include $(BUILD_LineageTS_PACKAGE)
diff --git a/tests/AndroidManifest.xml b/tests/AndroidManifest.xml
index fe3099a6..d5892938 100644
--- a/tests/AndroidManifest.xml
+++ b/tests/AndroidManifest.xml
@@ -1,6 +1,6 @@
@@ -11,53 +11,53 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
@@ -78,7 +78,7 @@
-
@@ -92,5 +92,5 @@
+ android:targetPackage="org.lineageos.tests" />
diff --git a/tests/README.md b/tests/README.md
index 9d323573..9aebffc8 100644
--- a/tests/README.md
+++ b/tests/README.md
@@ -1,7 +1,7 @@
-## CM Platform SDK Tests
+## Lineage Platform SDK Tests
The tests package contains both functional manual tests as well as unit
tests which can be ran utilizing the InstrumentationTestRunner from android.
To run the tests (on a live device):
- ```adb shell am instrument -w org.cyanogenmod.tests/android.support.test.runner.AndroidJUnitRunner```
+ ```adb shell am instrument -w org.lineageos.tests/android.support.test.runner.AndroidJUnitRunner```
diff --git a/tests/res/values/strings.xml b/tests/res/values/strings.xml
index 6195f2bc..5cbd37c5 100644
--- a/tests/res/values/strings.xml
+++ b/tests/res/values/strings.xml
@@ -1,6 +1,6 @@
- CM Platform Tests
- CM Platform Settings Tests
- CM Platform Alarm Clock Tests
+ Lineage Platform Tests
+ Lineage Platform Settings Tests
+ Lineage Platform Alarm Clock Tests
diff --git a/tests/src/org/lineageos/tests/LineageOSTestApplication.java b/tests/src/org/lineageos/tests/LineageOSTestApplication.java
index a7389082..0eb754e9 100644
--- a/tests/src/org/lineageos/tests/LineageOSTestApplication.java
+++ b/tests/src/org/lineageos/tests/LineageOSTestApplication.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests;
+package org.lineageos.tests;
import android.app.Application;
import android.content.Context;
@@ -22,7 +22,7 @@ import android.content.Context;
/**
* Created by adnan on 2/4/16.
*/
-public class CyanogenModTestApplication extends Application {
+public class LineageOSTestApplication extends Application {
private static Context sApplicationContext;
@Override
diff --git a/tests/src/org/lineageos/tests/TestActivity.java b/tests/src/org/lineageos/tests/TestActivity.java
index e692df48..9c8d8604 100644
--- a/tests/src/org/lineageos/tests/TestActivity.java
+++ b/tests/src/org/lineageos/tests/TestActivity.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests;
+package org.lineageos.tests;
import android.app.ListActivity;
import android.os.Bundle;
diff --git a/tests/src/org/lineageos/tests/alarmclock/LineageAlarmClockTest.java b/tests/src/org/lineageos/tests/alarmclock/LineageAlarmClockTest.java
index 83a1c1fb..a37860b5 100644
--- a/tests/src/org/lineageos/tests/alarmclock/LineageAlarmClockTest.java
+++ b/tests/src/org/lineageos/tests/alarmclock/LineageAlarmClockTest.java
@@ -1,4 +1,4 @@
-package org.cyanogenmod.tests.alarmclock;
+package org.lineageos.tests.alarmclock;
import android.content.Intent;
import android.database.Cursor;
@@ -7,15 +7,15 @@ import android.net.Uri;
import android.provider.AlarmClock;
import android.util.Log;
import android.widget.Toast;
-import cyanogenmod.alarmclock.ClockContract;
-import cyanogenmod.alarmclock.CyanogenModAlarmClock;
-import org.cyanogenmod.tests.TestActivity;
+import lineageos.alarmclock.ClockContract;
+import lineageos.alarmclock.LineageOSAlarmClock;
+import org.lineageos.tests.TestActivity;
/**
- * Tests functionality added in {@link cyanogenmod.alarmclock.CyanogenModAlarmClock}
+ * Tests functionality added in {@link lineageos.alarmclock.LineageOSAlarmClock}
*/
-public class CMAlarmClockTest extends TestActivity {
- private static final String TAG = "CMAlarmClockTest";
+public class LineageAlarmClockTest extends TestActivity {
+ private static final String TAG = "LineageAlarmClockTest";
private static final String[] ALARM_QUERY_COLUMNS = {
ClockContract.AlarmsColumns._ID,
@@ -51,7 +51,7 @@ public class CMAlarmClockTest extends TestActivity {
},
new Test("Test create alarm") {
public void run() {
- Intent intent = CyanogenModAlarmClock.createAlarmIntent(CMAlarmClockTest.this);
+ Intent intent = LineageOSAlarmClock.createAlarmIntent(LineageAlarmClockTest.this);
intent.putExtra(AlarmClock.EXTRA_HOUR, 13);
intent.putExtra(AlarmClock.EXTRA_MINUTES, 35);
intent.putExtra(AlarmClock.EXTRA_MESSAGE, "Test from third party!");
@@ -117,10 +117,10 @@ public class CMAlarmClockTest extends TestActivity {
* @return The Intent to launch that will perform this action.
*/
private Intent getIntentToSetAlarmEnabled(long alarmId, boolean enabledState) {
- Intent intent = new Intent(CyanogenModAlarmClock.ACTION_SET_ALARM_ENABLED);
+ Intent intent = new Intent(LineageOSAlarmClock.ACTION_SET_ALARM_ENABLED);
intent.setPackage("com.android.deskclock");
- intent.putExtra(CyanogenModAlarmClock.EXTRA_ALARM_ID, alarmId);
- intent.putExtra(CyanogenModAlarmClock.EXTRA_ENABLED, enabledState);
+ intent.putExtra(LineageOSAlarmClock.EXTRA_ALARM_ID, alarmId);
+ intent.putExtra(LineageOSAlarmClock.EXTRA_ENABLED, enabledState);
return intent;
}
diff --git a/tests/src/org/lineageos/tests/common/MockIBinderStubForInterface.java b/tests/src/org/lineageos/tests/common/MockIBinderStubForInterface.java
index e2f77028..79c61744 100644
--- a/tests/src/org/lineageos/tests/common/MockIBinderStubForInterface.java
+++ b/tests/src/org/lineageos/tests/common/MockIBinderStubForInterface.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.common;
+package org.lineageos.tests.common;
import android.os.IBinder;
import android.os.IInterface;
diff --git a/tests/src/org/lineageos/tests/common/ThreadServiceTestCase.java b/tests/src/org/lineageos/tests/common/ThreadServiceTestCase.java
index 4404377d..55807c5c 100644
--- a/tests/src/org/lineageos/tests/common/ThreadServiceTestCase.java
+++ b/tests/src/org/lineageos/tests/common/ThreadServiceTestCase.java
@@ -1,4 +1,4 @@
-package org.cyanogenmod.tests.common;
+package org.lineageos.tests.common;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Semaphore;
diff --git a/tests/src/org/lineageos/tests/customtiles/DummySettings.java b/tests/src/org/lineageos/tests/customtiles/DummySettings.java
index ef7f1e6b..90333743 100644
--- a/tests/src/org/lineageos/tests/customtiles/DummySettings.java
+++ b/tests/src/org/lineageos/tests/customtiles/DummySettings.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.customtiles;
+package org.lineageos.tests.customtiles;
import android.os.Bundle;
import android.preference.PreferenceActivity;
diff --git a/tests/src/org/lineageos/tests/customtiles/LineageStatusBarTest.java b/tests/src/org/lineageos/tests/customtiles/LineageStatusBarTest.java
index 38ddca8a..f904b025 100644
--- a/tests/src/org/lineageos/tests/customtiles/LineageStatusBarTest.java
+++ b/tests/src/org/lineageos/tests/customtiles/LineageStatusBarTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.customtiles;
+package org.lineageos.tests.customtiles;
import android.app.PendingIntent;
import android.content.Intent;
@@ -24,21 +24,21 @@ import android.net.Uri;
import android.os.Handler;
import android.widget.RemoteViews;
-import cyanogenmod.app.CustomTile;
-import cyanogenmod.app.CMStatusBarManager;
+import lineageos.app.CustomTile;
+import lineageos.app.LineageStatusBarManager;
-import org.cyanogenmod.tests.R;
+import org.lineageos.tests.R;
-import org.cyanogenmod.tests.TestActivity;
+import org.lineageos.tests.TestActivity;
import java.util.ArrayList;
-public class CMStatusBarTest extends TestActivity {
+public class LineageStatusBarTest extends TestActivity {
private static final int CUSTOM_TILE_ID = 1337;
private static final int CUSTOM_TILE_SETTINGS_ID = 1336;
private CustomTile mCustomTile;
- private CMStatusBarManager mCMStatusBarManager;
+ private LineageStatusBarManager mLineageStatusBarManager;
Handler mHandler = new Handler();
@@ -49,23 +49,23 @@ public class CMStatusBarTest extends TestActivity {
@Override
protected Test[] tests() {
- mCMStatusBarManager = CMStatusBarManager.getInstance(this);
+ mLineageStatusBarManager = LineageStatusBarManager.getInstance(this);
return mTests;
}
private Test[] mTests = new Test[] {
new Test("test publish tile") {
public void run() {
- PendingIntent intent = PendingIntent.getActivity(CMStatusBarTest.this, 0,
- new Intent(CMStatusBarTest.this, CMStatusBarTest.class)
+ PendingIntent intent = PendingIntent.getActivity(LineageStatusBarTest.this, 0,
+ new Intent(LineageStatusBarTest.this, LineageStatusBarTest.class)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0);
- mCustomTile = new CustomTile.Builder(CMStatusBarTest.this)
+ mCustomTile = new CustomTile.Builder(LineageStatusBarTest.this)
.setLabel("Test From SDK")
.setIcon(R.drawable.ic_launcher)
.setOnClickIntent(intent)
.setContentDescription("Content description")
.build();
- mCMStatusBarManager.publishTile(CUSTOM_TILE_ID, mCustomTile);
+ mLineageStatusBarManager.publishTile(CUSTOM_TILE_ID, mCustomTile);
}
},
@@ -74,17 +74,17 @@ public class CMStatusBarTest extends TestActivity {
int resourceInt = R.drawable.ic_whatshot_white_24dp;
Bitmap bitmap = BitmapFactory.decodeResource(getResources(),
resourceInt);
- PendingIntent intent = PendingIntent.getActivity(CMStatusBarTest.this, 0,
- new Intent(CMStatusBarTest.this, CMStatusBarTest.class)
+ PendingIntent intent = PendingIntent.getActivity(LineageStatusBarTest.this, 0,
+ new Intent(LineageStatusBarTest.this, LineageStatusBarTest.class)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0);
- mCustomTile = new CustomTile.Builder(CMStatusBarTest.this)
+ mCustomTile = new CustomTile.Builder(LineageStatusBarTest.this)
.setLabel("Test From SDK - remote icon")
.setIcon(bitmap)
.setOnClickIntent(intent)
.shouldCollapsePanel(true)
.setContentDescription("Content description")
.build();
- mCMStatusBarManager.publishTile(CUSTOM_TILE_ID, mCustomTile);
+ mLineageStatusBarManager.publishTile(CUSTOM_TILE_ID, mCustomTile);
}
},
@@ -92,17 +92,17 @@ public class CMStatusBarTest extends TestActivity {
public void run() {
mHandler.postDelayed(new Runnable() {
public void run() {
- PendingIntent intent = PendingIntent.getActivity(CMStatusBarTest.this, 0,
- new Intent(CMStatusBarTest.this, CMStatusBarTest.class)
+ PendingIntent intent = PendingIntent.getActivity(LineageStatusBarTest.this, 0,
+ new Intent(LineageStatusBarTest.this, LineageStatusBarTest.class)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0);
- mCustomTile = new CustomTile.Builder(CMStatusBarTest.this)
+ mCustomTile = new CustomTile.Builder(LineageStatusBarTest.this)
.setLabel("Test 3 seconds")
.setIcon(R.drawable.ic_launcher)
.setOnClickIntent(intent)
.shouldCollapsePanel(true)
.setContentDescription("Content description")
.build();
- mCMStatusBarManager.publishTile(CUSTOM_TILE_ID, mCustomTile);
+ mLineageStatusBarManager.publishTile(CUSTOM_TILE_ID, mCustomTile);
}
}, 3000);
}
@@ -112,14 +112,14 @@ public class CMStatusBarTest extends TestActivity {
public void run() {
if (mCustomTile != null) {
mCustomTile.label = "Update From SDK";
- mCMStatusBarManager.publishTile(CUSTOM_TILE_ID, mCustomTile);
+ mLineageStatusBarManager.publishTile(CUSTOM_TILE_ID, mCustomTile);
}
}
},
new Test("test remove tile") {
public void run() {
- mCMStatusBarManager.removeTile(CUSTOM_TILE_ID);
+ mLineageStatusBarManager.removeTile(CUSTOM_TILE_ID);
}
},
@@ -127,7 +127,7 @@ public class CMStatusBarTest extends TestActivity {
public void run() {
mHandler.postDelayed(new Runnable() {
public void run() {
- mCMStatusBarManager.removeTile(CUSTOM_TILE_ID);
+ mLineageStatusBarManager.removeTile(CUSTOM_TILE_ID);
}
}, 3000);
}
@@ -135,65 +135,65 @@ public class CMStatusBarTest extends TestActivity {
new Test("test publish tile with settings") {
public void run() {
- CustomTile customTile = new CustomTile.Builder(CMStatusBarTest.this)
+ CustomTile customTile = new CustomTile.Builder(LineageStatusBarTest.this)
.setLabel("Test Settings From SDK")
.setIcon(R.drawable.ic_launcher)
- .setOnSettingsClickIntent(new Intent(CMStatusBarTest.this,
+ .setOnSettingsClickIntent(new Intent(LineageStatusBarTest.this,
DummySettings.class)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
.setContentDescription("Content description")
.build();
- CMStatusBarManager.getInstance(CMStatusBarTest.this)
+ LineageStatusBarManager.getInstance(LineageStatusBarTest.this)
.publishTile(CUSTOM_TILE_SETTINGS_ID, customTile);
}
},
new Test("test publish tile with long press") {
public void run() {
- CustomTile customTile = new CustomTile.Builder(CMStatusBarTest.this)
+ CustomTile customTile = new CustomTile.Builder(LineageStatusBarTest.this)
.setLabel("Test Long press From SDK")
.setIcon(R.drawable.ic_launcher)
- .setOnLongClickIntent(PendingIntent.getActivity(CMStatusBarTest.this, 0,
- new Intent(CMStatusBarTest.this,DummySettings.class)
+ .setOnLongClickIntent(PendingIntent.getActivity(LineageStatusBarTest.this, 0,
+ new Intent(LineageStatusBarTest.this,DummySettings.class)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0))
.setContentDescription("Content description")
.build();
- CMStatusBarManager.getInstance(CMStatusBarTest.this)
+ LineageStatusBarManager.getInstance(LineageStatusBarTest.this)
.publishTile(CUSTOM_TILE_SETTINGS_ID, customTile);
}
},
new Test("test publish tile with delete intent") {
public void run() {
- Intent intent = new Intent(CMStatusBarTest.this, DummySettings.class);
+ Intent intent = new Intent(LineageStatusBarTest.this, DummySettings.class);
PendingIntent pendingIntent =
- PendingIntent.getActivity(CMStatusBarTest.this, 0, intent, 0);
- CustomTile customTile = new CustomTile.Builder(CMStatusBarTest.this)
+ PendingIntent.getActivity(LineageStatusBarTest.this, 0, intent, 0);
+ CustomTile customTile = new CustomTile.Builder(LineageStatusBarTest.this)
.setLabel("Test Settings From SDK")
.setIcon(R.drawable.ic_launcher)
.setDeleteIntent(pendingIntent)
.setContentDescription("Content description")
.build();
- CMStatusBarManager.getInstance(CMStatusBarTest.this)
+ LineageStatusBarManager.getInstance(LineageStatusBarTest.this)
.publishTile(CUSTOM_TILE_SETTINGS_ID, customTile);
}
},
new Test("test publish tile with custom uri") {
public void run() {
- CustomTile customTile = new CustomTile.Builder(CMStatusBarTest.this)
+ CustomTile customTile = new CustomTile.Builder(LineageStatusBarTest.this)
.setIcon(R.drawable.ic_launcher)
.setOnClickUri(Uri.parse("http://tasker.dinglisch.net"))
.build();
- CMStatusBarManager.getInstance(CMStatusBarTest.this)
+ LineageStatusBarManager.getInstance(LineageStatusBarTest.this)
.publishTile(CUSTOM_TILE_SETTINGS_ID, customTile);
}
},
new Test("test publish tile with expanded list") {
public void run() {
- PendingIntent intent = PendingIntent.getActivity(CMStatusBarTest.this, 0,
- new Intent(CMStatusBarTest.this, CMStatusBarTest.class)
+ PendingIntent intent = PendingIntent.getActivity(LineageStatusBarTest.this, 0,
+ new Intent(LineageStatusBarTest.this, LineageStatusBarTest.class)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0);
ArrayList expandedListItems =
new ArrayList();
@@ -210,24 +210,24 @@ public class CMStatusBarTest extends TestActivity {
CustomTile.ListExpandedStyle listExpandedStyle =
new CustomTile.ListExpandedStyle();
listExpandedStyle.setListItems(expandedListItems);
- CustomTile customTile = new CustomTile.Builder(CMStatusBarTest.this)
+ CustomTile customTile = new CustomTile.Builder(LineageStatusBarTest.this)
.setLabel("Test Expanded List Style From SDK")
.setIcon(R.drawable.ic_launcher)
.setExpandedStyle(listExpandedStyle)
- .setOnSettingsClickIntent(new Intent(CMStatusBarTest.this,
+ .setOnSettingsClickIntent(new Intent(LineageStatusBarTest.this,
DummySettings.class)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
.setContentDescription("Content description")
.build();
- CMStatusBarManager.getInstance(CMStatusBarTest.this)
+ LineageStatusBarManager.getInstance(LineageStatusBarTest.this)
.publishTile(CUSTOM_TILE_SETTINGS_ID, customTile);
}
},
new Test("test publish tile with expanded list with bitmaps") {
public void run() {
- PendingIntent intent = PendingIntent.getActivity(CMStatusBarTest.this, 0,
- new Intent(CMStatusBarTest.this, CMStatusBarTest.class)
+ PendingIntent intent = PendingIntent.getActivity(LineageStatusBarTest.this, 0,
+ new Intent(LineageStatusBarTest.this, LineageStatusBarTest.class)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0);
ArrayList expandedListItems =
new ArrayList();
@@ -247,24 +247,24 @@ public class CMStatusBarTest extends TestActivity {
CustomTile.ListExpandedStyle listExpandedStyle =
new CustomTile.ListExpandedStyle();
listExpandedStyle.setListItems(expandedListItems);
- CustomTile customTile = new CustomTile.Builder(CMStatusBarTest.this)
+ CustomTile customTile = new CustomTile.Builder(LineageStatusBarTest.this)
.setLabel("Test Expanded List Style From SDK")
.setIcon(R.drawable.ic_launcher)
.setExpandedStyle(listExpandedStyle)
- .setOnSettingsClickIntent(new Intent(CMStatusBarTest.this,
+ .setOnSettingsClickIntent(new Intent(LineageStatusBarTest.this,
DummySettings.class)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
.setContentDescription("Content description")
.build();
- CMStatusBarManager.getInstance(CMStatusBarTest.this)
+ LineageStatusBarManager.getInstance(LineageStatusBarTest.this)
.publishTile(CUSTOM_TILE_SETTINGS_ID, customTile);
}
},
new Test("test publish tile with expanded grid") {
public void run() {
- PendingIntent intent = PendingIntent.getActivity(CMStatusBarTest.this, 0,
- new Intent(CMStatusBarTest.this, CMStatusBarTest.class)
+ PendingIntent intent = PendingIntent.getActivity(LineageStatusBarTest.this, 0,
+ new Intent(LineageStatusBarTest.this, LineageStatusBarTest.class)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0);
ArrayList expandedGridItems =
new ArrayList();
@@ -280,24 +280,24 @@ public class CMStatusBarTest extends TestActivity {
CustomTile.GridExpandedStyle gridExpandedStyle =
new CustomTile.GridExpandedStyle();
gridExpandedStyle.setGridItems(expandedGridItems);
- CustomTile customTile = new CustomTile.Builder(CMStatusBarTest.this)
+ CustomTile customTile = new CustomTile.Builder(LineageStatusBarTest.this)
.setLabel("Test Expanded Grid Style From SDK")
.setIcon(R.drawable.ic_launcher)
.setExpandedStyle(gridExpandedStyle)
- .setOnSettingsClickIntent(new Intent(CMStatusBarTest.this,
+ .setOnSettingsClickIntent(new Intent(LineageStatusBarTest.this,
DummySettings.class)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
.setContentDescription("Content description")
.build();
- CMStatusBarManager.getInstance(CMStatusBarTest.this)
+ LineageStatusBarManager.getInstance(LineageStatusBarTest.this)
.publishTile(CUSTOM_TILE_SETTINGS_ID, customTile);
}
},
new Test("test publish tile with expanded grid with bitmaps") {
public void run() {
- PendingIntent intent = PendingIntent.getActivity(CMStatusBarTest.this, 0,
- new Intent(CMStatusBarTest.this, CMStatusBarTest.class)
+ PendingIntent intent = PendingIntent.getActivity(LineageStatusBarTest.this, 0,
+ new Intent(LineageStatusBarTest.this, LineageStatusBarTest.class)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0);
ArrayList expandedGridItems =
new ArrayList();
@@ -316,16 +316,16 @@ public class CMStatusBarTest extends TestActivity {
CustomTile.GridExpandedStyle gridExpandedStyle =
new CustomTile.GridExpandedStyle();
gridExpandedStyle.setGridItems(expandedGridItems);
- CustomTile customTile = new CustomTile.Builder(CMStatusBarTest.this)
+ CustomTile customTile = new CustomTile.Builder(LineageStatusBarTest.this)
.setLabel("Test Expanded Grid Style From SDK")
.setIcon(R.drawable.ic_launcher)
.setExpandedStyle(gridExpandedStyle)
- .setOnSettingsClickIntent(new Intent(CMStatusBarTest.this,
+ .setOnSettingsClickIntent(new Intent(LineageStatusBarTest.this,
DummySettings.class)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
.setContentDescription("Content description")
.build();
- CMStatusBarManager.getInstance(CMStatusBarTest.this)
+ LineageStatusBarManager.getInstance(LineageStatusBarTest.this)
.publishTile(CUSTOM_TILE_SETTINGS_ID, customTile);
}
},
@@ -338,7 +338,7 @@ public class CMStatusBarTest extends TestActivity {
Intent daneshIntent = new Intent(Intent.ACTION_VIEW)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
.setData(Uri.parse("http://www.reddit.com/r/daneshsayings"));
- PendingIntent intent = PendingIntent.getActivity(CMStatusBarTest.this, 0,
+ PendingIntent intent = PendingIntent.getActivity(LineageStatusBarTest.this, 0,
daneshIntent, 0);
contentView.setOnClickPendingIntent(R.id.whats_hot_click, intent);
@@ -346,16 +346,16 @@ public class CMStatusBarTest extends TestActivity {
new CustomTile.RemoteExpandedStyle();
remoteExpandedStyle.setRemoteViews(contentView);
- CustomTile customTile = new CustomTile.Builder(CMStatusBarTest.this)
+ CustomTile customTile = new CustomTile.Builder(LineageStatusBarTest.this)
.setLabel("Test Expanded Remote Style From SDK")
.setIcon(R.drawable.ic_launcher)
.setExpandedStyle(remoteExpandedStyle)
- .setOnSettingsClickIntent(new Intent(CMStatusBarTest.this,
+ .setOnSettingsClickIntent(new Intent(LineageStatusBarTest.this,
DummySettings.class)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
.setContentDescription("Content description")
.build();
- CMStatusBarManager.getInstance(CMStatusBarTest.this)
+ LineageStatusBarManager.getInstance(LineageStatusBarTest.this)
.publishTile(CUSTOM_TILE_SETTINGS_ID, customTile);
}
},
diff --git a/tests/src/org/lineageos/tests/customtiles/unit/CustomTileBuilderTest.java b/tests/src/org/lineageos/tests/customtiles/unit/CustomTileBuilderTest.java
index 1368af5d..73e13d06 100644
--- a/tests/src/org/lineageos/tests/customtiles/unit/CustomTileBuilderTest.java
+++ b/tests/src/org/lineageos/tests/customtiles/unit/CustomTileBuilderTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.customtiles.unit;
+package org.lineageos.tests.customtiles.unit;
import android.app.PendingIntent;
import android.content.Intent;
@@ -24,11 +24,11 @@ import android.net.Uri;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.MediumTest;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.app.CustomTile;
-import org.cyanogenmod.tests.R;
-import org.cyanogenmod.tests.customtiles.CMStatusBarTest;
-import org.cyanogenmod.tests.customtiles.DummySettings;
+import lineageos.app.LineageContextConstants;
+import lineageos.app.CustomTile;
+import org.lineageos.tests.R;
+import org.lineageos.tests.customtiles.LineageStatusBarTest;
+import org.lineageos.tests.customtiles.DummySettings;
import java.util.ArrayList;
@@ -40,9 +40,9 @@ public class CustomTileBuilderTest extends AndroidTestCase {
@Override
protected void setUp() throws Exception {
super.setUp();
- // Only run this if we support cm status bar service
+ // Only run this if we support lineage status bar service
org.junit.Assume.assumeTrue(mContext.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.STATUSBAR));
+ LineageContextConstants.Features.STATUSBAR));
}
@SmallTest
@@ -186,7 +186,7 @@ public class CustomTileBuilderTest extends AndroidTestCase {
@MediumTest
public void testCustomTileBuilderExpandedListStyleSet() {
PendingIntent intent = PendingIntent.getActivity(mContext, 0,
- new Intent(mContext, CMStatusBarTest.class)
+ new Intent(mContext, LineageStatusBarTest.class)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0);
ArrayList expandedListItems =
new ArrayList();
@@ -223,7 +223,7 @@ public class CustomTileBuilderTest extends AndroidTestCase {
@MediumTest
public void testCustomTileBuilderExpandedGridStyleSet() {
PendingIntent intent = PendingIntent.getActivity(mContext, 0,
- new Intent(mContext, CMStatusBarTest.class)
+ new Intent(mContext, LineageStatusBarTest.class)
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK), 0);
ArrayList expandedGridItems =
new ArrayList();
diff --git a/tests/src/org/lineageos/tests/customtiles/unit/CustomTileTest.java b/tests/src/org/lineageos/tests/customtiles/unit/CustomTileTest.java
index 3863453f..a6f91419 100644
--- a/tests/src/org/lineageos/tests/customtiles/unit/CustomTileTest.java
+++ b/tests/src/org/lineageos/tests/customtiles/unit/CustomTileTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.customtiles.unit;
+package org.lineageos.tests.customtiles.unit;
import android.app.PendingIntent;
import android.content.Intent;
@@ -25,11 +25,11 @@ import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.MediumTest;
import android.test.suitebuilder.annotation.SmallTest;
import android.widget.RemoteViews;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.app.CustomTile;
+import lineageos.app.LineageContextConstants;
+import lineageos.app.CustomTile;
-import org.cyanogenmod.tests.R;
-import org.cyanogenmod.tests.customtiles.DummySettings;
+import org.lineageos.tests.R;
+import org.lineageos.tests.customtiles.DummySettings;
import java.util.ArrayList;
@@ -40,9 +40,9 @@ public class CustomTileTest extends AndroidTestCase {
@Override
protected void setUp() throws Exception {
super.setUp();
- // Only run this if we support cm status bar service
+ // Only run this if we support lineage status bar service
org.junit.Assume.assumeTrue(mContext.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.STATUSBAR));
+ LineageContextConstants.Features.STATUSBAR));
}
@SmallTest
diff --git a/tests/src/org/lineageos/tests/customtiles/unit/LineageStatusBarManagerTest.java b/tests/src/org/lineageos/tests/customtiles/unit/LineageStatusBarManagerTest.java
index e894462d..cc027479 100644
--- a/tests/src/org/lineageos/tests/customtiles/unit/LineageStatusBarManagerTest.java
+++ b/tests/src/org/lineageos/tests/customtiles/unit/LineageStatusBarManagerTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.customtiles.unit;
+package org.lineageos.tests.customtiles.unit;
import android.app.PendingIntent;
import android.content.ComponentName;
@@ -30,38 +30,38 @@ import android.test.suitebuilder.annotation.SmallTest;
import android.text.TextUtils;
import android.util.Log;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.app.CMStatusBarManager;
-import cyanogenmod.app.CustomTile;
-import cyanogenmod.app.CustomTileListenerService;
-import cyanogenmod.app.ICMStatusBarManager;
-import org.cyanogenmod.tests.R;
+import lineageos.app.LineageContextConstants;
+import lineageos.app.LineageStatusBarManager;
+import lineageos.app.CustomTile;
+import lineageos.app.CustomTileListenerService;
+import lineageos.app.ILineageStatusBarManager;
+import org.lineageos.tests.R;
import java.util.concurrent.CountDownLatch;
-public class CMStatusBarManagerTest extends AndroidTestCase {
- private static final String TAG = CMStatusBarManagerTest.class.getSimpleName();
+public class LineageStatusBarManagerTest extends AndroidTestCase {
+ private static final String TAG = LineageStatusBarManagerTest.class.getSimpleName();
private static final int COUNTDOWN = 1;
- private CMStatusBarManager mCMStatusBarManager;
+ private LineageStatusBarManager mLineageStatusBarManager;
@Override
protected void setUp() throws Exception {
super.setUp();
- // Only run this if we support cm status bar service
+ // Only run this if we support lineage status bar service
org.junit.Assume.assumeTrue(mContext.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.STATUSBAR));
- mCMStatusBarManager = CMStatusBarManager.getInstance(mContext);
+ LineageContextConstants.Features.STATUSBAR));
+ mLineageStatusBarManager = LineageStatusBarManager.getInstance(mContext);
}
@SmallTest
public void testManagerExists() {
- assertNotNull(mCMStatusBarManager);
+ assertNotNull(mLineageStatusBarManager);
}
@SmallTest
public void testManagerServiceIsAvailable() {
- ICMStatusBarManager icmHardwareManagerService = mCMStatusBarManager.getService();
- assertNotNull(icmHardwareManagerService);
+ ILineageStatusBarManager ilineageHardwareManagerService = mLineageStatusBarManager.getService();
+ assertNotNull(ilineageHardwareManagerService);
}
@MediumTest
@@ -115,12 +115,12 @@ public class CMStatusBarManagerTest extends AndroidTestCase {
super.onListenerConnected();
Log.d(TAG, "Connected");
// publish
- mCMStatusBarManager.publishTileAsUser(null, 1337, expectedCustomTile,
+ mLineageStatusBarManager.publishTileAsUser(null, 1337, expectedCustomTile,
expectedUserHandle);
}
@Override
- public void onCustomTilePosted(cyanogenmod.app.StatusBarPanelCustomTile sbc) {
+ public void onCustomTilePosted(lineageos.app.StatusBarPanelCustomTile sbc) {
super.onCustomTilePosted(sbc);
Log.d(TAG, "Posted " + sbc.getCustomTile());
if (TextUtils.equals(expectedCustomTile.label, sbc.getCustomTile().label)) {
@@ -138,7 +138,7 @@ public class CMStatusBarManagerTest extends AndroidTestCase {
throw new AssertionError(e);
}
- mCMStatusBarManager.removeTileAsUser(null, 1337, expectedUserHandle);
+ mLineageStatusBarManager.removeTileAsUser(null, 1337, expectedUserHandle);
unregisterCustomTileListenerService(customTileListenerService);
}
@@ -155,11 +155,11 @@ public class CMStatusBarManagerTest extends AndroidTestCase {
super.onListenerConnected();
Log.d(TAG, "Connected");
// publish as user
- mCMStatusBarManager.publishTile(1338, expectedCustomTile);
+ mLineageStatusBarManager.publishTile(1338, expectedCustomTile);
}
@Override
- public void onCustomTilePosted(cyanogenmod.app.StatusBarPanelCustomTile sbc) {
+ public void onCustomTilePosted(lineageos.app.StatusBarPanelCustomTile sbc) {
super.onCustomTilePosted(sbc);
Log.d(TAG, "Posted " + sbc.getCustomTile());
if (TextUtils.equals(expectedCustomTile.label, sbc.getCustomTile().label)) {
@@ -168,7 +168,7 @@ public class CMStatusBarManagerTest extends AndroidTestCase {
}
@Override
- public void onCustomTileRemoved(cyanogenmod.app.StatusBarPanelCustomTile sbc) {
+ public void onCustomTileRemoved(lineageos.app.StatusBarPanelCustomTile sbc) {
super.onCustomTileRemoved(sbc);
Log.d(TAG, "Removed " + sbc.getCustomTile());
if (TextUtils.equals(expectedCustomTile.label, sbc.getCustomTile().label)) {
@@ -206,7 +206,7 @@ public class CMStatusBarManagerTest extends AndroidTestCase {
+ " custom tile listener service");
customTileListenerService.registerAsSystemService(mContext,
new ComponentName(mContext.getPackageName(),
- CMStatusBarManagerTest.this.getClass().getCanonicalName()),
+ LineageStatusBarManagerTest.this.getClass().getCanonicalName()),
UserHandle.USER_ALL);
} catch (RemoteException e) {
throw new AssertionError(e);
diff --git a/tests/src/org/lineageos/tests/customtiles/unit/StatusBarPanelCustomTileTest.java b/tests/src/org/lineageos/tests/customtiles/unit/StatusBarPanelCustomTileTest.java
index dd11e9b2..3dcc7e2a 100644
--- a/tests/src/org/lineageos/tests/customtiles/unit/StatusBarPanelCustomTileTest.java
+++ b/tests/src/org/lineageos/tests/customtiles/unit/StatusBarPanelCustomTileTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.customtiles.unit;
+package org.lineageos.tests.customtiles.unit;
import android.app.PendingIntent;
import android.content.Intent;
@@ -25,11 +25,11 @@ import android.os.UserHandle;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.MediumTest;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.app.CustomTile;
-import cyanogenmod.app.StatusBarPanelCustomTile;
-import org.cyanogenmod.tests.R;
-import org.cyanogenmod.tests.customtiles.DummySettings;
+import lineageos.app.LineageContextConstants;
+import lineageos.app.CustomTile;
+import lineageos.app.StatusBarPanelCustomTile;
+import org.lineageos.tests.R;
+import org.lineageos.tests.customtiles.DummySettings;
import java.util.ArrayList;
@@ -40,9 +40,9 @@ public class StatusBarPanelCustomTileTest extends AndroidTestCase {
@Override
protected void setUp() throws Exception {
super.setUp();
- // Only run this if we support cm status bar service
+ // Only run this if we support lineage status bar service
org.junit.Assume.assumeTrue(mContext.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.STATUSBAR));
+ LineageContextConstants.Features.STATUSBAR));
}
@SmallTest
diff --git a/tests/src/org/lineageos/tests/externalviews/keyguardexternalviews/KeyguardExternalProviderTest.java b/tests/src/org/lineageos/tests/externalviews/keyguardexternalviews/KeyguardExternalProviderTest.java
index 2bb3a69c..e9e663c8 100644
--- a/tests/src/org/lineageos/tests/externalviews/keyguardexternalviews/KeyguardExternalProviderTest.java
+++ b/tests/src/org/lineageos/tests/externalviews/keyguardexternalviews/KeyguardExternalProviderTest.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.tests.externalviews.keyguardexternalviews;
+package org.lineageos.tests.externalviews.keyguardexternalviews;
import android.content.Context;
import android.content.Intent;
@@ -24,12 +24,12 @@ import android.test.ServiceTestCase;
import android.view.*;
import android.widget.Space;
import android.widget.TextView;
-import cyanogenmod.externalviews.IExternalViewProviderFactory;
-import cyanogenmod.externalviews.IKeyguardExternalViewCallbacks;
-import cyanogenmod.externalviews.IKeyguardExternalViewProvider;
-import cyanogenmod.externalviews.KeyguardExternalViewProviderService;
-import org.cyanogenmod.tests.common.MockIBinderStubForInterface;
-import org.cyanogenmod.tests.common.ThreadServiceTestCase;
+import lineageos.externalviews.IExternalViewProviderFactory;
+import lineageos.externalviews.IKeyguardExternalViewCallbacks;
+import lineageos.externalviews.IKeyguardExternalViewProvider;
+import lineageos.externalviews.KeyguardExternalViewProviderService;
+import org.lineageos.tests.common.MockIBinderStubForInterface;
+import org.lineageos.tests.common.ThreadServiceTestCase;
import org.junit.Assert;
import org.mockito.ArgumentCaptor;
import org.mockito.Mockito;
diff --git a/tests/src/org/lineageos/tests/externalviews/keyguardexternalviews/KeyguardExternalViewTest.java b/tests/src/org/lineageos/tests/externalviews/keyguardexternalviews/KeyguardExternalViewTest.java
index f5567679..4c8896ab 100644
--- a/tests/src/org/lineageos/tests/externalviews/keyguardexternalviews/KeyguardExternalViewTest.java
+++ b/tests/src/org/lineageos/tests/externalviews/keyguardexternalviews/KeyguardExternalViewTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.externalviews.keyguardexternalviews;
+package org.lineageos.tests.externalviews.keyguardexternalviews;
import android.content.ComponentName;
import android.content.Context;
@@ -26,11 +26,11 @@ import android.os.IBinder;
import android.os.RemoteException;
import android.test.AndroidTestCase;
import android.view.WindowManager;
-import cyanogenmod.externalviews.IExternalViewProviderFactory;
-import cyanogenmod.externalviews.IKeyguardExternalViewCallbacks;
-import cyanogenmod.externalviews.IKeyguardExternalViewProvider;
-import cyanogenmod.externalviews.KeyguardExternalView;
-import org.cyanogenmod.tests.common.MockIBinderStubForInterface;
+import lineageos.externalviews.IExternalViewProviderFactory;
+import lineageos.externalviews.IKeyguardExternalViewCallbacks;
+import lineageos.externalviews.IKeyguardExternalViewProvider;
+import lineageos.externalviews.KeyguardExternalView;
+import org.lineageos.tests.common.MockIBinderStubForInterface;
import org.mockito.Mockito;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;
diff --git a/tests/src/org/lineageos/tests/externalviews/keyguardexternalviews/ViewProviderService.java b/tests/src/org/lineageos/tests/externalviews/keyguardexternalviews/ViewProviderService.java
index 7f0f8dd7..6d669025 100644
--- a/tests/src/org/lineageos/tests/externalviews/keyguardexternalviews/ViewProviderService.java
+++ b/tests/src/org/lineageos/tests/externalviews/keyguardexternalviews/ViewProviderService.java
@@ -14,14 +14,14 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.externalviews.keyguardexternalviews;
+package org.lineageos.tests.externalviews.keyguardexternalviews;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Space;
-import cyanogenmod.externalviews.KeyguardExternalViewProviderService;
+import lineageos.externalviews.KeyguardExternalViewProviderService;
import org.mockito.Mockito;
public class ViewProviderService extends KeyguardExternalViewProviderService {
diff --git a/tests/src/org/lineageos/tests/hardware/LineageHardwareTest.java b/tests/src/org/lineageos/tests/hardware/LineageHardwareTest.java
index 9c2c9d82..6d247473 100644
--- a/tests/src/org/lineageos/tests/hardware/LineageHardwareTest.java
+++ b/tests/src/org/lineageos/tests/hardware/LineageHardwareTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.hardware;
+package org.lineageos.tests.hardware;
import android.os.Bundle;
@@ -23,31 +23,31 @@ import android.widget.Toast;
import java.util.Arrays;
import java.util.List;
-import cyanogenmod.hardware.CMHardwareManager;
-import cyanogenmod.hardware.DisplayMode;
+import lineageos.hardware.LineageHardwareManager;
+import lineageos.hardware.DisplayMode;
-import org.cyanogenmod.tests.TestActivity;
+import org.lineageos.tests.TestActivity;
/**
* Created by adnan on 8/31/15.
*/
-public class CMHardwareTest extends TestActivity {
- private CMHardwareManager mHardwareManager;
+public class LineageHardwareTest extends TestActivity {
+ private LineageHardwareManager mHardwareManager;
private static final List FEATURES = Arrays.asList(
- CMHardwareManager.FEATURE_ADAPTIVE_BACKLIGHT,
- CMHardwareManager.FEATURE_COLOR_ENHANCEMENT,
- CMHardwareManager.FEATURE_DISPLAY_COLOR_CALIBRATION,
- CMHardwareManager.FEATURE_DISPLAY_GAMMA_CALIBRATION,
- CMHardwareManager.FEATURE_HIGH_TOUCH_SENSITIVITY,
- CMHardwareManager.FEATURE_KEY_DISABLE,
- CMHardwareManager.FEATURE_LONG_TERM_ORBITS,
- CMHardwareManager.FEATURE_SERIAL_NUMBER,
- CMHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT,
- CMHardwareManager.FEATURE_TOUCH_HOVERING,
- CMHardwareManager.FEATURE_AUTO_CONTRAST,
- CMHardwareManager.FEATURE_DISPLAY_MODES,
- CMHardwareManager.FEATURE_PERSISTENT_STORAGE
+ LineageHardwareManager.FEATURE_ADAPTIVE_BACKLIGHT,
+ LineageHardwareManager.FEATURE_COLOR_ENHANCEMENT,
+ LineageHardwareManager.FEATURE_DISPLAY_COLOR_CALIBRATION,
+ LineageHardwareManager.FEATURE_DISPLAY_GAMMA_CALIBRATION,
+ LineageHardwareManager.FEATURE_HIGH_TOUCH_SENSITIVITY,
+ LineageHardwareManager.FEATURE_KEY_DISABLE,
+ LineageHardwareManager.FEATURE_LONG_TERM_ORBITS,
+ LineageHardwareManager.FEATURE_SERIAL_NUMBER,
+ LineageHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT,
+ LineageHardwareManager.FEATURE_TOUCH_HOVERING,
+ LineageHardwareManager.FEATURE_AUTO_CONTRAST,
+ LineageHardwareManager.FEATURE_DISPLAY_MODES,
+ LineageHardwareManager.FEATURE_PERSISTENT_STORAGE
);
private static final List FEATURE_STRINGS = Arrays.asList(
@@ -67,19 +67,19 @@ public class CMHardwareTest extends TestActivity {
);
private static final List BOOLEAN_FEATURES = Arrays.asList(
- CMHardwareManager.FEATURE_ADAPTIVE_BACKLIGHT,
- CMHardwareManager.FEATURE_COLOR_ENHANCEMENT,
- CMHardwareManager.FEATURE_HIGH_TOUCH_SENSITIVITY,
- CMHardwareManager.FEATURE_KEY_DISABLE,
- CMHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT,
- CMHardwareManager.FEATURE_TOUCH_HOVERING,
- CMHardwareManager.FEATURE_AUTO_CONTRAST
+ LineageHardwareManager.FEATURE_ADAPTIVE_BACKLIGHT,
+ LineageHardwareManager.FEATURE_COLOR_ENHANCEMENT,
+ LineageHardwareManager.FEATURE_HIGH_TOUCH_SENSITIVITY,
+ LineageHardwareManager.FEATURE_KEY_DISABLE,
+ LineageHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT,
+ LineageHardwareManager.FEATURE_TOUCH_HOVERING,
+ LineageHardwareManager.FEATURE_AUTO_CONTRAST
);
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
- mHardwareManager = CMHardwareManager.getInstance(this);
+ mHardwareManager = LineageHardwareManager.getInstance(this);
}
@Override
@@ -93,70 +93,70 @@ public class CMHardwareTest extends TestActivity {
}
private boolean vibratorSupported() {
- if (mHardwareManager.isSupported(CMHardwareManager.FEATURE_VIBRATOR)) {
+ if (mHardwareManager.isSupported(LineageHardwareManager.FEATURE_VIBRATOR)) {
return true;
} else {
- Toast.makeText(CMHardwareTest.this, "Vibrator not supported",
+ Toast.makeText(LineageHardwareTest.this, "Vibrator not supported",
Toast.LENGTH_SHORT).show();
return false;
}
}
private boolean displayColorCalibrationSupported() {
- if (mHardwareManager.isSupported(CMHardwareManager.FEATURE_DISPLAY_COLOR_CALIBRATION)) {
+ if (mHardwareManager.isSupported(LineageHardwareManager.FEATURE_DISPLAY_COLOR_CALIBRATION)) {
return true;
} else {
- Toast.makeText(CMHardwareTest.this, "Display Color Calibration not supported",
+ Toast.makeText(LineageHardwareTest.this, "Display Color Calibration not supported",
Toast.LENGTH_SHORT).show();
return false;
}
}
private boolean ltoSupported() {
- if (mHardwareManager.isSupported(CMHardwareManager.FEATURE_LONG_TERM_ORBITS)) {
+ if (mHardwareManager.isSupported(LineageHardwareManager.FEATURE_LONG_TERM_ORBITS)) {
return true;
} else {
- Toast.makeText(CMHardwareTest.this, "Long Term Orbits not supported",
+ Toast.makeText(LineageHardwareTest.this, "Long Term Orbits not supported",
Toast.LENGTH_SHORT).show();
return false;
}
}
private boolean serialSupported() {
- if (mHardwareManager.isSupported(CMHardwareManager.FEATURE_SERIAL_NUMBER)) {
+ if (mHardwareManager.isSupported(LineageHardwareManager.FEATURE_SERIAL_NUMBER)) {
return true;
} else {
- Toast.makeText(CMHardwareTest.this, "Serial number not supported",
+ Toast.makeText(LineageHardwareTest.this, "Serial number not supported",
Toast.LENGTH_SHORT).show();
return false;
}
}
private boolean uniqueDeviceIdSupported() {
- if (mHardwareManager.isSupported(CMHardwareManager.FEATURE_UNIQUE_DEVICE_ID)) {
+ if (mHardwareManager.isSupported(LineageHardwareManager.FEATURE_UNIQUE_DEVICE_ID)) {
return true;
} else {
- Toast.makeText(CMHardwareTest.this, "Unique device ID not supported",
+ Toast.makeText(LineageHardwareTest.this, "Unique device ID not supported",
Toast.LENGTH_SHORT).show();
return false;
}
}
private boolean displayModesSupported() {
- if (mHardwareManager.isSupported(CMHardwareManager.FEATURE_DISPLAY_MODES)) {
+ if (mHardwareManager.isSupported(LineageHardwareManager.FEATURE_DISPLAY_MODES)) {
return true;
} else {
- Toast.makeText(CMHardwareTest.this, "Display modes not supported",
+ Toast.makeText(LineageHardwareTest.this, "Display modes not supported",
Toast.LENGTH_SHORT).show();
return false;
}
}
private boolean persistentStorageSupported() {
- if (mHardwareManager.isSupported(CMHardwareManager.FEATURE_PERSISTENT_STORAGE)) {
+ if (mHardwareManager.isSupported(LineageHardwareManager.FEATURE_PERSISTENT_STORAGE)) {
return true;
} else {
- Toast.makeText(CMHardwareTest.this, "Persistent storage not supported",
+ Toast.makeText(LineageHardwareTest.this, "Persistent storage not supported",
Toast.LENGTH_SHORT).show();
return false;
}
@@ -165,7 +165,7 @@ public class CMHardwareTest extends TestActivity {
private Test[] mTests = new Test[] {
new Test("Test get supported features") {
public void run() {
- Toast.makeText(CMHardwareTest.this, "Supported features " +
+ Toast.makeText(LineageHardwareTest.this, "Supported features " +
mHardwareManager.getSupportedFeatures(),
Toast.LENGTH_SHORT).show();
}
@@ -184,7 +184,7 @@ public class CMHardwareTest extends TestActivity {
builder.append("Feature " + feature + "\n")
.append("is supported " + supported + "\n");
}
- Toast.makeText(CMHardwareTest.this, "Supported features " +
+ Toast.makeText(LineageHardwareTest.this, "Supported features " +
builder.toString(),
Toast.LENGTH_SHORT).show();
}
@@ -198,7 +198,7 @@ public class CMHardwareTest extends TestActivity {
.append("is enabled " + mHardwareManager.isSupported(feature)
+ "\n");
}
- Toast.makeText(CMHardwareTest.this, "Features " +
+ Toast.makeText(LineageHardwareTest.this, "Features " +
builder.toString(),
Toast.LENGTH_SHORT).show();
}
@@ -207,7 +207,7 @@ public class CMHardwareTest extends TestActivity {
@Override
protected void run() {
if (vibratorSupported()) {
- Toast.makeText(CMHardwareTest.this, "Vibrator intensity " +
+ Toast.makeText(LineageHardwareTest.this, "Vibrator intensity " +
mHardwareManager.getVibratorIntensity(),
Toast.LENGTH_SHORT).show();
}
@@ -217,7 +217,7 @@ public class CMHardwareTest extends TestActivity {
@Override
protected void run() {
if (vibratorSupported()) {
- Toast.makeText(CMHardwareTest.this, "Vibrator default intensity " +
+ Toast.makeText(LineageHardwareTest.this, "Vibrator default intensity " +
mHardwareManager.getVibratorDefaultIntensity(),
Toast.LENGTH_SHORT).show();
}
@@ -227,7 +227,7 @@ public class CMHardwareTest extends TestActivity {
@Override
protected void run() {
if (vibratorSupported()) {
- Toast.makeText(CMHardwareTest.this, "Vibrator max intensity " +
+ Toast.makeText(LineageHardwareTest.this, "Vibrator max intensity " +
mHardwareManager.getVibratorMaxIntensity(),
Toast.LENGTH_SHORT).show();
}
@@ -237,7 +237,7 @@ public class CMHardwareTest extends TestActivity {
@Override
protected void run() {
if (vibratorSupported()) {
- Toast.makeText(CMHardwareTest.this, "Vibrator min intensity " +
+ Toast.makeText(LineageHardwareTest.this, "Vibrator min intensity " +
mHardwareManager.getVibratorMinIntensity(),
Toast.LENGTH_SHORT).show();
}
@@ -247,7 +247,7 @@ public class CMHardwareTest extends TestActivity {
@Override
protected void run() {
if (vibratorSupported()) {
- Toast.makeText(CMHardwareTest.this, "Vibrator min intensity " +
+ Toast.makeText(LineageHardwareTest.this, "Vibrator min intensity " +
mHardwareManager.getVibratorWarningIntensity(),
Toast.LENGTH_SHORT).show();
}
@@ -257,7 +257,7 @@ public class CMHardwareTest extends TestActivity {
@Override
protected void run() {
if (displayColorCalibrationSupported()) {
- Toast.makeText(CMHardwareTest.this, "Display Color Calibration " +
+ Toast.makeText(LineageHardwareTest.this, "Display Color Calibration " +
mHardwareManager.getDisplayColorCalibration(),
Toast.LENGTH_SHORT).show();
}
@@ -267,7 +267,7 @@ public class CMHardwareTest extends TestActivity {
@Override
protected void run() {
if (displayColorCalibrationSupported()) {
- Toast.makeText(CMHardwareTest.this, "Default Display Color Calibration " +
+ Toast.makeText(LineageHardwareTest.this, "Default Display Color Calibration " +
mHardwareManager.getDisplayColorCalibrationDefault(),
Toast.LENGTH_SHORT).show();
}
@@ -277,7 +277,7 @@ public class CMHardwareTest extends TestActivity {
@Override
protected void run() {
if (displayColorCalibrationSupported()) {
- Toast.makeText(CMHardwareTest.this, "Display Color Calibration Max " +
+ Toast.makeText(LineageHardwareTest.this, "Display Color Calibration Max " +
mHardwareManager.getDisplayColorCalibrationMax(),
Toast.LENGTH_SHORT).show();
}
@@ -287,7 +287,7 @@ public class CMHardwareTest extends TestActivity {
@Override
protected void run() {
if (displayColorCalibrationSupported()) {
- Toast.makeText(CMHardwareTest.this, "Display Color Calibration Min " +
+ Toast.makeText(LineageHardwareTest.this, "Display Color Calibration Min " +
mHardwareManager.getDisplayColorCalibrationMin(),
Toast.LENGTH_SHORT).show();
}
@@ -305,7 +305,7 @@ public class CMHardwareTest extends TestActivity {
@Override
protected void run() {
if (ltoSupported()) {
- Toast.makeText(CMHardwareTest.this, "Long Term Orbit Source " +
+ Toast.makeText(LineageHardwareTest.this, "Long Term Orbit Source " +
mHardwareManager.getLtoSource(),
Toast.LENGTH_SHORT).show();
}
@@ -315,7 +315,7 @@ public class CMHardwareTest extends TestActivity {
@Override
protected void run() {
if (ltoSupported()) {
- Toast.makeText(CMHardwareTest.this, "Long Term Orbit Destination " +
+ Toast.makeText(LineageHardwareTest.this, "Long Term Orbit Destination " +
mHardwareManager.getLtoDestination(),
Toast.LENGTH_SHORT).show();
}
@@ -325,7 +325,7 @@ public class CMHardwareTest extends TestActivity {
@Override
protected void run() {
if (ltoSupported()) {
- Toast.makeText(CMHardwareTest.this, "Long Term Orbit Download Interval " +
+ Toast.makeText(LineageHardwareTest.this, "Long Term Orbit Download Interval " +
mHardwareManager.getLtoDownloadInterval(),
Toast.LENGTH_SHORT).show();
}
@@ -335,7 +335,7 @@ public class CMHardwareTest extends TestActivity {
@Override
protected void run() {
if (serialSupported()) {
- Toast.makeText(CMHardwareTest.this, "Serial number " +
+ Toast.makeText(LineageHardwareTest.this, "Serial number " +
mHardwareManager.getSerialNumber(),
Toast.LENGTH_SHORT).show();
}
@@ -345,7 +345,7 @@ public class CMHardwareTest extends TestActivity {
@Override
protected void run() {
if (uniqueDeviceIdSupported()) {
- Toast.makeText(CMHardwareTest.this, "Unique Device ID " +
+ Toast.makeText(LineageHardwareTest.this, "Unique Device ID " +
mHardwareManager.getUniqueDeviceId(),
Toast.LENGTH_SHORT).show();
}
@@ -359,7 +359,7 @@ public class CMHardwareTest extends TestActivity {
for (DisplayMode displayMode : mHardwareManager.getDisplayModes()) {
builder.append("Display mode " + displayMode.name + "\n");
}
- Toast.makeText(CMHardwareTest.this, "Display modes: \n"
+ Toast.makeText(LineageHardwareTest.this, "Display modes: \n"
+ builder.toString(), Toast.LENGTH_SHORT).show();
}
}
@@ -368,7 +368,7 @@ public class CMHardwareTest extends TestActivity {
@Override
protected void run() {
if (displayModesSupported()) {
- Toast.makeText(CMHardwareTest.this, "Default Display Mode " +
+ Toast.makeText(LineageHardwareTest.this, "Default Display Mode " +
mHardwareManager.getCurrentDisplayMode(),
Toast.LENGTH_SHORT).show();
}
@@ -378,7 +378,7 @@ public class CMHardwareTest extends TestActivity {
@Override
protected void run() {
if (displayModesSupported()) {
- Toast.makeText(CMHardwareTest.this, "Default Display Mode " +
+ Toast.makeText(LineageHardwareTest.this, "Default Display Mode " +
mHardwareManager.getCurrentDisplayMode(),
Toast.LENGTH_SHORT).show();
}
diff --git a/tests/src/org/lineageos/tests/hardware/unit/DisplayModeTest.java b/tests/src/org/lineageos/tests/hardware/unit/DisplayModeTest.java
index 4a3e1ef2..01a24771 100644
--- a/tests/src/org/lineageos/tests/hardware/unit/DisplayModeTest.java
+++ b/tests/src/org/lineageos/tests/hardware/unit/DisplayModeTest.java
@@ -14,14 +14,14 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.hardware.unit;
+package org.lineageos.tests.hardware.unit;
import android.os.Parcel;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.hardware.DisplayMode;
+import lineageos.app.LineageContextConstants;
+import lineageos.hardware.DisplayMode;
/**
* Created by adnan on 9/1/15.
@@ -32,7 +32,7 @@ public class DisplayModeTest extends AndroidTestCase {
super.setUp();
// Only run this if we support hardware abstraction
org.junit.Assume.assumeTrue(mContext.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.HARDWARE_ABSTRACTION));
+ LineageContextConstants.Features.HARDWARE_ABSTRACTION));
}
@SmallTest
diff --git a/tests/src/org/lineageos/tests/hardware/unit/LineageHardwareManagerTest.java b/tests/src/org/lineageos/tests/hardware/unit/LineageHardwareManagerTest.java
index f8dfa4e3..01a8145f 100644
--- a/tests/src/org/lineageos/tests/hardware/unit/LineageHardwareManagerTest.java
+++ b/tests/src/org/lineageos/tests/hardware/unit/LineageHardwareManagerTest.java
@@ -14,37 +14,37 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.hardware.unit;
+package org.lineageos.tests.hardware.unit;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.hardware.CMHardwareManager;
-import cyanogenmod.hardware.ICMHardwareService;
+import lineageos.app.LineageContextConstants;
+import lineageos.hardware.LineageHardwareManager;
+import lineageos.hardware.ILineageHardwareService;
/**
* Created by adnan on 9/1/15.
*/
-public class CMHardwareManagerTest extends AndroidTestCase {
- private CMHardwareManager mCMHardwareManager;
+public class LineageHardwareManagerTest extends AndroidTestCase {
+ private LineageHardwareManager mLineageHardwareManager;
@Override
protected void setUp() throws Exception {
super.setUp();
// Only run this if we support hardware abstraction
org.junit.Assume.assumeTrue(mContext.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.HARDWARE_ABSTRACTION));
- mCMHardwareManager = CMHardwareManager.getInstance(mContext);
+ LineageContextConstants.Features.HARDWARE_ABSTRACTION));
+ mLineageHardwareManager = LineageHardwareManager.getInstance(mContext);
}
@SmallTest
public void testManagerExists() {
- assertNotNull(mCMHardwareManager);
+ assertNotNull(mLineageHardwareManager);
}
@SmallTest
public void testManagerServiceIsAvailable() {
- ICMHardwareService icmStatusBarManager = mCMHardwareManager.getService();
- assertNotNull(icmStatusBarManager);
+ ILineageHardwareService ilineageStatusBarManager = mLineageHardwareManager.getService();
+ assertNotNull(ilineageStatusBarManager);
}
}
diff --git a/tests/src/org/lineageos/tests/hardware/unit/LiveDisplayManagerTest.java b/tests/src/org/lineageos/tests/hardware/unit/LiveDisplayManagerTest.java
index 09d74f35..2f0eec9c 100644
--- a/tests/src/org/lineageos/tests/hardware/unit/LiveDisplayManagerTest.java
+++ b/tests/src/org/lineageos/tests/hardware/unit/LiveDisplayManagerTest.java
@@ -1,4 +1,4 @@
-package org.cyanogenmod.tests.hardware.unit;
+package org.lineageos.tests.hardware.unit;
import android.content.Context;
import android.os.PowerManager;
@@ -7,19 +7,19 @@ import android.test.suitebuilder.annotation.SmallTest;
import org.junit.Assume;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.hardware.CMHardwareManager;
-import cyanogenmod.hardware.ILiveDisplayService;
-import cyanogenmod.hardware.LiveDisplayConfig;
-import cyanogenmod.hardware.LiveDisplayManager;
-import cyanogenmod.util.ColorUtils;
+import lineageos.app.LineageContextConstants;
+import lineageos.hardware.LineageHardwareManager;
+import lineageos.hardware.ILiveDisplayService;
+import lineageos.hardware.LiveDisplayConfig;
+import lineageos.hardware.LiveDisplayManager;
+import lineageos.util.ColorUtils;
public class LiveDisplayManagerTest extends AndroidTestCase {
private static final String TAG = "LiveDisplayManagerTest";
private LiveDisplayManager mLiveDisplay;
- private CMHardwareManager mHardware;
+ private LineageHardwareManager mHardware;
private PowerManager mPower;
private PowerManager.WakeLock mWakeLock;
@@ -33,7 +33,7 @@ public class LiveDisplayManagerTest extends AndroidTestCase {
super.setUp();
Assume.assumeTrue(mContext.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.LIVEDISPLAY));
+ LineageContextConstants.Features.LIVEDISPLAY));
mLiveDisplay = LiveDisplayManager.getInstance(mContext);
if (mLiveDisplay.getConfig().hasModeSupport()) {
@@ -41,7 +41,7 @@ public class LiveDisplayManagerTest extends AndroidTestCase {
}
mConfig = mLiveDisplay.getConfig();
- mHardware = CMHardwareManager.getInstance(mContext);
+ mHardware = LineageHardwareManager.getInstance(mContext);
mPower = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
mWakeLock = mPower.newWakeLock(
PowerManager.ACQUIRE_CAUSES_WAKEUP | PowerManager.SCREEN_DIM_WAKE_LOCK, TAG);
@@ -125,15 +125,15 @@ public class LiveDisplayManagerTest extends AndroidTestCase {
public void testOutdoorMode() throws Exception {
Assume.assumeTrue(mConfig.hasFeature(LiveDisplayManager.MODE_OUTDOOR));
- assertTrue(mHardware.isSupported(CMHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT));
+ assertTrue(mHardware.isSupported(LineageHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT));
mLiveDisplay.setMode(LiveDisplayManager.MODE_OUTDOOR);
Thread.sleep(1000);
- assertTrue(mHardware.get(CMHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT));
+ assertTrue(mHardware.get(LineageHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT));
mLiveDisplay.setMode(LiveDisplayManager.MODE_OFF);
Thread.sleep(1000);
- assertFalse(mHardware.get(CMHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT));
+ assertFalse(mHardware.get(LineageHardwareManager.FEATURE_SUNLIGHT_ENHANCEMENT));
}
private void assertColorTemperature(int degK) throws Exception {
diff --git a/tests/src/org/lineageos/tests/hardware/unit/PersistentStorageTest.java b/tests/src/org/lineageos/tests/hardware/unit/PersistentStorageTest.java
index eb58905c..cd576fee 100644
--- a/tests/src/org/lineageos/tests/hardware/unit/PersistentStorageTest.java
+++ b/tests/src/org/lineageos/tests/hardware/unit/PersistentStorageTest.java
@@ -13,13 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.tests.hardware.unit;
+package org.lineageos.tests.hardware.unit;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.hardware.CMHardwareManager;
+import lineageos.app.LineageContextConstants;
+import lineageos.hardware.LineageHardwareManager;
import java.util.Arrays;
import java.util.Random;
@@ -27,15 +27,15 @@ import java.util.UUID;
public class PersistentStorageTest extends AndroidTestCase {
- private CMHardwareManager mHardwareManager;
+ private LineageHardwareManager mHardwareManager;
@Override
protected void setUp() throws Exception {
super.setUp();
// Only run this if we support hardware abstraction
org.junit.Assume.assumeTrue(mContext.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.HARDWARE_ABSTRACTION));
- mHardwareManager = CMHardwareManager.getInstance(mContext);
+ LineageContextConstants.Features.HARDWARE_ABSTRACTION));
+ mHardwareManager = LineageHardwareManager.getInstance(mContext);
}
@SmallTest
@@ -92,7 +92,7 @@ public class PersistentStorageTest extends AndroidTestCase {
@SmallTest
public void testPersistentString() {
- assertTrue(mHardwareManager.isSupported(CMHardwareManager.FEATURE_PERSISTENT_STORAGE));
+ assertTrue(mHardwareManager.isSupported(LineageHardwareManager.FEATURE_PERSISTENT_STORAGE));
String testKey = UUID.randomUUID().toString();
String testString = "IM IN UR STORAGE";
@@ -118,7 +118,7 @@ public class PersistentStorageTest extends AndroidTestCase {
@SmallTest
public void testPersistentInteger() {
- assertTrue(mHardwareManager.isSupported(CMHardwareManager.FEATURE_PERSISTENT_STORAGE));
+ assertTrue(mHardwareManager.isSupported(LineageHardwareManager.FEATURE_PERSISTENT_STORAGE));
String testKey = UUID.randomUUID().toString();
int testInt = 49152;
@@ -138,7 +138,7 @@ public class PersistentStorageTest extends AndroidTestCase {
@SmallTest
public void testPersistentBytes() {
- assertTrue(mHardwareManager.isSupported(CMHardwareManager.FEATURE_PERSISTENT_STORAGE));
+ assertTrue(mHardwareManager.isSupported(LineageHardwareManager.FEATURE_PERSISTENT_STORAGE));
String testKey = UUID.randomUUID().toString();
byte[] testArray = new byte[1024];
diff --git a/tests/src/org/lineageos/tests/hardware/unit/UniqueDeviceIDTest.java b/tests/src/org/lineageos/tests/hardware/unit/UniqueDeviceIDTest.java
index 9a0f13ab..381e97b0 100644
--- a/tests/src/org/lineageos/tests/hardware/unit/UniqueDeviceIDTest.java
+++ b/tests/src/org/lineageos/tests/hardware/unit/UniqueDeviceIDTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.hardware.unit;
+package org.lineageos.tests.hardware.unit;
import android.os.Build;
import android.os.SystemProperties;
@@ -22,28 +22,28 @@ import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
import android.text.TextUtils;
-import cyanogenmod.hardware.CMHardwareManager;
+import lineageos.hardware.LineageHardwareManager;
public class UniqueDeviceIDTest extends AndroidTestCase {
private static final String TAG = UniqueDeviceIDTest.class.getSimpleName();
private static final int MINIMUM_LENGTH = 3;
- private CMHardwareManager mCMHardwareManager;
+ private LineageHardwareManager mLineageHardwareManager;
- //TODO: Use the TYPE declaration from CMHardwareManager public interface in future
+ //TODO: Use the TYPE declaration from LineageHardwareManager public interface in future
private static final int TYPE_MMC0_CID = 0;
@Override
protected void setUp() throws Exception {
super.setUp();
- mCMHardwareManager = CMHardwareManager.getInstance(mContext);
+ mLineageHardwareManager = LineageHardwareManager.getInstance(mContext);
}
@SmallTest
public void testGetSerialNumber() {
- final int feature = CMHardwareManager.FEATURE_SERIAL_NUMBER;
- if (mCMHardwareManager.isSupported(feature)) {
+ final int feature = LineageHardwareManager.FEATURE_SERIAL_NUMBER;
+ if (mLineageHardwareManager.isSupported(feature)) {
String notExpectedSerialNo = SystemProperties.get("ro.serialno");
- String actualSerialNo = mCMHardwareManager.getSerialNumber();
+ String actualSerialNo = mLineageHardwareManager.getSerialNumber();
assertNotNull(actualSerialNo);
assertNotSame(notExpectedSerialNo, actualSerialNo);
}
@@ -51,10 +51,10 @@ public class UniqueDeviceIDTest extends AndroidTestCase {
@SmallTest
public void testGetUniqueDeviceId() {
- final int feature = CMHardwareManager.FEATURE_UNIQUE_DEVICE_ID;
+ final int feature = LineageHardwareManager.FEATURE_UNIQUE_DEVICE_ID;
assertFeatureEnabledOnRetail(feature);
- if (mCMHardwareManager.isSupported(feature)) {
- String uniqueDeviceId = mCMHardwareManager.getUniqueDeviceId();
+ if (mLineageHardwareManager.isSupported(feature)) {
+ String uniqueDeviceId = mLineageHardwareManager.getUniqueDeviceId();
//FIXME: This is based off the default implementation in cyngn/hw, make more robust
assertNotNull(uniqueDeviceId);
assertTrue(uniqueDeviceId.length() >= MINIMUM_LENGTH);
@@ -64,7 +64,7 @@ public class UniqueDeviceIDTest extends AndroidTestCase {
private void assertFeatureEnabledOnRetail(int feature) {
if (TextUtils.equals(Build.TYPE, "user")) {
- assertTrue(mCMHardwareManager.isSupported(feature));
+ assertTrue(mLineageHardwareManager.isSupported(feature));
}
}
diff --git a/tests/src/org/lineageos/tests/livelockscreen/unit/LiveLockScreenInfoBuilderTest.java b/tests/src/org/lineageos/tests/livelockscreen/unit/LiveLockScreenInfoBuilderTest.java
index 31d3df23..1c4f4034 100644
--- a/tests/src/org/lineageos/tests/livelockscreen/unit/LiveLockScreenInfoBuilderTest.java
+++ b/tests/src/org/lineageos/tests/livelockscreen/unit/LiveLockScreenInfoBuilderTest.java
@@ -14,13 +14,13 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.livelockscreen.unit;
+package org.lineageos.tests.livelockscreen.unit;
import android.content.ComponentName;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.app.LiveLockScreenInfo;
+import lineageos.app.LiveLockScreenInfo;
public class LiveLockScreenInfoBuilderTest extends AndroidTestCase {
diff --git a/tests/src/org/lineageos/tests/livelockscreen/unit/LiveLockScreenInfoTest.java b/tests/src/org/lineageos/tests/livelockscreen/unit/LiveLockScreenInfoTest.java
index c77c0a0a..01a1c9bd 100644
--- a/tests/src/org/lineageos/tests/livelockscreen/unit/LiveLockScreenInfoTest.java
+++ b/tests/src/org/lineageos/tests/livelockscreen/unit/LiveLockScreenInfoTest.java
@@ -14,14 +14,14 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.livelockscreen.unit;
+package org.lineageos.tests.livelockscreen.unit;
import android.content.ComponentName;
import android.os.Parcel;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.app.LiveLockScreenInfo;
+import lineageos.app.LiveLockScreenInfo;
public class LiveLockScreenInfoTest extends AndroidTestCase {
diff --git a/tests/src/org/lineageos/tests/livelockscreen/unit/LiveLockScreenManagerTest.java b/tests/src/org/lineageos/tests/livelockscreen/unit/LiveLockScreenManagerTest.java
index 30ddb21a..8923276a 100644
--- a/tests/src/org/lineageos/tests/livelockscreen/unit/LiveLockScreenManagerTest.java
+++ b/tests/src/org/lineageos/tests/livelockscreen/unit/LiveLockScreenManagerTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.livelockscreen.unit;
+package org.lineageos.tests.livelockscreen.unit;
import android.content.Context;
import android.content.pm.PackageManager;
@@ -22,11 +22,11 @@ import android.os.RemoteException;
import android.os.UserHandle;
import android.test.AndroidTestCase;
import android.test.mock.MockPackageManager;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.app.ILiveLockScreenManager;
-import cyanogenmod.app.LiveLockScreenInfo;
-import cyanogenmod.app.LiveLockScreenManager;
-import org.cyanogenmod.tests.common.MockIBinderStubForInterface;
+import lineageos.app.LineageContextConstants;
+import lineageos.app.ILiveLockScreenManager;
+import lineageos.app.LiveLockScreenInfo;
+import lineageos.app.LiveLockScreenManager;
+import org.lineageos.tests.common.MockIBinderStubForInterface;
import org.mockito.Mockito;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;
@@ -44,7 +44,7 @@ public class LiveLockScreenManagerTest extends AndroidTestCase {
PackageManager packageManager = Mockito.mock(MockPackageManager.class);
Mockito.doReturn(true).when(packageManager).hasSystemFeature(
- CMContextConstants.Features.LIVE_LOCK_SCREEN);
+ LineageContextConstants.Features.LIVE_LOCK_SCREEN);
// Something else is initializing the manager
Field f = LiveLockScreenManager.class.getDeclaredField("sInstance");
@@ -63,7 +63,7 @@ public class LiveLockScreenManagerTest extends AndroidTestCase {
Mockito.verify(mMockContext, Mockito.times(1)).getPackageManager();
Mockito.verify(packageManager, Mockito.times(1)).hasSystemFeature(
- Mockito.eq(CMContextConstants.Features.LIVE_LOCK_SCREEN));
+ Mockito.eq(LineageContextConstants.Features.LIVE_LOCK_SCREEN));
assertNotNull (mManager);
}
diff --git a/tests/src/org/lineageos/tests/media/unit/LineageAudioManagerTest.java b/tests/src/org/lineageos/tests/media/unit/LineageAudioManagerTest.java
index 807a5bd0..e35d3c88 100644
--- a/tests/src/org/lineageos/tests/media/unit/LineageAudioManagerTest.java
+++ b/tests/src/org/lineageos/tests/media/unit/LineageAudioManagerTest.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.tests.media.unit;
+package org.lineageos.tests.media.unit;
import android.content.BroadcastReceiver;
import android.content.Context;
@@ -35,25 +35,25 @@ import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.media.AudioSessionInfo;
-import cyanogenmod.media.CMAudioManager;
-import cyanogenmod.media.ICMAudioService;
+import lineageos.app.LineageContextConstants;
+import lineageos.media.AudioSessionInfo;
+import lineageos.media.LineageAudioManager;
+import lineageos.media.ILineageAudioService;
-public class CMAudioManagerTest extends AndroidTestCase {
+public class LineageAudioManagerTest extends AndroidTestCase {
- private static final String TAG = "CMAudioManagerTest";
+ private static final String TAG = "LineageAudioManagerTest";
- private CMAudioManager mCMAudioManager;
+ private LineageAudioManager mLineageAudioManager;
@Override
protected void setUp() throws Exception {
super.setUp();
Assume.assumeTrue(mContext.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.AUDIO));
+ LineageContextConstants.Features.AUDIO));
- mCMAudioManager = CMAudioManager.getInstance(mContext);
+ mLineageAudioManager = LineageAudioManager.getInstance(mContext);
}
/**
@@ -61,7 +61,7 @@ public class CMAudioManagerTest extends AndroidTestCase {
*/
@SmallTest
public void testManagerExists() {
- assertNotNull(mCMAudioManager);
+ assertNotNull(mLineageAudioManager);
}
/**
@@ -69,7 +69,7 @@ public class CMAudioManagerTest extends AndroidTestCase {
*/
@SmallTest
public void testManagerServiceIsAvailable() {
- ICMAudioService service = CMAudioManager.getService();
+ ILineageAudioService service = LineageAudioManager.getService();
assertNotNull(service);
}
@@ -97,7 +97,7 @@ public class CMAudioManagerTest extends AndroidTestCase {
}
/**
- * EXPECT: CMAudioManager.ACTION_AUDIO_SESSIONS_CHANGED should be broadcast when
+ * EXPECT: LineageAudioManager.ACTION_AUDIO_SESSIONS_CHANGED should be broadcast when
* audio sessions are opened and closed.
*
* We register a receiver for the broadcast, create an AudioTrack, and wait to
@@ -107,7 +107,7 @@ public class CMAudioManagerTest extends AndroidTestCase {
@SmallTest
public void testSessionInfoBroadcast() throws Exception {
- IntentFilter filter = new IntentFilter(CMAudioManager.ACTION_AUDIO_SESSIONS_CHANGED);
+ IntentFilter filter = new IntentFilter(LineageAudioManager.ACTION_AUDIO_SESSIONS_CHANGED);
AudioSessionReceiver receiver = new AudioSessionReceiver(2);
mContext.registerReceiver(receiver, filter);
@@ -149,7 +149,7 @@ public class CMAudioManagerTest extends AndroidTestCase {
*/
@SmallTest
public void testSymphonyOfDestruction() throws Exception {
- IntentFilter filter = new IntentFilter(CMAudioManager.ACTION_AUDIO_SESSIONS_CHANGED);
+ IntentFilter filter = new IntentFilter(LineageAudioManager.ACTION_AUDIO_SESSIONS_CHANGED);
AudioSessionReceiver receiver = new AudioSessionReceiver(SESSIONS * 2);
mContext.registerReceiver(receiver, filter);
@@ -202,9 +202,9 @@ public class CMAudioManagerTest extends AndroidTestCase {
public void onReceive(Context context, Intent intent) {
assertNotNull(intent);
- boolean added = intent.getBooleanExtra(CMAudioManager.EXTRA_SESSION_ADDED, false);
+ boolean added = intent.getBooleanExtra(LineageAudioManager.EXTRA_SESSION_ADDED, false);
- AudioSessionInfo info = intent.getParcelableExtra(CMAudioManager.EXTRA_SESSION_INFO);
+ AudioSessionInfo info = intent.getParcelableExtra(LineageAudioManager.EXTRA_SESSION_INFO);
Log.d(TAG, "onReceive: " + info);
assertNotNull(info);
@@ -239,7 +239,7 @@ public class CMAudioManagerTest extends AndroidTestCase {
};
private AudioSessionInfo findAudioSessionInfo(int sessionId) {
- List infos = mCMAudioManager.listAudioSessions(AudioManager.STREAM_MUSIC);
+ List infos = mLineageAudioManager.listAudioSessions(AudioManager.STREAM_MUSIC);
for (AudioSessionInfo info : infos) {
if (info.getSessionId() == sessionId) {
return info;
diff --git a/tests/src/org/lineageos/tests/power/unit/PerfomanceManagerTest.java b/tests/src/org/lineageos/tests/power/unit/PerfomanceManagerTest.java
index 17e24110..4259ef62 100644
--- a/tests/src/org/lineageos/tests/power/unit/PerfomanceManagerTest.java
+++ b/tests/src/org/lineageos/tests/power/unit/PerfomanceManagerTest.java
@@ -13,15 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.tests.power.unit;
+package org.lineageos.tests.power.unit;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.power.IPerformanceManager;
-import cyanogenmod.power.PerformanceManager;
-import cyanogenmod.power.PerformanceProfile;
+import lineageos.app.LineageContextConstants;
+import lineageos.power.IPerformanceManager;
+import lineageos.power.PerformanceManager;
+import lineageos.power.PerformanceProfile;
/**
* Code coverage for public facing {@link PerformanceManager} interfaces.
@@ -31,7 +31,7 @@ import cyanogenmod.power.PerformanceProfile;
public class PerfomanceManagerTest extends AndroidTestCase {
private static final String TAG = PerfomanceManagerTest.class.getSimpleName();
private static final int IMPOSSIBLE_POWER_PROFILE = -1;
- private PerformanceManager mCMPerformanceManager;
+ private PerformanceManager mLineagePerformanceManager;
private PerformanceProfile mSavedPerfProfile;
@Override
@@ -39,32 +39,32 @@ public class PerfomanceManagerTest extends AndroidTestCase {
super.setUp();
// Only run this if we support performance abstraction
org.junit.Assume.assumeTrue(mContext.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.PERFORMANCE));
- mCMPerformanceManager = PerformanceManager.getInstance(mContext);
+ LineageContextConstants.Features.PERFORMANCE));
+ mLineagePerformanceManager = PerformanceManager.getInstance(mContext);
// Save the perf profile for later restore.
- mSavedPerfProfile = mCMPerformanceManager.getPowerProfile(
- mCMPerformanceManager.getPowerProfile());
+ mSavedPerfProfile = mLineagePerformanceManager.getPowerProfile(
+ mLineagePerformanceManager.getPowerProfile());
}
@SmallTest
public void testManagerExists() {
- assertNotNull(mCMPerformanceManager);
+ assertNotNull(mLineagePerformanceManager);
}
@SmallTest
public void testManagerServiceIsAvailable() {
- IPerformanceManager icmStatusBarManager = mCMPerformanceManager.getService();
- assertNotNull(icmStatusBarManager);
+ IPerformanceManager ilineageStatusBarManager = mLineagePerformanceManager.getService();
+ assertNotNull(ilineageStatusBarManager);
}
@SmallTest
public void testPowerProfileCantBeSetIfNoneSupported() {
// Assert that if we attempt to set a power profile if none supported
// then we receive a failed response from the service.
- if (mCMPerformanceManager.getNumberOfProfiles() == 0) {
+ if (mLineagePerformanceManager.getNumberOfProfiles() == 0) {
for (int powerProfile = 0; powerProfile <
PerformanceManager.POSSIBLE_POWER_PROFILES.length; powerProfile++) {
- assertFalse(mCMPerformanceManager.setPowerProfile(powerProfile));
+ assertFalse(mLineagePerformanceManager.setPowerProfile(powerProfile));
}
}
}
@@ -82,15 +82,15 @@ public class PerfomanceManagerTest extends AndroidTestCase {
// TODO: Don't skip powersave. Skipped due to powersave being ignored while device plugged
for (int powerProfile = 1; powerProfile <
PerformanceManager.POSSIBLE_POWER_PROFILES.length; powerProfile++) {
- if (powerProfile < mCMPerformanceManager.getNumberOfProfiles()) {
+ if (powerProfile < mLineagePerformanceManager.getNumberOfProfiles()) {
//It is supported, set it and test if it was set
- if (mCMPerformanceManager.getPowerProfile() != powerProfile) {
- mCMPerformanceManager.setPowerProfile(powerProfile);
+ if (mLineagePerformanceManager.getPowerProfile() != powerProfile) {
+ mLineagePerformanceManager.setPowerProfile(powerProfile);
// Verify that it was set correctly.
- assertEquals(powerProfile, mCMPerformanceManager.getPowerProfile());
+ assertEquals(powerProfile, mLineagePerformanceManager.getPowerProfile());
}
} else {
- assertFalse(mCMPerformanceManager.setPowerProfile(powerProfile));
+ assertFalse(mLineagePerformanceManager.setPowerProfile(powerProfile));
}
}
}
@@ -98,7 +98,7 @@ public class PerfomanceManagerTest extends AndroidTestCase {
@SmallTest
public void testGetPerfProfileHasAppProfiles() {
// No application has power save by default
- assertEquals(false, mCMPerformanceManager.getProfileHasAppProfiles(
+ assertEquals(false, mLineagePerformanceManager.getProfileHasAppProfiles(
PerformanceManager.PROFILE_POWER_SAVE));
}
@@ -106,6 +106,6 @@ public class PerfomanceManagerTest extends AndroidTestCase {
protected void tearDown() throws Exception {
super.tearDown();
// Reset
- mCMPerformanceManager.setPowerProfile(mSavedPerfProfile.getId());
+ mLineagePerformanceManager.setPowerProfile(mSavedPerfProfile.getId());
}
}
diff --git a/tests/src/org/lineageos/tests/profiles/ProfileTest.java b/tests/src/org/lineageos/tests/profiles/ProfileTest.java
index 0d8d0386..1e77538d 100644
--- a/tests/src/org/lineageos/tests/profiles/ProfileTest.java
+++ b/tests/src/org/lineageos/tests/profiles/ProfileTest.java
@@ -14,22 +14,22 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.profiles;
+package org.lineageos.tests.profiles;
import android.media.AudioManager;
import android.os.Bundle;
-import cyanogenmod.app.Profile;
-import cyanogenmod.app.Profile.Type;
+import lineageos.app.Profile;
+import lineageos.app.Profile.Type;
-import cyanogenmod.app.ProfileManager;
-import cyanogenmod.profiles.AirplaneModeSettings;
-import cyanogenmod.profiles.BrightnessSettings;
-import cyanogenmod.profiles.ConnectionSettings;
-import cyanogenmod.profiles.LockSettings;
-import cyanogenmod.profiles.RingModeSettings;
-import cyanogenmod.profiles.StreamSettings;
-import org.cyanogenmod.tests.TestActivity;
+import lineageos.app.ProfileManager;
+import lineageos.profiles.AirplaneModeSettings;
+import lineageos.profiles.BrightnessSettings;
+import lineageos.profiles.ConnectionSettings;
+import lineageos.profiles.LockSettings;
+import lineageos.profiles.RingModeSettings;
+import lineageos.profiles.StreamSettings;
+import org.lineageos.tests.TestActivity;
import java.util.ArrayList;
import java.util.UUID;
diff --git a/tests/src/org/lineageos/tests/profiles/unit/AirplaneModeSettingsTest.java b/tests/src/org/lineageos/tests/profiles/unit/AirplaneModeSettingsTest.java
index d77639bc..25a0fb1e 100644
--- a/tests/src/org/lineageos/tests/profiles/unit/AirplaneModeSettingsTest.java
+++ b/tests/src/org/lineageos/tests/profiles/unit/AirplaneModeSettingsTest.java
@@ -14,11 +14,11 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.profiles.unit;
+package org.lineageos.tests.profiles.unit;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.profiles.AirplaneModeSettings;
+import lineageos.profiles.AirplaneModeSettings;
public class AirplaneModeSettingsTest extends AndroidTestCase {
diff --git a/tests/src/org/lineageos/tests/profiles/unit/BrightnessSettingsTest.java b/tests/src/org/lineageos/tests/profiles/unit/BrightnessSettingsTest.java
index bb725e80..73814d88 100644
--- a/tests/src/org/lineageos/tests/profiles/unit/BrightnessSettingsTest.java
+++ b/tests/src/org/lineageos/tests/profiles/unit/BrightnessSettingsTest.java
@@ -14,11 +14,11 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.profiles.unit;
+package org.lineageos.tests.profiles.unit;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.profiles.BrightnessSettings;
+import lineageos.profiles.BrightnessSettings;
public class BrightnessSettingsTest extends AndroidTestCase {
diff --git a/tests/src/org/lineageos/tests/profiles/unit/ConnectionSettingsTest.java b/tests/src/org/lineageos/tests/profiles/unit/ConnectionSettingsTest.java
index 780c0df9..4564727e 100644
--- a/tests/src/org/lineageos/tests/profiles/unit/ConnectionSettingsTest.java
+++ b/tests/src/org/lineageos/tests/profiles/unit/ConnectionSettingsTest.java
@@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.tests.profiles.unit;
+package org.lineageos.tests.profiles.unit;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.profiles.ConnectionSettings;
+import lineageos.profiles.ConnectionSettings;
public class ConnectionSettingsTest extends AndroidTestCase {
diff --git a/tests/src/org/lineageos/tests/profiles/unit/LockSettingsTest.java b/tests/src/org/lineageos/tests/profiles/unit/LockSettingsTest.java
index 9da3c0f9..f3a47570 100644
--- a/tests/src/org/lineageos/tests/profiles/unit/LockSettingsTest.java
+++ b/tests/src/org/lineageos/tests/profiles/unit/LockSettingsTest.java
@@ -14,12 +14,12 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.profiles.unit;
+package org.lineageos.tests.profiles.unit;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.app.Profile;
-import cyanogenmod.profiles.LockSettings;
+import lineageos.app.Profile;
+import lineageos.profiles.LockSettings;
public class LockSettingsTest extends AndroidTestCase {
diff --git a/tests/src/org/lineageos/tests/profiles/unit/ProfileManagerTest.java b/tests/src/org/lineageos/tests/profiles/unit/ProfileManagerTest.java
index 47b801b5..c507e80b 100644
--- a/tests/src/org/lineageos/tests/profiles/unit/ProfileManagerTest.java
+++ b/tests/src/org/lineageos/tests/profiles/unit/ProfileManagerTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.profiles.unit;
+package org.lineageos.tests.profiles.unit;
import android.content.BroadcastReceiver;
import android.content.Context;
@@ -23,11 +23,11 @@ import android.content.IntentFilter;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
import android.util.Log;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.app.Profile;
-import cyanogenmod.app.ProfileManager;
-import cyanogenmod.app.IProfileManager;
-import cyanogenmod.providers.CMSettings;
+import lineageos.app.LineageContextConstants;
+import lineageos.app.Profile;
+import lineageos.app.ProfileManager;
+import lineageos.app.IProfileManager;
+import lineageos.providers.LineageSettings;
import java.util.Arrays;
import java.util.UUID;
@@ -44,7 +44,7 @@ public class ProfileManagerTest extends AndroidTestCase {
mProfileManager = ProfileManager.getInstance(mContext);
// Only run this if we support profiles service
org.junit.Assume.assumeTrue(mContext.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.PROFILES));
+ LineageContextConstants.Features.PROFILES));
}
@SmallTest
@@ -62,32 +62,32 @@ public class ProfileManagerTest extends AndroidTestCase {
public void testManagerProfileIsEnabled() {
// first enable profiles
final String enabledValue = "1";
- assertTrue(CMSettings.System.putString(getContext().getContentResolver(),
- CMSettings.System.SYSTEM_PROFILES_ENABLED, enabledValue));
+ assertTrue(LineageSettings.System.putString(getContext().getContentResolver(),
+ LineageSettings.System.SYSTEM_PROFILES_ENABLED, enabledValue));
// check that we successfully enabled them via system setting
- assertEquals(enabledValue, CMSettings.System.getString(getContext().getContentResolver(),
- CMSettings.System.SYSTEM_PROFILES_ENABLED));
+ assertEquals(enabledValue, LineageSettings.System.getString(getContext().getContentResolver(),
+ LineageSettings.System.SYSTEM_PROFILES_ENABLED));
// check that profile manger returns true
assertTrue(mProfileManager.isProfilesEnabled());
// now disable the setting
final String disabledValue = "0";
- assertTrue(CMSettings.System.putString(getContext().getContentResolver(),
- CMSettings.System.SYSTEM_PROFILES_ENABLED, disabledValue));
+ assertTrue(LineageSettings.System.putString(getContext().getContentResolver(),
+ LineageSettings.System.SYSTEM_PROFILES_ENABLED, disabledValue));
// check that we successfully disable them via system setting
- assertEquals(disabledValue, CMSettings.System.getString(getContext().getContentResolver(),
- CMSettings.System.SYSTEM_PROFILES_ENABLED));
+ assertEquals(disabledValue, LineageSettings.System.getString(getContext().getContentResolver(),
+ LineageSettings.System.SYSTEM_PROFILES_ENABLED));
assertFalse(mProfileManager.isProfilesEnabled());
}
private void ensureProfilesEnabled() {
final String enabledValue = "1";
- assertTrue(CMSettings.System.putString(getContext().getContentResolver(),
- CMSettings.System.SYSTEM_PROFILES_ENABLED, enabledValue));
+ assertTrue(LineageSettings.System.putString(getContext().getContentResolver(),
+ LineageSettings.System.SYSTEM_PROFILES_ENABLED, enabledValue));
}
@SmallTest
@@ -130,7 +130,7 @@ public class ProfileManagerTest extends AndroidTestCase {
public void testGetProfileNames() {
ensureProfilesEnabled();
String[] expectedProfileNames = new String[5];
- // These defaults are pulled from the default xml in the cm platform resource package
+ // These defaults are pulled from the default xml in the lineage platform resource package
Profile expectedProfile1 = mProfileManager.getProfile(
UUID.fromString("6a181391-12ef-4f43-a701-32b11ed69449"));
Profile expectedProfile2 = mProfileManager.getProfile(
@@ -162,7 +162,7 @@ public class ProfileManagerTest extends AndroidTestCase {
public void testGetProfiles() {
ensureProfilesEnabled();
Profile[] expectedProfiles = new Profile[5];
- // These defaults are pulled from the default xml in the cm platform resource package
+ // These defaults are pulled from the default xml in the lineage platform resource package
Profile expectedProfile1 = mProfileManager.getProfile(
UUID.fromString("6a181391-12ef-4f43-a701-32b11ed69449"));
Profile expectedProfile2 = mProfileManager.getProfile(
diff --git a/tests/src/org/lineageos/tests/profiles/unit/ProfileTest.java b/tests/src/org/lineageos/tests/profiles/unit/ProfileTest.java
index 32c5b1ad..899b0066 100644
--- a/tests/src/org/lineageos/tests/profiles/unit/ProfileTest.java
+++ b/tests/src/org/lineageos/tests/profiles/unit/ProfileTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.profiles.unit;
+package org.lineageos.tests.profiles.unit;
import android.media.AudioManager;
import android.os.Parcel;
@@ -23,14 +23,14 @@ import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.MediumTest;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.app.Profile;
-import cyanogenmod.profiles.AirplaneModeSettings;
-import cyanogenmod.profiles.BrightnessSettings;
-import cyanogenmod.profiles.ConnectionSettings;
-import cyanogenmod.profiles.LockSettings;
-import cyanogenmod.profiles.RingModeSettings;
-import cyanogenmod.profiles.StreamSettings;
+import lineageos.app.LineageContextConstants;
+import lineageos.app.Profile;
+import lineageos.profiles.AirplaneModeSettings;
+import lineageos.profiles.BrightnessSettings;
+import lineageos.profiles.ConnectionSettings;
+import lineageos.profiles.LockSettings;
+import lineageos.profiles.RingModeSettings;
+import lineageos.profiles.StreamSettings;
import java.util.ArrayList;
import java.util.Arrays;
@@ -44,7 +44,7 @@ public class ProfileTest extends AndroidTestCase {
super.setUp();
// Only run this if we support profiles service
org.junit.Assume.assumeTrue(mContext.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.PROFILES));
+ LineageContextConstants.Features.PROFILES));
}
@MediumTest
diff --git a/tests/src/org/lineageos/tests/profiles/unit/RingModeSettingsTest.java b/tests/src/org/lineageos/tests/profiles/unit/RingModeSettingsTest.java
index de2ae932..4c1bfd6e 100644
--- a/tests/src/org/lineageos/tests/profiles/unit/RingModeSettingsTest.java
+++ b/tests/src/org/lineageos/tests/profiles/unit/RingModeSettingsTest.java
@@ -14,11 +14,11 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.profiles.unit;
+package org.lineageos.tests.profiles.unit;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.profiles.RingModeSettings;
+import lineageos.profiles.RingModeSettings;
public class RingModeSettingsTest extends AndroidTestCase {
diff --git a/tests/src/org/lineageos/tests/profiles/unit/StreamSettingsTest.java b/tests/src/org/lineageos/tests/profiles/unit/StreamSettingsTest.java
index 8bf806ba..783d293e 100644
--- a/tests/src/org/lineageos/tests/profiles/unit/StreamSettingsTest.java
+++ b/tests/src/org/lineageos/tests/profiles/unit/StreamSettingsTest.java
@@ -14,12 +14,12 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.profiles.unit;
+package org.lineageos.tests.profiles.unit;
import android.media.AudioManager;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.profiles.StreamSettings;
+import lineageos.profiles.StreamSettings;
public class StreamSettingsTest extends AndroidTestCase {
diff --git a/tests/src/org/lineageos/tests/providers/LineageSettingsTest.java b/tests/src/org/lineageos/tests/providers/LineageSettingsTest.java
index 181af3d7..d6f61e80 100644
--- a/tests/src/org/lineageos/tests/providers/LineageSettingsTest.java
+++ b/tests/src/org/lineageos/tests/providers/LineageSettingsTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.providers;
+package org.lineageos.tests.providers;
import android.content.ContentResolver;
import android.database.ContentObserver;
@@ -24,11 +24,11 @@ import android.os.UserHandle;
import android.provider.Settings;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.MediumTest;
-import cyanogenmod.providers.CMSettings;
+import lineageos.providers.LineageSettings;
-public class CMSettingsTest extends AndroidTestCase{
+public class LineageSettingsTest extends AndroidTestCase{
private ContentResolver mContentResolver;
- private CMSettingsTestObserver mTestObserver;
+ private LineageSettingsTestObserver mTestObserver;
private static boolean sIsOnChangedCalled = false;
private static Uri sExpectedUriChange = null;
@@ -36,7 +36,7 @@ public class CMSettingsTest extends AndroidTestCase{
@Override
public void setUp() {
mContentResolver = getContext().getContentResolver();
- mTestObserver = new CMSettingsTestObserver(null);
+ mTestObserver = new LineageSettingsTestObserver(null);
}
@Override
@@ -46,34 +46,34 @@ public class CMSettingsTest extends AndroidTestCase{
@MediumTest
public void testPutAndGetSystemString() {
- final String key = CMSettings.System.__MAGICAL_TEST_PASSING_ENABLER;
+ final String key = LineageSettings.System.__MAGICAL_TEST_PASSING_ENABLER;
// put
final String expectedValue = "1";
- boolean isPutSuccessful = CMSettings.System.putString(mContentResolver, key, expectedValue);
+ boolean isPutSuccessful = LineageSettings.System.putString(mContentResolver, key, expectedValue);
assertTrue(isPutSuccessful);
// get
- String actualValue = CMSettings.System.getString(mContentResolver, key);
+ String actualValue = LineageSettings.System.getString(mContentResolver, key);
assertEquals(expectedValue, actualValue);
// setup observer
sIsOnChangedCalled = false;
- sExpectedUriChange = CMSettings.System.getUriFor(key);
+ sExpectedUriChange = LineageSettings.System.getUriFor(key);
mContentResolver.registerContentObserver(sExpectedUriChange, false, mTestObserver,
UserHandle.USER_ALL);
// replace
final String expectedReplaceValue = "0";
- isPutSuccessful = CMSettings.System.putString(mContentResolver, key, expectedReplaceValue);
+ isPutSuccessful = LineageSettings.System.putString(mContentResolver, key, expectedReplaceValue);
assertTrue(isPutSuccessful);
// get
- actualValue = CMSettings.System.getString(mContentResolver, key);
+ actualValue = LineageSettings.System.getString(mContentResolver, key);
assertEquals(expectedReplaceValue, actualValue);
// delete to clean up
- int rowsAffected = mContentResolver.delete(CMSettings.System.CONTENT_URI,
+ int rowsAffected = mContentResolver.delete(LineageSettings.System.CONTENT_URI,
Settings.NameValueTable.NAME + " = ?", new String[]{ key });
assertEquals(1, rowsAffected);
@@ -85,34 +85,34 @@ public class CMSettingsTest extends AndroidTestCase{
@MediumTest
public void testPutAndGetSecureString() {
/* TODO: FIXME
- final String key = CMSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER;
+ final String key = LineageSettings.Secure.__MAGICAL_TEST_PASSING_ENABLER;
// put
final String expectedValue = "0";
- boolean isPutSuccessful = CMSettings.Secure.putString(mContentResolver, key, expectedValue);
+ boolean isPutSuccessful = LineageSettings.Secure.putString(mContentResolver, key, expectedValue);
assertTrue(isPutSuccessful);
// get
- String actualValue = CMSettings.Secure.getString(mContentResolver, key);
+ String actualValue = LineageSettings.Secure.getString(mContentResolver, key);
assertEquals(expectedValue, actualValue);
// setup observer
sIsOnChangedCalled = false;
- sExpectedUriChange = CMSettings.Secure.getUriFor(key);
+ sExpectedUriChange = LineageSettings.Secure.getUriFor(key);
mContentResolver.registerContentObserver(sExpectedUriChange, false, mTestObserver,
UserHandle.USER_ALL);
// replace
final String expectedReplaceValue = "1";
- isPutSuccessful = CMSettings.Secure.putString(mContentResolver, key, expectedReplaceValue);
+ isPutSuccessful = LineageSettings.Secure.putString(mContentResolver, key, expectedReplaceValue);
assertTrue(isPutSuccessful);
// get
- actualValue = CMSettings.Secure.getString(mContentResolver, key);
+ actualValue = LineageSettings.Secure.getString(mContentResolver, key);
assertEquals(expectedReplaceValue, actualValue);
// delete to clean up
- int rowsAffected = mContentResolver.delete(CMSettings.Secure.CONTENT_URI,
+ int rowsAffected = mContentResolver.delete(LineageSettings.Secure.CONTENT_URI,
Settings.NameValueTable.NAME + " = ?", new String[]{ key });
assertEquals(1, rowsAffected);
@@ -127,30 +127,30 @@ public class CMSettingsTest extends AndroidTestCase{
// put
final String expectedValue = "globalTestValue1";
- boolean isPutSuccessful = CMSettings.Global.putString(mContentResolver, key, expectedValue);
+ boolean isPutSuccessful = LineageSettings.Global.putString(mContentResolver, key, expectedValue);
assertTrue(isPutSuccessful);
// get
- String actualValue = CMSettings.Global.getString(mContentResolver, key);
+ String actualValue = LineageSettings.Global.getString(mContentResolver, key);
assertEquals(expectedValue, actualValue);
// setup observer
sIsOnChangedCalled = false;
- sExpectedUriChange = CMSettings.Global.getUriFor(key);
+ sExpectedUriChange = LineageSettings.Global.getUriFor(key);
mContentResolver.registerContentObserver(sExpectedUriChange, false, mTestObserver,
UserHandle.USER_OWNER);
// replace
final String expectedReplaceValue = "globalTestValue2";
- isPutSuccessful = CMSettings.Global.putString(mContentResolver, key, expectedReplaceValue);
+ isPutSuccessful = LineageSettings.Global.putString(mContentResolver, key, expectedReplaceValue);
assertTrue(isPutSuccessful);
// get
- actualValue = CMSettings.Global.getString(mContentResolver, key);
+ actualValue = LineageSettings.Global.getString(mContentResolver, key);
assertEquals(expectedReplaceValue, actualValue);
// delete to clean up
- int rowsAffected = mContentResolver.delete(CMSettings.Global.CONTENT_URI,
+ int rowsAffected = mContentResolver.delete(LineageSettings.Global.CONTENT_URI,
Settings.NameValueTable.NAME + " = ?", new String[]{ key });
assertEquals(1, rowsAffected);
@@ -159,9 +159,9 @@ public class CMSettingsTest extends AndroidTestCase{
}
}
- private class CMSettingsTestObserver extends ContentObserver {
+ private class LineageSettingsTestObserver extends ContentObserver {
- public CMSettingsTestObserver(Handler handler) {
+ public LineageSettingsTestObserver(Handler handler) {
super(handler);
}
diff --git a/tests/src/org/lineageos/tests/settings/LineagePartnerInterfaceTest.java b/tests/src/org/lineageos/tests/settings/LineagePartnerInterfaceTest.java
index 72f7eec1..49462792 100644
--- a/tests/src/org/lineageos/tests/settings/LineagePartnerInterfaceTest.java
+++ b/tests/src/org/lineageos/tests/settings/LineagePartnerInterfaceTest.java
@@ -1,12 +1,12 @@
-package org.cyanogenmod.tests.settings;
+package org.lineageos.tests.settings;
-import org.cyanogenmod.tests.TestActivity;
-import cyanogenmod.app.PartnerInterface;
+import org.lineageos.tests.TestActivity;
+import lineageos.app.PartnerInterface;
/**
- * Tests functionality added in {@link cyanogenmod.app.PartnerInterface}
+ * Tests functionality added in {@link lineageos.app.PartnerInterface}
*/
-public class CMPartnerInterfaceTest extends TestActivity {
+public class LineagePartnerInterfaceTest extends TestActivity {
// Zen Mode to 15 minutes
private static final long ZEN_MODE_DURATION_15_MINUTES_MS = 15 * 60000;
diff --git a/tests/src/org/lineageos/tests/settings/unit/LineagePartnerInterfaceTest.java b/tests/src/org/lineageos/tests/settings/unit/LineagePartnerInterfaceTest.java
index d81a6ac6..9d693c83 100644
--- a/tests/src/org/lineageos/tests/settings/unit/LineagePartnerInterfaceTest.java
+++ b/tests/src/org/lineageos/tests/settings/unit/LineagePartnerInterfaceTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.settings.unit;
+package org.lineageos.tests.settings.unit;
import android.app.INotificationManager;
import android.content.Context;
@@ -35,17 +35,17 @@ import android.provider.Settings;
import android.text.format.DateUtils;
import android.util.Log;
-import cyanogenmod.app.CMContextConstants;
-import cyanogenmod.app.PartnerInterface;
+import lineageos.app.LineageContextConstants;
+import lineageos.app.PartnerInterface;
import java.util.List;
/**
* Unit test for PartnerInterface
*/
-public class CMPartnerInterfaceTest extends AndroidTestCase {
+public class LineagePartnerInterfaceTest extends AndroidTestCase {
- private static final String TAG = "CMPartnerInterfaceTest";
+ private static final String TAG = "LineagePartnerInterfaceTest";
private PartnerInterface mPartnerInterface;
@@ -54,7 +54,7 @@ public class CMPartnerInterfaceTest extends AndroidTestCase {
super.setUp();
// Only run this if we support partner interfaces
org.junit.Assume.assumeTrue(mContext.getPackageManager().hasSystemFeature(
- CMContextConstants.Features.PARTNER));
+ LineageContextConstants.Features.PARTNER));
mPartnerInterface = PartnerInterface.getInstance(getContext());
setupAirplaneModeTests();
@@ -221,7 +221,7 @@ public class CMPartnerInterfaceTest extends AndroidTestCase {
if (bufferSize != AudioRecord.ERROR_BAD_VALUE) {
AudioRecord recorder = new AudioRecord(
- cyanogenmod.media.MediaRecorder.AudioSource.HOTWORD,
+ lineageos.media.MediaRecorder.AudioSource.HOTWORD,
rate, channelConfig, audioFormat, bufferSize);
if (recorder.getState() == AudioRecord.STATE_INITIALIZED)
diff --git a/tests/src/org/lineageos/tests/telephony/LineageTelephonyTest.java b/tests/src/org/lineageos/tests/telephony/LineageTelephonyTest.java
index 1f184f72..76a508ee 100644
--- a/tests/src/org/lineageos/tests/telephony/LineageTelephonyTest.java
+++ b/tests/src/org/lineageos/tests/telephony/LineageTelephonyTest.java
@@ -1,15 +1,15 @@
-package org.cyanogenmod.tests.telephony;
+package org.lineageos.tests.telephony;
import android.telephony.SubscriptionManager;
import android.widget.Toast;
-import org.cyanogenmod.tests.TestActivity;
+import org.lineageos.tests.TestActivity;
-import cyanogenmod.app.CMTelephonyManager;
+import lineageos.app.LineageTelephonyManager;
/**
* Created by adnan on 8/6/15.
*/
-public class CMTelephonyTest extends TestActivity {
+public class LineageTelephonyTest extends TestActivity {
@Override
protected String tag() {
return null;
@@ -23,77 +23,77 @@ public class CMTelephonyTest extends TestActivity {
private Test[] mTests = new Test[] {
new Test("test retreive list of subscription information") {
public void run() {
- CMTelephonyManager cmTelephonyManager =
- CMTelephonyManager.getInstance(CMTelephonyTest.this);
- Toast.makeText(CMTelephonyTest.this, "Test retrieve info "
- + cmTelephonyManager.getSubInformation().toString(),
+ LineageTelephonyManager lineageTelephonyManager =
+ LineageTelephonyManager.getInstance(LineageTelephonyTest.this);
+ Toast.makeText(LineageTelephonyTest.this, "Test retrieve info "
+ + lineageTelephonyManager.getSubInformation().toString(),
Toast.LENGTH_SHORT).show();
}
},
new Test("test is default subscription active") {
public void run() {
- CMTelephonyManager cmTelephonyManager =
- CMTelephonyManager.getInstance(CMTelephonyTest.this);
- Toast.makeText(CMTelephonyTest.this, "Test default sub active "
- + cmTelephonyManager.isSubActive(
+ LineageTelephonyManager lineageTelephonyManager =
+ LineageTelephonyManager.getInstance(LineageTelephonyTest.this);
+ Toast.makeText(LineageTelephonyTest.this, "Test default sub active "
+ + lineageTelephonyManager.isSubActive(
SubscriptionManager.getDefaultSubscriptionId()),
Toast.LENGTH_SHORT).show();
}
},
new Test("test setSubState on default subscription") {
public void run() {
- CMTelephonyManager cmTelephonyManager =
- CMTelephonyManager.getInstance(CMTelephonyTest.this);
- cmTelephonyManager.setSubState(SubscriptionManager.getDefaultSubscriptionId(), true);
+ LineageTelephonyManager lineageTelephonyManager =
+ LineageTelephonyManager.getInstance(LineageTelephonyTest.this);
+ lineageTelephonyManager.setSubState(SubscriptionManager.getDefaultSubscriptionId(), true);
}
},
new Test("test is data enabled on default sub") {
public void run() {
- CMTelephonyManager cmTelephonyManager =
- CMTelephonyManager.getInstance(CMTelephonyTest.this);
- Toast.makeText(CMTelephonyTest.this, "Test default sub data "
- + cmTelephonyManager.isDataConnectionSelectedOnSub(
+ LineageTelephonyManager lineageTelephonyManager =
+ LineageTelephonyManager.getInstance(LineageTelephonyTest.this);
+ Toast.makeText(LineageTelephonyTest.this, "Test default sub data "
+ + lineageTelephonyManager.isDataConnectionSelectedOnSub(
SubscriptionManager.getDefaultSubscriptionId()),
Toast.LENGTH_SHORT).show();
}
},
new Test("test is data enabled") {
public void run() {
- CMTelephonyManager cmTelephonyManager =
- CMTelephonyManager.getInstance(CMTelephonyTest.this);
- Toast.makeText(CMTelephonyTest.this, "Test data enabled "
- + cmTelephonyManager.isDataConnectionEnabled(),
+ LineageTelephonyManager lineageTelephonyManager =
+ LineageTelephonyManager.getInstance(LineageTelephonyTest.this);
+ Toast.makeText(LineageTelephonyTest.this, "Test data enabled "
+ + lineageTelephonyManager.isDataConnectionEnabled(),
Toast.LENGTH_SHORT).show();
}
},
new Test("test setDataConnectionState") {
public void run() {
- CMTelephonyManager cmTelephonyManager =
- CMTelephonyManager.getInstance(CMTelephonyTest.this);
- cmTelephonyManager.setDataConnectionState(true);
+ LineageTelephonyManager lineageTelephonyManager =
+ LineageTelephonyManager.getInstance(LineageTelephonyTest.this);
+ lineageTelephonyManager.setDataConnectionState(true);
}
},
new Test("test setDataConnectionSelectedOnSub") {
public void run() {
- CMTelephonyManager cmTelephonyManager =
- CMTelephonyManager.getInstance(CMTelephonyTest.this);
- cmTelephonyManager.setDataConnectionSelectedOnSub(
+ LineageTelephonyManager lineageTelephonyManager =
+ LineageTelephonyManager.getInstance(LineageTelephonyTest.this);
+ lineageTelephonyManager.setDataConnectionSelectedOnSub(
SubscriptionManager.getDefaultSubscriptionId());
}
},
new Test("test setDefaultPhoneSub") {
public void run() {
- CMTelephonyManager cmTelephonyManager =
- CMTelephonyManager.getInstance(CMTelephonyTest.this);
- cmTelephonyManager.setDefaultPhoneSub(
+ LineageTelephonyManager lineageTelephonyManager =
+ LineageTelephonyManager.getInstance(LineageTelephonyTest.this);
+ lineageTelephonyManager.setDefaultPhoneSub(
SubscriptionManager.getDefaultSubscriptionId());
}
},
new Test("test setDefaultSmsSub") {
public void run() {
- CMTelephonyManager cmTelephonyManager =
- CMTelephonyManager.getInstance(CMTelephonyTest.this);
- cmTelephonyManager.setDefaultSmsSub(
+ LineageTelephonyManager lineageTelephonyManager =
+ LineageTelephonyManager.getInstance(LineageTelephonyTest.this);
+ lineageTelephonyManager.setDefaultSmsSub(
SubscriptionManager.getDefaultSubscriptionId());
}
},
diff --git a/tests/src/org/lineageos/tests/themes/unit/ThemeChangeRequestBuilderTest.java b/tests/src/org/lineageos/tests/themes/unit/ThemeChangeRequestBuilderTest.java
index ce796d2e..1c972ef5 100644
--- a/tests/src/org/lineageos/tests/themes/unit/ThemeChangeRequestBuilderTest.java
+++ b/tests/src/org/lineageos/tests/themes/unit/ThemeChangeRequestBuilderTest.java
@@ -14,13 +14,13 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.themes.unit;
+package org.lineageos.tests.themes.unit;
import android.content.res.ThemeConfig;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.themes.ThemeChangeRequest;
+import lineageos.themes.ThemeChangeRequest;
import java.util.HashMap;
import java.util.Map;
diff --git a/tests/src/org/lineageos/tests/themes/unit/ThemeChangeRequestTest.java b/tests/src/org/lineageos/tests/themes/unit/ThemeChangeRequestTest.java
index a891b7f1..3355ca84 100644
--- a/tests/src/org/lineageos/tests/themes/unit/ThemeChangeRequestTest.java
+++ b/tests/src/org/lineageos/tests/themes/unit/ThemeChangeRequestTest.java
@@ -13,14 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.tests.themes.unit;
+package org.lineageos.tests.themes.unit;
import android.os.Parcel;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.themes.ThemeChangeRequest;
+import lineageos.themes.ThemeChangeRequest;
import java.util.HashMap;
import java.util.Map;
diff --git a/tests/src/org/lineageos/tests/themes/unit/ThemeManagerTest.java b/tests/src/org/lineageos/tests/themes/unit/ThemeManagerTest.java
index bae76640..f909cdd2 100644
--- a/tests/src/org/lineageos/tests/themes/unit/ThemeManagerTest.java
+++ b/tests/src/org/lineageos/tests/themes/unit/ThemeManagerTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.themes.unit;
+package org.lineageos.tests.themes.unit;
import android.content.ContentResolver;
import android.content.Context;
@@ -26,12 +26,12 @@ import android.test.suitebuilder.annotation.SmallTest;
import android.text.TextUtils;
import android.util.Log;
-import cyanogenmod.providers.CMSettings;
-import cyanogenmod.providers.ThemesContract;
-import cyanogenmod.themes.IThemeService;
-import cyanogenmod.themes.ThemeChangeRequest;
-import cyanogenmod.themes.ThemeManager;
-import cyanogenmod.themes.ThemeManager.ThemeChangeListener;
+import lineageos.providers.LineageSettings;
+import lineageos.providers.ThemesContract;
+import lineageos.themes.IThemeService;
+import lineageos.themes.ThemeChangeRequest;
+import lineageos.themes.ThemeManager;
+import lineageos.themes.ThemeManager.ThemeChangeListener;
import org.mockito.Mockito;
@@ -78,8 +78,8 @@ public class ThemeManagerTest extends AndroidTestCase {
@SmallTest
public void testManagerServiceIsAvailable() {
- IThemeService icmStatusBarManager = mThemeManager.getService();
- assertNotNull(icmStatusBarManager);
+ IThemeService ilineageStatusBarManager = mThemeManager.getService();
+ assertNotNull(ilineageStatusBarManager);
}
@SmallTest
@@ -610,8 +610,8 @@ public class ThemeManagerTest extends AndroidTestCase {
}
private static String getDefaultThemePackageName(Context context) {
- final String defaultThemePkg = CMSettings.Secure.getString(context.getContentResolver(),
- CMSettings.Secure.DEFAULT_THEME_PACKAGE);
+ final String defaultThemePkg = LineageSettings.Secure.getString(context.getContentResolver(),
+ LineageSettings.Secure.DEFAULT_THEME_PACKAGE);
if (!TextUtils.isEmpty(defaultThemePkg)) {
PackageManager pm = context.getPackageManager();
try {
diff --git a/tests/src/org/lineageos/tests/themes/unit/ThemesContractTests.java b/tests/src/org/lineageos/tests/themes/unit/ThemesContractTests.java
index 1b0e0c26..480870be 100644
--- a/tests/src/org/lineageos/tests/themes/unit/ThemesContractTests.java
+++ b/tests/src/org/lineageos/tests/themes/unit/ThemesContractTests.java
@@ -14,11 +14,11 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.themes.unit;
+package org.lineageos.tests.themes.unit;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.providers.ThemesContract;
+import lineageos.providers.ThemesContract;
public class ThemesContractTests extends AndroidTestCase {
private static final String TAG = ThemesContract.class.getSimpleName();
diff --git a/tests/src/org/lineageos/tests/util/ColorUtilTest.java b/tests/src/org/lineageos/tests/util/ColorUtilTest.java
index 56e5a2a7..9ce91f96 100644
--- a/tests/src/org/lineageos/tests/util/ColorUtilTest.java
+++ b/tests/src/org/lineageos/tests/util/ColorUtilTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.util;
+package org.lineageos.tests.util;
import android.graphics.Bitmap;
import android.graphics.Canvas;
@@ -23,7 +23,7 @@ import android.graphics.Paint;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.ColorDrawable;
import android.test.AndroidTestCase;
-import cyanogenmod.util.ColorUtils;
+import lineageos.util.ColorUtils;
import org.mockito.Mockito;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;
diff --git a/tests/src/org/lineageos/tests/versioning/VersioningTest.java b/tests/src/org/lineageos/tests/versioning/VersioningTest.java
index 69f928f7..9cbf2752 100644
--- a/tests/src/org/lineageos/tests/versioning/VersioningTest.java
+++ b/tests/src/org/lineageos/tests/versioning/VersioningTest.java
@@ -14,12 +14,12 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.versioning;
+package org.lineageos.tests.versioning;
import android.widget.Toast;
-import cyanogenmod.os.Build;
+import lineageos.os.Build;
-import org.cyanogenmod.tests.TestActivity;
+import org.lineageos.tests.TestActivity;
public class VersioningTest extends TestActivity {
@Override
@@ -36,23 +36,23 @@ public class VersioningTest extends TestActivity {
new Test("test retrieve version") {
public void run() {
Toast.makeText(VersioningTest.this,
- "Current API version is " + Build.CM_VERSION.SDK_INT + " which is "
- + Build.getNameForSDKInt(Build.CM_VERSION.SDK_INT),
+ "Current API version is " + Build.LINEAGE_VERSION.SDK_INT + " which is "
+ + Build.getNameForSDKInt(Build.LINEAGE_VERSION.SDK_INT),
Toast.LENGTH_SHORT).show();
}
},
new Test("test target version larger") {
public void run() {
- int currentapiVersion = Build.CM_VERSION.SDK_INT;
- if (currentapiVersion >= Build.CM_VERSION_CODES.APRICOT){
+ int currentapiVersion = Build.LINEAGE_VERSION.SDK_INT;
+ if (currentapiVersion >= Build.LINEAGE_VERSION_CODES.APRICOT){
Toast.makeText(VersioningTest.this,
"Current API version is greater or equal to "
- + Build.getNameForSDKInt(Build.CM_VERSION_CODES.APRICOT),
+ + Build.getNameForSDKInt(Build.LINEAGE_VERSION_CODES.APRICOT),
Toast.LENGTH_LONG).show();
} else{
Toast.makeText(VersioningTest.this,
"Current API version is below target SKD version "
- + Build.CM_VERSION_CODES.APRICOT,
+ + Build.LINEAGE_VERSION_CODES.APRICOT,
Toast.LENGTH_SHORT).show();
}
}
diff --git a/tests/src/org/lineageos/tests/versioning/unit/BinderTransactionTest.java b/tests/src/org/lineageos/tests/versioning/unit/BinderTransactionTest.java
index a7403cab..47032bd1 100644
--- a/tests/src/org/lineageos/tests/versioning/unit/BinderTransactionTest.java
+++ b/tests/src/org/lineageos/tests/versioning/unit/BinderTransactionTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.versioning.unit;
+package org.lineageos.tests.versioning.unit;
import android.content.Context;
import android.os.Binder;
@@ -23,10 +23,10 @@ import android.test.suitebuilder.annotation.LargeTest;
import android.test.suitebuilder.annotation.SmallTest;
import android.util.Log;
import android.util.Pair;
-import org.cyanogenmod.tests.CyanogenModTestApplication;
-import org.cyanogenmod.tests.versioning.unit.apiv2.ApiV2PriorReleaseInterfaces;
-import org.cyanogenmod.tests.versioning.unit.apiv4.ApiV4PriorReleaseInterfaces;
-import org.cyanogenmod.tests.versioning.unit.apiv5.ApiV5PriorReleaseInterfaces;
+import org.lineageos.tests.LineageOSTestApplication;
+import org.lineageos.tests.versioning.unit.apiv2.ApiV2PriorReleaseInterfaces;
+import org.lineageos.tests.versioning.unit.apiv4.ApiV4PriorReleaseInterfaces;
+import org.lineageos.tests.versioning.unit.apiv5.ApiV5PriorReleaseInterfaces;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -65,7 +65,7 @@ import java.util.regex.Pattern;
public class BinderTransactionTest extends AndroidTestCase {
private static final String TAG = BinderTransactionTest.class.getSimpleName();
private static final String STUB_SUFFIX = "$Stub";
- private static final String CYANOGENMOD_NAMESPACE = "cyanogenmod";
+ private static final String LINEAGEOS_NAMESPACE = "lineageos";
private static final String TRANSACTION_PREFIX = "TRANSACTION_";
private static final int NOT_FROM_PRIOR_RELEASE = -1;
@@ -95,8 +95,8 @@ public class BinderTransactionTest extends AndroidTestCase {
private static void doSetup() {
mKnownSdkClasses = MagicalDexHelper.getLoadedClasses(
- CyanogenModTestApplication.getStaticApplicationContext(), CYANOGENMOD_NAMESPACE);
- sContext = CyanogenModTestApplication.getStaticApplicationContext();
+ LineageOSTestApplication.getStaticApplicationContext(), LINEAGEOS_NAMESPACE);
+ sContext = LineageOSTestApplication.getStaticApplicationContext();
addInterfaces(ApiV2PriorReleaseInterfaces.getInterfaces());
addInterfaces(ApiV4PriorReleaseInterfaces.getInterfaces());
addInterfaces(ApiV5PriorReleaseInterfaces.getInterfaces());
@@ -125,7 +125,7 @@ public class BinderTransactionTest extends AndroidTestCase {
for (String sClazz : mKnownSdkClasses) {
if (sClazz.endsWith(STUB_SUFFIX)) {
try {
- Class clazz = MagicalDexHelper.loadClassForNameSpace(CyanogenModTestApplication
+ Class clazz = MagicalDexHelper.loadClassForNameSpace(LineageOSTestApplication
.getStaticApplicationContext(), sClazz);
Field[] fields = clazz.getDeclaredFields();
Pattern pattern = Pattern.compile("\\.([\\w]+)\\$");
diff --git a/tests/src/org/lineageos/tests/versioning/unit/BuildTest.java b/tests/src/org/lineageos/tests/versioning/unit/BuildTest.java
index 1922e953..02bdf9a9 100644
--- a/tests/src/org/lineageos/tests/versioning/unit/BuildTest.java
+++ b/tests/src/org/lineageos/tests/versioning/unit/BuildTest.java
@@ -14,13 +14,13 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.versioning.unit;
+package org.lineageos.tests.versioning.unit;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.os.Build;
+import lineageos.os.Build;
import android.test.AndroidTestCase;
-import cyanogenmod.os.Concierge;
+import lineageos.os.Concierge;
/**
* Created by adnan on 7/14/15.
@@ -34,17 +34,17 @@ public class BuildTest extends AndroidTestCase {
@SmallTest
public void testFetchSdkApiLevelExists() {
- assertNotNull(Build.CM_VERSION.SDK_INT);
+ assertNotNull(Build.LINEAGE_VERSION.SDK_INT);
}
@SmallTest
public void testSdkApiLevelCurrent() {
- assertEquals(Concierge.PARCELABLE_VERSION, Build.CM_VERSION.SDK_INT);
+ assertEquals(Concierge.PARCELABLE_VERSION, Build.LINEAGE_VERSION.SDK_INT);
}
@SmallTest
public void testSdkApiLevelCanMatch() {
- String apiName = Build.getNameForSDKInt(Build.CM_VERSION.SDK_INT);
+ String apiName = Build.getNameForSDKInt(Build.LINEAGE_VERSION.SDK_INT);
assertNotNull(apiName);
assertEquals(Build.getNameForSDKInt(Concierge.PARCELABLE_VERSION), apiName);
}
@@ -52,7 +52,7 @@ public class BuildTest extends AndroidTestCase {
@SmallTest
public void testSdkApiLevelSkippedIfGreaterThanAllowed() {
int i = 0;
- if (Build.CM_VERSION.SDK_INT > Concierge.PARCELABLE_VERSION + 1) {
+ if (Build.LINEAGE_VERSION.SDK_INT > Concierge.PARCELABLE_VERSION + 1) {
i++;
}
assertEquals(0, i);
diff --git a/tests/src/org/lineageos/tests/versioning/unit/ClassPathException.java b/tests/src/org/lineageos/tests/versioning/unit/ClassPathException.java
index 3c3e6257..7acfc640 100644
--- a/tests/src/org/lineageos/tests/versioning/unit/ClassPathException.java
+++ b/tests/src/org/lineageos/tests/versioning/unit/ClassPathException.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.cyanogenmod.tests.versioning.unit;
+package org.lineageos.tests.versioning.unit;
/**
* Created by Adnan on 9/25/15.
diff --git a/tests/src/org/lineageos/tests/versioning/unit/ClassPathTest.java b/tests/src/org/lineageos/tests/versioning/unit/ClassPathTest.java
index 481ae7b1..b5c041ed 100644
--- a/tests/src/org/lineageos/tests/versioning/unit/ClassPathTest.java
+++ b/tests/src/org/lineageos/tests/versioning/unit/ClassPathTest.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.versioning.unit;
+package org.lineageos.tests.versioning.unit;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.LargeTest;
@@ -31,7 +31,7 @@ import java.util.Enumeration;
*/
public class ClassPathTest extends AndroidTestCase {
- private static final String CYANOGENMOD_NAMESPACE = "cyanogenmod";
+ private static final String LINEAGEOS_NAMESPACE = "lineageos";
private static final String PATH_TO_SYSTEM_FRAMEWORK = "/system/framework";
private ArrayList mKnownSdkClasses;
@@ -39,7 +39,7 @@ public class ClassPathTest extends AndroidTestCase {
@Override
protected void setUp() throws Exception {
super.setUp();
- mKnownSdkClasses = MagicalDexHelper.getLoadedClasses(mContext, CYANOGENMOD_NAMESPACE);
+ mKnownSdkClasses = MagicalDexHelper.getLoadedClasses(mContext, LINEAGEOS_NAMESPACE);
}
@SmallTest
diff --git a/tests/src/org/lineageos/tests/versioning/unit/MagicalDexHelper.java b/tests/src/org/lineageos/tests/versioning/unit/MagicalDexHelper.java
index a7f2ccc7..ae414f38 100644
--- a/tests/src/org/lineageos/tests/versioning/unit/MagicalDexHelper.java
+++ b/tests/src/org/lineageos/tests/versioning/unit/MagicalDexHelper.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.versioning.unit;
+package org.lineageos.tests.versioning.unit;
import android.content.Context;
import dalvik.system.DexFile;
diff --git a/tests/src/org/lineageos/tests/versioning/unit/apiv2/ApiV2PriorReleaseInterfaces.java b/tests/src/org/lineageos/tests/versioning/unit/apiv2/ApiV2PriorReleaseInterfaces.java
index 9f5906cd..7329c207 100644
--- a/tests/src/org/lineageos/tests/versioning/unit/apiv2/ApiV2PriorReleaseInterfaces.java
+++ b/tests/src/org/lineageos/tests/versioning/unit/apiv2/ApiV2PriorReleaseInterfaces.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.versioning.unit.apiv2;
+package org.lineageos.tests.versioning.unit.apiv2;
import java.util.HashMap;
import java.util.Map;
@@ -63,9 +63,9 @@ public class ApiV2PriorReleaseInterfaces {
partnerMap.put("getCurrentHotwordPackageName", 6);
}
- //CMHardwareManager Aidl (ICMHardwareService)
+ //LineageHardwareManager Aidl (ILineageHardwareService)
static {
- Map hardwareMap = getInternalInterfaceMap("ICMHardwareService");
+ Map hardwareMap = getInternalInterfaceMap("ILineageHardwareService");
// APRICOT + BOYSENBERRY + CANTALOUPE
hardwareMap.put("getSupportedFeatures", 1);
hardwareMap.put("get", 2);
@@ -93,9 +93,9 @@ public class ApiV2PriorReleaseInterfaces {
hardwareMap.put("unRegisterThermalListener", 24);
}
- //CMStatusBarManager Aidl (ICMStatusBarManager)
+ //LineageStatusBarManager Aidl (ILineageStatusBarManager)
static {
- Map statusBarMap = getInternalInterfaceMap("ICMStatusBarManager");
+ Map statusBarMap = getInternalInterfaceMap("ILineageStatusBarManager");
// APRICOT + BOYSENBERRY + CANTALOUPE
statusBarMap.put("createCustomTileWithTag", 1);
statusBarMap.put("removeCustomTileWithTag", 2);
@@ -112,9 +112,9 @@ public class ApiV2PriorReleaseInterfaces {
suggestMap.put("getSuggestions", 2);
}
- //CMTelephonyManager Aidl (ICMTelephonyManager)
+ //LineageTelephonyManager Aidl (ILineageTelephonyManager)
static {
- Map telephonyMap = getInternalInterfaceMap("ICMTelephonyManager");
+ Map telephonyMap = getInternalInterfaceMap("ILineageTelephonyManager");
// APRICOT + BOYSENBERRY + CANTALOUPE
telephonyMap.put("getSubInformation", 1);
telephonyMap.put("isSubActive", 2);
diff --git a/tests/src/org/lineageos/tests/versioning/unit/apiv4/ApiV4PriorReleaseInterfaces.java b/tests/src/org/lineageos/tests/versioning/unit/apiv4/ApiV4PriorReleaseInterfaces.java
index c34023e0..3ba836e0 100644
--- a/tests/src/org/lineageos/tests/versioning/unit/apiv4/ApiV4PriorReleaseInterfaces.java
+++ b/tests/src/org/lineageos/tests/versioning/unit/apiv4/ApiV4PriorReleaseInterfaces.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.versioning.unit.apiv4;
+package org.lineageos.tests.versioning.unit.apiv4;
import java.util.HashMap;
import java.util.Map;
@@ -39,16 +39,16 @@ public class ApiV4PriorReleaseInterfaces {
partnerMap.put("setZenModeWithDuration", 7);
}
- //CMHardwareManager Aidl (ICMHardwareService)
+ //LineageHardwareManager Aidl (ILineageHardwareService)
static {
- Map hardwareMap = getInternalInterfaceMap("ICMHardwareService");
+ Map hardwareMap = getInternalInterfaceMap("ILineageHardwareService");
// APRICOT + BOYSENBERRY + CANTALOUPE to 24
// DRAGONFRUIT BEGIN
hardwareMap.put("isSunlightEnhancementSelfManaged", 25);
hardwareMap.put("getUniqueDeviceId", 26);
}
- //CMStatusBarManager Aidl (ICMStatusBarManager)
+ //LineageStatusBarManager Aidl (ILineageStatusBarManager)
static {
// APRICOT + BOYSENBERRY + CANTALOUPE to 5
// DRAGONFRUIT BEGIN
@@ -60,7 +60,7 @@ public class ApiV4PriorReleaseInterfaces {
// DRAGONFRUIT BEGIN
}
- //CMTelephonyManager Aidl (ICMTelephonyManager)
+ //LineageTelephonyManager Aidl (ILineageTelephonyManager)
static {
// APRICOT + BOYSENBERRY + CANTALOUPE to 9
// DRAGONFRUIT BEGIN
diff --git a/tests/src/org/lineageos/tests/versioning/unit/apiv5/ApiV5PriorReleaseInterfaces.java b/tests/src/org/lineageos/tests/versioning/unit/apiv5/ApiV5PriorReleaseInterfaces.java
index 16a687cc..158b0ff9 100644
--- a/tests/src/org/lineageos/tests/versioning/unit/apiv5/ApiV5PriorReleaseInterfaces.java
+++ b/tests/src/org/lineageos/tests/versioning/unit/apiv5/ApiV5PriorReleaseInterfaces.java
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.versioning.unit.apiv5;
+package org.lineageos.tests.versioning.unit.apiv5;
import java.util.HashMap;
import java.util.Map;
@@ -97,12 +97,12 @@ public class ApiV5PriorReleaseInterfaces {
llChangeListener.put("onLiveLockScreenChanged", 1);
}
- //CMAudioManager Aidl (ICMAudioService)
+ //LineageAudioManager Aidl (ILineageAudioService)
static {
- Map cmAudioService =
- getInternalInterfaceMap("ICMAudioService");
+ Map lineageAudioService =
+ getInternalInterfaceMap("ILineageAudioService");
//ELDERBERRY BEGIN
- cmAudioService.put("listAudioSessions", 1);
+ lineageAudioService.put("listAudioSessions", 1);
}
//ThemeChangeListener Aidl (IThemeChangeListener)
@@ -142,17 +142,17 @@ public class ApiV5PriorReleaseInterfaces {
themes.put("getLastThemeChangeRequestType", 13);
}
- //CMWeatherManager Aidl (ICMWeatherManager)
+ //LineageWeatherManager Aidl (ILineageWeatherManager)
static {
- Map icmWeatherManager =
- getInternalInterfaceMap("ICMWeatherManager");
+ Map ilineageWeatherManager =
+ getInternalInterfaceMap("ILineageWeatherManager");
//ELDERBERRY BEGIN
- icmWeatherManager.put("updateWeather", 1);
- icmWeatherManager.put("lookupCity ", 2);
- icmWeatherManager.put("registerWeatherServiceProviderChangeListener", 3);
- icmWeatherManager.put("unregisterWeatherServiceProviderChangeListener", 4);
- icmWeatherManager.put("getActiveWeatherServiceProviderLabel", 5);
- icmWeatherManager.put("cancelRequest", 6);
+ ilineageWeatherManager.put("updateWeather", 1);
+ ilineageWeatherManager.put("lookupCity ", 2);
+ ilineageWeatherManager.put("registerWeatherServiceProviderChangeListener", 3);
+ ilineageWeatherManager.put("unregisterWeatherServiceProviderChangeListener", 4);
+ ilineageWeatherManager.put("getActiveWeatherServiceProviderLabel", 5);
+ ilineageWeatherManager.put("cancelRequest", 6);
}
//RequestInfoListener Aidl (IRequestInfoListener)
diff --git a/tests/src/org/lineageos/tests/weather/unit/DayForecastBuilderTest.java b/tests/src/org/lineageos/tests/weather/unit/DayForecastBuilderTest.java
index 469b353b..70a8c7ea 100644
--- a/tests/src/org/lineageos/tests/weather/unit/DayForecastBuilderTest.java
+++ b/tests/src/org/lineageos/tests/weather/unit/DayForecastBuilderTest.java
@@ -14,13 +14,13 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.weather.unit;
+package org.lineageos.tests.weather.unit;
import android.os.Parcel;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.providers.WeatherContract;
-import cyanogenmod.weather.WeatherInfo.DayForecast;
+import lineageos.providers.WeatherContract;
+import lineageos.weather.WeatherInfo.DayForecast;
public class DayForecastBuilderTest extends AndroidTestCase {
diff --git a/tests/src/org/lineageos/tests/weather/unit/LineageWeatherManagerTest.java b/tests/src/org/lineageos/tests/weather/unit/LineageWeatherManagerTest.java
index 3453c773..f6b23484 100644
--- a/tests/src/org/lineageos/tests/weather/unit/LineageWeatherManagerTest.java
+++ b/tests/src/org/lineageos/tests/weather/unit/LineageWeatherManagerTest.java
@@ -14,21 +14,21 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.weather.unit;
+package org.lineageos.tests.weather.unit;
import android.location.Location;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.MediumTest;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.weather.CMWeatherManager;
-import cyanogenmod.weather.CMWeatherManager.LookupCityRequestListener;
-import cyanogenmod.weather.CMWeatherManager.WeatherServiceProviderChangeListener;
-import cyanogenmod.weather.CMWeatherManager.WeatherUpdateRequestListener;
-import cyanogenmod.weather.ICMWeatherManager;
-import cyanogenmod.weather.RequestInfo;
-import cyanogenmod.weather.WeatherInfo;
-import cyanogenmod.weather.WeatherLocation;
-import org.cyanogenmod.tests.common.MockIBinderStubForInterface;
+import lineageos.weather.LineageWeatherManager;
+import lineageos.weather.LineageWeatherManager.LookupCityRequestListener;
+import lineageos.weather.LineageWeatherManager.WeatherServiceProviderChangeListener;
+import lineageos.weather.LineageWeatherManager.WeatherUpdateRequestListener;
+import lineageos.weather.ILineageWeatherManager;
+import lineageos.weather.RequestInfo;
+import lineageos.weather.WeatherInfo;
+import lineageos.weather.WeatherLocation;
+import org.lineageos.tests.common.MockIBinderStubForInterface;
import org.mockito.Mockito;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;
@@ -38,43 +38,43 @@ import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CountDownLatch;
-public class CMWeatherManagerTest extends AndroidTestCase {
+public class LineageWeatherManagerTest extends AndroidTestCase {
- private CMWeatherManager mWeatherManager;
+ private LineageWeatherManager mWeatherManager;
private static final String CITY_NAME = "Seattle, WA";
private static final int COUNTDOWN = 1;
private static final int REQUEST_ID = 42;
private static final String MOCKED_WEATHER_PROVIDER_LABEL = "Mock'd Weather Service";
- private ICMWeatherManager.Stub mICMWeatherManagerSpy;
+ private ILineageWeatherManager.Stub mILineageWeatherManagerSpy;
@Override
protected void setUp() throws Exception {
super.setUp();
- setUpMockICMWeatherManager();
+ setUpMockILineageWeatherManager();
}
- private void setUpMockICMWeatherManager() {
- mWeatherManager = CMWeatherManager.getInstance(getContext());
+ private void setUpMockILineageWeatherManager() {
+ mWeatherManager = LineageWeatherManager.getInstance(getContext());
Field f;
try {
f = mWeatherManager.getClass().getDeclaredField("sWeatherManagerService");
f.setAccessible(true);
- mICMWeatherManagerSpy
- = MockIBinderStubForInterface.getMockInterface(ICMWeatherManager.Stub.class);
- f.set(mWeatherManager, mICMWeatherManagerSpy);
+ mILineageWeatherManagerSpy
+ = MockIBinderStubForInterface.getMockInterface(ILineageWeatherManager.Stub.class);
+ f.set(mWeatherManager, mILineageWeatherManagerSpy);
Mockito.doAnswer(new WeatherUpdateRequestAnswer())
- .when(mICMWeatherManagerSpy).updateWeather(Mockito.any(RequestInfo.class));
+ .when(mILineageWeatherManagerSpy).updateWeather(Mockito.any(RequestInfo.class));
Mockito.doAnswer(new LookUpCityAnswer())
- .when(mICMWeatherManagerSpy).lookupCity(Mockito.any(RequestInfo.class));
+ .when(mILineageWeatherManagerSpy).lookupCity(Mockito.any(RequestInfo.class));
Mockito.doAnswer(new GetActiveWeatherServiceProviderLabelAnser())
- .when(mICMWeatherManagerSpy).getActiveWeatherServiceProviderLabel();
+ .when(mILineageWeatherManagerSpy).getActiveWeatherServiceProviderLabel();
Mockito.doAnswer(new CancelRequestAnswer())
- .when(mICMWeatherManagerSpy).cancelRequest(Mockito.eq(REQUEST_ID));
+ .when(mILineageWeatherManagerSpy).cancelRequest(Mockito.eq(REQUEST_ID));
} catch (Exception e) {
throw new AssertionError(e);
}
@@ -93,7 +93,7 @@ public class CMWeatherManagerTest extends AndroidTestCase {
final WeatherInfo weatherInfo = new WeatherInfo.Builder(CITY_NAME,
30d, requestInfo.getTemperatureUnit()).build();
requestInfo.getRequestListener().onWeatherRequestCompleted(requestInfo,
- CMWeatherManager.RequestStatus.COMPLETED, weatherInfo);
+ LineageWeatherManager.RequestStatus.COMPLETED, weatherInfo);
return REQUEST_ID;
}
}
@@ -108,7 +108,7 @@ public class CMWeatherManagerTest extends AndroidTestCase {
assertNotNull(cityName);
locations.add(new WeatherLocation.Builder(cityName).build());
requestInfo.getRequestListener().onLookupCityRequestCompleted(requestInfo,
- CMWeatherManager.RequestStatus.COMPLETED, locations);
+ LineageWeatherManager.RequestStatus.COMPLETED, locations);
return REQUEST_ID;
}
}
@@ -147,7 +147,7 @@ public class CMWeatherManagerTest extends AndroidTestCase {
public void onLookupCityRequestCompleted(int status,
List locations) {
final int totalLocations = locations != null ? locations.size() : 0;
- if (status != CMWeatherManager.RequestStatus.COMPLETED
+ if (status != LineageWeatherManager.RequestStatus.COMPLETED
|| totalLocations < 1) {
error[0] = true;
}
@@ -197,7 +197,7 @@ public class CMWeatherManagerTest extends AndroidTestCase {
mWeatherManager.requestWeatherUpdate(weatherLocation, new WeatherUpdateRequestListener() {
@Override
public void onWeatherRequestCompleted(int status, WeatherInfo weatherInfo) {
- if (status != CMWeatherManager.RequestStatus.COMPLETED
+ if (status != LineageWeatherManager.RequestStatus.COMPLETED
|| !weatherInfo.getCity().equals(CITY_NAME)) {
error[0] = true;
}
@@ -220,7 +220,7 @@ public class CMWeatherManagerTest extends AndroidTestCase {
mWeatherManager.requestWeatherUpdate(location, new WeatherUpdateRequestListener() {
@Override
public void onWeatherRequestCompleted(int status, WeatherInfo weatherInfo) {
- if (status != CMWeatherManager.RequestStatus.COMPLETED
+ if (status != LineageWeatherManager.RequestStatus.COMPLETED
|| !weatherInfo.getCity().equals(CITY_NAME)) {
error[0] = true;
}
diff --git a/tests/src/org/lineageos/tests/weather/unit/MockWeatherProviderService.java b/tests/src/org/lineageos/tests/weather/unit/MockWeatherProviderService.java
index 34bcc9bf..83f6d6ea 100644
--- a/tests/src/org/lineageos/tests/weather/unit/MockWeatherProviderService.java
+++ b/tests/src/org/lineageos/tests/weather/unit/MockWeatherProviderService.java
@@ -14,10 +14,10 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.weather.unit;
+package org.lineageos.tests.weather.unit;
-import cyanogenmod.weatherservice.ServiceRequest;
-import cyanogenmod.weatherservice.WeatherProviderService;
+import lineageos.weatherservice.ServiceRequest;
+import lineageos.weatherservice.WeatherProviderService;
import org.mockito.Mockito;
public class MockWeatherProviderService extends WeatherProviderService {
diff --git a/tests/src/org/lineageos/tests/weather/unit/ServiceRequestResultBuilderTest.java b/tests/src/org/lineageos/tests/weather/unit/ServiceRequestResultBuilderTest.java
index 069e3620..1befff61 100644
--- a/tests/src/org/lineageos/tests/weather/unit/ServiceRequestResultBuilderTest.java
+++ b/tests/src/org/lineageos/tests/weather/unit/ServiceRequestResultBuilderTest.java
@@ -14,15 +14,15 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.weather.unit;
+package org.lineageos.tests.weather.unit;
import android.os.Parcel;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.providers.WeatherContract;
-import cyanogenmod.weather.WeatherInfo;
-import cyanogenmod.weather.WeatherLocation;
-import cyanogenmod.weatherservice.ServiceRequestResult;
+import lineageos.providers.WeatherContract;
+import lineageos.weather.WeatherInfo;
+import lineageos.weather.WeatherLocation;
+import lineageos.weatherservice.ServiceRequestResult;
import java.util.ArrayList;
import java.util.List;
diff --git a/tests/src/org/lineageos/tests/weather/unit/WeatherInfoBuilderTest.java b/tests/src/org/lineageos/tests/weather/unit/WeatherInfoBuilderTest.java
index 22d0e418..bc1dd100 100644
--- a/tests/src/org/lineageos/tests/weather/unit/WeatherInfoBuilderTest.java
+++ b/tests/src/org/lineageos/tests/weather/unit/WeatherInfoBuilderTest.java
@@ -14,13 +14,13 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.weather.unit;
+package org.lineageos.tests.weather.unit;
import android.os.Parcel;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.providers.WeatherContract;
-import cyanogenmod.weather.WeatherInfo;
+import lineageos.providers.WeatherContract;
+import lineageos.weather.WeatherInfo;
public class WeatherInfoBuilderTest extends AndroidTestCase {
diff --git a/tests/src/org/lineageos/tests/weather/unit/WeatherLocationBuilderTest.java b/tests/src/org/lineageos/tests/weather/unit/WeatherLocationBuilderTest.java
index 852163c2..b6d9c207 100644
--- a/tests/src/org/lineageos/tests/weather/unit/WeatherLocationBuilderTest.java
+++ b/tests/src/org/lineageos/tests/weather/unit/WeatherLocationBuilderTest.java
@@ -14,12 +14,12 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.weather.unit;
+package org.lineageos.tests.weather.unit;
import android.os.Parcel;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.SmallTest;
-import cyanogenmod.weather.WeatherLocation;
+import lineageos.weather.WeatherLocation;
public class WeatherLocationBuilderTest extends AndroidTestCase {
diff --git a/tests/src/org/lineageos/tests/weather/unit/WeatherProviderServiceTest.java b/tests/src/org/lineageos/tests/weather/unit/WeatherProviderServiceTest.java
index fd1e2ff7..bce369d4 100644
--- a/tests/src/org/lineageos/tests/weather/unit/WeatherProviderServiceTest.java
+++ b/tests/src/org/lineageos/tests/weather/unit/WeatherProviderServiceTest.java
@@ -14,19 +14,19 @@
* limitations under the License.
*/
-package org.cyanogenmod.tests.weather.unit;
+package org.lineageos.tests.weather.unit;
import android.location.Location;
import android.os.IBinder;
-import cyanogenmod.weather.CMWeatherManager;
-import cyanogenmod.weather.RequestInfo;
-import cyanogenmod.weather.WeatherLocation;
-import cyanogenmod.weatherservice.IWeatherProviderService;
-import cyanogenmod.weatherservice.IWeatherProviderServiceClient;
-import cyanogenmod.weatherservice.ServiceRequest;
-import cyanogenmod.weatherservice.ServiceRequestResult;
-import org.cyanogenmod.tests.common.MockIBinderStubForInterface;
-import org.cyanogenmod.tests.common.ThreadServiceTestCase;
+import lineageos.weather.LineageWeatherManager;
+import lineageos.weather.RequestInfo;
+import lineageos.weather.WeatherLocation;
+import lineageos.weatherservice.IWeatherProviderService;
+import lineageos.weatherservice.IWeatherProviderServiceClient;
+import lineageos.weatherservice.ServiceRequest;
+import lineageos.weatherservice.ServiceRequestResult;
+import org.lineageos.tests.common.MockIBinderStubForInterface;
+import org.lineageos.tests.common.ThreadServiceTestCase;
import org.mockito.ArgumentCaptor;
import org.mockito.Mockito;
import org.mockito.invocation.InvocationOnMock;
@@ -150,7 +150,7 @@ public class WeatherProviderServiceTest extends ThreadServiceTestCase