Lockscreen Notifications [1/2]

My try on making notifications easily accessable from lockscreen.
Credits to ChameleonOS, I got the notification listener permission and some small other stuff from their ActiveDisplay implementation.

Lockscreen Notifications allow you to manage all your notifications directly on the lockscreen.

Features:
- Pocket mode turn screen on when phone is pulled out of pocket and turn it off when phone gets back in pocket
- Hide low priority notifications
- Hide non-clearable notifications
- Allow dismissing even non-clearable notifications from lockscreen
- Just turn screen on when there's currently a notification pending
- Toggle between expanded and normal notification view by longpressing
- Wake on new notification
- Configure notification count displayed at once
- Privacy Mode: Hide notifications content on secure lockscreen.
- Blacklist apps - thanks to ChameleonOS for the original implementation and @Der-Schubi for bringing it to lockscreen notifications
- Show all/dismiss all button, does not dismiss on going notifications, they must be swiped away

Overlay setting:
dynamic width is disabled by default, to enable it for a specific device, add
<bool name="config_lnDynamicWidth">true</bool>
to yourdevicetree/overlay/frameworks/base/packages/Keyguard/res/values/config.xml

PS3: Disabled by default
PS4: Removed many whitespaces

Change-Id: Ife8cbe1ef86691c391de061964bf4d14be03a59f
Signed-off-by: kecinzer <kecinzer@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
	core/java/com/android/internal/statusbar/IStatusBar.aidl
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewMediator.java
	packages/SystemUI/res/layout-sw600dp/navigation_bar.xml
	packages/SystemUI/res/layout/navigation_bar.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java

Change-Id: Ife8cbe1ef86691c391de061964bf4d14be03a59f

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java

	modifié :         core/java/android/provider/Settings.java
	modifié :         core/java/com/android/internal/policy/IKeyguardService.aidl
	modifié :         core/java/com/android/internal/statusbar/IStatusBar.aidl
	modifié :         core/java/com/android/internal/statusbar/IStatusBarService.aidl
	modifié :         core/res/AndroidManifest.xml
	modifié :         packages/Keyguard/AndroidManifest.xml
	modifié :         packages/Keyguard/res/layout-land/keyguard_host_view.xml
	modifié :         packages/Keyguard/res/layout-port/keyguard_host_view.xml
	modifié :         packages/Keyguard/res/layout-sw600dp-port/keyguard_host_view.xml
	modifié :         packages/Keyguard/res/values/config.xml
	modifié :         packages/Keyguard/res/values/slim_dimens.xml
	modifié :         packages/Keyguard/src/com/android/keyguard/KeyguardService.java
	modifié :         packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	modifié :         packages/Keyguard/src/com/android/keyguard/KeyguardViewMediator.java
	nouveau fichier : packages/Keyguard/src/com/android/keyguard/NotificationHostView.java
	nouveau fichier : packages/Keyguard/src/com/android/keyguard/NotificationViewManager.java
	modifié :         packages/Keyguard/src/com/android/keyguard/PagedView.java
	modifié :         packages/SystemUI/res/layout-sw600dp/navigation_bar.xml
	modifié :         packages/SystemUI/res/layout/navigation_bar.xml
	modifié :         packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	modifié :         packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
	modifié :         packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardTouchDelegate.java
	modifié :         packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarTransitions.java
	modifié :         packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
	modifié :         packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	modifié :         policy/src/com/android/internal/policy/impl/keyguard/KeyguardServiceWrapper.java
	modifié :         services/java/com/android/server/NotificationManagerService.java
	modifié :         services/java/com/android/server/StatusBarManagerService.java
	modifié :         packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java

Change-Id: I5f8d44c3f3455ee793cf9f085bf0cceee56cc0e1
Revert "Lockscreen Notifications [1/2]"

This reverts commit 2b58b4a261e373b869442432c9aafe86b7be9b07.

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java

Change-Id: I3ebbad5533165877625293dad4e7469c5fe826a3
Lockscreen Notifications [1/2]

My try on making notifications easily accessable from lockscreen.
Credits to ChameleonOS, I got the notification listener permission and some small other stuff from their ActiveDisplay implementation.

Lockscreen Notifications allow you to manage all your notifications directly on the lockscreen.

Features:
- Pocket mode turn screen on when phone is pulled out of pocket and turn it off when phone gets back in pocket
- Hide low priority notifications
- Hide non-clearable notifications
- Allow dismissing even non-clearable notifications from lockscreen
- Just turn screen on when there's currently a notification pending
- Toggle between expanded and normal notification view by longpressing
- Wake on new notification
- Configure notification count displayed at once
- Privacy Mode: Hide notifications content on secure lockscreen.
- Blacklist apps - thanks to ChameleonOS for the original implementation and @Der-Schubi for bringing it to lockscreen notifications
- Show all/dismiss all button, does not dismiss on going notifications, they must be swiped away

Overlay setting:
dynamic width is disabled by default, to enable it for a specific device, add
<bool name="config_lnDynamicWidth">true</bool>
to yourdevicetree/overlay/frameworks/base/packages/Keyguard/res/values/config.xml

PS3: Disabled by default
PS4: Removed many whitespaces

Change-Id: Ife8cbe1ef86691c391de061964bf4d14be03a59f
Signed-off-by: kecinzer <kecinzer@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
	core/java/com/android/internal/statusbar/IStatusBar.aidl
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewMediator.java
	packages/SystemUI/res/layout-sw600dp/navigation_bar.xml
	packages/SystemUI/res/layout/navigation_bar.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java

Change-Id: Ife8cbe1ef86691c391de061964bf4d14be03a59f

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java

	modifié :         core/java/android/provider/Settings.java
	modifié :         core/java/com/android/internal/policy/IKeyguardService.aidl
	modifié :         core/java/com/android/internal/statusbar/IStatusBar.aidl
	modifié :         core/java/com/android/internal/statusbar/IStatusBarService.aidl
	modifié :         core/res/AndroidManifest.xml
	modifié :         packages/Keyguard/AndroidManifest.xml
	modifié :         packages/Keyguard/res/layout-land/keyguard_host_view.xml
	modifié :         packages/Keyguard/res/layout-port/keyguard_host_view.xml
	modifié :         packages/Keyguard/res/layout-sw600dp-port/keyguard_host_view.xml
	modifié :         packages/Keyguard/res/values/config.xml
	modifié :         packages/Keyguard/res/values/slim_dimens.xml
	modifié :         packages/Keyguard/src/com/android/keyguard/KeyguardService.java
	modifié :         packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	modifié :         packages/Keyguard/src/com/android/keyguard/KeyguardViewMediator.java
	nouveau fichier : packages/Keyguard/src/com/android/keyguard/NotificationHostView.java
	nouveau fichier : packages/Keyguard/src/com/android/keyguard/NotificationViewManager.java
	modifié :         packages/Keyguard/src/com/android/keyguard/PagedView.java
	modifié :         packages/SystemUI/res/layout-sw600dp/navigation_bar.xml
	modifié :         packages/SystemUI/res/layout/navigation_bar.xml
	modifié :         packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	modifié :         packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
	modifié :         packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardTouchDelegate.java
	modifié :         packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarTransitions.java
	modifié :         packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
	modifié :         packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	modifié :         policy/src/com/android/internal/policy/impl/keyguard/KeyguardServiceWrapper.java
	modifié :         services/java/com/android/server/NotificationManagerService.java
	modifié :         services/java/com/android/server/StatusBarManagerService.java
Lockscreen Notifications [1/2]

My try on making notifications easily accessable from lockscreen.
Credits to ChameleonOS, I got the notification listener permission and some small other stuff from their ActiveDisplay implementation.

Lockscreen Notifications allow you to manage all your notifications directly on the lockscreen.

Features:
- Pocket mode turn screen on when phone is pulled out of pocket and turn it off when phone gets back in pocket
- Hide low priority notifications
- Hide non-clearable notifications
- Allow dismissing even non-clearable notifications from lockscreen
- Just turn screen on when there's currently a notification pending
- Toggle between expanded and normal notification view by longpressing
- Wake on new notification
- Configure notification count displayed at once
- Privacy Mode: Hide notifications content on secure lockscreen.
- Blacklist apps - thanks to ChameleonOS for the original implementation and @Der-Schubi for bringing it to lockscreen notifications
- Show all/dismiss all button, does not dismiss on going notifications, they must be swiped away

Overlay setting:
dynamic width is disabled by default, to enable it for a specific device, add
<bool name="config_lnDynamicWidth">true</bool>
to yourdevicetree/overlay/frameworks/base/packages/Keyguard/res/values/config.xml

PS3: Disabled by default
PS4: Removed many whitespaces

Change-Id: Ife8cbe1ef86691c391de061964bf4d14be03a59f

Conflicts:
	core/java/android/provider/Settings.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	packages/Keyguard/src/com/android/keyguard/NotificationViewManager.java

	modifié :         packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	modifié :         packages/Keyguard/src/com/android/keyguard/NotificationViewManager.java
LSN corrections
	modifié :         packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	modifié :         packages/Keyguard/src/com/android/keyguard/NotificationViewManager.java

Change-Id: I2d66725d27d18148f956dbebc7bfc933c2423b62